@visulima/packem 2.0.0-alpha.92 → 2.0.0-alpha.94

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/LICENSE.md +1211 -186
  3. package/dist/babel-runtime/packem_shared/transform-code-DtqOY-lW.js +1 -0
  4. package/dist/babel-runtime/plugins/babel/worker.js +1 -1
  5. package/dist/builder/typedoc/index.d.ts +1 -1
  6. package/dist/builder/typedoc/index.js +2 -2
  7. package/dist/cli/index.js +17 -17
  8. package/dist/config/index.d.ts +42 -42
  9. package/dist/config/preset/preact.d.ts +8 -8
  10. package/dist/config/preset/react.d.ts +43 -43
  11. package/dist/config/preset/solid.d.ts +73 -73
  12. package/dist/config/preset/svelte.d.ts +46 -46
  13. package/dist/config/preset/vue.d.ts +33 -33
  14. package/dist/index.d.ts +35 -35
  15. package/dist/index.js +61 -39
  16. package/dist/packem_shared/create-or-update-key-storage-BFOAEuWX.js +26 -0
  17. package/dist/packem_shared/default-BSbw_3ev.js +1 -0
  18. package/dist/packem_shared/index-D_5MmI7f.js +301 -0
  19. package/dist/packem_shared/oxcTransformPlugin-Dwvbw2jE-CI_T_eTp.js +168 -0
  20. package/dist/packem_shared/{types.d-BkLP91NJ.d.ts → types.d-CA4tXIce.d.ts} +178 -178
  21. package/dist/packem_shared/utils-DqCpIxDx.js +1 -0
  22. package/dist/rollup/plugins/oxc/oxc-transformer.js +1 -1
  23. package/package.json +16 -16
  24. package/dist/babel-runtime/packem_shared/transform-code-KNtowoK1.js +0 -1
  25. package/dist/packem_shared/create-or-update-key-storage-DHOKZmnD.js +0 -28
  26. package/dist/packem_shared/default-mHB0zin0.js +0 -1
  27. package/dist/packem_shared/index-BXEUcumB.js +0 -249
  28. package/dist/packem_shared/oxcTransformPlugin-Dwvbw2jE-BsmmBg7q.js +0 -177
  29. package/dist/packem_shared/utils-Bsoe7qJG.js +0 -1
@@ -0,0 +1,168 @@
1
+ import{createFilter as Pi}from"@rollup/pluginutils";import ta,{createRequire as K}from"node:module";import"@antfu/install-pkg";import{L as ye,B as ft,j as Mi,A as Gi,H as we,y as sa}from"./utils-DqCpIxDx.js";import na from"node:url";import ra from"util";import{ResolverFactory as ia}from"oxc-resolver";import{EXCLUDE_REGEXP as oa}from"@visulima/packem-share/constants";import{createRequire as ua}from"module";const nr=0,ji=Symbol("findUpStop");let aa=class extends Error{constructor(e){super(`EEXIST: ${e}`)}get code(){return"EEXIST"}set code(e){throw new Error("Cannot overwrite code EEXIST")}get name(){return"AlreadyExistsError"}set name(e){throw new Error("Cannot overwrite name of AlreadyExistsError")}};const gt=t=>{if(!t||!(t instanceof URL)&&typeof t!="string")throw new TypeError("Path must be a non-empty string or URL.")},ca=K(import.meta.url),bt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,la=t=>{if(typeof bt<"u"&&bt.versions&&bt.versions.node){const[e,s]=bt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return bt.getBuiltinModule(t)}return ca(t)};la("node:fs/promises");const ha=K(import.meta.url),vt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,fa=t=>{if(typeof vt<"u"&&vt.versions&&vt.versions.node){const[e,s]=vt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return vt.getBuiltinModule(t)}return ha(t)};fa("node:fs");const Nr=t=>{if(t.isFile())return"file";if(t.isDirectory())return"dir";if(t.isSymbolicLink())return"symlink"},pa=K(import.meta.url),St=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,da=t=>{if(typeof St<"u"&&St.versions&&St.versions.node){const[e,s]=St.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return St.getBuiltinModule(t)}return pa(t)},{lstat:Lr,mkdir:ma}=da("node:fs/promises"),Gd=async t=>{gt(t);try{const e=await Lr(t);if(!e.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Nr(e))}'`);return}catch(e){if(e.code!=="ENOENT")throw e}try{await ma(t,{recursive:!0})}catch(e){if(e.code!=="EEXIST")throw e;const s=await Lr(t);if(!s.isDirectory())throw new Error(`Ensure path exists, expected 'dir', got '${String(Nr(s))}'`,{cause:e})}},ga=K(import.meta.url),$t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Da=t=>{if(typeof $t<"u"&&$t.versions&&$t.versions.node){const[e,s]=$t.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return $t.getBuiltinModule(t)}return ga(t)};Da("node:fs");const Ea=K(import.meta.url),wt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ya=t=>{if(typeof wt<"u"&&wt.versions&&wt.versions.node){const[e,s]=wt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return wt.getBuiltinModule(t)}return Ea(t)};ya("node:fs/promises");const Ca=K(import.meta.url),Ft=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Aa=t=>{if(typeof Ft<"u"&&Ft.versions&&Ft.versions.node){const[e,s]=Ft.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Ft.getBuiltinModule(t)}return Ca(t)};Aa("node:fs");const ba=K(import.meta.url),Nt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,va=t=>{if(typeof Nt<"u"&&Nt.versions&&Nt.versions.node){const[e,s]=Nt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Nt.getBuiltinModule(t)}return ba(t)};va("node:fs/promises");const Sa=K(import.meta.url),Lt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,$a=t=>{if(typeof Lt<"u"&&Lt.versions&&Lt.versions.node){const[e,s]=Lt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Lt.getBuiltinModule(t)}return Sa(t)};$a("node:fs");const wa=K(import.meta.url),xt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Fa=t=>{if(typeof xt<"u"&&xt.versions&&xt.versions.node){const[e,s]=xt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return xt.getBuiltinModule(t)}return wa(t)};Fa("node:fs/promises");const Na=K(import.meta.url),Ot=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,La=t=>{if(typeof Ot<"u"&&Ot.versions&&Ot.versions.node){const[e,s]=Ot.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Ot.getBuiltinModule(t)}return Na(t)};La("node:fs");K(import.meta.url);const xa=K(import.meta.url),Bt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Oa=t=>{if(typeof Bt<"u"&&Bt.versions&&Bt.versions.node){const[e,s]=Bt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Bt.getBuiltinModule(t)}return xa(t)};Oa("node:fs/promises");const Ba=K(import.meta.url),Rt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ra=t=>{if(typeof Rt<"u"&&Rt.versions&&Rt.versions.node){const[e,s]=Rt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Rt.getBuiltinModule(t)}return Ba(t)};Ra("node:fs");const ka=K(import.meta.url),kt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ia=t=>{if(typeof kt<"u"&&kt.versions&&kt.versions.node){const[e,s]=kt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return kt.getBuiltinModule(t)}return ka(t)},{stat:Ta,lstat:_a}=Ia("node:fs/promises"),Ui=async(t,e={})=>{if(typeof t!="string"&&!Array.isArray(t)&&typeof t!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const s=e.cwd?ye(e.cwd):process.cwd();let n=ft(s);const{root:r}=Mi(n),i=ye(e.stopAt??r),o=ft(n,i),u=e.type??"file",a=async function(h){return typeof t=="function"?[await t(h)]:typeof t=="string"?[t]:Array.isArray(t)?t:[t]};e.allowSymlinks??=!0;const c=e.allowSymlinks?Ta:_a;for(;n&&n!==o&&n!==r;){const h=await a(n);for(let f of h){if(f===ji)return;if(f===void 0)continue;Buffer.isBuffer(f)?f=f.toString():f instanceof URL&&(f=ye(f));const m=Gi(f)?f:ft(n,f);try{const D=await c(m);if(u==="file"&&D.isFile()||u==="directory"&&D.isDirectory())return m}catch{}}n=we(n)}},Pa=K(import.meta.url),It=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ma=t=>{if(typeof It<"u"&&It.versions&&It.versions.node){const[e,s]=It.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return It.getBuiltinModule(t)}return Pa(t)},{statSync:Ga,lstatSync:ja}=Ma("node:fs"),Ua=(t,e={})=>{const s=e.cwd?ye(e.cwd):process.cwd();let n=ft(s);const{root:r}=Mi(n),i=ye(e.stopAt??r),o=ft(n,i),u=e.type??"file",a=function(h){return[t]};e.allowSymlinks??=!0;const c=e.allowSymlinks?Ga:ja;for(;n&&n!==o&&n!==r;){for(let h of a()){if(h===ji)return;if(h===void 0)continue;Buffer.isBuffer(h)?h=h.toString():h instanceof URL&&(h=ye(h));const f=Gi(h)?h:ft(n,h);try{const m=c(f);if(u==="file"&&m.isFile()||u==="directory"&&m.isDirectory())return f}catch{}}n=we(n)}};function rr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var xr={},en,Or;function js(){if(Or)return en;Or=1;const t="[^\\\\/]",e=Symbol("unignore"),s="\\.",n="\\+",r="\\?",i="\\/",o="(?=.)",u="[^/]",a=`(?:${i}|$)`,c=`(?:^|${i})`,h=`${s}{1,2}${a}`,f=`(?!${s})`,m=`(?!${c}${h})`,D=`(?!${s}{0,1}${a})`,C=`(?!${h})`,d=`[^.${i}]`,g=`${u}*?`,p="/",y={DOT_LITERAL:s,PLUS_LITERAL:n,QMARK_LITERAL:r,SLASH_LITERAL:i,ONE_CHAR:o,QMARK:u,END_ANCHOR:a,DOTS_SLASH:h,NO_DOT:f,NO_DOTS:m,NO_DOT_SLASH:D,NO_DOTS_SLASH:C,QMARK_NO_DOT:d,STAR:g,START_ANCHOR:c,SEP:p},A={...y,SLASH_LITERAL:"[\\\\/]",QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${s}{1,2}(?:[\\\\/]|$)`,NO_DOT:`(?!${s})`,NO_DOTS:`(?!(?:^|[\\\\/])${s}{1,2}(?:[\\\\/]|$))`,NO_DOT_SLASH:`(?!${s}{0,1}(?:[\\\\/]|$))`,NO_DOTS_SLASH:`(?!${s}{1,2}(?:[\\\\/]|$))`,QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},l={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return en={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:l,UNIGNORE:e,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(E){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${E.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(E){return E===!0?A:y}},en}var Br;function Us(){return Br||(Br=1,(function(t){const{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_GLOBAL:r}=js();t.isObject=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),t.hasRegexChars=i=>n.test(i),t.isRegexChar=i=>i.length===1&&t.hasRegexChars(i),t.escapeRegex=i=>i.replace(r,"\\$1"),t.toPosixSlashes=i=>i.replace(e,"/"),t.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const i=navigator.platform.toLowerCase();return i==="win32"||i==="windows"}return process.platform?process.platform==="win32":!1},t.removeBackslashes=i=>i.replace(s,o=>o==="\\"?"":o),t.escapeLast=(i,o,u)=>{const a=i.lastIndexOf(o,u);return a===-1?i:i[a-1]==="\\"?t.escapeLast(i,o,a-1):`${i.slice(0,a)}\\${i.slice(a)}`},t.removePrefix=(i,o={})=>{let u=i;return u.startsWith("./")&&(u=u.slice(2),o.prefix="./"),u},t.wrapOutput=(i,o={},u={})=>{const a=u.contains?"":"^",c=u.contains?"":"$";let h=`${a}(?:${i})${c}`;return o.negated===!0&&(h=`(?:^(?!${h}).*$)`),h},t.basename=(i,{windows:o}={})=>{const u=i.split(o?/[\\/]/:"/"),a=u[u.length-1];return a===""?u[u.length-2]:a}})(xr)),xr}var tn,Rr;function Ha(){if(Rr)return tn;Rr=1;const t=Us(),{CHAR_ASTERISK:e,CHAR_AT:s,CHAR_BACKWARD_SLASH:n,CHAR_COMMA:r,CHAR_DOT:i,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:u,CHAR_LEFT_CURLY_BRACE:a,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:f,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:D,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:d}=js(),g=y=>y===u||y===n,p=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)};return tn=(y,A)=>{const l=A||{},E=y.length-1,b=l.parts===!0||l.scanToEnd===!0,F=[],v=[],B=[];let k=y,W=-1,I=0,ge=0,fe=!1,Le=!1,Z=!1,Ie=!1,ze=!1,xe=!1,Y=!1,Oe=!1,Je=!1,pe=!1,he=0,De,P,U={value:"",depth:0,isGlob:!1};const w=()=>W>=E,me=()=>k.charCodeAt(W+1),ue=()=>(De=P,k.charCodeAt(++W));for(;W<E;){P=ue();let q;if(P===n){Y=U.backslashes=!0,P=ue(),P===a&&(xe=!0);continue}if(xe===!0||P===a){for(he++;w()!==!0&&(P=ue());){if(P===n){Y=U.backslashes=!0,ue();continue}if(P===a){he++;continue}if(xe!==!0&&P===i&&(P=ue())===i){if(fe=U.isBrace=!0,Z=U.isGlob=!0,pe=!0,b===!0)continue;break}if(xe!==!0&&P===r){if(fe=U.isBrace=!0,Z=U.isGlob=!0,pe=!0,b===!0)continue;break}if(P===D&&(he--,he===0)){xe=!1,fe=U.isBrace=!0,pe=!0;break}}if(b===!0)continue;break}if(P===u){if(F.push(W),v.push(U),U={value:"",depth:0,isGlob:!1},pe===!0)continue;if(De===i&&W===I+1){I+=2;continue}ge=W+1;continue}if(l.noext!==!0&&(P===f||P===s||P===e||P===m||P===o)&&me()===c){if(Z=U.isGlob=!0,Ie=U.isExtglob=!0,pe=!0,P===o&&W===I&&(Je=!0),b===!0){for(;w()!==!0&&(P=ue());){if(P===n){Y=U.backslashes=!0,P=ue();continue}if(P===C){Z=U.isGlob=!0,pe=!0;break}}continue}break}if(P===e){if(De===e&&(ze=U.isGlobstar=!0),Z=U.isGlob=!0,pe=!0,b===!0)continue;break}if(P===m){if(Z=U.isGlob=!0,pe=!0,b===!0)continue;break}if(P===h){for(;w()!==!0&&(q=ue());){if(q===n){Y=U.backslashes=!0,ue();continue}if(q===d){Le=U.isBracket=!0,Z=U.isGlob=!0,pe=!0;break}}if(b===!0)continue;break}if(l.nonegate!==!0&&P===o&&W===I){Oe=U.negated=!0,I++;continue}if(l.noparen!==!0&&P===c){if(Z=U.isGlob=!0,b===!0){for(;w()!==!0&&(P=ue());){if(P===c){Y=U.backslashes=!0,P=ue();continue}if(P===C){pe=!0;break}}continue}break}if(Z===!0){if(pe=!0,b===!0)continue;break}}l.noext===!0&&(Ie=!1,Z=!1);let se=k,S="",$="";I>0&&(S=k.slice(0,I),k=k.slice(I),ge-=I),se&&Z===!0&&ge>0?(se=k.slice(0,ge),$=k.slice(ge)):Z===!0?(se="",$=k):se=k,se&&se!==""&&se!=="/"&&se!==k&&g(se.charCodeAt(se.length-1))&&(se=se.slice(0,-1)),l.unescape===!0&&($&&($=t.removeBackslashes($)),se&&Y===!0&&(se=t.removeBackslashes(se)));const Ae={prefix:S,input:y,start:I,base:se,glob:$,isBrace:fe,isBracket:Le,isGlob:Z,isExtglob:Ie,isGlobstar:ze,negated:Oe,negatedExtglob:Je};if(l.tokens===!0&&(Ae.maxDepth=0,g(P)||v.push(U),Ae.tokens=v),l.parts===!0||l.tokens===!0){let q;for(let ee=0;ee<F.length;ee++){const Te=q?q+1:I,Ee=F[ee],Ke=y.slice(Te,Ee);l.tokens&&(ee===0&&I!==0?(v[ee].isPrefix=!0,v[ee].value=S):v[ee].value=Ke,p(v[ee]),Ae.maxDepth+=v[ee].depth),(ee!==0||Ke!=="")&&B.push(Ke),q=Ee}if(q&&q+1<y.length){const ee=y.slice(q+1);B.push(ee),l.tokens&&(v[v.length-1].value=ee,p(v[v.length-1]),Ae.maxDepth+=v[v.length-1].depth)}Ae.slashes=F,Ae.parts=B}return Ae},tn}var sn,kr;function Ka(){if(kr)return sn;kr=1;const t=js(),e=Us(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:n,REGEX_NON_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_BACKREF:i,REPLACEMENTS:o}=t,u=(y,A)=>typeof A.expandRange=="function"?A.expandRange(...y,A):(y.sort(),`[${y.join("-")}]`),a=(y,A)=>`Missing ${y}: "${A}" - use "\\\\${A}" to match literal characters`,c=y=>{const A=[];let l=0,E=0,b=0,F="",v=!1;for(const B of y){if(v===!0){F+=B,v=!1;continue}if(B==="\\"){F+=B,v=!0;continue}if(B==='"'){b=b===1?0:1,F+=B;continue}if(b===0){if(B==="[")l++;else if(B==="]"&&l>0)l--;else if(l===0){if(B==="(")E++;else if(B===")"&&E>0)E--;else if(B==="|"&&E===0){A.push(F),F="";continue}}}F+=B}return A.push(F),A},h=y=>{let A=!1;for(const l of y){if(A===!0){A=!1;continue}if(l==="\\"){A=!0;continue}if(/[?*+@!()[\]{}]/.test(l))return!1}return!0},f=y=>{let A=y.trim(),l=!0;for(;l===!0;)l=!1,/^@\([^\\()[\]{}|]+\)$/.test(A)&&(A=A.slice(2,-1),l=!0);if(h(A))return A.replace(/\\(.)/g,"$1")},m=y=>{const A=y.map(f).filter(Boolean);for(let l=0;l<A.length;l++)for(let E=l+1;E<A.length;E++){const b=A[l],F=A[E],v=b[0];if(!(!v||b!==v.repeat(b.length)||F!==v.repeat(F.length))&&(b===F||b.startsWith(F)||F.startsWith(b)))return!0}return!1},D=(y,A=!0)=>{if(y[0]!=="+"&&y[0]!=="*"||y[1]!=="(")return;let l=0,E=0,b=0,F=!1;for(let v=1;v<y.length;v++){const B=y[v];if(F===!0){F=!1;continue}if(B==="\\"){F=!0;continue}if(B==='"'){b=b===1?0:1;continue}if(b!==1){if(B==="["){l++;continue}if(B==="]"&&l>0){l--;continue}if(!(l>0)){if(B==="("){E++;continue}if(B===")"&&(E--,E===0))return A===!0&&v!==y.length-1?void 0:{type:y[0],body:y.slice(2,v),end:v}}}}},C=y=>{let A=0;const l=[];for(;A<y.length;){const E=D(y.slice(A),!1);if(!E||E.type!=="*")return;const b=c(E.body).map(v=>v.trim());if(b.length!==1)return;const F=f(b[0]);if(!F||F.length!==1)return;l.push(F),A+=E.end+1}return l.length<1?void 0:`${l.length===1?e.escapeRegex(l[0]):`[${l.map(E=>e.escapeRegex(E)).join("")}]`}*`},d=y=>{let A=0,l=y.trim(),E=D(l);for(;E;)A++,l=E.body.trim(),E=D(l);return A},g=(y,A)=>{if(A.maxExtglobRecursion===!1)return{risky:!1};const l=typeof A.maxExtglobRecursion=="number"?A.maxExtglobRecursion:t.DEFAULT_MAX_EXTGLOB_RECURSION,E=c(y).map(b=>b.trim());if(E.length>1&&(E.some(b=>b==="")||E.some(b=>/^[*?]+$/.test(b))||m(E)))return{risky:!0};for(const b of E){const F=C(b);if(F)return{risky:!0,safeOutput:F};if(d(b)>l)return{risky:!0}}return{risky:!1}},p=(y,A)=>{if(typeof y!="string")throw new TypeError("Expected a string");y=o[y]||y;const l={...A},E=typeof l.maxLength=="number"?Math.min(s,l.maxLength):s;let b=y.length;if(b>E)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${E}`);const F={type:"bos",value:"",output:l.prepend||""},v=[F],B=l.capture?"":"?:",k=t.globChars(l.windows),W=t.extglobChars(k),{DOT_LITERAL:I,PLUS_LITERAL:ge,SLASH_LITERAL:fe,ONE_CHAR:Le,DOTS_SLASH:Z,NO_DOT:Ie,NO_DOT_SLASH:ze,NO_DOTS_SLASH:xe,QMARK:Y,QMARK_NO_DOT:Oe,STAR:Je,START_ANCHOR:pe}=k,he=O=>`(${B}(?:(?!${pe}${O.dot?Z:I}).)*?)`,De=l.dot?"":Ie,P=l.dot?Y:Oe;let U=l.bash===!0?he(l):Je;l.capture&&(U=`(${U})`),typeof l.noext=="boolean"&&(l.noextglob=l.noext);const w={input:y,index:-1,start:0,dot:l.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:v};y=e.removePrefix(y,w),b=y.length;const me=[],ue=[],se=[];let S=F,$;const Ae=()=>w.index===b-1,q=w.peek=(O=1)=>y[w.index+O],ee=w.advance=()=>y[++w.index]||"",Te=()=>y.slice(w.index+1),Ee=(O="",J=0)=>{w.consumed+=O,w.index+=J},Ke=O=>{w.output+=O.output!=null?O.output:O.value,Ee(O.value)},Zu=()=>{let O=1;for(;q()==="!"&&(q(2)!=="("||q(3)==="?");)ee(),w.start++,O++;return O%2===0?!1:(w.negated=!0,w.start++,!0)},Cs=O=>{w[O]++,se.push(O)},We=O=>{w[O]--,se.pop()},G=O=>{if(S.type==="globstar"){const J=w.braces>0&&(O.type==="comma"||O.type==="brace"),x=O.extglob===!0||me.length&&(O.type==="pipe"||O.type==="paren");O.type!=="slash"&&O.type!=="paren"&&!J&&!x&&(w.output=w.output.slice(0,-S.output.length),S.type="star",S.value="*",S.output=U,w.output+=S.output)}if(me.length&&O.type!=="paren"&&(me[me.length-1].inner+=O.value),(O.value||O.output)&&Ke(O),S&&S.type==="text"&&O.type==="text"){S.output=(S.output||S.value)+O.value,S.value+=O.value;return}O.prev=S,v.push(O),S=O},As=(O,J)=>{const x={...W[J],conditions:1,inner:""};x.prev=S,x.parens=w.parens,x.output=w.output,x.startIndex=w.index,x.tokensIndex=v.length;const j=(l.capture?"(":"")+x.open;Cs("parens"),G({type:O,value:J,output:w.output?"":Le}),G({type:"paren",extglob:!0,value:ee(),output:j}),me.push(x)},ea=O=>{const J=y.slice(O.startIndex,w.index+1),x=y.slice(O.startIndex+2,w.index),j=g(x,l);if((O.type==="plus"||O.type==="star")&&j.risky){const V=j.safeOutput?(O.output?"":Le)+(l.capture?`(${j.safeOutput})`:j.safeOutput):void 0,Be=v[O.tokensIndex];Be.type="text",Be.value=J,Be.output=V||e.escapeRegex(J);for(let Re=O.tokensIndex+1;Re<v.length;Re++)v[Re].value="",v[Re].output="",delete v[Re].suffix;w.output=O.output+Be.output,w.backtrack=!0,G({type:"paren",extglob:!0,value:$,output:""}),We("parens");return}let te=O.close+(l.capture?")":""),ae;if(O.type==="negate"){let V=U;if(O.inner&&O.inner.length>1&&O.inner.includes("/")&&(V=he(l)),(V!==U||Ae()||/^\)+$/.test(Te()))&&(te=O.close=`)$))${V}`),O.inner.includes("*")&&(ae=Te())&&/^\.[^\\/.]+$/.test(ae)){const Be=p(ae,{...A,fastpaths:!1}).output;te=O.close=`)${Be})${V})`}O.prev.type==="bos"&&(w.negatedExtglob=!0)}G({type:"paren",extglob:!0,value:$,output:te}),We("parens")};if(l.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(y)){let O=!1,J=y.replace(i,(x,j,te,ae,V,Be)=>ae==="\\"?(O=!0,x):ae==="?"?j?j+ae+(V?Y.repeat(V.length):""):Be===0?P+(V?Y.repeat(V.length):""):Y.repeat(te.length):ae==="."?I.repeat(te.length):ae==="*"?j?j+ae+(V?U:""):U:j?x:`\\${x}`);return O===!0&&(l.unescape===!0?J=J.replace(/\\/g,""):J=J.replace(/\\+/g,x=>x.length%2===0?"\\\\":x?"\\":"")),J===y&&l.contains===!0?(w.output=y,w):(w.output=e.wrapOutput(J,w,A),w)}for(;!Ae();){if($=ee(),$==="\0")continue;if($==="\\"){const x=q();if(x==="/"&&l.bash!==!0||x==="."||x===";")continue;if(!x){$+="\\",G({type:"text",value:$});continue}const j=/^\\+/.exec(Te());let te=0;if(j&&j[0].length>2&&(te=j[0].length,w.index+=te,te%2!==0&&($+="\\")),l.unescape===!0?$=ee():$+=ee(),w.brackets===0){G({type:"text",value:$});continue}}if(w.brackets>0&&($!=="]"||S.value==="["||S.value==="[^")){if(l.posix!==!1&&$===":"){const x=S.value.slice(1);if(x.includes("[")&&(S.posix=!0,x.includes(":"))){const j=S.value.lastIndexOf("["),te=S.value.slice(0,j),ae=S.value.slice(j+2),V=n[ae];if(V){S.value=te+V,w.backtrack=!0,ee(),!F.output&&v.indexOf(S)===1&&(F.output=Le);continue}}}($==="["&&q()!==":"||$==="-"&&q()==="]")&&($=`\\${$}`),$==="]"&&(S.value==="["||S.value==="[^")&&($=`\\${$}`),l.posix===!0&&$==="!"&&S.value==="["&&($="^"),S.value+=$,Ke({value:$});continue}if(w.quotes===1&&$!=='"'){$=e.escapeRegex($),S.value+=$,Ke({value:$});continue}if($==='"'){w.quotes=w.quotes===1?0:1,l.keepQuotes===!0&&G({type:"text",value:$});continue}if($==="("){Cs("parens"),G({type:"paren",value:$});continue}if($===")"){if(w.parens===0&&l.strictBrackets===!0)throw new SyntaxError(a("opening","("));const x=me[me.length-1];if(x&&w.parens===x.parens+1){ea(me.pop());continue}G({type:"paren",value:$,output:w.parens?")":"\\)"}),We("parens");continue}if($==="["){if(l.nobracket===!0||!Te().includes("]")){if(l.nobracket!==!0&&l.strictBrackets===!0)throw new SyntaxError(a("closing","]"));$=`\\${$}`}else Cs("brackets");G({type:"bracket",value:$});continue}if($==="]"){if(l.nobracket===!0||S&&S.type==="bracket"&&S.value.length===1){G({type:"text",value:$,output:`\\${$}`});continue}if(w.brackets===0){if(l.strictBrackets===!0)throw new SyntaxError(a("opening","["));G({type:"text",value:$,output:`\\${$}`});continue}We("brackets");const x=S.value.slice(1);if(S.posix!==!0&&x[0]==="^"&&!x.includes("/")&&($=`/${$}`),S.value+=$,Ke({value:$}),l.literalBrackets===!1||e.hasRegexChars(x))continue;const j=e.escapeRegex(S.value);if(w.output=w.output.slice(0,-S.value.length),l.literalBrackets===!0){w.output+=j,S.value=j;continue}S.value=`(${B}${j}|${S.value})`,w.output+=S.value;continue}if($==="{"&&l.nobrace!==!0){Cs("braces");const x={type:"brace",value:$,output:"(",outputIndex:w.output.length,tokensIndex:w.tokens.length};ue.push(x),G(x);continue}if($==="}"){const x=ue[ue.length-1];if(l.nobrace===!0||!x){G({type:"text",value:$,output:$});continue}let j=")";if(x.dots===!0){const te=v.slice(),ae=[];for(let V=te.length-1;V>=0&&(v.pop(),te[V].type!=="brace");V--)te[V].type!=="dots"&&ae.unshift(te[V].value);j=u(ae,l),w.backtrack=!0}if(x.comma!==!0&&x.dots!==!0){const te=w.output.slice(0,x.outputIndex),ae=w.tokens.slice(x.tokensIndex);x.value=x.output="\\{",$=j="\\}",w.output=te;for(const V of ae)w.output+=V.output||V.value}G({type:"brace",value:$,output:j}),We("braces"),ue.pop();continue}if($==="|"){me.length>0&&me[me.length-1].conditions++,G({type:"text",value:$});continue}if($===","){let x=$;const j=ue[ue.length-1];j&&se[se.length-1]==="braces"&&(j.comma=!0,x="|"),G({type:"comma",value:$,output:x});continue}if($==="/"){if(S.type==="dot"&&w.index===w.start+1){w.start=w.index+1,w.consumed="",w.output="",v.pop(),S=F;continue}G({type:"slash",value:$,output:fe});continue}if($==="."){if(w.braces>0&&S.type==="dot"){S.value==="."&&(S.output=I);const x=ue[ue.length-1];S.type="dots",S.output+=$,S.value+=$,x.dots=!0;continue}if(w.braces+w.parens===0&&S.type!=="bos"&&S.type!=="slash"){G({type:"text",value:$,output:I});continue}G({type:"dot",value:$,output:I});continue}if($==="?"){if(!(S&&S.value==="(")&&l.noextglob!==!0&&q()==="("&&q(2)!=="?"){As("qmark",$);continue}if(S&&S.type==="paren"){const x=q();let j=$;(S.value==="("&&!/[!=<:]/.test(x)||x==="<"&&!/<([!=]|\w+>)/.test(Te()))&&(j=`\\${$}`),G({type:"text",value:$,output:j});continue}if(l.dot!==!0&&(S.type==="slash"||S.type==="bos")){G({type:"qmark",value:$,output:Oe});continue}G({type:"qmark",value:$,output:Y});continue}if($==="!"){if(l.noextglob!==!0&&q()==="("&&(q(2)!=="?"||!/[!=<:]/.test(q(3)))){As("negate",$);continue}if(l.nonegate!==!0&&w.index===0){Zu();continue}}if($==="+"){if(l.noextglob!==!0&&q()==="("&&q(2)!=="?"){As("plus",$);continue}if(S&&S.value==="("||l.regex===!1){G({type:"plus",value:$,output:ge});continue}if(S&&(S.type==="bracket"||S.type==="paren"||S.type==="brace")||w.parens>0){G({type:"plus",value:$});continue}G({type:"plus",value:ge});continue}if($==="@"){if(l.noextglob!==!0&&q()==="("&&q(2)!=="?"){G({type:"at",extglob:!0,value:$,output:""});continue}G({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);const x=r.exec(Te());x&&($+=x[0],w.index+=x[0].length),G({type:"text",value:$});continue}if(S&&(S.type==="globstar"||S.star===!0)){S.type="star",S.star=!0,S.value+=$,S.output=U,w.backtrack=!0,w.globstar=!0,Ee($);continue}let O=Te();if(l.noextglob!==!0&&/^\([^?]/.test(O)){As("star",$);continue}if(S.type==="star"){if(l.noglobstar===!0){Ee($);continue}const x=S.prev,j=x.prev,te=x.type==="slash"||x.type==="bos",ae=j&&(j.type==="star"||j.type==="globstar");if(l.bash===!0&&(!te||O[0]&&O[0]!=="/")){G({type:"star",value:$,output:""});continue}const V=w.braces>0&&(x.type==="comma"||x.type==="brace"),Be=me.length&&(x.type==="pipe"||x.type==="paren");if(!te&&x.type!=="paren"&&!V&&!Be){G({type:"star",value:$,output:""});continue}for(;O.slice(0,3)==="/**";){const Re=y[w.index+4];if(Re&&Re!=="/")break;O=O.slice(3),Ee("/**",3)}if(x.type==="bos"&&Ae()){S.type="globstar",S.value+=$,S.output=he(l),w.output=S.output,w.globstar=!0,Ee($);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&!ae&&Ae()){w.output=w.output.slice(0,-(x.output+S.output).length),x.output=`(?:${x.output}`,S.type="globstar",S.output=he(l)+(l.strictSlashes?")":"|$)"),S.value+=$,w.globstar=!0,w.output+=x.output+S.output,Ee($);continue}if(x.type==="slash"&&x.prev.type!=="bos"&&O[0]==="/"){const Re=O[1]!==void 0?"|$":"";w.output=w.output.slice(0,-(x.output+S.output).length),x.output=`(?:${x.output}`,S.type="globstar",S.output=`${he(l)}${fe}|${fe}${Re})`,S.value+=$,w.output+=x.output+S.output,w.globstar=!0,Ee($+ee()),G({type:"slash",value:"/",output:""});continue}if(x.type==="bos"&&O[0]==="/"){S.type="globstar",S.value+=$,S.output=`(?:^|${fe}|${he(l)}${fe})`,w.output=S.output,w.globstar=!0,Ee($+ee()),G({type:"slash",value:"/",output:""});continue}if(V&&O[0]==="/"){S.type="globstar",S.value+=$,S.output=`(?:^|${fe}|${he(l)}${fe})`,w.output+=S.output,w.globstar=!0,Ee($+ee()),G({type:"slash",value:"/",output:""});continue}w.output=w.output.slice(0,-S.output.length),S.type="globstar",S.output=he(l),S.value+=$,w.output+=S.output,w.globstar=!0,Ee($);continue}const J={type:"star",value:$,output:U};if(l.bash===!0){J.output=".*?",(S.type==="bos"||S.type==="slash")&&(J.output=De+J.output),G(J);continue}if(S&&(S.type==="bracket"||S.type==="paren")&&l.regex===!0){J.output=$,G(J);continue}(w.index===w.start||S.type==="slash"||S.type==="dot")&&(S.type==="dot"?(w.output+=ze,S.output+=ze):l.dot===!0?(w.output+=xe,S.output+=xe):(w.output+=De,S.output+=De),q()!=="*"&&(w.output+=Le,S.output+=Le)),G(J)}for(;w.brackets>0;){if(l.strictBrackets===!0)throw new SyntaxError(a("closing","]"));w.output=e.escapeLast(w.output,"["),We("brackets")}for(;w.parens>0;){if(l.strictBrackets===!0)throw new SyntaxError(a("closing",")"));w.output=e.escapeLast(w.output,"("),We("parens")}for(;w.braces>0;){if(l.strictBrackets===!0)throw new SyntaxError(a("closing","}"));w.output=e.escapeLast(w.output,"{"),We("braces")}if(l.strictSlashes!==!0&&(S.type==="star"||S.type==="bracket")&&G({type:"maybe_slash",value:"",output:`${fe}?`}),w.backtrack===!0){w.output="";for(const O of w.tokens)w.output+=O.output!=null?O.output:O.value,O.suffix&&(w.output+=O.suffix)}return w};return p.fastpaths=(y,A)=>{const l={...A},E=typeof l.maxLength=="number"?Math.min(s,l.maxLength):s,b=y.length;if(b>E)throw new SyntaxError(`Input length: ${b}, exceeds maximum allowed length: ${E}`);y=o[y]||y;const{DOT_LITERAL:F,SLASH_LITERAL:v,ONE_CHAR:B,DOTS_SLASH:k,NO_DOT:W,NO_DOTS:I,NO_DOTS_SLASH:ge,STAR:fe,START_ANCHOR:Le}=t.globChars(l.windows),Z=l.dot?I:W,Ie=l.dot?ge:W,ze=l.capture?"":"?:",xe={negated:!1,prefix:""};let Y=l.bash===!0?".*?":fe;l.capture&&(Y=`(${Y})`);const Oe=De=>De.noglobstar===!0?Y:`(${ze}(?:(?!${Le}${De.dot?k:F}).)*?)`,Je=De=>{switch(De){case"*":return`${Z}${B}${Y}`;case".*":return`${F}${B}${Y}`;case"*.*":return`${Z}${Y}${F}${B}${Y}`;case"*/*":return`${Z}${Y}${v}${B}${Ie}${Y}`;case"**":return Z+Oe(l);case"**/*":return`(?:${Z}${Oe(l)}${v})?${Ie}${B}${Y}`;case"**/*.*":return`(?:${Z}${Oe(l)}${v})?${Ie}${Y}${F}${B}${Y}`;case"**/.*":return`(?:${Z}${Oe(l)}${v})?${F}${B}${Y}`;default:{const P=/^(.*?)\.(\w+)$/.exec(De);if(!P)return;const U=Je(P[1]);return U?U+F+P[2]:void 0}}},pe=e.removePrefix(y,xe);let he=Je(pe);return he&&l.strictSlashes!==!0&&(he+=`${v}?`),he},sn=p,sn}var nn,Ir;function Wa(){if(Ir)return nn;Ir=1;const t=Ha(),e=Ka(),s=Us(),n=js(),r=o=>o&&typeof o=="object"&&!Array.isArray(o),i=(o,u,a=!1)=>{if(Array.isArray(o)){const g=o.map(p=>i(p,u,a));return p=>{for(const y of g){const A=y(p);if(A)return A}return!1}}const c=r(o)&&o.tokens&&o.input;if(o===""||typeof o!="string"&&!c)throw new TypeError("Expected pattern to be a non-empty string");const h=u||{},f=h.windows,m=c?i.compileRe(o,u):i.makeRe(o,u,!1,!0),D=m.state;delete m.state;let C=()=>!1;if(h.ignore){const g={...u,ignore:null,onMatch:null,onResult:null};C=i(h.ignore,g,a)}const d=(g,p=!1)=>{const{isMatch:y,match:A,output:l}=i.test(g,m,u,{glob:o,posix:f}),E={glob:o,state:D,regex:m,posix:f,input:g,output:l,match:A,isMatch:y};if(typeof h.onResult=="function"&&h.onResult(E),y===!1)return E.isMatch=!1,p?E:!1;e:if(C(g)){if(typeof h.onIgnore=="function"&&h.onIgnore(E)===n.UNIGNORE){E.isMatch=!0;break e}return E.isMatch=!1,p?E:!1}return typeof h.onMatch=="function"&&h.onMatch(E),p?E:!0};return a&&(d.state=D),d};return i.test=(o,u,a,{glob:c,posix:h}={})=>{if(typeof o!="string")throw new TypeError("Expected input to be a string");if(o==="")return{isMatch:!1,output:""};const f=a||{},m=f.format||(h?s.toPosixSlashes:null);let D=o===c,C=D&&m?m(o):o;return D===!1&&(C=m?m(o):o,D=C===c),(D===!1||f.capture===!0)&&(f.matchBase===!0||f.basename===!0?D=i.matchBase(o,u,a,h):D=u.exec(C)),{isMatch:!!D,match:D,output:C}},i.matchBase=(o,u,a)=>(u instanceof RegExp?u:i.makeRe(u,a)).test(s.basename(o)),i.isMatch=(o,u,a)=>i(u,a)(o),i.parse=(o,u)=>Array.isArray(o)?o.map(a=>i.parse(a,u)):e(o,{...u,fastpaths:!1}),i.scan=(o,u)=>t(o,u),i.compileRe=(o,u,a=!1,c=!1)=>{if(a===!0)return o.output;const h=u||{},f=h.contains?"":"^",m=h.contains?"":"$";let D=`${f}(?:${o.output})${m}`;o&&o.negated===!0&&(D=`^(?!${D}).*$`);const C=i.toRegex(D,u);return c===!0&&(C.state=o),C},i.makeRe=(o,u={},a=!1,c=!1)=>{if(!o||typeof o!="string")throw new TypeError("Expected a non-empty string");let h={negated:!1,fastpaths:!0};return u.fastpaths!==!1&&(o[0]==="."||o[0]==="*")&&(h.output=e.fastpaths(o,u)),h.output||(h=e(o,u)),i.compileRe(h,u,a,c)},i.toRegex=(o,u)=>{try{const a=u||{};return new RegExp(o,a.flags||(a.nocase?"i":""))}catch(a){if(u&&u.debug===!0)throw a;return/$^/}},i.constants=n,nn=i,nn}var rn,Tr;function qa(){if(Tr)return rn;Tr=1;const t=Wa(),e=Us();function s(n,r,i=!1){return r&&(r.windows===null||r.windows===void 0)&&(r={...r,windows:e.isWindows()}),t(n,r,i)}return Object.assign(s,t),rn=s,rn}var Va=qa();const tt=rr(Va),Ya=K(import.meta.url),Tt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ms=t=>{if(typeof Tt<"u"&&Tt.versions&&Tt.versions.node){const[e,s]=Tt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Tt.getBuiltinModule(t)}return Ya(t)},_r=ms("fs"),Xa={..._r,default:_r},{statSync:za,stat:Ja,realpathSync:Qa,realpath:Za,readdirSync:ec,readdir:tc}=ms("fs"),{sep:Hi,basename:sc,dirname:Wn,resolve:Ki,normalize:nc,relative:rc,posix:st,isAbsolute:ic}=ms("path"),{fileURLToPath:oc}=ms("url"),{createRequire:uc}=ms("module");var Pr=uc(import.meta.url);function ac(t){let e=nc(t);return e.length>1&&e[e.length-1]===Hi&&(e=e.substring(0,e.length-1)),e}const cc=/[\\/]/g;function Wi(t,e){return t.replace(cc,e)}const lc=/^[a-z]:[\\/]$/i;function hc(t){return t==="/"||lc.test(t)}function on(t,e){const{resolvePaths:s,normalizePath:n,pathSeparator:r}=e,i=process.platform==="win32"&&t.includes("/")||t.startsWith(".");if(s&&(t=Ki(t)),(n||i)&&(t=ac(t)),t===".")return"";const o=t[t.length-1]!==r;return Wi(o?t+r:t,r)}function qi(t,e){return e+t}function fc(t,e){return function(s,n){return n.startsWith(t)?n.slice(t.length)+s:Wi(rc(t,n),e.pathSeparator)+e.pathSeparator+s}}function pc(t){return t}function dc(t,e,s){return e+t+s}function mc(t,e){const{relativePaths:s,includeBasePath:n}=e;return s&&t?fc(t,e):n?qi:pc}function gc(t){return function(e,s){s.push(e.substring(t.length)||".")}}function Dc(t){return function(e,s,n){const r=e.substring(t.length)||".";n.every(i=>i(r,!0))&&s.push(r)}}const Ec=(t,e)=>{e.push(t||".")},yc=(t,e,s)=>{const n=t||".";s.every(r=>r(n,!0))&&e.push(n)},Cc=()=>{};function Ac(t,e){const{includeDirs:s,filters:n,relativePaths:r}=e;return s?r?n&&n.length?Dc(t):gc(t):n&&n.length?yc:Ec:Cc}const bc=(t,e,s,n)=>{n.every(r=>r(t,!1))&&s.files++},vc=(t,e,s,n)=>{n.every(r=>r(t,!1))&&e.push(t)},Sc=(t,e,s,n)=>{s.files++},$c=(t,e)=>{e.push(t)},wc=()=>{};function Fc(t){const{excludeFiles:e,filters:s,onlyCounts:n}=t;return e?wc:s&&s.length?n?bc:vc:n?Sc:$c}const Nc=t=>t,Lc=()=>[""].slice(0,0);function xc(t){return t.group?Lc:Nc}const Oc=(t,e,s)=>{t.push({directory:e,files:s,dir:e})},Bc=()=>{};function Rc(t){return t.group?Oc:Bc}const kc=function(t,e,s){const{queue:n,fs:r,options:{suppressErrors:i}}=e;n.enqueue(),r.realpath(t,(o,u)=>{if(o)return n.dequeue(i?null:o,e);r.stat(u,(a,c)=>{if(a)return n.dequeue(i?null:a,e);if(c.isDirectory()&&Vi(t,u,e))return n.dequeue(null,e);s(c,u),n.dequeue(null,e)})})},Ic=function(t,e,s){const{queue:n,fs:r,options:{suppressErrors:i}}=e;n.enqueue();try{const o=r.realpathSync(t),u=r.statSync(o);if(u.isDirectory()&&Vi(t,o,e))return;s(u,o)}catch(o){if(!i)throw o}};function Tc(t,e){return!t.resolveSymlinks||t.excludeSymlinks?null:e?Ic:kc}function Vi(t,e,s){if(s.options.useRealPaths)return _c(e,s);let n=Wn(t),r=1;for(;n!==s.root&&r<2;){const i=s.symlinks.get(n);i&&(i===e||i.startsWith(e)||e.startsWith(i))?r++:n=Wn(n)}return s.symlinks.set(t,e),r>1}function _c(t,e){return e.visited.includes(t+e.options.pathSeparator)}const Pc=t=>t.counts,Mc=t=>t.groups,Gc=t=>t.paths,jc=t=>t.paths.slice(0,t.options.maxFiles),Uc=(t,e,s)=>(Hs(e,s,t.counts,t.options.suppressErrors),null),Hc=(t,e,s)=>(Hs(e,s,t.paths,t.options.suppressErrors),null),Kc=(t,e,s)=>(Hs(e,s,t.paths.slice(0,t.options.maxFiles),t.options.suppressErrors),null),Wc=(t,e,s)=>(Hs(e,s,t.groups,t.options.suppressErrors),null);function Hs(t,e,s,n){e(t&&!n?t:null,s)}function qc(t,e){const{onlyCounts:s,group:n,maxFiles:r}=t;return s?e?Pc:Uc:n?e?Mc:Wc:r?e?jc:Kc:e?Gc:Hc}const Yi={withFileTypes:!0},Vc=(t,e,s,n,r)=>{if(t.queue.enqueue(),n<0)return t.queue.dequeue(null,t);const{fs:i}=t;t.visited.push(e),t.counts.directories++,i.readdir(e||".",Yi,(o,u=[])=>{r(u,s,n),t.queue.dequeue(t.options.suppressErrors?null:o,t)})},Yc=(t,e,s,n,r)=>{const{fs:i}=t;if(n<0)return;t.visited.push(e),t.counts.directories++;let o=[];try{o=i.readdirSync(e||".",Yi)}catch(u){if(!t.options.suppressErrors)throw u}r(o,s,n)};function Xc(t){return t?Yc:Vc}var zc=class{count=0;constructor(t){this.onQueueEmpty=t}enqueue(){return this.count++,this.count}dequeue(t,e){this.onQueueEmpty&&(--this.count<=0||t)&&(this.onQueueEmpty(t,e),t&&(e.controller.abort(),this.onQueueEmpty=void 0))}},Jc=class{_files=0;_directories=0;set files(t){this._files=t}get files(){return this._files}set directories(t){this._directories=t}get directories(){return this._directories}get dirs(){return this._directories}},Qc=class{aborted=!1;abort(){this.aborted=!0}},Xi=class{root;isSynchronous;state;joinPath;pushDirectory;pushFile;getArray;groupFiles;resolveSymlink;walkDirectory;callbackInvoker;constructor(e,s,n){this.isSynchronous=!n,this.callbackInvoker=qc(s,this.isSynchronous),this.root=on(e,s),this.state={root:hc(this.root)?this.root:this.root.slice(0,-1),paths:[""].slice(0,0),groups:[],counts:new Jc,options:s,queue:new zc((r,i)=>this.callbackInvoker(i,r,n)),symlinks:new Map,visited:[""].slice(0,0),controller:new Qc,fs:s.fs||Xa},this.joinPath=mc(this.root,s),this.pushDirectory=Ac(this.root,s),this.pushFile=Fc(s),this.getArray=xc(s),this.groupFiles=Rc(s),this.resolveSymlink=Tc(s,this.isSynchronous),this.walkDirectory=Xc(this.isSynchronous)}start(){return this.pushDirectory(this.root,this.state.paths,this.state.options.filters),this.walkDirectory(this.state,this.root,this.root,this.state.options.maxDepth,this.walk),this.isSynchronous?this.callbackInvoker(this.state,null):null}walk=(e,s,n)=>{const{paths:r,options:{filters:i,resolveSymlinks:o,excludeSymlinks:u,exclude:a,maxFiles:c,signal:h,useRealPaths:f,pathSeparator:m},controller:D}=this.state;if(D.aborted||h&&h.aborted||c&&r.length>c)return;const C=this.getArray(this.state.paths);for(let d=0;d<e.length;++d){const g=e[d];if(g.isFile()||g.isSymbolicLink()&&!o&&!u){const p=this.joinPath(g.name,s);this.pushFile(p,C,this.state.counts,i)}else if(g.isDirectory()){let p=dc(g.name,s,this.state.options.pathSeparator);if(a&&a(g.name,p))continue;this.pushDirectory(p,r,i),this.walkDirectory(this.state,p,p,n-1,this.walk)}else if(this.resolveSymlink&&g.isSymbolicLink()){let p=qi(g.name,s);this.resolveSymlink(p,this.state,(y,A)=>{if(y.isDirectory()){if(A=on(A,this.state.options),a&&a(g.name,f?A:p+m))return;this.walkDirectory(this.state,A,f?A:p+m,n-1,this.walk)}else{A=f?A:p;const l=sc(A),E=on(Wn(A),this.state.options);A=this.joinPath(l,E),this.pushFile(A,C,this.state.counts,i)}})}}this.groupFiles(this.state.groups,s,C)}};function Zc(t,e){return new Promise((s,n)=>{zi(t,e,(r,i)=>{if(r)return n(r);s(i)})})}function zi(t,e,s){new Xi(t,e,s).start()}function el(t,e){return new Xi(t,e).start()}var Mr=class{constructor(e,s){this.root=e,this.options=s}withPromise(){return Zc(this.root,this.options)}withCallback(e){zi(this.root,this.options,e)}sync(){return el(this.root,this.options)}};let Ji=null;try{Pr.resolve("picomatch"),Ji=Pr("picomatch")}catch{}var tl=class{globCache={};options={maxDepth:1/0,suppressErrors:!0,pathSeparator:Hi,filters:[]};globFunction;constructor(t){this.options={...this.options,...t},this.globFunction=this.options.globFunction}group(){return this.options.group=!0,this}withPathSeparator(t){return this.options.pathSeparator=t,this}withBasePath(){return this.options.includeBasePath=!0,this}withRelativePaths(){return this.options.relativePaths=!0,this}withDirs(){return this.options.includeDirs=!0,this}withMaxDepth(t){return this.options.maxDepth=t,this}withMaxFiles(t){return this.options.maxFiles=t,this}withFullPaths(){return this.options.resolvePaths=!0,this.options.includeBasePath=!0,this}withErrors(){return this.options.suppressErrors=!1,this}withSymlinks({resolvePaths:t=!0}={}){return this.options.resolveSymlinks=!0,this.options.useRealPaths=t,this.withFullPaths()}withAbortSignal(t){return this.options.signal=t,this}normalize(){return this.options.normalizePath=!0,this}filter(t){return this.options.filters.push(t),this}onlyDirs(){return this.options.excludeFiles=!0,this.options.includeDirs=!0,this}exclude(t){return this.options.exclude=t,this}onlyCounts(){return this.options.onlyCounts=!0,this}crawl(t){return new Mr(t||".",this.options)}withGlobFunction(t){return this.globFunction=t,this}crawlWithOptions(t,e){return this.options={...this.options,...e},new Mr(t||".",this.options)}glob(...t){return this.globFunction?this.globWithOptions(t):this.globWithOptions(t,{dot:!0})}globWithOptions(t,...e){const s=this.globFunction||Ji;if(!s)throw new Error("Please specify a glob function to use glob matching.");var n=this.globCache[t.join("\0")];return n||(n=s(t,...e),this.globCache[t.join("\0")]=n),this.options.filters.push(r=>n(r)),this}};const sl=Array.isArray,Qi=/\\/g,nl=/^[A-Za-z]:$/,Zi=process.platform==="win32",rl=/^(\/?\.\.)+$/;function Gr(t,e={}){const s=t.length,n=Array(s),r=Array(s);let i,o;for(i=0;i<s;i++){const u=eo(t[i]);n[i]=u;const a=u.length,c=Array(a);for(o=0;o<a;o++)c[o]=tt(u[o],e);r[i]=c}return u=>{const a=u.split("/");if(a[0]===".."&&rl.test(u))return!0;for(i=0;i<s;i++){const c=n[i],h=r[i],f=a.length,m=Math.min(f,c.length);for(o=0;o<m;){const D=c[o];if(D.includes("/"))return!0;if(!h[o](a[o]))break;if(!e.noglobstar&&D==="**")return!0;o++}if(o===f)return!0}return!1}}const il=/^[A-Z]:\/$/i,ol=Zi?t=>il.test(t):t=>t==="/";function jr(t,e,s){if(t===e||e.startsWith(`${t}/`)){if(s){const r=t.length+ +!ol(t);return(i,o)=>i.slice(r,o?-1:void 0)||"."}const n=e.slice(t.length+1);return n?(r,i)=>{if(r===".")return n;const o=`${n}/${r}`;return i?o.slice(0,-1):o}:(r,i)=>i&&r!=="."?r.slice(0,-1):r}return s?n=>st.relative(t,n)||".":n=>st.relative(t,`${e}/${n}`)||"."}function ul(t,e){if(e.startsWith(`${t}/`)){const s=e.slice(t.length+1);return n=>`${s}/${n}`}return s=>{const n=st.relative(t,`${e}/${s}`);return s[s.length-1]==="/"&&n!==""?`${n}/`:n||"."}}function Ur(t){return t.replace(nl,e=>`${e}/`)}const al={parts:!0};function eo(t){var e;const s=tt.scan(t,al);return!((e=s.parts)===null||e===void 0)&&e.length?s.parts:[t]}const cl=/(?<!\\)([()[\]{}*?|]|^!|[!+@](?=\()|\\(?![()[\]{}!*+?@|]))/g,ll=/(?<!\\)([()[\]{}]|^!|[!+@](?=\())/g,hl=t=>t.replace(cl,"\\$&"),fl=t=>t.replace(ll,"\\$&"),pl=Zi?fl:hl;function dl(t,e){const s=tt.scan(t);return s.isGlob||s.negated}function is(...t){console.log(`[tinyglobby ${new Date().toLocaleTimeString("es")}]`,...t)}function to(t){return typeof t=="string"?[t]:t??[]}const ml=/^(\/?\.\.)+/,gl=/\\(?=[()[\]{}!*+?@|])/g;function un(t,e,s,n){var r;const i=e.cwd;let o=t;t[t.length-1]==="/"&&(o=t.slice(0,-1));const u=o.lastIndexOf("/"),a=(u===-1?o:o.slice(u+1)).startsWith("!(");o[o.length-1]!=="*"&&!a&&e.expandDirectories&&(o+="/**");const c=pl(i);o=ic(o.replace(gl,""))?st.relative(c,o):st.normalize(o);const h=(r=ml.exec(o))===null||r===void 0?void 0:r[0],f=eo(o);if(h){const D=(h.length+1)/3;let C=0;const d=c.split("/");for(;C<D&&f[C+D]===d[d.length+C-D];)o=o.slice(0,(D-C-1)*3)+o.slice((D-C)*3+f[C+D].length+1)||".",C++;const g=st.join(i,h.slice(C*3));g[0]!=="."&&s.root.length>g.length&&(s.root=Ur(g),s.depthOffset=-D+C)}if(!n&&s.depthOffset>=0){var m;(m=s.commonPath)!==null&&m!==void 0||(s.commonPath=f);const D=[],C=Math.min(s.commonPath.length,f.length);for(let d=0;d<C;d++){const g=f[d];if(g==="**"&&!f[d+1]){D.pop();break}if(d===f.length-1||g!==s.commonPath[d]||dl(g))break;D.push(g)}s.depthOffset=D.length,s.commonPath=D,s.root=Ur(D.length>0?st.join(i,...D):i)}return o}function Dl(t,e,s){const n=[],r=[],i=[];for(const o of t.ignore)o&&(o[0]!=="!"||o[1]==="("?r.push(un(o,t,s,!0)):i.push(o.slice(1)));for(const o of e)o&&(o[0]!=="!"||o[1]==="("?n.push(un(o,t,s,!1)):(o[1]!=="!"||o[2]==="(")&&r.push(un(o.slice(1),t,s,!0)));return{match:n,ignore:r,unignore:i}}function El(t,e){const s=t.cwd,n={root:s,depthOffset:0},r=Dl(t,e,n);t.debug&&is("internal processing patterns:",r);const{absolute:i,caseSensitiveMatch:o,debug:u,dot:a,followSymbolicLinks:c,onlyDirectories:h}=t,f=n.root.replace(Qi,""),m={dot:a,nobrace:t.braceExpansion===!1,nocase:!o,noextglob:t.extglob===!1,noglobstar:t.globstar===!1,posix:!0},D=r.unignore.length>0,C=D?tt(r.unignore,m):void 0,d=D?Gr(r.unignore,m):void 0,g=tt(r.match,{...m,ignore:r.ignore,onIgnore:C?B=>C(B.output)&&tt.constants.UNIGNORE:void 0}),p=tt(r.ignore,m),y=Gr(r.match,m),A=jr(s,f,i),l=i?A:jr(s,f,!0),E=r.match.length>0&&r.match.every(B=>B==="**"||B==="**/*"),b=r.ignore.length>0||D||!E?(B,k)=>{const W=l(k,!0);return W==="."||d&&d(W)?!1:!y(W)||p(W)}:void 0;let F;t.deep!==void 0&&(F=Math.round(t.deep-n.depthOffset));const v=new tl({filters:[u?(B,k)=>{const W=A(B,k),I=g(W);return I&&is(`matched ${W}`),I}:(B,k)=>{const W=A(B,k);return g(W)}],exclude:u&&b?(B,k)=>{const W=b(B,k);return is(`${W?"skipped":"crawling"} ${k}`),W}:b,fs:t.fs,pathSeparator:"/",relativePaths:!i,resolvePaths:i,includeBasePath:i,resolveSymlinks:c,excludeSymlinks:!c,excludeFiles:h,includeDirs:h||!t.onlyFiles,maxDepth:F,signal:t.signal}).crawl(f);return t.debug&&is("internal properties:",{...n,root:f}),[v,s!==f&&!i&&ul(s,f)]}function yl(t,e){if(e)for(let s=t.length-1;s>=0;s--)t[s]=e(t[s]);return t}const Hr={caseSensitiveMatch:!0,debug:!!process.env.TINYGLOBBY_DEBUG,expandDirectories:!0,followSymbolicLinks:!0,onlyFiles:!0};function Cl(t){const e=Object.assign({},t);for(const s in Hr)e[s]===void 0&&Object.assign(e,{[s]:Hr[s]});return e.cwd=(e.cwd instanceof URL?oc(e.cwd):Ki(e.cwd||process.cwd())).replace(Qi,"/"),e.ignore=to(e.ignore),e.fs&&(e.fs={readdir:e.fs.readdir||tc,readdirSync:e.fs.readdirSync||ec,realpath:e.fs.realpath||Za,realpathSync:e.fs.realpathSync||Qa,stat:e.fs.stat||Ja,statSync:e.fs.statSync||za}),e.debug&&is("globbing with options:",e),e}function Al(t,e={}){var s;if(t&&e?.patterns)throw new Error("Cannot pass patterns as both an argument and an option");const n=sl(t)||typeof t=="string",r=to((s=n?t:t.patterns)!==null&&s!==void 0?s:"**/*"),i=Cl(n?e:t);return r.length>0?El(i,r):[]}async function Hd(t,e){const[s,n]=Al(t,e);return s?yl(await s.withPromise(),n):[]}var an,Kr;function bl(){if(Kr)return an;Kr=1;/*!
2
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
3
+ *
4
+ * Copyright (c) 2014-2016, Jon Schlinkert.
5
+ * Licensed under the MIT License.
6
+ */return an=function(t){if(typeof t!="string"||t==="")return!1;for(var e;e=/(\\).|([@?!+*]\(.*\))/g.exec(t);){if(e[2])return!0;t=t.slice(e.index+e[0].length)}return!1},an}var cn,Wr;function so(){if(Wr)return cn;Wr=1;/*!
7
+ * is-glob <https://github.com/jonschlinkert/is-glob>
8
+ *
9
+ * Copyright (c) 2014-2017, Jon Schlinkert.
10
+ * Released under the MIT License.
11
+ */var t=bl(),e={"{":"}","(":")","[":"]"},s=function(r){if(r[0]==="!")return!0;for(var i=0,o=-2,u=-2,a=-2,c=-2,h=-2;i<r.length;){if(r[i]==="*"||r[i+1]==="?"&&/[\].+)]/.test(r[i])||u!==-1&&r[i]==="["&&r[i+1]!=="]"&&(u<i&&(u=r.indexOf("]",i)),u>i&&(h===-1||h>u||(h=r.indexOf("\\",i),h===-1||h>u)))||a!==-1&&r[i]==="{"&&r[i+1]!=="}"&&(a=r.indexOf("}",i),a>i&&(h=r.indexOf("\\",i),h===-1||h>a))||c!==-1&&r[i]==="("&&r[i+1]==="?"&&/[:!=]/.test(r[i+2])&&r[i+3]!==")"&&(c=r.indexOf(")",i),c>i&&(h=r.indexOf("\\",i),h===-1||h>c))||o!==-1&&r[i]==="("&&r[i+1]!=="|"&&(o<i&&(o=r.indexOf("|",i)),o!==-1&&r[o+1]!==")"&&(c=r.indexOf(")",o),c>o&&(h=r.indexOf("\\",o),h===-1||h>c))))return!0;if(r[i]==="\\"){var f=r[i+1];i+=2;var m=e[f];if(m){var D=r.indexOf(m,i);D!==-1&&(i=D+1)}if(r[i]==="!")return!0}else i++}return!1},n=function(r){if(r[0]==="!")return!0;for(var i=0;i<r.length;){if(/[*?{}()[\]]/.test(r[i]))return!0;if(r[i]==="\\"){var o=r[i+1];i+=2;var u=e[o];if(u){var a=r.indexOf(u,i);a!==-1&&(i=a+1)}if(r[i]==="!")return!0}else i++}return!1};return cn=function(r,i){if(typeof r!="string"||r==="")return!1;if(t(r))return!0;var o=s;return i&&i.strict===!1&&(o=n),o(r)},cn}const vl=K(import.meta.url),_t=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,no=t=>{if(typeof _t<"u"&&_t.versions&&_t.versions.node){const[e,s]=_t.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return _t.getBuiltinModule(t)}return vl(t)},Sl=no("path"),$l=no("os");var ln,qr;function wl(){if(qr)return ln;qr=1;var t=so(),e=Sl.posix.dirname,s=$l.platform()==="win32",n="/",r=/\\/g,i=/\\([!*?|[\](){}])/g;ln=function(a,c){var h=Object.assign({flipBackslashes:!0},c);h.flipBackslashes&&s&&a.indexOf(n)<0&&(a=a.replace(r,n)),o(a)&&(a+=n),a+="a";do a=e(a);while(u(a));return a.replace(i,"$1")};function o(a){var c=a.slice(-1),h;switch(c){case"}":h="{";break;case"]":h="[";break;default:return!1}var f=a.indexOf(h);return f<0?!1:a.slice(f+1,-1).includes(n)}function u(a){return/\([^()]+$/.test(a)||a[0]==="{"||a[0]==="["||/[^\\][{[]/.test(a)?!0:t(a)}return ln}var Fl=wl();const Nl=rr(Fl),Kd=(t,e)=>Nl(t,e),Ll=K(import.meta.url),Pt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xl=t=>{if(typeof Pt<"u"&&Pt.versions&&Pt.versions.node){const[e,s]=Pt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Pt.getBuiltinModule(t)}return Ll(t)},{access:Ol}=xl("node:fs/promises");async function Wd(t,e=nr){gt(t),t=ye(t);try{return await Ol(t,e),!0}catch{return!1}}const Bl=K(import.meta.url),Mt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Rl=t=>{if(typeof Mt<"u"&&Mt.versions&&Mt.versions.node){const[e,s]=Mt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Mt.getBuiltinModule(t)}return Bl(t)},{accessSync:kl}=Rl("node:fs");function Vr(t,e=nr){gt(t),t=ye(t);try{return kl(t,e),!0}catch{return!1}}var Il=so();rr(Il);const Tl=K(import.meta.url),Gt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ro=t=>{if(typeof Gt<"u"&&Gt.versions&&Gt.versions.node){const[e,s]=Gt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Gt.getBuiltinModule(t)}return Tl(t)};ro("node:fs/promises");ro("node:fs");let io=class extends Error{constructor(e){super(`ENOENT: ${e}`)}get code(){return"ENOENT"}set code(e){throw new Error("Cannot overwrite code ENOENT")}get name(){return"NotFoundError"}set name(e){throw new Error("Cannot overwrite name of NotFoundError")}},_l=class extends Error{constructor(e){super(`EPERM: Operation not permitted, ${e}`)}get code(){return"EPERM"}set code(e){throw new Error("Cannot overwrite code EPERM")}get name(){return"PermissionError"}set name(e){throw new Error("Cannot overwrite name of PermissionError")}};const oo=(t,e)=>{const s=t?.code;return s==="ENOENT"?new io(`no such file or directory, open '${e}'`):s==="EACCES"||s==="EPERM"?new _l(`unable to read the non-readable file: ${e}`):t},Pl=K(import.meta.url),jt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,uo=t=>{if(typeof jt<"u"&&jt.versions&&jt.versions.node){const[e,s]=jt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return jt.getBuiltinModule(t)}return Pl(t)},{readFile:Ml}=uo("node:fs/promises"),{unzip:Gl,brotliDecompress:jl}=uo("node:zlib"),Ul={brotli:jl,gzip:Gl,none:(t,e)=>{e(null,t)}},ir=async(t,e)=>{gt(t),t=ye(t);const{buffer:s,compression:n,encoding:r,flag:i}=e??{};let o;try{o=await Ml(t,i?{flag:i}:{})}catch(u){throw oo(u,t)}return await new Promise((u,a)=>{Ul[n??"none"](o,(c,h)=>{c?a(c):u(s?h:h.toString(r??"utf8"))})})},Hl=K(import.meta.url),Ut=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ao=t=>{if(typeof Ut<"u"&&Ut.versions&&Ut.versions.node){const[e,s]=Ut.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Ut.getBuiltinModule(t)}return Hl(t)},{readFileSync:Kl}=ao("node:fs"),{unzipSync:Wl,brotliDecompressSync:ql}=ao("node:zlib"),Vl={brotli:ql,gzip:Wl,none:t=>t},or=(t,e)=>{gt(t),t=ye(t);const{buffer:s,compression:n,encoding:r,flag:i}=e??{};let o;try{o=Kl(t,i?{flag:i}:{})}catch(c){throw oo(c,t)}const u=Vl[n??"none"],a=u(o);return s?a:a.toString(r??"utf8")},Yl=K(import.meta.url),Ht=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Xl=t=>{if(typeof Ht<"u"&&Ht.versions&&Ht.versions.node){const[e,s]=Ht.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Ht.getBuiltinModule(t)}return Yl(t)},{createRequire:co}=Xl("node:module"),zl=globalThis.process??Object.create(null),Yr={versions:{}},Xr=new Proxy(zl,{get(t,e){if(e in t)return t[e];if(e in Yr)return Yr[e]}}),Jl=t=>t.replaceAll(/\r\n|\r(?!\n)|\n/gu,`
12
+ `),Ql=(t,e,s,n)=>{const r={column:0,line:-1,...t.start},i={...r,...t.end},o=r.line,u=r.column,a=i.line,c=i.column;let h=Math.max(o-(s+1),0),f=Math.min(e.length,a+n);o===-1&&(h=0),a===-1&&(f=e.length);const m=a-o,D={};if(m)for(let C=0;C<=m;C++){const d=C+o;if(!u)D[d]=!0;else if(C===0){const g=e[d-1]?.length;D[d]=[u,(g??0)-u+1]}else if(C===m)D[d]=[0,c];else{const g=e[d-C]?.length;D[d]=[0,g]}}else u===c?D[o]=u?[u,0]:!0:D[o]=[u,(c??0)-(u??0)];return{end:f,markerLines:D,start:h}},Zl=Xr.platform==="win32"&&!Xr.env?.WT_SESSION?">":"❯",eh=(t,e,s)=>{const n={linesAbove:2,linesBelow:3,prefix:"",showGutter:!0,tabWidth:4,...s,color:{gutter:C=>C,marker:C=>C,message:C=>C,...s?.color}},r=typeof e.start.column=="number";let i=(t.includes("\r")?Jl(t):t).split(`
13
+ `);typeof n.tabWidth=="number"&&t.includes(" ")&&(i=i.map(C=>C.replaceAll(" "," ".repeat(n.tabWidth))));const{end:o,markerLines:u,start:a}=Ql(e,i,n.linesAbove,n.linesBelow),c=String(o).length,{gutter:h,marker:f,message:m}=n.color;let D=i.slice(a,o).map((C,d)=>{const g=a+1+d,p=u[g],y=String(g).padStart(c),A=!u[g+1],l=` ${y}${n.showGutter?" |":""}`;if(p){let E="";if(Array.isArray(p)){const b=C.replaceAll(/[^\t]/g," ").slice(0,Math.max(p[0]-1,0)),F=p[1]||1;E=[`
14
+ `,n.prefix+h(l.replaceAll(/\d/g," "))," ",b,f("^").repeat(F)].join(""),A&&n.message&&(E+=` ${m(n.message)}`)}return[n.prefix+f(Zl),h(l),C.length>0?` ${C}`:"",E].join("")}return`${n.prefix} ${h(l)}${C.length>0?` ${C}`:""}`}).join(`
15
+ `);return n.message&&!r&&(D=`${n.prefix+" ".repeat(c+1)+n.message}
16
+ ${D}`),D},zr=(t,e)=>{let s=0,n=e.length-2;for(;s<n;){const r=s+(n-s>>1);if(t<e[r])n=r-1;else if(t>=e[r+1])s=r+1;else{s=r;break}}return s},th=/\n|\r(?!\n)/,sh=t=>t.split(th).reduce((e,s)=>(e.push(e.at(-1)+s.length+1),e),[0]),nh=(t,e,s)=>{if(!Array.isArray(t)&&typeof t!="string"||(typeof t=="string"||Array.isArray(t))&&t.length===0)return{column:0,line:0};if(typeof e!="number"||typeof t=="string"&&e>=t.length||Array.isArray(t)&&e+1>=t.at(-1))return{column:0,line:0};if(typeof t=="string"){const r=sh(t),i=zr(e,r);return{column:e-r[i]+1,line:i+1}}const n=zr(e,t);return{column:e-t[n]+1,line:n+1}},rh=new Map([["Error",Error],["EvalError",EvalError],["RangeError",RangeError],["ReferenceError",ReferenceError],["SyntaxError",SyntaxError],["TypeError",TypeError],["URIError",URIError]]);typeof AggregateError<"u"&&rh.set("AggregateError",AggregateError);const ih=co(import.meta.url),Kt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,oh=t=>{if(typeof Kt<"u"&&Kt.versions&&Kt.versions.node){const[e,s]=Kt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Kt.getBuiltinModule(t)}return ih(t)};oh("node:util");const uh=co(import.meta.url),Wt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ur=t=>{if(typeof Wt<"u"&&Wt.versions&&Wt.versions.node){const[e,s]=Wt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Wt.getBuiltinModule(t)}return uh(t)};ur("node:fs");ur("node:path");ur("node:url");let ah=class extends Error{fileName;codeFrame;name="JSONError";#n;constructor(e){super(),this.#n=e}get message(){return`${this.#n}${this.fileName?` in ${this.fileName}`:""}${this.codeFrame?`
17
+
18
+ ${this.codeFrame}
19
+ `:""}`}set message(e){this.#n=e}};const ch=t=>String.raw`\u{${t.codePointAt(0).toString(16)}}`,lh=(t,e,s)=>eh(t,{start:e},{tabWidth:!1,...s}),hh=/in JSON at position (\d+)(?: \(line (\d+) column (\d+)\))?$/,fh=(t,e)=>{const s=hh.exec(e);if(!s)return;const[,n,r,i]=s;if(r&&i)return{column:Number(i),line:Number(r)};let o=Number(n);return o===t.length&&(o=t.length-1),nh(t,o)},ph=/(?<=^Unexpected token )(?<quote>')?(.)\k<quote>/,dh=t=>t.replace(ph,(e,s,n)=>`"${n}"(${ch(n)})`);function Ks(t,e,s,n){let r;try{return JSON.parse(t,e)}catch(u){r=u.message}let i;t?(i=fh(t,r),r=dh(r)):r+=" while parsing empty string";const o=new ah(r);throw o.fileName=s,i&&(o.codeFrame=lh(t,i,n)),o}async function mh(t,e,s){const n=await ir(t,{buffer:!0,encoding:void 0});let r=new TextDecoder().decode(n);const{beforeParse:i,color:o}={};return typeof i=="function"&&(r=i(r)),Ks(r,e,ye(t),{color:o})}function gh(t,e,s){const n=or(t,{buffer:!0,encoding:void 0});let r=new TextDecoder().decode(n);const{beforeParse:i,color:o}={};return typeof i=="function"&&(r=i(r)),Ks(r,e,ye(t),{color:o})}const Dh=K(import.meta.url),qt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,lo=t=>{if(typeof qt<"u"&&qt.versions&&qt.versions.node){const[e,s]=qt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return qt.getBuiltinModule(t)}return Dh(t)};lo("node:fs");lo("node:fs/promises");const Eh=K(import.meta.url),Vt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,yh=t=>{if(typeof Vt<"u"&&Vt.versions&&Vt.versions.node){const[e,s]=Vt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Vt.getBuiltinModule(t)}return Eh(t)};yh("node:fs");const Ch=K(import.meta.url),Yt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Ah=t=>{if(typeof Yt<"u"&&Yt.versions&&Yt.versions.node){const[e,s]=Yt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Yt.getBuiltinModule(t)}return Ch(t)};Ah("node:fs/promises");const bh=K(import.meta.url),Xt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,vh=t=>{if(typeof Xt<"u"&&Xt.versions&&Xt.versions.node){const[e,s]=Xt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Xt.getBuiltinModule(t)}return bh(t)};vh("node:fs");K(import.meta.url);const Sh=t=>{if(typeof t!="string"&&!(t instanceof ArrayBuffer)&&!ArrayBuffer.isView(t))throw new TypeError("File contents must be a string, ArrayBuffer, or ArrayBuffer view.")},$h=K(import.meta.url),zt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wh=t=>{if(typeof zt<"u"&&zt.versions&&zt.versions.node){const[e,s]=zt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return zt.getBuiltinModule(t)}return $h(t)},{randomBytes:Fh}=wh("node:crypto"),Nh=t=>`${t}.${process.pid.toString(36)}.${Fh(6).toString("hex")}.tmp`,Lh=new TextEncoder,xh=t=>{if(t instanceof Uint8Array)return t;if(typeof t=="string")return Lh.encode(t);if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t)){const e=t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength);return new Uint8Array(e)}throw new TypeError("Invalid contents type. Expected string or ArrayBuffer.")},Oh=K(import.meta.url),Jt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Bh=t=>{if(typeof Jt<"u"&&Jt.versions&&Jt.versions.node){const[e,s]=Jt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Jt.getBuiltinModule(t)}return Oh(t)};Bh("node:fs/promises");const Rh=K(import.meta.url),Qt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,kh=t=>{if(typeof Qt<"u"&&Qt.versions&&Qt.versions.node){const[e,s]=Qt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Qt.getBuiltinModule(t)}return Rh(t)},{mkdirSync:Ih,writeFileSync:Th,statSync:_h,renameSync:Jr,chownSync:Ph,chmodSync:Mh,unlinkSync:Gh}=kh("node:fs"),Xd=(t,e,s)=>{s={backup:!1,encoding:"utf8",flag:"w",overwrite:!0,recursive:!0,...s},gt(t),Sh(e),t=ye(t);const n=Vr(t,nr);if(n&&!s.overwrite)throw new aa(`file already exists, open '${t}'`);const r=Nh(t);try{!n&&s.recursive&&Ih(we(t),{recursive:!0});let i;if(Th(r,typeof e=="string"?Buffer.from(e,s.encoding??"utf8"):xh(e),{flag:"wx"}),n&&s.backup&&(i=_h(t),s.chown??={gid:i.gid,uid:i.uid},Jr(t,`${t}.bak`)),s.chown)try{Ph(r,s.chown.uid,s.chown.gid)}catch{}Mh(r,i&&!s.mode?i.mode:s.mode??438),Jr(r,t)}catch(i){throw new Error(`Failed to write file at: ${t} - ${i.message}`,{cause:i})}finally{Vr(r)&&Gh(r)}},jh=K(import.meta.url),Zt=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Uh=t=>{if(typeof Zt<"u"&&Zt.versions&&Zt.versions.node){const[e,s]=Zt.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return Zt.getBuiltinModule(t)}return jh(t)};Uh("node:fs/promises");const Hh=K(import.meta.url),es=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,Kh=t=>{if(typeof es<"u"&&es.versions&&es.versions.node){const[e,s]=es.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return es.getBuiltinModule(t)}return Hh(t)};Kh("node:fs");const Wh=K(import.meta.url),ts=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,ar=t=>{if(typeof ts<"u"&&ts.versions&&ts.versions.node){const[e,s]=ts.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return ts.getBuiltinModule(t)}return Wh(t)},qh=ar("fs"),Vh=ar("os"),Yh=ar("path");var hn={},Qr;function Xh(){if(Qr)return hn;Qr=1;var t=Object.defineProperty,e=(h,f)=>t(h,"name",{value:f,configurable:!0}),s=qh,n=Vh,r=Yh;const i=e(h=>{let f="";for(let m=0;m<h.length;m+=1){const D=h[m],C=D.toUpperCase();f+=D===C?D.toLowerCase():C}return f},"invertCase"),o=new Map,u=e((h,f)=>{const m=r.join(h,`.is-fs-case-sensitive-test-${process.pid}`);try{return f.writeFileSync(m,""),!f.existsSync(i(m))}finally{try{f.unlinkSync(m)}catch{}}},"checkDirectoryCaseWithWrite"),a=e((h,f,m)=>{try{return u(h,m)}catch(D){if(f===void 0)return u(n.tmpdir(),m);throw D}},"checkDirectoryCaseWithFallback"),c=e((h,f=s,m=!0)=>{const D=h??process.cwd();if(m&&o.has(D))return o.get(D);let C;const d=i(D);return d!==D&&f.existsSync(D)?C=!f.existsSync(d):C=a(D,h,f),m&&o.set(D,C),C},"isFsCaseSensitive");return hn.isFsCaseSensitive=c,hn}Xh();const cr=Symbol.for("yaml.alias"),qn=Symbol.for("yaml.document"),Ye=Symbol.for("yaml.map"),ho=Symbol.for("yaml.pair"),ke=Symbol.for("yaml.scalar"),Dt=Symbol.for("yaml.seq"),Se=Symbol.for("yaml.node.type"),Et=t=>!!t&&typeof t=="object"&&t[Se]===cr,Ws=t=>!!t&&typeof t=="object"&&t[Se]===qn,gs=t=>!!t&&typeof t=="object"&&t[Se]===Ye,oe=t=>!!t&&typeof t=="object"&&t[Se]===ho,X=t=>!!t&&typeof t=="object"&&t[Se]===ke,Ds=t=>!!t&&typeof t=="object"&&t[Se]===Dt;function re(t){if(t&&typeof t=="object")switch(t[Se]){case Ye:case Dt:return!0}return!1}function ie(t){if(t&&typeof t=="object")switch(t[Se]){case cr:case Ye:case ke:case Dt:return!0}return!1}const fo=t=>(X(t)||re(t))&&!!t.anchor,et=Symbol("break visit"),zh=Symbol("skip children"),ls=Symbol("remove node");function yt(t,e){const s=Jh(e);Ws(t)?at(null,t.contents,s,Object.freeze([t]))===ls&&(t.contents=null):at(null,t,s,Object.freeze([]))}yt.BREAK=et;yt.SKIP=zh;yt.REMOVE=ls;function at(t,e,s,n){const r=Qh(t,e,s,n);if(ie(r)||oe(r))return Zh(t,n,r),at(t,r,s,n);if(typeof r!="symbol"){if(re(e)){n=Object.freeze(n.concat(e));for(let i=0;i<e.items.length;++i){const o=at(i,e.items[i],s,n);if(typeof o=="number")i=o-1;else{if(o===et)return et;o===ls&&(e.items.splice(i,1),i-=1)}}}else if(oe(e)){n=Object.freeze(n.concat(e));const i=at("key",e.key,s,n);if(i===et)return et;i===ls&&(e.key=null);const o=at("value",e.value,s,n);if(o===et)return et;o===ls&&(e.value=null)}}return r}function Jh(t){return typeof t=="object"&&(t.Collection||t.Node||t.Value)?Object.assign({Alias:t.Node,Map:t.Node,Scalar:t.Node,Seq:t.Node},t.Value&&{Map:t.Value,Scalar:t.Value,Seq:t.Value},t.Collection&&{Map:t.Collection,Seq:t.Collection},t):t}function Qh(t,e,s,n){if(typeof s=="function")return s(t,e,n);if(gs(e))return s.Map?.(t,e,n);if(Ds(e))return s.Seq?.(t,e,n);if(oe(e))return s.Pair?.(t,e,n);if(X(e))return s.Scalar?.(t,e,n);if(Et(e))return s.Alias?.(t,e,n)}function Zh(t,e,s){const n=e[e.length-1];if(re(n))n.items[t]=s;else if(oe(n))t==="key"?n.key=s:n.value=s;else if(Ws(n))n.contents=s;else{const r=Et(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${r} parent`)}}const ef={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},tf=t=>t.replace(/[!,[\]{}]/g,e=>ef[e]);let pt=class _e{constructor(e,s){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},_e.defaultYaml,e),this.tags=Object.assign({},_e.defaultTags,s)}clone(){const e=new _e(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new _e(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:_e.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},_e.defaultTags);break}return e}add(e,s){this.atNextDocument&&(this.yaml={explicit:_e.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},_e.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),r=n.shift();switch(r){case"%TAG":{if(n.length!==2&&(s(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[i,o]=n;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return s(0,"%YAML directive should contain exactly one part"),!1;const[i]=n;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{const o=/^\d+\.\d+$/.test(i);return s(6,`Unsupported YAML version ${i}`,o),!1}}default:return s(0,`Unknown directive ${r}`,!0),!1}}tagName(e,s){if(e==="!")return"!";if(e[0]!=="!")return s(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const o=e.slice(2,-1);return o==="!"||o==="!!"?(s(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&s("Verbatim tags must end with a >"),o)}const[,n,r]=e.match(/^(.*!)([^!]*)$/s);r||s(`The ${e} tag has no suffix`);const i=this.tags[n];if(i)try{return i+decodeURIComponent(r)}catch(o){return s(String(o)),null}return n==="!"?e:(s(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[s,n]of Object.entries(this.tags))if(e.startsWith(n))return s+tf(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const s=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let r;if(e&&n.length>0&&ie(e.contents)){const i={};yt(e.contents,(o,u)=>{ie(u)&&u.tag&&(i[u.tag]=!0)}),r=Object.keys(i)}else r=[];for(const[i,o]of n)i==="!!"&&o==="tag:yaml.org,2002:"||(!e||r.some(u=>u.startsWith(o)))&&s.push(`%TAG ${i} ${o}`);return s.join(`
20
+ `)}};pt.defaultYaml={explicit:!1,version:"1.2"};pt.defaultTags={"!!":"tag:yaml.org,2002:"};function po(t){if(/[\x00-\x19\s,[\]{}]/.test(t)){const e=`Anchor must not contain whitespace or control characters: ${JSON.stringify(t)}`;throw new Error(e)}return!0}function mo(t){const e=new Set;return yt(t,{Value(s,n){n.anchor&&e.add(n.anchor)}}),e}function go(t,e){for(let s=1;;++s){const n=`${t}${s}`;if(!e.has(n))return n}}function sf(t,e){const s=[],n=new Map;let r=null;return{onAnchor:i=>{s.push(i),r??(r=mo(t));const o=go(e,r);return r.add(o),o},setAnchors:()=>{for(const i of s){const o=n.get(i);if(typeof o=="object"&&o.anchor&&(X(o.node)||re(o.node)))o.node.anchor=o.anchor;else{const u=new Error("Failed to resolve repeated object (this should not happen)");throw u.source=i,u}}},sourceObjects:n}}function ct(t,e,s,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let r=0,i=n.length;r<i;++r){const o=n[r],u=ct(t,n,String(r),o);u===void 0?delete n[r]:u!==o&&(n[r]=u)}else if(n instanceof Map)for(const r of Array.from(n.keys())){const i=n.get(r),o=ct(t,n,r,i);o===void 0?n.delete(r):o!==i&&n.set(r,o)}else if(n instanceof Set)for(const r of Array.from(n)){const i=ct(t,n,r,r);i===void 0?n.delete(r):i!==r&&(n.delete(r),n.add(i))}else for(const[r,i]of Object.entries(n)){const o=ct(t,n,r,i);o===void 0?delete n[r]:o!==i&&(n[r]=o)}return t.call(e,s,n)}function ve(t,e,s){if(Array.isArray(t))return t.map((n,r)=>ve(n,String(r),s));if(t&&typeof t.toJSON=="function"){if(!s||!fo(t))return t.toJSON(e,s);const n={aliasCount:0,count:1,res:void 0};s.anchors.set(t,n),s.onCreate=i=>{n.res=i,delete s.onCreate};const r=t.toJSON(e,s);return s.onCreate&&s.onCreate(r),r}return typeof t=="bigint"&&!s?.keep?Number(t):t}let lr=class{constructor(e){Object.defineProperty(this,Se,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:s,maxAliasCount:n,onAnchor:r,reviver:i}={}){if(!Ws(e))throw new TypeError("A document argument is required");const o={anchors:new Map,doc:e,keep:!0,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},u=ve(this,"",o);if(typeof r=="function")for(const{count:a,res:c}of o.anchors.values())r(c,a);return typeof i=="function"?ct(i,{"":u},"",u):u}},hr=class extends lr{constructor(e){super(cr),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,s){if(s?.maxAliasCount===0)throw new ReferenceError("Alias resolution is disabled");let n;s?.aliasResolveCache?n=s.aliasResolveCache:(n=[],yt(e,{Node:(i,o)=>{(Et(o)||fo(o))&&n.push(o)}}),s&&(s.aliasResolveCache=n));let r;for(const i of n){if(i===this)break;i.anchor===this.source&&(r=i)}return r}toJSON(e,s){if(!s)return{source:this.source};const{anchors:n,doc:r,maxAliasCount:i}=s,o=this.resolve(r,s);if(!o){const a=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(a)}let u=n.get(o);if(u||(ve(o,null,s),u=n.get(o)),u?.res===void 0){const a="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(a)}if(i>=0&&(u.count+=1,u.aliasCount===0&&(u.aliasCount=xs(r,o,n)),u.count*u.aliasCount>i)){const a="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(a)}return u.res}toString(e,s,n){const r=`*${this.source}`;if(e){if(po(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(e.implicitKey)return`${r} `}return r}};function xs(t,e,s){if(Et(e)){const n=e.resolve(t),r=s&&n&&s.get(n);return r?r.count*r.aliasCount:0}else if(re(e)){let n=0;for(const r of e.items){const i=xs(t,r,s);i>n&&(n=i)}return n}else if(oe(e)){const n=xs(t,e.key,s),r=xs(t,e.value,s);return Math.max(n,r)}return 1}const Do=t=>!t||typeof t!="function"&&typeof t!="object";let _=class extends lr{constructor(e){super(ke),this.value=e}toJSON(e,s){return s?.keep?this.value:ve(this.value,e,s)}toString(){return String(this.value)}};_.BLOCK_FOLDED="BLOCK_FOLDED";_.BLOCK_LITERAL="BLOCK_LITERAL";_.PLAIN="PLAIN";_.QUOTE_DOUBLE="QUOTE_DOUBLE";_.QUOTE_SINGLE="QUOTE_SINGLE";const nf="tag:yaml.org,2002:";function rf(t,e,s){if(e){const n=s.filter(i=>i.tag===e),r=n.find(i=>!i.format)??n[0];if(!r)throw new Error(`Tag ${e} not found`);return r}return s.find(n=>n.identify?.(t)&&!n.format)}function ps(t,e,s){if(Ws(t)&&(t=t.contents),ie(t))return t;if(oe(t)){const f=s.schema[Ye].createNode?.(s.schema,null,s);return f.items.push(t),f}(t instanceof String||t instanceof Number||t instanceof Boolean||typeof BigInt<"u"&&t instanceof BigInt)&&(t=t.valueOf());const{aliasDuplicateObjects:n,onAnchor:r,onTagObj:i,schema:o,sourceObjects:u}=s;let a;if(n&&t&&typeof t=="object"){if(a=u.get(t),a)return a.anchor??(a.anchor=r(t)),new hr(a.anchor);a={anchor:null,node:null},u.set(t,a)}e?.startsWith("!!")&&(e=nf+e.slice(2));let c=rf(t,e,o.tags);if(!c){if(t&&typeof t.toJSON=="function"&&(t=t.toJSON()),!t||typeof t!="object"){const f=new _(t);return a&&(a.node=f),f}c=t instanceof Map?o[Ye]:Symbol.iterator in Object(t)?o[Dt]:o[Ye]}i&&(i(c),delete s.onTagObj);const h=c?.createNode?c.createNode(s.schema,t,s):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(s.schema,t,s):new _(t);return e?h.tag=e:c.default||(h.tag=c.tag),a&&(a.node=h),h}function Ts(t,e,s){let n=s;for(let r=e.length-1;r>=0;--r){const i=e[r];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){const o=[];o[i]=n,n=o}else n=new Map([[i,n]])}return ps(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:t,sourceObjects:new Map})}const os=t=>t==null||typeof t=="object"&&!!t[Symbol.iterator]().next().done;let Eo=class extends lr{constructor(e,s){super(e),Object.defineProperty(this,"schema",{value:s,configurable:!0,enumerable:!1,writable:!0})}clone(e){const s=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(s.schema=e),s.items=s.items.map(n=>ie(n)||oe(n)?n.clone(e):n),this.range&&(s.range=this.range.slice()),s}addIn(e,s){if(os(e))this.add(s);else{const[n,...r]=e,i=this.get(n,!0);if(re(i))i.addIn(r,s);else if(i===void 0&&this.schema)this.set(n,Ts(this.schema,r,s));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}deleteIn(e){const[s,...n]=e;if(n.length===0)return this.delete(s);const r=this.get(s,!0);if(re(r))return r.deleteIn(n);throw new Error(`Expected YAML collection at ${s}. Remaining path: ${n}`)}getIn(e,s){const[n,...r]=e,i=this.get(n,!0);return r.length===0?!s&&X(i)?i.value:i:re(i)?i.getIn(r,s):void 0}hasAllNullValues(e){return this.items.every(s=>{if(!oe(s))return!1;const n=s.value;return n==null||e&&X(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[s,...n]=e;if(n.length===0)return this.has(s);const r=this.get(s,!0);return re(r)?r.hasIn(n):!1}setIn(e,s){const[n,...r]=e;if(r.length===0)this.set(n,s);else{const i=this.get(n,!0);if(re(i))i.setIn(r,s);else if(i===void 0&&this.schema)this.set(n,Ts(this.schema,r,s));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${r}`)}}};const of=t=>t.replace(/^(?!$)(?: $)?/gm,"#");function Ge(t,e){return/^\n+$/.test(t)?t.substring(1):e?t.replace(/^(?! *$)/gm,e):t}const nt=(t,e,s)=>t.endsWith(`
21
+ `)?Ge(s,e):s.includes(`
22
+ `)?`
23
+ `+Ge(s,e):(t.endsWith(" ")?"":" ")+s,yo="flow",Vn="block",Os="quoted";function qs(t,e,s="flow",{indentAtStart:n,lineWidth:r=80,minContentWidth:i=20,onFold:o,onOverflow:u}={}){if(!r||r<0)return t;r<i&&(i=0);const a=Math.max(1+i,1+r-e.length);if(t.length<=a)return t;const c=[],h={};let f=r-e.length;typeof n=="number"&&(n>r-Math.max(2,i)?c.push(0):f=r-n);let m,D,C=!1,d=-1,g=-1,p=-1;s===Vn&&(d=Zr(t,d,e.length),d!==-1&&(f=d+a));for(let A;A=t[d+=1];){if(s===Os&&A==="\\"){switch(g=d,t[d+1]){case"x":d+=3;break;case"u":d+=5;break;case"U":d+=9;break;default:d+=1}p=d}if(A===`
24
+ `)s===Vn&&(d=Zr(t,d,e.length)),f=d+e.length+a,m=void 0;else{if(A===" "&&D&&D!==" "&&D!==`
25
+ `&&D!==" "){const l=t[d+1];l&&l!==" "&&l!==`
26
+ `&&l!==" "&&(m=d)}if(d>=f)if(m)c.push(m),f=m+a,m=void 0;else if(s===Os){for(;D===" "||D===" ";)D=A,A=t[d+=1],C=!0;const l=d>p+1?d-2:g-1;if(h[l])return t;c.push(l),h[l]=!0,f=l+a,m=void 0}else C=!0}D=A}if(C&&u&&u(),c.length===0)return t;o&&o();let y=t.slice(0,c[0]);for(let A=0;A<c.length;++A){const l=c[A],E=c[A+1]||t.length;l===0?y=`
27
+ ${e}${t.slice(0,E)}`:(s===Os&&h[l]&&(y+=`${t[l]}\\`),y+=`
28
+ ${e}${t.slice(l+1,E)}`)}return y}function Zr(t,e,s){let n=e,r=e+1,i=t[r];for(;i===" "||i===" ";)if(e<r+s)i=t[++e];else{do i=t[++e];while(i&&i!==`
29
+ `);n=e,r=e+1,i=t[r]}return n}const Vs=(t,e)=>({indentAtStart:e?t.indent.length:t.indentAtStart,lineWidth:t.options.lineWidth,minContentWidth:t.options.minContentWidth}),Ys=t=>/^(%|---|\.\.\.)/m.test(t);function uf(t,e,s){if(!e||e<0)return!1;const n=e-s,r=t.length;if(r<=n)return!1;for(let i=0,o=0;i<r;++i)if(t[i]===`
30
+ `){if(i-o>n)return!0;if(o=i+1,r-o<=n)return!1}return!0}function hs(t,e){const s=JSON.stringify(t);if(e.options.doubleQuotedAsJSON)return s;const{implicitKey:n}=e,r=e.options.doubleQuotedMinMultiLineLength,i=e.indent||(Ys(t)?" ":"");let o="",u=0;for(let a=0,c=s[a];c;c=s[++a])if(c===" "&&s[a+1]==="\\"&&s[a+2]==="n"&&(o+=s.slice(u,a)+"\\ ",a+=1,u=a,c="\\"),c==="\\")switch(s[a+1]){case"u":{o+=s.slice(u,a);const h=s.substr(a+2,4);switch(h){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:h.substr(0,2)==="00"?o+="\\x"+h.substr(2):o+=s.substr(a,6)}a+=5,u=a+1}break;case"n":if(n||s[a+2]==='"'||s.length<r)a+=1;else{for(o+=s.slice(u,a)+`
31
+
32
+ `;s[a+2]==="\\"&&s[a+3]==="n"&&s[a+4]!=='"';)o+=`
33
+ `,a+=2;o+=i,s[a+2]===" "&&(o+="\\"),a+=1,u=a+1}break;default:a+=1}return o=u?o+s.slice(u):s,n?o:qs(o,i,Os,Vs(e,!1))}function Yn(t,e){if(e.options.singleQuote===!1||e.implicitKey&&t.includes(`
34
+ `)||/[ \t]\n|\n[ \t]/.test(t))return hs(t,e);const s=e.indent||(Ys(t)?" ":""),n="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
35
+ ${s}`)+"'";return e.implicitKey?n:qs(n,s,yo,Vs(e,!1))}function lt(t,e){const{singleQuote:s}=e.options;let n;if(s===!1)n=hs;else{const r=t.includes('"'),i=t.includes("'");r&&!i?n=Yn:i&&!r?n=hs:n=s?Yn:hs}return n(t,e)}let Xn;try{Xn=new RegExp(`(^|(?<!
36
+ ))
37
+ +(?!
38
+ |$)`,"g")}catch{Xn=/\n+(?!\n|$)/g}function Bs({comment:t,type:e,value:s},n,r,i){const{blockQuote:o,commentString:u,lineWidth:a}=n.options;if(!o||/\n[\t ]+$/.test(s))return lt(s,n);const c=n.indent||(n.forceBlockIndent||Ys(s)?" ":""),h=o==="literal"?!0:o==="folded"||e===_.BLOCK_FOLDED?!1:e===_.BLOCK_LITERAL?!0:!uf(s,a,c.length);if(!s)return h?`|
39
+ `:`>
40
+ `;let f,m;for(m=s.length;m>0;--m){const l=s[m-1];if(l!==`
41
+ `&&l!==" "&&l!==" ")break}let D=s.substring(m);const C=D.indexOf(`
42
+ `);C===-1?f="-":s===D||C!==D.length-1?(f="+",i&&i()):f="",D&&(s=s.slice(0,-D.length),D[D.length-1]===`
43
+ `&&(D=D.slice(0,-1)),D=D.replace(Xn,`$&${c}`));let d=!1,g,p=-1;for(g=0;g<s.length;++g){const l=s[g];if(l===" ")d=!0;else if(l===`
44
+ `)p=g;else break}let y=s.substring(0,p<g?p+1:g);y&&(s=s.substring(y.length),y=y.replace(/\n+/g,`$&${c}`));let A=(d?c?"2":"1":"")+f;if(t&&(A+=" "+u(t.replace(/ ?[\r\n]+/g," ")),r&&r()),!h){const l=s.replace(/\n+/g,`
45
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let E=!1;const b=Vs(n,!0);o!=="folded"&&e!==_.BLOCK_FOLDED&&(b.onOverflow=()=>{E=!0});const F=qs(`${y}${l}${D}`,c,Vn,b);if(!E)return`>${A}
46
+ ${c}${F}`}return s=s.replace(/\n+/g,`$&${c}`),`|${A}
47
+ ${c}${y}${s}${D}`}function af(t,e,s,n){const{type:r,value:i}=t,{actualString:o,implicitKey:u,indent:a,indentStep:c,inFlow:h}=e;if(u&&i.includes(`
48
+ `)||h&&/[[\]{},]/.test(i))return lt(i,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return u||h||!i.includes(`
49
+ `)?lt(i,e):Bs(t,e,s,n);if(!u&&!h&&r!==_.PLAIN&&i.includes(`
50
+ `))return Bs(t,e,s,n);if(Ys(i)){if(a==="")return e.forceBlockIndent=!0,Bs(t,e,s,n);if(u&&a===c)return lt(i,e)}const f=i.replace(/\n+/g,`$&
51
+ ${a}`);if(o){const m=d=>d.default&&d.tag!=="tag:yaml.org,2002:str"&&d.test?.test(f),{compat:D,tags:C}=e.doc.schema;if(C.some(m)||D?.some(m))return lt(i,e)}return u?f:qs(f,a,yo,Vs(e,!1))}function fr(t,e,s,n){const{implicitKey:r,inFlow:i}=e,o=typeof t.value=="string"?t:Object.assign({},t,{value:String(t.value)});let{type:u}=t;u!==_.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(u=_.QUOTE_DOUBLE);const a=h=>{switch(h){case _.BLOCK_FOLDED:case _.BLOCK_LITERAL:return r||i?lt(o.value,e):Bs(o,e,s,n);case _.QUOTE_DOUBLE:return hs(o.value,e);case _.QUOTE_SINGLE:return Yn(o.value,e);case _.PLAIN:return af(o,e,s,n);default:return null}};let c=a(u);if(c===null){const{defaultKeyType:h,defaultStringType:f}=e.options,m=r&&h||f;if(c=a(m),c===null)throw new Error(`Unsupported default string type ${m}`)}return c}function Co(t,e){const s=Object.assign({blockQuote:!0,commentString:of,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},t.schema.toStringOptions,e);let n;switch(s.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:t,flowCollectionPadding:s.flowCollectionPadding?" ":"",indent:"",indentStep:typeof s.indent=="number"?" ".repeat(s.indent):" ",inFlow:n,options:s}}function cf(t,e){if(e.tag){const r=t.filter(i=>i.tag===e.tag);if(r.length>0)return r.find(i=>i.format===e.format)??r[0]}let s,n;if(X(e)){n=e.value;let r=t.filter(i=>i.identify?.(n));if(r.length>1){const i=r.filter(o=>o.test);i.length>0&&(r=i)}s=r.find(i=>i.format===e.format)??r.find(i=>!i.format)}else n=e,s=t.find(r=>r.nodeClass&&n instanceof r.nodeClass);if(!s){const r=n?.constructor?.name??(n===null?"null":typeof n);throw new Error(`Tag not resolved for ${r} value`)}return s}function lf(t,e,{anchors:s,doc:n}){if(!n.directives)return"";const r=[],i=(X(t)||re(t))&&t.anchor;i&&po(i)&&(s.add(i),r.push(`&${i}`));const o=t.tag??(e.default?null:e.tag);return o&&r.push(n.directives.tagString(o)),r.join(" ")}function dt(t,e,s,n){if(oe(t))return t.toString(e,s,n);if(Et(t)){if(e.doc.directives)return t.toString(e);if(e.resolvedAliases?.has(t))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(t):e.resolvedAliases=new Set([t]),t=t.resolve(e.doc)}let r;const i=ie(t)?t:e.doc.createNode(t,{onTagObj:a=>r=a});r??(r=cf(e.doc.schema.tags,i));const o=lf(i,r,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);const u=typeof r.stringify=="function"?r.stringify(i,e,s,n):X(i)?fr(i,e,s,n):i.toString(e,s,n);return o?X(i)||u[0]==="{"||u[0]==="["?`${o} ${u}`:`${o}
52
+ ${e.indent}${u}`:u}function hf({key:t,value:e},s,n,r){const{allNullValues:i,doc:o,indent:u,indentStep:a,options:{commentString:c,indentSeq:h,simpleKeys:f}}=s;let m=ie(t)&&t.comment||null;if(f){if(m)throw new Error("With simple keys, key nodes cannot have comments");if(re(t)||!ie(t)&&typeof t=="object"){const F="With simple keys, collection cannot be used as a key value";throw new Error(F)}}let D=!f&&(!t||m&&e==null&&!s.inFlow||re(t)||(X(t)?t.type===_.BLOCK_FOLDED||t.type===_.BLOCK_LITERAL:typeof t=="object"));s=Object.assign({},s,{allNullValues:!1,implicitKey:!D&&(f||!i),indent:u+a});let C=!1,d=!1,g=dt(t,s,()=>C=!0,()=>d=!0);if(!D&&!s.inFlow&&g.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");D=!0}if(s.inFlow){if(i||e==null)return C&&n&&n(),g===""?"?":D?`? ${g}`:g}else if(i&&!f||e==null&&D)return g=`? ${g}`,m&&!C?g+=nt(g,s.indent,c(m)):d&&r&&r(),g;C&&(m=null),D?(m&&(g+=nt(g,s.indent,c(m))),g=`? ${g}
53
+ ${u}:`):(g=`${g}:`,m&&(g+=nt(g,s.indent,c(m))));let p,y,A;ie(e)?(p=!!e.spaceBefore,y=e.commentBefore,A=e.comment):(p=!1,y=null,A=null,e&&typeof e=="object"&&(e=o.createNode(e))),s.implicitKey=!1,!D&&!m&&X(e)&&(s.indentAtStart=g.length+1),d=!1,!h&&a.length>=2&&!s.inFlow&&!D&&Ds(e)&&!e.flow&&!e.tag&&!e.anchor&&(s.indent=s.indent.substring(2));let l=!1;const E=dt(e,s,()=>l=!0,()=>d=!0);let b=" ";if(m||p||y){if(b=p?`
54
+ `:"",y){const F=c(y);b+=`
55
+ ${Ge(F,s.indent)}`}E===""&&!s.inFlow?b===`
56
+ `&&A&&(b=`
57
+
58
+ `):b+=`
59
+ ${s.indent}`}else if(!D&&re(e)){const F=E[0],v=E.indexOf(`
60
+ `),B=v!==-1,k=s.inFlow??e.flow??e.items.length===0;if(B||!k){let W=!1;if(B&&(F==="&"||F==="!")){let I=E.indexOf(" ");F==="&"&&I!==-1&&I<v&&E[I+1]==="!"&&(I=E.indexOf(" ",I+1)),(I===-1||v<I)&&(W=!0)}W||(b=`
61
+ ${s.indent}`)}}else(E===""||E[0]===`
62
+ `)&&(b="");return g+=b+E,s.inFlow?l&&n&&n():A&&!l?g+=nt(g,s.indent,c(A)):d&&r&&r(),g}function Ao(t,e){(t==="debug"||t==="warn")&&console.warn(e)}const bs="<<",Ue={identify:t=>t===bs||typeof t=="symbol"&&t.description===bs,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new _(Symbol(bs)),{addToJSMap:bo}),stringify:()=>bs},ff=(t,e)=>(Ue.identify(e)||X(e)&&(!e.type||e.type===_.PLAIN)&&Ue.identify(e.value))&&t?.doc.schema.tags.some(s=>s.tag===Ue.tag&&s.default);function bo(t,e,s){const n=vo(t,s);if(Ds(n))for(const r of n.items)fn(t,e,r);else if(Array.isArray(n))for(const r of n)fn(t,e,r);else fn(t,e,n)}function fn(t,e,s){const n=vo(t,s);if(!gs(n))throw new Error("Merge sources must be maps or map aliases");const r=n.toJSON(null,t,Map);for(const[i,o]of r)e instanceof Map?e.has(i)||e.set(i,o):e instanceof Set?e.add(i):Object.prototype.hasOwnProperty.call(e,i)||Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function vo(t,e){return t&&Et(e)?e.resolve(t.doc,t):e}function So(t,e,{key:s,value:n}){if(ie(s)&&s.addToJSMap)s.addToJSMap(t,e,n);else if(ff(t,s))bo(t,e,n);else{const r=ve(s,"",t);if(e instanceof Map)e.set(r,ve(n,r,t));else if(e instanceof Set)e.add(r);else{const i=pf(s,r,t),o=ve(n,i,t);i in e?Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[i]=o}}return e}function pf(t,e,s){if(e===null)return"";if(typeof e!="object")return String(e);if(ie(t)&&s?.doc){const n=Co(s.doc,{});n.anchors=new Set;for(const i of s.anchors.keys())n.anchors.add(i.anchor);n.inFlow=!0,n.inStringifyKey=!0;const r=t.toString(n);if(!s.mapKeyWarned){let i=JSON.stringify(r);i.length>40&&(i=i.substring(0,36)+'..."'),Ao(s.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),s.mapKeyWarned=!0}return r}return JSON.stringify(e)}function pr(t,e,s){const n=ps(t,void 0,s),r=ps(e,void 0,s);return new Ce(n,r)}let Ce=class $o{constructor(e,s=null){Object.defineProperty(this,Se,{value:ho}),this.key=e,this.value=s}clone(e){let{key:s,value:n}=this;return ie(s)&&(s=s.clone(e)),ie(n)&&(n=n.clone(e)),new $o(s,n)}toJSON(e,s){const n=s?.mapAsMap?new Map:{};return So(s,n,this)}toString(e,s,n){return e?.doc?hf(this,e,s,n):JSON.stringify(this)}};function wo(t,e,s){return(e.inFlow??t.flow?mf:df)(t,e,s)}function df({comment:t,items:e},s,{blockItemPrefix:n,flowChars:r,itemIndent:i,onChompKeep:o,onComment:u}){const{indent:a,options:{commentString:c}}=s,h=Object.assign({},s,{indent:i,type:null});let f=!1;const m=[];for(let C=0;C<e.length;++C){const d=e[C];let g=null;if(ie(d))!f&&d.spaceBefore&&m.push(""),_s(s,m,d.commentBefore,f),d.comment&&(g=d.comment);else if(oe(d)){const y=ie(d.key)?d.key:null;y&&(!f&&y.spaceBefore&&m.push(""),_s(s,m,y.commentBefore,f))}f=!1;let p=dt(d,h,()=>g=null,()=>f=!0);g&&(p+=nt(p,i,c(g))),f&&g&&(f=!1),m.push(n+p)}let D;if(m.length===0)D=r.start+r.end;else{D=m[0];for(let C=1;C<m.length;++C){const d=m[C];D+=d?`
63
+ ${a}${d}`:`
64
+ `}}return t?(D+=`
65
+ `+Ge(c(t),a),u&&u()):f&&o&&o(),D}function mf({items:t},e,{flowChars:s,itemIndent:n}){const{indent:r,indentStep:i,flowCollectionPadding:o,options:{commentString:u}}=e;n+=i;const a=Object.assign({},e,{indent:n,inFlow:!0,type:null});let c=!1,h=0;const f=[];for(let C=0;C<t.length;++C){const d=t[C];let g=null;if(ie(d))d.spaceBefore&&f.push(""),_s(e,f,d.commentBefore,!1),d.comment&&(g=d.comment);else if(oe(d)){const y=ie(d.key)?d.key:null;y&&(y.spaceBefore&&f.push(""),_s(e,f,y.commentBefore,!1),y.comment&&(c=!0));const A=ie(d.value)?d.value:null;A?(A.comment&&(g=A.comment),A.commentBefore&&(c=!0)):d.value==null&&y?.comment&&(g=y.comment)}g&&(c=!0);let p=dt(d,a,()=>g=null);c||(c=f.length>h||p.includes(`
66
+ `)),C<t.length-1?p+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(c||(c=f.reduce((y,A)=>y+A.length+2,2)+(p.length+2)>e.options.lineWidth)),c&&(p+=",")),g&&(p+=nt(p,n,u(g))),f.push(p),h=f.length}const{start:m,end:D}=s;if(f.length===0)return m+D;if(!c){const C=f.reduce((d,g)=>d+g.length+2,2);c=e.options.lineWidth>0&&C>e.options.lineWidth}if(c){let C=m;for(const d of f)C+=d?`
67
+ ${i}${r}${d}`:`
68
+ `;return`${C}
69
+ ${r}${D}`}else return`${m}${o}${f.join(" ")}${o}${D}`}function _s({indent:t,options:{commentString:e}},s,n,r){if(n&&r&&(n=n.replace(/^\n+/,"")),n){const i=Ge(e(n),t);s.push(i.trimStart())}}function rt(t,e){const s=X(e)?e.value:e;for(const n of t)if(oe(n)&&(n.key===e||n.key===s||X(n.key)&&n.key.value===s))return n}let be=class extends Eo{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Ye,e),this.items=[]}static from(e,s,n){const{keepUndefined:r,replacer:i}=n,o=new this(e),u=(a,c)=>{if(typeof i=="function")c=i.call(s,a,c);else if(Array.isArray(i)&&!i.includes(a))return;(c!==void 0||r)&&o.items.push(pr(a,c,n))};if(s instanceof Map)for(const[a,c]of s)u(a,c);else if(s&&typeof s=="object")for(const a of Object.keys(s))u(a,s[a]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,s){let n;oe(e)?n=e:!e||typeof e!="object"||!("key"in e)?n=new Ce(e,e?.value):n=new Ce(e.key,e.value);const r=rt(this.items,n.key),i=this.schema?.sortMapEntries;if(r){if(!s)throw new Error(`Key ${n.key} already set`);X(r.value)&&Do(n.value)?r.value.value=n.value:r.value=n.value}else if(i){const o=this.items.findIndex(u=>i(n,u)<0);o===-1?this.items.push(n):this.items.splice(o,0,n)}else this.items.push(n)}delete(e){const s=rt(this.items,e);return s?this.items.splice(this.items.indexOf(s),1).length>0:!1}get(e,s){const n=rt(this.items,e)?.value;return(!s&&X(n)?n.value:n)??void 0}has(e){return!!rt(this.items,e)}set(e,s){this.add(new Ce(e,s),!0)}toJSON(e,s,n){const r=n?new n:s?.mapAsMap?new Map:{};s?.onCreate&&s.onCreate(r);for(const i of this.items)So(s,r,i);return r}toString(e,s,n){if(!e)return JSON.stringify(this);for(const r of this.items)if(!oe(r))throw new Error(`Map items must all be pairs; found ${JSON.stringify(r)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),wo(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:s})}};const Ct={collection:"map",default:!0,nodeClass:be,tag:"tag:yaml.org,2002:map",resolve(t,e){return gs(t)||e("Expected a mapping for this tag"),t},createNode:(t,e,s)=>be.from(t,e,s)};let it=class extends Eo{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Dt,e),this.items=[]}add(e){this.items.push(e)}delete(e){const s=vs(e);return typeof s!="number"?!1:this.items.splice(s,1).length>0}get(e,s){const n=vs(e);if(typeof n!="number")return;const r=this.items[n];return!s&&X(r)?r.value:r}has(e){const s=vs(e);return typeof s=="number"&&s<this.items.length}set(e,s){const n=vs(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const r=this.items[n];X(r)&&Do(s)?r.value=s:this.items[n]=s}toJSON(e,s){const n=[];s?.onCreate&&s.onCreate(n);let r=0;for(const i of this.items)n.push(ve(i,String(r++),s));return n}toString(e,s,n){return e?wo(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:s}):JSON.stringify(this)}static from(e,s,n){const{replacer:r}=n,i=new this(e);if(s&&Symbol.iterator in Object(s)){let o=0;for(let u of s){if(typeof r=="function"){const a=s instanceof Set?u:String(o++);u=r.call(s,a,u)}i.items.push(ps(u,void 0,n))}}return i}};function vs(t){let e=X(t)?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const At={collection:"seq",default:!0,nodeClass:it,tag:"tag:yaml.org,2002:seq",resolve(t,e){return Ds(t)||e("Expected a sequence for this tag"),t},createNode:(t,e,s)=>it.from(t,e,s)},Xs={identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify(t,e,s,n){return e=Object.assign({actualString:!0},e),fr(t,e,s,n)}},zs={identify:t=>t==null,createNode:()=>new _(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new _(null),stringify:({source:t},e)=>typeof t=="string"&&zs.test.test(t)?t:e.options.nullStr},dr={identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:t=>new _(t[0]==="t"||t[0]==="T"),stringify({source:t,value:e},s){if(t&&dr.test.test(t)){const n=t[0]==="t"||t[0]==="T";if(e===n)return t}return e?s.options.trueStr:s.options.falseStr}};function Ne({format:t,minFractionDigits:e,tag:s,value:n}){if(typeof n=="bigint")return String(n);const r=typeof n=="number"?n:Number(n);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let i=Object.is(n,-0)?"-0":JSON.stringify(n);if(!t&&e&&(!s||s==="tag:yaml.org,2002:float")&&/^-?\d/.test(i)&&!i.includes("e")){let o=i.indexOf(".");o<0&&(o=i.length,i+=".");let u=e-(i.length-o-1);for(;u-- >0;)i+="0"}return i}const Fo={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ne},No={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():Ne(t)}},Lo={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(t){const e=new _(parseFloat(t)),s=t.indexOf(".");return s!==-1&&t[t.length-1]==="0"&&(e.minFractionDigits=t.length-s-1),e},stringify:Ne},Js=t=>typeof t=="bigint"||Number.isInteger(t),mr=(t,e,s,{intAsBigInt:n})=>n?BigInt(t):parseInt(t.substring(e),s);function xo(t,e,s){const{value:n}=t;return Js(n)&&n>=0?s+n.toString(e):Ne(t)}const Oo={identify:t=>Js(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(t,e,s)=>mr(t,2,8,s),stringify:t=>xo(t,8,"0o")},Bo={identify:Js,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(t,e,s)=>mr(t,0,10,s),stringify:Ne},Ro={identify:t=>Js(t)&&t>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(t,e,s)=>mr(t,2,16,s),stringify:t=>xo(t,16,"0x")},gf=[Ct,At,Xs,zs,dr,Oo,Bo,Ro,Fo,No,Lo];function ei(t){return typeof t=="bigint"||Number.isInteger(t)}const Ss=({value:t})=>JSON.stringify(t),Df=[{identify:t=>typeof t=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:t=>t,stringify:Ss},{identify:t=>t==null,createNode:()=>new _(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Ss},{identify:t=>typeof t=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:t=>t==="true",stringify:Ss},{identify:ei,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(t,e,{intAsBigInt:s})=>s?BigInt(t):parseInt(t,10),stringify:({value:t})=>ei(t)?t.toString():JSON.stringify(t)},{identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:t=>parseFloat(t),stringify:Ss}],Ef={default:!0,tag:"",test:/^/,resolve(t,e){return e(`Unresolved plain scalar ${JSON.stringify(t)}`),t}},yf=[Ct,At].concat(Df,Ef),gr={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(t,e){if(typeof atob=="function"){const s=atob(t.replace(/[\n\r]/g,"")),n=new Uint8Array(s.length);for(let r=0;r<s.length;++r)n[r]=s.charCodeAt(r);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),t},stringify({comment:t,type:e,value:s},n,r,i){if(!s)return"";const o=s;let u;if(typeof btoa=="function"){let a="";for(let c=0;c<o.length;++c)a+=String.fromCharCode(o[c]);u=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=_.BLOCK_LITERAL),e!==_.QUOTE_DOUBLE){const a=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),c=Math.ceil(u.length/a),h=new Array(c);for(let f=0,m=0;f<c;++f,m+=a)h[f]=u.substr(m,a);u=h.join(e===_.BLOCK_LITERAL?`
70
+ `:" ")}return fr({comment:t,type:e,value:u},n,r,i)}};function ko(t,e){if(Ds(t))for(let s=0;s<t.items.length;++s){let n=t.items[s];if(!oe(n)){if(gs(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");const r=n.items[0]||new Ce(new _(null));if(n.commentBefore&&(r.key.commentBefore=r.key.commentBefore?`${n.commentBefore}
71
+ ${r.key.commentBefore}`:n.commentBefore),n.comment){const i=r.value??r.key;i.comment=i.comment?`${n.comment}
72
+ ${i.comment}`:n.comment}n=r}t.items[s]=oe(n)?n:new Ce(n)}}else e("Expected a sequence for this tag");return t}function Io(t,e,s){const{replacer:n}=s,r=new it(t);r.tag="tag:yaml.org,2002:pairs";let i=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof n=="function"&&(o=n.call(e,String(i++),o));let u,a;if(Array.isArray(o))if(o.length===2)u=o[0],a=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){const c=Object.keys(o);if(c.length===1)u=c[0],a=o[u];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else u=o;r.items.push(pr(u,a,s))}return r}const Dr={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:ko,createNode:Io};let Rs=class To extends it{constructor(){super(),this.add=be.prototype.add.bind(this),this.delete=be.prototype.delete.bind(this),this.get=be.prototype.get.bind(this),this.has=be.prototype.has.bind(this),this.set=be.prototype.set.bind(this),this.tag=To.tag}toJSON(e,s){if(!s)return super.toJSON(e);const n=new Map;s?.onCreate&&s.onCreate(n);for(const r of this.items){let i,o;if(oe(r)?(i=ve(r.key,"",s),o=ve(r.value,i,s)):i=ve(r,"",s),n.has(i))throw new Error("Ordered maps must not include duplicate keys");n.set(i,o)}return n}static from(e,s,n){const r=Io(e,s,n),i=new this;return i.items=r.items,i}};Rs.tag="tag:yaml.org,2002:omap";const Er={collection:"seq",identify:t=>t instanceof Map,nodeClass:Rs,default:!1,tag:"tag:yaml.org,2002:omap",resolve(t,e){const s=ko(t,e),n=[];for(const{key:r}of s.items)X(r)&&(n.includes(r.value)?e(`Ordered maps must not include duplicate keys: ${r.value}`):n.push(r.value));return Object.assign(new Rs,s)},createNode:(t,e,s)=>Rs.from(t,e,s)};function _o({value:t,source:e},s){return e&&(t?Po:Mo).test.test(e)?e:t?s.options.trueStr:s.options.falseStr}const Po={identify:t=>t===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new _(!0),stringify:_o},Mo={identify:t=>t===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new _(!1),stringify:_o},Cf={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:t=>t.slice(-3).toLowerCase()==="nan"?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Ne},Af={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:t=>parseFloat(t.replace(/_/g,"")),stringify(t){const e=Number(t.value);return isFinite(e)?e.toExponential():Ne(t)}},bf={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(t){const e=new _(parseFloat(t.replace(/_/g,""))),s=t.indexOf(".");if(s!==-1){const n=t.substring(s+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:Ne},Es=t=>typeof t=="bigint"||Number.isInteger(t);function Qs(t,e,s,{intAsBigInt:n}){const r=t[0];if((r==="-"||r==="+")&&(e+=1),t=t.substring(e).replace(/_/g,""),n){switch(s){case 2:t=`0b${t}`;break;case 8:t=`0o${t}`;break;case 16:t=`0x${t}`;break}const o=BigInt(t);return r==="-"?BigInt(-1)*o:o}const i=parseInt(t,s);return r==="-"?-1*i:i}function yr(t,e,s){const{value:n}=t;if(Es(n)){const r=n.toString(e);return n<0?"-"+s+r.substr(1):s+r}return Ne(t)}const vf={identify:Es,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(t,e,s)=>Qs(t,2,2,s),stringify:t=>yr(t,2,"0b")},Sf={identify:Es,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(t,e,s)=>Qs(t,1,8,s),stringify:t=>yr(t,8,"0")},$f={identify:Es,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(t,e,s)=>Qs(t,0,10,s),stringify:Ne},wf={identify:Es,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(t,e,s)=>Qs(t,2,16,s),stringify:t=>yr(t,16,"0x")};let ks=class Go extends be{constructor(e){super(e),this.tag=Go.tag}add(e){let s;oe(e)?s=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?s=new Ce(e.key,null):s=new Ce(e,null),rt(this.items,s.key)||this.items.push(s)}get(e,s){const n=rt(this.items,e);return!s&&oe(n)?X(n.key)?n.key.value:n.key:n}set(e,s){if(typeof s!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof s}`);const n=rt(this.items,e);n&&!s?this.items.splice(this.items.indexOf(n),1):!n&&s&&this.items.push(new Ce(e))}toJSON(e,s){return super.toJSON(e,s,Set)}toString(e,s,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),s,n);throw new Error("Set items must all have null values")}static from(e,s,n){const{replacer:r}=n,i=new this(e);if(s&&Symbol.iterator in Object(s))for(let o of s)typeof r=="function"&&(o=r.call(s,o,o)),i.items.push(pr(o,null,n));return i}};ks.tag="tag:yaml.org,2002:set";const Cr={collection:"map",identify:t=>t instanceof Set,nodeClass:ks,default:!1,tag:"tag:yaml.org,2002:set",createNode:(t,e,s)=>ks.from(t,e,s),resolve(t,e){if(gs(t)){if(t.hasAllNullValues(!0))return Object.assign(new ks,t);e("Set items must all have null values")}else e("Expected a mapping for this tag");return t}};function Ar(t,e){const s=t[0],n=s==="-"||s==="+"?t.substring(1):t,r=o=>e?BigInt(o):Number(o),i=n.replace(/_/g,"").split(":").reduce((o,u)=>o*r(60)+r(u),r(0));return s==="-"?r(-1)*i:i}function jo(t){let{value:e}=t,s=o=>o;if(typeof e=="bigint")s=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return Ne(t);let n="";e<0&&(n="-",e*=s(-1));const r=s(60),i=[e%r];return e<60?i.unshift(0):(e=(e-i[0])/r,i.unshift(e%r),e>=60&&(e=(e-i[0])/r,i.unshift(e))),n+i.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Uo={identify:t=>typeof t=="bigint"||Number.isInteger(t),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(t,e,{intAsBigInt:s})=>Ar(t,s),stringify:jo},Ho={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:t=>Ar(t,!1),stringify:jo},Zs={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(t){const e=t.match(Zs.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,s,n,r,i,o,u]=e.map(Number),a=e[7]?Number((e[7]+"00").substr(1,3)):0;let c=Date.UTC(s,n-1,r,i||0,o||0,u||0,a);const h=e[8];if(h&&h!=="Z"){let f=Ar(h,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f}return new Date(c)},stringify:({value:t})=>t?.toISOString().replace(/(T00:00:00)?\.000Z$/,"")??""},ti=[Ct,At,Xs,zs,Po,Mo,vf,Sf,$f,wf,Cf,Af,bf,gr,Ue,Er,Dr,Cr,Uo,Ho,Zs],si=new Map([["core",gf],["failsafe",[Ct,At,Xs]],["json",yf],["yaml11",ti],["yaml-1.1",ti]]),ni={binary:gr,bool:dr,float:Lo,floatExp:No,floatNaN:Fo,floatTime:Ho,int:Bo,intHex:Ro,intOct:Oo,intTime:Uo,map:Ct,merge:Ue,null:zs,omap:Er,pairs:Dr,seq:At,set:Cr,timestamp:Zs},Ff={"tag:yaml.org,2002:binary":gr,"tag:yaml.org,2002:merge":Ue,"tag:yaml.org,2002:omap":Er,"tag:yaml.org,2002:pairs":Dr,"tag:yaml.org,2002:set":Cr,"tag:yaml.org,2002:timestamp":Zs};function pn(t,e,s){const n=si.get(e);if(n&&!t)return s&&!n.includes(Ue)?n.concat(Ue):n.slice();let r=n;if(!r)if(Array.isArray(t))r=[];else{const i=Array.from(si.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${i} or define customTags array`)}if(Array.isArray(t))for(const i of t)r=r.concat(i);else typeof t=="function"&&(r=t(r.slice()));return s&&(r=r.concat(Ue)),r.reduce((i,o)=>{const u=typeof o=="string"?ni[o]:o;if(!u){const a=JSON.stringify(o),c=Object.keys(ni).map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown custom tag ${a}; use one of ${c}`)}return i.includes(u)||i.push(u),i},[])}const Nf=(t,e)=>t.key<e.key?-1:t.key>e.key?1:0;let Lf=class Ko{constructor({compat:e,customTags:s,merge:n,resolveKnownTags:r,schema:i,sortMapEntries:o,toStringDefaults:u}){this.compat=Array.isArray(e)?pn(e,"compat"):e?pn(null,e):null,this.name=typeof i=="string"&&i||"core",this.knownTags=r?Ff:{},this.tags=pn(s,this.name,n),this.toStringOptions=u??null,Object.defineProperty(this,Ye,{value:Ct}),Object.defineProperty(this,ke,{value:Xs}),Object.defineProperty(this,Dt,{value:At}),this.sortMapEntries=typeof o=="function"?o:o===!0?Nf:null}clone(){const e=Object.create(Ko.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};function xf(t,e){const s=[];let n=e.directives===!0;if(e.directives!==!1&&t.directives){const a=t.directives.toString(t);a?(s.push(a),n=!0):t.directives.docStart&&(n=!0)}n&&s.push("---");const r=Co(t,e),{commentString:i}=r.options;if(t.commentBefore){s.length!==1&&s.unshift("");const a=i(t.commentBefore);s.unshift(Ge(a,""))}let o=!1,u=null;if(t.contents){if(ie(t.contents)){if(t.contents.spaceBefore&&n&&s.push(""),t.contents.commentBefore){const h=i(t.contents.commentBefore);s.push(Ge(h,""))}r.forceBlockIndent=!!t.comment,u=t.contents.comment}const a=u?void 0:()=>o=!0;let c=dt(t.contents,r,()=>u=null,a);u&&(c+=nt(c,"",i(u))),(c[0]==="|"||c[0]===">")&&s[s.length-1]==="---"?s[s.length-1]=`--- ${c}`:s.push(c)}else s.push(dt(t.contents,r));if(t.directives?.docEnd)if(t.comment){const a=i(t.comment);a.includes(`
73
+ `)?(s.push("..."),s.push(Ge(a,""))):s.push(`... ${a}`)}else s.push("...");else{let a=t.comment;a&&o&&(a=a.replace(/^\n+/,"")),a&&((!o||u)&&s[s.length-1]!==""&&s.push(""),s.push(Ge(i(a),"")))}return s.join(`
74
+ `)+`
75
+ `}let Wo=class qo{constructor(e,s,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Se,{value:qn});let r=null;typeof s=="function"||Array.isArray(s)?r=s:n===void 0&&s&&(n=s,s=void 0);const i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},n);this.options=i;let{version:o}=i;n?._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new pt({version:o}),this.setSchema(o,n),this.contents=e===void 0?null:this.createNode(e,r,n)}clone(){const e=Object.create(qo.prototype,{[Se]:{value:qn}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=ie(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){ot(this.contents)&&this.contents.add(e)}addIn(e,s){ot(this.contents)&&this.contents.addIn(e,s)}createAlias(e,s){if(!e.anchor){const n=mo(this);e.anchor=!s||n.has(s)?go(s||"a",n):s}return new hr(e.anchor)}createNode(e,s,n){let r;if(typeof s=="function")e=s.call({"":e},"",e),r=s;else if(Array.isArray(s)){const g=y=>typeof y=="number"||y instanceof String||y instanceof Number,p=s.filter(g).map(String);p.length>0&&(s=s.concat(p)),r=s}else n===void 0&&s&&(n=s,s=void 0);const{aliasDuplicateObjects:i,anchorPrefix:o,flow:u,keepUndefined:a,onTagObj:c,tag:h}=n??{},{onAnchor:f,setAnchors:m,sourceObjects:D}=sf(this,o||"a"),C={aliasDuplicateObjects:i??!0,keepUndefined:a??!1,onAnchor:f,onTagObj:c,replacer:r,schema:this.schema,sourceObjects:D},d=ps(e,h,C);return u&&re(d)&&(d.flow=!0),m(),d}createPair(e,s,n={}){const r=this.createNode(e,null,n),i=this.createNode(s,null,n);return new Ce(r,i)}delete(e){return ot(this.contents)?this.contents.delete(e):!1}deleteIn(e){return os(e)?this.contents==null?!1:(this.contents=null,!0):ot(this.contents)?this.contents.deleteIn(e):!1}get(e,s){return re(this.contents)?this.contents.get(e,s):void 0}getIn(e,s){return os(e)?!s&&X(this.contents)?this.contents.value:this.contents:re(this.contents)?this.contents.getIn(e,s):void 0}has(e){return re(this.contents)?this.contents.has(e):!1}hasIn(e){return os(e)?this.contents!==void 0:re(this.contents)?this.contents.hasIn(e):!1}set(e,s){this.contents==null?this.contents=Ts(this.schema,[e],s):ot(this.contents)&&this.contents.set(e,s)}setIn(e,s){os(e)?this.contents=s:this.contents==null?this.contents=Ts(this.schema,Array.from(e),s):ot(this.contents)&&this.contents.setIn(e,s)}setSchema(e,s={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new pt({version:"1.1"}),n={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new pt({version:e}),n={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const r=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${r}`)}}if(s.schema instanceof Object)this.schema=s.schema;else if(n)this.schema=new Lf(Object.assign(n,s));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:s,mapAsMap:n,maxAliasCount:r,onAnchor:i,reviver:o}={}){const u={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=ve(this.contents,s??"",u);if(typeof i=="function")for(const{count:c,res:h}of u.anchors.values())i(h,c);return typeof o=="function"?ct(o,{"":a},"",a):a}toJSON(e,s){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:s})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const s=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${s}`)}return xf(this,e)}};function ot(t){if(re(t))return!0;throw new Error("Expected a YAML collection as document contents")}let Vo=class extends Error{constructor(e,s,n,r){super(),this.name=e,this.code=n,this.message=r,this.pos=s}},us=class extends Vo{constructor(e,s,n){super("YAMLParseError",e,s,n)}},Of=class extends Vo{constructor(e,s,n){super("YAMLWarning",e,s,n)}};const ri=(t,e)=>s=>{if(s.pos[0]===-1)return;s.linePos=s.pos.map(u=>e.linePos(u));const{line:n,col:r}=s.linePos[0];s.message+=` at line ${n}, column ${r}`;let i=r-1,o=t.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){const u=Math.min(i-39,o.length-79);o="…"+o.substring(u),i-=u-1}if(o.length>80&&(o=o.substring(0,79)+"…"),n>1&&/^ *$/.test(o.substring(0,i))){let u=t.substring(e.lineStarts[n-2],e.lineStarts[n-1]);u.length>80&&(u=u.substring(0,79)+`…
76
+ `),o=u+o}if(/[^ ]/.test(o)){let u=1;const a=s.linePos[1];a?.line===n&&a.col>r&&(u=Math.max(1,Math.min(a.col-r,80-i)));const c=" ".repeat(i)+"^".repeat(u);s.message+=`:
77
+
78
+ ${o}
79
+ ${c}
80
+ `}};function mt(t,{flow:e,indicator:s,next:n,offset:r,onError:i,parentIndent:o,startOnNewline:u}){let a=!1,c=u,h=u,f="",m="",D=!1,C=!1,d=null,g=null,p=null,y=null,A=null,l=null,E=null;for(const v of t)switch(C&&(v.type!=="space"&&v.type!=="newline"&&v.type!=="comma"&&i(v.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),C=!1),d&&(c&&v.type!=="comment"&&v.type!=="newline"&&i(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=null),v.type){case"space":!e&&(s!=="doc-start"||n?.type!=="flow-collection")&&v.source.includes(" ")&&(d=v),h=!0;break;case"comment":{h||i(v,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const B=v.source.substring(1)||" ";f?f+=m+B:f=B,m="",c=!1;break}case"newline":c?f?f+=v.source:(!l||s!=="seq-item-ind")&&(a=!0):m+=v.source,c=!0,D=!0,(g||p)&&(y=v),h=!0;break;case"anchor":g&&i(v,"MULTIPLE_ANCHORS","A node can have at most one anchor"),v.source.endsWith(":")&&i(v.offset+v.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=v,E??(E=v.offset),c=!1,h=!1,C=!0;break;case"tag":{p&&i(v,"MULTIPLE_TAGS","A node can have at most one tag"),p=v,E??(E=v.offset),c=!1,h=!1,C=!0;break}case s:(g||p)&&i(v,"BAD_PROP_ORDER",`Anchors and tags must be after the ${v.source} indicator`),l&&i(v,"UNEXPECTED_TOKEN",`Unexpected ${v.source} in ${e??"collection"}`),l=v,c=s==="seq-item-ind"||s==="explicit-key-ind",h=!1;break;case"comma":if(e){A&&i(v,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),A=v,c=!1,h=!1;break}default:i(v,"UNEXPECTED_TOKEN",`Unexpected ${v.type} token`),c=!1,h=!1}const b=t[t.length-1],F=b?b.offset+b.source.length:r;return C&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&i(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d&&(c&&d.indent<=o||n?.type==="block-map"||n?.type==="block-seq")&&i(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:A,found:l,spaceBefore:a,comment:f,hasNewline:D,anchor:g,tag:p,newlineAfterProp:y,end:F,start:E??F}}function ds(t){if(!t)return null;switch(t.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(t.source.includes(`
81
+ `))return!0;if(t.end){for(const e of t.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of t.items){for(const s of e.start)if(s.type==="newline")return!0;if(e.sep){for(const s of e.sep)if(s.type==="newline")return!0}if(ds(e.key)||ds(e.value))return!0}return!1;default:return!0}}function zn(t,e,s){if(e?.type==="flow-collection"){const n=e.end[0];n.indent===t&&(n.source==="]"||n.source==="}")&&ds(e)&&s(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Yo(t,e,s){const{uniqueKeys:n}=t.options;if(n===!1)return!1;const r=typeof n=="function"?n:(i,o)=>i===o||X(i)&&X(o)&&i.value===o.value;return e.some(i=>r(i.key,s))}const ii="All mapping items must start at the same column";function Bf({composeNode:t,composeEmptyNode:e},s,n,r,i){const o=i?.nodeClass??be,u=new o(s.schema);s.atRoot&&(s.atRoot=!1);let a=n.offset,c=null;for(const h of n.items){const{start:f,key:m,sep:D,value:C}=h,d=mt(f,{indicator:"explicit-key-ind",next:m??D?.[0],offset:a,onError:r,parentIndent:n.indent,startOnNewline:!0}),g=!d.found;if(g){if(m&&(m.type==="block-seq"?r(a,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in m&&m.indent!==n.indent&&r(a,"BAD_INDENT",ii)),!d.anchor&&!d.tag&&!D){c=d.end,d.comment&&(u.comment?u.comment+=`
82
+ `+d.comment:u.comment=d.comment);continue}(d.newlineAfterProp||ds(m))&&r(m??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else d.found?.indent!==n.indent&&r(a,"BAD_INDENT",ii);s.atKey=!0;const p=d.end,y=m?t(s,m,d,r):e(s,p,f,null,d,r);s.schema.compat&&zn(n.indent,m,r),s.atKey=!1,Yo(s,u.items,y)&&r(p,"DUPLICATE_KEY","Map keys must be unique");const A=mt(D??[],{indicator:"map-value-ind",next:C,offset:y.range[2],onError:r,parentIndent:n.indent,startOnNewline:!m||m.type==="block-scalar"});if(a=A.end,A.found){g&&(C?.type==="block-map"&&!A.hasNewline&&r(a,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),s.options.strict&&d.start<A.found.offset-1024&&r(y.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const l=C?t(s,C,A,r):e(s,a,D,null,A,r);s.schema.compat&&zn(n.indent,C,r),a=l.range[2];const E=new Ce(y,l);s.options.keepSourceTokens&&(E.srcToken=h),u.items.push(E)}else{g&&r(y.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),A.comment&&(y.comment?y.comment+=`
83
+ `+A.comment:y.comment=A.comment);const l=new Ce(y);s.options.keepSourceTokens&&(l.srcToken=h),u.items.push(l)}}return c&&c<a&&r(c,"IMPOSSIBLE","Map comment with trailing content"),u.range=[n.offset,a,c??a],u}function Rf({composeNode:t,composeEmptyNode:e},s,n,r,i){const o=i?.nodeClass??it,u=new o(s.schema);s.atRoot&&(s.atRoot=!1),s.atKey&&(s.atKey=!1);let a=n.offset,c=null;for(const{start:h,value:f}of n.items){const m=mt(h,{indicator:"seq-item-ind",next:f,offset:a,onError:r,parentIndent:n.indent,startOnNewline:!0});if(!m.found)if(m.anchor||m.tag||f)f?.type==="block-seq"?r(m.end,"BAD_INDENT","All sequence items must start at the same column"):r(a,"MISSING_CHAR","Sequence item without - indicator");else{c=m.end,m.comment&&(u.comment=m.comment);continue}const D=f?t(s,f,m,r):e(s,m.end,h,null,m,r);s.schema.compat&&zn(n.indent,f,r),a=D.range[2],u.items.push(D)}return u.range=[n.offset,a,c??a],u}function ys(t,e,s,n){let r="";if(t){let i=!1,o="";for(const u of t){const{source:a,type:c}=u;switch(c){case"space":i=!0;break;case"comment":{s&&!i&&n(u,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const h=a.substring(1)||" ";r?r+=o+h:r=h,o="";break}case"newline":r&&(o+=a),i=!0;break;default:n(u,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`)}e+=a.length}}return{comment:r,offset:e}}const dn="Block collections are not allowed within flow collections",mn=t=>t&&(t.type==="block-map"||t.type==="block-seq");function kf({composeNode:t,composeEmptyNode:e},s,n,r,i){const o=n.start.source==="{",u=o?"flow map":"flow sequence",a=i?.nodeClass??(o?be:it),c=new a(s.schema);c.flow=!0;const h=s.atRoot;h&&(s.atRoot=!1),s.atKey&&(s.atKey=!1);let f=n.offset+n.start.source.length;for(let g=0;g<n.items.length;++g){const p=n.items[g],{start:y,key:A,sep:l,value:E}=p,b=mt(y,{flow:u,indicator:"explicit-key-ind",next:A??l?.[0],offset:f,onError:r,parentIndent:n.indent,startOnNewline:!1});if(!b.found){if(!b.anchor&&!b.tag&&!l&&!E){g===0&&b.comma?r(b.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`):g<n.items.length-1&&r(b.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${u}`),b.comment&&(c.comment?c.comment+=`
84
+ `+b.comment:c.comment=b.comment),f=b.end;continue}!o&&s.options.strict&&ds(A)&&r(A,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(g===0)b.comma&&r(b.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${u}`);else if(b.comma||r(b.start,"MISSING_CHAR",`Missing , between ${u} items`),b.comment){let F="";e:for(const v of y)switch(v.type){case"comma":case"space":break;case"comment":F=v.source.substring(1);break e;default:break e}if(F){let v=c.items[c.items.length-1];oe(v)&&(v=v.value??v.key),v.comment?v.comment+=`
85
+ `+F:v.comment=F,b.comment=b.comment.substring(F.length+1)}}if(!o&&!l&&!b.found){const F=E?t(s,E,b,r):e(s,b.end,l,null,b,r);c.items.push(F),f=F.range[2],mn(E)&&r(F.range,"BLOCK_IN_FLOW",dn)}else{s.atKey=!0;const F=b.end,v=A?t(s,A,b,r):e(s,F,y,null,b,r);mn(A)&&r(v.range,"BLOCK_IN_FLOW",dn),s.atKey=!1;const B=mt(l??[],{flow:u,indicator:"map-value-ind",next:E,offset:v.range[2],onError:r,parentIndent:n.indent,startOnNewline:!1});if(B.found){if(!o&&!b.found&&s.options.strict){if(l)for(const I of l){if(I===B.found)break;if(I.type==="newline"){r(I,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}b.start<B.found.offset-1024&&r(B.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else E&&("source"in E&&E.source?.[0]===":"?r(E,"MISSING_CHAR",`Missing space after : in ${u}`):r(B.start,"MISSING_CHAR",`Missing , or : between ${u} items`));const k=E?t(s,E,B,r):B.found?e(s,B.end,l,null,B,r):null;k?mn(E)&&r(k.range,"BLOCK_IN_FLOW",dn):B.comment&&(v.comment?v.comment+=`
86
+ `+B.comment:v.comment=B.comment);const W=new Ce(v,k);if(s.options.keepSourceTokens&&(W.srcToken=p),o){const I=c;Yo(s,I.items,v)&&r(F,"DUPLICATE_KEY","Map keys must be unique"),I.items.push(W)}else{const I=new be(s.schema);I.flow=!0,I.items.push(W);const ge=(k??v).range;I.range=[v.range[0],ge[1],ge[2]],c.items.push(I)}f=k?k.range[2]:B.end}}const m=o?"}":"]",[D,...C]=n.end;let d=f;if(D?.source===m)d=D.offset+D.source.length;else{const g=u[0].toUpperCase()+u.substring(1),p=h?`${g} must end with a ${m}`:`${g} in block collection must be sufficiently indented and end with a ${m}`;r(f,h?"MISSING_CHAR":"BAD_INDENT",p),D&&D.source.length!==1&&C.unshift(D)}if(C.length>0){const g=ys(C,d,s.options.strict,r);g.comment&&(c.comment?c.comment+=`
87
+ `+g.comment:c.comment=g.comment),c.range=[n.offset,d,g.offset]}else c.range=[n.offset,d,d];return c}function gn(t,e,s,n,r,i){const o=s.type==="block-map"?Bf(t,e,s,n,i):s.type==="block-seq"?Rf(t,e,s,n,i):kf(t,e,s,n,i),u=o.constructor;return r==="!"||r===u.tagName?(o.tag=u.tagName,o):(r&&(o.tag=r),o)}function If(t,e,s,n,r){const i=n.tag,o=i?e.directives.tagName(i.source,m=>r(i,"TAG_RESOLVE_FAILED",m)):null;if(s.type==="block-seq"){const{anchor:m,newlineAfterProp:D}=n,C=m&&i?m.offset>i.offset?m:i:m??i;C&&(!D||D.offset<C.offset)&&r(C,"MISSING_CHAR","Missing newline after block sequence props")}const u=s.type==="block-map"?"map":s.type==="block-seq"?"seq":s.start.source==="{"?"map":"seq";if(!i||!o||o==="!"||o===be.tagName&&u==="map"||o===it.tagName&&u==="seq")return gn(t,e,s,r,o);let a=e.schema.tags.find(m=>m.tag===o&&m.collection===u);if(!a){const m=e.schema.knownTags[o];if(m?.collection===u)e.schema.tags.push(Object.assign({},m,{default:!1})),a=m;else return m?r(i,"BAD_COLLECTION_TYPE",`${m.tag} used for ${u} collection, but expects ${m.collection??"scalar"}`,!0):r(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),gn(t,e,s,r,o)}const c=gn(t,e,s,r,o,a),h=a.resolve?.(c,m=>r(i,"TAG_RESOLVE_FAILED",m),e.options)??c,f=ie(h)?h:new _(h);return f.range=c.range,f.tag=o,a?.format&&(f.format=a.format),f}function Tf(t,e,s){const n=e.offset,r=_f(e,t.options.strict,s);if(!r)return{value:"",type:null,comment:"",range:[n,n,n]};const i=r.mode===">"?_.BLOCK_FOLDED:_.BLOCK_LITERAL,o=e.source?Pf(e.source):[];let u=o.length;for(let d=o.length-1;d>=0;--d){const g=o[d][1];if(g===""||g==="\r")u=d;else break}if(u===0){const d=r.chomp==="+"&&o.length>0?`
88
+ `.repeat(Math.max(1,o.length-1)):"";let g=n+r.length;return e.source&&(g+=e.source.length),{value:d,type:i,comment:r.comment,range:[n,g,g]}}let a=e.indent+r.indent,c=e.offset+r.length,h=0;for(let d=0;d<u;++d){const[g,p]=o[d];if(p===""||p==="\r")r.indent===0&&g.length>a&&(a=g.length);else{g.length<a&&s(c+g.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),r.indent===0&&(a=g.length),h=d,a===0&&!t.atRoot&&s(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=g.length+p.length+1}for(let d=o.length-1;d>=u;--d)o[d][0].length>a&&(u=d+1);let f="",m="",D=!1;for(let d=0;d<h;++d)f+=o[d][0].slice(a)+`
89
+ `;for(let d=h;d<u;++d){let[g,p]=o[d];c+=g.length+p.length+1;const y=p[p.length-1]==="\r";if(y&&(p=p.slice(0,-1)),p&&g.length<a){const A=`Block scalar lines must not be less indented than their ${r.indent?"explicit indentation indicator":"first line"}`;s(c-p.length-(y?2:1),"BAD_INDENT",A),g=""}i===_.BLOCK_LITERAL?(f+=m+g.slice(a)+p,m=`
90
+ `):g.length>a||p[0]===" "?(m===" "?m=`
91
+ `:!D&&m===`
92
+ `&&(m=`
93
+
94
+ `),f+=m+g.slice(a)+p,m=`
95
+ `,D=!0):p===""?m===`
96
+ `?f+=`
97
+ `:m=`
98
+ `:(f+=m+p,m=" ",D=!1)}switch(r.chomp){case"-":break;case"+":for(let d=u;d<o.length;++d)f+=`
99
+ `+o[d][0].slice(a);f[f.length-1]!==`
100
+ `&&(f+=`
101
+ `);break;default:f+=`
102
+ `}const C=n+r.length+e.source.length;return{value:f,type:i,comment:r.comment,range:[n,C,C]}}function _f({offset:t,props:e},s,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:r}=e[0],i=r[0];let o=0,u="",a=-1;for(let m=1;m<r.length;++m){const D=r[m];if(!u&&(D==="-"||D==="+"))u=D;else{const C=Number(D);!o&&C?o=C:a===-1&&(a=t+m)}}a!==-1&&n(a,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${r}`);let c=!1,h="",f=r.length;for(let m=1;m<e.length;++m){const D=e[m];switch(D.type){case"space":c=!0;case"newline":f+=D.source.length;break;case"comment":s&&!c&&n(D,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=D.source.length,h=D.source.substring(1);break;case"error":n(D,"UNEXPECTED_TOKEN",D.message),f+=D.source.length;break;default:{const C=`Unexpected token in block scalar header: ${D.type}`;n(D,"UNEXPECTED_TOKEN",C);const d=D.source;d&&typeof d=="string"&&(f+=d.length)}}}return{mode:i,indent:o,chomp:u,comment:h,length:f}}function Pf(t){const e=t.split(/\n( *)/),s=e[0],n=s.match(/^( *)/),r=[n?.[1]?[n[1],s.slice(n[1].length)]:["",s]];for(let i=1;i<e.length;i+=2)r.push([e[i],e[i+1]]);return r}function Mf(t,e,s){const{offset:n,type:r,source:i,end:o}=t;let u,a;const c=(m,D,C)=>s(n+m,D,C);switch(r){case"scalar":u=_.PLAIN,a=Gf(i,c);break;case"single-quoted-scalar":u=_.QUOTE_SINGLE,a=jf(i,c);break;case"double-quoted-scalar":u=_.QUOTE_DOUBLE,a=Uf(i,c);break;default:return s(t,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${r}`),{value:"",type:null,comment:"",range:[n,n+i.length,n+i.length]}}const h=n+i.length,f=ys(o,h,e,s);return{value:a,type:u,comment:f.comment,range:[n,h,f.offset]}}function Gf(t,e){let s="";switch(t[0]){case" ":s="a tab character";break;case",":s="flow indicator character ,";break;case"%":s="directive indicator character %";break;case"|":case">":{s=`block scalar indicator ${t[0]}`;break}case"@":case"`":{s=`reserved character ${t[0]}`;break}}return s&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${s}`),Xo(t)}function jf(t,e){return(t[t.length-1]!=="'"||t.length===1)&&e(t.length,"MISSING_CHAR","Missing closing 'quote"),Xo(t.slice(1,-1)).replace(/''/g,"'")}function Xo(t){let e,s;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
103
+ `,"sy"),s=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
104
+ `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,s=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(t);if(!n)return t;let r=n[1],i=" ",o=e.lastIndex;for(s.lastIndex=o;n=s.exec(t);)n[1]===""?i===`
105
+ `?r+=i:i=`
106
+ `:(r+=i+n[1],i=" "),o=s.lastIndex;const u=/[ \t]*(.*)/sy;return u.lastIndex=o,n=u.exec(t),r+i+(n?.[1]??"")}function Uf(t,e){let s="";for(let n=1;n<t.length-1;++n){const r=t[n];if(!(r==="\r"&&t[n+1]===`
107
+ `))if(r===`
108
+ `){const{fold:i,offset:o}=Hf(t,n);s+=i,n=o}else if(r==="\\"){let i=t[++n];const o=Kf[i];if(o)s+=o;else if(i===`
109
+ `)for(i=t[n+1];i===" "||i===" ";)i=t[++n+1];else if(i==="\r"&&t[n+1]===`
110
+ `)for(i=t[++n+1];i===" "||i===" ";)i=t[++n+1];else if(i==="x"||i==="u"||i==="U"){const u=i==="x"?2:i==="u"?4:8;s+=Wf(t,n+1,u,e),n+=u}else{const u=t.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${u}`),s+=u}}else if(r===" "||r===" "){const i=n;let o=t[n+1];for(;o===" "||o===" ";)o=t[++n+1];o!==`
111
+ `&&!(o==="\r"&&t[n+2]===`
112
+ `)&&(s+=n>i?t.slice(i,n+1):r)}else s+=r}return(t[t.length-1]!=='"'||t.length===1)&&e(t.length,"MISSING_CHAR",'Missing closing "quote'),s}function Hf(t,e){let s="",n=t[e+1];for(;(n===" "||n===" "||n===`
113
+ `||n==="\r")&&!(n==="\r"&&t[e+2]!==`
114
+ `);)n===`
115
+ `&&(s+=`
116
+ `),e+=1,n=t[e+1];return s||(s=" "),{fold:s,offset:e}}const Kf={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
117
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function Wf(t,e,s,n){const r=t.substr(e,s),i=r.length===s&&/^[0-9a-fA-F]+$/.test(r)?parseInt(r,16):NaN;try{return String.fromCodePoint(i)}catch{const o=t.substr(e-2,s+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${o}`),o}}function zo(t,e,s,n){const{value:r,type:i,comment:o,range:u}=e.type==="block-scalar"?Tf(t,e,n):Mf(e,t.options.strict,n),a=s?t.directives.tagName(s.source,f=>n(s,"TAG_RESOLVE_FAILED",f)):null;let c;t.options.stringKeys&&t.atKey?c=t.schema[ke]:a?c=qf(t.schema,r,a,s,n):e.type==="scalar"?c=Vf(t,r,e,n):c=t.schema[ke];let h;try{const f=c.resolve(r,m=>n(s??e,"TAG_RESOLVE_FAILED",m),t.options);h=X(f)?f:new _(f)}catch(f){const m=f instanceof Error?f.message:String(f);n(s??e,"TAG_RESOLVE_FAILED",m),h=new _(r)}return h.range=u,h.source=r,i&&(h.type=i),a&&(h.tag=a),c.format&&(h.format=c.format),o&&(h.comment=o),h}function qf(t,e,s,n,r){if(s==="!")return t[ke];const i=[];for(const u of t.tags)if(!u.collection&&u.tag===s)if(u.default&&u.test)i.push(u);else return u;for(const u of i)if(u.test?.test(e))return u;const o=t.knownTags[s];return o&&!o.collection?(t.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(r(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${s}`,s!=="tag:yaml.org,2002:str"),t[ke])}function Vf({atKey:t,directives:e,schema:s},n,r,i){const o=s.tags.find(u=>(u.default===!0||t&&u.default==="key")&&u.test?.test(n))||s[ke];if(s.compat){const u=s.compat.find(a=>a.default&&a.test?.test(n))??s[ke];if(o.tag!==u.tag){const a=e.tagString(o.tag),c=e.tagString(u.tag),h=`Value may be parsed as either ${a} or ${c}`;i(r,"TAG_RESOLVE_FAILED",h,!0)}}return o}function Yf(t,e,s){if(e){s??(s=e.length);for(let n=s-1;n>=0;--n){let r=e[n];switch(r.type){case"space":case"comment":case"newline":t-=r.source.length;continue}for(r=e[++n];r?.type==="space";)t+=r.source.length,r=e[++n];break}}return t}const Xf={composeNode:Jo,composeEmptyNode:br};function Jo(t,e,s,n){const r=t.atKey,{spaceBefore:i,comment:o,anchor:u,tag:a}=s;let c,h=!0;switch(e.type){case"alias":c=zf(t,e,n),(u||a)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=zo(t,e,a,n),u&&(c.anchor=u.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{c=If(Xf,t,e,s,n),u&&(c.anchor=u.source.substring(1))}catch(f){const m=f instanceof Error?f.message:String(f);n(e,"RESOURCE_EXHAUSTION",m)}break;default:{const f=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",f),h=!1}}return c??(c=br(t,e.offset,void 0,null,s,n)),u&&c.anchor===""&&n(u,"BAD_ALIAS","Anchor cannot be an empty string"),r&&t.options.stringKeys&&(!X(c)||typeof c.value!="string"||c.tag&&c.tag!=="tag:yaml.org,2002:str")&&n(a??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),i&&(c.spaceBefore=!0),o&&(e.type==="scalar"&&e.source===""?c.comment=o:c.commentBefore=o),t.options.keepSourceTokens&&h&&(c.srcToken=e),c}function br(t,e,s,n,{spaceBefore:r,comment:i,anchor:o,tag:u,end:a},c){const h={type:"scalar",offset:Yf(e,s,n),indent:-1,source:""},f=zo(t,h,u,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),r&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=a),f}function zf({options:t},{offset:e,source:s,end:n},r){const i=new hr(s.substring(1));i.source===""&&r(e,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&r(e+s.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const o=e+s.length,u=ys(n,o,t.strict,r);return i.range=[e,o,u.offset],u.comment&&(i.comment=u.comment),i}function Jf(t,e,{offset:s,start:n,value:r,end:i},o){const u=Object.assign({_directives:e},t),a=new Wo(void 0,u),c={atKey:!1,atRoot:!0,directives:a.directives,options:a.options,schema:a.schema},h=mt(n,{indicator:"doc-start",next:r??i?.[0],offset:s,onError:o,parentIndent:0,startOnNewline:!0});h.found&&(a.directives.docStart=!0,r&&(r.type==="block-map"||r.type==="block-seq")&&!h.hasNewline&&o(h.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),a.contents=r?Jo(c,r,h,o):br(c,h.end,n,null,h,o);const f=a.contents.range[2],m=ys(i,f,!1,o);return m.comment&&(a.comment=m.comment),a.range=[s,f,m.offset],a}function ss(t){if(typeof t=="number")return[t,t+1];if(Array.isArray(t))return t.length===2?t:[t[0],t[1]];const{offset:e,source:s}=t;return[e,e+(typeof s=="string"?s.length:1)]}function oi(t){let e="",s=!1,n=!1;for(let r=0;r<t.length;++r){const i=t[r];switch(i[0]){case"#":e+=(e===""?"":n?`
118
+
119
+ `:`
120
+ `)+(i.substring(1)||" "),s=!0,n=!1;break;case"%":t[r+1]?.[0]!=="#"&&(r+=1),s=!1;break;default:s||(n=!0),s=!1}}return{comment:e,afterEmptyLine:n}}let Qf=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(s,n,r,i)=>{const o=ss(s);i?this.warnings.push(new Of(o,n,r)):this.errors.push(new us(o,n,r))},this.directives=new pt({version:e.version||"1.2"}),this.options=e}decorate(e,s){const{comment:n,afterEmptyLine:r}=oi(this.prelude);if(n){const i=e.contents;if(s)e.comment=e.comment?`${e.comment}
121
+ ${n}`:n;else if(r||e.directives.docStart||!i)e.commentBefore=n;else if(re(i)&&!i.flow&&i.items.length>0){let o=i.items[0];oe(o)&&(o=o.key);const u=o.commentBefore;o.commentBefore=u?`${n}
122
+ ${u}`:n}else{const o=i.commentBefore;i.commentBefore=o?`${n}
123
+ ${o}`:n}}if(s){for(let i=0;i<this.errors.length;++i)e.errors.push(this.errors[i]);for(let i=0;i<this.warnings.length;++i)e.warnings.push(this.warnings[i])}else e.errors=this.errors,e.warnings=this.warnings;this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:oi(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,s=!1,n=-1){for(const r of e)yield*this.next(r);yield*this.end(s,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(s,n,r)=>{const i=ss(e);i[0]+=s,this.onError(i,"BAD_DIRECTIVE",n,r)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const s=Jf(this.options,this.directives,e,this.onError);this.atDirectives&&!s.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(s,!1),this.doc&&(yield this.doc),this.doc=s,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const s=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new us(ss(e),"UNEXPECTED_TOKEN",s);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new us(ss(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const s=ys(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),s.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
124
+ ${s.comment}`:s.comment}this.doc.range[2]=s.offset;break}default:this.errors.push(new us(ss(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,s=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),r=new Wo(void 0,n);this.atDirectives&&this.onError(s,"MISSING_CHAR","Missing directives-end indicator line"),r.range=[0,s,s],this.decorate(r,!1),yield r}}};const Qo="\uFEFF",Zo="",eu="",Jn="";function Zf(t){switch(t){case Qo:return"byte-order-mark";case Zo:return"doc-mode";case eu:return"flow-error-end";case Jn:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
125
+ `:case`\r
126
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(t[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}function $e(t){switch(t){case void 0:case" ":case`
127
+ `:case"\r":case" ":return!0;default:return!1}}const ui=new Set("0123456789ABCDEFabcdef"),ep=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),$s=new Set(",[]{}"),tp=new Set(` ,[]{}
128
+ \r `),Dn=t=>!t||tp.has(t);let sp=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,s=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!s;let n=this.next??"stream";for(;n&&(s||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,s=this.buffer[e];for(;s===" "||s===" ";)s=this.buffer[++e];return!s||s==="#"||s===`
129
+ `?!0:s==="\r"?this.buffer[e+1]===`
130
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let s=this.buffer[e];if(this.indentNext>0){let n=0;for(;s===" ";)s=this.buffer[++n+e];if(s==="\r"){const r=this.buffer[n+e+1];if(r===`
131
+ `||!r&&!this.atEnd)return e+n+1}return s===`
132
+ `||n>=this.indentNext||!s&&!this.atEnd?e+n:-1}if(s==="-"||s==="."){const n=this.buffer.substr(e,3);if((n==="---"||n==="...")&&$e(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
133
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Qo&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let s=e.length,n=e.indexOf("#");for(;n!==-1;){const i=e[n-1];if(i===" "||i===" "){s=n-1;break}else n=e.indexOf("#",n+1)}for(;;){const i=e[s-1];if(i===" "||i===" ")s-=1;else break}const r=(yield*this.pushCount(s))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-r),this.pushNewline(),"stream"}if(this.atLineEnd()){const s=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-s),yield*this.pushNewline(),"stream"}return yield Zo,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const s=this.peek(3);if((s==="---"||s==="...")&&$e(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,s==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!$e(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,s]=this.peek(2);if(!s&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&$e(s)){const n=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=n,"block-start"}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const e=this.getLine();if(e===null)return this.setNext("doc");let s=yield*this.pushIndicators();switch(e[s]){case"#":yield*this.pushCount(e.length-s);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Dn),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return s+=yield*this.parseBlockScalarHeader(),s+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-s),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,s,n=-1;do e=yield*this.pushNewline(),e>0?(s=yield*this.pushSpaces(!1),this.indentValue=n=s):s=0,s+=yield*this.pushSpaces(!0);while(e+s>0);const r=this.getLine();if(r===null)return this.setNext("flow");if((n!==-1&&n<this.indentNext&&r[0]!=="#"||n===0&&(r.startsWith("---")||r.startsWith("..."))&&$e(r[3]))&&!(n===this.indentNext-1&&this.flowLevel===1&&(r[0]==="]"||r[0]==="}")))return this.flowLevel=0,yield eu,yield*this.parseLineStart();let i=0;for(;r[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),r[i]){case void 0:return"flow";case"#":return yield*this.pushCount(r.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Dn),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const o=this.charAt(1);if(this.flowKey||$e(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let s=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;s!==-1&&this.buffer[s+1]==="'";)s=this.buffer.indexOf("'",s+2);else for(;s!==-1;){let i=0;for(;this.buffer[s-1-i]==="\\";)i+=1;if(i%2===0)break;s=this.buffer.indexOf('"',s+1)}const n=this.buffer.substring(0,s);let r=n.indexOf(`
134
+ `,this.pos);if(r!==-1){for(;r!==-1;){const i=this.continueScalar(r+1);if(i===-1)break;r=n.indexOf(`
135
+ `,i)}r!==-1&&(s=r-(n[r-1]==="\r"?2:1))}if(s===-1){if(!this.atEnd)return this.setNext("quoted-scalar");s=this.buffer.length}return yield*this.pushToIndex(s+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const s=this.buffer[++e];if(s==="+")this.blockScalarKeep=!0;else if(s>"0"&&s<="9")this.blockScalarIndent=Number(s)-1;else if(s!=="-")break}return yield*this.pushUntil(s=>$e(s)||s==="#")}*parseBlockScalar(){let e=this.pos-1,s=0,n;e:for(let i=this.pos;n=this.buffer[i];++i)switch(n){case" ":s+=1;break;case`
136
+ `:e=i,s=0;break;case"\r":{const o=this.buffer[i+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
137
+ `)break}default:break e}if(!n&&!this.atEnd)return this.setNext("block-scalar");if(s>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=s:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
138
+ `,i)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let r=e+1;for(n=this.buffer[r];n===" ";)n=this.buffer[++r];if(n===" "){for(;n===" "||n===" "||n==="\r"||n===`
139
+ `;)n=this.buffer[++r];e=r-1}else if(!this.blockScalarKeep)do{let i=e-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);const u=i;for(;o===" ";)o=this.buffer[--i];if(o===`
140
+ `&&i>=this.pos&&i+1+s>u)e=i;else break}while(!0);return yield Jn,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let s=this.pos-1,n=this.pos-1,r;for(;r=this.buffer[++n];)if(r===":"){const i=this.buffer[n+1];if($e(i)||e&&$s.has(i))break;s=n}else if($e(r)){let i=this.buffer[n+1];if(r==="\r"&&(i===`
141
+ `?(n+=1,r=`
142
+ `,i=this.buffer[n+1]):s=n),i==="#"||e&&$s.has(i))break;if(r===`
143
+ `){const o=this.continueScalar(n+1);if(o===-1)break;n=Math.max(n,o-2)}}else{if(e&&$s.has(r))break;s=n}return!r&&!this.atEnd?this.setNext("plain-scalar"):(yield Jn,yield*this.pushToIndex(s+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,s){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(s&&(yield""),0)}*pushIndicators(){let e=0;e:for(;;){switch(this.charAt(0)){case"!":e+=yield*this.pushTag(),e+=yield*this.pushSpaces(!0);continue e;case"&":e+=yield*this.pushUntil(Dn),e+=yield*this.pushSpaces(!0);continue e;case"-":case"?":case":":{const s=this.flowLevel>0,n=this.charAt(1);if($e(n)||s&&$s.has(n)){s?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,e+=yield*this.pushCount(1),e+=yield*this.pushSpaces(!0);continue e}}}break e}return e}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,s=this.buffer[e];for(;!$e(s)&&s!==">";)s=this.buffer[++e];return yield*this.pushToIndex(s===">"?e+1:e,!1)}else{let e=this.pos+1,s=this.buffer[e];for(;s;)if(ep.has(s))s=this.buffer[++e];else if(s==="%"&&ui.has(this.buffer[e+1])&&ui.has(this.buffer[e+2]))s=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
144
+ `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
145
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let s=this.pos-1,n;do n=this.buffer[++s];while(n===" "||e&&n===" ");const r=s-this.pos;return r>0&&(yield this.buffer.substr(this.pos,r),this.pos=s),r}*pushUntil(e){let s=this.pos,n=this.buffer[s];for(;!e(n);)n=this.buffer[++s];return yield*this.pushToIndex(s,!1)}},np=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let s=0,n=this.lineStarts.length;for(;s<n;){const i=s+n>>1;this.lineStarts[i]<e?s=i+1:n=i}if(this.lineStarts[s]===e)return{line:s+1,col:1};if(s===0)return{line:0,col:e};const r=this.lineStarts[s-1];return{line:s,col:e-r+1}}}};function Ve(t,e){for(let s=0;s<t.length;++s)if(t[s].type===e)return!0;return!1}function ai(t){for(let e=0;e<t.length;++e)switch(t[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function tu(t){switch(t?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function ws(t){switch(t.type){case"document":return t.start;case"block-map":{const e=t.items[t.items.length-1];return e.sep??e.start}case"block-seq":return t.items[t.items.length-1].start;default:return[]}}function ut(t){if(t.length===0)return[];let e=t.length;e:for(;--e>=0;)switch(t[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;t[++e]?.type==="space";);return t.splice(e,t.length)}function Ps(t,e){if(e.length<1e5)Array.prototype.push.apply(t,e);else for(let s=0;s<e.length;++s)t.push(e[s])}function ci(t){if(t.start.type==="flow-seq-start")for(const e of t.items)e.sep&&!e.value&&!Ve(e.start,"explicit-key-ind")&&!Ve(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,tu(e.value)?e.value.end?Ps(e.value.end,e.sep):e.value.end=e.sep:Ps(e.start,e.sep),delete e.sep)}let rp=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new sp,this.onNewLine=e}*parse(e,s=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,s))yield*this.next(n);s||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const s=Zf(e);if(s)if(s==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=s,yield*this.step(),s){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&e?.type!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const s=e??this.stack.pop();if(!s)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield s;else{const n=this.peek(1);switch(s.type==="block-scalar"?s.indent="indent"in n?n.indent:0:s.type==="flow-collection"&&n.type==="document"&&(s.indent=0),s.type==="flow-collection"&&ci(s),n.type){case"document":n.value=s;break;case"block-scalar":n.props.push(s);break;case"block-map":{const r=n.items[n.items.length-1];if(r.value){n.items.push({start:[],key:s,sep:[]}),this.onKeyLine=!0;return}else if(r.sep)r.value=s;else{Object.assign(r,{key:s,sep:[]}),this.onKeyLine=!r.explicitKey;return}break}case"block-seq":{const r=n.items[n.items.length-1];r.value?n.items.push({start:[],value:s}):r.value=s;break}case"flow-collection":{const r=n.items[n.items.length-1];!r||r.value?n.items.push({start:[],key:s,sep:[]}):r.sep?r.value=s:Object.assign(r,{key:s,sep:[]});return}default:yield*this.pop(),yield*this.pop(s)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(s.type==="block-map"||s.type==="block-seq")){const r=s.items[s.items.length-1];r&&!r.sep&&!r.value&&r.start.length>0&&ai(r.start)===-1&&(s.indent===0||r.start.every(i=>i.type!=="comment"||i.indent<s.indent))&&(n.type==="document"?n.end=r.start:n.items.push({start:r.start}),s.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{ai(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const s=this.startBlockValue(e);s?this.stack.push(s):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const s=ws(this.peek(2)),n=ut(s);let r;e.end?(r=e.end,r.push(this.sourceToken),delete e.end):r=[this.sourceToken];const i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:r}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let s=this.source.indexOf(`
146
+ `)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
147
+ `,s)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){const s=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,s.value){const n="end"in s.value?s.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)e.items.push({start:[this.sourceToken]});else if(s.sep)s.sep.push(this.sourceToken);else{if(this.atIndentedComment(s.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Ps(n,s.start),n.push(this.sourceToken),e.items.pop();return}}s.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const n=!this.onKeyLine&&this.indent===e.indent,r=n&&(s.sep||s.explicitKey)&&this.type!=="seq-item-ind";let i=[];if(r&&s.sep&&!s.value){const o=[];for(let u=0;u<s.sep.length;++u){const a=s.sep[u];switch(a.type){case"newline":o.push(u);break;case"space":break;case"comment":a.indent>e.indent&&(o.length=0);break;default:o.length=0}}o.length>=2&&(i=s.sep.splice(o[1]))}switch(this.type){case"anchor":case"tag":r||s.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"explicit-key-ind":!s.sep&&!s.explicitKey?(s.start.push(this.sourceToken),s.explicitKey=!0):r||s.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(s.explicitKey)if(s.sep)if(s.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Ve(s.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(tu(s.key)&&!Ve(s.sep,"newline")){const o=ut(s.start),u=s.key,a=s.sep;a.push(this.sourceToken),delete s.key,delete s.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:u,sep:a}]})}else i.length>0?s.sep=s.sep.concat(i,this.sourceToken):s.sep.push(this.sourceToken);else if(Ve(s.start,"newline"))Object.assign(s,{key:null,sep:[this.sourceToken]});else{const o=ut(s.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]})}else s.sep?s.value||r?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Ve(s.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);r||s.value?(e.items.push({start:i,key:o,sep:[]}),this.onKeyLine=!0):s.sep?this.stack.push(o):(Object.assign(s,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{const o=this.startBlockValue(e);if(o){if(o.type==="block-seq"){if(!s.explicitKey&&s.sep&&!Ve(s.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else n&&e.items.push({start:i});this.stack.push(o);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){const s=e.items[e.items.length-1];switch(this.type){case"newline":if(s.value){const n="end"in s.value?s.value.end:void 0;(Array.isArray(n)?n[n.length-1]:void 0)?.type==="comment"?n?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else s.start.push(this.sourceToken);return;case"space":case"comment":if(s.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(s.start,e.indent)){const n=e.items[e.items.length-2]?.value?.end;if(Array.isArray(n)){Ps(n,s.start),n.push(this.sourceToken),e.items.pop();return}}s.start.push(this.sourceToken)}return;case"anchor":case"tag":if(s.value||this.indent<=e.indent)break;s.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;s.value||Ve(s.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):s.start.push(this.sourceToken);return}if(this.indent>e.indent){const n=this.startBlockValue(e);if(n){this.stack.push(n);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const s=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n?.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!s||s.sep?e.items.push({start:[this.sourceToken]}):s.start.push(this.sourceToken);return;case"map-value-ind":!s||s.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):Object.assign(s,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!s||s.value?e.items.push({start:[this.sourceToken]}):s.sep?s.sep.push(this.sourceToken):s.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const r=this.flowScalar(this.type);!s||s.value?e.items.push({start:[],key:r,sep:[]}):s.sep?this.stack.push(r):Object.assign(s,{key:r,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const r=ws(n),i=ut(r);ci(e);const o=e.end.splice(1,e.end.length);o.push(this.sourceToken);const u={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=u}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let s=this.source.indexOf(`
148
+ `)+1;for(;s!==0;)this.onNewLine(this.offset+s),s=this.source.indexOf(`
149
+ `,s)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const s=ws(e),n=ut(s);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const s=ws(e),n=ut(s);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,s){return this.type!=="comment"||this.indent<=s?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}};function ip(t){const e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new np||null,prettyErrors:e}}function op(t,e={}){const{lineCounter:s,prettyErrors:n}=ip(e),r=new rp(s?.addNewLine),i=new Qf(e);let o=null;for(const u of i.compose(r.parse(t),!0,t.length))if(!o)o=u;else if(o.options.logLevel!=="silent"){o.errors.push(new us(u.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&s&&(o.errors.forEach(ri(t,s)),o.warnings.forEach(ri(t,s))),o}function Ms(t,e,s){let n;typeof e=="function"?n=e:s===void 0&&e&&typeof e=="object"&&(s=e);const r=op(t,s);if(!r)return null;if(r.warnings.forEach(i=>Ao(r.options.logLevel,i)),r.errors.length>0){if(r.options.logLevel!=="silent")throw r.errors[0];r.errors=[]}return r.toJS(Object.assign({reviver:n},s))}async function su(t,e,s){const{buffer:n,compression:r,encoding:i="utf8",flag:o,...u}={},a=await ir(t,{buffer:n,compression:r,encoding:i,flag:o});return typeof e=="function"?Ms(a,e,u):Ms(a,u)}function nu(t,e,s){const{buffer:n,compression:r,encoding:i="utf8",flag:o,...u}={},a=or(t,{buffer:n,compression:r,encoding:i,flag:o});return typeof e=="function"?Ms(a,e,u):Ms(a,u)}var up=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/,ap=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/,cp=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/,En={Space_Separator:up,ID_Start:ap,ID_Continue:cp},ne={isSpaceSeparator(t){return typeof t=="string"&&En.Space_Separator.test(t)},isIdStartChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t==="$"||t==="_"||En.ID_Start.test(t))},isIdContinueChar(t){return typeof t=="string"&&(t>="a"&&t<="z"||t>="A"&&t<="Z"||t>="0"&&t<="9"||t==="$"||t==="_"||t==="‌"||t==="‍"||En.ID_Continue.test(t))},isDigit(t){return typeof t=="string"&&/[0-9]/.test(t)},isHexDigit(t){return typeof t=="string"&&/[0-9A-Fa-f]/.test(t)}};let Qn,de,Me,Gs,Xe,Fe,le,vr,fs;var lp=function(t,e){Qn=String(t),de="start",Me=[],Gs=0,Xe=1,Fe=0,le=void 0,vr=void 0,fs=void 0;do le=hp(),dp[de]();while(le.type!=="eof");return typeof e=="function"?Zn({"":fs},"",e):fs};function Zn(t,e,s){const n=t[e];if(n!=null&&typeof n=="object")if(Array.isArray(n))for(let r=0;r<n.length;r++){const i=String(r),o=Zn(n,i,s);o===void 0?delete n[i]:Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}else for(const r in n){const i=Zn(n,r,s);i===void 0?delete n[r]:Object.defineProperty(n,r,{value:i,writable:!0,enumerable:!0,configurable:!0})}return s.call(t,e,n)}let M,T,as,Pe,H;function hp(){for(M="default",T="",as=!1,Pe=1;;){H=He();const t=ru[M]();if(t)return t}}function He(){if(Qn[Gs])return String.fromCodePoint(Qn.codePointAt(Gs))}function N(){const t=He();return t===`
150
+ `?(Xe++,Fe=0):t?Fe+=t.length:Fe++,t&&(Gs+=t.length),t}const ru={default(){switch(H){case" ":case"\v":case"\f":case" ":case" ":case"\uFEFF":case`
151
+ `:case"\r":case"\u2028":case"\u2029":N();return;case"/":N(),M="comment";return;case void 0:return N(),z("eof")}if(ne.isSpaceSeparator(H)){N();return}return ru[de]()},comment(){switch(H){case"*":N(),M="multiLineComment";return;case"/":N(),M="singleLineComment";return}throw Q(N())},multiLineComment(){switch(H){case"*":N(),M="multiLineCommentAsterisk";return;case void 0:throw Q(N())}N()},multiLineCommentAsterisk(){switch(H){case"*":N();return;case"/":N(),M="default";return;case void 0:throw Q(N())}N(),M="multiLineComment"},singleLineComment(){switch(H){case`
152
+ `:case"\r":case"\u2028":case"\u2029":N(),M="default";return;case void 0:return N(),z("eof")}N()},value(){switch(H){case"{":case"[":return z("punctuator",N());case"n":return N(),Qe("ull"),z("null",null);case"t":return N(),Qe("rue"),z("boolean",!0);case"f":return N(),Qe("alse"),z("boolean",!1);case"-":case"+":N()==="-"&&(Pe=-1),M="sign";return;case".":T=N(),M="decimalPointLeading";return;case"0":T=N(),M="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":T=N(),M="decimalInteger";return;case"I":return N(),Qe("nfinity"),z("numeric",1/0);case"N":return N(),Qe("aN"),z("numeric",NaN);case'"':case"'":as=N()==='"',T="",M="string";return}throw Q(N())},identifierNameStartEscape(){if(H!=="u")throw Q(N());N();const t=er();switch(t){case"$":case"_":break;default:if(!ne.isIdStartChar(t))throw li();break}T+=t,M="identifierName"},identifierName(){switch(H){case"$":case"_":case"‌":case"‍":T+=N();return;case"\\":N(),M="identifierNameEscape";return}if(ne.isIdContinueChar(H)){T+=N();return}return z("identifier",T)},identifierNameEscape(){if(H!=="u")throw Q(N());N();const t=er();switch(t){case"$":case"_":case"‌":case"‍":break;default:if(!ne.isIdContinueChar(t))throw li();break}T+=t,M="identifierName"},sign(){switch(H){case".":T=N(),M="decimalPointLeading";return;case"0":T=N(),M="zero";return;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":T=N(),M="decimalInteger";return;case"I":return N(),Qe("nfinity"),z("numeric",Pe*(1/0));case"N":return N(),Qe("aN"),z("numeric",NaN)}throw Q(N())},zero(){switch(H){case".":T+=N(),M="decimalPoint";return;case"e":case"E":T+=N(),M="decimalExponent";return;case"x":case"X":T+=N(),M="hexadecimal";return}return z("numeric",Pe*0)},decimalInteger(){switch(H){case".":T+=N(),M="decimalPoint";return;case"e":case"E":T+=N(),M="decimalExponent";return}if(ne.isDigit(H)){T+=N();return}return z("numeric",Pe*Number(T))},decimalPointLeading(){if(ne.isDigit(H)){T+=N(),M="decimalFraction";return}throw Q(N())},decimalPoint(){switch(H){case"e":case"E":T+=N(),M="decimalExponent";return}if(ne.isDigit(H)){T+=N(),M="decimalFraction";return}return z("numeric",Pe*Number(T))},decimalFraction(){switch(H){case"e":case"E":T+=N(),M="decimalExponent";return}if(ne.isDigit(H)){T+=N();return}return z("numeric",Pe*Number(T))},decimalExponent(){switch(H){case"+":case"-":T+=N(),M="decimalExponentSign";return}if(ne.isDigit(H)){T+=N(),M="decimalExponentInteger";return}throw Q(N())},decimalExponentSign(){if(ne.isDigit(H)){T+=N(),M="decimalExponentInteger";return}throw Q(N())},decimalExponentInteger(){if(ne.isDigit(H)){T+=N();return}return z("numeric",Pe*Number(T))},hexadecimal(){if(ne.isHexDigit(H)){T+=N(),M="hexadecimalInteger";return}throw Q(N())},hexadecimalInteger(){if(ne.isHexDigit(H)){T+=N();return}return z("numeric",Pe*Number(T))},string(){switch(H){case"\\":N(),T+=fp();return;case'"':if(as)return N(),z("string",T);T+=N();return;case"'":if(!as)return N(),z("string",T);T+=N();return;case`
153
+ `:case"\r":throw Q(N());case"\u2028":case"\u2029":mp(H);break;case void 0:throw Q(N())}T+=N()},start(){switch(H){case"{":case"[":return z("punctuator",N())}M="value"},beforePropertyName(){switch(H){case"$":case"_":T=N(),M="identifierName";return;case"\\":N(),M="identifierNameStartEscape";return;case"}":return z("punctuator",N());case'"':case"'":as=N()==='"',M="string";return}if(ne.isIdStartChar(H)){T+=N(),M="identifierName";return}throw Q(N())},afterPropertyName(){if(H===":")return z("punctuator",N());throw Q(N())},beforePropertyValue(){M="value"},afterPropertyValue(){switch(H){case",":case"}":return z("punctuator",N())}throw Q(N())},beforeArrayValue(){if(H==="]")return z("punctuator",N());M="value"},afterArrayValue(){switch(H){case",":case"]":return z("punctuator",N())}throw Q(N())},end(){throw Q(N())}};function z(t,e){return{type:t,value:e,line:Xe,column:Fe}}function Qe(t){for(const e of t){if(He()!==e)throw Q(N());N()}}function fp(){switch(He()){case"b":return N(),"\b";case"f":return N(),"\f";case"n":return N(),`
154
+ `;case"r":return N(),"\r";case"t":return N()," ";case"v":return N(),"\v";case"0":if(N(),ne.isDigit(He()))throw Q(N());return"\0";case"x":return N(),pp();case"u":return N(),er();case`
155
+ `:case"\u2028":case"\u2029":return N(),"";case"\r":return N(),He()===`
156
+ `&&N(),"";case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":throw Q(N());case void 0:throw Q(N())}return N()}function pp(){let t="",e=He();if(!ne.isHexDigit(e)||(t+=N(),e=He(),!ne.isHexDigit(e)))throw Q(N());return t+=N(),String.fromCodePoint(parseInt(t,16))}function er(){let t="",e=4;for(;e-- >0;){const s=He();if(!ne.isHexDigit(s))throw Q(N());t+=N()}return String.fromCodePoint(parseInt(t,16))}const dp={start(){if(le.type==="eof")throw Ze();yn()},beforePropertyName(){switch(le.type){case"identifier":case"string":vr=le.value,de="afterPropertyName";return;case"punctuator":Fs();return;case"eof":throw Ze()}},afterPropertyName(){if(le.type==="eof")throw Ze();de="beforePropertyValue"},beforePropertyValue(){if(le.type==="eof")throw Ze();yn()},beforeArrayValue(){if(le.type==="eof")throw Ze();if(le.type==="punctuator"&&le.value==="]"){Fs();return}yn()},afterPropertyValue(){if(le.type==="eof")throw Ze();switch(le.value){case",":de="beforePropertyName";return;case"}":Fs()}},afterArrayValue(){if(le.type==="eof")throw Ze();switch(le.value){case",":de="beforeArrayValue";return;case"]":Fs()}},end(){}};function yn(){let t;switch(le.type){case"punctuator":switch(le.value){case"{":t={};break;case"[":t=[];break}break;case"null":case"boolean":case"numeric":case"string":t=le.value;break}if(fs===void 0)fs=t;else{const e=Me[Me.length-1];Array.isArray(e)?e.push(t):Object.defineProperty(e,vr,{value:t,writable:!0,enumerable:!0,configurable:!0})}if(t!==null&&typeof t=="object")Me.push(t),Array.isArray(t)?de="beforeArrayValue":de="beforePropertyName";else{const e=Me[Me.length-1];e==null?de="end":Array.isArray(e)?de="afterArrayValue":de="afterPropertyValue"}}function Fs(){Me.pop();const t=Me[Me.length-1];t==null?de="end":Array.isArray(t)?de="afterArrayValue":de="afterPropertyValue"}function Q(t){return Sr(t===void 0?`JSON5: invalid end of input at ${Xe}:${Fe}`:`JSON5: invalid character '${iu(t)}' at ${Xe}:${Fe}`)}function Ze(){return Sr(`JSON5: invalid end of input at ${Xe}:${Fe}`)}function li(){return Fe-=5,Sr(`JSON5: invalid identifier character at ${Xe}:${Fe}`)}function mp(t){console.warn(`JSON5: '${iu(t)}' in strings is not valid ECMAScript; consider escaping`)}function iu(t){const e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(e[t])return e[t];if(t<" "){const s=t.charCodeAt(0).toString(16);return"\\x"+("00"+s).substring(s.length)}return t}function Sr(t){const e=new SyntaxError(t);return e.lineNumber=Xe,e.columnNumber=Fe,e}var gp=function(t,e,s){const n=[];let r="",i,o,u="",a;if(e!=null&&typeof e=="object"&&!Array.isArray(e)&&(s=e.space,a=e.quote,e=e.replacer),typeof e=="function")o=e;else if(Array.isArray(e)){i=[];for(const C of e){let d;typeof C=="string"?d=C:(typeof C=="number"||C instanceof String||C instanceof Number)&&(d=String(C)),d!==void 0&&i.indexOf(d)<0&&i.push(d)}}return s instanceof Number?s=Number(s):s instanceof String&&(s=String(s)),typeof s=="number"?s>0&&(s=Math.min(10,Math.floor(s)),u=" ".substr(0,s)):typeof s=="string"&&(u=s.substr(0,10)),c("",{"":t});function c(C,d){let g=d[C];switch(g!=null&&(typeof g.toJSON5=="function"?g=g.toJSON5(C):typeof g.toJSON=="function"&&(g=g.toJSON(C))),o&&(g=o.call(d,C,g)),g instanceof Number?g=Number(g):g instanceof String?g=String(g):g instanceof Boolean&&(g=g.valueOf()),g){case null:return"null";case!0:return"true";case!1:return"false"}if(typeof g=="string")return h(g);if(typeof g=="number")return String(g);if(typeof g=="object")return Array.isArray(g)?D(g):f(g)}function h(C){const d={"'":.1,'"':.2},g={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};let p="";for(let A=0;A<C.length;A++){const l=C[A];switch(l){case"'":case'"':d[l]++,p+=l;continue;case"\0":if(ne.isDigit(C[A+1])){p+="\\x00";continue}}if(g[l]){p+=g[l];continue}if(l<" "){let E=l.charCodeAt(0).toString(16);p+="\\x"+("00"+E).substring(E.length);continue}p+=l}const y=a||Object.keys(d).reduce((A,l)=>d[A]<d[l]?A:l);return p=p.replace(new RegExp(y,"g"),g[y]),y+p+y}function f(C){if(n.indexOf(C)>=0)throw TypeError("Converting circular structure to JSON5");n.push(C);let d=r;r=r+u;let g=i||Object.keys(C),p=[];for(const A of g){const l=c(A,C);if(l!==void 0){let E=m(A)+":";u!==""&&(E+=" "),E+=l,p.push(E)}}let y;if(p.length===0)y="{}";else{let A;if(u==="")A=p.join(","),y="{"+A+"}";else{let l=`,
157
+ `+r;A=p.join(l),y=`{
158
+ `+r+A+`,
159
+ `+d+"}"}}return n.pop(),r=d,y}function m(C){if(C.length===0)return h(C);const d=String.fromCodePoint(C.codePointAt(0));if(!ne.isIdStartChar(d))return h(C);for(let g=d.length;g<C.length;g++)if(!ne.isIdContinueChar(String.fromCodePoint(C.codePointAt(g))))return h(C);return C}function D(C){if(n.indexOf(C)>=0)throw TypeError("Converting circular structure to JSON5");n.push(C);let d=r;r=r+u;let g=[];for(let y=0;y<C.length;y++){const A=c(String(y),C);g.push(A!==void 0?A:"null")}let p;if(g.length===0)p="[]";else if(u==="")p="["+g.join(",")+"]";else{let y=`,
160
+ `+r,A=g.join(y);p=`[
161
+ `+r+A+`,
162
+ `+d+"]"}return n.pop(),r=d,p}};const Dp={parse:lp,stringify:gp};var ou=Dp;function Ep(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function $r(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var s=function n(){var r=!1;try{r=this instanceof n}catch{}return r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};s.prototype=e.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(s,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}),s}var Cn,hi;function uu(){return hi||(hi=1,Cn=process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{}),Cn}var An,fi;function au(){return fi||(fi=1,An={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}),An}var Ns={exports:{}},pi;function yp(){return pi||(pi=1,(function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:r}=au(),i=uu();e=t.exports={};const o=e.re=[],u=e.safeRe=[],a=e.src=[],c=e.safeSrc=[],h=e.t={};let f=0;const m="[a-zA-Z0-9-]",D=[["\\s",1],["\\d",r],[m,n]],C=g=>{for(const[p,y]of D)g=g.split(`${p}*`).join(`${p}{0,${y}}`).split(`${p}+`).join(`${p}{1,${y}}`);return g},d=(g,p,y)=>{const A=C(p),l=f++;i(g,l,p),h[g]=l,a[l]=p,c[l]=A,o[l]=new RegExp(p,y?"g":void 0),u[l]=new RegExp(A,y?"g":void 0)};d("NUMERICIDENTIFIER","0|[1-9]\\d*"),d("NUMERICIDENTIFIERLOOSE","\\d+"),d("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${m}*`),d("MAINVERSION",`(${a[h.NUMERICIDENTIFIER]})\\.(${a[h.NUMERICIDENTIFIER]})\\.(${a[h.NUMERICIDENTIFIER]})`),d("MAINVERSIONLOOSE",`(${a[h.NUMERICIDENTIFIERLOOSE]})\\.(${a[h.NUMERICIDENTIFIERLOOSE]})\\.(${a[h.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASEIDENTIFIER",`(?:${a[h.NONNUMERICIDENTIFIER]}|${a[h.NUMERICIDENTIFIER]})`),d("PRERELEASEIDENTIFIERLOOSE",`(?:${a[h.NONNUMERICIDENTIFIER]}|${a[h.NUMERICIDENTIFIERLOOSE]})`),d("PRERELEASE",`(?:-(${a[h.PRERELEASEIDENTIFIER]}(?:\\.${a[h.PRERELEASEIDENTIFIER]})*))`),d("PRERELEASELOOSE",`(?:-?(${a[h.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${a[h.PRERELEASEIDENTIFIERLOOSE]})*))`),d("BUILDIDENTIFIER",`${m}+`),d("BUILD",`(?:\\+(${a[h.BUILDIDENTIFIER]}(?:\\.${a[h.BUILDIDENTIFIER]})*))`),d("FULLPLAIN",`v?${a[h.MAINVERSION]}${a[h.PRERELEASE]}?${a[h.BUILD]}?`),d("FULL",`^${a[h.FULLPLAIN]}$`),d("LOOSEPLAIN",`[v=\\s]*${a[h.MAINVERSIONLOOSE]}${a[h.PRERELEASELOOSE]}?${a[h.BUILD]}?`),d("LOOSE",`^${a[h.LOOSEPLAIN]}$`),d("GTLT","((?:<|>)?=?)"),d("XRANGEIDENTIFIERLOOSE",`${a[h.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),d("XRANGEIDENTIFIER",`${a[h.NUMERICIDENTIFIER]}|x|X|\\*`),d("XRANGEPLAIN",`[v=\\s]*(${a[h.XRANGEIDENTIFIER]})(?:\\.(${a[h.XRANGEIDENTIFIER]})(?:\\.(${a[h.XRANGEIDENTIFIER]})(?:${a[h.PRERELEASE]})?${a[h.BUILD]}?)?)?`),d("XRANGEPLAINLOOSE",`[v=\\s]*(${a[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[h.XRANGEIDENTIFIERLOOSE]})(?:\\.(${a[h.XRANGEIDENTIFIERLOOSE]})(?:${a[h.PRERELEASELOOSE]})?${a[h.BUILD]}?)?)?`),d("XRANGE",`^${a[h.GTLT]}\\s*${a[h.XRANGEPLAIN]}$`),d("XRANGELOOSE",`^${a[h.GTLT]}\\s*${a[h.XRANGEPLAINLOOSE]}$`),d("COERCEPLAIN",`(^|[^\\d])(\\d{1,${s}})(?:\\.(\\d{1,${s}}))?(?:\\.(\\d{1,${s}}))?`),d("COERCE",`${a[h.COERCEPLAIN]}(?:$|[^\\d])`),d("COERCEFULL",a[h.COERCEPLAIN]+`(?:${a[h.PRERELEASE]})?(?:${a[h.BUILD]})?(?:$|[^\\d])`),d("COERCERTL",a[h.COERCE],!0),d("COERCERTLFULL",a[h.COERCEFULL],!0),d("LONETILDE","(?:~>?)"),d("TILDETRIM",`(\\s*)${a[h.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",d("TILDE",`^${a[h.LONETILDE]}${a[h.XRANGEPLAIN]}$`),d("TILDELOOSE",`^${a[h.LONETILDE]}${a[h.XRANGEPLAINLOOSE]}$`),d("LONECARET","(?:\\^)"),d("CARETTRIM",`(\\s*)${a[h.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",d("CARET",`^${a[h.LONECARET]}${a[h.XRANGEPLAIN]}$`),d("CARETLOOSE",`^${a[h.LONECARET]}${a[h.XRANGEPLAINLOOSE]}$`),d("COMPARATORLOOSE",`^${a[h.GTLT]}\\s*(${a[h.LOOSEPLAIN]})$|^$`),d("COMPARATOR",`^${a[h.GTLT]}\\s*(${a[h.FULLPLAIN]})$|^$`),d("COMPARATORTRIM",`(\\s*)${a[h.GTLT]}\\s*(${a[h.LOOSEPLAIN]}|${a[h.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",d("HYPHENRANGE",`^\\s*(${a[h.XRANGEPLAIN]})\\s+-\\s+(${a[h.XRANGEPLAIN]})\\s*$`),d("HYPHENRANGELOOSE",`^\\s*(${a[h.XRANGEPLAINLOOSE]})\\s+-\\s+(${a[h.XRANGEPLAINLOOSE]})\\s*$`),d("STAR","(<|>)?=?\\s*\\*"),d("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),d("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Ns,Ns.exports)),Ns.exports}var bn,di;function Cp(){if(di)return bn;di=1;const t=Object.freeze({loose:!0}),e=Object.freeze({});return bn=n=>n?typeof n!="object"?t:n:e,bn}var vn,mi;function Ap(){if(mi)return vn;mi=1;const t=/^[0-9]+$/,e=(n,r)=>{if(typeof n=="number"&&typeof r=="number")return n===r?0:n<r?-1:1;const i=t.test(n),o=t.test(r);return i&&o&&(n=+n,r=+r),n===r?0:i&&!o?-1:o&&!i?1:n<r?-1:1};return vn={compareIdentifiers:e,rcompareIdentifiers:(n,r)=>e(r,n)},vn}var Sn,gi;function bp(){if(gi)return Sn;gi=1;const t=uu(),{MAX_LENGTH:e,MAX_SAFE_INTEGER:s}=au(),{safeRe:n,t:r}=yp(),i=Cp(),{compareIdentifiers:o}=Ap();class u{constructor(c,h){if(h=i(h),c instanceof u){if(c.loose===!!h.loose&&c.includePrerelease===!!h.includePrerelease)return c;c=c.version}else if(typeof c!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof c}".`);if(c.length>e)throw new TypeError(`version is longer than ${e} characters`);t("SemVer",c,h),this.options=h,this.loose=!!h.loose,this.includePrerelease=!!h.includePrerelease;const f=c.trim().match(h.loose?n[r.LOOSE]:n[r.FULL]);if(!f)throw new TypeError(`Invalid Version: ${c}`);if(this.raw=c,this.major=+f[1],this.minor=+f[2],this.patch=+f[3],this.major>s||this.major<0)throw new TypeError("Invalid major version");if(this.minor>s||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>s||this.patch<0)throw new TypeError("Invalid patch version");f[4]?this.prerelease=f[4].split(".").map(m=>{if(/^[0-9]+$/.test(m)){const D=+m;if(D>=0&&D<s)return D}return m}):this.prerelease=[],this.build=f[5]?f[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(c){if(t("SemVer.compare",this.version,this.options,c),!(c instanceof u)){if(typeof c=="string"&&c===this.version)return 0;c=new u(c,this.options)}return c.version===this.version?0:this.compareMain(c)||this.comparePre(c)}compareMain(c){return c instanceof u||(c=new u(c,this.options)),this.major<c.major?-1:this.major>c.major?1:this.minor<c.minor?-1:this.minor>c.minor?1:this.patch<c.patch?-1:this.patch>c.patch?1:0}comparePre(c){if(c instanceof u||(c=new u(c,this.options)),this.prerelease.length&&!c.prerelease.length)return-1;if(!this.prerelease.length&&c.prerelease.length)return 1;if(!this.prerelease.length&&!c.prerelease.length)return 0;let h=0;do{const f=this.prerelease[h],m=c.prerelease[h];if(t("prerelease compare",h,f,m),f===void 0&&m===void 0)return 0;if(m===void 0)return 1;if(f===void 0)return-1;if(f!==m)return o(f,m)}while(++h)}compareBuild(c){c instanceof u||(c=new u(c,this.options));let h=0;do{const f=this.build[h],m=c.build[h];if(t("build compare",h,f,m),f===void 0&&m===void 0)return 0;if(m===void 0)return 1;if(f===void 0)return-1;if(f!==m)return o(f,m)}while(++h)}inc(c,h,f){if(c.startsWith("pre")){if(!h&&f===!1)throw new Error("invalid increment argument: identifier is empty");if(h){const m=`-${h}`.match(this.options.loose?n[r.PRERELEASELOOSE]:n[r.PRERELEASE]);if(!m||m[1]!==h)throw new Error(`invalid identifier: ${h}`)}}switch(c){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",h,f);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",h,f);break;case"prepatch":this.prerelease.length=0,this.inc("patch",h,f),this.inc("pre",h,f);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",h,f),this.inc("pre",h,f);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const m=Number(f)?1:0;if(this.prerelease.length===0)this.prerelease=[m];else{let D=this.prerelease.length;for(;--D>=0;)typeof this.prerelease[D]=="number"&&(this.prerelease[D]++,D=-2);if(D===-1){if(h===this.prerelease.join(".")&&f===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(m)}}if(h){let D=[h,m];f===!1&&(D=[h]),o(this.prerelease[0],h)===0?isNaN(this.prerelease[1])&&(this.prerelease=D):this.prerelease=D}break}default:throw new Error(`invalid increment argument: ${c}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return Sn=u,Sn}var $n,Di;function cu(){if(Di)return $n;Di=1;const t=bp();return $n=(s,n,r=!1)=>{if(s instanceof t)return s;try{return new t(s,n)}catch(i){if(!r)return null;throw i}},$n}var wn,Ei;function vp(){if(Ei)return wn;Ei=1;const t=cu();return wn=(s,n)=>{const r=t(s,n);return r?r.version:null},wn}var Fn,yi;function Sp(){if(yi)return Fn;yi=1;const t=cu();return Fn=(s,n)=>{const r=t(s.trim().replace(/^[=v]+/,""),n);return r?r.version:null},Fn}var Nn,Ci;function lu(){return Ci||(Ci=1,Nn=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","ALGLIB-Documentation","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Advanced-Cryptics-Dictionary","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","Artistic-dist","Aspell-RU","BOLA-1.1","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-2-Clause-pkgconf-disclaimer","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-Tso","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Mark-Modifications","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","Buddy","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CAPEC-tou","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CryptoSwift","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","ESA-PL-permissive-2.4","ESA-PL-strong-copyleft-2.4","ESA-PL-weak-copyleft-2.4","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Game-Programming-Gems","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HDF5","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-SMC","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-sell-variant-critical-systems","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ISO-permission","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-STK","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MMPL-1.0.1","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-TNT","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSC-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OSSP","OpenMDW-1.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","ParaType-Free-Font-1.3","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGMLUG-PM","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SOFA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SUL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TekHVC","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","UnRAR","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","VOSTROM","VSL-1.0","Vim","Vixie-Cron","W3C","W3C-19980720","W3C-20150513","WTFNMFPL","WTFPL","Watcom-1.0","Widget-Workshop","WordNet","Wsuipa","X11","X11-distribute-modifications-variant","X11-no-permit-persons","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","hyphen-bulgarian","iMatix","jove","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","man2html","metamail","mpi-permissive","mpich2","mplus","ngrep","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]),Nn}var Ln,Ai;function $p(){return Ai||(Ai=1,Ln=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]),Ln}var xn,bi;function wp(){return bi||(bi=1,xn=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]),xn}var On,vi;function Fp(){if(vi)return On;vi=1;var t=[].concat(lu()).concat($p()),e=wp();return On=function(s){var n=0;function r(){return n<s.length}function i(g){if(g instanceof RegExp){var p=s.slice(n),y=p.match(g);if(y)return n+=y[0].length,y[0]}else if(s.indexOf(g,n)===n)return n+=g.length,g}function o(){i(/[ ]*/)}function u(){for(var g,p=["WITH","AND","OR","(",")",":","+"],y=0;y<p.length&&(g=i(p[y]),!g);y++);if(g==="+"&&n>1&&s[n-2]===" ")throw new Error("Space before `+`");return g&&{type:"OPERATOR",string:g}}function a(){return i(/[A-Za-z0-9-.]+/)}function c(){var g=a();if(!g)throw new Error("Expected idstring at offset "+n);return g}function h(){if(i("DocumentRef-")){var g=c();return{type:"DOCUMENTREF",string:g}}}function f(){if(i("LicenseRef-")){var g=c();return{type:"LICENSEREF",string:g}}}function m(){var g=n,p=a();if(t.indexOf(p)!==-1)return{type:"LICENSE",string:p};if(e.indexOf(p)!==-1)return{type:"EXCEPTION",string:p};n=g}function D(){return u()||h()||f()||m()}for(var C=[];r()&&(o(),!!r());){var d=D();if(!d)throw new Error("Unexpected `"+s[n]+"` at offset "+n);C.push(d)}return C},On}var Bn,Si;function Np(){return Si||(Si=1,Bn=function(t){var e=0;function s(){return e<t.length}function n(){return s()?t[e]:null}function r(){if(!s())throw new Error;e++}function i(d){var g=n();if(g&&g.type==="OPERATOR"&&d===g.string)return r(),g.string}function o(){if(i("WITH")){var d=n();if(d&&d.type==="EXCEPTION")return r(),d.string;throw new Error("Expected exception after `WITH`")}}function u(){var d=e,g="",p=n();if(p.type==="DOCUMENTREF"&&(r(),g+="DocumentRef-"+p.string+":",!i(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(p=n(),p.type==="LICENSEREF")return r(),g+="LicenseRef-"+p.string,{license:g};e=d}function a(){var d=n();if(d&&d.type==="LICENSE"){r();var g={license:d.string};i("+")&&(g.plus=!0);var p=o();return p&&(g.exception=p),g}}function c(){var d=i("(");if(d){var g=D();if(!i(")"))throw new Error("Expected `)`");return g}}function h(){return c()||u()||a()}function f(d,g){return function p(){var y=g();if(y){if(!i(d))return y;var A=p();if(!A)throw new Error("Expected expression");return{left:y,conjunction:d.toLowerCase(),right:A}}}}var m=f("AND",h),D=f("OR",m),C=D();if(!C||s())throw new Error("Syntax error");return C}),Bn}var Rn,$i;function hu(){if($i)return Rn;$i=1;var t=Fp(),e=Np();return Rn=function(s){return e(t(s))},Rn}var kn,wi;function Lp(){if(wi)return kn;wi=1;var t=hu(),e=lu();function s(p){try{return t(p),!0}catch{return!1}}function n(p,y){var A=y[0].length-p[0].length;return A!==0?A:p[0].toUpperCase().localeCompare(y[0].toUpperCase())}var r=[["APGL","AGPL"],["Gpl","GPL"],["GLP","GPL"],["APL","Apache"],["ISD","ISC"],["GLP","GPL"],["IST","ISC"],["Claude","Clause"],[" or later","+"],[" International",""],["GNU","GPL"],["GUN","GPL"],["+",""],["GNU GPL","GPL"],["GNU LGPL","LGPL"],["GNU/GPL","GPL"],["GNU GLP","GPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL"],["GNU Lesser General Public License","LGPL"],["GNU LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["GNU Lesser General Public License","LGPL-2.1"],["LESSER GENERAL PUBLIC LICENSE","LGPL"],["Lesser General Public License","LGPL"],["LESSER GENERAL PUBLIC LICENSE","LGPL-2.1"],["Lesser General Public License","LGPL-2.1"],["GNU General Public License","GPL"],["Gnu public license","GPL"],["GNU Public License","GPL"],["GNU GENERAL PUBLIC LICENSE","GPL"],["MTI","MIT"],["Mozilla Public License","MPL"],["Universal Permissive License","UPL"],["WTH","WTF"],["WTFGPL","WTFPL"],["-License",""]].sort(n),i=0,o=1,u=[function(p){return p.toUpperCase()},function(p){return p.trim()},function(p){return p.replace(/\./g,"")},function(p){return p.replace(/\s+/g,"")},function(p){return p.replace(/\s+/g,"-")},function(p){return p.replace("v","-")},function(p){return p.replace(/,?\s*(\d)/,"-$1")},function(p){return p.replace(/,?\s*(\d)/,"-$1.0")},function(p){return p.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2")},function(p){return p.replace(/,?\s*(V\.|v\.|V|v|Version|version)\s*(\d)/,"-$2.0")},function(p){return p[0].toUpperCase()+p.slice(1)},function(p){return p.replace("/","-")},function(p){return p.replace(/\s*V\s*(\d)/,"-$1").replace(/(\d)$/,"$1.0")},function(p){return p.indexOf("3.0")!==-1?p+"-or-later":p+"-only"},function(p){return p+"only"},function(p){return p.replace(/(\d)$/,"-$1.0")},function(p){return p.replace(/(-| )?(\d)$/,"-$2-Clause")},function(p){return p.replace(/(-| )clause(-| )(\d)/,"-$3-Clause")},function(p){return p.replace(/\b(Modified|New|Revised)(-| )?BSD((-| )License)?/i,"BSD-3-Clause")},function(p){return p.replace(/\bSimplified(-| )?BSD((-| )License)?/i,"BSD-2-Clause")},function(p){return p.replace(/\b(Free|Net)(-| )?BSD((-| )License)?/i,"BSD-2-Clause-$1BSD")},function(p){return p.replace(/\bClear(-| )?BSD((-| )License)?/i,"BSD-3-Clause-Clear")},function(p){return p.replace(/\b(Old|Original)(-| )?BSD((-| )License)?/i,"BSD-4-Clause")},function(p){return"CC-"+p},function(p){return"CC-"+p+"-4.0"},function(p){return p.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")},function(p){return"CC-"+p.replace("Attribution","BY").replace("NonCommercial","NC").replace("NoDerivatives","ND").replace(/ (\d)/,"-$1").replace(/ ?International/,"")+"-4.0"}],a=e.map(function(p){var y=/^(.*)-\d+\.\d+$/.exec(p);return y?[y[0],y[1]]:[p,null]}).reduce(function(p,y){var A=y[1];return p[A]=p[A]||[],p[A].push(y[0]),p},{}),c=Object.keys(a).map(function(p){return[p,a[p]]}).filter(function(p){return p[1].length===1&&p[0]!==null&&p[0]!=="APL"}).map(function(p){return[p[0],p[1][0]]});a=void 0;var h=[["UNLI","Unlicense"],["WTF","WTFPL"],["2 CLAUSE","BSD-2-Clause"],["2-CLAUSE","BSD-2-Clause"],["3 CLAUSE","BSD-3-Clause"],["3-CLAUSE","BSD-3-Clause"],["AFFERO","AGPL-3.0-or-later"],["AGPL","AGPL-3.0-or-later"],["APACHE","Apache-2.0"],["ARTISTIC","Artistic-2.0"],["Affero","AGPL-3.0-or-later"],["BEER","Beerware"],["BOOST","BSL-1.0"],["BSD","BSD-2-Clause"],["CDDL","CDDL-1.1"],["ECLIPSE","EPL-1.0"],["FUCK","WTFPL"],["GNU","GPL-3.0-or-later"],["LGPL","LGPL-3.0-or-later"],["GPLV1","GPL-1.0-only"],["GPL-1","GPL-1.0-only"],["GPLV2","GPL-2.0-only"],["GPL-2","GPL-2.0-only"],["GPL","GPL-3.0-or-later"],["MIT +NO-FALSE-ATTRIBS","MITNFA"],["MIT","MIT"],["MPL","MPL-2.0"],["X11","X11"],["ZLIB","Zlib"]].concat(c).sort(n),f=0,m=1,D=function(p){for(var y=0;y<u.length;y++){var A=u[y](p).trim();if(A!==p&&s(A))return A}return null},C=function(p){for(var y=p.toUpperCase(),A=0;A<h.length;A++){var l=h[A];if(y.indexOf(l[f])>-1)return l[m]}return null},d=function(p,y){for(var A=0;A<r.length;A++){var l=r[A],E=l[i];if(p.indexOf(E)>-1){var b=p.replace(E,l[o]),F=y(b);if(F!==null)return F}}return null};kn=function(p,y){y=y||{};var A=y.upgrade===void 0?!0:!!y.upgrade;function l(v){return A?g(v):v}var E=typeof p=="string"&&p.trim().length!==0;if(!E)throw Error("Invalid argument. Expected non-empty string.");if(p=p.trim(),s(p))return l(p);var b=p.replace(/\+$/,"").trim();if(s(b))return l(b);var F=D(p);return F!==null||(F=d(p,function(v){return s(v)?v:D(v)}),F!==null)||(F=C(p),F!==null)||(F=d(p,C),F!==null)?l(F):null};function g(p){return["GPL-1.0","LGPL-1.0","AGPL-1.0","GPL-2.0","LGPL-2.0","AGPL-2.0","LGPL-2.1"].indexOf(p)!==-1?p+"-only":["GPL-1.0+","GPL-2.0+","GPL-3.0+","LGPL-2.0+","LGPL-2.1+","LGPL-3.0+","AGPL-1.0+","AGPL-3.0+"].indexOf(p)!==-1?p.replace(/\+$/,"-or-later"):["GPL-3.0","LGPL-3.0","AGPL-3.0"].indexOf(p)!==-1?p+"-or-later":p}return kn}var In,Fi;function xp(){if(Fi)return In;Fi=1;var t=hu(),e=Lp(),s='license should be a valid SPDX license expression (without "LicenseRef"), "UNLICENSED", or "SEE LICENSE IN <filename>"',n=/^SEE LICEN[CS]E IN (.+)$/;function r(o,u){return u.slice(0,o.length)===o}function i(o){if(o.hasOwnProperty("license")){var u=o.license;return r("LicenseRef",u)||r("DocumentRef",u)}else return i(o.left)||i(o.right)}return In=function(o){var u;try{u=t(o)}catch{var a;if(o==="UNLICENSED"||o==="UNLICENCED")return{validForOldPackages:!0,validForNewPackages:!0,unlicensed:!0};if(a=n.exec(o))return{validForOldPackages:!0,validForNewPackages:!0,inFile:a[1]};var c={validForOldPackages:!1,validForNewPackages:!1,warnings:[s]};if(o.trim().length!==0){var h=e(o);h&&c.warnings.push('license is similar to the valid expression "'+h+'"')}return c}return i(u)?{validForNewPackages:!1,validForOldPackages:!1,spdx:!0,warnings:[s]}:{validForNewPackages:!0,validForOldPackages:!0,spdx:!0}},In}var fu={hasSubscribers:!1},ce=fu,ht=fu;import("node:diagnostics_channel").then(t=>{ce=t.channel("lru-cache:metrics"),ht=t.tracingChannel("lru-cache")}).catch(()=>{});var Op=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Tn=()=>ce.hasSubscribers||ht.hasSubscribers,pu=new Set,Ni=process||{},Bp=(t,e,s,n)=>{typeof Ni.emitWarning=="function"?Ni.emitWarning(t,e,s,n):console.error(`[${s}] ${e}: ${t}`)},Rp=t=>!pu.has(t),qe=t=>!!t&&t===Math.floor(t)&&t>0&&isFinite(t),du=t=>qe(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?Is:null:null,Is=class extends Array{constructor(e){super(e),this.fill(0)}},kp=class cs{heap;length;static#n=!1;static create(e){let s=du(e);if(!s)return[];cs.#n=!0;let n=new cs(e,s);return cs.#n=!1,n}constructor(e,s){if(!cs.#n)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new s(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},Ip=class mu{#n;#c;#t;#L;#D;#I;#T;#E;get perf(){return this.#E}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#o;#y;#i;#r;#e;#h;#p;#l;#u;#C;#a;#A;#b;#d;#m;#v;#_;#f;#x;static unsafeExposeInternals(e){return{starts:e.#b,ttls:e.#d,autopurgeTimers:e.#m,sizes:e.#A,keyMap:e.#i,keyList:e.#r,valList:e.#e,next:e.#h,prev:e.#p,get head(){return e.#l},get tail(){return e.#u},free:e.#C,isBackgroundFetch:s=>e.#s(s),backgroundFetch:(s,n,r,i)=>e.#G(s,n,r,i),moveToTail:s=>e.#k(s),indexes:s=>e.#S(s),rindexes:s=>e.#$(s),isStale:s=>e.#g(s)}}get max(){return this.#n}get maxSize(){return this.#c}get calculatedSize(){return this.#y}get size(){return this.#o}get fetchMethod(){return this.#I}get memoMethod(){return this.#T}get dispose(){return this.#t}get onInsert(){return this.#L}get disposeAfter(){return this.#D}constructor(e){let{max:s=0,ttl:n,ttlResolution:r=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:u,allowStale:a,dispose:c,onInsert:h,disposeAfter:f,noDisposeOnSet:m,noUpdateTTL:D,maxSize:C=0,maxEntrySize:d=0,sizeCalculation:g,fetchMethod:p,memoMethod:y,noDeleteOnFetchRejection:A,noDeleteOnStaleGet:l,allowStaleOnFetchRejection:E,allowStaleOnFetchAbort:b,ignoreFetchAbort:F,perf:v}=e;if(v!==void 0&&typeof v?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#E=v??Op,s!==0&&!qe(s))throw new TypeError("max option must be a nonnegative integer");let B=s?du(s):Array;if(!B)throw new Error("invalid max value: "+s);if(this.#n=s,this.#c=C,this.maxEntrySize=d||this.#c,this.sizeCalculation=g,this.sizeCalculation){if(!this.#c&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#T=y,p!==void 0&&typeof p!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#I=p,this.#_=!!p,this.#i=new Map,this.#r=Array.from({length:s}).fill(void 0),this.#e=Array.from({length:s}).fill(void 0),this.#h=new B(s),this.#p=new B(s),this.#l=0,this.#u=0,this.#C=kp.create(s),this.#o=0,this.#y=0,typeof c=="function"&&(this.#t=c),typeof h=="function"&&(this.#L=h),typeof f=="function"?(this.#D=f,this.#a=[]):(this.#D=void 0,this.#a=void 0),this.#v=!!this.#t,this.#x=!!this.#L,this.#f=!!this.#D,this.noDisposeOnSet=!!m,this.noUpdateTTL=!!D,this.noDeleteOnFetchRejection=!!A,this.allowStaleOnFetchRejection=!!E,this.allowStaleOnFetchAbort=!!b,this.ignoreFetchAbort=!!F,this.maxEntrySize!==0){if(this.#c!==0&&!qe(this.#c))throw new TypeError("maxSize must be a positive integer if specified");if(!qe(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#Y()}if(this.allowStale=!!a,this.noDeleteOnStaleGet=!!l,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!u,this.ttlResolution=qe(r)||r===0?r:1,this.ttlAutopurge=!!i,this.ttl=n||0,this.ttl){if(!qe(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#j()}if(this.#n===0&&this.ttl===0&&this.#c===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#n&&!this.#c){let k="LRU_CACHE_UNBOUNDED";Rp(k)&&(pu.add(k),Bp("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",k,mu))}}getRemainingTTL(e){return this.#i.has(e)?1/0:0}#j(){let e=new Is(this.#n),s=new Is(this.#n);this.#d=e,this.#b=s;let n=this.ttlAutopurge?Array.from({length:this.#n}):void 0;this.#m=n,this.#U=(u,a,c=this.#E.now())=>{s[u]=a!==0?c:0,e[u]=a,r(u,a)},this.#O=u=>{s[u]=e[u]!==0?this.#E.now():0,r(u,e[u])};let r=this.ttlAutopurge?(u,a)=>{if(n?.[u]&&(clearTimeout(n[u]),n[u]=void 0),a&&a!==0&&n){let c=setTimeout(()=>{this.#g(u)&&this.#w(this.#r[u],"expire")},a+1);c.unref&&c.unref(),n[u]=c}}:()=>{};this.#F=(u,a)=>{if(e[a]){let c=e[a],h=s[a];if(!c||!h)return;u.ttl=c,u.start=h,u.now=i||o();let f=u.now-h;u.remainingTTL=c-f}};let i=0,o=()=>{let u=this.#E.now();if(this.ttlResolution>0){i=u;let a=setTimeout(()=>i=0,this.ttlResolution);a.unref&&a.unref()}return u};this.getRemainingTTL=u=>{let a=this.#i.get(u);if(a===void 0)return 0;let c=e[a],h=s[a];if(!c||!h)return 1/0;let f=(i||o())-h;return c-f},this.#g=u=>{let a=s[u],c=e[u];return!!c&&!!a&&(i||o())-a>c}}#O=()=>{};#F=()=>{};#U=()=>{};#g=()=>!1;#Y(){let e=new Is(this.#n);this.#y=0,this.#A=e,this.#B=s=>{this.#y-=e[s],e[s]=0},this.#H=(s,n,r,i)=>{if(this.#s(n))return 0;if(!qe(r))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(r=i(n,s),!qe(r))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return r},this.#P=(s,n,r)=>{if(e[s]=n,this.#c){let i=this.#c-e[s];for(;this.#y>i;)this.#M(!0)}this.#y+=e[s],r&&(r.entrySize=n,r.totalCalculatedSize=this.#y)}}#B=e=>{};#P=(e,s,n)=>{};#H=(e,s,n,r)=>{if(n||r)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#S({allowStale:e=this.allowStale}={}){if(this.#o)for(let s=this.#u;this.#K(s)&&((e||!this.#g(s))&&(yield s),s!==this.#l);)s=this.#p[s]}*#$({allowStale:e=this.allowStale}={}){if(this.#o)for(let s=this.#l;this.#K(s)&&((e||!this.#g(s))&&(yield s),s!==this.#u);)s=this.#h[s]}#K(e){return e!==void 0&&this.#i.get(this.#r[e])===e}*entries(){for(let e of this.#S())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#s(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*rentries(){for(let e of this.#$())this.#e[e]!==void 0&&this.#r[e]!==void 0&&!this.#s(this.#e[e])&&(yield[this.#r[e],this.#e[e]])}*keys(){for(let e of this.#S()){let s=this.#r[e];s!==void 0&&!this.#s(this.#e[e])&&(yield s)}}*rkeys(){for(let e of this.#$()){let s=this.#r[e];s!==void 0&&!this.#s(this.#e[e])&&(yield s)}}*values(){for(let e of this.#S())this.#e[e]!==void 0&&!this.#s(this.#e[e])&&(yield this.#e[e])}*rvalues(){for(let e of this.#$())this.#e[e]!==void 0&&!this.#s(this.#e[e])&&(yield this.#e[e])}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,s={}){for(let n of this.#S()){let r=this.#e[n],i=this.#s(r)?r.__staleWhileFetching:r;if(i!==void 0&&e(i,this.#r[n],this))return this.#R(this.#r[n],s)}}forEach(e,s=this){for(let n of this.#S()){let r=this.#e[n],i=this.#s(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(s,i,this.#r[n],this)}}rforEach(e,s=this){for(let n of this.#$()){let r=this.#e[n],i=this.#s(r)?r.__staleWhileFetching:r;i!==void 0&&e.call(s,i,this.#r[n],this)}}purgeStale(){let e=!1;for(let s of this.#$({allowStale:!0}))this.#g(s)&&(this.#w(this.#r[s],"expire"),e=!0);return e}info(e){let s=this.#i.get(e);if(s===void 0)return;let n=this.#e[s],r=this.#s(n)?n.__staleWhileFetching:n;if(r===void 0)return;let i={value:r};if(this.#d&&this.#b){let o=this.#d[s],u=this.#b[s];if(o&&u){let a=o-(this.#E.now()-u);i.ttl=a,i.start=Date.now()}}return this.#A&&(i.size=this.#A[s]),i}dump(){let e=[];for(let s of this.#S({allowStale:!0})){let n=this.#r[s],r=this.#e[s],i=this.#s(r)?r.__staleWhileFetching:r;if(i===void 0||n===void 0)continue;let o={value:i};if(this.#d&&this.#b){o.ttl=this.#d[s];let u=this.#E.now()-this.#b[s];o.start=Math.floor(Date.now()-u)}this.#A&&(o.size=this.#A[s]),e.unshift([n,o])}return e}load(e){this.clear();for(let[s,n]of e){if(n.start){let r=Date.now()-n.start;n.start=this.#E.now()-r}this.#N(s,n.value,n)}}set(e,s,n={}){let{status:r=ce.hasSubscribers?{}:void 0}=n;n.status=r,r&&(r.op="set",r.key=e,s!==void 0&&(r.value=s),r.cache=this);let i=this.#N(e,s,n);return r&&ce.hasSubscribers&&ce.publish(r),i}#N(e,s,n,r){let{ttl:i=this.ttl,start:o,noDisposeOnSet:u=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:c}=n;if(s===void 0)return c&&(c.set="deleted"),this.delete(e),this;let{noUpdateTTL:h=this.noUpdateTTL}=n,f=this.#s(s);c&&!f&&(c.value=s);let m=this.#H(e,s,n.size||0,a,c);if(this.maxEntrySize&&m>this.maxEntrySize)return this.#w(e,"set"),c&&(c.set="miss",c.maxEntrySizeExceeded=!0),this;let D=this.#o===0?void 0:this.#i.get(e);if(D===void 0)D=this.#o===0?this.#u:this.#C.length!==0?this.#C.pop():this.#o===this.#n?this.#M(!1):this.#o,this.#r[D]=e,this.#e[D]=s,this.#i.set(e,D),this.#h[this.#u]=D,this.#p[D]=this.#u,this.#u=D,this.#o++,this.#P(D,m,c),c&&(c.set="add"),h=!1,this.#x&&!f&&this.#L?.(s,e,"add");else{this.#k(D);let C=this.#e[D];if(s!==C){if(!u)if(this.#s(C)){C!==r&&C.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:d}=C;d!==void 0&&d!==s&&(this.#v&&this.#t?.(d,e,"set"),this.#f&&this.#a?.push([d,e,"set"]))}else this.#v&&this.#t?.(C,e,"set"),this.#f&&this.#a?.push([C,e,"set"]);if(this.#B(D),this.#P(D,m,c),this.#e[D]=s,!f){let d=C&&this.#s(C)?C.__staleWhileFetching:C,g=d===void 0?"add":s!==d?"replace":"update";c&&(c.set=g,d!==void 0&&(c.oldValue=d)),this.#x&&this.onInsert?.(s,e,g)}}else f||(c&&(c.set="update"),this.#x&&this.onInsert?.(s,e,"update"))}if(i!==0&&!this.#d&&this.#j(),this.#d&&(h||this.#U(D,i,o),c&&this.#F(c,D)),!u&&this.#f&&this.#a){let C=this.#a,d;for(;d=C?.shift();)this.#D?.(...d)}return this}pop(){try{for(;this.#o;){let e=this.#e[this.#l];if(this.#M(!0),this.#s(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#f&&this.#a){let e=this.#a,s;for(;s=e?.shift();)this.#D?.(...s)}}}#M(e){let s=this.#l,n=this.#r[s],r=this.#e[s],i=this.#s(r);i&&r.__abortController.abort(new Error("evicted"));let o=i?r.__staleWhileFetching:r;return(this.#v||this.#f)&&o!==void 0&&(this.#v&&this.#t?.(o,n,"evict"),this.#f&&this.#a?.push([o,n,"evict"])),this.#B(s),this.#m?.[s]&&(clearTimeout(this.#m[s]),this.#m[s]=void 0),e&&(this.#r[s]=void 0,this.#e[s]=void 0,this.#C.push(s)),this.#o===1?(this.#l=this.#u=0,this.#C.length=0):this.#l=this.#h[s],this.#i.delete(n),this.#o--,s}has(e,s={}){let{status:n=ce.hasSubscribers?{}:void 0}=s;s.status=n,n&&(n.op="has",n.key=e,n.cache=this);let r=this.#X(e,s);return ce.hasSubscribers&&ce.publish(n),r}#X(e,s={}){let{updateAgeOnHas:n=this.updateAgeOnHas,status:r}=s,i=this.#i.get(e);if(i!==void 0){let o=this.#e[i];if(this.#s(o)&&o.__staleWhileFetching===void 0)return!1;if(this.#g(i))r&&(r.has="stale",this.#F(r,i));else return n&&this.#O(i),r&&(r.has="hit",this.#F(r,i)),!0}else r&&(r.has="miss");return!1}peek(e,s={}){let{status:n=Tn()?{}:void 0}=s;n&&(n.op="peek",n.key=e,n.cache=this),s.status=n;let r=this.#z(e,s);return ce.hasSubscribers&&ce.publish(n),r}#z(e,s){let{status:n,allowStale:r=this.allowStale}=s,i=this.#i.get(e);if(i===void 0||!r&&this.#g(i)){n&&(n.peek=i===void 0?"miss":"stale");return}let o=this.#e[i],u=this.#s(o)?o.__staleWhileFetching:o;return n&&(u!==void 0?(n.peek="hit",n.value=u):n.peek="miss"),u}#G(e,s,n,r){let i=s===void 0?void 0:this.#e[s];if(this.#s(i))return i;let o=new AbortController,{signal:u}=n;u?.addEventListener("abort",()=>o.abort(u.reason),{signal:o.signal});let a={signal:o.signal,options:n,context:r},c=(d,g=!1)=>{let{aborted:p}=o.signal,y=n.ignoreFetchAbort&&d!==void 0,A=n.ignoreFetchAbort||!!(n.allowStaleOnFetchAbort&&d!==void 0);if(n.status&&(p&&!g?(n.status.fetchAborted=!0,n.status.fetchError=o.signal.reason,y&&(n.status.fetchAbortIgnored=!0)):n.status.fetchResolved=!0),p&&!y&&!g)return f(o.signal.reason,A);let l=D,E=this.#e[s];return(E===D||E===void 0&&y&&g)&&(d===void 0?l.__staleWhileFetching!==void 0?this.#e[s]=l.__staleWhileFetching:this.#w(e,"fetch"):(n.status&&(n.status.fetchUpdated=!0),this.#N(e,d,a.options,l))),d},h=d=>(n.status&&(n.status.fetchRejected=!0,n.status.fetchError=d),f(d,!1)),f=(d,g)=>{let{aborted:p}=o.signal,y=p&&n.allowStaleOnFetchAbort,A=y||n.allowStaleOnFetchRejection,l=A||n.noDeleteOnFetchRejection,E=D;if(this.#e[s]===D&&(!l||!g&&E.__staleWhileFetching===void 0?this.#w(e,"fetch"):y||(this.#e[s]=E.__staleWhileFetching)),A)return n.status&&E.__staleWhileFetching!==void 0&&(n.status.returnedStale=!0),E.__staleWhileFetching;if(E.__returned===E)throw d},m=(d,g)=>{let p=this.#I?.(e,i,a);o.signal.addEventListener("abort",()=>{(!n.ignoreFetchAbort||n.allowStaleOnFetchAbort)&&(d(void 0),n.allowStaleOnFetchAbort&&(d=y=>c(y,!0)))}),p&&p instanceof Promise?p.then(y=>d(y===void 0?void 0:y),g):p!==void 0&&d(p)};n.status&&(n.status.fetchDispatched=!0);let D=new Promise(m).then(c,h),C=Object.assign(D,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return s===void 0?(this.#N(e,C,{...a.options,status:void 0}),s=this.#i.get(e)):this.#e[s]=C,C}#s(e){if(!this.#_)return!1;let s=e;return!!s&&s instanceof Promise&&s.hasOwnProperty("__staleWhileFetching")&&s.__abortController instanceof AbortController}fetch(e,s={}){let n=ht.hasSubscribers,{status:r=Tn()?{}:void 0}=s;s.status=r,r&&s.context&&(r.context=s.context);let i=this.#W(e,s);return r&&n&&(r.trace=!0,ht.tracePromise(()=>i,r).catch(()=>{})),i}async#W(e,s={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:u=this.noDisposeOnSet,size:a=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:h=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:m=this.allowStaleOnFetchRejection,ignoreFetchAbort:D=this.ignoreFetchAbort,allowStaleOnFetchAbort:C=this.allowStaleOnFetchAbort,context:d,forceRefresh:g=!1,status:p,signal:y}=s;if(p&&(p.op="fetch",p.key=e,g&&(p.forceRefresh=!0),p.cache=this),!this.#_)return p&&(p.fetch="get"),this.#R(e,{allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,status:p});let A={allowStale:n,updateAgeOnGet:r,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:u,size:a,sizeCalculation:c,noUpdateTTL:h,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:m,allowStaleOnFetchAbort:C,ignoreFetchAbort:D,status:p,signal:y},l=this.#i.get(e);if(l===void 0){p&&(p.fetch="miss");let E=this.#G(e,l,A,d);return E.__returned=E}else{let E=this.#e[l];if(this.#s(E)){let B=n&&E.__staleWhileFetching!==void 0;return p&&(p.fetch="inflight",B&&(p.returnedStale=!0)),B?E.__staleWhileFetching:E.__returned=E}let b=this.#g(l);if(!g&&!b)return p&&(p.fetch="hit"),this.#k(l),r&&this.#O(l),p&&this.#F(p,l),E;let F=this.#G(e,l,A,d),v=F.__staleWhileFetching!==void 0&&n;return p&&(p.fetch=b?"stale":"refresh",v&&b&&(p.returnedStale=!0)),v?F.__staleWhileFetching:F.__returned=F}}forceFetch(e,s={}){let n=ht.hasSubscribers,{status:r=Tn()?{}:void 0}=s;s.status=r,r&&s.context&&(r.context=s.context);let i=this.#J(e,s);return r&&n&&(r.trace=!0,ht.tracePromise(()=>i,r).catch(()=>{})),i}async#J(e,s={}){let n=await this.#W(e,s);if(n===void 0)throw new Error("fetch() returned undefined");return n}memo(e,s={}){let{status:n=ce.hasSubscribers?{}:void 0}=s;s.status=n,n&&(n.op="memo",n.key=e,s.context&&(n.context=s.context),n.cache=this);let r=this.#Q(e,s);return n&&(n.value=r),ce.hasSubscribers&&ce.publish(n),r}#Q(e,s={}){let n=this.#T;if(!n)throw new Error("no memoMethod provided to constructor");let{context:r,status:i,forceRefresh:o,...u}=s;i&&o&&(i.forceRefresh=!0);let a=this.#R(e,u),c=o||a===void 0;if(i&&(i.memo=c?"miss":"hit",c||(i.value=a)),!c)return a;let h=n(e,a,{options:u,context:r});return i&&(i.value=h),this.#N(e,h,u),h}get(e,s={}){let{status:n=ce.hasSubscribers?{}:void 0}=s;s.status=n,n&&(n.op="get",n.key=e,n.cache=this);let r=this.#R(e,s);return n&&(r!==void 0&&(n.value=r),ce.hasSubscribers&&ce.publish(n)),r}#R(e,s={}){let{allowStale:n=this.allowStale,updateAgeOnGet:r=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=s,u=this.#i.get(e);if(u===void 0){o&&(o.get="miss");return}let a=this.#e[u],c=this.#s(a);return o&&this.#F(o,u),this.#g(u)?c?(o&&(o.get="stale-fetching"),n&&a.__staleWhileFetching!==void 0?(o&&(o.returnedStale=!0),a.__staleWhileFetching):void 0):(i||this.#w(e,"expire"),o&&(o.get="stale"),n?(o&&(o.returnedStale=!0),a):void 0):(o&&(o.get=c?"fetching":"hit"),this.#k(u),r&&this.#O(u),c?a.__staleWhileFetching:a)}#q(e,s){this.#p[s]=e,this.#h[e]=s}#k(e){e!==this.#u&&(e===this.#l?this.#l=this.#h[e]:this.#q(this.#p[e],this.#h[e]),this.#q(this.#u,e),this.#u=e)}delete(e){return this.#w(e,"delete")}#w(e,s){ce.hasSubscribers&&ce.publish({op:"delete",delete:s,key:e,cache:this});let n=!1;if(this.#o!==0){let r=this.#i.get(e);if(r!==void 0)if(this.#m?.[r]&&(clearTimeout(this.#m?.[r]),this.#m[r]=void 0),n=!0,this.#o===1)this.#V(s);else{this.#B(r);let i=this.#e[r];if(this.#s(i)?i.__abortController.abort(new Error("deleted")):(this.#v||this.#f)&&(this.#v&&this.#t?.(i,e,s),this.#f&&this.#a?.push([i,e,s])),this.#i.delete(e),this.#r[r]=void 0,this.#e[r]=void 0,r===this.#u)this.#u=this.#p[r];else if(r===this.#l)this.#l=this.#h[r];else{let o=this.#p[r];this.#h[o]=this.#h[r];let u=this.#h[r];this.#p[u]=this.#p[r]}this.#o--,this.#C.push(r)}}if(this.#f&&this.#a?.length){let r=this.#a,i;for(;i=r?.shift();)this.#D?.(...i)}return n}clear(){return this.#V("delete")}#V(e){for(let s of this.#$({allowStale:!0})){let n=this.#e[s];if(this.#s(n))n.__abortController.abort(new Error("deleted"));else{let r=this.#r[s];this.#v&&this.#t?.(n,r,e),this.#f&&this.#a?.push([n,r,e])}}if(this.#i.clear(),this.#e.fill(void 0),this.#r.fill(void 0),this.#d&&this.#b){this.#d.fill(0),this.#b.fill(0);for(let s of this.#m??[])s!==void 0&&clearTimeout(s);this.#m?.fill(void 0)}if(this.#A&&this.#A.fill(0),this.#l=0,this.#u=0,this.#C.length=0,this.#y=0,this.#o=0,this.#f&&this.#a){let s=this.#a,n;for(;n=s?.shift();)this.#D?.(...n)}}};const Tp=Object.defineProperty({__proto__:null,LRUCache:Ip},Symbol.toStringTag,{value:"Module"}),_p=$r(Tp);var _n,Li;function Pp(){if(Li)return _n;Li=1;const t=(...i)=>i.every(o=>o)?i.join(""):"",e=i=>i?encodeURIComponent(i):"",s=i=>i.toLowerCase().replace(/^\W+/g,"").replace(/(?<!\W)\W+$/,"").replace(/\//g,"").replace(/\W+/g,"-"),n={sshtemplate:({domain:i,user:o,project:u,committish:a})=>`git@${i}:${o}/${u}.git${t("#",a)}`,sshurltemplate:({domain:i,user:o,project:u,committish:a})=>`git+ssh://git@${i}/${o}/${u}.git${t("#",a)}`,edittemplate:({domain:i,user:o,project:u,committish:a,editpath:c,path:h})=>`https://${i}/${o}/${u}${t("/",c,"/",e(a||"HEAD"),"/",h)}`,browsetemplate:({domain:i,user:o,project:u,committish:a,treepath:c})=>`https://${i}/${o}/${u}${t("/",c,"/",e(a))}`,browsetreetemplate:({domain:i,user:o,project:u,committish:a,treepath:c,path:h,fragment:f,hashformat:m})=>`https://${i}/${o}/${u}/${c}/${e(a||"HEAD")}/${h}${t("#",m(f||""))}`,browseblobtemplate:({domain:i,user:o,project:u,committish:a,blobpath:c,path:h,fragment:f,hashformat:m})=>`https://${i}/${o}/${u}/${c}/${e(a||"HEAD")}/${h}${t("#",m(f||""))}`,docstemplate:({domain:i,user:o,project:u,treepath:a,committish:c})=>`https://${i}/${o}/${u}${t("/",a,"/",e(c))}#readme`,httpstemplate:({auth:i,domain:o,user:u,project:a,committish:c})=>`git+https://${t(i,"@")}${o}/${u}/${a}.git${t("#",c)}`,filetemplate:({domain:i,user:o,project:u,committish:a,path:c})=>`https://${i}/${o}/${u}/raw/${e(a||"HEAD")}/${c}`,shortcuttemplate:({type:i,user:o,project:u,committish:a})=>`${i}:${o}/${u}${t("#",a)}`,pathtemplate:({user:i,project:o,committish:u})=>`${i}/${o}${t("#",u)}`,bugstemplate:({domain:i,user:o,project:u})=>`https://${i}/${o}/${u}/issues`,hashformat:s},r={};r.github={protocols:["git:","http:","git+ssh:","git+https:","ssh:","https:"],domain:"github.com",treepath:"tree",blobpath:"blob",editpath:"edit",filetemplate:({auth:i,user:o,project:u,committish:a,path:c})=>`https://${t(i,"@")}raw.githubusercontent.com/${o}/${u}/${e(a||"HEAD")}/${c}`,gittemplate:({auth:i,domain:o,user:u,project:a,committish:c})=>`git://${t(i,"@")}${o}/${u}/${a}.git${t("#",c)}`,tarballtemplate:({domain:i,user:o,project:u,committish:a})=>`https://codeload.${i}/${o}/${u}/tar.gz/${e(a||"HEAD")}`,extract:i=>{let[,o,u,a,c]=i.pathname.split("/",5);if(!(a&&a!=="tree")&&(a||(c=i.hash.slice(1)),u&&u.endsWith(".git")&&(u=u.slice(0,-4)),!(!o||!u)))return{user:o,project:u,committish:c}}},r.bitbucket={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"bitbucket.org",treepath:"src",blobpath:"src",editpath:"?mode=edit",edittemplate:({domain:i,user:o,project:u,committish:a,treepath:c,path:h,editpath:f})=>`https://${i}/${o}/${u}${t("/",c,"/",e(a||"HEAD"),"/",h,f)}`,tarballtemplate:({domain:i,user:o,project:u,committish:a})=>`https://${i}/${o}/${u}/get/${e(a||"HEAD")}.tar.gz`,extract:i=>{let[,o,u,a]=i.pathname.split("/",4);if(!["get"].includes(a)&&(u&&u.endsWith(".git")&&(u=u.slice(0,-4)),!(!o||!u)))return{user:o,project:u,committish:i.hash.slice(1)}}},r.gitlab={protocols:["git+ssh:","git+https:","ssh:","https:"],domain:"gitlab.com",treepath:"tree",blobpath:"tree",editpath:"-/edit",tarballtemplate:({domain:i,user:o,project:u,committish:a})=>`https://${i}/api/v4/projects/${e(o+"/"+u)}/repository/archive.tar.gz?sha=${e(a||"HEAD")}`,extract:i=>{const o=i.pathname.slice(1);if(o.includes("/-/")||o.includes("/archive.tar.gz"))return;const u=o.split("/");let a=u.pop();a.endsWith(".git")&&(a=a.slice(0,-4));const c=u.join("/");if(!(!c||!a))return{user:c,project:a,committish:i.hash.slice(1)}}},r.gist={protocols:["git:","git+ssh:","git+https:","ssh:","https:"],domain:"gist.github.com",editpath:"edit",sshtemplate:({domain:i,project:o,committish:u})=>`git@${i}:${o}.git${t("#",u)}`,sshurltemplate:({domain:i,project:o,committish:u})=>`git+ssh://git@${i}/${o}.git${t("#",u)}`,edittemplate:({domain:i,user:o,project:u,committish:a,editpath:c})=>`https://${i}/${o}/${u}${t("/",e(a))}/${c}`,browsetemplate:({domain:i,project:o,committish:u})=>`https://${i}/${o}${t("/",e(u))}`,browsetreetemplate:({domain:i,project:o,committish:u,path:a,hashformat:c})=>`https://${i}/${o}${t("/",e(u))}${t("#",c(a))}`,browseblobtemplate:({domain:i,project:o,committish:u,path:a,hashformat:c})=>`https://${i}/${o}${t("/",e(u))}${t("#",c(a))}`,docstemplate:({domain:i,project:o,committish:u})=>`https://${i}/${o}${t("/",e(u))}`,httpstemplate:({domain:i,project:o,committish:u})=>`git+https://${i}/${o}.git${t("#",u)}`,filetemplate:({user:i,project:o,committish:u,path:a})=>`https://gist.githubusercontent.com/${i}/${o}/raw${t("/",e(u))}/${a}`,shortcuttemplate:({type:i,project:o,committish:u})=>`${i}:${o}${t("#",u)}`,pathtemplate:({project:i,committish:o})=>`${i}${t("#",o)}`,bugstemplate:({domain:i,project:o})=>`https://${i}/${o}`,gittemplate:({domain:i,project:o,committish:u})=>`git://${i}/${o}.git${t("#",u)}`,tarballtemplate:({project:i,committish:o})=>`https://codeload.github.com/gist/${i}/tar.gz/${e(o||"HEAD")}`,extract:i=>{let[,o,u,a]=i.pathname.split("/",4);if(a!=="raw"){if(!u){if(!o)return;u=o,o=null}return u.endsWith(".git")&&(u=u.slice(0,-4)),{user:o,project:u,committish:i.hash.slice(1)}}},hashformat:function(i){return i&&"file-"+s(i)}},r.sourcehut={protocols:["git+ssh:","https:"],domain:"git.sr.ht",treepath:"tree",blobpath:"tree",filetemplate:({domain:i,user:o,project:u,committish:a,path:c})=>`https://${i}/${o}/${u}/blob/${e(a)||"HEAD"}/${c}`,httpstemplate:({domain:i,user:o,project:u,committish:a})=>`https://${i}/${o}/${u}${t("#",a)}`,tarballtemplate:({domain:i,user:o,project:u,committish:a})=>`https://${i}/${o}/${u}/archive/${e(a)||"HEAD"}.tar.gz`,bugstemplate:()=>null,extract:i=>{let[,o,u,a]=i.pathname.split("/",4);if(!["archive"].includes(a)&&(u&&u.endsWith(".git")&&(u=u.slice(0,-4)),!(!o||!u)))return{user:o,project:u,committish:i.hash.slice(1)}}};for(const[i,o]of Object.entries(r))r[i]=Object.assign({},n,o);return _n=r,_n}var Pn,xi;function gu(){if(xi)return Pn;xi=1;const t=(r,i,o)=>{const u=r.indexOf(o);return r.lastIndexOf(i,u>-1?u:1/0)},e=r=>{try{return new URL(r)}catch{}},s=(r,i)=>{const o=r.indexOf(":"),u=r.slice(0,o+1);if(Object.prototype.hasOwnProperty.call(i,u)||r.substr(o,3)==="://")return r;const a=r.indexOf("@");return a>-1?a>o?`git+ssh://${r}`:r:`${r.slice(0,o+1)}//${r.slice(o+1)}`},n=r=>{const i=t(r,"@","#"),o=t(r,":","#");return o>i&&(r=r.slice(0,o)+"/"+r.slice(o+1)),t(r,":","#")===-1&&r.indexOf("//")===-1&&(r=`git+ssh://${r}`),r};return Pn=(r,i)=>{const o=i?s(r,i):r;return e(o)||e(n(o))},Pn}var Mn,Oi;function Mp(){if(Oi)return Mn;Oi=1;const t=gu(),e=s=>{const n=s.indexOf("#"),r=s.indexOf("/"),i=s.indexOf("/",r+1),o=s.indexOf(":"),u=/\s/.exec(s),a=s.indexOf("@"),c=!u||n>-1&&u.index>n,h=a===-1||n>-1&&a>n,f=o===-1||n>-1&&o>n,m=i===-1||n>-1&&i>n,D=r>0,C=n>-1?s[n-1]!=="/":!s.endsWith("/"),d=!s.startsWith(".");return c&&D&&C&&d&&h&&f&&m};return Mn=(s,n,{gitHosts:r,protocols:i})=>{if(!s)return;const o=e(s)?`github:${s}`:s,u=t(o,i);if(!u)return;const a=r.byShortcut[u.protocol],c=r.byDomain[u.hostname.startsWith("www.")?u.hostname.slice(4):u.hostname],h=a||c;if(!h)return;const f=r[a||c];let m=null;i[u.protocol]?.auth&&(u.username||u.password)&&(m=`${u.username}${u.password?":"+u.password:""}`);let D=null,C=null,d=null,g=null;try{if(a){let p=u.pathname.startsWith("/")?u.pathname.slice(1):u.pathname;const y=p.indexOf("@");y>-1&&(p=p.slice(y+1));const A=p.lastIndexOf("/");A>-1?(C=decodeURIComponent(p.slice(0,A)),C||(C=null),d=decodeURIComponent(p.slice(A+1))):d=decodeURIComponent(p),d.endsWith(".git")&&(d=d.slice(0,-4)),u.hash&&(D=decodeURIComponent(u.hash.slice(1))),g="shortcut"}else{if(!f.protocols.includes(u.protocol))return;const p=f.extract(u);if(!p)return;C=p.user&&decodeURIComponent(p.user),d=decodeURIComponent(p.project),D=decodeURIComponent(p.committish),g=i[u.protocol]?.name||u.protocol.slice(0,-1)}}catch(p){if(p instanceof URIError)return;throw p}return[h,C,m,d,D,g,n]},Mn}var Gn,Bi;function Gp(){if(Bi)return Gn;Bi=1;const{LRUCache:t}=_p,e=Pp(),s=Mp(),n=gu(),r=new t({max:1e3});function i(u){try{const{protocol:a,hostname:c,pathname:h}=new URL(u);if(!c)return null;const f=/(?:git\+)http:$/.test(a)?"http:":"https:",m=h.replace(/\.git$/,"");return`${f}//${c}${m}`}catch{return null}}class o{constructor(a,c,h,f,m,D,C={}){Object.assign(this,o.#n[a],{type:a,user:c,auth:h,project:f,committish:m,default:D,opts:C})}static#n={byShortcut:{},byDomain:{}};static#c={"git+ssh:":{name:"sshurl"},"ssh:":{name:"sshurl"},"git+https:":{name:"https",auth:!0},"git:":{auth:!0},"http:":{auth:!0},"https:":{auth:!0},"git+http:":{auth:!0}};static addHost(a,c){o.#n[a]=c,o.#n.byDomain[c.domain]=a,o.#n.byShortcut[`${a}:`]=a,o.#c[`${a}:`]={name:a}}static fromUrl(a,c){if(typeof a!="string")return;const h=a+JSON.stringify(c||{});if(!r.has(h)){const f=s(a,c,{gitHosts:o.#n,protocols:o.#c});r.set(h,f?new o(...f):void 0)}return r.get(h)}static fromManifest(a,c={}){if(!a||typeof a!="object")return;const h=a.repository,f=h&&(typeof h=="string"?h:typeof h=="object"&&typeof h.url=="string"?h.url:null);if(!f)throw new Error("no repository");const m=f&&o.fromUrl(f.replace(/^git\+/,""),c)||null;if(m)return m;const D=i(f);return o.fromUrl(D,c)||D}static parseUrl(a){return n(a)}#t(a,c){if(typeof a!="function")return null;const h={...this,...this.opts,...c};h.path||(h.path=""),h.path.startsWith("/")&&(h.path=h.path.slice(1)),h.noCommittish&&(h.committish=null);const f=a(h);return h.noGitPlus&&f.startsWith("git+")?f.slice(4):f}hash(){return this.committish?`#${this.committish}`:""}ssh(a){return this.#t(this.sshtemplate,a)}sshurl(a){return this.#t(this.sshurltemplate,a)}browse(a,...c){return typeof a!="string"?this.#t(this.browsetemplate,a):typeof c[0]!="string"?this.#t(this.browsetreetemplate,{...c[0],path:a}):this.#t(this.browsetreetemplate,{...c[1],fragment:c[0],path:a})}browseFile(a,...c){return typeof c[0]!="string"?this.#t(this.browseblobtemplate,{...c[0],path:a}):this.#t(this.browseblobtemplate,{...c[1],fragment:c[0],path:a})}docs(a){return this.#t(this.docstemplate,a)}bugs(a){return this.#t(this.bugstemplate,a)}https(a){return this.#t(this.httpstemplate,a)}git(a){return this.#t(this.gittemplate,a)}shortcut(a){return this.#t(this.shortcuttemplate,a)}path(a){return this.#t(this.pathtemplate,a)}tarball(a){return this.#t(this.tarballtemplate,{...a,noCommittish:!1})}file(a,c){return this.#t(this.filetemplate,{...c,path:a})}edit(a,c){return this.#t(this.edittemplate,{...c,path:a})}getDefaultRepresentation(){return this.default}toString(a){return this.default&&typeof this[this.default]=="function"?this[this.default](a):this.sshurl(a)}}for(const[u,a]of Object.entries(e))o.addHost(u,a);return Gn=o,Gn}var jn,Ri;function jp(){if(Ri)return jn;Ri=1,jn=t;function t(e){if(!e||e==="ERROR: No README data found!")return;e=e.trim().split(`
163
+ `);let s=0;for(;e[s]&&e[s].trim().match(/^(#|$)/);)s++;const n=e.length;let r=s+1;for(;r<n&&e[r].trim();)r++;return e.slice(s,r).join(" ").trim()}return jn}var Du={dependancies:"dependencies",dependecies:"dependencies",depdenencies:"dependencies",devEependencies:"devDependencies",depends:"dependencies","dev-dependencies":"devDependencies",devDependences:"devDependencies",devDepenencies:"devDependencies",devdependencies:"devDependencies",repostitory:"repository",repo:"repository",prefereGlobal:"preferGlobal",hompage:"homepage",hampage:"homepage",autohr:"author",autor:"author",contributers:"contributors",publicationConfig:"publishConfig",script:"scripts"},Eu={web:"url",name:"url"},yu={server:"start",tests:"test"};const Up={topLevel:Du,bugs:Eu,script:yu},Hp=Object.defineProperty({__proto__:null,bugs:Eu,default:Up,script:yu,topLevel:Du},Symbol.toStringTag,{value:"Module"}),Kp=$r(Hp);var Un,ki;function Wp(){if(ki)return Un;ki=1;var{URL:t}=na,e=vp(),s=Sp(),n=xp(),r=Gp(),{isBuiltin:i}=ta,o=["dependencies","devDependencies","optionalDependencies"],u=jp(),a=Kp,c=l=>l.includes("@")&&l.indexOf("@")<l.lastIndexOf(".");Un={warn:function(){},fixRepositoryField:function(l){if(l.repositories&&(this.warn("repositories"),l.repository=l.repositories[0]),!l.repository)return this.warn("missingRepository");typeof l.repository=="string"&&(l.repository={type:"git",url:l.repository});var E=l.repository.url||"";if(E){var b=r.fromUrl(E);b&&(E=l.repository.url=b.getDefaultRepresentation()==="shortcut"?b.https():b.toString())}E.match(/github.com\/[^/]+\/[^/]+\.git\.git$/)&&this.warn("brokenGitUrl",E)},fixTypos:function(l){Object.keys(a.topLevel).forEach(function(E){Object.prototype.hasOwnProperty.call(l,E)&&this.warn("typo",E,a.topLevel[E])},this)},fixScriptsField:function(l){if(l.scripts){if(typeof l.scripts!="object"){this.warn("nonObjectScripts"),delete l.scripts;return}Object.keys(l.scripts).forEach(function(E){typeof l.scripts[E]!="string"?(this.warn("nonStringScript"),delete l.scripts[E]):a.script[E]&&!l.scripts[a.script[E]]&&this.warn("typo",E,a.script[E],"scripts")},this)}},fixFilesField:function(l){var E=l.files;E&&!Array.isArray(E)?(this.warn("nonArrayFiles"),delete l.files):l.files&&(l.files=l.files.filter(function(b){return!b||typeof b!="string"?(this.warn("invalidFilename",b),!1):!0},this))},fixBinField:function(l){if(l.bin&&typeof l.bin=="string"){var E={},b;(b=l.name.match(/^@[^/]+[/](.*)$/))?E[b[1]]=l.bin:E[l.name]=l.bin,l.bin=E}},fixManField:function(l){l.man&&typeof l.man=="string"&&(l.man=[l.man])},fixBundleDependenciesField:function(l){var E="bundledDependencies",b="bundleDependencies";l[E]&&!l[b]&&(l[b]=l[E],delete l[E]),l[b]&&!Array.isArray(l[b])?(this.warn("nonArrayBundleDependencies"),delete l[b]):l[b]&&(l[b]=l[b].filter(function(F){return!F||typeof F!="string"?(this.warn("nonStringBundleDependency",F),!1):(l.dependencies||(l.dependencies={}),Object.prototype.hasOwnProperty.call(l.dependencies,F)||(this.warn("nonDependencyBundleDependency",F),l.dependencies[F]="*"),!0)},this))},fixDependencies:function(l){y(l,this.warn),g(l),this.fixBundleDependenciesField(l),["dependencies","devDependencies"].forEach(function(E){if(E in l){if(!l[E]||typeof l[E]!="object"){this.warn("nonObjectDependencies",E),delete l[E];return}Object.keys(l[E]).forEach(function(b){var F=l[E][b];typeof F!="string"&&(this.warn("nonStringDependency",b,JSON.stringify(F)),delete l[E][b]);var v=r.fromUrl(l[E][b]);v&&(l[E][b]=v.toString())},this)}},this)},fixModulesField:function(l){l.modules&&(this.warn("deprecatedModules"),delete l.modules)},fixKeywordsField:function(l){typeof l.keywords=="string"&&(l.keywords=l.keywords.split(/,\s+/)),l.keywords&&!Array.isArray(l.keywords)?(delete l.keywords,this.warn("nonArrayKeywords")):l.keywords&&(l.keywords=l.keywords.filter(function(E){return typeof E!="string"||!E?(this.warn("nonStringKeyword"),!1):!0},this))},fixVersionField:function(l,E){var b=!E;if(!l.version)return l.version="",!0;if(!e(l.version,b))throw new Error('Invalid version: "'+l.version+'"');return l.version=s(l.version,b),!0},fixPeople:function(l){D(l,C),D(l,d)},fixNameField:function(l,E){typeof E=="boolean"?E={strict:E}:typeof E>"u"&&(E={});var b=E.strict;if(!l.name&&!b){l.name="";return}if(typeof l.name!="string")throw new Error("name field must be a string.");b||(l.name=l.name.trim()),m(l.name,b,E.allowLegacyCase),i(l.name)&&this.warn("conflictingName",l.name)},fixDescriptionField:function(l){l.description&&typeof l.description!="string"&&(this.warn("nonStringDescription"),delete l.description),l.readme&&!l.description&&(l.description=u(l.readme)),l.description===void 0&&delete l.description,l.description||this.warn("missingDescription")},fixReadmeField:function(l){l.readme||(this.warn("missingReadme"),l.readme="ERROR: No README data found!")},fixBugsField:function(l){if(!l.bugs&&l.repository&&l.repository.url){var E=r.fromUrl(l.repository.url);E&&E.bugs()&&(l.bugs={url:E.bugs()})}else if(l.bugs){if(typeof l.bugs=="string")c(l.bugs)?l.bugs={email:l.bugs}:t.canParse(l.bugs)?l.bugs={url:l.bugs}:this.warn("nonEmailUrlBugsString");else{A(l.bugs,this.warn);var b=l.bugs;l.bugs={},b.url&&(t.canParse(b.url)?l.bugs.url=b.url:this.warn("nonUrlBugsUrlField")),b.email&&(typeof b.email=="string"&&c(b.email)?l.bugs.email=b.email:this.warn("nonEmailBugsEmailField"))}!l.bugs.email&&!l.bugs.url&&(delete l.bugs,this.warn("emptyNormalizedBugs"))}},fixHomepageField:function(l){if(!l.homepage&&l.repository&&l.repository.url){var E=r.fromUrl(l.repository.url);E&&E.docs()&&(l.homepage=E.docs())}if(l.homepage){if(typeof l.homepage!="string")return this.warn("nonUrlHomepage"),delete l.homepage;t.canParse(l.homepage)||(l.homepage="http://"+l.homepage)}},fixLicenseField:function(l){const E=l.license||l.licence;if(!E)return this.warn("missingLicense");if(typeof E!="string"||E.length<1||E.trim()==="")return this.warn("invalidLicense");if(!n(E).validForNewPackages)return this.warn("invalidLicense")}};function h(l){if(l.charAt(0)!=="@")return!1;var E=l.slice(1).split("/");return E.length!==2?!1:E[0]&&E[1]&&E[0]===encodeURIComponent(E[0])&&E[1]===encodeURIComponent(E[1])}function f(l){return!l.match(/[/@\s+%:]/)&&l===encodeURIComponent(l)}function m(l,E,b){if(l.charAt(0)==="."||!(h(l)||f(l))||E&&!b&&l!==l.toLowerCase()||l.toLowerCase()==="node_modules"||l.toLowerCase()==="favicon.ico")throw new Error("Invalid name: "+JSON.stringify(l))}function D(l,E){return l.author&&(l.author=E(l.author)),["maintainers","contributors"].forEach(function(b){Array.isArray(l[b])&&(l[b]=l[b].map(E))}),l}function C(l){if(typeof l=="string")return l;var E=l.name||"",b=l.url||l.web,F=b?" ("+b+")":"",v=l.email||l.mail,B=v?" <"+v+">":"";return E+B+F}function d(l){if(typeof l!="string")return l;var E=l.match(/^([^(<]+)/),b=l.match(/\(([^()]+)\)/),F=l.match(/<([^<>]+)>/),v={};return E&&E[0].trim()&&(v.name=E[0].trim()),F&&(v.email=F[1]),b&&(v.url=b[1]),v}function g(l){var E=l.optionalDependencies;if(E){var b=l.dependencies||{};Object.keys(E).forEach(function(F){b[F]=E[F]}),l.dependencies=b}}function p(l,E,b){if(!l)return{};if(typeof l=="string"&&(l=l.trim().split(/[\n\r\s\t ,]+/)),!Array.isArray(l))return l;b("deprecatedArrayDependencies",E);var F={};return l.filter(function(v){return typeof v=="string"}).forEach(function(v){v=v.trim().split(/(:?[@\s><=])/);var B=v.shift(),k=v.join("");k=k.trim(),k=k.replace(/^@/,""),F[B]=k}),F}function y(l,E){o.forEach(function(b){l[b]&&(l[b]=p(l[b],b,E))})}function A(l,E){l&&Object.keys(l).forEach(function(b){a.bugs[b]&&(E("typo",b,a.bugs[b],"bugs"),l[a.bugs[b]]=l[b],delete l[b])})}return Un}var Cu="'repositories' (plural) Not supported. Please pick one as the 'repository' field",Au="No repository field.",bu="Probably broken git url: %s",vu="scripts must be an object",Su="script values must be string commands",$u="Invalid 'files' member",wu="Invalid filename in 'files' list: %s",Fu="Invalid 'bundleDependencies' list. Must be array of package names",Nu="Invalid bundleDependencies member: %s",Lu="Non-dependency in bundleDependencies: %s",xu="%s field must be an object",Ou="Invalid dependency: %s %s",Bu="specifying %s as array is deprecated",Ru="modules field is deprecated",ku="keywords should be an array of strings",Iu="keywords should be an array of strings",Tu="%s is also the name of a node core module.",_u="'description' field should be a string",Pu="No description",Mu="No README data",Gu="No license field.",ju="Bug string field must be url, email, or {email,url}",Uu="bugs.url field must be a string url. Deleted.",Hu="bugs.email field must be a string email. Deleted.",Ku="Normalized value of bugs field is an empty object. Deleted.",Wu="homepage field must be a string url. Deleted.",qu="license should be a valid SPDX license expression",Vu="%s should probably be %s.";const qp={repositories:Cu,missingRepository:Au,brokenGitUrl:bu,nonObjectScripts:vu,nonStringScript:Su,nonArrayFiles:$u,invalidFilename:wu,nonArrayBundleDependencies:Fu,nonStringBundleDependency:Nu,nonDependencyBundleDependency:Lu,nonObjectDependencies:xu,nonStringDependency:Ou,deprecatedArrayDependencies:Bu,deprecatedModules:Ru,nonArrayKeywords:ku,nonStringKeyword:Iu,conflictingName:Tu,nonStringDescription:_u,missingDescription:Pu,missingReadme:Mu,missingLicense:Gu,nonEmailUrlBugsString:ju,nonUrlBugsUrlField:Uu,nonEmailBugsEmailField:Hu,emptyNormalizedBugs:Ku,nonUrlHomepage:Wu,invalidLicense:qu,typo:Vu},Vp=Object.defineProperty({__proto__:null,brokenGitUrl:bu,conflictingName:Tu,default:qp,deprecatedArrayDependencies:Bu,deprecatedModules:Ru,emptyNormalizedBugs:Ku,invalidFilename:wu,invalidLicense:qu,missingDescription:Pu,missingLicense:Gu,missingReadme:Mu,missingRepository:Au,nonArrayBundleDependencies:Fu,nonArrayFiles:$u,nonArrayKeywords:ku,nonDependencyBundleDependency:Lu,nonEmailBugsEmailField:Hu,nonEmailUrlBugsString:ju,nonObjectDependencies:xu,nonObjectScripts:vu,nonStringBundleDependency:Nu,nonStringDependency:Ou,nonStringDescription:_u,nonStringKeyword:Iu,nonStringScript:Su,nonUrlBugsUrlField:Uu,nonUrlHomepage:Wu,repositories:Cu,typo:Vu},Symbol.toStringTag,{value:"Module"}),Yp=$r(Vp);var Hn,Ii;function Xp(){if(Ii)return Hn;Ii=1;var t=ra,e=Yp;Hn=function(){var n=Array.prototype.slice.call(arguments,0),r=n.shift();if(r==="typo")return s.apply(null,n);var i=e[r]?e[r]:r+": '%s'";return n.unshift(i),t.format.apply(null,n)};function s(n,r,i){return i&&(n=i+"['"+n+"']",r=i+"['"+r+"']"),t.format(e.typo,n,r)}return Hn}var Kn,Ti;function zp(){if(Ti)return Kn;Ti=1,Kn=i;var t=Wp();i.fixer=t;var e=Xp(),s=["name","version","description","repository","modules","scripts","files","bin","man","bugs","keywords","readme","homepage","license"],n=["dependencies","people","typos"],r=s.map(function(u){return o(u)+"Field"});r=r.concat(n);function i(u,a,c){a===!0&&(a=null,c=!0),c||(c=!1),(!a||u.private)&&(a=function(){}),u.scripts&&u.scripts.install==="node-gyp rebuild"&&!u.scripts.preinstall&&(u.gypfile=!0),t.warn=function(){a(e.apply(null,arguments))},r.forEach(function(h){t["fix"+o(h)](u,c)}),u._id=u.name+"@"+u.version}function o(u){return u.charAt(0).toUpperCase()+u.slice(1)}return Kn}var Jp=zp();const Qp=Ep(Jp),Yu=(t,e,s)=>{const n=we(t),r=we(e),i=r===n?".":sa(n,r);return s.some(o=>{const u=o.startsWith("./")?o.slice(2):o,a=i.startsWith("./")?i.slice(2):i;if(u==="."&&a===".")return!0;if(u.endsWith("/**")){const c=u.slice(0,-3);return a===c||a.startsWith(`${c}/`)}if(u.endsWith("/*")){const c=u.slice(0,-2);return c===""?a!=="."&&!a.includes("/"):a.startsWith(`${c}/`)||a===c}return a===u||a.startsWith(`${u}/`)})},Zp=async t=>{const e=await Ui("pnpm-workspace.yaml",{cwd:we(t),type:"file"});if(!e)return;const s=await su(e),n=Array.isArray(s.packages)?s.packages:[];if(!Yu(e,t,n))return;const r={};return s.catalog&&typeof s.catalog=="object"&&(r.catalog=s.catalog),s.catalogs&&typeof s.catalogs=="object"&&(r.catalogs=s.catalogs),Object.keys(r).length>0?r:void 0},ed=t=>{const e=Ua("pnpm-workspace.yaml",{cwd:we(t),type:"file"});if(!e)return;const s=nu(e),n=Array.isArray(s.packages)?s.packages:[];if(!Yu(e,t,n))return;const r={};return s.catalog&&typeof s.catalog=="object"&&(r.catalog=s.catalog),s.catalogs&&typeof s.catalogs=="object"&&(r.catalogs=s.catalogs),Object.keys(r).length>0?r:void 0},td=(t,e,s)=>{if(e==="catalog:")return s.catalog?.[t];if(e.startsWith("catalog:")){const n=e.slice(8);return s.catalogs?.[n]?.[t]}},sd=(t,e)=>{for(const[s,n]of Object.entries(t)){if(typeof n!="string")continue;const r=td(s,n,e);r&&(t[s]=r)}},Xu=(t,e)=>{const s=["dependencies","devDependencies","peerDependencies","optionalDependencies"];for(const n of s){if(!t[n]||typeof t[n]!="object")continue;const r=t[n];sd(r,e)}},nd=K(import.meta.url),ns=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,wr=t=>{if(typeof ns<"u"&&ns.versions&&ns.versions.node){const[e,s]=ns.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return ns.getBuiltinModule(t)}return nd(t)},{existsSync:zu}=wr("node:fs");wr("node:readline");wr("node:util");const rd=/, ([^,]*)$/,_i=new Map,id=new Map,tr=(t,e={})=>`${t}|s${String(e.strict?1:0)}|c${String(e.resolveCatalogs?1:0)}|j${String(e.json5===!1?0:1)}|y${String(e.yaml===!1?0:1)}|w${String(e.ignoreWarnings?1:0)}`,Ju=t=>t.trimStart().startsWith("{");class od extends Error{constructor(e){super(`The following warnings were encountered while normalizing package data:
164
+ - ${e.join(`
165
+ - `)}`),this.name="PackageJsonValidationError"}}const Fr=(t,e,s=[])=>{const n=[];if(Qp(t,r=>{n.push(r)},e),e&&n.length>0){const r=n.filter(i=>!s.some(o=>o instanceof RegExp?o.test(i):o===i));if(r.length>0)throw new od(r)}return t},ud=async t=>await su(t),ad=t=>nu(t),cd=async t=>{const e=await ir(t);return ou.parse(e)},ld=t=>{const e=or(t);return ou.parse(e)},Qu=async(t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?ud(t):e?.json5!==!1&&t.endsWith(".json5")?cd(t):mh(t),hd=(t,e)=>e?.yaml!==!1&&(t.endsWith(".yaml")||t.endsWith(".yml"))?ad(t):e?.json5!==!1&&t.endsWith(".json5")?ld(t):gh(t),fd=async(t,e={})=>{const s={type:"file"};t&&(s.cwd=t);const n=["package.json"];e.yaml!==!1&&n.push("package.yaml","package.yml"),e.json5!==!1&&n.push("package.json5");const r=await Ui(n,s);if(!r)throw new io(`No such file or directory, for ${n.join(", ").replace(rd," or $1")} found.`);const i=e.cache&&typeof e.cache!="boolean"?e.cache:id,o=tr(r,e);if(e.cache&&i.has(o))return i.get(o);const u=await Qu(r,e);if(e.resolveCatalogs){const c=await Zp(r);c&&Xu(u,c)}Fr(u,e.strict??!1,e.ignoreWarnings);const a={packageJson:u,path:r};return e.cache&&i.set(o,a),a},l0=(t,e)=>{const s=typeof t=="object"&&!Array.isArray(t);if(!s&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,r=!1,i;if(s)n=structuredClone(t);else if(!Ju(t)&&zu(t)){i=t;const u=e?.cache&&typeof e.cache!="boolean"?e.cache:_i,a=tr(i,e);if(e?.cache&&u.has(a))return u.get(a);n=hd(i,e),r=!0}else n=Ks(t);if(r){const u=ed(t);u&&Xu(n,u)}else throw new Error("The 'resolveCatalogs' option can only be used on a file path.");Fr(n,e?.strict??!1,e?.ignoreWarnings);const o=n;return r&&e?.cache&&(typeof e.cache=="boolean"?_i:e.cache).set(tr(i,e),o),o},h0=async(t,e)=>{const s=typeof t=="object"&&!Array.isArray(t);if(!s&&typeof t!="string")throw new TypeError("`packageFile` should be either an `object` or a `string`.");let n,r;return s?n=structuredClone(t):!Ju(t)&&zu(t)?(r=t,n=await Qu(r,e)):n=Ks(t),Fr(n,!1,e?.ignoreWarnings),n};var pd=Object.defineProperty,dd=(t,e)=>pd(t,"name",{value:e,configurable:!0}),md=Object.defineProperty,sr=dd((t,e)=>md(t,"name",{value:e,configurable:!0}),"c");const gd=/^\0/,Dd=sr((t,e)=>{if(typeof t=="boolean")return()=>t;if(Array.isArray(t)){const s=t.map(n=>n.includes("/")?n:`**/${n}`);return Pi(s,void 0,{resolve:e})}return s=>!0},"buildSideEffectsPredicate"),f0=sr((t,e,s,n)=>{const{ignoreSideEffectsForRoot:r,...i}=t,o=new Map,u=new ia({...i,roots:[...i.roots??[],e],tsconfig:n?{configFile:n,references:"auto"}:void 0});return{name:"oxc-resolve",resolveId:{filter:{id:{exclude:gd}},async handler(a,c,h){if(a.startsWith("\0"))return;const{isEntry:f}=h,m=f||!c?we(a):we(c),{error:D,path:C}=await u.async(m,a);if(D){s.debug(D,{context:[{basedir:e,extensions:i.extensions,id:C}]});return}let d=sr(p=>!0,"hasModuleSideEffects");try{const{packageJson:p,path:y}=await fd(we(C),{cache:o}),A=we(y);(!r||e!==A)&&(d=Dd(p.sideEffects,A))}catch(p){const y=p instanceof Error?p.message:String(p);s.debug(y,{context:[{basedir:m,caller:"Resolver",error:p,extensions:i.extensions,id:C}]})}if(a.includes("?"))return{id:C,moduleSideEffects:d(C)};const g=await this.resolve(C,c,{skipSelf:!0,...h});if(g)return g.external?!1:g.id!==C?g:{id:C,meta:g.meta,moduleSideEffects:d(C)}},order:"post"}}},"oxcResolvePlugin"),L=ua(import.meta.url);new URL(".",import.meta.url).pathname;const{readFileSync:Ed}=L("fs");let je=null;const R=[],rs=()=>{let t=!1;return process.platform==="linux"&&(t=Cd(),t===null&&(t=Ad()),t===null&&(t=bd())),t},yd=t=>t.includes("libc.musl-")||t.includes("ld-musl-"),Cd=()=>{try{return Ed("/usr/bin/ldd","utf-8").includes("musl")}catch{return null}},Ad=()=>{let t=null;return process.report&&typeof process.report.getReport=="function"&&(process.report.excludeNetwork=!0,t=process.report.getReport()),t?t.header&&t.header.glibcVersionRuntime?!1:!!(Array.isArray(t.sharedObjects)&&t.sharedObjects.some(yd)):null},bd=()=>{try{return L("child_process").execSync("ldd --version",{encoding:"utf8"}).includes("musl")}catch{return!1}};function vd(){if(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)try{return L(process.env.NAPI_RS_NATIVE_LIBRARY_PATH)}catch(t){R.push(t)}else if(process.platform==="android")if(process.arch==="arm64"){try{return L("./transform.android-arm64.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-android-arm64"),e=L("@oxc-transform/binding-android-arm64/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="arm"){try{return L("./transform.android-arm-eabi.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-android-arm-eabi"),e=L("@oxc-transform/binding-android-arm-eabi/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else R.push(new Error(`Unsupported architecture on Android ${process.arch}`));else if(process.platform==="win32")if(process.arch==="x64")if(process.config&&process.config.variables&&process.config.variables.shlib_suffix==="dll.a"||process.config&&process.config.variables&&process.config.variables.node_target_type==="shared_library"){try{return L("./transform.win32-x64-gnu.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-win32-x64-gnu"),e=L("@oxc-transform/binding-win32-x64-gnu/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else{try{return L("./transform.win32-x64-msvc.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-win32-x64-msvc"),e=L("@oxc-transform/binding-win32-x64-msvc/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="ia32"){try{return L("./transform.win32-ia32-msvc.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-win32-ia32-msvc"),e=L("@oxc-transform/binding-win32-ia32-msvc/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.win32-arm64-msvc.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-win32-arm64-msvc"),e=L("@oxc-transform/binding-win32-arm64-msvc/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else R.push(new Error(`Unsupported architecture on Windows: ${process.arch}`));else if(process.platform==="darwin"){try{return L("./transform.darwin-universal.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-darwin-universal"),e=L("@oxc-transform/binding-darwin-universal/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}if(process.arch==="x64"){try{return L("./transform.darwin-x64.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-darwin-x64"),e=L("@oxc-transform/binding-darwin-x64/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.darwin-arm64.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-darwin-arm64"),e=L("@oxc-transform/binding-darwin-arm64/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else R.push(new Error(`Unsupported architecture on macOS: ${process.arch}`))}else if(process.platform==="freebsd")if(process.arch==="x64"){try{return L("./transform.freebsd-x64.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-freebsd-x64"),e=L("@oxc-transform/binding-freebsd-x64/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="arm64"){try{return L("./transform.freebsd-arm64.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-freebsd-arm64"),e=L("@oxc-transform/binding-freebsd-arm64/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else R.push(new Error(`Unsupported architecture on FreeBSD: ${process.arch}`));else if(process.platform==="linux")if(process.arch==="x64")if(rs()){try{return L("./transform.linux-x64-musl.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-x64-musl"),e=L("@oxc-transform/binding-linux-x64-musl/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else{try{return L("./transform.linux-x64-gnu.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-x64-gnu"),e=L("@oxc-transform/binding-linux-x64-gnu/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="arm64")if(rs()){try{return L("./transform.linux-arm64-musl.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-arm64-musl"),e=L("@oxc-transform/binding-linux-arm64-musl/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else{try{return L("./transform.linux-arm64-gnu.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-arm64-gnu"),e=L("@oxc-transform/binding-linux-arm64-gnu/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="arm")if(rs()){try{return L("./transform.linux-arm-musleabihf.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-arm-musleabihf"),e=L("@oxc-transform/binding-linux-arm-musleabihf/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else{try{return L("./transform.linux-arm-gnueabihf.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-arm-gnueabihf"),e=L("@oxc-transform/binding-linux-arm-gnueabihf/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="loong64")if(rs()){try{return L("./transform.linux-loong64-musl.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-loong64-musl"),e=L("@oxc-transform/binding-linux-loong64-musl/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else{try{return L("./transform.linux-loong64-gnu.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-loong64-gnu"),e=L("@oxc-transform/binding-linux-loong64-gnu/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="riscv64")if(rs()){try{return L("./transform.linux-riscv64-musl.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-riscv64-musl"),e=L("@oxc-transform/binding-linux-riscv64-musl/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else{try{return L("./transform.linux-riscv64-gnu.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-riscv64-gnu"),e=L("@oxc-transform/binding-linux-riscv64-gnu/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="ppc64"){try{return L("./transform.linux-ppc64-gnu.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-ppc64-gnu"),e=L("@oxc-transform/binding-linux-ppc64-gnu/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="s390x"){try{return L("./transform.linux-s390x-gnu.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-linux-s390x-gnu"),e=L("@oxc-transform/binding-linux-s390x-gnu/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else R.push(new Error(`Unsupported architecture on Linux: ${process.arch}`));else if(process.platform==="openharmony")if(process.arch==="arm64"){try{return L("./transform.openharmony-arm64.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-openharmony-arm64"),e=L("@oxc-transform/binding-openharmony-arm64/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="x64"){try{return L("./transform.openharmony-x64.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-openharmony-x64"),e=L("@oxc-transform/binding-openharmony-x64/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else if(process.arch==="arm"){try{return L("./transform.openharmony-arm.node")}catch(t){R.push(t)}try{const t=L("@oxc-transform/binding-openharmony-arm"),e=L("@oxc-transform/binding-openharmony-arm/package.json").version;if(e!=="0.140.0"&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK&&process.env.NAPI_RS_ENFORCE_VERSION_CHECK!=="0")throw new Error(`Native binding package version mismatch, expected 0.140.0 but got ${e}. You can reinstall dependencies to fix this issue.`);return t}catch(t){R.push(t)}}else R.push(new Error(`Unsupported architecture on OpenHarmony: ${process.arch}`));else R.push(new Error(`Unsupported OS: ${process.platform}, architecture: ${process.arch}`))}je=vd();const Ls=process.env.NAPI_RS_FORCE_WASI==="true"||process.env.NAPI_RS_FORCE_WASI==="error";if(!je||Ls){let t=null,e=null;try{t=L("./transform.wasi.cjs"),je=t}catch(s){Ls&&(e=s)}if(!je||Ls)try{t=L("@oxc-transform/binding-wasm32-wasi"),je=t}catch(s){Ls&&(e?e.cause=s:e=s,R.push(s))}if(process.env.NAPI_RS_FORCE_WASI==="error"&&!t){const s=new Error("WASI binding not found and NAPI_RS_FORCE_WASI is set to error");throw s.cause=e,s}}if(!je&&globalThis.process?.versions?.webcontainer)try{je=L("./webcontainer-fallback.cjs")}catch(t){R.push(t)}if(!je){if(R.length>0){const t=new Error("Cannot find native binding. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try `npm i` again after removing both package-lock.json and node_modules directory.");throw t.cause=R.reduce((e,s)=>(s.cause=e,s)),t}throw new Error("Failed to load native binding")}const{transform:Sd}=je;var $d=Object.defineProperty,wd=(t,e)=>$d(t,"name",{value:e,configurable:!0}),Fd=Object.defineProperty,Nd=wd((t,e)=>Fd(t,"name",{value:e,configurable:!0}),"s");const Ld=Nd(({exclude:t,include:e,...s})=>{const n=Pi(e,t??oa);return{name:"packem:oxc-transform",async transform(r,i){if(!n(i))return;const o=await Sd(i,r,{...s,sourcemap:!0}),{code:u,errors:a,map:c}=o;if(a.length>0){const h=a.map(f=>typeof f=="string"?f:f.message??JSON.stringify(f));return this.error({message:[`
166
+ transform errors:`,...h].join(`
167
+
168
+ `),pluginCode:"ERR_TRANSFORM"})}return{code:u,map:c}}}},"oxcTransformPlugin");Ld.NAME="oxc";export{Ms as E,Qp as Q,Xd as T,Hd as W,Wd as a,Kd as b,Gd as c,fd as d,Vr as f,Ep as g,ou as i,f0 as j,Ld as t,l0 as u,or as v,h0 as y,ir as z};