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

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 (58) hide show
  1. package/dist/{replay-AiChatProvider-LxWuWgjK.js → replay-AiChatProvider-BlVxTT7y.js} +1 -1
  2. package/dist/{replay-AiChatProvider-BM8abqH8.js → replay-AiChatProvider-pjWvX-qB.js} +6 -6
  3. package/dist/{replay-AiChatSqliteDBStorage-ByM_jjvw.js → replay-AiChatSqliteDBStorage-B7MnHWqG.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-C4tdDPBf.js → replay-AiChatSqliteDBStorage-Bi_XJJGo.js} +1 -1
  5. package/dist/{replay-AiPanel-DD1S543u.js → replay-AiPanel-BhuA1Ka6.js} +1 -1
  6. package/dist/{replay-AiPanel-LQPU7h0J.js → replay-AiPanel-fAfbqWyu.js} +4 -4
  7. package/dist/{replay-FileWatcher-BbFbSH7-.js → replay-FileWatcher-D1NJ1oZN.js} +2 -2
  8. package/dist/{replay-FileWatcher-BwY_TKXE.js → replay-FileWatcher-PFXJ2jy5.js} +1 -1
  9. package/dist/{replay-SemanticSearchService-CVxK2RB-.js → replay-SemanticSearchService-BNO9pdFc.js} +1 -1
  10. package/dist/{replay-SemanticSearchService-C2OaJcha.js → replay-SemanticSearchService-Biaz-fIw.js} +1 -1
  11. package/dist/{replay-SqliteDBStorage-BiutW7pD.js → replay-SqliteDBStorage-Br7VURQN.js} +1 -1
  12. package/dist/{replay-SqliteDBStorage-BYMeLBll.js → replay-SqliteDBStorage-CgsrhzVO.js} +1 -1
  13. package/dist/{replay-TauriFileSystemAdapter-SpIElzCj.js → replay-TauriFileSystemAdapter-BAUUL8oI.js} +1 -1
  14. package/dist/{replay-TauriFileSystemAdapter-DOPckV5d.js → replay-TauriFileSystemAdapter-KW8wHpXe.js} +1 -1
  15. package/dist/{replay-TauriRootStorage-Cs8FdTRB.js → replay-TauriRootStorage-B4hLhQqR.js} +1 -1
  16. package/dist/{replay-TauriRootStorage-qdWzMQnK.js → replay-TauriRootStorage-qfk4gIXv.js} +2 -2
  17. package/dist/{replay-agent-loop-CbONmEpU.js → replay-agent-loop-CFaio_rY.js} +3 -3
  18. package/dist/{replay-agent-loop-D20Uo83P.js → replay-agent-loop-CGZBPgaN.js} +1 -1
  19. package/dist/{replay-ai-chat-mappers-BqjA6a1R.js → replay-ai-chat-mappers-BeNFhJ26.js} +1 -1
  20. package/dist/{replay-ai-chat-mappers-BoD5va2S.js → replay-ai-chat-mappers-DLit0XXG.js} +1 -1
  21. package/dist/{replay-create-model-iK8UnqLH.js → replay-create-model-CL2Tsd2z.js} +3 -3
  22. package/dist/{replay-create-model-ByXMw0Mz.js → replay-create-model-CSpBrZMr.js} +3 -3
  23. package/dist/{replay-db-KVbyscDg.js → replay-db-B3iXh1_V.js} +1 -1
  24. package/dist/{replay-db-BAptE3HS.js → replay-db-CMVHMNS6.js} +1 -1
  25. package/dist/{replay-external-resolver-yhrzSVh-.js → replay-external-resolver-Br-cGwfm.js} +2 -2
  26. package/dist/{replay-external-resolver-CPTL9YMt.js → replay-external-resolver-D-q2Dc-T.js} +1 -1
  27. package/dist/{replay-index-TMDJfwog.js → replay-index-B78513Xf.js} +1 -1
  28. package/dist/{replay-index-BJuio1mk.js → replay-index-BJYfax9z.js} +1 -1
  29. package/dist/{replay-index-7c2fdTRw.js → replay-index-BkUG85dJ.js} +14639 -14547
  30. package/dist/{replay-index-B7Ax7uI3.js → replay-index-BtSv0o_B.js} +1 -1
  31. package/dist/{replay-index-Du_9zDOG.js → replay-index-C-R5BGI5.js} +1 -1
  32. package/dist/{replay-index-Dglne1rU.js → replay-index-C0Ck62dx.js} +1 -1
  33. package/dist/{replay-index-DsB14Sfy.js → replay-index-CcH6g0qX.js} +1 -1
  34. package/dist/{replay-index-DGVKGau4.js → replay-index-Cz0-sCwc.js} +1144 -1125
  35. package/dist/{replay-index-D66UFxK0.js → replay-index-DR_IKi1K.js} +1 -1
  36. package/dist/{replay-index-C1rF4MIj.js → replay-index-DuAxQQQk.js} +1 -1
  37. package/dist/replay-index-JTgggU0Q.js +4 -0
  38. package/dist/{replay-index-CRekxOYt.js → replay-index-ZJdoLrgJ.js} +22 -22
  39. package/dist/{replay-lint-7C6uDSRh.js → replay-lint-BvRmCOZq.js} +39 -39
  40. package/dist/{replay-lint-BmCBitNn.js → replay-lint-CsodRy23.js} +2497 -2495
  41. package/dist/{replay-lint-graphql--lxWSyCB.js → replay-lint-graphql-8tVp5_k5.js} +1 -1
  42. package/dist/{replay-lint-graphql-DbU8ryFL.js → replay-lint-graphql-B0dzYyp_.js} +2 -2
  43. package/dist/{replay-periodic-revalidation-C-RY1iAP.js → replay-periodic-revalidation-BobY47wa.js} +1 -1
  44. package/dist/{replay-periodic-revalidation-NOc0MUCR.js → replay-periodic-revalidation-m5wz2FN0.js} +1 -1
  45. package/dist/{replay-resolve-D1Ex_R0P.js → replay-resolve-86MVZrqd.js} +1 -1
  46. package/dist/{replay-resolve-27HxVuKM.js → replay-resolve-CitjafrX.js} +1 -1
  47. package/dist/{replay-respect-run-9NB18649.js → replay-respect-run-DRkeJyyj.js} +110 -110
  48. package/dist/{replay-respect-run-Ba0IqCSQ.js → replay-respect-run-DgHM6naD.js} +1 -1
  49. package/dist/{replay-tauri-path-L81YjxNO.js → replay-tauri-path-CGIOgvoJ.js} +1 -1
  50. package/dist/{replay-tauri-path-WDQCkBMZ.js → replay-tauri-path-Cmr3dHgv.js} +2 -2
  51. package/dist/{replay-useAiChatQueries-ChvOULLB.js → replay-useAiChatQueries-BbkSX7Jo.js} +4 -4
  52. package/dist/{replay-useAiChatQueries-CeNsH7jY.js → replay-useAiChatQueries-BxiLihgk.js} +1 -1
  53. package/dist/{replay-validate-key-DpZjfsH8.js → replay-validate-key--Ww_IryH.js} +2 -2
  54. package/dist/{replay-validate-key-BC0hj8Un.js → replay-validate-key-CdmwsZGm.js} +1 -1
  55. package/dist/replay.cjs +1 -1
  56. package/dist/replay.js +1 -1
  57. package/package.json +4 -4
  58. package/dist/replay-index-DcselHjq.js +0 -4
@@ -1 +1 @@
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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./replay-lint-BvRmCOZq.js"),u=require("./replay-index-Cz0-sCwc.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-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";
1
+ import { i as y } from "./replay-lint-CsodRy23.js";
2
+ import { z as d, B as h, S as v, G as I, C as G, E as b } from "./replay-index-BkUG85dJ.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-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
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./replay-index-Cz0-sCwc.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-7c2fdTRw.js";
1
+ import { c, a as l } from "./replay-index-BkUG85dJ.js";
2
2
  const s = 300 * 1e3;
3
3
  function I(t) {
4
4
  return () => ({
@@ -1,4 +1,4 @@
1
- import { X as ur, a6 as ze, a7 as Re } from "./replay-index-7c2fdTRw.js";
1
+ import { X as ur, a6 as ze, a7 as Re } from "./replay-index-BkUG85dJ.js";
2
2
  function fr(e) {
3
3
  return !!e;
4
4
  }
@@ -1,4 +1,4 @@
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}
1
+ "use strict";const ce=require("./replay-index-Cz0-sCwc.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
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
3
  `,l+=`${"-".repeat(n.indent+f+3+E.pos)}^
4
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}