@redocly/cli 2.53.3 → 2.54.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (120) hide show
  1. package/README.md +1 -1
  2. package/lib/chunks/{T376AHHQ.js → 23QBFBKB.js} +1 -1
  3. package/lib/chunks/{IMWIJK4I.js → 2MBZI3W3.js} +2 -1
  4. package/lib/chunks/2TLIBL23.js +8 -0
  5. package/lib/chunks/{C25ULQVR.js → 3BQA72CL.js} +1 -1
  6. package/lib/chunks/{S7LWRM6M.js → 3JLKV64R.js} +1 -1
  7. package/lib/chunks/3RDMQ5CQ.js +13 -0
  8. package/lib/chunks/{VL4UXBSF.js → 4563NK6K.js} +1 -1
  9. package/lib/chunks/{4BHLSA4G.js → 5U5KA4QB.js} +1 -1
  10. package/lib/chunks/7IULUVWX.js +13 -0
  11. package/lib/chunks/AHGQ4BNI.js +30 -0
  12. package/lib/chunks/ALXOGCUM.js +8 -0
  13. package/lib/chunks/AM6FT7EB.js +9 -0
  14. package/lib/chunks/{MXEA2HJF.js → B2NEPS53.js} +485 -473
  15. package/lib/chunks/{JXAKPU5V.js → BV3FDR6T.js} +1 -1
  16. package/lib/chunks/{CPXI7K7L.js → C22B72S6.js} +1 -1
  17. package/lib/chunks/{6ER74AF4.js → CI4NGJ3I.js} +3 -3
  18. package/lib/chunks/{2HTEK7CB.js → CR75HYUP.js} +1 -1
  19. package/lib/chunks/{Q3XI4H3K.js → DZ3BIL7B.js} +1 -1
  20. package/lib/chunks/{PDTJPHOV.js → ELMWD5XU.js} +1 -1
  21. package/lib/chunks/{GBTKUMLF.js → EQF3XONE.js} +1 -1
  22. package/lib/chunks/{JT5UMLP2.js → EVZXABWY.js} +1 -1
  23. package/lib/chunks/{J2VIXY4S.js → FFUSN7JK.js} +1 -1
  24. package/lib/chunks/FOLQQTQP.js +19 -0
  25. package/lib/chunks/{CXNOQVEB.js → FTDJMTRX.js} +1 -1
  26. package/lib/chunks/{NMVCH6CZ.js → FTTM5CU5.js} +1 -1
  27. package/lib/chunks/{BNWXU2OA.js → FUCJM4CG.js} +1 -1
  28. package/lib/chunks/{TXEDXTQA.js → G2C7YJ5D.js} +1 -1
  29. package/lib/chunks/{C4FLQ63T.js → G6ES3GTP.js} +1 -1
  30. package/lib/chunks/{T2XFX5KV.js → GV5K7EMH.js} +1 -1
  31. package/lib/chunks/H4XURXR7.js +47 -0
  32. package/lib/chunks/{GM5FQCWY.js → IW2J6X26.js} +4 -4
  33. package/lib/chunks/{RI6WFA4F.js → KEF4233Y.js} +6 -6
  34. package/lib/chunks/{4RWMTNRF.js → KIVK5WD5.js} +1 -1
  35. package/lib/chunks/{7V5AWKRU.js → L24E6ZRY.js} +3 -3
  36. package/lib/chunks/LLGJ3YMR.js +85 -0
  37. package/lib/chunks/{MEVUBG5J.js → MLHMLZ6D.js} +2 -2
  38. package/lib/chunks/QZBHV7SD.js +7 -0
  39. package/lib/chunks/{UWKKXZOE.js → RW2ESAIF.js} +80 -80
  40. package/lib/chunks/{DFCB4ULY.js → RZ4WANMS.js} +1 -1
  41. package/lib/chunks/{O6EXHS4S.js → SGZ5GYE3.js} +1 -1
  42. package/lib/chunks/{EDS62CRZ.js → SK6F5TET.js} +1 -1
  43. package/lib/chunks/{QE555QD2.js → T5U6O5KC.js} +1 -1
  44. package/lib/chunks/TZMWTSOQ.js +7 -0
  45. package/lib/chunks/{BST7IEDL.js → UIQNT772.js} +1 -1
  46. package/lib/chunks/{2LLR76SN.js → VFDSXLTV.js} +1 -1
  47. package/lib/chunks/VTKYS75A.js +13 -0
  48. package/lib/chunks/XRZ5NMQ5.js +13 -0
  49. package/lib/chunks/Y6E4JAM3.js +16 -0
  50. package/lib/chunks/{GJKYTFLY.js → YDSFHQXH.js} +3 -3
  51. package/lib/chunks/{TOCY6E4B.js → YZIILRDN.js} +1 -1
  52. package/lib/chunks/{XX6OZNQL.js → ZBHEZTGU.js} +1 -1
  53. package/lib/chunks/ZBK7SJHM.js +7 -0
  54. package/lib/chunks/ZDQDZTQ7.js +7 -0
  55. package/lib/chunks/{W3YACFG2.js → ZLOWCBYN.js} +1 -1
  56. package/lib/eject-assets/generators/cli/docs.ts +1 -1
  57. package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
  58. package/lib/eject-assets/generators/cli/index.ts +2 -2
  59. package/lib/eject-assets/generators/cli/render.ts +1 -1
  60. package/lib/eject-assets/generators/go/client.ts +1 -1
  61. package/lib/eject-assets/generators/go/descriptor.ts +1 -1
  62. package/lib/eject-assets/generators/go/index.ts +2 -2
  63. package/lib/eject-assets/generators/go/models.ts +1 -1
  64. package/lib/eject-assets/generators/go/naming.ts +1 -1
  65. package/lib/eject-assets/generators/go/operations.ts +1 -1
  66. package/lib/eject-assets/generators/go/pagination.ts +1 -1
  67. package/lib/eject-assets/generators/go/types.ts +1 -1
  68. package/lib/eject-assets/generators/mock/faker.ts +1 -1
  69. package/lib/eject-assets/generators/mock/index.ts +2 -2
  70. package/lib/eject-assets/generators/mock/render.ts +1 -1
  71. package/lib/eject-assets/generators/mock/sample.ts +1 -1
  72. package/lib/eject-assets/generators/mock/values.ts +1 -1
  73. package/lib/eject-assets/generators/php/client.ts +1 -1
  74. package/lib/eject-assets/generators/php/descriptor.ts +1 -1
  75. package/lib/eject-assets/generators/php/index.ts +2 -2
  76. package/lib/eject-assets/generators/php/models.ts +1 -1
  77. package/lib/eject-assets/generators/php/naming.ts +1 -1
  78. package/lib/eject-assets/generators/php/operations.ts +1 -1
  79. package/lib/eject-assets/generators/php/pagination.ts +1 -1
  80. package/lib/eject-assets/generators/php/types.ts +1 -1
  81. package/lib/eject-assets/generators/python/client.ts +1 -1
  82. package/lib/eject-assets/generators/python/descriptor.ts +1 -1
  83. package/lib/eject-assets/generators/python/index.ts +2 -2
  84. package/lib/eject-assets/generators/python/models.ts +1 -1
  85. package/lib/eject-assets/generators/python/naming.ts +1 -1
  86. package/lib/eject-assets/generators/python/operations.ts +1 -1
  87. package/lib/eject-assets/generators/python/pagination.ts +1 -1
  88. package/lib/eject-assets/generators/python/types.ts +1 -1
  89. package/lib/eject-assets/generators/swr/index.ts +2 -2
  90. package/lib/eject-assets/generators/swr/render.ts +1 -1
  91. package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
  92. package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
  93. package/lib/eject-assets/generators/transformers/index.ts +2 -2
  94. package/lib/eject-assets/generators/transformers/render.ts +1 -1
  95. package/lib/eject-assets/generators/typescript/banner.ts +1 -1
  96. package/lib/eject-assets/generators/typescript/client.ts +1 -1
  97. package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
  98. package/lib/eject-assets/generators/typescript/index.ts +2 -2
  99. package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
  100. package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
  101. package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
  102. package/lib/eject-assets/generators/typescript/operations.ts +1 -1
  103. package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
  104. package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
  105. package/lib/eject-assets/generators/typescript/types.ts +1 -1
  106. package/lib/eject-assets/generators/zod/index.ts +2 -2
  107. package/lib/eject-assets/generators/zod/schemas.ts +1 -1
  108. package/lib/index.js +157 -276
  109. package/package.json +1 -1
  110. package/lib/chunks/32XCOMOR.js +0 -7
  111. package/lib/chunks/6LHYZTIP.js +0 -48
  112. package/lib/chunks/6NEJXWUE.js +0 -7
  113. package/lib/chunks/BGOL5GAO.js +0 -19
  114. package/lib/chunks/KXHIHQWX.js +0 -13
  115. package/lib/chunks/OFAMJNQ6.js +0 -7
  116. package/lib/chunks/P26PQ2RU.js +0 -7
  117. package/lib/chunks/R6Q6FO6R.js +0 -14
  118. package/lib/chunks/RS5PUOTT.js +0 -18
  119. package/lib/chunks/UF33MFZE.js +0 -22
  120. package/lib/chunks/VH573B5Z.js +0 -7
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{a as Ei,b as Ah}from"./KXHIHQWX.js";import{a as wh}from"./32XCOMOR.js";import{ba as It,c as z,da as $s,fa as Os,ga as Ks,ia as Js,l as Mi,m as ha,s as Gs,x as Is}from"./UWKKXZOE.js";import{c as pe,e as ve}from"./RFWIIJFG.js";var $i=pe((Zr,Ii)=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.outdent=void 0;function Ut(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r]}function Ml(){return typeof WeakMap<"u"?new WeakMap:hm()}function hm(){return{add:Ut,delete:Ut,get:Ut,set:Ut,has:function(e){return!1}}}var mm=Object.prototype.hasOwnProperty,Gi=function(e,r){return mm.call(e,r)};function Fi(e,r){for(var a in r)Gi(r,a)&&(e[a]=r[a]);return e}var pm=/^[ \t]*(?:\r\n|\r|\n)/,fm=/(?:\r\n|\r|\n)[ \t]*$/,ym=/^(?:[\r\n]|$)/,gm=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,bm=/^[ \t]*[\r\n][ \t\r\n]*$/;function El(e,r,a){var t=0,n=e[0].match(gm);n&&(t=n[1].length);var i="(\\r\\n|\\r|\\n).{0,"+t+"}",o=new RegExp(i,"g");r&&(e=e.slice(1));var l=a.newline,h=a.trimLeadingNewline,p=a.trimTrailingNewline,g=typeof l=="string",b=e.length,T=e.map(function(B,W){return B=B.replace(o,"$1"),W===0&&h&&(B=B.replace(pm,"")),W===b-1&&p&&(B=B.replace(fm,"")),g&&(B=B.replace(/\r\n|\n|\r/g,function(H){return l})),B});return T}function km(e,r){for(var a="",t=0,n=e.length;t<n;t++)a+=e[t],t<n-1&&(a+=r[t]);return a}function Cm(e){return Gi(e,"raw")&&Gi(e,"length")}function xl(e){var r=Ml(),a=Ml();function t(i){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];if(Cm(i)){var h=i,p=(o[0]===t||o[0]===Qe)&&bm.test(h[0])&&ym.test(h[1]),g=p?a:r,b=g.get(h);if(b||(b=El(h,p,e),g.set(h,b)),o.length===0)return b[0];var T=km(b,p?o.slice(1):o);return T}else return xl(Fi(Fi({},e),i||{}))}var n=Fi(t,{string:function(i){return El([i],!1,e)[0]}});return n}var Qe=xl({trimLeadingNewline:!0,trimTrailingNewline:!0});Zr.outdent=Qe;Zr.default=Qe;if(typeof Ii<"u")try{Ii.exports=Qe,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=Qe,Qe.outdent=Qe}catch{}});var tu=pe(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});var Ef="[",xf="]",Rf="{",Lf="}",Pf=":",Df=",",Zc="true",Xc="false",Qc="null",Vc='"',Nf=new Map([["t",Zc],["f",Xc],["n",Qc]]),ho=new Map([[Vc,Vc],["\\","\\"],["/","/"],["b","\b"],["n",`
7
+ import{a as Ei,b as wh,c as Ah}from"./7IULUVWX.js";import{c as z,ca as It,ea as $s,ga as Os,ha as Ks,ja as Js,l as Mi,n as ha,t as Gs,y as Is}from"./RW2ESAIF.js";import{c as pe,e as ve}from"./RFWIIJFG.js";var $i=pe((Zr,Ii)=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.outdent=void 0;function Ut(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r]}function Ml(){return typeof WeakMap<"u"?new WeakMap:hm()}function hm(){return{add:Ut,delete:Ut,get:Ut,set:Ut,has:function(e){return!1}}}var mm=Object.prototype.hasOwnProperty,Gi=function(e,r){return mm.call(e,r)};function Fi(e,r){for(var a in r)Gi(r,a)&&(e[a]=r[a]);return e}var pm=/^[ \t]*(?:\r\n|\r|\n)/,fm=/(?:\r\n|\r|\n)[ \t]*$/,ym=/^(?:[\r\n]|$)/,gm=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,bm=/^[ \t]*[\r\n][ \t\r\n]*$/;function El(e,r,a){var t=0,n=e[0].match(gm);n&&(t=n[1].length);var i="(\\r\\n|\\r|\\n).{0,"+t+"}",o=new RegExp(i,"g");r&&(e=e.slice(1));var l=a.newline,h=a.trimLeadingNewline,p=a.trimTrailingNewline,g=typeof l=="string",b=e.length,T=e.map(function(B,W){return B=B.replace(o,"$1"),W===0&&h&&(B=B.replace(pm,"")),W===b-1&&p&&(B=B.replace(fm,"")),g&&(B=B.replace(/\r\n|\n|\r/g,function(H){return l})),B});return T}function km(e,r){for(var a="",t=0,n=e.length;t<n;t++)a+=e[t],t<n-1&&(a+=r[t]);return a}function Cm(e){return Gi(e,"raw")&&Gi(e,"length")}function xl(e){var r=Ml(),a=Ml();function t(i){for(var o=[],l=1;l<arguments.length;l++)o[l-1]=arguments[l];if(Cm(i)){var h=i,p=(o[0]===t||o[0]===Qe)&&bm.test(h[0])&&ym.test(h[1]),g=p?a:r,b=g.get(h);if(b||(b=El(h,p,e),g.set(h,b)),o.length===0)return b[0];var T=km(b,p?o.slice(1):o);return T}else return xl(Fi(Fi({},e),i||{}))}var n=Fi(t,{string:function(i){return El([i],!1,e)[0]}});return n}var Qe=xl({trimLeadingNewline:!0,trimTrailingNewline:!0});Zr.outdent=Qe;Zr.default=Qe;if(typeof Ii<"u")try{Ii.exports=Qe,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.default=Qe,Qe.outdent=Qe}catch{}});var tu=pe(na=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});var Ef="[",xf="]",Rf="{",Lf="}",Pf=":",Df=",",Zc="true",Xc="false",Qc="null",Vc='"',Nf=new Map([["t",Zc],["f",Xc],["n",Qc]]),ho=new Map([[Vc,Vc],["\\","\\"],["/","/"],["b","\b"],["n",`
8
8
  `],["f","\f"],["r","\r"],["t"," "]]),uo=new Map([[Ef,"Punctuator"],[xf,"Punctuator"],[Rf,"Punctuator"],[Lf,"Punctuator"],[Pf,"Punctuator"],[Df,"Punctuator"],[Zc,"Boolean"],[Xc,"Boolean"],[Qc,"Null"]]),Wa=class extends Error{constructor(r,{line:a,column:t,index:n}){super(`${r} (${a}:${t})`),this.line=a,this.column=t,this.index=n}},mo=class extends Wa{constructor(r,a){super(`Unexpected character ${r} found.`,a)}},pr=class extends Wa{constructor(r){super(`Unexpected token ${r.type}(${r.value}) found.`,r.loc.start)}},po=class extends Wa{constructor(r){super("Unexpected end of input found.",r)}},Uc='"',Yc="/",qc="*",Hf={comments:!1,ranges:!1};function Wf(e){return/[\s\n]/.test(e)}function Ca(e){return e>="0"&&e<="9"}function Ff(e){return Ca(e)||/[a-f]/i.test(e)}function Gf(e){return e>="1"&&e<="9"}function If(e){return/[tfn]/.test(e)}function $f(e){return Ca(e)||e==="."||e==="-"}function eu(e,r){r=Object.freeze({...Hf,...r});let a=-1,t=1,n=0,i=!1,o=[];function l(w,S,R,E){let L=R.offset+S.length,re=r.ranges?{range:[R.offset,L]}:void 0;return{type:w,value:S,loc:{start:R,end:E||{line:R.line,column:R.column+S.length,offset:L}},...re}}function h(){let w=e.charAt(++a);return i?(t++,n=1,i=!1):n++,w==="\r"?(i=!0,e.charAt(a+1)===`
9
9
  `&&a++):w===`
10
10
  `&&(i=!0),w}function p(){return{line:t,column:n,offset:a}}function g(w){let S=Nf.get(w);if(e.slice(a,a+S.length)===S)return a+=S.length-1,n+=S.length-1,{value:S,c:h()};for(let R=1;R<S.length;R++)S[R]!==e.charAt(a+R)&&W(h())}function b(w){let S=w;for(w=h();w&&w!==Uc;){if(w==="\\")if(S+=w,w=h(),ho.has(w))S+=w;else if(w==="u"){S+=w;for(let R=0;R<4;R++)w=h(),Ff(w)?S+=w:W(w)}else W(w);else S+=w;w=h()}return w||H(),S+=w,{value:S,c:h()}}function T(w){let S="";if(w==="-"&&(S+=w,w=h(),Ca(w)||W(w)),w==="0")S+=w,w=h(),Ca(w)&&W(w);else{Gf(w)||W(w);do S+=w,w=h();while(Ca(w))}if(w===".")do S+=w,w=h();while(Ca(w));if(w==="e"||w==="E")for(S+=w,w=h(),(w==="+"||w==="-")&&(S+=w,w=h()),Ca(w)||W(w);Ca(w);)S+=w,w=h();return{value:S,c:w}}function B(w){let S=w;if(w=h(),w==="/"){do S+=w,w=h();while(w&&w!=="\r"&&w!==`
@@ -12,7 +12,7 @@ import{a as Ei,b as Ah}from"./KXHIHQWX.js";import{a as wh}from"./32XCOMOR.js";im
12
12
  `:`
13
13
  `)+a,n=t+1,t=e.indexOf(`
14
14
  `,n)}while(t!==-1);return i+=e.substr(n),i};Su.exports={stringReplaceAll:ly,stringEncaseCRLFWithFirstIndex:cy}});var Eu=pe((wv,Mu)=>{"use strict";var uy=/(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi,Au=/(?:^|\.)(\w+)(?:\(([^)]*)\))?/g,dy=/^(['"])((?:\\.|(?!\1)[^\\])*)\1$/,hy=/\\(u(?:[a-f\d]{4}|{[a-f\d]{1,6}})|x[a-f\d]{2}|.)|([^\\])/gi,my=new Map([["n",`
15
- `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Bu(e){let r=e[0]==="u",a=e[1]==="{";return r&&!a&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):r&&a?String.fromCodePoint(parseInt(e.slice(2,-1),16)):my.get(e)||e}function py(e,r){let a=[],t=r.trim().split(/\s*,\s*/g),n;for(let i of t){let o=Number(i);if(!Number.isNaN(o))a.push(o);else if(n=i.match(dy))a.push(n[2].replace(hy,(l,h,p)=>h?Bu(h):p));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return a}function fy(e){Au.lastIndex=0;let r=[],a;for(;(a=Au.exec(e))!==null;){let t=a[1];if(a[2]){let n=py(t,a[2]);r.push([t].concat(n))}else r.push([t])}return r}function Tu(e,r){let a={};for(let n of r)for(let i of n.styles)a[i[0]]=n.inverse?null:i.slice(1);let t=e;for(let[n,i]of Object.entries(a))if(Array.isArray(i)){if(!(n in t))throw new Error(`Unknown Chalk style: ${n}`);t=i.length>0?t[n](...i):t[n]}return t}Mu.exports=(e,r)=>{let a=[],t=[],n=[];if(r.replace(uy,(i,o,l,h,p,g)=>{if(o)n.push(Bu(o));else if(h){let b=n.join("");n=[],t.push(a.length===0?b:Tu(e,a)(b)),a.push({inverse:l,styles:fy(h)})}else if(p){if(a.length===0)throw new Error("Found extraneous } in Chalk template literal");t.push(Tu(e,a)(n.join(""))),n=[],a.pop()}else n.push(g)}),t.push(n.join("")),a.length>0){let i=`Chalk template literal is missing ${a.length} closing bracket${a.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return t.join("")}});var it=pe((Av,Nu)=>{"use strict";var nt=vu(),{stdout:wo,stderr:Ao}=wh(),{stringReplaceAll:yy,stringEncaseCRLFWithFirstIndex:gy}=wu(),{isArray:cn}=Array,Ru=["ansi","ansi","ansi256","ansi16m"],Cr=Object.create(null),by=(e,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let a=wo?wo.level:0;e.level=r.level===void 0?a:r.level},To=class{constructor(r){return Lu(r)}},Lu=e=>{let r={};return by(r,e),r.template=(...a)=>Du(r.template,...a),Object.setPrototypeOf(r,un.prototype),Object.setPrototypeOf(r.template,r),r.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},r.template.Instance=To,r.template};function un(e){return Lu(e)}for(let[e,r]of Object.entries(nt))Cr[e]={get(){let a=dn(this,Bo(r.open,r.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:a}),a}};Cr.visible={get(){let e=dn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Pu=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Pu)Cr[e]={get(){let{level:r}=this;return function(...a){let t=Bo(nt.color[Ru[r]][e](...a),nt.color.close,this._styler);return dn(this,t,this._isEmpty)}}};for(let e of Pu){let r="bg"+e[0].toUpperCase()+e.slice(1);Cr[r]={get(){let{level:a}=this;return function(...t){let n=Bo(nt.bgColor[Ru[a]][e](...t),nt.bgColor.close,this._styler);return dn(this,n,this._isEmpty)}}}}var ky=Object.defineProperties(()=>{},{...Cr,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Bo=(e,r,a)=>{let t,n;return a===void 0?(t=e,n=r):(t=a.openAll+e,n=r+a.closeAll),{open:e,close:r,openAll:t,closeAll:n,parent:a}},dn=(e,r,a)=>{let t=(...n)=>cn(n[0])&&cn(n[0].raw)?xu(t,Du(t,...n)):xu(t,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(t,ky),t._generator=e,t._styler=r,t._isEmpty=a,t},xu=(e,r)=>{if(e.level<=0||!r)return e._isEmpty?"":r;let a=e._styler;if(a===void 0)return r;let{openAll:t,closeAll:n}=a;if(r.indexOf("\x1B")!==-1)for(;a!==void 0;)r=yy(r,a.close,a.open),a=a.parent;let i=r.indexOf(`
15
+ `],["r","\r"],["t"," "],["b","\b"],["f","\f"],["v","\v"],["0","\0"],["\\","\\"],["e","\x1B"],["a","\x07"]]);function Bu(e){let r=e[0]==="u",a=e[1]==="{";return r&&!a&&e.length===5||e[0]==="x"&&e.length===3?String.fromCharCode(parseInt(e.slice(1),16)):r&&a?String.fromCodePoint(parseInt(e.slice(2,-1),16)):my.get(e)||e}function py(e,r){let a=[],t=r.trim().split(/\s*,\s*/g),n;for(let i of t){let o=Number(i);if(!Number.isNaN(o))a.push(o);else if(n=i.match(dy))a.push(n[2].replace(hy,(l,h,p)=>h?Bu(h):p));else throw new Error(`Invalid Chalk template style argument: ${i} (in style '${e}')`)}return a}function fy(e){Au.lastIndex=0;let r=[],a;for(;(a=Au.exec(e))!==null;){let t=a[1];if(a[2]){let n=py(t,a[2]);r.push([t].concat(n))}else r.push([t])}return r}function Tu(e,r){let a={};for(let n of r)for(let i of n.styles)a[i[0]]=n.inverse?null:i.slice(1);let t=e;for(let[n,i]of Object.entries(a))if(Array.isArray(i)){if(!(n in t))throw new Error(`Unknown Chalk style: ${n}`);t=i.length>0?t[n](...i):t[n]}return t}Mu.exports=(e,r)=>{let a=[],t=[],n=[];if(r.replace(uy,(i,o,l,h,p,g)=>{if(o)n.push(Bu(o));else if(h){let b=n.join("");n=[],t.push(a.length===0?b:Tu(e,a)(b)),a.push({inverse:l,styles:fy(h)})}else if(p){if(a.length===0)throw new Error("Found extraneous } in Chalk template literal");t.push(Tu(e,a)(n.join(""))),n=[],a.pop()}else n.push(g)}),t.push(n.join("")),a.length>0){let i=`Chalk template literal is missing ${a.length} closing bracket${a.length===1?"":"s"} (\`}\`)`;throw new Error(i)}return t.join("")}});var it=pe((Av,Nu)=>{"use strict";var nt=vu(),{stdout:wo,stderr:Ao}=Ah(),{stringReplaceAll:yy,stringEncaseCRLFWithFirstIndex:gy}=wu(),{isArray:cn}=Array,Ru=["ansi","ansi","ansi256","ansi16m"],Cr=Object.create(null),by=(e,r={})=>{if(r.level&&!(Number.isInteger(r.level)&&r.level>=0&&r.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let a=wo?wo.level:0;e.level=r.level===void 0?a:r.level},To=class{constructor(r){return Lu(r)}},Lu=e=>{let r={};return by(r,e),r.template=(...a)=>Du(r.template,...a),Object.setPrototypeOf(r,un.prototype),Object.setPrototypeOf(r.template,r),r.template.constructor=()=>{throw new Error("`chalk.constructor()` is deprecated. Use `new chalk.Instance()` instead.")},r.template.Instance=To,r.template};function un(e){return Lu(e)}for(let[e,r]of Object.entries(nt))Cr[e]={get(){let a=dn(this,Bo(r.open,r.close,this._styler),this._isEmpty);return Object.defineProperty(this,e,{value:a}),a}};Cr.visible={get(){let e=dn(this,this._styler,!0);return Object.defineProperty(this,"visible",{value:e}),e}};var Pu=["rgb","hex","keyword","hsl","hsv","hwb","ansi","ansi256"];for(let e of Pu)Cr[e]={get(){let{level:r}=this;return function(...a){let t=Bo(nt.color[Ru[r]][e](...a),nt.color.close,this._styler);return dn(this,t,this._isEmpty)}}};for(let e of Pu){let r="bg"+e[0].toUpperCase()+e.slice(1);Cr[r]={get(){let{level:a}=this;return function(...t){let n=Bo(nt.bgColor[Ru[a]][e](...t),nt.bgColor.close,this._styler);return dn(this,n,this._isEmpty)}}}}var ky=Object.defineProperties(()=>{},{...Cr,level:{enumerable:!0,get(){return this._generator.level},set(e){this._generator.level=e}}}),Bo=(e,r,a)=>{let t,n;return a===void 0?(t=e,n=r):(t=a.openAll+e,n=r+a.closeAll),{open:e,close:r,openAll:t,closeAll:n,parent:a}},dn=(e,r,a)=>{let t=(...n)=>cn(n[0])&&cn(n[0].raw)?xu(t,Du(t,...n)):xu(t,n.length===1?""+n[0]:n.join(" "));return Object.setPrototypeOf(t,ky),t._generator=e,t._styler=r,t._isEmpty=a,t},xu=(e,r)=>{if(e.level<=0||!r)return e._isEmpty?"":r;let a=e._styler;if(a===void 0)return r;let{openAll:t,closeAll:n}=a;if(r.indexOf("\x1B")!==-1)for(;a!==void 0;)r=yy(r,a.close,a.open),a=a.parent;let i=r.indexOf(`
16
16
  `);return i!==-1&&(r=gy(r,n,t,i)),t+r+n},So,Du=(e,...r)=>{let[a]=r;if(!cn(a)||!cn(a.raw))return r.join(" ");let t=r.slice(1),n=[a.raw[0]];for(let i=1;i<a.length;i++)n.push(String(t[i-1]).replace(/[{}\\]/g,"\\$&"),String(a.raw[i]));return So===void 0&&(So=Eu()),So(e,n.join(""))};Object.defineProperties(un.prototype,Cr);var hn=un();hn.supportsColor=wo;hn.stderr=un({level:Ao?Ao.level:0});hn.stderr.supportsColor=Ao;Nu.exports=hn});var Fu=pe((Tv,Mo)=>{var pn=process||{},Hu=pn.argv||[],mn=pn.env||{},Cy=!(mn.NO_COLOR||Hu.includes("--no-color"))&&(!!mn.FORCE_COLOR||Hu.includes("--color")||pn.platform==="win32"||(pn.stdout||{}).isTTY&&mn.TERM!=="dumb"||!!mn.CI),vy=(e,r,a=e)=>t=>{let n=""+t,i=n.indexOf(r,e.length);return~i?e+Sy(n,r,a,i)+r:e+n+r},Sy=(e,r,a,t)=>{let n="",i=0;do n+=e.substring(i,t)+a,i=t+r.length,t=e.indexOf(r,i);while(~t);return n+e.substring(i)},Wu=(e=Cy)=>{let r=e?vy:()=>String;return{isColorSupported:e,reset:r("\x1B[0m","\x1B[0m"),bold:r("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:r("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:r("\x1B[3m","\x1B[23m"),underline:r("\x1B[4m","\x1B[24m"),inverse:r("\x1B[7m","\x1B[27m"),hidden:r("\x1B[8m","\x1B[28m"),strikethrough:r("\x1B[9m","\x1B[29m"),black:r("\x1B[30m","\x1B[39m"),red:r("\x1B[31m","\x1B[39m"),green:r("\x1B[32m","\x1B[39m"),yellow:r("\x1B[33m","\x1B[39m"),blue:r("\x1B[34m","\x1B[39m"),magenta:r("\x1B[35m","\x1B[39m"),cyan:r("\x1B[36m","\x1B[39m"),white:r("\x1B[37m","\x1B[39m"),gray:r("\x1B[90m","\x1B[39m"),bgBlack:r("\x1B[40m","\x1B[49m"),bgRed:r("\x1B[41m","\x1B[49m"),bgGreen:r("\x1B[42m","\x1B[49m"),bgYellow:r("\x1B[43m","\x1B[49m"),bgBlue:r("\x1B[44m","\x1B[49m"),bgMagenta:r("\x1B[45m","\x1B[49m"),bgCyan:r("\x1B[46m","\x1B[49m"),bgWhite:r("\x1B[47m","\x1B[49m"),blackBright:r("\x1B[90m","\x1B[39m"),redBright:r("\x1B[91m","\x1B[39m"),greenBright:r("\x1B[92m","\x1B[39m"),yellowBright:r("\x1B[93m","\x1B[39m"),blueBright:r("\x1B[94m","\x1B[39m"),magentaBright:r("\x1B[95m","\x1B[39m"),cyanBright:r("\x1B[96m","\x1B[39m"),whiteBright:r("\x1B[97m","\x1B[39m"),bgBlackBright:r("\x1B[100m","\x1B[49m"),bgRedBright:r("\x1B[101m","\x1B[49m"),bgGreenBright:r("\x1B[102m","\x1B[49m"),bgYellowBright:r("\x1B[103m","\x1B[49m"),bgBlueBright:r("\x1B[104m","\x1B[49m"),bgMagentaBright:r("\x1B[105m","\x1B[49m"),bgCyanBright:r("\x1B[106m","\x1B[49m"),bgWhiteBright:r("\x1B[107m","\x1B[49m")}};Mo.exports=Wu();Mo.exports.createColors=Wu});var Gu=pe(fn=>{Object.defineProperty(fn,"__esModule",{value:!0});fn.default=/((['"])(?:(?!\2|\\).|\\(?:\r\n|[\s\S]))*(\2)?|`(?:[^`\\$]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{[^}]*\}?)*\}?)*(`)?)|(\/\/.*)|(\/\*(?:[^*]|\*(?!\/))*(\*\/)?)|(\/(?!\*)(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\]\\]).|\\.)+\/(?:(?!\s*(?:\b|[\u0080-\uFFFF$\\'"~({]|[+\-!](?!=)|\.?\d))|[gmiyus]{1,6}\b(?![\u0080-\uFFFF$\\]|\s*(?:[+\-*%&|^<>!=?({]|\/(?![\/*])))))|(0[xX][\da-fA-F]+|0[oO][0-7]+|0[bB][01]+|(?:\d*\.\d+|\d+\.?)(?:[eE][+-]?\d+)?)|((?!\d)(?:(?!\s)[$\w\u0080-\uFFFF]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+)|(--|\+\+|&&|\|\||=>|\.{3}|(?:[+\-\/%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2})=?|[?~.,:;[\](){}])|(\s+)|(^$|[\s\S])/g;fn.matchToToken=function(e){var r={type:"invalid",value:e[0],closed:void 0};return e[1]?(r.type="string",r.closed=!!(e[3]||e[4])):e[5]?r.type="comment":e[6]?(r.type="comment",r.closed=!!e[7]):e[8]?r.type="regex":e[9]?r.type="number":e[10]?r.type="name":e[11]?r.type="punctuator":e[12]&&(r.type="whitespace"),r}});var Ju=pe(ot=>{"use strict";Object.defineProperty(ot,"__esModule",{value:!0});ot.isIdentifierChar=Ku;ot.isIdentifierName=By;ot.isIdentifierStart=Ou;var xo="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DC\uA7F1-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",Iu="\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ADD\u1AE0-\u1AEB\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",wy=new RegExp("["+xo+"]"),Ay=new RegExp("["+xo+Iu+"]");xo=Iu=null;var $u=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],Ty=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function Eo(e,r){let a=65536;for(let t=0,n=r.length;t<n;t+=2){if(a+=r[t],a>e)return!1;if(a+=r[t+1],a>=e)return!0}return!1}function Ou(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&wy.test(String.fromCharCode(e)):Eo(e,$u)}function Ku(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&Ay.test(String.fromCharCode(e)):Eo(e,$u)||Eo(e,Ty)}function By(e){let r=!0;for(let a=0;a<e.length;a++){let t=e.charCodeAt(a);if((t&64512)===55296&&a+1<e.length){let n=e.charCodeAt(++a);(n&64512)===56320&&(t=65536+((t&1023)<<10)+(n&1023))}if(r){if(r=!1,!Ou(t))return!1}else if(!Ku(t))return!1}return!r}});var Vu=pe(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.isKeyword=Ly;Fa.isReservedWord=zu;Fa.isStrictBindOnlyReservedWord=ju;Fa.isStrictBindReservedWord=Ry;Fa.isStrictReservedWord=_u;var Ro={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},My=new Set(Ro.keyword),Ey=new Set(Ro.strict),xy=new Set(Ro.strictBind);function zu(e,r){return r&&e==="await"||e==="enum"}function _u(e,r){return zu(e,r)||Ey.has(e)}function ju(e){return xy.has(e)}function Ry(e,r){return _u(e,r)||ju(e)}function Ly(e){return My.has(e)}});var Uu=pe(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});Object.defineProperty(ze,"isIdentifierChar",{enumerable:!0,get:function(){return Lo.isIdentifierChar}});Object.defineProperty(ze,"isIdentifierName",{enumerable:!0,get:function(){return Lo.isIdentifierName}});Object.defineProperty(ze,"isIdentifierStart",{enumerable:!0,get:function(){return Lo.isIdentifierStart}});Object.defineProperty(ze,"isKeyword",{enumerable:!0,get:function(){return st.isKeyword}});Object.defineProperty(ze,"isReservedWord",{enumerable:!0,get:function(){return st.isReservedWord}});Object.defineProperty(ze,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return st.isStrictBindOnlyReservedWord}});Object.defineProperty(ze,"isStrictBindReservedWord",{enumerable:!0,get:function(){return st.isStrictBindReservedWord}});Object.defineProperty(ze,"isStrictReservedWord",{enumerable:!0,get:function(){return st.isStrictReservedWord}});var Lo=Ju(),st=Vu()});var nd=pe(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});var Po=Fu(),Yu=Gu(),qu=Uu();function Py(){return typeof process=="object"&&(process.env.FORCE_COLOR==="0"||process.env.FORCE_COLOR==="false")?!1:Po.isColorSupported}var yn=(e,r)=>a=>e(r(a));function Qu(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:yn(yn(e.white,e.bgRed),e.bold),gutter:e.gray,marker:yn(e.red,e.bold),message:yn(e.red,e.bold),reset:e.reset}}var Dy=Qu(Po.createColors(!0)),Ny=Qu(Po.createColors(!1));function ed(e){return e?Dy:Ny}var Hy=new Set(["as","async","from","get","of","set"]),Wy=/\r\n|[\n\r\u2028\u2029]/,Fy=/^[()[\]{}]$/,ad,Gy=/^[a-z][\w-]*$/i,Iy=function(e,r,a){if(e.type==="name"){let t=e.value;if(qu.isKeyword(t)||qu.isStrictReservedWord(t,!0)||Hy.has(t))return"keyword";if(Gy.test(t)&&(a[r-1]==="<"||a.slice(r-2,r)==="</"))return"jsxIdentifier";let n=String.fromCodePoint(t.codePointAt(0));if(n!==n.toLowerCase())return"capitalized"}return e.type==="punctuator"&&Fy.test(e.value)?"bracket":e.type==="invalid"&&(e.value==="@"||e.value==="#")?"punctuator":e.type};ad=function*(e){let r;for(;r=Yu.default.exec(e);){let a=Yu.matchToToken(r);yield{type:Iy(a,r.index,e),value:a.value}}};function rd(e){if(e==="")return"";let r=ed(!0),a="";for(let{type:t,value:n}of ad(e))t in r?a+=n.split(Wy).map(i=>r[t](i)).join(`
17
17
  `):a+=n;return a}var Zu=!1,Xu=/\r\n|[\n\r\u2028\u2029]/;function $y(e,r,a,t){let n=Object.assign({column:0,line:-1},e.start),i=Object.assign({},n,e.end),{linesAbove:o=2,linesBelow:l=3}=a||{},h=n.line-t,p=n.column,g=i.line-t,b=i.column,T=Math.max(h-(o+1),0),B=Math.min(r.length,g+l);h===-1&&(T=0),g===-1&&(B=r.length);let W=g-h,H={};if(W)for(let x=0;x<=W;x++){let w=x+h;if(!p)H[w]=!0;else if(x===0){let S=r[w-1].length;H[w]=[p,S-p+1]}else if(x===W)H[w]=[0,b];else{let S=r[w-x].length;H[w]=[0,S]}}else p===b?p?H[h]=[p,0]:H[h]=!0:H[h]=[p,b-p];return{start:T,end:B,markerLines:H}}function td(e,r,a={}){let t=a.forceColor||Py()&&a.highlightCode,n=(a.startLine||1)-1,i=ed(t),o=e.split(Xu),{start:l,end:h,markerLines:p}=$y(r,o,a,n),g=r.start&&typeof r.start.column=="number",b=String(h+n).length,B=(t?rd(e):e).split(Xu,h).slice(l,h).map((W,H)=>{let x=l+1+H,S=` ${` ${x+n}`.slice(-b)} |`,R=p[x],E=!p[x+1];if(R){let L="";if(Array.isArray(R)){let re=W.slice(0,Math.max(R[0]-1,0)).replace(/[^\t]/g," "),ie=R[1]||1;L=[`
18
18
  `,i.gutter(S.replace(/\d/g," "))," ",re,i.marker("^").repeat(ie)].join(""),E&&a.message&&(L+=" "+i.message(a.message))}return[i.marker(">"),i.gutter(S),W.length>0?` ${W}`:"",L].join("")}else return` ${i.gutter(S)}${W.length>0?` ${W}`:""}`}).join(`
@@ -21,7 +21,7 @@ ${B}`),t?i.reset(B):B}function Oy(e,r,a,t={}){if(!Zu){Zu=!0;let i="Passing lineN
21
21
  ${Object.keys(e).join(", ")}.
22
22
  `:"",l=`${i} ${o}`;throw Error(l)}return Vr(e[t],r)(n.join("."))};function sr({pointer:e,ctx:r,logger:a}){let t=Gh(e);try{if(t[0]!=="faker")throw new Error(`Unsupported faker reference: "${t[0]}"`);return t.slice(1).reduce((n,i)=>Ih(n,i),r.$faker)}catch(n){a.error(K(n.toString()));return}}function Xs(e,r,a){if(typeof e=="string"&&e)return Oe({value:e,ctx:r,logger:a});if(!(typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Blob||e===null))for(let t in e)typeof e[t]=="string"?e[t]&&(e[t]=Oe({value:e[t],ctx:r,logger:a})):Xs(e[t],r,a)}function Pi(e,r,a){return Xs(e,r,a)||e}function Di(e,r){if(!e)return;let a={};for(let t in r)a[`{${t}}`]=String(r[t]);return e.split(/(\{[a-zA-Z0-9_.-]+\}+)/g).map(t=>a[t]?a[t]:t).join("")}function Qs(e){return z(e)&&"name"in e&&"value"in e&&!("in"in e)}function Ur(e){return z(e)&&"in"in e&&typeof e.in=="string"&&["header","query","path","cookie"].includes(e.in)}import*as xa from"node:path";var zh=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function al(e){return e.startsWith("$file(")&&e.endsWith(")")?e.substring(7,e.length-2):e}var el=async(e,r,a,t,n)=>{let i=xa.dirname(t),o=xa.resolve(i,al(a));e.append(r,await n.options.requestFileLoader.getFileBody(o))},rl=(e,r,a,t,n,i)=>{Object.entries(a).forEach(([o,l])=>{let h=i?`${i}[${o}]`:o;typeof l=="string"&&l.startsWith("$file(")&&l.endsWith(")")?e.push(el(r,h,l,t,n)):Array.isArray(l)?l.forEach(p=>{typeof p=="string"&&p.startsWith("$file(")&&p.endsWith(")")?e.push(el(r,h,p,t,n)):r.append(h,p.toString())}):z(l)?rl(e,r,l,t,n,h):(typeof l=="string"||typeof l=="number"||typeof l=="boolean")&&r.append(h,l.toString())})},_h=async(e,r,a,t)=>{if(z(e)){let n=[];rl(n,r,e,a,t),await Promise.all(n)}},jh=async(e,r)=>{if(typeof e=="string"&&e.startsWith("$file(")&&e.endsWith(")")){let a=xa.resolve(xa.dirname(r.options.filePath),al(e));return r.options.requestFileLoader.getFileBody(a)}else return e};async function tl(e,r){if(!e)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};let{payload:a,contentType:t}=e;if(t==="multipart/form-data"){let n=new FormData,i=xa.resolve(r.options.filePath);return await _h(a,n,i,r),{...e,payload:n}}else{if(t==="application/octet-stream"||typeof t=="string"&&zh.test(t))return{...e,payload:await jh(a,r),contentType:"application/octet-stream"};if(t==="application/x-www-form-urlencoded"&&typeof a=="string")return{...e,payload:Object.fromEntries(new URLSearchParams(a).entries()),contentType:"application/x-www-form-urlencoded"}}return e}var Wi=ve(Ei(),1);function Vh(e,r){function a(){this.constructor=e}a.prototype=r.prototype,e.prototype=new a}function lr(e,r,a,t){this.message=e,this.expected=r,this.found=a,this.location=t,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,lr)}Vh(lr,Error);lr.buildMessage=function(e,r,a){var t={literal:function(g){return'"'+i(g.text)+'"'},class:function(g){var b=g.parts.map(function(T){return Array.isArray(T)?o(T[0])+"-"+o(T[1]):o(T)});return"["+(g.inverted?"^":"")+b+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(g){return g.description},not:function(g){return"not "+l(g.expected)}};function n(g){return g.charCodeAt(0).toString(16).toUpperCase()}function i(g){return g.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+n(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+n(b)})}function o(g){return g.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+n(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+n(b)})}function l(g){return t[g.type](g)}function h(g){var b=g.map(l),T,B;if(b.sort(),b.length>0){for(T=1,B=1;T<b.length;T++)b[T-1]!==b[T]&&(b[B]=b[T],B++);b.length=B}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function p(g){return g?'"'+i(g)+'"':"end of input"}return"Expected "+h(e)+" but "+p(r)+" found."};function nl(e,r){r=r!==void 0?r:{};var a={},t={Start:Rt},n=Rt,i="&&",o="||",l="!",h="==",p="!=",g="<=",b="<",T=">=",B=">",W="{",H="}",x="$url",w="$method",S="$statusCode",R="$request.",E="$response.",L="$inputs.",re="$steps.",ie="$workflows.",V="$sourceDescriptions.",_="$components.",se="$components.parameters.",le="$outputs.",X=".",Ce="outputs.",ge="header.",He="query.",xe="path.",be="body",Re="#",Tr="/",Br="~",wa="0",Ja="1",za="[",We="]",sa='"',q="'",Se="true",Fe="false",la="null",_a="undefined",Mr=/^[!-.0-9A-Z_a-z]/,Er=/^[a-zA-Z]/,ja=/^[a-zA-Z0-9_\-]/,Va=/^[!#$%&'*+\-.\^_`|~a-zA-Z0-9\-]/,xr=/^[1-9]/,ca=/^[0-9]/,Ua=/^[^"]/,Ya=/^[^']/,qa=/^[ \t\r\n]/,Aa=J("&&",!1),Za=J("||",!1),Rr=J("!",!1),Dn=J("==",!1),Lr=J("!=",!1),Xa=J("<=",!1),Pr=J("<",!1),Nn=J(">=",!1),Hn=J(">",!1),Dr=J("{",!1),Nr=J("}",!1),gt=J("$url",!1),Wn=J("$method",!1),Fn=J("$statusCode",!1),Gn=J("$request.",!1),Qa=J("$response.",!1),er=J("$inputs.",!1),In=J("$steps.",!1),$n=J("$workflows.",!1),On=J("$sourceDescriptions.",!1),bt=J("$components.",!1),Kn=J("$components.parameters.",!1),kt=J("$outputs.",!1),Ta=J(".",!1),Hr=J("outputs.",!1),Ct=J("header.",!1),Jn=J("query.",!1),Wr=J("path.",!1),zn=J("body",!1),_n=J("#",!1),jn=J("/",!1),Vn=Ge([["!","."],["0","9"],["A","Z"],"_",["a","z"]],!1,!1),vt=J("~",!1),Fr=J("0",!1),Un=J("1",!1),Yn=Ge([["a","z"],["A","Z"]],!1,!1),St=Ge([["a","z"],["A","Z"],["0","9"],"_","-"],!1,!1),wt=Ge(["!","#","$","%","&","'","*","+","-",".","^","_","`","|","~",["a","z"],["A","Z"],["0","9"],"-"],!1,!1),qn=J("[",!1),Zn=J("]",!1),Xn=Ge([["1","9"]],!1,!1),ar=Ge([["0","9"]],!1,!1),At=J('"',!1),Tt=Ge(['"'],!0,!1),Bt=J("'",!1),Mt=Ge(["'"],!0,!1),Qn=J("true",!1),ei=J("false",!1),ai=J("null",!1),ri=J("undefined",!1),Et=Ge([" "," ","\r",`
23
23
  `],!1,!1),f=0,Ve=0,rr=[{line:1,column:1}],Ue=[],U=0,tr;if("startRule"in r){if(!(r.startRule in t))throw new Error(`Can't start parsing from rule "`+r.startRule+'".');n=t[r.startRule]}function ns(){return e.substring(Ve,f)}function is(){return Ve}function os(){return[Ve,f]}function ss(){return Ba(Ve,f)}function ls(d,m){throw m=m!==void 0?m:Ba(Ve,f),Gr([ni(d)],e.substring(Ve,f),m)}function cs(d,m){throw m=m!==void 0?m:Ba(Ve,f),li(d,m)}function J(d,m){return{type:"literal",text:d,ignoreCase:m}}function Ge(d,m,k){return{type:"class",parts:d,inverted:m,ignoreCase:k}}function us(){return{type:"any"}}function ti(){return{type:"end"}}function ni(d){return{type:"other",description:d}}function xt(d){var m=rr[d],k;if(m)return m;for(k=d-1;!rr[k];)k--;for(m=rr[k],m={line:m.line,column:m.column};k<d;)e.charCodeAt(k)===10?(m.line++,m.column=1):m.column++,k++;return rr[d]=m,m}var ii=typeof r.filename=="string"&&r.filename.length>0;function Ba(d,m){var k={};ii&&(k.filename=r.filename);var C=xt(d);k.start={offset:d,line:C.line,column:C.column};var M=xt(m);return k.end={offset:m,line:M.line,column:M.column},k}function oi(){Ue.push({pos:f,variants:[]})}function Y(d){var m=Ue[Ue.length-1];f<m.pos||(f>m.pos&&(m.pos=f,m.variants=[]),m.variants.push(d))}function si(d){var m=Ue.pop(),k=Ue[Ue.length-1],C=m.variants;k.pos===m.pos&&(d&&(C=C.map(function(M){return M.type==="not"?M.expected:{type:"not",expected:M}})),Array.prototype.push.apply(k.variants,C))}function li(d,m){return new lr(d,null,null,m)}function Gr(d,m,k){return new lr(lr.buildMessage(d,m,k),d,m,k)}function ci(){var d=Ue[0],m=d.pos;return Gr(d.variants,m<e.length?e.charAt(m):null,m<e.length?Ba(m,m+1):Ba(m,m))}function Rt(){var d,m=function(k){U===0&&Y(k)};return d=Lt(),d}function Lt(){var d,m,k,C,M,I,ae,Q,P=function(_r){U===0&&Y(_r)};if(d=f,m=Ir(),m!==a){for(k=[],C=f,M=we(),I=Pt(),I!==a?(ae=we(),Q=Ir(),Q!==a?(M=[M,I,ae,Q],C=M):(f=C,C=a)):(f=C,C=a);C!==a;)k.push(C),C=f,M=we(),I=Pt(),I!==a?(ae=we(),Q=Ir(),Q!==a?(M=[M,I,ae,Q],C=M):(f=C,C=a)):(f=C,C=a);m=[m,k],d=m}else f=d,d=a;return d}function Pt(){var d,m=function(k){U===0&&Y(k)};return m(Aa),e.substr(f,2)===i?(d=i,f+=2):d=a,d===a&&(m(Za),e.substr(f,2)===o?(d=o,f+=2):d=a,d===a&&(m(Rr),e.charCodeAt(f)===33?(d=l,f++):d=a)),d}function Dt(){var d,m=function(k){U===0&&Y(k)};return m(Dn),e.substr(f,2)===h?(d=h,f+=2):d=a,d===a&&(m(Lr),e.substr(f,2)===p?(d=p,f+=2):d=a,d===a&&(m(Xa),e.substr(f,2)===g?(d=g,f+=2):d=a,d===a&&(m(Pr),e.charCodeAt(f)===60?(d=b,f++):d=a,d===a&&(m(Nn),e.substr(f,2)===T?(d=T,f+=2):d=a,d===a&&(m(Hn),e.charCodeAt(f)===62?(d=B,f++):d=a))))),d}function Ir(){var d,m,k,C,M,I,ae,Q,P=function(_r){U===0&&Y(_r)};if(d=f,m=$r(),m===a&&(m=nr(),m===a&&(m=u())),m!==a){for(k=we(),C=[],M=f,I=Dt(),I!==a?(ae=we(),Q=$r(),Q===a&&(Q=nr(),Q===a&&(Q=u())),Q!==a?(I=[I,ae,Q],M=I):(f=M,M=a)):(f=M,M=a);M!==a;)C.push(M),M=f,I=Dt(),I!==a?(ae=we(),Q=$r(),Q===a&&(Q=nr(),Q===a&&(Q=u())),Q!==a?(I=[I,ae,Q],M=I):(f=M,M=a)):(f=M,M=a);m=[m,k,C],d=m}else f=d,d=a;return d}function $r(){var d,m,k,C,M,I,ae=function(Q){U===0&&Y(Q)};return d=f,ae(Dr),e.charCodeAt(f)===123?(m=W,f++):m=a,m!==a?(k=we(),C=nr(),C!==a?(M=we(),ae(Nr),e.charCodeAt(f)===125?(I=H,f++):I=a,I!==a?(m=[m,k,C,M,I],d=m):(f=d,d=a)):(f=d,d=a)):(f=d,d=a),d===a&&(d=f,ae(Dr),e.charCodeAt(f)===123?(m=W,f++):m=a,m!==a?(k=we(),C=Lt(),C!==a?(M=we(),ae(Nr),e.charCodeAt(f)===125?(I=H,f++):I=a,I!==a?(m=[m,k,C,M,I],d=m):(f=d,d=a)):(f=d,d=a)):(f=d,d=a)),d}function nr(){var d,m,k,C=function(M){U===0&&Y(M)};return C(gt),e.substr(f,4)===x?(d=x,f+=4):d=a,d===a&&(C(Wn),e.substr(f,7)===w?(d=w,f+=7):d=a,d===a&&(C(Fn),e.substr(f,11)===S?(d=S,f+=11):d=a,d===a&&(d=f,C(Gn),e.substr(f,9)===R?(m=R,f+=9):m=a,m!==a?(k=Ht(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d===a&&(d=f,C(Qa),e.substr(f,10)===E?(m=E,f+=10):m=a,m!==a?(k=Ht(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d===a&&(d=f,C(er),e.substr(f,8)===L?(m=L,f+=8):m=a,m!==a?(k=Ye(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d===a&&(d=ui(),d===a&&(d=f,C(In),e.substr(f,7)===re?(m=re,f+=7):m=a,m!==a?(k=Nt(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d===a&&(d=f,C($n),e.substr(f,11)===ie?(m=ie,f+=11):m=a,m!==a?(k=di(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d===a&&(d=f,C(On),e.substr(f,20)===V?(m=V,f+=20):m=a,m!==a?(k=Ye(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d===a&&(d=f,C(bt),e.substr(f,12)===_?(m=_,f+=12):m=a,m!==a?(k=Ye(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d===a&&(d=f,C(Kn),e.substr(f,23)===se?(m=se,f+=23):m=a,m!==a?(k=Ye(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a)))))))))))),d}function ui(){var d,m,k,C,M,I=function(ae){U===0&&Y(ae)};return d=f,I(kt),e.substr(f,9)===le?(m=le,f+=9):m=a,m!==a?(k=f,C=Ye(),C!==a?(M=Kr(),M===a&&(M=null),C=[C,M],k=C):(f=k,k=a),k===a&&(k=Or()),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d}function Nt(){var d,m,k,C,M,I,ae=function(Q){U===0&&Y(Q)};return d=f,m=ua(),m!==a?(ae(Ta),e.charCodeAt(f)===46?(k=X,f++):k=a,k!==a?(C=f,ae(Hr),e.substr(f,8)===Ce?(M=Ce,f+=8):M=a,M!==a?(I=Or(),I!==a?(M=[M,I],C=M):(f=C,C=a)):(f=C,C=a),C===a&&(C=Ye()),C!==a?(m=[m,k,C],d=m):(f=d,d=a)):(f=d,d=a)):(f=d,d=a),d}function di(){var d,m,k,C,M,I,ae=function(Q){U===0&&Y(Q)};return d=f,m=ua(),m!==a?(ae(Ta),e.charCodeAt(f)===46?(k=X,f++):k=a,k!==a?(C=f,ae(Hr),e.substr(f,8)===Ce?(M=Ce,f+=8):M=a,M!==a?(I=Or(),I!==a?(M=[M,I],C=M):(f=C,C=a)):(f=C,C=a),C===a&&(C=Ye()),C!==a?(m=[m,k,C],d=m):(f=d,d=a)):(f=d,d=a)):(f=d,d=a),d}function Or(){var d,m,k,C=function(M){U===0&&Y(M)};return d=f,m=ua(),m!==a?(k=Kr(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d}function Ye(){var d,m,k,C,M,I,ae,Q=function(P){U===0&&Y(P)};if(d=f,m=ua(),m!==a){for(k=[],C=f,Q(Ta),e.charCodeAt(f)===46?(M=X,f++):M=a,M!==a?(I=we(),ae=ua(),ae!==a?(M=[M,I,ae],C=M):(f=C,C=a)):(f=C,C=a);C!==a;)k.push(C),C=f,Q(Ta),e.charCodeAt(f)===46?(M=X,f++):M=a,M!==a?(I=we(),ae=ua(),ae!==a?(M=[M,I,ae],C=M):(f=C,C=a)):(f=C,C=a);m=[m,k],d=m}else f=d,d=a;return d}function ua(){var d,m=function(k){U===0&&Y(k)};return d=zr(),d===a&&(d=qe()),d}function Ht(){var d,m=function(k){U===0&&Y(k)};return d=hi(),d===a&&(d=mi(),d===a&&(d=pi(),d===a&&(d=fi()))),d}function hi(){var d,m,k,C=function(M){U===0&&Y(M)};return d=f,C(Ct),e.substr(f,7)===ge?(m=ge,f+=7):m=a,m!==a?(k=yi(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d}function mi(){var d,m,k,C=function(M){U===0&&Y(M)};return d=f,C(Jn),e.substr(f,6)===He?(m=He,f+=6):m=a,m!==a?(k=zr(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d}function pi(){var d,m,k,C=function(M){U===0&&Y(M)};return d=f,C(Wr),e.substr(f,5)===xe?(m=xe,f+=5):m=a,m!==a?(k=zr(),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d}function fi(){var d,m,k,C=function(M){U===0&&Y(M)};return d=f,C(zn),e.substr(f,4)===be?(m=be,f+=4):m=a,m!==a?(k=Kr(),k===a&&(k=null),m=[m,k],d=m):(f=d,d=a),d}function Kr(){var d,m,k,C,M=function(I){U===0&&Y(I)};if(d=f,M(_n),e.charCodeAt(f)===35?(m=Re,f++):m=a,m!==a){for(k=[],C=Jr();C!==a;)k.push(C),C=Jr();m=[m,k],d=m}else f=d,d=a;return d}function Jr(){var d,m,k,C,M=function(I){U===0&&Y(I)};if(d=f,M(jn),e.charCodeAt(f)===47?(m=Tr,f++):m=a,m!==a){for(k=[],C=Wt(),C===a&&(C=Ft());C!==a;)k.push(C),C=Wt(),C===a&&(C=Ft());m=[m,k],d=m}else f=d,d=a;return d}function Wt(){var d,m=function(k){U===0&&Y(k)};return m(Vn),Mr.test(e.charAt(f))?(d=e.charAt(f),f++):d=a,d}function Ft(){var d,m,k,C=function(M){U===0&&Y(M)};return d=f,C(vt),e.charCodeAt(f)===126?(m=Br,f++):m=a,m!==a?(C(Fr),e.charCodeAt(f)===48?(k=wa,f++):k=a,k===a&&(C(Un),e.charCodeAt(f)===49?(k=Ja,f++):k=a),k!==a?(m=[m,k],d=m):(f=d,d=a)):(f=d,d=a),d}function zr(){var d,m,k,C,M=function(I){U===0&&Y(I)};if(d=f,M(Yn),Er.test(e.charAt(f))?(m=e.charAt(f),f++):m=a,m!==a){for(k=[],M(St),ja.test(e.charAt(f))?(C=e.charAt(f),f++):C=a;C!==a;)k.push(C),M(St),ja.test(e.charAt(f))?(C=e.charAt(f),f++):C=a;m=[m,k],d=m}else f=d,d=a;return d}function yi(){var d,m,k=function(C){U===0&&Y(C)};if(d=[],k(wt),Va.test(e.charAt(f))?(m=e.charAt(f),f++):m=a,m!==a)for(;m!==a;)d.push(m),k(wt),Va.test(e.charAt(f))?(m=e.charAt(f),f++):m=a;else d=a;return d}function u(){var d,m=function(k){U===0&&Y(k)};return d=F(),d===a&&(d=qe(),d===a&&(d=D(),d===a&&(d=ds(),d===a&&(d=hs(),d===a&&(d=ms()))))),d}function F(){var d,m,k,C,M=function(I){U===0&&Y(I)};return d=f,M(qn),e.charCodeAt(f)===91?(m=za,f++):m=a,m!==a?(k=we(),M(Zn),e.charCodeAt(f)===93?(C=We,f++):C=a,C!==a?(m=[m,k,C],d=m):(f=d,d=a)):(f=d,d=a),d}function qe(){var d,m,k,C,M,I=function(ae){U===0&&Y(ae)};return d=f,m=Ee(),m!==a?(k=f,I(Ta),e.charCodeAt(f)===46?(C=X,f++):C=a,C!==a?(M=ir(),M!==a?(C=[C,M],k=C):(f=k,k=a)):(f=k,k=a),k===a&&(k=null),m=[m,k],d=m):(f=d,d=a),d}function Ee(){var d,m,k,C,M=function(I){U===0&&Y(I)};if(M(Fr),e.charCodeAt(f)===48?(d=wa,f++):d=a,d===a)if(d=f,M(Xn),xr.test(e.charAt(f))?(m=e.charAt(f),f++):m=a,m!==a){for(k=[],M(ar),ca.test(e.charAt(f))?(C=e.charAt(f),f++):C=a;C!==a;)k.push(C),M(ar),ca.test(e.charAt(f))?(C=e.charAt(f),f++):C=a;m=[m,k],d=m}else f=d,d=a;return d}function ir(){var d,m,k=function(C){U===0&&Y(C)};if(d=[],k(ar),ca.test(e.charAt(f))?(m=e.charAt(f),f++):m=a,m!==a)for(;m!==a;)d.push(m),k(ar),ca.test(e.charAt(f))?(m=e.charAt(f),f++):m=a;else d=a;return d}function D(){var d,m=function(k){U===0&&Y(k)};return d=Ma(),d===a&&(d=gi()),d}function Ma(){var d,m,k,C,M=function(I){U===0&&Y(I)};if(d=f,M(At),e.charCodeAt(f)===34?(m=sa,f++):m=a,m!==a){for(k=[],M(Tt),Ua.test(e.charAt(f))?(C=e.charAt(f),f++):C=a;C!==a;)k.push(C),M(Tt),Ua.test(e.charAt(f))?(C=e.charAt(f),f++):C=a;M(At),e.charCodeAt(f)===34?(C=sa,f++):C=a,C!==a?(m=[m,k,C],d=m):(f=d,d=a)}else f=d,d=a;return d}function gi(){var d,m,k,C,M=function(I){U===0&&Y(I)};if(d=f,M(Bt),e.charCodeAt(f)===39?(m=q,f++):m=a,m!==a){for(k=[],M(Mt),Ya.test(e.charAt(f))?(C=e.charAt(f),f++):C=a;C!==a;)k.push(C),M(Mt),Ya.test(e.charAt(f))?(C=e.charAt(f),f++):C=a;M(Bt),e.charCodeAt(f)===39?(C=q,f++):C=a,C!==a?(m=[m,k,C],d=m):(f=d,d=a)}else f=d,d=a;return d}function ds(){var d,m=function(k){U===0&&Y(k)};return m(Qn),e.substr(f,4)===Se?(d=Se,f+=4):d=a,d===a&&(m(ei),e.substr(f,5)===Fe?(d=Fe,f+=5):d=a),d}function hs(){var d,m=function(k){U===0&&Y(k)};return m(ai),e.substr(f,4)===la?(d=la,f+=4):d=a,d}function ms(){var d,m=function(k){U===0&&Y(k)};return m(ri),e.substr(f,9)===_a?(d=_a,f+=9):d=a,d}function we(){var d,m,k=function(C){U===0&&Y(C)};for(d=[],k(Et),qa.test(e.charAt(f))?(m=e.charAt(f),f++):m=a;m!==a;)d.push(m),k(Et),qa.test(e.charAt(f))?(m=e.charAt(f),f++):m=a;return d}if(oi(),tr=n(),tr!==a&&f===e.length)return tr;throw tr!==a&&f<e.length&&Y(ti()),ci()}function Ni(e){try{return Hi(e)}catch{throw new Error(`Runtime expression is not valid: ${e}`)}}var il=ve(Ei(),1);function ol(e,r){let a=[{pattern:/\$response\.body#\/([\w/-]+)/g,ctxFunction:(n,i)=>Yr(r.$response?.body,i,n)},{pattern:/\$request\.body#\/([\w/-]+)/g,ctxFunction:(n,i)=>Yr(r.$request?.body,i,n)},{pattern:/\$outputs\.([\w-]+)#\/([\w/-]+)/g,ctxFunction:(n,i,o)=>Yr(r.$outputs?.[i],o,n)},{pattern:/\$workflows\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/-]+)/g,ctxFunction:(n,i,o,l)=>Yr(r.$workflows?.[i]?.outputs?.[o],l,n)},{pattern:/\$steps\.([\w-]+)\.outputs\.([\w-]+)#\/([\w/-]+)/g,ctxFunction:(n,i,o,l)=>Yr(r.$steps?.[i]?.outputs?.[o],l,n)}],t=e;for(let{pattern:n,ctxFunction:i}of a)t=t.replaceAll(n,i);return t}function Yr(e,r,a){if(e)try{let t=il.default.get(e,`/${r}`);return typeof t=="string"||Array.isArray(t)||z(t)?JSON.stringify(t):t!==void 0?t:a}catch{return a}return a}function fe({payload:e,context:r,contentType:a,logger:t}){if(a?.includes("application/octet-stream"))return Pi(e,r,t);if(a?.includes("multipart/form-data")){if(e instanceof FormData){let n=new FormData;for(let[i,o]of e.entries())if(o instanceof File)n.append(i,o);else{let l=fe({payload:o,context:r,logger:t});n.append(i,l)}return n}return Pi(e,r,t)}return typeof e=="string"?am(e)?Ke(e,r,t):em(e,r,t):z(e)?Object.entries(e).reduce((n,[i,o])=>(n[i]=fe({payload:o,context:r,logger:t}),n),{}):Array.isArray(e)?e.map(n=>fe({payload:n,context:r,logger:t})):e}function Ke(e,r,a){return typeof e=="string"?Uh(e,r,a):z(e)?Object.entries(e).reduce((t,[n,i])=>(t[n]=i&&Ke(i,r,a),t),{}):Array.isArray(e)?e.map(t=>Ke(t,r,a)):e}function Uh(e,r,a){if(/^\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?$/.test(e))return sr({pointer:e.slice(1),ctx:r,logger:a});if(e.includes("$faker.")){let i=/\$faker\.[a-zA-Z0-9._-]+(\([^\\)]*\))?/g;e=e.replace(i,o=>sr({pointer:o.slice(1),ctx:r,logger:a})).replace(/{(.*?)}/g,"$1")}if(!e.includes("$")&&!/[=<>]/.test(e))return e;Ni(e);let t=qh(e,r),n=Zh(r);try{return new Function(...Object.keys(n),`return ${t};`)(...Object.values(n))}catch{throw new Error(`Error in resolving runtime expression '${e}'.
24
- This could be because the expression references a value from a previous failed step, or is trying to reference a variable that hasn't been set.`)}}function Yh(e){return e.replace(/\$([a-zA-Z0-9._-]+)/g,(r,a)=>`$${a.replace(/-/g,"_")}`)}function qh(e,r){let a=ol(e,r),n=Yh(a);if(n.startsWith("{")&&n.endsWith("}")){let h=n.slice(1,-1);!h.trim().startsWith("{")&&!h.trim().startsWith("[")&&(n=h)}let i=Qh(n),o=/\.header\.([a-zA-Z0-9._-]+)/g;return i.replace(o,(h,p)=>`.header.${p.toLowerCase()}`)}function Zh(e){let r={};for(let[a,t]of Object.entries(e)){let n=a.replace(/-/g,"_");r[n]=sl(t)}return r}function sl(e){return Array.isArray(e)?e:z(e)?Xh(e):e}function Xh(e){return Object.keys(e).reduce((r,a)=>{let t=a.replace(/-/g,"_");return r[t]=sl(e[a]),r},{})}function Qh(e){return e.replace(/\.(\d+)/g,(r,a,t,n)=>{let i=n[t-1];return/\d/.test(i)?r:`[${a}]`})}function em(e,r,a){let t=/\{(?:[^{}]|\{[^{}]*\})*\}|\$[^\s{}]+(?:\([^()]*\))*/g;return e.replace(t,n=>{let i=n.trim();if(!ll(i)&&!i.includes("$faker."))return n;let o=Ke(i,r,a);return o!==void 0?o:n})}function am(e){let r=e.trim();return r.startsWith("$faker.")?!0:r.startsWith("$")&&!/\s/.test(r)||r.startsWith("{")&&r.endsWith("}")?ll(r):!1}function ll(e){try{return Ni(e),!0}catch{return!1}}var Hi=nl;function cl({payload:e,replacements:r,expressionContext:a,logger:t}){for(let n of r){let{target:i,value:o}=n;if(typeof i!="string")throw new Error(`Invalid JSON Pointer: ${i}`);try{let l=Wi.default.get(e,i),h=fe({payload:o,context:a,logger:t});l!==void 0&&Wi.default.set(e,i,h)}catch{throw new Error(`Invalid JSON Pointer: ${i}`)}}}var rm=["parameters","failureActions","successActions"];function ul(e,r){let{reference:a,value:t}=e;if(!rm.some(i=>a.includes(`$components.${i}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");let n=Oe({value:a,ctx:r,logger:r.options.logger});return z(n)&&"value"in n&&t?{...n,value:t}:n}function Ra(e,r){return"reference"in e?ul(e,r):e}function Jt(e){if(z(e)){let r=Object.keys(e)[0];return r?e[r]?.value:void 0}else return}function hl(e,r){let a=e?.requestBody?.content||{},[t,n]=Object.entries(a)[0]||[],i=n?.example||Jt(n?.examples)||zt(n?.schema,r),o=tm(e);return{parameters:nm([...dl(e.pathParameters,r),...dl(e.parameters,r)]).filter(({value:h})=>h),contentTypeParameters:[...t?[{name:"content-type",in:"header",value:t}]:[],...o?[{name:"accept",in:"header",value:o}]:[]],requestBody:i,contentType:t}}function tm(e){return e?.responses?Array.from(new Set(Object.values(e.responses).flatMap(r=>z(r)&&"content"in r?Object.keys(r.content||{}):[]))).join(", "):void 0}function dl(e,r){return(e||[]).filter(a=>a?.required===!0).map(a=>{if(Ur(a))return{name:a.name,in:a.in,value:ml(a,r),...a.allowReserved&&{allowReserved:a.allowReserved}}}).filter(a=>a!==void 0)}function nm(e){let r={};for(let a of e)Ur(a)&&(r[(a.name+":"+a.in).toLowerCase()]=a);return Object.values(r)}function pl(e,r){let a,t;if(e.includes("$sourceDescriptions.")){let[,h,p]=e.split(".");a=h,t=p}else e.includes(".")?[a,t]=e.split("."):(t=e,a=Object.keys(r)[0]);let n=Object.keys(r);if(!r[a])throw new Error(`Unknown description name ${K(a)} at ${K(e)}. Available descriptions: ${n.join(", ")}.`);let i=r[a],o=i?.components?.securitySchemes,l=i.servers;for(let[h,p]of Object.entries(r[a].paths)){if(!p)return;for(let[g,b]of Object.entries(p))if(b.operationId===t)return{servers:p.servers||l,...b,pathParameters:b.parameters||[],path:h,method:g,descriptionName:a,securitySchemes:o}}throw new Error(`Unknown operationId ${K(t)} at ${K(e)}.`)}var qr=ve(Ei(),1);function fl(e,r){let{$sourceDescriptions:a,sourceDescriptions:t}=r,[n,i]=e.split("#");if(!t)throw new Error("Missing described sourceDescriptions");let o=t.find(H=>{if(["openapi","arazzo"].includes(H.type)){if(n.includes("$sourceDescriptions.")){let[,x]=n.split(".");return H.name===x}return"url"in H&&H.url===n}return!1})?.name;if(!o)throw new Error(`Unknown operationPath ${K(e)}. API description ${K(n)} is not listed in 'sourceDescriptions' workflow section.`);let l=a[o]||{},h=l?.components?.securitySchemes,[p,g,b]=qr.default.parse(i);if(p!=="paths")throw new Error(`Invalid fragment identifier: ${i} at operationPath ${K(e)}.`);let{servers:T}=l,B=qr.default.get(l,i)||{},W=qr.default.get(l,qr.default.compile(["paths",g]))||{};return{servers:W.servers||T,...B,pathParameters:W.parameters||[],path:g,method:b,descriptionName:o,securitySchemes:h}}function yl(e,r){if(!e.operationId&&!e.operationPath)return;let{$sourceDescriptions:a,sourceDescriptions:t}=r,{operationId:n,operationPath:i}=e;return n?pl(n,a):i?fl(i,{$sourceDescriptions:a,sourceDescriptions:t}):void 0}function gl({statusCode:e,contentType:r,descriptionResponses:a}){return a?(a[e]||a.default)?.content?.[r]?.schema:void 0}function bl(e,r){if(!r)return;let t=r.requestBody?.content;return t&&t[e]?.schema||void 0}function kl(e){let r={};for(let[a,t]of Object.entries(e)){let n=t.type==="http"?t.scheme?.toLowerCase():void 0;n==="basic"||n==="digest"?r[a]={type:"object",properties:{[`${a}_username`]:{type:"string",description:`Username for ${a}`},[`${a}_password`]:{type:"string",description:`Password for ${a}`,format:"password"}}}:n==="bearer"?r[a]={type:"object",properties:{[a]:{type:"string",description:t?.description||`JWT Authentication token for ${a}`,format:"password"}}}:t.type==="oauth2"||t.type==="openIdConnect"?r[a]={type:"object",properties:{[a]:{type:"string",description:t?.description||`Access token for ${a}`,format:"password"}}}:(t.type==="apiKey"||n)&&(r[a]={type:"object",properties:{[a]:{type:"string",description:t?.description||`Authentication token for ${a}`,format:"password"}}})}return{inputs:r}}var im={post:0,put:1,get:2,patch:3,delete:4,head:5,options:6,trace:7,connect:8,query:9};function Cl(e,r){let t=new Map(Object.entries(e)).get(r.toLowerCase());return t||-1}function om(e,r,a){let t=Cl(a,e),n=Cl(a,r);return t-n}function vl(e,r){return om(e,r,im)}function Sl(e,r,a){let t=[],n=[];for(let i of r??[])for(let o of Object.keys(i)){if(!e?.inputs?.[o])continue;let l=a[o],h=l?.type==="http"?l.scheme?.toLowerCase():void 0;l?.type==="apiKey"?t.push({schemeName:o,values:{apiKey:`$inputs.${o}`}}):l?.type==="oauth2"||l?.type==="openIdConnect"?t.push({schemeName:o,values:{accessToken:`$inputs.${o}`}}):h==="bearer"?t.push({schemeName:o,values:{token:`$inputs.${o}`}}):h==="basic"||h==="digest"?t.push({schemeName:o,values:{username:`$inputs.${o}_username`,password:`$inputs.${o}_password`}}):l?.type==="http"&&l.scheme&&n.push({name:"Authorization",value:`${l.scheme} {$inputs.${o}}`,in:"header"})}return{xSecurity:t,parameters:n}}function wl(e,r){if(r?.length){for(let a of r)for(let t of Object.keys(a))if(e?.inputs?.[t])return{$ref:`#/components/inputs/${t}`}}}function Al({descriptionPaths:e,sourceDescriptionName:r,rootSecurity:a,inputsComponents:t,securitySchemes:n}){let i=[];for(let o in e)for(let l of Object.keys(e[o]).sort(vl)){let h=l.toLocaleLowerCase();if(["get","post","put","delete","patch","head","options","trace","connect","query"].includes(h.toLocaleLowerCase())){let p=h,g=o.replace(/^\/|\/$/g,"").split("/").join("-"),b=e[o][h.toLowerCase()],T=b?.security||void 0,B=lm(r,b?.operationId),W=B?void 0:cm(r,o,p),H=wl(t,T||a||[]),x=Sl(t,T||a||[],n);i.push({workflowId:g?`${p}-${g}-workflow`:`${p}-workflow`,...H&&{inputs:H},...x.parameters.length&&{parameters:x.parameters},steps:[{stepId:g?`${p}-${g}-step`:`${p}-step`,...B?{operationId:B}:{operationPath:W},...x.xSecurity.length&&{"x-security":x.xSecurity},...sm(e[o][h.toLowerCase()]?.responses)}]})}}return i}function sm(e){let r=Object.keys(e||{});return r.length?{successCriteria:[{condition:`$statusCode == ${r?.[0]}`}]}:[]}function lm(e,r){if(r)return`$sourceDescriptions.${e}.${r}`}function cm(e,r,a){return`{$sourceDescriptions.${e}.url}#/paths/~1${r.replace(/^\//,"")}/${a}`}var _t={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"};function um(e){return pa.parse(e).name.replace(/\./g,"-").replace(/[^A-Za-z0-9_-]/g,"")}async function Tl(e){let{descriptionPath:r,outputFile:a,collectSpecData:t}=e,n=await $t(e)||{};t?.({parsed:n});let{paths:i,info:o,security:l,components:h}=n,p=um(r),g=a&&!Gs(r)?pa.relative(pa.dirname(a),pa.resolve(r)):r,b=h?.securitySchemes?kl(h?.securitySchemes):void 0,T={arazzo:"1.1.0",info:{title:o?.title||_t.title,version:o?.version||_t.version},sourceDescriptions:[{name:p,type:"openapi",url:g}],workflows:Al({descriptionPaths:i,sourceDescriptionName:p,rootSecurity:l,inputsComponents:b||{},securitySchemes:h?.securitySchemes}),...b&&{components:b}};return JSON.parse(JSON.stringify(T,null,2))}var Bl=ve(Ah(),1);function zt(e,r){if(e)try{return Bl.sample(e,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(a){r.error(or(" Error while generating test data from JSON Schema ")+`
24
+ This could be because the expression references a value from a previous failed step, or is trying to reference a variable that hasn't been set.`)}}function Yh(e){return e.replace(/\$([a-zA-Z0-9._-]+)/g,(r,a)=>`$${a.replace(/-/g,"_")}`)}function qh(e,r){let a=ol(e,r),n=Yh(a);if(n.startsWith("{")&&n.endsWith("}")){let h=n.slice(1,-1);!h.trim().startsWith("{")&&!h.trim().startsWith("[")&&(n=h)}let i=Qh(n),o=/\.header\.([a-zA-Z0-9._-]+)/g;return i.replace(o,(h,p)=>`.header.${p.toLowerCase()}`)}function Zh(e){let r={};for(let[a,t]of Object.entries(e)){let n=a.replace(/-/g,"_");r[n]=sl(t)}return r}function sl(e){return Array.isArray(e)?e:z(e)?Xh(e):e}function Xh(e){return Object.keys(e).reduce((r,a)=>{let t=a.replace(/-/g,"_");return r[t]=sl(e[a]),r},{})}function Qh(e){return e.replace(/\.(\d+)/g,(r,a,t,n)=>{let i=n[t-1];return/\d/.test(i)?r:`[${a}]`})}function em(e,r,a){let t=/\{(?:[^{}]|\{[^{}]*\})*\}|\$[^\s{}]+(?:\([^()]*\))*/g;return e.replace(t,n=>{let i=n.trim();if(!ll(i)&&!i.includes("$faker."))return n;let o=Ke(i,r,a);return o!==void 0?o:n})}function am(e){let r=e.trim();return r.startsWith("$faker.")?!0:r.startsWith("$")&&!/\s/.test(r)||r.startsWith("{")&&r.endsWith("}")?ll(r):!1}function ll(e){try{return Ni(e),!0}catch{return!1}}var Hi=nl;function cl({payload:e,replacements:r,expressionContext:a,logger:t}){for(let n of r){let{target:i,value:o}=n;if(typeof i!="string")throw new Error(`Invalid JSON Pointer: ${i}`);try{let l=Wi.default.get(e,i),h=fe({payload:o,context:a,logger:t});l!==void 0&&Wi.default.set(e,i,h)}catch{throw new Error(`Invalid JSON Pointer: ${i}`)}}}var rm=["parameters","failureActions","successActions"];function ul(e,r){let{reference:a,value:t}=e;if(!rm.some(i=>a.includes(`$components.${i}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");let n=Oe({value:a,ctx:r,logger:r.options.logger});return z(n)&&"value"in n&&t?{...n,value:t}:n}function Ra(e,r){return"reference"in e?ul(e,r):e}function Jt(e){if(z(e)){let r=Object.keys(e)[0];return r?e[r]?.value:void 0}else return}function hl(e,r){let a=e?.requestBody?.content||{},[t,n]=Object.entries(a)[0]||[],i=n?.example||Jt(n?.examples)||zt(n?.schema,r),o=tm(e);return{parameters:nm([...dl(e.pathParameters,r),...dl(e.parameters,r)]).filter(({value:h})=>h),contentTypeParameters:[...t?[{name:"content-type",in:"header",value:t}]:[],...o?[{name:"accept",in:"header",value:o}]:[]],requestBody:i,contentType:t}}function tm(e){return e?.responses?Array.from(new Set(Object.values(e.responses).flatMap(r=>z(r)&&"content"in r?Object.keys(r.content||{}):[]))).join(", "):void 0}function dl(e,r){return(e||[]).filter(a=>a?.required===!0).map(a=>{if(Ur(a))return{name:a.name,in:a.in,value:ml(a,r),...a.allowReserved&&{allowReserved:a.allowReserved}}}).filter(a=>a!==void 0)}function nm(e){let r={};for(let a of e)Ur(a)&&(r[(a.name+":"+a.in).toLowerCase()]=a);return Object.values(r)}function pl(e,r){let a,t;if(e.includes("$sourceDescriptions.")){let[,h,p]=e.split(".");a=h,t=p}else e.includes(".")?[a,t]=e.split("."):(t=e,a=Object.keys(r)[0]);let n=Object.keys(r);if(!r[a])throw new Error(`Unknown description name ${K(a)} at ${K(e)}. Available descriptions: ${n.join(", ")}.`);let i=r[a],o=i?.components?.securitySchemes,l=i.servers;for(let[h,p]of Object.entries(r[a].paths)){if(!p)return;for(let[g,b]of Object.entries(p))if(b.operationId===t)return{servers:p.servers||l,...b,pathParameters:b.parameters||[],path:h,method:g,descriptionName:a,securitySchemes:o}}throw new Error(`Unknown operationId ${K(t)} at ${K(e)}.`)}var qr=ve(Ei(),1);function fl(e,r){let{$sourceDescriptions:a,sourceDescriptions:t}=r,[n,i]=e.split("#");if(!t)throw new Error("Missing described sourceDescriptions");let o=t.find(H=>{if(["openapi","arazzo"].includes(H.type)){if(n.includes("$sourceDescriptions.")){let[,x]=n.split(".");return H.name===x}return"url"in H&&H.url===n}return!1})?.name;if(!o)throw new Error(`Unknown operationPath ${K(e)}. API description ${K(n)} is not listed in 'sourceDescriptions' workflow section.`);let l=a[o]||{},h=l?.components?.securitySchemes,[p,g,b]=qr.default.parse(i);if(p!=="paths")throw new Error(`Invalid fragment identifier: ${i} at operationPath ${K(e)}.`);let{servers:T}=l,B=qr.default.get(l,i)||{},W=qr.default.get(l,qr.default.compile(["paths",g]))||{};return{servers:W.servers||T,...B,pathParameters:W.parameters||[],path:g,method:b,descriptionName:o,securitySchemes:h}}function yl(e,r){if(!e.operationId&&!e.operationPath)return;let{$sourceDescriptions:a,sourceDescriptions:t}=r,{operationId:n,operationPath:i}=e;return n?pl(n,a):i?fl(i,{$sourceDescriptions:a,sourceDescriptions:t}):void 0}function gl({statusCode:e,contentType:r,descriptionResponses:a}){return a?(a[e]||a.default)?.content?.[r]?.schema:void 0}function bl(e,r){if(!r)return;let t=r.requestBody?.content;return t&&t[e]?.schema||void 0}function kl(e){let r={};for(let[a,t]of Object.entries(e)){let n=t.type==="http"?t.scheme?.toLowerCase():void 0;n==="basic"||n==="digest"?r[a]={type:"object",properties:{[`${a}_username`]:{type:"string",description:`Username for ${a}`},[`${a}_password`]:{type:"string",description:`Password for ${a}`,format:"password"}}}:n==="bearer"?r[a]={type:"object",properties:{[a]:{type:"string",description:t?.description||`JWT Authentication token for ${a}`,format:"password"}}}:t.type==="oauth2"||t.type==="openIdConnect"?r[a]={type:"object",properties:{[a]:{type:"string",description:t?.description||`Access token for ${a}`,format:"password"}}}:(t.type==="apiKey"||n)&&(r[a]={type:"object",properties:{[a]:{type:"string",description:t?.description||`Authentication token for ${a}`,format:"password"}}})}return{inputs:r}}var im={post:0,put:1,get:2,patch:3,delete:4,head:5,options:6,trace:7,connect:8,query:9};function Cl(e,r){let t=new Map(Object.entries(e)).get(r.toLowerCase());return t||-1}function om(e,r,a){let t=Cl(a,e),n=Cl(a,r);return t-n}function vl(e,r){return om(e,r,im)}function Sl(e,r,a){let t=[],n=[];for(let i of r??[])for(let o of Object.keys(i)){if(!e?.inputs?.[o])continue;let l=a[o],h=l?.type==="http"?l.scheme?.toLowerCase():void 0;l?.type==="apiKey"?t.push({schemeName:o,values:{apiKey:`$inputs.${o}`}}):l?.type==="oauth2"||l?.type==="openIdConnect"?t.push({schemeName:o,values:{accessToken:`$inputs.${o}`}}):h==="bearer"?t.push({schemeName:o,values:{token:`$inputs.${o}`}}):h==="basic"||h==="digest"?t.push({schemeName:o,values:{username:`$inputs.${o}_username`,password:`$inputs.${o}_password`}}):l?.type==="http"&&l.scheme&&n.push({name:"Authorization",value:`${l.scheme} {$inputs.${o}}`,in:"header"})}return{xSecurity:t,parameters:n}}function wl(e,r){if(r?.length){for(let a of r)for(let t of Object.keys(a))if(e?.inputs?.[t])return{$ref:`#/components/inputs/${t}`}}}function Al({descriptionPaths:e,sourceDescriptionName:r,rootSecurity:a,inputsComponents:t,securitySchemes:n}){let i=[];for(let o in e)for(let l of Object.keys(e[o]).sort(vl)){let h=l.toLocaleLowerCase();if(["get","post","put","delete","patch","head","options","trace","connect","query"].includes(h.toLocaleLowerCase())){let p=h,g=o.replace(/^\/|\/$/g,"").split("/").join("-"),b=e[o][h.toLowerCase()],T=b?.security||void 0,B=lm(r,b?.operationId),W=B?void 0:cm(r,o,p),H=wl(t,T||a||[]),x=Sl(t,T||a||[],n);i.push({workflowId:g?`${p}-${g}-workflow`:`${p}-workflow`,...H&&{inputs:H},...x.parameters.length&&{parameters:x.parameters},steps:[{stepId:g?`${p}-${g}-step`:`${p}-step`,...B?{operationId:B}:{operationPath:W},...x.xSecurity.length&&{"x-security":x.xSecurity},...sm(e[o][h.toLowerCase()]?.responses)}]})}}return i}function sm(e){let r=Object.keys(e||{});return r.length?{successCriteria:[{condition:`$statusCode == ${r?.[0]}`}]}:[]}function lm(e,r){if(r)return`$sourceDescriptions.${e}.${r}`}function cm(e,r,a){return`{$sourceDescriptions.${e}.url}#/paths/~1${r.replace(/^\//,"")}/${a}`}var _t={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"};function um(e){return pa.parse(e).name.replace(/\./g,"-").replace(/[^A-Za-z0-9_-]/g,"")}async function Tl(e){let{descriptionPath:r,outputFile:a,collectSpecData:t}=e,n=await $t(e)||{};t?.({parsed:n});let{paths:i,info:o,security:l,components:h}=n,p=um(r),g=a&&!Gs(r)?pa.relative(pa.dirname(a),pa.resolve(r)):r,b=h?.securitySchemes?kl(h?.securitySchemes):void 0,T={arazzo:"1.1.0",info:{title:o?.title||_t.title,version:o?.version||_t.version},sourceDescriptions:[{name:p,type:"openapi",url:g}],workflows:Al({descriptionPaths:i,sourceDescriptionName:p,rootSecurity:l,inputsComponents:b||{},securitySchemes:h?.securitySchemes}),...b&&{components:b}};return JSON.parse(JSON.stringify(T,null,2))}var Bl=ve(wh(),1);function zt(e,r){if(e)try{return Bl.sample(e,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(a){r.error(or(" Error while generating test data from JSON Schema ")+`
25
25
  `+a);return}}function ml(e,r){if(e?.example)return e.example;if(z(e?.examples))return Jt(e.examples);if(e?.schema)return zt(e.schema,r)}async function dm(e){return await Tl(e)}import{basename as qd,dirname as Mg,resolve as Eg}from"node:path";var te={SUCCESS_CRITERIA_CHECK:"success criteria check",STATUS_CODE_CHECK:"status code check",SCHEMA_CHECK:"schema check",CONTENT_TYPE_CHECK:"content-type check",GLOBAL_TIMEOUT_ERROR:"global timeout error",MAX_STEPS_REACHED_ERROR:"maximum steps reached",NETWORK_ERROR:"failed network request",UNEXPECTED_ERROR:"unexpected error"},jt=class extends Error{},cr=class extends jt{},ur=class extends jt{};function Vt({ctx:e,security:r,operation:a}){let{scheme:t,schemeName:n}=r;if(t)return r.scheme;if(n){if(typeof n=="string"&&n.startsWith("$sourceDescriptions.")){let[i,o,l]=n.split("."),p=(o&&e.$sourceDescriptions[o])?.components?.securitySchemes;return l&&p?p[l]:void 0}return a?.securitySchemes?.[n]}}var zl=ve($i(),1);import*as Jl from"node:path";function Rl(e){return!ha&&process.env.NODE_ENV==="test"?"<test>ms":`${Math.ceil(performance.now()-e)}ms`}function ea(e){let r=e.length,a=0,t=0,n=0,i=0,o=0,l=0,h=0,p=new Set,g=0,b=new Set,T=new Set;for(let B of e){let W=Ll(B.executedSteps),H=!1;for(let x of W){if(i++,x.retriesLeft&&x.retriesLeft!==0)continue;n++;let w=!1;for(let S of x.checks)if(t++,!S.passed)switch(S.severity){case"warn":o++,p.add(B.workflowId),T.add(B.workflowId+":"+x.stepId);break;case"off":l++,b.add(B.workflowId+":"+x.stepId);break;default:a++,w=!0}w&&(g++,H=!0)}H&&h++}return{workflows:{passed:r-h,failed:h,warnings:p.size,skipped:0,total:r},steps:{passed:n-g,failed:g,warnings:T.size,skipped:b.size,total:n},checks:{passed:t-a,failed:a,warnings:o,skipped:l,total:t},totalRequests:i}}function Ll(e){return e.flatMap(r=>"executedSteps"in r?Ll(r.executedSteps):[r])}var Oi=ve($i(),1);function Pl(e){try{return JSON.parse(e),!0}catch{return!1}}function Dl(e,r){let a=e.endsWith("/")?e.slice(0,-1):e,t=r.startsWith("/")?r.slice(1):r;return`${a}/${t}`}var Nl=50;function Ki({testNameToDisplay:e,checks:r,verboseLogs:a,verboseResponseLogs:t,logger:n}){let i=r.every(({passed:o})=>o);n.output(` ${i?Xe("\u2713"):K("\u2717")} ${oe(e)}`),a&&(n.output(`${me}
26
26
  `+(Hl({logs:a,logger:n})||"")),n.printNewLine()),t&&(n.output(`${me}
27
27
  `+(Hl({logs:t,type:"response",logger:n})||"")),n.printNewLine()),n.printNewLine();for(let o of r)n.output(`${ne(vm(o,o.severity),4)}
@@ -0,0 +1,85 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import{a as q}from"./Y6E4JAM3.js";import{h as H,l as B,q as z,s as K,t as V,u as Z,v as _}from"./AM6FT7EB.js";import{c as J,d as M,e as Y,u as k}from"./H4XURXR7.js";import"./BXI4SF2U.js";import{I as D,M as v,O,P as A,Q as j,R as L,T as y,U as P,V as R,X as e,fa as S,ia as g,l as h,na as C,oa as F}from"./RW2ESAIF.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";import{dirname as le}from"node:path";function W(r,t,o,n){n&&e.info(P(v(`
8
+ \u2611\uFE0F Achieved Level: ${y(o)}
9
+
10
+ `))),e.output(`<?xml version="1.0" encoding="UTF-8"?>
11
+ `),e.output(`<checkstyle version="4.3">
12
+ `),e.output(`<file name="${g(r)}">
13
+ `);for(let s of t){let i=s.location[0],a=0,c=0;if(i){let u=S(i);a=u.start.line,c=u.start.col}let l=s.scorecardLevel||"Unknown",d=s.severity==="warn"?"warning":"error",f=g(s.message),m=g(`${l}:${s.ruleId}`);e.output(`<error line="${a}" column="${c}" severity="${d}" message="${f}" source="${m}" />
14
+ `)}e.output(`</file>
15
+ `),e.output(`</checkstyle>
16
+
17
+ `)}function b(r){return r.replace(/\u001b\[[0-9;]*m/g,"")}function oe(r,t){let o=`Line ${r.line}, Col ${r.col}`;if(!t)return o;let n=`Line ${t.line}, Col ${t.col}`;return`${o} \u2192 ${n}`}function ie(r){if(!r.includes("/"))return`https://redocly.com/docs/cli/rules/oas/${r}`}function G(r,t,o,n="1.0"){let s={};for(let c of r){let l=c.scorecardLevel||"Unknown";s[l]||(s[l]=[]),s[l].push(c)}let i=[];for(let[c,l]of Object.entries(s)){let d=0,f=0,m=l.map(u=>(u.severity==="error"&&d++,u.severity==="warn"&&f++,{ruleId:u.ruleId,ruleUrl:ie(u.ruleId),severity:u.severity,message:b(u.message),location:u.location.map(p=>{let $=S(p);return{file:p.source.absoluteRef,range:oe($.start,$.end),pointer:p.pointer}})}));i.push({name:c,total:{errors:d,warnings:f},problems:m})}let a={version:n,...o?{level:t}:{},levels:i};e.output(JSON.stringify(a,null,2)),e.info(`
18
+ `)}function w(r,t){return`${r}: ${g(String(t))}`}function se(r,t){let o=r.location[0];if(!o)return{file:t,line:0,column:0};let n=S(o);return{file:o.source.absoluteRef,line:n.start.line,column:n.start.col,pointer:o.pointer}}function ae(r,t){let o=[w("Level",r.scorecardLevel||"Unknown"),w("Rule",r.ruleId),w("Severity",r.severity),w("File",t.file),w("Line",t.line),w("Column",t.column)];return t.pointer&&o.push(w("Pointer",t.pointer)),o.push(w("Message",b(r.message))),o.join(`
19
+ `)}function Q(r,t,o,n){let s=t.filter(a=>a.severity==="error").length,i=t.filter(a=>a.severity==="warn").length;e.output(`<?xml version="1.0" encoding="UTF-8"?>
20
+ `),e.output(`<testsuites name="redocly scorecard-classic" tests="${t.length}" failures="${s}" errors="0" skipped="${i}">
21
+ `),e.output(`<testsuite name="scorecard-classic" tests="${t.length}" failures="${s}" errors="0" skipped="${i}">
22
+ `),e.output(`<properties>
23
+ `),e.output(`<property name="api" value="${g(r)}" />
24
+ `),n&&e.output(`<property name="achievedLevel" value="${g(o)}" />
25
+ `),e.output(`</properties>
26
+ `);for(let a of t){let c=se(a,r),l=a.scorecardLevel||"Unknown",d=b(a.message),f=ae(a,c);e.output(`<testcase classname="${g(l)}" name="${g(a.ruleId)}" file="${g(c.file)}" line="${c.line}">
27
+ `),a.severity==="warn"?e.output(`<skipped message="${g(d)}">${f}</skipped>
28
+ `):e.output(`<failure message="${g(d)}" type="${g(a.ruleId)}">${f}</failure>
29
+ `),e.output(`</testcase>
30
+ `)}e.output(`</testsuite>
31
+ `),e.output(`</testsuites>
32
+
33
+ `)}function ce(r,t,o){let n=r.severity==="error"?O:r.severity==="warn"?j:R,s=r.location?.[0],i=0,a=0;if(s){let m=S(s);i=m.start.line,a=m.start.col}let c=`${i}:${a}`.padEnd(t),l=n(r.severity.padEnd(7)),d=r.ruleId.padEnd(o),f=y(`[${r.scorecardLevel||"Unknown"}]`);return` ${c} ${l} ${f} ${d} ${r.message}`}function X(r,t,o){let n=r.reduce((c,l)=>{let d=l.scorecardLevel||"Unknown";return c[d]||(c[d]=[]),c[d].push(l),c},{}),s=r.filter(c=>c.severity==="error").length,i=r.filter(c=>c.severity==="warn").length,a=Object.keys(n).length;e.info(P(`Found ${v(O(s.toString()))} ${h("error",s)} and ${v(j(i.toString()))} ${h("warning",i)} across ${v(y(a.toString()))} ${h("level",a)}
34
+ `)),o&&e.output(P(v(`
35
+ \u2611\uFE0F Achieved Level: ${y(t)}
36
+ `)));for(let[c,l]of Object.entries(n)){let d=l.reduce((u,p)=>(u[p.severity]=(u[p.severity]||0)+1,u),{});e.output(v(y(`
37
+ \u{1F4CB} ${c}`))+R(` (${d.error||0} ${h("error",d.error||0)}, ${d.warn||0} ${h("warning",d.warn||0)})
38
+ `));let f=Math.max(...l.map(u=>{let p=u.location?.[0];if(p){let $=S(p);return`${$.start.line}:${$.start.col}`.length}return 3}),8),m=Math.max(...l.map(u=>u.ruleId.length));for(let u of l)e.output(`${ce(u,f,m)}
39
+ `);e.info("")}}async function ee(r,t,o=!1){let n=H(r,r.resolvedConfig?.residency),s=new B(t),i=await s.getAccessToken(n);if(i)return o&&e.info(`Using existing access token.
40
+ `),i;o&&e.warn(`No valid access token found or refresh token expired. Attempting login...
41
+ `);try{await s.login(n,q),e.output(A(`\u2705 Logged in
42
+
43
+ `)),i=await s.getAccessToken(n)}catch(a){throw o&&(e.error(`\u274C Login failed.
44
+ `),e.error(`Error details: ${a.message}
45
+ `)),new C(`Login failed. Please try again or check your connection to ${n}.`)}return i}async function He({argv:r,config:t,version:o,collectSpecData:n}){let s=performance.now(),{verbose:i}=r,[{path:a,alias:c}]=await J(r.api?[r.api]:[],t),l=M(t,a).alias||c,d=r["project-url"]||t.resolvedConfig.scorecardClassic?.fromProjectUrl||t.resolvedConfig.scorecard?.fromProjectUrl;if(!d)throw new C("Scorecard is not configured. Please provide it via --project-url flag or configure it in redocly.yaml. Learn more: https://redocly.com/docs/realm/config/scorecard#fromprojecturl-example");if(!Z(d))throw new C(`Project URL must be from the .redocly.com domain. Received: ${d}`);let f=process.env.REDOCLY_AUTHORIZATION;if(ge()&&!f)throw new C(`Please provide an API key using the REDOCLY_AUTHORIZATION environment variable.
46
+ `);let m=f||await ee(t,o,i);if(!m)throw new C("Failed to obtain access token or API key.");let{scorecard:u,plugins:p}=await de({projectUrl:d,auth:m,isApiKey:!!f,verbose:i}),$=l?t.resolvedConfig.apis?.[l]?.metadata:void 0;i&&l&&$&&e.info(`
47
+ \u2713 Matched API "${y(l)}" from config
48
+ `),i&&(e.info(`Processing API: ${y(l||"default")}
49
+ `),e.info(`Path: ${k(a)}
50
+ `),$&&e.info(`Config Metadata: ${JSON.stringify($,null,2)}
51
+ `),e.info(`Project URL: ${d}
52
+ `));let T=new D(t.resolve),I=await T.resolveDocument(null,a,!0);n?.(I);let x=I.parsed?.info,re=x?.["x-metadata"]||{},U={title:x?.title,version:x?.version,...re,...$};i&&e.info(`Combined Metadata for target matching: ${JSON.stringify(U,null,2)}
53
+ `);let E=K(u.targets,U),N=r["target-level"]||E?.minimumLevel;i&&u.targets?.length&&(e.info(`Scorecard has ${u.targets.length} ${h("target",u.targets.length)} defined. Resolving target configurations...
54
+ `),e.info(E?`Found matching target for metadata. Resolving configurations for target "${JSON.stringify(E.where)}"...
55
+ `:`No matching target found for metadata. Proceeding with level configurations only.
56
+ `)),e.info(R(`
57
+ Running scorecard for ${k(a)}...
58
+ `));let te=await _({apiPath:a,document:I,externalRefResolver:T,scorecardConfig:u,configPath:t.configPath,plugins:await ue(p,t.configPath,i),targetLevel:N,metadata:U,onDebug:i?ne=>e.info(`${ne}
59
+ `):void 0});fe({path:a,result:te,targetLevel:N,format:r.format,version:o,startedAt:s})}async function ue(r,t,o){if(!r)return o&&e.info(`No plugins code provided to evaluate.
60
+ `),[];o&&e.info(`Starting plugin evaluation...
61
+ `);try{let n=await V(r,t?le(t):void 0);return o&&(e.info(`Successfully evaluated ${n.length} ${h("plugin",n.length)}.
62
+ `),n.forEach((s,i)=>{e.info(` Plugin ${i+1}: ${s.id||"unnamed"}
63
+ `)})),n}catch(n){return o&&(e.error(`\u274C Failed to evaluate plugins.
64
+ `),e.error(`Error details: ${n.message}
65
+ `),n.stack&&e.error(`Stack trace:
66
+ ${n.stack}
67
+ `)),e.warn(`Something went wrong during plugins evaluation: ${n.message}
68
+ `),[]}}async function de({verbose:r,...t}){r&&e.info(`Starting fetch for remote scorecard configuration...
69
+ `);let o;try{o=await z({...t,onDebug:r?n=>e.info(`${n}
70
+ `):void 0})}catch(n){throw r&&(e.error(`\u274C Failed to fetch remote scorecard configuration.
71
+ `),e.error(`Error details: ${n.message}
72
+ `),n.stack&&e.error(`Stack trace:
73
+ ${n.stack}
74
+ `)),n}if(r){let{scorecard:n,plugins:s,pluginsUrl:i}=o;e.info(`Successfully fetched scorecard configuration.
75
+ `),e.info(`Scorecard levels found: ${n.levels?.length||0}
76
+ `),s?e.info(`Successfully fetched plugins from ${i}
77
+ `):i?e.info(`No plugins were loaded from ${i}
78
+ `):e.info(`No custom plugins configured for this scorecard.
79
+ `)}return o}function fe({path:r,result:{problems:t,achievedLevel:o,targetLevelAchieved:n},targetLevel:s,format:i,version:a,startedAt:c}){if(t.length===0){e.output(P(v(`
80
+ \u2611\uFE0F Achieved Level: ${y(o)}
81
+ `))),e.output(A(`\u2705 No issues found for ${L(k(r))}. Your API meets all scorecard requirements.
82
+ `));return}s&&!n&&e.error(`
83
+ \u274C Your API specification does not satisfy the target scorecard level "${s}".
84
+ `),i==="json"?G(t,o,n,a):i==="checkstyle"?W(r,t,o,n):i==="junit"?Q(r,t,o,n):X(t,o,n);let l=Y(c);if(e.info(`\u{1F4CA} Scorecard results for ${L(k(r))} at ${L(r||"stdout")} ${A(l)}.
85
+ `),s&&!n)throw new F("Target scorecard level not achieved.");if(o==="Non Conformant")throw new F("Scorecard validation failed.")}function ge(){return!!(process.env.CI||!process.stdin.isTTY)}export{He as handleScorecardClassic};
@@ -4,7 +4,7 @@ import { dirname as __pathDirname } from 'node:path';
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- import{W as O,c as x}from"./UWKKXZOE.js";import{m}from"./UW4UC7ZI.js";function R(e){return e.flatMap(n=>n.operations)}function P(e,n,s){let r=e.specName??e.name;if(s?.exclude?.includes(r))return{};let a=s?.operations?.[r];if(a!==void 0)return y(e,n,a,`pagination.operations["${r}"]`,!0);if(e.paginationExtension!==void 0)return y(e,n,e.paginationExtension,"x-redoclyPagination",!0);if(s?.style!==void 0){let{exclude:o,operations:c,...t}=s;return y(e,n,t,"pagination convention",!1)}return{}}function H(e,n){let s=new Map,r=[];for(let a of R(e.services)){let o=P(a,e,n);o.error!==void 0?r.push(o.error):o.spec!==void 0&&s.set(a.name,{spec:o.spec,itemSchema:o.itemSchema})}if(r.length>0)throw new Error(["Invalid pagination configuration:",...r].join(`
7
+ import{X as O,c as x}from"./RW2ESAIF.js";import{m}from"./UW4UC7ZI.js";function R(e){return e.flatMap(n=>n.operations)}function P(e,n,s){let r=e.specName??e.name;if(s?.exclude?.includes(r))return{};let a=s?.operations?.[r];if(a!==void 0)return y(e,n,a,`pagination.operations["${r}"]`,!0);if(e.paginationExtension!==void 0)return y(e,n,e.paginationExtension,"x-redoclyPagination",!0);if(s?.style!==void 0){let{exclude:o,operations:c,...t}=s;return y(e,n,t,"pagination convention",!1)}return{}}function H(e,n){let s=new Map,r=[];for(let a of R(e.services)){let o=P(a,e,n);o.error!==void 0?r.push(o.error):o.spec!==void 0&&s.set(a.name,{spec:o.spec,itemSchema:o.itemSchema})}if(r.length>0)throw new Error(["Invalid pagination configuration:",...r].join(`
8
8
  - `));return s}function y(e,n,s,r,a){let o=`Pagination for operation "${e.name}" (${r})`,c=q(s);if(c!==void 0)return{error:`${o}: ${c}`};let t=s,d=i=>a?{error:`${o}: ${i}`}:{};if(e.sse!==void 0)return d("the operation is a Server-Sent Events stream");if(t.style!=="link"){let i=t.style==="cursor"?"cursorParam":"offsetParam",l=t.style==="cursor"?t.cursorParam:t.offsetParam,k=e.queryParams.find(u=>u.name===l);if(!k){let u=e.queryParams.map(E=>E.name).join(", ");return d(`query parameter "${l}" is not declared on the operation`+(u===""?"":` (declared: ${u})`))}let p=C(k.schema,n);if(!(p!==void 0&&(t.style==="cursor"?b(p,n):p.kind==="scalar"&&(p.scalar==="number"||p.scalar==="integer")))){let u=t.style==="cursor"?"a string":"a number";return d(`the "${i}" query parameter "${l}" must accept ${u} (got ${I(p)})`)}}let g=e.successResponses.find(i=>i.contentType.toLowerCase().includes("json"));if(!g)return d("the operation has no JSON success response");if(t.style==="link"){let i=e.successResponseHeaders?.some(l=>l.name==="link")===!0;if(!i&&!a)return{};i||O.warn(`generate-client: ${o.toLowerCase()} follows the Link header, but the success response does not document one.
9
9
  `)}let h=m(g.schema,t.items,n);if(h===void 0)return d(`the "items" pointer "${t.items}" does not resolve in the success response schema`);if(h.kind!=="array")return d(`the "items" pointer "${t.items}" must point at an array (got ${h.kind})`);if(t.style==="cursor"){let i=m(g.schema,t.nextCursor,n);if(i===void 0)return d(`the "nextCursor" pointer "${t.nextCursor}" does not resolve in the success response schema`);if(!b(i,n))return d(`the "nextCursor" pointer "${t.nextCursor}" must point at a string (got ${i.kind})`);if(t.hasMore!==void 0){let l=m(g.schema,t.hasMore,n);if(l===void 0)return d(`the "hasMore" pointer "${t.hasMore}" does not resolve in the success response schema`);if(l.kind!=="scalar"||l.scalar!=="boolean")return d(`the "hasMore" pointer "${t.hasMore}" must point at a boolean (got ${l.kind})`)}}let f=t.limitParam!==void 0?{limitParam:t.limitParam}:{};return{spec:t.style==="cursor"?{style:"cursor",param:t.cursorParam,...f,nextCursor:t.nextCursor,...t.hasMore!==void 0?{hasMore:t.hasMore}:{},items:t.items}:t.style==="link"?{style:"link",...f,items:t.items}:{style:t.style,param:t.offsetParam,...f,items:t.items},itemSchema:h.items}}function q(e){if(!x(e))return"the rule must be an object";let{style:n,cursorParam:s,nextCursor:r,hasMore:a,offsetParam:o,limitParam:c,items:t}=e;if(n!=="cursor"&&n!=="offset"&&n!=="page"&&n!=="link")return`"style" must be one of "cursor" | "offset" | "page" | "link" (got ${JSON.stringify(n)})`;if(typeof t!="string"||t!==""&&!t.startsWith("/"))return'"items" must be a JSON pointer starting with "/" (or "" when the response body is the item array itself)';if(n==="cursor"){if(typeof s!="string"||s==="")return'cursor style requires a "cursorParam" query parameter name';if(typeof r!="string"||!r.startsWith("/"))return'cursor style requires a "nextCursor" JSON pointer starting with "/"';if(a!==void 0&&(typeof a!="string"||!a.startsWith("/")))return'"hasMore" must be a JSON pointer starting with "/"'}else if((n==="offset"||n==="page")&&(typeof o!="string"||o===""))return`${n} style requires an "offsetParam" query parameter name`;if(c!==void 0&&typeof c!="string")return'"limitParam" must be a query parameter name'}function I(e){return e===void 0?"an unresolvable ref":e.kind==="scalar"||e.kind==="enum"?e.scalar:e.kind}function C(e,n){let s=new Set,r=e;for(;r.kind==="ref";){let{name:a}=r;if(s.has(a))return;s.add(a);let o=n.schemas.find(c=>c.name===a);if(o===void 0)return;r=o.schema}return r}function b(e,n){return e.kind==="scalar"||e.kind==="enum"?e.scalar==="string":e.kind==="literal"?typeof e.value=="string":e.kind==="union"?e.members.every(s=>{let r=C(s,n);return r!==void 0&&(r.kind==="null"||r.kind!=="union"&&b(r,n))}):!1}var G={"types.ts":`/**
10
10
  * The public type surface of the client runtime \u2014 \`@redocly/client-generator\`'s
@@ -5397,4 +5397,4 @@ async function runSingle(
5397
5397
  }
5398
5398
  return fail(1, detail);
5399
5399
  }
5400
- }`},S=["ApiError","ApiErrorLike","AuthCredentials","BodyMethod","Capabilities","CliAuthScheme","CliCommand","CliFlag","CliGlobals","CliInvocation","CliWiring","Client","ClientConfig","ClientCore","CommandContext","CommandSource","CustomCommand","Envelope","EnvelopeResult","EnvelopeResultForKnownInit","FRAME_DELIMITER","GLOBAL_FLAGS","HeadersOf","IDEMPOTENT_METHODS","LAYERS","LAYER_OF","LinkPageCall","Middleware","NoRequiredKeys","OperationArgs","OperationContext","OperationDescriptor","OperationMethodIdentity","OpsShape","PageOf","Paginated","PaginationSpec","ParamSpec","ParseAs","QueryStyle","QueryValue","RequestContext","RequestOptions","ResolvedCommand","ResponseHeaderSpec","Result","RetryConfig","RetryContext","RetryStrategy","SecuritySpec","SendCapabilities","ServerSentEvent","SseOptions","SseParseError","TRANSIENT_STATUS","ThrowMethod","TimeoutError","TokenProvider","abortError","acceptFor","buildUrl","callInputs","coerceResponseHeader","commandContract","constantCase","createClientCore","defaultRetryOn","encodeBase64","encodeReserved","execute","groupSlug","inputOf","invokedName","isConfigured","items","itemsByLink","kindFor","linkNext","linkPageCall","loadBody","mergeSetup","middlewareChain","namespaceArgs","normalizeCommands","oneLine","pageCall","pages","pagesByLink","paginateCapability","parse","parseInvocation","parseSseFrame","prepareRequest","queryStyles","readEnvelopeHeaders","readError","redactHeaders","renderComposedHelp","renderHelp","resolveAuth","resolvePointer","resolveToken","retryDelay","runCli","runSingle","runSources","send","shadowedCommandName","sleep","splitArgs","sse","stringHeaders","substitutePath","toFormData","toHeaderRecord"];var j=["client","OPERATIONS","Ops","OperationId","OperationPath","OperationTag","createClient","mergeSetup","ApiError","TimeoutError","configure","use","auth","defaultRetryOn","ClientConfig","RequestOptions","SseOptions","Middleware","OperationDescriptor","ServerSentEvent","Result","Envelope","EnvelopeResult","TokenProvider","__redoclySetup"],$=["z","http","HttpResponse","handlers","faker","queryOptions","useSWR","useSWRMutation","__Writable"],N=["AbortSignal","Array","ArrayBuffer","ArrayBufferView","AsyncGenerator","AsyncIterable","Blob","BodyInit","Boolean","DOMException","Date","Error","Extract","FormData","Headers","HeadersInit","JSON","Map","Math","NonNullable","Number","Object","Omit","Partial","Promise","ReadableStream","Record","RegExp","RegExpExecArray","Request","RequestInit","Response","Set","String","TextDecoder","TextEncoder","TypeError","Uint8Array","URL","URLSearchParams","btoa","clearTimeout","crypto","decodeURIComponent","document","encodeURIComponent","fetch","globalThis","setTimeout","undefined"],w;function Q(){return w===void 0&&(w=new Set([...j,...$,...N,...S])),w}var A={name:"@redocly/client-generator",version:"0.4.12",description:"Generate typed, zero-dependency TypeScript clients (fetch, auth, retries, middleware, SSE) from OpenAPI descriptions.",type:"module",types:"lib/index.d.ts",sideEffects:!1,exports:{".":{types:"./lib/index.d.ts",import:"./lib/index.js",default:"./lib/index.js"},"./generate":{types:"./lib/generate.d.ts",import:"./lib/generate.js",default:"./lib/generate.js"},"./printers/python":{types:"./lib/printers/python.d.ts",import:"./lib/printers/python.js",default:"./lib/printers/python.js"},"./printers/go":{types:"./lib/printers/go.d.ts",import:"./lib/printers/go.js",default:"./lib/printers/go.js"},"./printers/php":{types:"./lib/printers/php.d.ts",import:"./lib/printers/php.js",default:"./lib/printers/php.js"},"./printers/typescript":{types:"./lib/printers/typescript.d.ts",import:"./lib/printers/typescript.js",default:"./lib/printers/typescript.js"},"./printers":{types:"./lib/printers/index.d.ts",import:"./lib/printers/index.js",default:"./lib/printers/index.js"},"./contracts/typescript":{types:"./lib/contracts/typescript.d.ts",import:"./lib/contracts/typescript.js",default:"./lib/contracts/typescript.js"},"./runtime-sources":{types:"./lib/runtime-sources.d.ts",import:"./lib/runtime-sources.js",default:"./lib/runtime-sources.js"},"./package.json":"./package.json"},engines:{node:">=22.12.0 || >=20.19.0 <21.0.0",npm:">=10"},engineStrict:!0,publishConfig:{access:"public"},scripts:{"examples:regen":"node scripts/regenerate-examples.mjs",prepare:"node scripts/generate-runtime-sources.mjs && node scripts/generate-eject-assets.mjs","typecheck:examples":"node scripts/typecheck-examples.mjs"},license:"MIT",repository:{type:"git",url:"git+https://github.com/Redocly/redocly-cli.git"},homepage:"https://github.com/Redocly/redocly-cli",keywords:["OpenAPI","Swagger","TypeScript","client","generator","codegen","fetch"],contributors:["Roman Marshevskyi <roman.marshevskyy@redocly.com> (https://redocly.com/)"],dependencies:{"@redocly/openapi-core":"2.53.3"},peerDependencies:{typescript:">=5.5.0"},peerDependenciesMeta:{typescript:{optional:!0}},devDependencies:{typescript:"6.0.2"},files:["lib","eject-assets"]};var ee=A.version;function T(e){let n=/^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(e.trim());return n===null?void 0:[Number(n[1]),Number(n[2]),Number(n[3])]}function v(e,n){return e[0]-n[0]||e[1]-n[1]||e[2]-n[2]}function ne(e,n){let s=/^[\^~]|^>=/.exec(n.trim())?.[0]??"",r=T(n.trim().slice(s.length)),a=T(e);if(!(r===void 0||a===void 0))return v(a,r)<0?!1:s===">="?!0:s===""?v(a,r)===0:s==="~"?a[0]===r[0]&&a[1]===r[1]:r[0]!==0?a[0]===r[0]:r[1]!==0?a[0]===0&&a[1]===r[1]:v(a,r)===0}export{R as a,H as b,G as c,W as d,j as e,Q as f,ee as g,ne as h};
5400
+ }`},S=["ApiError","ApiErrorLike","AuthCredentials","BodyMethod","Capabilities","CliAuthScheme","CliCommand","CliFlag","CliGlobals","CliInvocation","CliWiring","Client","ClientConfig","ClientCore","CommandContext","CommandSource","CustomCommand","Envelope","EnvelopeResult","EnvelopeResultForKnownInit","FRAME_DELIMITER","GLOBAL_FLAGS","HeadersOf","IDEMPOTENT_METHODS","LAYERS","LAYER_OF","LinkPageCall","Middleware","NoRequiredKeys","OperationArgs","OperationContext","OperationDescriptor","OperationMethodIdentity","OpsShape","PageOf","Paginated","PaginationSpec","ParamSpec","ParseAs","QueryStyle","QueryValue","RequestContext","RequestOptions","ResolvedCommand","ResponseHeaderSpec","Result","RetryConfig","RetryContext","RetryStrategy","SecuritySpec","SendCapabilities","ServerSentEvent","SseOptions","SseParseError","TRANSIENT_STATUS","ThrowMethod","TimeoutError","TokenProvider","abortError","acceptFor","buildUrl","callInputs","coerceResponseHeader","commandContract","constantCase","createClientCore","defaultRetryOn","encodeBase64","encodeReserved","execute","groupSlug","inputOf","invokedName","isConfigured","items","itemsByLink","kindFor","linkNext","linkPageCall","loadBody","mergeSetup","middlewareChain","namespaceArgs","normalizeCommands","oneLine","pageCall","pages","pagesByLink","paginateCapability","parse","parseInvocation","parseSseFrame","prepareRequest","queryStyles","readEnvelopeHeaders","readError","redactHeaders","renderComposedHelp","renderHelp","resolveAuth","resolvePointer","resolveToken","retryDelay","runCli","runSingle","runSources","send","shadowedCommandName","sleep","splitArgs","sse","stringHeaders","substitutePath","toFormData","toHeaderRecord"];var j=["client","OPERATIONS","Ops","OperationId","OperationPath","OperationTag","createClient","mergeSetup","ApiError","TimeoutError","configure","use","auth","defaultRetryOn","ClientConfig","RequestOptions","SseOptions","Middleware","OperationDescriptor","ServerSentEvent","Result","Envelope","EnvelopeResult","TokenProvider","__redoclySetup"],$=["z","http","HttpResponse","handlers","faker","queryOptions","useSWR","useSWRMutation","__Writable"],N=["AbortSignal","Array","ArrayBuffer","ArrayBufferView","AsyncGenerator","AsyncIterable","Blob","BodyInit","Boolean","DOMException","Date","Error","Extract","FormData","Headers","HeadersInit","JSON","Map","Math","NonNullable","Number","Object","Omit","Partial","Promise","ReadableStream","Record","RegExp","RegExpExecArray","Request","RequestInit","Response","Set","String","TextDecoder","TextEncoder","TypeError","Uint8Array","URL","URLSearchParams","btoa","clearTimeout","crypto","decodeURIComponent","document","encodeURIComponent","fetch","globalThis","setTimeout","undefined"],w;function Q(){return w===void 0&&(w=new Set([...j,...$,...N,...S])),w}var A={name:"@redocly/client-generator",version:"0.4.13",description:"Generate typed, zero-dependency TypeScript clients (fetch, auth, retries, middleware, SSE) from OpenAPI descriptions.",type:"module",types:"lib/index.d.ts",sideEffects:!1,exports:{".":{types:"./lib/index.d.ts",import:"./lib/index.js",default:"./lib/index.js"},"./generate":{types:"./lib/generate.d.ts",import:"./lib/generate.js",default:"./lib/generate.js"},"./printers/python":{types:"./lib/printers/python.d.ts",import:"./lib/printers/python.js",default:"./lib/printers/python.js"},"./printers/go":{types:"./lib/printers/go.d.ts",import:"./lib/printers/go.js",default:"./lib/printers/go.js"},"./printers/php":{types:"./lib/printers/php.d.ts",import:"./lib/printers/php.js",default:"./lib/printers/php.js"},"./printers/typescript":{types:"./lib/printers/typescript.d.ts",import:"./lib/printers/typescript.js",default:"./lib/printers/typescript.js"},"./printers":{types:"./lib/printers/index.d.ts",import:"./lib/printers/index.js",default:"./lib/printers/index.js"},"./contracts/typescript":{types:"./lib/contracts/typescript.d.ts",import:"./lib/contracts/typescript.js",default:"./lib/contracts/typescript.js"},"./runtime-sources":{types:"./lib/runtime-sources.d.ts",import:"./lib/runtime-sources.js",default:"./lib/runtime-sources.js"},"./package.json":"./package.json"},engines:{node:">=22.12.0 || >=20.19.0 <21.0.0",npm:">=10"},engineStrict:!0,publishConfig:{access:"public"},scripts:{"examples:regen":"node scripts/regenerate-examples.mjs",prepare:"node scripts/generate-runtime-sources.mjs && node scripts/generate-eject-assets.mjs","typecheck:examples":"node scripts/typecheck-examples.mjs"},license:"MIT",repository:{type:"git",url:"git+https://github.com/Redocly/redocly-cli.git"},homepage:"https://github.com/Redocly/redocly-cli",keywords:["OpenAPI","Swagger","TypeScript","client","generator","codegen","fetch"],contributors:["Roman Marshevskyi <roman.marshevskyy@redocly.com> (https://redocly.com/)"],dependencies:{"@redocly/openapi-core":"2.54.0"},peerDependencies:{typescript:">=5.5.0"},peerDependenciesMeta:{typescript:{optional:!0}},devDependencies:{typescript:"6.0.2"},files:["lib","eject-assets"]};var ee=A.version;function T(e){let n=/^(\d+)\.(\d+)\.(\d+)(?:[-+].*)?$/.exec(e.trim());return n===null?void 0:[Number(n[1]),Number(n[2]),Number(n[3])]}function v(e,n){return e[0]-n[0]||e[1]-n[1]||e[2]-n[2]}function ne(e,n){let s=/^[\^~]|^>=/.exec(n.trim())?.[0]??"",r=T(n.trim().slice(s.length)),a=T(e);if(!(r===void 0||a===void 0))return v(a,r)<0?!1:s===">="?!0:s===""?v(a,r)===0:s==="~"?a[0]===r[0]&&a[1]===r[1]:r[0]!==0?a[0]===r[0]:r[1]!==0?a[0]===0&&a[1]===r[1]:v(a,r)===0}export{R as a,H as b,G as c,W as d,j as e,Q as f,ee as g,ne as h};
@@ -0,0 +1,7 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ import { fileURLToPath as __fileURLToPath } from 'node:url';
3
+ import { dirname as __pathDirname } from 'node:path';
4
+ const require = __createRequire(import.meta.url);
5
+ var __filename = __fileURLToPath(import.meta.url);
6
+ var __dirname = __pathDirname(__filename);
7
+ import{a,b,c,d}from"./AHGQ4BNI.js";import"./AM6FT7EB.js";import"./ALXOGCUM.js";import"./H4XURXR7.js";import"./BXI4SF2U.js";import"./RW2ESAIF.js";import"./NEWT5A6S.js";import"./RFWIIJFG.js";export{a as DeploymentError,b as handlePushStatus,c as handleReuniteError,d as printSunsetWarning};