@redocly/replay 0.30.0-next.6 → 0.30.0-next.7

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 (61) hide show
  1. package/dist/{replay-AiChatProvider-DoRCY0EW.js → replay-AiChatProvider-BM8abqH8.js} +6 -6
  2. package/dist/{replay-AiChatProvider-C3qDrsGk.js → replay-AiChatProvider-LxWuWgjK.js} +1 -1
  3. package/dist/{replay-AiChatSqliteDBStorage-diN4PlB2.js → replay-AiChatSqliteDBStorage-ByM_jjvw.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-wwTMmol9.js → replay-AiChatSqliteDBStorage-C4tdDPBf.js} +1 -1
  5. package/dist/{replay-AiPanel-PzteJq_7.js → replay-AiPanel-DD1S543u.js} +1 -1
  6. package/dist/{replay-AiPanel-DZYI1gxl.js → replay-AiPanel-LQPU7h0J.js} +4 -4
  7. package/dist/{replay-FileWatcher-V3WDtOcM.js → replay-FileWatcher-BbFbSH7-.js} +2 -2
  8. package/dist/{replay-FileWatcher-C_6jy3Wh.js → replay-FileWatcher-BwY_TKXE.js} +1 -1
  9. package/dist/{replay-SemanticSearchService-D2inCMQ3.js → replay-SemanticSearchService-C2OaJcha.js} +1 -1
  10. package/dist/{replay-SemanticSearchService-AmeM3LJw.js → replay-SemanticSearchService-CVxK2RB-.js} +1 -1
  11. package/dist/{replay-SqliteDBStorage--5fINH4H.js → replay-SqliteDBStorage-BYMeLBll.js} +1 -1
  12. package/dist/{replay-SqliteDBStorage-CInxoFxc.js → replay-SqliteDBStorage-BiutW7pD.js} +1 -1
  13. package/dist/{replay-TauriFileSystemAdapter-A_qqPM6T.js → replay-TauriFileSystemAdapter-DOPckV5d.js} +1 -1
  14. package/dist/{replay-TauriFileSystemAdapter-DCsSYZBB.js → replay-TauriFileSystemAdapter-SpIElzCj.js} +1 -1
  15. package/dist/{replay-TauriRootStorage-CIMNjNWA.js → replay-TauriRootStorage-Cs8FdTRB.js} +1 -1
  16. package/dist/{replay-TauriRootStorage-B_sv-ME6.js → replay-TauriRootStorage-qdWzMQnK.js} +2 -2
  17. package/dist/{replay-agent-loop-uNRsrxPP.js → replay-agent-loop-CbONmEpU.js} +3 -3
  18. package/dist/{replay-agent-loop-BeQ_YIIx.js → replay-agent-loop-D20Uo83P.js} +1 -1
  19. package/dist/{replay-ai-chat-mappers-DNtt_SPh.js → replay-ai-chat-mappers-BoD5va2S.js} +1 -1
  20. package/dist/{replay-ai-chat-mappers-BBXGbAOR.js → replay-ai-chat-mappers-BqjA6a1R.js} +1 -1
  21. package/dist/{replay-create-model-CtOtNyrw.js → replay-create-model-ByXMw0Mz.js} +3 -3
  22. package/dist/{replay-create-model-AY_iX35Q.js → replay-create-model-iK8UnqLH.js} +3 -3
  23. package/dist/{replay-db-D-XadOSV.js → replay-db-BAptE3HS.js} +1 -1
  24. package/dist/{replay-db-uDj6nNNy.js → replay-db-KVbyscDg.js} +1 -1
  25. package/dist/{replay-external-resolver-DrlxaL8f.js → replay-external-resolver-CPTL9YMt.js} +1 -1
  26. package/dist/{replay-external-resolver-CsrESo8u.js → replay-external-resolver-yhrzSVh-.js} +2 -2
  27. package/dist/{replay-index-ChYZ25aj.js → replay-index-7c2fdTRw.js} +19214 -19044
  28. package/dist/{replay-index-ESb8_grh.js → replay-index-B7Ax7uI3.js} +1 -1
  29. package/dist/{replay-index-BPpkDtwi.js → replay-index-BJuio1mk.js} +1 -1
  30. package/dist/{replay-index--7gH3kdD.js → replay-index-C1rF4MIj.js} +1 -1
  31. package/dist/{replay-index-DwIgVIgf.js → replay-index-CRekxOYt.js} +5 -5
  32. package/dist/{replay-index-DUUea7Dh.js → replay-index-D66UFxK0.js} +1 -1
  33. package/dist/{replay-index-r7LIobSc.js → replay-index-DGVKGau4.js} +1230 -1133
  34. package/dist/replay-index-DcselHjq.js +4 -0
  35. package/dist/{replay-index-vwbyGRlg.js → replay-index-Dglne1rU.js} +1 -1
  36. package/dist/{replay-index-vCUeMo-a.js → replay-index-DsB14Sfy.js} +1 -1
  37. package/dist/{replay-index-CM6Nx3oe.js → replay-index-Du_9zDOG.js} +1 -1
  38. package/dist/{replay-index-dTSk_oL0.js → replay-index-TMDJfwog.js} +1 -1
  39. package/dist/{replay-lint-BC0x90Al.js → replay-lint-7C6uDSRh.js} +3 -3
  40. package/dist/{replay-lint-BtZoplmt.js → replay-lint-BmCBitNn.js} +3 -3
  41. package/dist/{replay-lint-graphql-B3l8e2SW.js → replay-lint-graphql--lxWSyCB.js} +1 -1
  42. package/dist/{replay-lint-graphql-DauCPK72.js → replay-lint-graphql-DbU8ryFL.js} +2 -2
  43. package/dist/{replay-periodic-revalidation-DvYq4LBE.js → replay-periodic-revalidation-C-RY1iAP.js} +1 -1
  44. package/dist/{replay-periodic-revalidation-CzWLzx7V.js → replay-periodic-revalidation-NOc0MUCR.js} +1 -1
  45. package/dist/replay-resolve-27HxVuKM.js +53 -0
  46. package/dist/replay-resolve-D1Ex_R0P.js +3879 -0
  47. package/dist/{replay-respect-run-D5Greqj8.js → replay-respect-run-9NB18649.js} +3 -3
  48. package/dist/{replay-respect-run-DMbPJCHl.js → replay-respect-run-Ba0IqCSQ.js} +1 -1
  49. package/dist/{replay-tauri-path-DFiAydTm.js → replay-tauri-path-L81YjxNO.js} +1 -1
  50. package/dist/{replay-tauri-path-DSX6AiF8.js → replay-tauri-path-WDQCkBMZ.js} +2 -2
  51. package/dist/{replay-useAiChatQueries-C6kn5QUT.js → replay-useAiChatQueries-CeNsH7jY.js} +1 -1
  52. package/dist/{replay-useAiChatQueries-P9UVQTUB.js → replay-useAiChatQueries-ChvOULLB.js} +4 -4
  53. package/dist/{replay-validate-key-Lp6NCJGM.js → replay-validate-key-BC0hj8Un.js} +1 -1
  54. package/dist/{replay-validate-key-BHt9qPog.js → replay-validate-key-DpZjfsH8.js} +2 -2
  55. package/dist/replay.cjs +1 -1
  56. package/dist/replay.d.ts +3 -0
  57. package/dist/replay.js +1 -1
  58. package/package.json +2 -2
  59. package/dist/replay-index-tLBGijHm.js +0 -4
  60. package/dist/replay-resolve-B51mYb48.js +0 -47
  61. package/dist/replay-resolve-DSJCGK18.js +0 -3739
@@ -1,5 +1,5 @@
1
- import { a7 as oe, X as nn, bL as Tu, p as Ou, a6 as Xe, bM as ny, bN as iy, bO as oy, G as sy, bP as oo } from "./replay-index-ChYZ25aj.js";
2
- import { l as Ee, o as $e, f as Qr, i as je, b as rt, n as on, e as ay, q as qi, L as Kt, t as cy, j as vt, S as ku, s as py, p as ly, v as Zs, c as wt, w as ft, Y as Iu, x as ea, y as Vr, h as uy, z as Ms, A as Ds, u as dy, C as fy, D as my, E as hy, a as Ht, B as ar, m as ta, g as yy, k as qu, F as gy, G as Cu, d as by } from "./replay-resolve-DSJCGK18.js";
1
+ import { a7 as oe, X as nn, bL as Tu, p as Ou, a6 as Xe, bM as ny, bN as iy, bO as oy, G as sy, bP as oo } from "./replay-index-7c2fdTRw.js";
2
+ import { l as Ee, o as $e, f as Qr, i as je, b as rt, n as on, e as ay, q as qi, L as Kt, t as cy, j as vt, S as ku, s as py, p as ly, v as Zs, c as wt, w as ft, Y as Iu, x as ea, y as Vr, h as uy, z as Ms, A as Ds, u as dy, C as fy, D as my, E as hy, a as Ht, B as ar, m as ta, g as yy, k as qu, F as gy, G as Cu, d as by } from "./replay-resolve-D1Ex_R0P.js";
3
3
  function Wt(e, t) {
4
4
  let r, n;
5
5
  if (e === t)
@@ -24549,7 +24549,7 @@ async function hI(e) {
24549
24549
  async function gm(e) {
24550
24550
  const { document: t, customTypes: r, externalRefResolver: n, config: i } = e;
24551
24551
  if (by(t.source.absoluteRef)) {
24552
- const { lintGraphqlDocument: g } = await import("./replay-lint-graphql-DauCPK72.js");
24552
+ const { lintGraphqlDocument: g } = await import("./replay-lint-graphql-DbU8ryFL.js");
24553
24553
  return g({ document: t, config: i });
24554
24554
  }
24555
24555
  const o = fn(t.parsed), s = i.getRulesForSpecVersion(nf(o)), c = on(i.extendTypes(r ?? lo(o), o), i), p = {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./replay-lint-BC0x90Al.js"),u=require("./replay-index-r7LIobSc.js");function h(t,n){const e={};for(const o of Object.keys(t)){const r=t[o];if(!r)continue;const c=typeof r=="function"?r:r.enter,s=typeof r=="function"?void 0:r.leave;e[o]={...c?{enter:g(c,n)}:{},...s?{leave:g(s,n)}:{}}}return e}function g(t,n){return(e,o,r,c,s)=>{t(e,v(e,n,s))}}function v(t,n,e=[]){const{ruleId:o,severity:r,message:c,source:s,config:a,problems:l}=n,f=e.filter(i=>!Array.isArray(i));return{source:s,config:a,ancestors:f,report(i){const p=i.node??t,d=i.loc??q(p),m={source:s,pointer:void 0,start:d?.start??{line:1,col:1},end:d?.end};l.push({ruleId:i.ruleId??o,severity:i.severity??r,message:c?c.replace("{{message}}",i.message):i.message,suggest:i.suggest??[],location:[m]})}}}function q(t){if(!t?.loc)return;const n=u.getLocation(t.loc.source,t.loc.start),e=u.getLocation(t.loc.source,t.loc.end);return{start:{line:n.line,col:n.column},end:{line:e.line,col:e.column}}}function I(t){const{document:n,config:e}=t,o=n.source;if(o.body.trim()==="")return[{ruleId:"struct",severity:"error",message:"The GraphQL document is empty. Expected at least one type definition.",suggest:[],location:[{source:o,pointer:void 0,start:{line:1,col:1}}]}];let r;try{r=u.parse(new u.Source(o.body,o.absoluteRef))}catch(l){if(l instanceof u.GraphQLError)return[b(l,o)];throw l}const c=e.getRulesForSpecVersion("graphql")??[],s=y.initRules(c,e,"rules","graphql");return G({ast:r,source:o,config:e,rules:s}).map(l=>e.addProblemToIgnore(l))}function b(t,n){const e=t.locations?.[0];return{ruleId:"struct",severity:"error",message:t.message,suggest:[],location:[{source:n,pointer:void 0,start:e?{line:e.line,col:e.column}:{line:1,col:1}}]}}function G(t){const{ast:n,source:e,config:o,rules:r}=t,c=[],s=r.map(({ruleId:a,severity:l,message:f,visitor:i})=>h(i,{ruleId:a,severity:l,message:f,source:e,config:o,problems:c}));return s.length>0&&u.visit(n,u.visitInParallel(s)),c}exports.lintGraphqlDocument=I;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./replay-lint-7C6uDSRh.js"),u=require("./replay-index-DGVKGau4.js");function h(t,n){const e={};for(const o of Object.keys(t)){const r=t[o];if(!r)continue;const c=typeof r=="function"?r:r.enter,s=typeof r=="function"?void 0:r.leave;e[o]={...c?{enter:g(c,n)}:{},...s?{leave:g(s,n)}:{}}}return e}function g(t,n){return(e,o,r,c,s)=>{t(e,v(e,n,s))}}function v(t,n,e=[]){const{ruleId:o,severity:r,message:c,source:s,config:a,problems:l}=n,f=e.filter(i=>!Array.isArray(i));return{source:s,config:a,ancestors:f,report(i){const p=i.node??t,d=i.loc??q(p),m={source:s,pointer:void 0,start:d?.start??{line:1,col:1},end:d?.end};l.push({ruleId:i.ruleId??o,severity:i.severity??r,message:c?c.replace("{{message}}",i.message):i.message,suggest:i.suggest??[],location:[m]})}}}function q(t){if(!t?.loc)return;const n=u.getLocation(t.loc.source,t.loc.start),e=u.getLocation(t.loc.source,t.loc.end);return{start:{line:n.line,col:n.column},end:{line:e.line,col:e.column}}}function I(t){const{document:n,config:e}=t,o=n.source;if(o.body.trim()==="")return[{ruleId:"struct",severity:"error",message:"The GraphQL document is empty. Expected at least one type definition.",suggest:[],location:[{source:o,pointer:void 0,start:{line:1,col:1}}]}];let r;try{r=u.parse(new u.Source(o.body,o.absoluteRef))}catch(l){if(l instanceof u.GraphQLError)return[b(l,o)];throw l}const c=e.getRulesForSpecVersion("graphql")??[],s=y.initRules(c,e,"rules","graphql");return G({ast:r,source:o,config:e,rules:s}).map(l=>e.addProblemToIgnore(l))}function b(t,n){const e=t.locations?.[0];return{ruleId:"struct",severity:"error",message:t.message,suggest:[],location:[{source:n,pointer:void 0,start:e?{line:e.line,col:e.column}:{line:1,col:1}}]}}function G(t){const{ast:n,source:e,config:o,rules:r}=t,c=[],s=r.map(({ruleId:a,severity:l,message:f,visitor:i})=>h(i,{ruleId:a,severity:l,message:f,source:e,config:o,problems:c}));return s.length>0&&u.visit(n,u.visitInParallel(s)),c}exports.lintGraphqlDocument=I;
@@ -1,5 +1,5 @@
1
- import { i as y } from "./replay-lint-BtZoplmt.js";
2
- import { z as d, B as h, S as v, G as I, C as G, E as b } from "./replay-index-ChYZ25aj.js";
1
+ import { i as y } from "./replay-lint-BmCBitNn.js";
2
+ import { z as d, B as h, S as v, G as I, C as G, E as b } from "./replay-index-7c2fdTRw.js";
3
3
  function k(t, n) {
4
4
  const e = {};
5
5
  for (const o of Object.keys(t)) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./replay-index-r7LIobSc.js"),s=300*1e3;function i(e){return()=>({apis:e.get(n.apisAtom),collections:e.get(n.collectionsAtom)})}function d(e,r,a=s){let t=!1;const o=i(r),c=setInterval(()=>{t||e.getIndexingActivityState().inProgress||(t=!0,e.reindex(o).catch(l=>console.error("Semantic index revalidation:",l)).finally(()=>{t=!1}))},a);return()=>clearInterval(c)}exports.createIndexSnapshotGetter=i;exports.startPeriodicIndexRevalidation=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./replay-index-DGVKGau4.js"),s=300*1e3;function i(e){return()=>({apis:e.get(n.apisAtom),collections:e.get(n.collectionsAtom)})}function d(e,r,a=s){let t=!1;const o=i(r),c=setInterval(()=>{t||e.getIndexingActivityState().inProgress||(t=!0,e.reindex(o).catch(l=>console.error("Semantic index revalidation:",l)).finally(()=>{t=!1}))},a);return()=>clearInterval(c)}exports.createIndexSnapshotGetter=i;exports.startPeriodicIndexRevalidation=d;
@@ -1,4 +1,4 @@
1
- import { c, a as l } from "./replay-index-ChYZ25aj.js";
1
+ import { c, a as l } from "./replay-index-7c2fdTRw.js";
2
2
  const s = 300 * 1e3;
3
3
  function I(t) {
4
4
  return () => ({
@@ -0,0 +1,53 @@
1
+ "use strict";const ce=require("./replay-index-DGVKGau4.js");function Cn(e){return!!e}var St={},_t,Zt;function ft(){if(Zt)return _t;Zt=1;const e="\\\\/",t=`[^${e}]`,n=0,r="\\.",i="\\+",o="\\?",s="\\/",a="(?=.)",l="[^/]",f=`(?:${s}|$)`,c=`(?:^|${s})`,E=`${r}{1,2}${f}`,S=`(?!${r})`,T=`(?!${c}${E})`,C=`(?!${r}{0,1}${f})`,x=`(?!${E})`,w=`[^.${s}]`,b=`${l}*?`,A={DOT_LITERAL:r,PLUS_LITERAL:i,QMARK_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:a,QMARK:l,END_ANCHOR:f,DOTS_SLASH:E,NO_DOT:S,NO_DOTS:T,NO_DOT_SLASH:C,NO_DOTS_SLASH:x,QMARK_NO_DOT:w,STAR:b,START_ANCHOR:c,SEP:"/"},R={...A,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${e}])${r}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"},u={__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 _t={DEFAULT_MAX_EXTGLOB_RECURSION:n,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:u,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(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?R:A}},_t}var Jt;function pt(){return Jt||(Jt=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=ft();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>r.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(i,"\\$1"),e.toPosixSlashes=o=>o.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const o=navigator.platform.toLowerCase();return o==="win32"||o==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1},e.removeBackslashes=o=>o.replace(n,s=>s==="\\"?"":s),e.escapeLast=(o,s,a)=>{const l=o.lastIndexOf(s,a);return l===-1?o:o[l-1]==="\\"?e.escapeLast(o,s,l-1):`${o.slice(0,l)}\\${o.slice(l)}`},e.removePrefix=(o,s={})=>{let a=o;return a.startsWith("./")&&(a=a.slice(2),s.prefix="./"),a},e.wrapOutput=(o,s={},a={})=>{const l=a.contains?"":"^",f=a.contains?"":"$";let c=`${l}(?:${o})${f}`;return s.negated===!0&&(c=`(?:^(?!${c}).*$)`),c},e.basename=(o,{windows:s}={})=>{const a=o.split(s?/[\\/]/:"/"),l=a[a.length-1];return l===""?a[a.length-2]:l}})(St)),St}var yt,en;function _r(){if(en)return yt;en=1;const e=pt(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:s,CHAR_FORWARD_SLASH:a,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:f,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:E,CHAR_QUESTION_MARK:S,CHAR_RIGHT_CURLY_BRACE:T,CHAR_RIGHT_PARENTHESES:C,CHAR_RIGHT_SQUARE_BRACKET:x}=ft(),w=A=>A===a||A===r,b=A=>{A.isPrefix!==!0&&(A.depth=A.isGlobstar?1/0:1)};return yt=(A,R)=>{const u=R||{},I=A.length-1,v=u.parts===!0||u.tokens===!0||u.scanToEnd===!0,m=[],g=[],O=[];let j=A,P=-1,K=0,de=0,ue=!1,Ae=!1,Q=!1,Ce=!1,xe=!1,Ee=!1,G=!1,Se=!1,be=!1,oe=!1,ne=0,fe,k,D={value:"",depth:0,isGlob:!1};const p=()=>P>=I,se=()=>j.charCodeAt(P+1),X=()=>(fe=k,j.charCodeAt(++P));for(;P<I;){k=X();let U;if(k===r){G=D.backslashes=!0,k=X(),k===l&&(Ee=!0);continue}if(Ee===!0||k===l){for(ne++;p()!==!0&&(k=X());){if(k===r){G=D.backslashes=!0,X();continue}if(k===l){ne++;continue}if(Ee!==!0&&k===o&&(k=X())===o){if(ue=D.isBrace=!0,Q=D.isGlob=!0,oe=!0,v===!0)continue;break}if(Ee!==!0&&k===i){if(ue=D.isBrace=!0,Q=D.isGlob=!0,oe=!0,v===!0)continue;break}if(k===T&&(ne--,ne===0)){Ee=!1,ue=D.isBrace=!0,oe=!0;break}}if(v===!0)continue;break}if(k===a){if(m.push(P),g.push(D),D={value:"",depth:0,isGlob:!1},oe===!0)continue;if(fe===o&&P===K+1){K+=2;continue}de=P+1;continue}if(u.noext!==!0&&(k===E||k===n||k===t||k===S||k===s)===!0&&se()===f){if(Q=D.isGlob=!0,Ce=D.isExtglob=!0,oe=!0,k===s&&P===K&&(be=!0),v===!0){let pe=0;for(;p()!==!0&&(k=X());){if(k===r){G=D.backslashes=!0,X();continue}if(k===f){pe++;continue}if(k===C&&--pe===0){oe=!0;break}}continue}break}if(k===t){if(fe===t&&(xe=D.isGlobstar=!0),Q=D.isGlob=!0,oe=!0,v===!0)continue;break}if(k===S){if(Q=D.isGlob=!0,oe=!0,v===!0)continue;break}if(k===c){for(;p()!==!0&&(U=X());){if(U===r){G=D.backslashes=!0,X();continue}if(U===x){Ae=D.isBracket=!0,Q=D.isGlob=!0,oe=!0;break}}if(v===!0)continue;break}if(u.nonegate!==!0&&k===s&&P===K){Se=D.negated=!0,K++;continue}if(u.noparen!==!0&&k===f){if(Q=D.isGlob=!0,v===!0){let le=1;for(;p()!==!0&&(k=X());){if(k===r){G=D.backslashes=!0,X();continue}if(k===f){le++;continue}if(k===C&&--le===0){oe=!0;break}}continue}break}if(Q===!0){if(oe=!0,v===!0)continue;break}}u.noext===!0&&(Ce=!1,Q=!1);let V=j,h="",d="";K>0&&(h=j.slice(0,K),j=j.slice(K),de-=K),V&&Q===!0&&de>0?(V=j.slice(0,de),d=j.slice(de)):Q===!0?(V="",d=j):V=j,V&&V!==""&&V!=="/"&&V!==j&&w(V.charCodeAt(V.length-1))&&(V=V.slice(0,-1)),u.unescape===!0&&(d&&(d=e.removeBackslashes(d)),V&&G===!0&&(V=e.removeBackslashes(V)));const he={prefix:h,input:A,start:K,base:V,glob:d,isBrace:ue,isBracket:Ae,isGlob:Q,isExtglob:Ce,isGlobstar:xe,negated:Se,negatedExtglob:be};if(u.tokens===!0&&(he.maxDepth=0,w(k)||g.push(D),he.tokens=g),u.parts===!0||u.tokens===!0){let U;for(let z=0;z<m.length;z++){const Fe=U!==void 0?U+1:K,je=m[z],Ie=A.slice(Fe,je);u.tokens&&(z===0&&K!==0?(g[z].isPrefix=!0,g[z].value=h):g[z].value=Ie,b(g[z]),he.maxDepth+=g[z].depth),je>=K&&(O.push(Ie),U=je)}const le=U!==void 0?U+1:K,pe=A.slice(le);O.push(pe),u.tokens&&U&&U+1<A.length&&(g[g.length-1].value=pe,b(g[g.length-1]),he.maxDepth+=g[g.length-1].depth),he.slashes=m,he.parts=O}return he},yt}var Ct,tn;function yr(){if(tn)return Ct;tn=1;const e=ft(),t=pt(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:s}=e,a=(A,R)=>{if(typeof R.expandRange=="function")return R.expandRange(...A,R);A.sort();const u=`[${A.join("-")}]`;try{new RegExp(u)}catch{return A.map(v=>t.escapeRegex(v)).join("..")}return u},l=(A,R)=>`Missing ${A}: "${R}" - use "\\\\${R}" to match literal characters`,f=A=>{const R=[];let u=0,I=0,v=0,m="",g=!1;for(const O of A){if(g===!0){m+=O,g=!1;continue}if(O==="\\"){m+=O,g=!0;continue}if(O==='"'){v=v===1?0:1,m+=O;continue}if(v===0){if(O==="[")u++;else if(O==="]"&&u>0)u--;else if(u===0){if(O==="(")I++;else if(O===")"&&I>0)I--;else if(O==="|"&&I===0){R.push(m),m="";continue}}}m+=O}return R.push(m),R},c=A=>{let R=!1;for(const u of A){if(R===!0){R=!1;continue}if(u==="\\"){R=!0;continue}if(/[?*+@!()[\]{}]/.test(u))return!1}return!0},E=A=>{let R=A.trim(),u=!0;for(;u===!0;)u=!1,/^@\([^\\()[\]{}|]+\)$/.test(R)&&(R=R.slice(2,-1),u=!0);if(c(R))return R.replace(/\\(.)/g,"$1")},S=A=>{const R=A.map(E).filter(Boolean);for(let u=0;u<R.length;u++)for(let I=u+1;I<R.length;I++){const v=R[u],m=R[I],g=v[0];if(!(!g||v!==g.repeat(v.length)||m!==g.repeat(m.length))&&(v===m||v.startsWith(m)||m.startsWith(v)))return!0}return!1},T=(A,R=!0)=>{if(A[0]!=="+"&&A[0]!=="*"||A[1]!=="(")return;let u=0,I=0,v=0,m=!1;for(let g=1;g<A.length;g++){const O=A[g];if(m===!0){m=!1;continue}if(O==="\\"){m=!0;continue}if(O==='"'){v=v===1?0:1;continue}if(v!==1){if(O==="["){u++;continue}if(O==="]"&&u>0){u--;continue}if(!(u>0)){if(O==="("){I++;continue}if(O===")"&&(I--,I===0))return R===!0&&g!==A.length-1?void 0:{type:A[0],body:A.slice(2,g),end:g}}}}},C=A=>`${A.length===1?t.escapeRegex(A[0]):`[${A.map(u=>t.escapeRegex(u)).join("")}]`}*`,x=A=>{let R=0;const u=[];for(;R<A.length;){const I=T(A.slice(R),!1);if(!I||I.type!=="*")return;const v=f(I.body).map(g=>g.trim());if(v.length!==1)return;const m=E(v[0]);if(!m||m.length!==1)return;u.push(m),R+=I.end+1}if(!(u.length<1))return u},w=A=>{let R=0,u=A.trim(),I=T(u);for(;I;)R++,u=I.body.trim(),I=T(u);return R},b=(A,R)=>{if(R.maxExtglobRecursion===!1)return{risky:!1};const u=typeof R.maxExtglobRecursion=="number"?R.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,I=f(A).map(O=>O.trim());if(I.length>1&&(I.some(O=>O==="")||I.some(O=>/^[*?]+$/.test(O))||S(I)))return{risky:!0};const v=[];let m=!1,g=!0;for(const O of I){const j=x(O);if(j){m=!0,v.push(...j);continue}const P=E(O);if(P&&P.length===1){v.push(P);continue}if(g=!1,w(O)>u)return{risky:!0}}return m?g?{risky:!0,safeOutput:C([...new Set(v)])}:{risky:!0}:{risky:!1}},$=(A,R)=>{if(typeof A!="string")throw new TypeError("Expected a string");A=s[A]||A;const u={...R},I=typeof u.maxLength=="number"?Math.min(n,u.maxLength):n;let v=A.length;if(v>I)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${I}`);const m={type:"bos",value:"",output:u.prepend||""},g=[m],O=u.capture?"":"?:",j=e.globChars(u.windows),P=e.extglobChars(j),{DOT_LITERAL:K,PLUS_LITERAL:de,SLASH_LITERAL:ue,ONE_CHAR:Ae,DOTS_SLASH:Q,NO_DOT:Ce,NO_DOT_SLASH:xe,NO_DOTS_SLASH:Ee,QMARK:G,QMARK_NO_DOT:Se,STAR:be,START_ANCHOR:oe}=j,ne=y=>`(${O}(?:(?!${oe}${y.dot?Q:K}).)*?)`,fe=u.dot?"":Ce,k=u.dot?G:Se;let D=u.bash===!0?ne(u):be;u.capture&&(D=`(${D})`),typeof u.noext=="boolean"&&(u.noextglob=u.noext);const p={input:A,index:-1,start:0,dot:u.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};A=t.removePrefix(A,p),v=A.length;const se=[],X=[],V=[];let h=m,d;const he=()=>p.index===v-1,U=p.peek=(y=1)=>A[p.index+y],le=p.advance=()=>A[++p.index]||"",pe=()=>A.slice(p.index+1),z=(y="",Y=0)=>{p.consumed+=y,p.index+=Y},Fe=y=>{p.output+=y.output!=null?y.output:y.value,z(y.value)},je=()=>{let y=1;for(;U()==="!"&&(U(2)!=="("||U(3)==="?");)le(),p.start++,y++;return y%2===0?!1:(p.negated=!0,p.start++,!0)},Ie=y=>{p[y]++,V.push(y)},Oe=y=>{p[y]--,V.pop()},F=y=>{if(h.type==="globstar"){const Y=p.braces>0&&(y.type==="comma"||y.type==="brace"),_=y.extglob===!0||se.length&&(y.type==="pipe"||y.type==="paren");y.type!=="slash"&&y.type!=="paren"&&!Y&&!_&&(p.output=p.output.slice(0,-h.output.length),h.type="star",h.value="*",h.output=D,p.output+=h.output)}if(se.length&&y.type!=="paren"&&(se[se.length-1].inner+=y.value),(y.value||y.output)&&Fe(y),h&&h.type==="text"&&y.type==="text"){h.output=(h.output||h.value)+y.value,h.value+=y.value;return}y.prev=h,g.push(y),h=y},nt=(y,Y)=>{const _={...P[Y],conditions:1,inner:""};_.prev=h,_.parens=p.parens,_.output=p.output,_.startIndex=p.index,_.tokensIndex=g.length;const B=(u.capture?"(":"")+_.open;Ie("parens"),F({type:y,value:Y,output:p.output?"":Ae}),F({type:"paren",extglob:!0,value:le(),output:B}),se.push(_)},Sr=y=>{const Y=A.slice(y.startIndex,p.index+1),_=A.slice(y.startIndex+2,p.index),B=b(_,u);if((y.type==="plus"||y.type==="star")&&B.risky){const q=B.safeOutput?(y.output?"":Ae)+(u.capture?`(${B.safeOutput})`:B.safeOutput):void 0,_e=g[y.tokensIndex];_e.type="text",_e.value=Y,_e.output=q||t.escapeRegex(Y);for(let Ne=y.tokensIndex+1;Ne<g.length;Ne++)g[Ne].value="",g[Ne].output="",delete g[Ne].suffix;p.output=y.output+_e.output,p.backtrack=!0,F({type:"paren",extglob:!0,value:d,output:""}),Oe("parens");return}let W=y.close+(u.capture?")":""),Z;if(y.type==="negate"){let q=D;if(y.inner&&y.inner.length>1&&y.inner.includes("/")&&(q=ne(u)),(q!==D||he()||/^\)+$/.test(pe()))&&(W=y.close=`)$))${q}`),y.inner.includes("*")&&(Z=pe())&&/^\.[^\\/.]+$/.test(Z)){const _e=$(Z,{...R,fastpaths:!1}).output;W=y.close=`)${_e})${q})`}y.prev.type==="bos"&&(p.negatedExtglob=!0)}F({type:"paren",extglob:!0,value:d,output:W}),Oe("parens")};if(u.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(A)){let y=!1,Y=A.replace(o,(_,B,W,Z,q,_e)=>Z==="\\"?(y=!0,_):Z==="?"?B?B+Z+(q?G.repeat(q.length):""):_e===0?k+(q?G.repeat(q.length):""):G.repeat(W.length):Z==="."?K.repeat(W.length):Z==="*"?B?B+Z+(q?D:""):D:B?_:`\\${_}`);return y===!0&&(u.unescape===!0?Y=Y.replace(/\\/g,""):Y=Y.replace(/\\+/g,_=>_.length%2===0?"\\\\":_?"\\":"")),Y===A&&u.contains===!0?(p.output=A,p):(p.output=t.wrapOutput(Y,p,R),p)}for(;!he();){if(d=le(),d==="\0")continue;if(d==="\\"){const _=U();if(_==="/"&&u.bash!==!0||_==="."||_===";")continue;if(!_){d+="\\",F({type:"text",value:d});continue}const B=/^\\+/.exec(pe());let W=0;if(B&&B[0].length>2&&(W=B[0].length,p.index+=W,W%2!==0&&(d+="\\")),u.unescape===!0?d=le():d+=le(),p.brackets===0){F({type:"text",value:d});continue}}if(p.brackets>0&&(d!=="]"||h.value==="["||h.value==="[^")){if(u.posix!==!1&&d===":"){const _=h.value.slice(1);if(_.includes("[")&&(h.posix=!0,_.includes(":"))){const B=h.value.lastIndexOf("["),W=h.value.slice(0,B),Z=h.value.slice(B+2),q=r[Z];if(q){h.value=W+q,p.backtrack=!0,le(),!m.output&&g.indexOf(h)===1&&(m.output=Ae);continue}}}(d==="["&&U()!==":"||d==="-"&&U()==="]")&&(d=`\\${d}`),d==="]"&&(h.value==="["||h.value==="[^")&&(d=`\\${d}`),u.posix===!0&&d==="!"&&h.value==="["&&(d="^"),h.value+=d,Fe({value:d});continue}if(p.quotes===1&&d!=='"'){d=t.escapeRegex(d),h.value+=d,Fe({value:d});continue}if(d==='"'){p.quotes=p.quotes===1?0:1,u.keepQuotes===!0&&F({type:"text",value:d});continue}if(d==="("){Ie("parens"),F({type:"paren",value:d});continue}if(d===")"){if(p.parens===0&&u.strictBrackets===!0)throw new SyntaxError(l("opening","("));const _=se[se.length-1];if(_&&p.parens===_.parens+1){Sr(se.pop());continue}F({type:"paren",value:d,output:p.parens?")":"\\)"}),Oe("parens");continue}if(d==="["){if(u.nobracket===!0||!pe().includes("]")){if(u.nobracket!==!0&&u.strictBrackets===!0)throw new SyntaxError(l("closing","]"));d=`\\${d}`}else Ie("brackets");F({type:"bracket",value:d});continue}if(d==="]"){if(u.nobracket===!0||h&&h.type==="bracket"&&h.value.length===1){F({type:"text",value:d,output:`\\${d}`});continue}if(p.brackets===0){if(u.strictBrackets===!0)throw new SyntaxError(l("opening","["));F({type:"text",value:d,output:`\\${d}`});continue}Oe("brackets");const _=h.value.slice(1);if(h.posix!==!0&&_[0]==="^"&&!_.includes("/")&&(d=`/${d}`),h.value+=d,Fe({value:d}),u.literalBrackets===!1||t.hasRegexChars(_))continue;const B=t.escapeRegex(h.value);if(p.output=p.output.slice(0,-h.value.length),u.literalBrackets===!0){p.output+=B,h.value=B;continue}h.value=`(${O}${B}|${h.value})`,p.output+=h.value;continue}if(d==="{"&&u.nobrace!==!0){Ie("braces");const _={type:"brace",value:d,output:"(",outputIndex:p.output.length,tokensIndex:p.tokens.length};X.push(_),F(_);continue}if(d==="}"){const _=X[X.length-1];if(u.nobrace===!0||!_){F({type:"text",value:d,output:d});continue}let B=")";if(_.dots===!0){const W=g.slice(),Z=[];for(let q=W.length-1;q>=0&&(g.pop(),W[q].type!=="brace");q--)W[q].type!=="dots"&&Z.unshift(W[q].value);B=a(Z,u),p.backtrack=!0}if(_.comma!==!0&&_.dots!==!0){const W=p.output.slice(0,_.outputIndex),Z=p.tokens.slice(_.tokensIndex);_.value=_.output="\\{",d=B="\\}",p.output=W;for(const q of Z)p.output+=q.output||q.value}F({type:"brace",value:d,output:B}),Oe("braces"),X.pop();continue}if(d==="|"){se.length>0&&se[se.length-1].conditions++,F({type:"text",value:d});continue}if(d===","){let _=d;const B=X[X.length-1];B&&V[V.length-1]==="braces"&&(B.comma=!0,_="|"),F({type:"comma",value:d,output:_});continue}if(d==="/"){if(h.type==="dot"&&p.index===p.start+1){p.start=p.index+1,p.consumed="",p.output="",g.pop(),h=m;continue}F({type:"slash",value:d,output:ue});continue}if(d==="."){if(p.braces>0&&h.type==="dot"){h.value==="."&&(h.output=K);const _=X[X.length-1];h.type="dots",h.output+=d,h.value+=d,_.dots=!0;continue}if(p.braces+p.parens===0&&h.type!=="bos"&&h.type!=="slash"){F({type:"text",value:d,output:K});continue}F({type:"dot",value:d,output:K});continue}if(d==="?"){if(!(h&&h.value==="(")&&u.noextglob!==!0&&U()==="("&&U(2)!=="?"){nt("qmark",d);continue}if(h&&h.type==="paren"){const B=U();let W=d;(h.value==="("&&!/[!=<:]/.test(B)||B==="<"&&!/<([!=]|\w+>)/.test(pe()))&&(W=`\\${d}`),F({type:"text",value:d,output:W});continue}if(u.dot!==!0&&(h.type==="slash"||h.type==="bos")){F({type:"qmark",value:d,output:Se});continue}F({type:"qmark",value:d,output:G});continue}if(d==="!"){if(u.noextglob!==!0&&U()==="("&&(U(2)!=="?"||!/[!=<:]/.test(U(3)))){nt("negate",d);continue}if(u.nonegate!==!0&&p.index===0){je();continue}}if(d==="+"){if(u.noextglob!==!0&&U()==="("&&U(2)!=="?"){nt("plus",d);continue}if(h&&h.value==="("||u.regex===!1){F({type:"plus",value:d,output:de});continue}if(h&&(h.type==="bracket"||h.type==="paren"||h.type==="brace")||p.parens>0){F({type:"plus",value:d});continue}F({type:"plus",value:de});continue}if(d==="@"){if(u.noextglob!==!0&&U()==="("&&U(2)!=="?"){F({type:"at",extglob:!0,value:d,output:""});continue}F({type:"text",value:d});continue}if(d!=="*"){(d==="$"||d==="^")&&(d=`\\${d}`);const _=i.exec(pe());_&&(d+=_[0],p.index+=_[0].length),F({type:"text",value:d});continue}if(h&&(h.type==="globstar"||h.star===!0)){h.type="star",h.star=!0,h.value+=d,h.output=D,p.backtrack=!0,p.globstar=!0,z(d);continue}let y=pe();if(u.noextglob!==!0&&/^\([^?]/.test(y)){nt("star",d);continue}if(h.type==="star"){if(u.noglobstar===!0){z(d);continue}const _=h.prev,B=_.prev,W=_.type==="slash"||_.type==="bos",Z=B&&(B.type==="star"||B.type==="globstar");if(u.bash===!0&&(!W||y[0]&&y[0]!=="/")){F({type:"star",value:d,output:""});continue}const q=p.braces>0&&(_.type==="comma"||_.type==="brace"),_e=se.length&&(_.type==="pipe"||_.type==="paren");if(!W&&_.type!=="paren"&&!q&&!_e){F({type:"star",value:d,output:""});continue}for(;y.slice(0,3)==="/**";){const Be=A[p.index+4];if(Be&&Be!=="/")break;y=y.slice(3),z("/**",3)}const Ne=he()||p.parens>0&&y===")".repeat(p.parens)&&!se.some(Be=>Be.type==="negate");if(_.type==="bos"&&he()){h.type="globstar",h.value+=d,h.output=ne(u),p.output=h.output,p.globstar=!0,z(d);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&!Z&&Ne){p.output=p.output.slice(0,-(_.output+h.output).length),_.output=`(?:${_.output}`,h.type="globstar",h.output=ne(u)+(u.strictSlashes?")":"|$)"),h.value+=d,p.globstar=!0,p.output+=_.output+h.output,z(d);continue}if(_.type==="slash"&&_.prev.type!=="bos"&&y[0]==="/"){const Be=y[1]!==void 0?"|$":"";p.output=p.output.slice(0,-(_.output+h.output).length),_.output=`(?:${_.output}`,h.type="globstar",h.output=`${ne(u)}${ue}|${ue}${Be})`,h.value+=d,p.output+=_.output+h.output,p.globstar=!0,z(d+le()),F({type:"slash",value:"/",output:""});continue}if(_.type==="bos"&&y[0]==="/"){h.type="globstar",h.value+=d,h.output=`(?:^|${ue}|${ne(u)}${ue})`,p.output=h.output,p.globstar=!0,z(d+le()),F({type:"slash",value:"/",output:""});continue}p.output=p.output.slice(0,-h.output.length),h.type="globstar",h.output=ne(u),h.value+=d,p.output+=h.output,p.globstar=!0,z(d);continue}const Y={type:"star",value:d,output:D};if(u.bash===!0){Y.output=".*?",(h.type==="bos"||h.type==="slash")&&(Y.output=fe+Y.output),F(Y);continue}if(h&&(h.type==="bracket"||h.type==="paren")&&u.regex===!0){Y.output=d,F(Y);continue}(p.index===p.start||h.type==="slash"||h.type==="dot")&&(h.type==="dot"?(p.output+=xe,h.output+=xe):u.dot===!0?(p.output+=Ee,h.output+=Ee):(p.output+=fe,h.output+=fe),U()!=="*"&&(p.output+=Ae,h.output+=Ae)),F(Y)}for(;p.brackets>0;){if(u.strictBrackets===!0)throw new SyntaxError(l("closing","]"));p.output=t.escapeLast(p.output,"["),Oe("brackets")}for(;p.parens>0;){if(u.strictBrackets===!0)throw new SyntaxError(l("closing",")"));p.output=t.escapeLast(p.output,"("),Oe("parens")}for(;p.braces>0;){if(u.strictBrackets===!0)throw new SyntaxError(l("closing","}"));p.output=t.escapeLast(p.output,"{"),Oe("braces")}if(u.strictSlashes!==!0&&(h.type==="star"||h.type==="bracket")&&F({type:"maybe_slash",value:"",output:`${ue}?`}),p.backtrack===!0){p.output="";for(const y of p.tokens)p.output+=y.output!=null?y.output:y.value,y.suffix&&(p.output+=y.suffix)}return p};return $.fastpaths=(A,R)=>{const u={...R},I=typeof u.maxLength=="number"?Math.min(n,u.maxLength):n,v=A.length;if(v>I)throw new SyntaxError(`Input length: ${v}, exceeds maximum allowed length: ${I}`);A=s[A]||A;const{DOT_LITERAL:m,SLASH_LITERAL:g,ONE_CHAR:O,DOTS_SLASH:j,NO_DOT:P,NO_DOTS:K,NO_DOTS_SLASH:de,STAR:ue,START_ANCHOR:Ae}=e.globChars(u.windows),Q=u.dot?K:P,Ce=u.dot?de:P,xe=u.capture?"":"?:",Ee={negated:!1,prefix:""};let G=u.bash===!0?".*?":ue;u.capture&&(G=`(${G})`);const Se=fe=>fe.noglobstar===!0?G:`(${xe}(?:(?!${Ae}${fe.dot?j:m}).)*?)`,be=fe=>{switch(fe){case"*":return`${Q}${O}${G}`;case".*":return`${m}${O}${G}`;case"*.*":return`${Q}${G}${m}${O}${G}`;case"*/*":return`${Q}${G}${g}${O}${Ce}${G}`;case"**":return Q+Se(u);case"**/*":return`(?:${Q}${Se(u)}${g})?${Ce}${O}${G}`;case"**/*.*":return`(?:${Q}${Se(u)}${g})?${Ce}${G}${m}${O}${G}`;case"**/.*":return`(?:${Q}${Se(u)}${g})?${m}${O}${G}`;default:{const k=/^(.*?)\.(\w+)$/.exec(fe);if(!k)return;const D=be(k[1]);return D?D+m+k[2]:void 0}}},oe=t.removePrefix(A,Ee);let ne=be(oe);return ne&&u.strictSlashes!==!0&&(ne+=`${g}?`),ne},Ct=$,Ct}var Tt,nn;function Cr(){if(nn)return Tt;nn=1;const e=_r(),t=yr(),n=pt(),r=ft(),i=s=>s&&typeof s=="object"&&!Array.isArray(s),o=(s,a,l=!1)=>{if(Array.isArray(s)){const w=s.map($=>o($,a,l));return $=>{for(const A of w){const R=A($);if(R)return R}return!1}}const f=i(s)&&s.tokens&&s.input;if(s===""||typeof s!="string"&&!f)throw new TypeError("Expected pattern to be a non-empty string");const c=a||{},E=c.windows,S=f?o.compileRe(s,a):o.makeRe(s,a,!1,!0),T=S.state;delete S.state;let C=()=>!1;if(c.ignore){const w={...a,ignore:null,onMatch:null,onResult:null};C=o(c.ignore,w,l)}const x=(w,b=!1)=>{const{isMatch:$,match:A,output:R}=o.test(w,S,a,{glob:s,posix:E}),u={glob:s,state:T,regex:S,posix:E,input:w,output:R,match:A,isMatch:$};return typeof c.onResult=="function"&&c.onResult(u),$===!1?(u.isMatch=!1,b?u:!1):C(w)?(typeof c.onIgnore=="function"&&c.onIgnore(u),u.isMatch=!1,b?u:!1):(typeof c.onMatch=="function"&&c.onMatch(u),b?u:!0)};return l&&(x.state=T),x};return o.test=(s,a,l,{glob:f,posix:c}={})=>{if(typeof s!="string")throw new TypeError("Expected input to be a string");if(s==="")return{isMatch:!1,output:""};const E=l||{},S=E.format||(c?n.toPosixSlashes:null);let T=s===f,C=T&&S?S(s):s;return T===!1&&(C=S?S(s):s,T=C===f),(T===!1||E.capture===!0)&&(E.matchBase===!0||E.basename===!0?T=o.matchBase(s,a,l,c):T=a.exec(C)),{isMatch:!!T,match:T,output:C}},o.matchBase=(s,a,l,f=l&&l.windows)=>(a instanceof RegExp?a:o.makeRe(a,l)).test(n.basename(s,{windows:f})),o.isMatch=(s,a,l)=>o(a,l)(s),o.parse=(s,a)=>Array.isArray(s)?s.map(l=>o.parse(l,a)):t(s,{...a,fastpaths:!1}),o.scan=(s,a)=>e(s,a),o.compileRe=(s,a,l=!1,f=!1)=>{if(l===!0)return s.output;const c=a||{},E=c.contains?"":"^",S=c.contains?"":"$";let T=`${E}(?:${s.output})${S}`;s&&s.negated===!0&&(T=`^(?!${T}).*$`);const C=o.toRegex(T,a);return f===!0&&(C.state=s),C},o.makeRe=(s,a={},l=!1,f=!1)=>{if(!s||typeof s!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return a.fastpaths!==!1&&(s[0]==="."||s[0]==="*")&&(c.output=t.fastpaths(s,a)),c.output||(c=t(s,a)),o.compileRe(c,a,l,f)},o.toRegex=(s,a)=>{try{const l=a||{};return new RegExp(s,l.flags||(l.nocase?"i":""))}catch(l){if(a&&a.debug===!0)throw l;return/$^/}},o.constants=r,Tt=o,Tt}var vt,rn;function Tr(){if(rn)return vt;rn=1;const e=Cr(),t=pt();function n(r,i,o=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:t.isWindows()}),e(r,i,o)}return Object.assign(n,e),vt=n,vt}var vr=Tr();const Rr=ce.getDefaultExportFromCjs(vr),Tn=typeof window<"u"||typeof process>"u"||process?.platform==="browser",vn=Tn?{}:process.env||{};async function Rn(e,t){const n={};for(const i of t.headers)Or(e,i.matches)&&(n[i.name]=i.envVariable!==void 0?vn[i.envVariable]||"":i.value);const r=await(t.customFetch||fetch)(e,{headers:n});if(!r.ok)throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);return{body:await r.text(),mimeType:r.headers.get("content-type")}}function Or(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),Rr.isMatch(e,t)}function Lr(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function xr(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}const ze={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function br(e,t={}){const n={};for(const o of Object.keys(e))n[o]={...e[o],name:o};for(const o of Object.values(n))r(o);return n.SpecExtension=ze,n;function r(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){const s={};for(const[a,l]of Object.entries(o.properties))s[a]=i(l),t.doNotResolveExamples&&l&&l.isExample&&(s[a]={...l,resolvable:!1});o.properties=s}}function i(o){if(typeof o=="string"){if(!n[o])throw new Error(`Unknown type name found: ${o}`);return n[o]}else return typeof o=="function"?(s,a)=>i(o(s,a)):Ze(o)?(o={...o},r(o),o):o?.directResolveAs!==void 0?{...o,directResolveAs:i(o.directResolveAs)??void 0}:o}}function Ze(e){return typeof e?.name=="string"}function Te(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function Je(e){return ce.isPlainObject(e)&&typeof e.$ref=="string"}function On(e){return Je(e)&&Object.keys(e).length>1}function Ln(e){return ce.isPlainObject(e)&&typeof e.externalValue=="string"}class et{source;pointer;constructor(t,n){this.source=t,this.pointer=n}child(t){return new et(this.source,Te(this.pointer,(Array.isArray(t)?t:[t]).map(we).join("/")))}key(){return Object.assign(Object.create(et.prototype),this,{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}}function xn(e){const t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function we(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function bn(e){const[t,n=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:In(n)}}function In(e){return e.split("/").map(xn).filter(Cn)}function Ir(e){const t=e.split("/");return t[t.length-1]}function Nr(e){const t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function Le(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function $r(e){return ce.pathBrowserifyExports.extname(e)?Le(e)?e.substring(0,e.lastIndexOf("/")):ce.pathBrowserifyExports.dirname(e):e}function wr(e,t){return Le(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:ce.pathBrowserifyExports.resolve(e,t)}function kr(e){return typeof e=="string"&&(e.startsWith("#")||Le(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function Pr(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function Fr(e,t,n){if(!ce.isPlainObject(t.node)&&n.parent){n.parent[n.key]=t.node;return}delete e.$ref,ce.isPlainObject(t.node)&&Object.assign(e,{...t.node,...e})}var M=Symbol("NOT_RESOLVED");function ie(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(n=>String(n)),representTagName:t.representTagName??(()=>e)}}function Ut(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify,represent:t.represent??(r=>r),representTagName:t.representTagName??(()=>e)}}function dt(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify,represent:t.represent??(r=>r),representTagName:t.representTagName??(()=>e)}}var Br=ie("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),Dr=["","~","null","Null","NULL"],Mr=ie("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>Dr.indexOf(e)!==-1?null:M,identify:e=>e===null,represent:()=>"null"}),Hr=ie("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:M,identify:e=>e===null,represent:()=>"null"}),Ur=["","~","null","Null","NULL"],Kr=ie("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>Ur.indexOf(e)!==-1?null:M,identify:e=>e===null,represent:()=>"null"}),Gr=["true","True","TRUE"],qr=["false","False","FALSE"],Wr=ie("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>Gr.indexOf(e)!==-1?!0:qr.indexOf(e)!==-1?!1:M,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),Yr=["true"],jr=["false"],Qr=ie("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>Yr.indexOf(e)!==-1?!0:jr.indexOf(e)!==-1?!1:M,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),Vr=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],Xr=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],zr=ie("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>Vr.indexOf(e)!==-1?!0:Xr.indexOf(e)!==-1?!1:M,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),Zr=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),Jr=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function ei(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ti(e,t){if(t){if(!Jr.test(e))return M}else if(!Zr.test(e))return M;const n=ei(e);return Number.isFinite(n)?n:M}var Nn=ie("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:ti,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),ni=new RegExp("^-?(?:0|[1-9][0-9]*)$"),ri=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function ii(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function oi(e,t){if(t){if(!ri.test(e))return M}else if(!ni.test(e))return M;const n=ii(e);return Number.isFinite(n)?n:M}var si=ie("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:oi,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),ai=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function li(e){let t=e.replace(/_/g,""),n=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b"))return n*parseInt(t.slice(2),2);if(t.startsWith("0x"))return n*parseInt(t.slice(2),16);if(t.includes(":")){let r=0;for(const i of t.split(":"))r=r*60+Number(i);return n*r}return t!=="0"&&t[0]==="0"?n*parseInt(t,8):n*parseInt(t,10)}function ci(e){if(!ai.test(e))return M;const t=li(e);return Number.isFinite(t)?t:M}var Nt=ie("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:ci,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),ui=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),fi=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function pi(e){if(!ui.test(e))return M;let t=e.toLowerCase();const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;const r=n*parseFloat(t);return Number.isFinite(r)||fi.test(e)?r:M}function di(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var $n=ie("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:pi,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:di}),hi=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),gi=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mi(e,t){if(t){if(!gi.test(e))return M;let r=e.toLowerCase();const i=r[0]==="-"?-1:1;if("+-".includes(r[0])&&(r=r.slice(1)),r===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(r===".nan")return NaN;const o=i*parseFloat(r);return Number.isFinite(o)?o:M}if(!hi.test(e))return M;const n=Number(e);return Number.isFinite(n)?n:M}function Ai(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Ei=ie("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:mi,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Ai}),Si=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),_i=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function yi(e){if(!Si.test(e))return M;let t=e.toLowerCase().replace(/_/g,"");const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let r=0;if(t.includes(":")){for(const i of t.split(":"))r=r*60+Number(i);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||_i.test(e)?r:M}function Ci(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var $t=ie("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:yi,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Ci}),wn=ie("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?"<<":M,identify:()=>!1}),Ti=/^[A-Za-z0-9+/]*={0,2}$/;function vi(e){const t=e.replace(/\s/g,"");if(t.length%4!==0||!Ti.test(t))return M;const n=atob(t),r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}function Ri(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var kn=ie("tag:yaml.org,2002:binary",{resolve:vi,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:Ri}),Oi=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Li=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function on(e,t,n,r=0,i=0,o=0,s=0){const a=new Date(Date.UTC(e,t,n,r,i,o,s));return a.setUTCFullYear(e,t,n),a}function xi(e){let t=Oi.exec(e);if(t===null&&(t=Li.exec(e)),t===null)return M;const n=+t[1],r=+t[2]-1,i=+t[3];if(!t[4]){const c=on(n,r,i);return c.getUTCFullYear()!==n||c.getUTCMonth()!==r||c.getUTCDate()!==i?M:c}const o=+t[4],s=+t[5],a=+t[6];let l=0;if(o>23||s>59||a>59)return M;if(t[7]){let c=t[7].slice(0,3);for(;c.length<3;)c+="0";l=+c}const f=on(n,r,i,o,s,a,l);if(f.getUTCFullYear()!==n||f.getUTCMonth()!==r||f.getUTCDate()!==i)return M;if(t[9]){const c=+t[10],E=+(t[11]||0);if(c>23||E>59)return M;const S=(c*60+E)*6e4;f.setTime(f.getTime()-(t[9]==="-"?-S:S))}return f}var bi=ie("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:xi,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Ii=Ut("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function ht(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function wt(e,t){const n={};for(const r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var Pn=Ut("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";n=t.keys().next().value}else if(ht(t)){const r=Object.keys(t);if(r.length!==1)return"cannot resolve an ordered map item";n=r[0]}else return"cannot resolve an ordered map item";return e.seen.has(n)?"duplicate key in ordered map":(e.seen.add(n),e.list.push(t),"")},finalize:e=>e.list,identify:()=>!1}),Fn=Ut("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size!==1?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if(Object.prototype.toString.call(t)!=="[object Object]")return"cannot resolve a pairs item";const n=t,r=Object.keys(n);return r.length!==1?"cannot resolve a pairs item":(e.push([r[0],n[r[0]]]),"")},identify:()=>!1}),Ni=dt("tag:yaml.org,2002:map",{create:()=>({}),identify:ht,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";const r=String(t);return r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Bn=dt("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{const t=new Map;for(const n of e)t.set(n,null);return t},addPair:(e,t,n)=>n!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function $i(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function wi(){return{scalar:[],sequence:[],mapping:[]}}function ki(e){const t=[];for(const n of e){let r=t.length;for(let i=0;i<t.length;i++){const o=t[i];if(o.nodeKind===n.nodeKind&&o.tagName===n.tagName&&o.matchByTagPrefix===n.matchByTagPrefix){r=i;break}}t[r]=n}return t}var gt=class Dn{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){const n=ki(t),r=[],i=$i(),o=wi();for(const c of n){if(c.nodeKind==="scalar"&&c.implicit){if(c.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");r.push(c)}switch(c.nodeKind){case"scalar":c.matchByTagPrefix?o.scalar.push(c):i.scalar[c.tagName]=c;break;case"sequence":c.matchByTagPrefix?o.sequence.push(c):i.sequence[c.tagName]=c;break;case"mapping":c.matchByTagPrefix?o.mapping.push(c):i.mapping[c.tagName]=c;break}}const s=r.filter(c=>c.implicitFirstChars===null),a=new Set;for(const c of r)if(c.implicitFirstChars!==null)for(const E of c.implicitFirstChars)a.add(E);const l=new Map;for(const c of a)l.set(c,r.filter(E=>E.implicitFirstChars===null||E.implicitFirstChars.indexOf(c)!==-1));const f=i.scalar["tag:yaml.org,2002:str"];if(!f)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=n,this.implicitScalarTags=r,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=s,this.defaultScalarTag=f,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=o}lookupScalarTag(t){const n=this.exact.scalar[t];if(n)return n;for(const r of this.prefix.scalar)if(t.startsWith(r.tagName))return r}lookupSequenceTag(t){const n=this.exact.sequence[t];if(n)return n;for(const r of this.prefix.sequence)if(t.startsWith(r.tagName))return r}lookupMappingTag(t){const n=this.exact.mapping[t];if(n)return n;for(const r of this.prefix.mapping)if(t.startsWith(r.tagName))return r}resolveImplicitScalarTag(t){const n=this.implicitScalarByFirstChar.get(t.charAt(0))??this.implicitScalarAnyFirstChar;for(const i of n){const o=i.resolve(t,!1,i.tagName);if(o!==M)return{value:o,tag:i}}const r=this.defaultScalarTag;return{value:r.resolve(t,!1,r.tagName),tag:r}}withTags(...t){let n=[];for(const r of t)n=n.concat(r);return new Dn([...this.tags,...n])}},Kt=new gt([Br,Ii,Ni]);new gt([...Kt.tags,Hr,Qr,si,Ei]);var Mn=new gt([...Kt.tags,Mr,Wr,Nn,$n]),Pi=new gt([...Kt.tags,Kr,zr,Nt,$t,bi,wn,kn,Pn,Fn,Bn]),Fi=Pi.withTags({...Nt,resolve:(e,t,n)=>{const r=Nt.resolve(e,t,n);return r===M?Nn.resolve(e,t,n):r}},{...$t,resolve:(e,t,n)=>{const r=$t.resolve(e,t,n);return r===M?$n.resolve(e,t,n):r}});dt("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||ht(e),represent:e=>{if(e instanceof Map)return e;const t=new Map,n=e;for(const r of Object.keys(n))t.set(r,n[r]);return t}});function sn(e){if(Array.isArray(e)){const t=Array.prototype.slice.call(e);for(let n=0;n<t.length;n++){if(Array.isArray(t[n]))return null;typeof t[n]=="object"&&Object.prototype.toString.call(t[n])==="[object Object]"&&(t[n]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}dt("tag:yaml.org,2002:map",{create:()=>({}),identify:ht,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{const r=sn(t);return r===null?"nested arrays are not supported inside keys":(r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,"")},has:(e,t)=>{const n=sn(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var Bi={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function Rt(e,t,n,r,i){let o="",s="";const a=Math.floor(i/2)-1;return r-t>a&&(o=" ... ",t=r-a+o.length),n-r>a&&(s=" ...",n=r+a-s.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+s,pos:r-t+o.length}}function Ot(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function Di(e,t){if(!e.buffer)return null;const n={...Bi,...t},r=/\r?\n|\r|\0/g,i=[0],o=[];let s,a=-1;for(;s=r.exec(e.buffer);)o.push(s.index),i.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=i.length-2);a<0&&(a=i.length-1);let l="";const f=Math.min(e.line+n.linesAfter,o.length).toString().length,c=n.maxLength-(n.indent+f+3);for(let S=1;S<=n.linesBefore&&!(a-S<0);S++){const T=Rt(e.buffer,i[a-S],o[a-S],e.position-(i[a]-i[a-S]),c);l=`${" ".repeat(n.indent)}${Ot((e.line-S+1).toString(),f)} | ${T.str}
2
+ ${l}`}const E=Rt(e.buffer,i[a],o[a],e.position,c);l+=`${" ".repeat(n.indent)}${Ot((e.line+1).toString(),f)} | ${E.str}
3
+ `,l+=`${"-".repeat(n.indent+f+3+E.pos)}^
4
+ `;for(let S=1;S<=n.linesAfter&&!(a+S>=o.length);S++){const T=Rt(e.buffer,i[a+S],o[a+S],e.position-(i[a]-i[a+S]),c);l+=`${" ".repeat(n.indent)}${Ot((e.line+S+1).toString(),f)} | ${T.str}
5
+ `}return l.replace(/\n$/,"")}function an(e,t){let n="";return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`
6
+
7
+ ${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var ke=class Hn extends Error{reason;mark;constructor(t,n){super(),this.name="YAMLException",this.reason=t,this.mark=n,this.message=an(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(t){return`${this.name}: ${an(this,t)}`}static throwAt(t,n,r,i=""){let o=0,s=0;for(let l=0;l<n;l++){const f=t.charCodeAt(l);f===10?(o++,s=l+1):f===13&&(o++,t.charCodeAt(l+1)===10&&l++,s=l+1)}const a={name:i,buffer:t,position:n,line:o,column:n-s};throw a.snippet=Di(a),new Hn(r,a)}},ee={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},N={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},ge={BLOCK:1,FLOW:2},ye={CLIP:1,STRIP:2,KEEP:3},Mi=-1;function ln(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
8
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"…";case 95:return" ";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var Un=new Array(256),Kn=new Array(256);for(let e=0;e<256;e++)Un[e]=ln(e)?1:0,Kn[e]=ln(e);function Hi(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function Ui(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function Ki(e){return e===120?2:e===117?4:8}function st(e,t,n){let r=0;for(;t<n;){const i=e.charCodeAt(t);if(i===10)r++,t++;else if(i===13)r++,t++,e.charCodeAt(t)===10&&t++;else if(i===32||i===9)t++;else break}return{position:t,breaks:r}}function Gt(e){return e===1?" ":`
9
+ `.repeat(e-1)}function Gi(e,t,n){let r="",i=t,o=t,s=t;for(;i<n;){const a=e.charCodeAt(i);if(a===10||a===13){r+=e.slice(o,s);const l=st(e,i,n);r+=Gt(l.breaks),i=o=s=l.position}else i++,a!==32&&a!==9&&(s=i)}return r+e.slice(o,s)}function qi(e,t,n){let r="",i=t,o=t,s=t;for(;i<n;){const a=e.charCodeAt(i);if(a===39)r+=e.slice(o,i)+"'",i+=2,o=s=i;else if(a===10||a===13){r+=e.slice(o,s);const l=st(e,i,n);r+=Gt(l.breaks),i=o=s=l.position}else i++,a!==32&&a!==9&&(s=i)}return r+e.slice(o,n)}function Wi(e,t,n){let r="",i=t,o=t,s=t;for(;i<n;){const a=e.charCodeAt(i);if(a===92){r+=e.slice(o,i),i++;const l=e.charCodeAt(i);if(l===10||l===13)i=st(e,i,n).position;else if(l<256&&Un[l])r+=Kn[l],i++;else{let f=Ki(l),c=0;for(;f>0;f--){i++;const E=Ui(e.charCodeAt(i));c=(c<<4)+E}r+=Hi(c),i++}o=s=i}else if(a===10||a===13){r+=e.slice(o,s);const l=st(e,i,n);r+=Gt(l.breaks),i=o=s=l.position}else i++,a!==32&&a!==9&&(s=i)}return r+e.slice(o,n)}function cn(e,t,n,r,i,o){const s=r<0?0:r,a=e.slice(t,n).replace(/\r\n?/g,`
10
+ `),l=a===""?[]:(a.endsWith(`
11
+ `)?a.slice(0,-1):a).split(`
12
+ `);let f="",c=!1,E=0,S=!1;for(const T of l){let C=0;for(;C<s&&T.charCodeAt(C)===32;)C++;if(r<0||C>=T.length){E++;continue}const x=T.slice(s),w=x.charCodeAt(0);o?w===32||w===9?(S=!0,f+=`
13
+ `.repeat(c?1+E:E)):S?(S=!1,f+=`
14
+ `.repeat(E+1)):E===0?c&&(f+=" "):f+=`
15
+ `.repeat(E):f+=`
16
+ `.repeat(c?1+E:E),f+=x,c=!0,E=0}return i===ye.KEEP?f+=`
17
+ `.repeat(c?1+E:E):i!==ye.STRIP&&c&&(f+=`
18
+ `),f}function Yi(e,t){if(t.valueStart===Mi)return"";const{valueStart:n,valueEnd:r}=t;if(t.fast)return e.slice(n,r);switch(t.style){case N.SINGLE_QUOTED:return qi(e,n,r);case N.DOUBLE_QUOTED:return Wi(e,n,r);case N.LITERAL_BLOCK:return cn(e,n,r,t.indent,t.chomping,!1);case N.FOLDED_BLOCK:return cn(e,n,r,t.indent,t.chomping,!0);default:return Gi(e,n,r)}}var ji=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function Lt(e){return encodeURI(e).replace(/!/g,"%21")}function Gn(e,t){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));const n=e.indexOf("!",1),r=n===-1?"!":e.slice(0,n+1),i=t?.[r]??ji[r]??r;return decodeURIComponent(i)+decodeURIComponent(e.slice(r.length))}function qn(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${Lt(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${Lt(t.slice(18))}`:`!<${Lt(t)}>`}var De=-1,Qi="tag:yaml.org,2002:merge",qt={filename:"",schema:Mn,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function Vi(e){return"tagStart"in e&&e.tagStart!==De?e.tagStart:"anchorStart"in e&&e.anchorStart!==De?e.anchorStart:"valueStart"in e&&e.valueStart!==De?e.valueStart:"start"in e?e.start:0}function te(e,t){ke.throwAt(e.source,e.position,t,e.filename)}function Wn(e,t,n,r){try{return n.finalize(r)}catch(i){if(i instanceof ke)throw i;ke.throwAt(e.source,t,i instanceof Error?i.message:String(i),e.filename)}}function Xi(e,t){const n=Yi(e.source,t),r=t.tagStart===De?"":e.source.slice(t.tagStart,t.tagEnd),i=e.schema.defaultScalarTag;if(r!==""){if(r==="!")return{value:n,tag:i};const o=Gn(r,e.tagHandlers),s=e.schema.lookupScalarTag(o);if(s){const l=s.resolve(n,!0,o);return l===M&&te(e,`cannot resolve a node with !<${o}> explicit tag`),{value:l,tag:s}}const a=e.schema.lookupMappingTag(o)??e.schema.lookupSequenceTag(o);if(a){n!==""&&te(e,`cannot resolve a node with !<${o}> explicit tag`);const l=a.create(o);return{value:a.carrierIsResult?l:Wn(e,e.position,a,l),tag:a}}te(e,`unknown scalar tag !<${o}>`)}return t.style===N.PLAIN?e.schema.resolveImplicitScalarTag(n):{value:i.resolve(n,!1,i.tagName),tag:i}}function un(e,t,n){const r=t.tagStart===De?"":e.source.slice(t.tagStart,t.tagEnd);return r===""||r==="!"?n:Gn(r,e.tagHandlers)}function Yn(e){return e.nodeKind==="mapping"}function fn(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&te(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function pn(e,t,n,r){fn(e);for(const i of r.keys(n)){if(fn(e),t.tag.has(t.value,i))continue;const o=t.tag.addPair(t.value,i,r.get(n,i));o&&te(e,o),t.overridable??=new Set,t.overridable.add(i)}}function zi(e,t,n,r){if(e.position=t.keyPosition,Yn(r))pn(e,t,n,r);else if(r.nodeKind==="sequence"&&Array.isArray(n)){n.length>100&&te(e,"abnormal merge sequence size");for(const i of n){const o=e.nodeTags.get(i);o||te(e,"cannot merge mappings; the provided source object is unacceptable"),pn(e,t,i,o)}}else te(e,"cannot merge mappings; the provided source object is unacceptable")}function Zi(e,t,n,r,i){if(e.position=t.keyPosition,t.keyIsMerge){zi(e,t,r,i);return}!e.json&&t.tag.has(t.value,n)&&!t.overridable?.has(n)&&te(e,"duplicated mapping key");const o=t.tag.addPair(t.value,n,r);o&&te(e,o),t.overridable?.delete(n)}function xt(e,t,n){const r=e.frames[e.frames.length-1];if(r.kind==="document")r.value=t,r.hasValue=!0;else if(r.kind==="sequence"){Yn(n)&&e.nodeTags.set(t,n);const i=r.tag.addItem(r.value,t,r.index++);i&&te(e,i)}else if(r.hasKey){const i=r.key;r.key=void 0,r.hasKey=!1,Zi(e,r,i,t,n)}else r.key=t,r.keyPosition=e.position,r.hasKey=!0,r.keyIsMerge=n.tagName===Qi}function bt(e,t,n,r,i){if(t.anchorStart!==De){const o={value:n,tag:r,isValueFinal:i};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),o),o}return null}function Ji(e,t){const n={...qt,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;n.eventIndex<n.events.length;){const r=n.events[n.eventIndex++];switch(n.position=Vi(r),r.type){case ee.DOCUMENT:n.anchors=new Map,n.nodeTags=new Map,n.aliasCount=0,n.tagHandlers=Object.create(null);for(const i of r.directives)i.kind==="tag"&&(n.tagHandlers[i.handle]=i.prefix);n.frames.push({kind:"document",position:n.position,value:void 0,hasValue:!1});break;case ee.SCALAR:{const{value:i,tag:o}=Xi(n,r);bt(n,r,i,o,!0),xt(n,i,o);break}case ee.SEQUENCE:{const i=un(n,r,"tag:yaml.org,2002:seq"),o=n.schema.lookupSequenceTag(i);o||te(n,`unknown sequence tag !<${i}>`);const s=o.create(i),a=bt(n,r,s,o,o.carrierIsResult);n.frames.push({kind:"sequence",position:n.position,value:s,tag:o,anchor:a,index:0});break}case ee.MAPPING:{const i=un(n,r,"tag:yaml.org,2002:map"),o=n.schema.lookupMappingTag(i);o||te(n,`unknown mapping tag !<${i}>`);const s=o.create(i),a=bt(n,r,s,o,o.carrierIsResult);n.frames.push({kind:"mapping",position:n.position,value:s,tag:o,anchor:a,key:void 0,keyPosition:n.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case ee.ALIAS:{n.maxAliases!==-1&&++n.aliasCount>n.maxAliases&&te(n,`aliases exceeded maxAliases (${n.maxAliases})`);const i=n.source.slice(r.anchorStart,r.anchorEnd),o=n.anchors.get(i);o||te(n,`unidentified alias "${i}"`),o.isValueFinal||te(n,`recursive alias "${i}" is not supported for tag ${o.tag.tagName} because it uses finalize()`),xt(n,o.value,o.tag);break}case ee.POP:{const i=n.frames.pop();if(i.kind==="mapping"&&i.hasKey&&(n.position=i.keyPosition,te(n,"incomplete mapping pair in event stream")),i.kind==="document")n.documents.push(i.value);else{const o=i.tag.carrierIsResult?i.value:Wn(n,i.position,i.tag,i.value);i.anchor&&(i.anchor.value=o,i.anchor.isValueFinal=!0),xt(n,o,i.tag)}break}}}return n.documents}var H=-1,jn=Object.prototype.hasOwnProperty,Ke=1,Qn=2,Vn=3,at=4,eo=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,to=/[,\[\]{}]/,Xn=/^(?:!|!!|![0-9A-Za-z-]+!)$/,kt=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,zn=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,no=new RegExp(`^(?:${kt})*$`),ro=new RegExp(`^(?:${zn})+$`),io=new RegExp(`^(?:!(?:${kt})*|${zn}(?:${kt})*)$`),Wt={filename:"",maxDepth:100};function oo(e,t,n){e.events.push({type:ee.DOCUMENT,explicitStart:t,explicitEnd:n,directives:e.directives})}function Zn(e,t,n,r,i,o,s){e.events.push({type:ee.SEQUENCE,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:o,style:s})}function Jn(e,t,n,r,i,o,s){e.events.push({type:ee.MAPPING,start:t,anchorStart:n,anchorEnd:r,tagStart:i,tagEnd:o,style:s})}function dn(e,t){e.events.splice(t.eventsLength,0,{type:ee.MAPPING,start:t.position,anchorStart:H,anchorEnd:H,tagStart:H,tagEnd:H,style:ge.FLOW})}function We(e,t,n,r,i,o,s,a,l=ye.CLIP,f=-1,c=!1){e.events.push({type:ee.SCALAR,valueStart:t,valueEnd:n,anchorStart:r,anchorEnd:i,tagStart:o,tagEnd:s,style:a,chomping:l,indent:f,fast:c})}function so(e,t,n){e.events.push({type:ee.ALIAS,anchorStart:t,anchorEnd:n})}function Me(e){e.events.push({type:ee.POP})}function ae(e){We(e,H,H,H,H,H,H,N.PLAIN)}function hn(){return{anchorStart:H,anchorEnd:H,tagStart:H,tagEnd:H}}function He(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Ue(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function L(e,t){ke.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function J(e){return e===10||e===13}function Ye(e){return e===9||e===32}function me(e){return Ye(e)||J(e)}function ve(e){return e===0||me(e)}function Pe(e){return e===44||e===91||e===93||e===123||e===125}function ao(e){return e>=48&&e<=57?e-48:-1}function lo(e){if(e>=48&&e<=57)return e-48;const t=e|32;return t>=97&&t<=102?t-97+10:-1}function co(e){return e===120?2:e===117?4:e===85?8:0}function uo(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function lt(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function re(e,t){let n=0,r=e.input.charCodeAt(e.position),i=e.position===e.lineStart||me(e.input.charCodeAt(e.position-1));for(;r!==0;){for(;Ye(r);)i=!0,r===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),r=e.input.charCodeAt(++e.position);if(t&&i&&r===35)do r=e.input.charCodeAt(++e.position);while(!J(r)&&r!==0);if(!J(r))break;for(lt(e),n++,i=!0,r=e.input.charCodeAt(e.position);r===32;)e.lineIndent++,r=e.input.charCodeAt(++e.position)}return n}function Ge(e,t=e.position){const n=e.input.charCodeAt(t);if((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)){const r=e.input.charCodeAt(t+3);return r===0||me(r)}return!1}function er(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function Yt(e){if(e.position!==e.lineStart)return!1;if(Ge(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;const t=He(e);er(e),re(e,!0);const n=e.input.charCodeAt(e.position),r=e.position===e.lineStart&&(n===37||n===45&&Ge(e));return Ue(e,t),r}function gn(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!J(t);)t=e.input.charCodeAt(++e.position)}function tr(e,t,n){eo.test(e.input.slice(t,n))&&L(e,"the stream contains non-printable characters")}function fo(e,t,n){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==H&&L(e,"duplication of a tag property");const r=e.position;let i=!1,o=!1,s="!",a=e.input.charCodeAt(++e.position);a===60?(i=!0,a=e.input.charCodeAt(++e.position)):a===33&&(o=!0,s="!!",a=e.input.charCodeAt(++e.position));let l=e.position,f;if(i){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&L(e,"unexpected end of the stream within a verbatim tag"),f=e.input.slice(l,e.position),e.position++}else{for(;a!==0&&!me(a)&&!(n&&Pe(a));)a===33&&(o?L(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(l-1,e.position+1),Xn.test(s)||L(e,"named tag handle cannot contain such characters"),o=!0,l=e.position+1)),a=e.input.charCodeAt(++e.position);f=e.input.slice(l,e.position),to.test(f)&&L(e,"tag suffix cannot contain flow indicator characters")}return f&&!(i?no.test(f):ro.test(f))&&L(e,`tag name cannot contain such characters: ${f}`),!i&&s!=="!"&&s!=="!!"&&!jn.call(e.tagHandlers,s)&&L(e,`undeclared tag handle "${s}"`),t.tagStart=r,t.tagEnd=e.position,!0}function po(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==H&&L(e,"duplication of an anchor property"),e.position++;const n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!me(e.input.charCodeAt(e.position))&&!Pe(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&L(e,"name of an anchor node must contain at least one character"),t.anchorStart=n,t.anchorEnd=e.position,!0}function ho(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==H||t.tagStart!==H)&&L(e,"alias node should not have any properties"),e.position++;const n=e.position;for(;e.input.charCodeAt(e.position)!==0&&!me(e.input.charCodeAt(e.position))&&!Pe(e.input.charCodeAt(e.position));)e.position++;return e.position===n&&L(e,"name of an alias node must contain at least one character"),so(e,n,e.position),!0}function Pt(e,t){re(e,!1),e.lineIndent<t&&L(e,"deficient indentation")}function go(e,t,n){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;const r=e.position;let i=!0;for(;e.input.charCodeAt(e.position)!==0;){const o=e.input.charCodeAt(e.position);if(o===39){if(e.input.charCodeAt(e.position+1)===39){i=!1,e.position+=2;continue}const s=e.position;return e.position++,We(e,r,s,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,N.SINGLE_QUOTED,ye.CLIP,-1,i),!0}J(o)?(i=!1,Pt(e,t)):e.position===e.lineStart&&Ge(e)?L(e,"unexpected end of the document within a single quoted scalar"):o!==9&&o<32?L(e,"expected valid JSON character"):e.position++}L(e,"unexpected end of the stream within a single quoted scalar")}function mo(e,t,n){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;const r=e.position;let i=!0;for(;e.input.charCodeAt(e.position)!==0;){const o=e.input.charCodeAt(e.position);if(o===34){const s=e.position;return e.position++,We(e,r,s,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,N.DOUBLE_QUOTED,ye.CLIP,-1,i),!0}if(o===92){i=!1;const s=e.input.charCodeAt(++e.position);if(J(s))Pt(e,t);else if(uo(s))e.position++;else{let a=co(s);for(a===0&&L(e,"unknown escape sequence");a-- >0;)e.position++,lo(e.input.charCodeAt(e.position))<0&&L(e,"expected hexadecimal character");e.position++}}else J(o)?(i=!1,Pt(e,t)):e.position===e.lineStart&&Ge(e)?L(e,"unexpected end of the document within a double quoted scalar"):o!==9&&o<32?L(e,"expected valid JSON character"):e.position++}L(e,"unexpected end of the stream within a double quoted scalar")}function Ao(e,t,n){const r=e.input.charCodeAt(e.position);let i=ye.CLIP,o=-1,s=!1;if(r!==124&&r!==62)return!1;const a=r===124?N.LITERAL_BLOCK:N.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){const T=e.input.charCodeAt(e.position),C=ao(T);if(T===43||T===45)i!==ye.CLIP&&L(e,"repeat of a chomping mode identifier"),i=T===43?ye.KEEP:ye.STRIP,e.position++;else if(C>=0)C===0&&L(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),s&&L(e,"repeat of an indentation width identifier"),o=t+C-1,s=!0,e.position++;else break}let l=!1;for(;Ye(e.input.charCodeAt(e.position));)l=!0,e.position++;l&&e.input.charCodeAt(e.position)===35&&gn(e),J(e.input.charCodeAt(e.position))?lt(e):e.input.charCodeAt(e.position)!==0&&L(e,"a line break is expected");let f=s?o:-1,c=0;const E=e.position;let S=e.position;for(;e.input.charCodeAt(e.position)!==0;){const T=e.position;let C=0;for(;e.input.charCodeAt(T+C)===32;)C++;const x=e.input.charCodeAt(T+C);if(x===0){f>=0?C>f&&(S=T+C):C>0&&(S=T+C);break}if(Yt(e))break;if(!s&&f===-1&&J(x)&&(c=Math.max(c,C)),!s&&f===-1&&!J(x)&&(x===9&&C<t&&(e.position=T+C,L(e,"tab characters must not be used in indentation")),C>=t&&C<c&&(e.position=T+C,L(e,"bad indentation of a mapping entry"))),f===-1&&x!==0&&!J(x)&&C<t){e.lineIndent=C,e.position=T+C;break}!s&&x!==0&&!J(x)&&f===-1&&(f=C);const w=f===-1?t+1:f;if(x!==0&&!J(x)&&C<w){e.lineIndent=C,e.position=T+C;break}gn(e),S=e.position,J(e.input.charCodeAt(e.position))&&(lt(e),S=e.position)}return tr(e,E,S),We(e,E,S,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,a,i,f),!0}function Eo(e,t){const n=e.input.charCodeAt(e.position),r=t===Ke;if(n===0||me(n)||n===35||n===38||n===42||n===33||n===124||n===62||n===39||n===34||n===37||n===64||n===96||r&&Pe(n))return!1;if(n===63||n===45){const i=e.input.charCodeAt(e.position+1);if(ve(i)||r&&Pe(i))return!1}return!0}function So(e,t,n,r){if(!Eo(e,n))return!1;const i=e.position;let o=e.position,s=e.input.charCodeAt(e.position);const a=n===Ke;let l=!1;for(;s!==0&&!Yt(e);){if(s===58){const f=e.input.charCodeAt(e.position+1);if(ve(f)||a&&Pe(f))break}else if(s===35){if(me(e.input.charCodeAt(e.position-1)))break}else{if(a&&Pe(s))break;if(J(s)){const f=e.position,c=e.line,E=e.lineStart,S=e.lineIndent;if(re(e,!1),e.lineIndent>=t){l=!0,s=e.input.charCodeAt(e.position);continue}e.position=f,e.line=c,e.lineStart=E,e.lineIndent=S;break}}Ye(s)||(o=e.position+1),s=e.input.charCodeAt(++e.position)}return o===i?!1:(tr(e,i,o),We(e,i,o,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,N.PLAIN,ye.CLIP,-1,!l),!0)}function Qe(e,t){const n=e.line;re(e,!0),(e.line>n&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&L(e,"deficient indentation")}function _o(e,t,n){const r=e.input.charCodeAt(e.position),i=r===123,o=e.position;let s=!0;if(r!==91&&r!==123)return!1;const a=i?125:93;for(i?Jn(e,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,ge.FLOW):Zn(e,o,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,ge.FLOW),e.position++;e.input.charCodeAt(e.position)!==0;){Qe(e,t);let l=e.input.charCodeAt(e.position);if(l===a)return e.position++,Me(e),!0;s?l===44&&L(e,"expected the node content, but found ','"):L(e,"missed comma between flow collection entries");let f=!1,c=!1;l===63&&me(e.input.charCodeAt(e.position+1))&&(f=c=!0,e.position+=1,Qe(e,t));const E=e.line,S=He(e),T=qe(e,t,Ke,!1,!0);Qe(e,t),l=e.input.charCodeAt(e.position),(i||c||e.line===E)&&l===58?(f=!0,e.position++,Qe(e,t),i||dn(e,S),T||ae(e),qe(e,t,Ke,!1,!0)||ae(e),Qe(e,t),i||Me(e)):i&&f?(T||ae(e),ae(e)):i?ae(e):f&&(dn(e,S),T||ae(e),ae(e),Me(e)),l=e.input.charCodeAt(e.position),l===44?(s=!0,e.position++):s=!1}L(e,"unexpected end of the stream within a flow collection")}function mn(e,t,n){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!ve(e.input.charCodeAt(e.position+1)))return!1;for(Zn(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,ge.BLOCK);e.input.charCodeAt(e.position)===45&&ve(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,L(e,"tab characters must not be used in indentation"));const r=e.line;e.position++;const i=re(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&ve(e.input.charCodeAt(e.position+1))&&L(e,"bad indentation of a sequence entry"),i&&e.lineIndent<=t?ae(e):qe(e,t,Vn,!1,!0),re(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&L(e,"bad indentation of a sequence entry"),e.line===r&&e.input.charCodeAt(e.position)===45&&ve(e.input.charCodeAt(e.position+1))&&L(e,"bad indentation of a sequence entry")}return Me(e),!0}function It(e,t,n,r){let i=!1,o=!1,s=!1,a=!1;if(e.firstTabInLine!==-1)return!1;let l=e.input.charCodeAt(e.position);for(;l!==0;){!i&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,L(e,"tab characters must not be used in indentation"));const f=e.input.charCodeAt(e.position+1),c=e.line;if((l===63||l===58)&&ve(f))s||(Jn(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,ge.BLOCK),s=!0),l===63?(i&&ae(e),o=!0,i=!0):(i||(ae(e),o=!0),i=!1),e.position+=1,a=!0;else{i&&(ae(e),i=!1);const E=He(e);if(!qe(e,n,Qn,!1,!0))break;if(e.line===c){for(l=e.input.charCodeAt(e.position);Ye(l);)l=e.input.charCodeAt(++e.position);if(l===58)l=e.input.charCodeAt(++e.position),ve(l)||L(e,"a whitespace character is expected after the key-value separator within a block mapping"),s||(e.events.splice(E.eventsLength,0,{type:ee.MAPPING,start:E.position,anchorStart:r.anchorStart,anchorEnd:r.anchorEnd,tagStart:r.tagStart,tagEnd:r.tagEnd,style:ge.BLOCK}),s=!0),o=!0,i=!1,a=!1;else if(o)L(e,"expected ':' after a mapping key");else return r.anchorStart!==H||r.tagStart!==H?(Ue(e,E),!1):!0}else if(o)L(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return r.anchorStart!==H||r.tagStart!==H?(Ue(e,E),!1):!0}if(qe(e,t,at,!0,a)&&(a=!1),i||a&&(ae(e),a=!1),re(e,!0),l=e.input.charCodeAt(e.position),(e.line===c||e.lineIndent>t)&&l!==0)L(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return o?(i&&ae(e),s&&Me(e),!0):!1}function qe(e,t,n,r,i,o=!0){e.depth>=e.maxDepth&&L(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let s=1,a=!1,l=!1,f=null;const c=hn();let E=n===at||n===Vn,S=E;const T=E;if(r&&re(e,!0)&&(a=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1),s===1)for(;;){const C=e.input.charCodeAt(e.position),x=He(e);if(a&&s!==1&&(C===33||C===38))break;if(a&&T&&(c.tagStart!==H||c.anchorStart!==H)&&(C===33||C===38)){const w=He(e),b=t+1;if(It(e,e.position-e.lineStart,b,c)&&e.events[w.eventsLength]?.type===ee.MAPPING)return e.depth--,!0;Ue(e,w)}if(a&&(C===33&&c.tagStart!==H||C===38&&c.anchorStart!==H)||!fo(e,c,n===Ke)&&!po(e,c))break;f===null&&(f=x),re(e,!0)?(a=!0,S=T,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1):S=!1}if(S&&(S=a||i),s===1||n===at){const C=n===Ke||n===Qn?t:t+1,x=e.position-e.lineStart;if(s===1)if(S&&(mn(e,x,c)||It(e,x,C,c))||_o(e,C,c))l=!0;else{const w=e.input.charCodeAt(e.position);if(f!==null&&o&&T&&!S&&w!==124&&w!==62){const b=He(e),$=f.position-f.lineStart;Ue(e,f),It(e,$,C,hn())&&e.events[b.eventsLength]?.type===ee.MAPPING?l=!0:Ue(e,b)}!l&&(E&&Ao(e,C,c)||go(e,C,c)||mo(e,C,c)||ho(e,c)||So(e,C,n,c))&&(l=!0)}else s===0&&(l=S&&mn(e,x,c))}return E=E&&!l,!l&&(c.anchorStart!==H||c.tagStart!==H||E)&&(We(e,H,H,c.anchorStart,c.anchorEnd,c.tagStart,c.tagEnd,N.PLAIN),l=!0),e.depth--,l||c.anchorStart!==H||c.tagStart!==H}function yo(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;const t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!me(e.input.charCodeAt(e.position));)e.position++;const n=e.input.slice(t,e.position),r=[];for(n.length===0&&L(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!J(e.input.charCodeAt(e.position));){for(;Ye(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||J(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;const i=e.position;for(;e.input.charCodeAt(e.position)!==0&&!me(e.input.charCodeAt(e.position));)e.position++;r.push(e.input.slice(i,e.position))}if(J(e.input.charCodeAt(e.position))&&lt(e),n==="YAML"){e.directives.some(o=>o.kind==="yaml")&&L(e,"duplication of %YAML directive"),r.length!==1&&L(e,"YAML directive accepts exactly one argument");const i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]);i===null&&L(e,"ill-formed argument of the YAML directive"),parseInt(i[1],10)!==1&&L(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:r[0]})}else if(n==="TAG"){r.length!==2&&L(e,"TAG directive accepts exactly two arguments");const[i,o]=r;Xn.test(i)||L(e,"ill-formed tag handle (first argument) of the TAG directive"),jn.call(e.tagHandlers,i)&&L(e,`there is a previously declared suffix for "${i}" tag handle`),io.test(o)||L(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[i]=o,e.directives.push({kind:"tag",handle:i,prefix:o})}return!0}function Co(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(re(e,!0);yo(e);)t=!0,re(e,!0);let n=!1,r=!1,i=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&ve(e.input.charCodeAt(e.position+3))){n=!0;const a=e.line;e.position+=3,re(e,!0),i=e.line>a}else t&&L(e,"directives end mark is expected");const o=e.events.length;if(!n&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&Ge(e)){e.position+=3,re(e,!0);return}if(oo(e,n,!1),qe(e,e.lineIndent-1,at,!1,i,i)||ae(e),re(e,!0),e.position===e.lineStart&&Ge(e)&&(r=e.input.charCodeAt(e.position)===46,r)){const a=e.line;e.position+=3,re(e,!0),e.line===a&&e.position<e.length&&L(e,"end of the stream or a document separator is expected")}const s=e.events[o];s?.type===ee.DOCUMENT&&(s.explicitEnd=r),Me(e),!r&&e.position<e.length&&!Yt(e)&&L(e,"end of the stream or a document separator is expected")}function To(e,t){const n=e.length,r={...Wt,...t,input:`${e}\0`,length:n,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},i=e.indexOf("\0");for(i!==-1&&ke.throwAt(e,i,"null byte is not allowed in input",r.filename);r.position<r.length&&(er(r),re(r,!0),!(r.position>=r.length));){const o=r.position;Co(r),r.position===o&&L(r,"can not read a document")}return r.events}var vo={...Wt,...qt};function Ro(e,t={}){const n={...vo,...t},r=String(e),i=Object.keys(Wt),o=Object.keys(qt);return Ji(To(r,wt(n,i)),{...wt(n,o),source:r})}function Oo(e,t,n){let r=null;typeof t=="function"?r=t:t!==null&&typeof t=="object"&&(n=t);const i=Ro(e,n);if(r===null)return i;for(const o of i)r(o)}var $e=Symbol("INVALID");function Lo(e){const t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(o=>o!==void 0)),n=e.implicitScalarTags,r=e.tags.filter(o=>!(o.nodeKind==="scalar"&&o.implicit)&&!t.has(o)),i=e.tags.filter(o=>t.has(o));return[...n.map(o=>({tag:o,implicitTag:!0})),...r.map(o=>({tag:o,implicitTag:!1})),...i.map(o=>({tag:o,implicitTag:!0}))]}function xo(e,t){for(let n=0,r=e.representTypes.length;n<r;n+=1){const{tag:i,implicitTag:o}=e.representTypes[n];if(i.identify(t)){let s;return i.matchByTagPrefix?s=i.representTagName(t):s=i.tagName,{tag:i,tagName:s,implicitTag:o}}}return null}function Xe(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){const f=e.refs.get(t);if(f)return f.anchor===void 0&&(f.anchor=`ref_${e.refCounter++}`),{kind:"alias",anchor:f.anchor}}const n=xo(e,t);if(!n){if(t===void 0||e.skipInvalid)return $e;throw new ke(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}const{tag:r,tagName:i,implicitTag:o}=n,s=o?i:qn(i);if(r.nodeKind==="scalar")return{kind:"scalar",tag:s,tagged:!o,style:N.PLAIN,value:r.represent(t)};if(r.nodeKind==="sequence"){const f=r.represent(t),c={kind:"sequence",tag:s,tagged:!o,style:ge.BLOCK,items:[]};e.noRefs||e.refs.set(t,c);for(let E=0,S=f.length;E<S;E+=1){let T=Xe(e,f[E]);T===$e&&f[E]===void 0&&(T=Xe(e,null)),T!==$e&&c.items.push(T)}return c}const a=r.represent(t),l={kind:"mapping",tag:s,tagged:!o,style:ge.BLOCK,items:[]};e.noRefs||e.refs.set(t,l);for(const[f,c]of a){const E=Xe(e,f);if(E===$e)continue;const S=Xe(e,c);S!==$e&&l.items.push({key:E,value:S})}return l}function bo(e,t,n={}){const r=Xe({representTypes:Lo(t),noRefs:n.noRefs??!1,skipInvalid:n.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:r===$e?null:r,directives:[]}]}var Io=Symbol("visit:break"),nr=Symbol("visit:skip");function it(e,t,n){const r=t(e,n);if(r===Io)return!0;if(r===nr)return!1;const i=n.depth+1;switch(e.kind){case"sequence":for(const o of e.items)if(it(o,t,{depth:i,parent:e,isKey:!1}))return!0;break;case"mapping":for(const{key:o,value:s}of e.items)if(it(o,t,{depth:i,parent:e,isKey:!0})||it(s,t,{depth:i,parent:e,isKey:!1}))return!0;break}return!1}function An(e,t){for(const n of e)if(n.contents&&it(n.contents,t,{depth:0,parent:null,isKey:!1}))return}function mt(e,t){return(e&1<<t)!==0}var En={applyQuoteFlowKeysOption:No,doubleQuoteForInvisibles:$o,doubleQuoteWhitespaceOnly:wo,applyForceQuotesOption:ko,tryLongOrMultilineAsBlock:Po,quoteInvalidPlain:Fo,fallbackToDoubleQuoted:Bo};function rr(e){return e.presenterOptions.quoteStyle==="single"&&mt(e.allowedStylesMask,N.SINGLE_QUOTED)?N.SINGLE_QUOTED:N.DOUBLE_QUOTED}function No(e){e.presenterOptions.quoteFlowKeys&&(!e.isKey||!e.flowOnly||e.style!==N.PLAIN||(e.style=N.DOUBLE_QUOTED))}function $o(e){e.style===N.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=N.DOUBLE_QUOTED)}function wo(e){e.style===N.PLAIN&&/^\s+$/.test(e.node.value)&&(e.style=N.DOUBLE_QUOTED)}function ko(e){e.presenterOptions.forceQuotes&&(e.isKey||e.style!==N.PLAIN||e.node.tag===e.presenterOptions.schema.defaultScalarTag.tagName&&(e.style=e.node.value.includes(`
19
+ `)?N.DOUBLE_QUOTED:rr(e)))}function Po(e){if(e.style!==N.PLAIN||e.isKey)return;const t=e.node.value,n=t.indexOf(`
20
+ `)!==-1;if(!mt(e.allowedStylesMask,N.LITERAL_BLOCK)){n&&(e.style=N.DOUBLE_QUOTED);return}const r=e.presenterOptions.lineWidth;if(r===-1){n&&(e.style=N.LITERAL_BLOCK);return}const i=Math.max(Math.min(r,40),r-e.shiftOfContent);let o=0,s=!1;for(;o<=t.length;){let a=t.length;const l=t.indexOf(`
21
+ `,o);l!==-1&&(a=l);const f=t.slice(o,a);if(f.length>i&&f[0]!==" "&&/ [^ \t]/.test(f)&&(s=!0),l===-1)break;o=l+1}s?e.style=N.FOLDED_BLOCK:n&&(e.style=N.LITERAL_BLOCK)}function Fo(e){e.style===N.PLAIN&&!mt(e.allowedStylesMask,N.PLAIN)&&(e.style=rr(e))}function Bo(e){mt(e.allowedStylesMask,e.style)||(e.style=N.DOUBLE_QUOTED)}function Ve(e,t){return e|1<<t}var Do="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",Mo="[\\n\\r]",Ho="\\uFEFF",jt="[ \\t]",ir=`(?:(?!(?:${Mo}|${Ho}))${Do})`,At=`(?:(?!${jt})${ir})`,or="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",sr="[-?:,\\[\\]{}#&*!|>'\"%@`]",Uo="[,\\[\\]{}]",Ft=At,Bt=`(?:(?!${Uo})${At})`,Ko=`(?:(?:(?!${sr})${At})|[?:-](?=${Ft}))`,Go=`(?:(?:(?!${sr})${At})|[?:-](?=${Bt}))`,ar=`(?:(?:(?![:#])${Ft})|:(?=${Ft}))#*`,lr=`(?:(?:(?![:#])${Bt})|:(?=${Bt}))#*`,cr=`(?:${jt}*${ar})*`,ur=`(?:${jt}*${lr})*`,fr=`${Ko}#*${cr}`,pr=`${Go}#*${ur}`,qo=fr,Wo=pr,Yo=`\\n+${ar}${cr}`,jo=`\\n+${lr}${ur}`,Qo=`${fr}(?:${Yo})*`,Vo=`${pr}(?:${jo})*`,Xo=new RegExp(`^(?:${Qo})$`,"u"),zo=new RegExp(`^(?:${Vo})$`,"u"),Zo=new RegExp(`^(?:${qo})$`,"u"),Jo=new RegExp(`^(?:${Wo})$`,"u"),es=new RegExp(`^(?:${or})*$`,"u"),ts=new RegExp(`^(?:${or}|\\n)*$`,"u"),ns=new RegExp(`^(?:${ir}|\\n)*$`,"u"),rs=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,Qt=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function is(e){const t=e.node.value;if(t!==""){if(!(e.isKey?e.flowOnly?Jo:Zo:e.flowOnly?zo:Xo).test(t)||e.shiftOfFirstLine===0&&rs.test(t))return!1;if(e.shiftOfContent===0){const r=t.indexOf(`
22
+ `);if(r!==-1){const i=t.slice(r+1);if(Qt.test(i))return!1}}}const n=e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;return!(!e.node.tagged&&n!==e.node.tag||!e.node.tagged&&t==="="&&n===e.presenterOptions.schema.defaultScalarTag.tagName)}function os(e){const t=e.node.value;if(!(e.isKey?es:ts).test(t)||/[ \t]\n|\n[ \t]/.test(t))return!1;if(!e.isKey&&e.shiftOfContent===0){const n=t.indexOf(`
23
+ `);if(n!==-1&&Qt.test(t.slice(n+1)))return!1}return!0}function ss(e){if(e.flowOnly||!ns.test(e.node.value))return!1;const t=e.shiftOfContent-e.shiftOfParent;return!(t<1||t>9&&/^\n* /.test(e.node.value)||e.shiftOfContent===0&&Qt.test(e.node.value))}function as(e){let t=Ve(0,N.DOUBLE_QUOTED);is(e)&&(t=Ve(t,N.PLAIN)),os(e)&&(t=Ve(t,N.SINGLE_QUOTED)),ss(e)&&(t=Ve(Ve(t,N.LITERAL_BLOCK),N.FOLDED_BLOCK)),e.allowedStylesMask=t}function ls(e){switch(e.style){case N.PLAIN:return cs(e);case N.SINGLE_QUOTED:return us(e);case N.LITERAL_BLOCK:return fs(e);case N.FOLDED_BLOCK:return ps(e);case N.DOUBLE_QUOTED:return ds(e)}}function cs(e){return dr(e.node.value,e.shiftOfContent)}function us(e){return`'${dr(e.node.value,e.shiftOfContent).replace(/'/g,"''")}'`}function fs(e){const t=e.node.value;return"|"+gr(t,e.shiftOfParent,e.shiftOfContent)+mr(hr(t,e.shiftOfContent))}function ps(e){const t=e.node.value,n=e.presenterOptions.lineWidth;let r=1/0;return n!==-1&&(r=Math.max(Math.min(n,40),n-e.shiftOfContent)),">"+gr(t,e.shiftOfParent,e.shiftOfContent)+mr(hr(gs(t,r),e.shiftOfContent))}function ds(e){return`"${Es(e.node.value)}"`}function dr(e,t){let n=e.indexOf(`
24
+ `);if(n===-1)return e;const r=" ".repeat(t);let i=e.slice(0,n);const o=/(\n+)([^\n]*)/g;o.lastIndex=n;let s;for(;s=o.exec(e);){const a=s[1].length,l=s[2];i+=`
25
+ `.repeat(a+1)+r+l}return i}function hr(e,t){const n=" ".repeat(t);let r=0,i="";const o=e.length;for(;r<o;){let s;const a=e.indexOf(`
26
+ `,r);a===-1?(s=e.slice(r),r=o):(s=e.slice(r,a+1),r=a+1),s.length&&s!==`
27
+ `&&(i+=n),i+=s}return i}function hs(e){return/^\n* /.test(e)}function gr(e,t,n){const r=hs(e)?String(n-t):"",i=e[e.length-1]===`
28
+ `;return`${r}${i&&(e[e.length-2]===`
29
+ `||e===`
30
+ `)?"+":i?"":"-"}
31
+ `}function mr(e){return e[e.length-1]===`
32
+ `?e.slice(0,-1):e}function Dt(e){return e===" "||e===" "}function Sn(e,t){if(e===""||Dt(e[0]))return e;const n=/ [^ \t]/g;let r,i=0,o,s=0,a=0,l="";for(;r=n.exec(e);)a=r.index,a-i>t&&(o=s>i?s:a,l+=`
33
+ ${e.slice(i,o)}`,i=o+1),s=a;return l+=`
34
+ `,e.length-i>t&&s>i?l+=`${e.slice(i,s)}
35
+ ${e.slice(s+1)}`:l+=e.slice(i),l.slice(1)}function gs(e,t){const n=/(\n+)([^\n]*)/g;let r=e.indexOf(`
36
+ `);r===-1&&(r=e.length),n.lastIndex=r;let i=Sn(e.slice(0,r),t),o=e[0]===`
37
+ `||Dt(e[0]),s,a;for(;a=n.exec(e);){const l=a[1],f=a[2];s=f!==""&&Dt(f[0]),i+=l+(!o&&!s&&f!==""?`
38
+ `:"")+Sn(f,t),o=s}return i}var ms=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function As(e){switch(e){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case`
39
+ `:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"…":return"\\N";case" ":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}const t=e.charCodeAt(0),n=t.toString(16).toUpperCase();return t<=255?`\\x${"0".repeat(2-n.length)}${n}`:`\\u${"0".repeat(4-n.length)}${n}`}function Es(e){return e.replace(ms,As)}var ct=10,Vt={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(En).map(e=>Reflect.get(En,e)),tagBeforeAnchor:!1};function Ss(e){return e.tagged?e.tag:qn(e.tag)}function _s(e){const t={...Vt,...e};return t.flowSkipColonSpace&&(t.quoteFlowKeys=!0),{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,openEnded:!1}}function Mt(e,t){return`
40
+ ${" ".repeat(e.indent*t)}`}function ys(e,t,n,r,i,o){return{node:t,parent:n,level:r,isKey:i,flowOnly:o,shiftOfParent:r===0?-1:e.indent*(r-1),shiftOfContent:e.indent*Math.max(1,r),shiftOfFirstLine:r===0?0:e.indent*r,presenterOptions:e,allowedStylesMask:0,style:t.style}}function Cs(e,t,n){let r="";for(let o=0,s=n.items.length;o<s;o+=1){const a=Re(e,t,n.items[o],n,{}).text;o>0&&(r+=`,${e.flowSkipCommaSpace?"":" "}`),r+=a}const i=e.flowBracketPadding&&n.items.length>0?" ":"";return`[${i}${r}${i}]`}function _n(e,t,n,r){let i="";for(let o=0,s=n.items.length;o<s;o+=1){const a=Re(e,t+1,n.items[o],n,{block:!0,compact:e.seqInlineFirst,isblockseq:!0}).text;(!r||i!=="")&&(i+=Mt(e,t)),a===""||ct===a.charCodeAt(0)?i+="-":i+="- ",i+=a}return i}function Ts(e,t,n){let r="";for(const{key:o,value:s}of n.items){let a="";r!==""&&(a+=`,${e.flowSkipCommaSpace?"":" "}`);const l=Re(e,t,o,n,{iskey:!0}),f=l.text,c=Re(e,t,s,n,{}).text,E=e.flowSkipColonSpace||c===""?"":" ",S=o.kind==="scalar"&&l.noBody&&(o.tagged||o.anchor!==void 0),T=o.kind==="alias"||S?" ":"";a+=`${f}${T}:${E}${c}`,r+=a}const i=e.flowBracketPadding&&r!==""?" ":"";return`{${i}${r}${i}}`}function vs(e,t,n,r){let i="";for(let o=0,s=n.items.length;o<s;o+=1){let a="";(!r||i!=="")&&(a+=Mt(e,t));const{key:l,value:f}=n.items[o],c=(l.kind==="mapping"||l.kind==="sequence")&&l.style===ge.BLOCK&&l.items.length!==0||l.kind==="scalar"&&(l.style===N.LITERAL_BLOCK||l.style===N.FOLDED_BLOCK),E=c?Re(e,t+1,l,n,{block:!0,compact:!0,isblockseq:!Ht(e,l,t+1)}):Re(e,t+1,l,n,{block:!0,compact:!0,iskey:!0}),S=E.text,T=l.kind==="scalar"&&l.value.indexOf(`
41
+ `)!==-1,C=S.length>1024&&/^[\s\S]{1025}/u.test(S),x=c||T||C;x&&(S&&ct===S.charCodeAt(0)?a+="?":a+="? "),a+=S,x&&(a+=Mt(e,t));const w=Re(e,t+1,f,n,{block:!0,compact:x,isblockseq:x&&!Ht(e,f,t+1)}).text,b=l.kind==="scalar"&&E.noBody&&(l.tagged||l.anchor!==void 0),$=!x&&(l.kind==="alias"||b)?" ":"";w===""||ct===w.charCodeAt(0)?a+=`${$}:`:a+=`${$}: `,a+=w,i+=a}return i}function Ht(e,t,n){return t.kind==="alias"?!0:t.tagged||t.anchor!==void 0||e.indent<2&&n>0}function Re(e,t,n,r,i){if(n.kind==="alias")return e.openEnded=!1,{text:`*${n.anchor}`,noBody:!1};const{block:o=!1,iskey:s=!1,isblockseq:a=!1}=i;let l=i.compact??!1;const f=n.anchor!==void 0;Ht(e,n,t)&&(l=!1);let c,E=n.tagged;const S=o&&(n.kind==="mapping"||n.kind==="sequence")&&n.style===ge.BLOCK&&n.items.length!==0;if(n.kind==="mapping")S?c=vs(e,t,n,l):c=Ts(e,t,n);else if(n.kind==="sequence")S?e.seqNoIndent&&!a&&t>0?c=_n(e,t-1,n,l):c=_n(e,t,n,l):c=Cs(e,t,n);else{const x=ys(e,n,r,t,s,!o);as(x);for(const w of e.scalarStyleRules)w(x);c=ls(x),e.openEnded=(x.style===N.LITERAL_BLOCK||x.style===N.FOLDED_BLOCK)&&(n.value===`
42
+ `||n.value.endsWith(`
43
+
44
+ `)),E=n.tagged||c===""&&x.flowOnly&&r?.kind==="sequence"&&!f||x.style!==N.PLAIN&&n.tag!==e.defaultScalarTagName}(n.kind==="mapping"||n.kind==="sequence")&&!S&&(e.openEnded=!1),S&&l&&t>0&&e.indent>2&&(c=`${" ".repeat(e.indent-2)}${c}`);const T=c==="";let C=c;if(E||f){const x=[],w=E?Ss(n):null,b=f?`&${n.anchor}`:null;e.tagBeforeAnchor?(w!==null&&x.push(w),b!==null&&x.push(b)):(b!==null&&x.push(b),w!==null&&x.push(w));const $=c===""||c.charCodeAt(0)===ct?"":" ";C=`${x.join(" ")}${$}${c}`}return{text:C,noBody:T}}function Rs(e){return(e.kind==="sequence"||e.kind==="mapping")&&e.style===ge.BLOCK&&e.items.length!==0&&!e.tagged&&e.anchor===void 0}function Os(e){let t="";for(const n of e.directives){if(n.kind==="yaml"){t+=`%YAML ${n.version}
45
+ `;continue}const{handle:r,prefix:i}=n;t+=`%TAG ${r} ${i}
46
+ `}return t}function Ls(e,t){const n=_s(t);let r="",i=!1;for(let o=0;o<e.length;o+=1){const s=e[o];n.openEnded=!1;const a=Os(s),l=a!=="",f=s.explicitStart||l||o>0&&!i;if(r+=a,s.contents===null)f&&(r+=`---
47
+ `);else if(f){const c=Re(n,0,s.contents,null,{block:!0,compact:!0}).text,E=c===""?"":l||Rs(s.contents)?`
48
+ `:" ";r+=`---${E}${c}
49
+ `}else r+=Re(n,0,s.contents,null,{block:!0,compact:!0}).text+`
50
+ `;i=s.explicitEnd||n.openEnded,i&&(r+=`...
51
+ `)}return r}var xs={...Vt,schema:Fi,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function bs(e,t){const n=String(e),r=String(t);return n<r?-1:n>r?1:0}function Is(e,t={}){const n={...xs,...t},r=bo(e,n.schema,{noRefs:n.noRefs,skipInvalid:n.skipInvalid});if(n.flowLevel>=0&&An(r,(i,o)=>{if(!(o.depth<n.flowLevel))return(i.kind==="sequence"||i.kind==="mapping")&&(i.style=ge.FLOW),nr}),n.sortKeys){const i=n.sortKeys===!0?bs:n.sortKeys;An(r,o=>{o.kind==="mapping"&&o.items.sort((s,a)=>i(s.key.kind==="scalar"?s.key.value:"",a.key.kind==="scalar"?a.key.value:""))})}return n.transform(r),Ls(r,{...wt(n,Object.keys(Vt)),schema:n.schema})}const Ns=Mn.withTags(wn,kn,Pn,Fn,Bn),Xt=(e,t)=>{const n=Oo(e,{schema:Ns,...t});if(n.length===0)return e.trim()===""?void 0:null;if(n.length>1)throw new ke("expected a single document in the stream, but found more");return n[0]},$s=(e,t)=>Is(e,t),ws=/\((\d+):(\d+)\)$/;class tt extends Error{originalError;source;col;line;constructor(t,n){super(t.message.split(`
52
+ `)[0]),this.originalError=t,this.source=n,Object.setPrototypeOf(this,tt.prototype);const[,r,i]=this.message.match(ws)||[];this.line=parseInt(r,10),this.col=parseInt(i,10)}}const ks=[".graphql",".gql"];function zt(e){const t=e.toLowerCase();return ks.some(n=>t.endsWith(n))}function Ar(e,t){return e.hasOwnProperty(t)?e[t]:void 0}function Er(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}function ot(e,t){return e+"::"+t}function Ps(){return new Promise(e=>{setTimeout(e)})}class ut{absoluteRef;body;mimeType;constructor(t,n,r){this.absoluteRef=t,this.body=n,this.mimeType=r}#e;#t;getAst(t){return this.#e===void 0&&(this.#e=t(this.body,{filename:this.absoluteRef})??void 0,this.#e&&this.#e.kind===0&&this.#e.value===""&&this.#e.startPosition!==1&&(this.#e.startPosition=1,this.#e.endPosition=1)),this.#e}getLines(){return this.#t===void 0&&(this.#t=this.body.split(/\r\n|[\n\r]/g)),this.#t}}class Et extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,Et.prototype)}}function Fs(e,t){const n=new ut(t,e);if(zt(t))return{source:n,parsed:e};try{return{source:n,parsed:Xt(e,{filename:t})}}catch(r){throw new tt(r,n)}}class Bs{config;cache=new Map;constructor(t={http:{headers:[]}}){this.config=t}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,n){return Le(n)?n:t&&Le(t)?new URL(n,t).href:ce.pathBrowserifyExports.resolve(t?ce.pathBrowserifyExports.dirname(t):process.cwd(),n)}async loadExternalRef(t){try{if(Le(t)){const{body:n,mimeType:r}=await Rn(t,this.config.http);return new ut(t,n,r)}else{if((void 0)(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);const n=await(void 0).readFile(t,"utf-8");return new ut(t,n.replace(/\r\n/g,`
53
+ `))}}catch(n){throw n.message=n.message.replace(", lstat",""),new Et(n)}}parseDocument(t,n=!1){if(zt(t.absoluteRef))return{source:t,parsed:t.body};const r=Le(t.absoluteRef)?new URL(t.absoluteRef).pathname:t.absoluteRef;if(!Er(r)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!n)return{source:t,parsed:t.body};try{return{source:t,parsed:Xt(t.body,{filename:t.absoluteRef})}}catch(i){throw new tt(i,t)}}async resolveDocument(t,n,r=!1){const i=this.resolveExternalRef(t,n),o=this.cache.get(i);if(o)return o;const s=this.loadExternalRef(i).then(a=>this.parseDocument(a,r));return this.cache.set(i,s),s}}function yn(e,t){return{prev:e,node:t}}function Ds(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}const rt={name:"unknown",properties:{}},Ms={name:"scalar",properties:{}};async function Hs(e){const{rootDocument:t,externalRefResolver:n,rootType:r}=e,i=new Map,o=new Set,s=[];l(t.parsed,t,"#/",r);let a;do a=await Promise.all(s);while(s.length!==a.length);return i;function l(f,c,E,S){const T=c.source.absoluteRef,C=new Map;x(f,S,T+E);function x(b,$,A){if(!ce.isPlainObject(b)&&!Array.isArray(b))return;const R=`${$.name}::${A}`;if(o.has(R))return;if(o.add(R),Array.isArray(b)){const v=$.items;if(v===void 0&&$!==rt&&$!==ze)return;const m=typeof v=="function";for(let g=0;g<b.length;g++){let O=m?v(b[g],Te(A,g)):v;if(O===void 0&&$!==rt&&$!==ze)continue;const j=O?.directResolveAs?{$ref:b[g]}:b[g];O=O?.directResolveAs||O,x(j,Ze(O)?O:rt,Te(A,g))}return}const[u,I]=Object.entries(b).find(([v])=>v==="$anchor")||[];I&&C.set(`#${I}`,b);for(const v of Object.keys(b)){let m=b[v],g=Ar($.properties,v);const O=$.extensionsPrefix!==void 0&&v.startsWith($.extensionsPrefix);g===void 0&&!O&&(g=$.additionalProperties),typeof g=="function"&&(g=g(m,v)),O&&g===void 0&&(g=ze),g===void 0&&(g=rt),!Ze(g)&&g?.directResolveAs&&(g=g.directResolveAs,m={$ref:m}),g&&g.name===void 0&&g.resolvable!==!1&&(g=Ms),!(!Ze(g)||!(ce.isPlainObject(m)||Array.isArray(m)))&&x(m,g,Te(A,we(v)))}if(Je(b)){const v=w(c,b,{prev:null,node:b}).then(m=>{if(m.resolved){l(m.node,m.document,m.nodePointer,$);for(const g of m.chain??[])l(g.node,g.document,g.location.pointer,$)}});s.push(v)}if(Ln(b)){const v=w(c,{$ref:b.externalValue},{prev:null,node:b}).then(m=>{m.resolved&&l(m.node,m.document,m.nodePointer,$)});s.push(v)}}async function w(b,$,A){if(Ds(A.prev,$))throw new Error("Self-referencing circular pointer");if(Pr($.$ref)){await Ps();const P={resolved:!0,isRemote:!1,node:C.get($.$ref),document:b,nodePointer:$.$ref},K=ot(b.source.absoluteRef,$.$ref);return i.set(K,P),P}const{uri:R,pointer:u}=bn($.$ref),I=R!==null&&n.resolveExternalRef(b.source.absoluteRef,R)!==b.source.absoluteRef;let v;try{v=I?await n.resolveDocument(b.source.absoluteRef,R):b}catch(P){const K={resolved:!1,isRemote:I,document:void 0,error:P},de=ot(b.source.absoluteRef,$.$ref);return i.set(de,K),K}let m={resolved:!0,document:v,isRemote:I,node:b.parsed,nodePointer:"#/"},g=v.parsed;const O=u;for(const P of O)if(ce.isPlainObject(g)&&g[P]!==void 0)g=g[P],m.nodePointer=Te(m.nodePointer,we(P));else if(Array.isArray(g)&&g[+P]!==void 0)g=g[+P],m.nodePointer=Te(m.nodePointer,we(P));else if(Je(g))if(m=await w(v,g,yn(A,g)),m.chain=void 0,v=m.document||v,ce.isPlainObject(m.node))g=m.node[P],m.nodePointer=Te(m.nodePointer,we(P));else if(Array.isArray(m.node))g=m.node[+P],m.nodePointer=Te(m.nodePointer,we(P));else{g=void 0;break}else{g=void 0;break}m.node=g,m.document=v;const j=ot(b.source.absoluteRef,$.$ref);if(m.document&&Je(g)){const P=On(g)?{node:g,document:m.document,location:new et(m.document.source,m.nodePointer)}:void 0;m=await w(m.document,g,yn(A,g)),P&&m.resolved&&(m={...m,chain:[P,...m.chain??[]]})}return i.set(j,m),{...m}}}}exports.BaseResolver=Bs;exports.Location=et;exports.ResolveError=Et;exports.Source=ut;exports.SpecExtension=ze;exports.YamlParseError=tt;exports.env=vn;exports.escapePointerFragment=we;exports.getDir=$r;exports.getOwn=Ar;exports.isAbsoluteUrl=Le;exports.isBrowser=Tn;exports.isExternalValue=Ln;exports.isGraphqlRef=zt;exports.isMappingRef=kr;exports.isNamedType=Ze;exports.isRef=Je;exports.isRefWithSiblings=On;exports.isSupportedExtension=Er;exports.isTruthy=Cn;exports.joinPointer=Te;exports.listOf=Lr;exports.makeDocumentFromString=Fs;exports.makeRefId=ot;exports.mapOf=xr;exports.normalizeTypes=br;exports.parsePointer=In;exports.parseRef=bn;exports.parseYaml=Xt;exports.pointerBaseName=Ir;exports.readFileFromUrl=Rn;exports.refBaseName=Nr;exports.replaceRef=Fr;exports.resolveDocument=Hs;exports.resolvePath=wr;exports.stringifyYaml=$s;exports.unescapePointerFragment=xn;