@redocly/cli 2.49.0 → 2.50.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 (107) hide show
  1. package/THIRD_PARTY_NOTICES +1 -1
  2. package/lib/chunks/{C5TR4MMN.js → 2MDLP4KJ.js} +1 -1
  3. package/lib/chunks/{U2H2LXZE.js → 4G6EYFND.js} +1 -1
  4. package/lib/chunks/{5SAFIITS.js → 5NWHDZIY.js} +1 -1
  5. package/lib/chunks/{FUMCRNTK.js → 5WFODJ7E.js} +1 -1
  6. package/lib/chunks/{5JIGUBC3.js → 6I34CQBG.js} +1 -1
  7. package/lib/chunks/{ZOUQBK53.js → 6SPYPUI6.js} +1 -1
  8. package/lib/chunks/{ZXKOHMC6.js → AB3HPOHP.js} +1 -1
  9. package/lib/chunks/AYCCHB2H.js +184 -0
  10. package/lib/chunks/{RXOEH2LN.js → BPXJZY3G.js} +1 -1
  11. package/lib/chunks/{4I2OVMBJ.js → BQM4LA5W.js} +1 -1
  12. package/lib/chunks/{6KCIFTIG.js → BTDYBYOM.js} +1 -1
  13. package/lib/chunks/{TSRK76GA.js → C7GGV6MA.js} +1 -1
  14. package/lib/chunks/{GNMJA2V2.js → CGWDSTQU.js} +1 -1
  15. package/lib/chunks/{2U54VUOE.js → DV7Y25N6.js} +1 -1
  16. package/lib/chunks/{O4R6BSAS.js → EC24G6EZ.js} +1 -1
  17. package/lib/chunks/{YOJGIGE3.js → EZ3GAVTS.js} +1 -1
  18. package/lib/chunks/{KHEMMNFU.js → FLT7L6M6.js} +3 -3
  19. package/lib/chunks/{R4XFBOJU.js → FNNGQ3LB.js} +1 -1
  20. package/lib/chunks/{74WJ7S7J.js → GAYNNACL.js} +5 -5
  21. package/lib/chunks/{4JDAOKRJ.js → GINMHJWC.js} +1 -1
  22. package/lib/chunks/{M6KLAAY4.js → GQLQMPIU.js} +1 -1
  23. package/lib/chunks/{BT3ELZVX.js → HPMV62YM.js} +1 -1
  24. package/lib/chunks/{OKITK6EF.js → JIYXF2LJ.js} +1 -1
  25. package/lib/chunks/{NUNOXB7Z.js → JQNS7VUU.js} +4 -4
  26. package/lib/chunks/{MHITBEGC.js → KM7PMMIJ.js} +1 -1
  27. package/lib/chunks/{NTPLYWAB.js → L3LA7UTJ.js} +1 -1
  28. package/lib/chunks/{OUCZOBEX.js → M5NHHJLI.js} +1 -1
  29. package/lib/chunks/{DCN3GSUA.js → OSHXPRZS.js} +1 -1
  30. package/lib/chunks/{QZH7EL26.js → OUY7OMOM.js} +1 -1
  31. package/lib/chunks/{7R5PBTLG.js → OWY3GI2B.js} +1 -1
  32. package/lib/chunks/{V2LJ4UGM.js → OYK34CLF.js} +1 -1
  33. package/lib/chunks/{HL5FOKC4.js → QBLBI6YV.js} +1 -1
  34. package/lib/chunks/{KK77ANZH.js → QE2DAZZS.js} +1 -1
  35. package/lib/chunks/{CCR5RYCX.js → QFDZWJOM.js} +1 -1
  36. package/lib/chunks/{GRJG3TOI.js → RT7XNB4J.js} +1 -1
  37. package/lib/chunks/{WPGKH5NI.js → TOMUPTSM.js} +1 -1
  38. package/lib/chunks/{VBPP2WUF.js → UTMTQAX7.js} +1 -1
  39. package/lib/chunks/{6VSHPQXO.js → UVVDFDXF.js} +1 -1
  40. package/lib/chunks/{ZMCRMR2V.js → VFTQZ2K5.js} +2 -2
  41. package/lib/chunks/{TLQZAJQU.js → W4SAP7O3.js} +3 -3
  42. package/lib/chunks/{NYLAOZPO.js → WSWWRWOX.js} +1 -1
  43. package/lib/chunks/{JBNPGEIJ.js → WUWXNE33.js} +1 -1
  44. package/lib/chunks/{YI34NB7D.js → WV47KPC2.js} +1 -1
  45. package/lib/chunks/{UMQN5HTL.js → WYBHMXUT.js} +1 -1
  46. package/lib/chunks/{E5I67ZCZ.js → X7EILS2N.js} +1 -1
  47. package/lib/chunks/{T5EPIBMA.js → XX6MHUWG.js} +1 -1
  48. package/lib/chunks/{YXXYE4G2.js → Y3KBABBM.js} +1 -1
  49. package/lib/chunks/{YP5GHFYE.js → YAOO5YIR.js} +1 -1
  50. package/lib/chunks/{KK2STV73.js → YHN6XBDC.js} +1 -1
  51. package/lib/chunks/{WXVC3KOI.js → YMZURCC6.js} +1 -1
  52. package/lib/chunks/{HA22GUKQ.js → Z46FHG6E.js} +1 -1
  53. package/lib/eject-assets/generators/cli/docs.ts +1 -1
  54. package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
  55. package/lib/eject-assets/generators/cli/index.ts +2 -2
  56. package/lib/eject-assets/generators/cli/render.ts +1 -1
  57. package/lib/eject-assets/generators/go/client.ts +1 -1
  58. package/lib/eject-assets/generators/go/descriptor.ts +1 -1
  59. package/lib/eject-assets/generators/go/index.ts +2 -2
  60. package/lib/eject-assets/generators/go/models.ts +1 -1
  61. package/lib/eject-assets/generators/go/naming.ts +1 -1
  62. package/lib/eject-assets/generators/go/operations.ts +1 -1
  63. package/lib/eject-assets/generators/go/pagination.ts +1 -1
  64. package/lib/eject-assets/generators/go/types.ts +1 -1
  65. package/lib/eject-assets/generators/mock/faker.ts +1 -1
  66. package/lib/eject-assets/generators/mock/index.ts +2 -2
  67. package/lib/eject-assets/generators/mock/render.ts +1 -1
  68. package/lib/eject-assets/generators/mock/sample.ts +1 -1
  69. package/lib/eject-assets/generators/mock/values.ts +1 -1
  70. package/lib/eject-assets/generators/php/client.ts +1 -1
  71. package/lib/eject-assets/generators/php/descriptor.ts +1 -1
  72. package/lib/eject-assets/generators/php/index.ts +2 -2
  73. package/lib/eject-assets/generators/php/models.ts +1 -1
  74. package/lib/eject-assets/generators/php/naming.ts +1 -1
  75. package/lib/eject-assets/generators/php/operations.ts +1 -1
  76. package/lib/eject-assets/generators/php/pagination.ts +1 -1
  77. package/lib/eject-assets/generators/php/types.ts +1 -1
  78. package/lib/eject-assets/generators/python/client.ts +1 -1
  79. package/lib/eject-assets/generators/python/descriptor.ts +1 -1
  80. package/lib/eject-assets/generators/python/index.ts +2 -2
  81. package/lib/eject-assets/generators/python/models.ts +1 -1
  82. package/lib/eject-assets/generators/python/naming.ts +1 -1
  83. package/lib/eject-assets/generators/python/operations.ts +1 -1
  84. package/lib/eject-assets/generators/python/pagination.ts +1 -1
  85. package/lib/eject-assets/generators/python/types.ts +1 -1
  86. package/lib/eject-assets/generators/swr/index.ts +2 -2
  87. package/lib/eject-assets/generators/swr/render.ts +1 -1
  88. package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
  89. package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
  90. package/lib/eject-assets/generators/transformers/index.ts +2 -2
  91. package/lib/eject-assets/generators/transformers/render.ts +1 -1
  92. package/lib/eject-assets/generators/typescript/banner.ts +1 -1
  93. package/lib/eject-assets/generators/typescript/client.ts +1 -1
  94. package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
  95. package/lib/eject-assets/generators/typescript/index.ts +2 -2
  96. package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
  97. package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
  98. package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
  99. package/lib/eject-assets/generators/typescript/operations.ts +1 -1
  100. package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
  101. package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
  102. package/lib/eject-assets/generators/typescript/types.ts +1 -1
  103. package/lib/eject-assets/generators/zod/index.ts +2 -2
  104. package/lib/eject-assets/generators/zod/schemas.ts +1 -1
  105. package/lib/index.js +14 -14
  106. package/package.json +1 -1
  107. package/lib/chunks/HJ36YGCI.js +0 -184
@@ -0,0 +1,184 @@
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 rt,b as Go,c as MR}from"./NEWT5A6S.js";import{a as cu,c as v,d as jR,e as Ir}from"./RFWIIJFG.js";var id=v((nd,od)=>{(function(e,t){typeof cu=="function"&&typeof nd=="object"&&typeof od=="object"?od.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(nd,function(){var e=[],t=[],r={},n={},o={};function i(f){return typeof f=="string"?new RegExp("^"+f+"$","i"):f}function s(f,m){return f===m?m:f===f.toLowerCase()?m.toLowerCase():f===f.toUpperCase()?m.toUpperCase():f[0]===f[0].toUpperCase()?m.charAt(0).toUpperCase()+m.substr(1).toLowerCase():m.toLowerCase()}function a(f,m){return f.replace(/\$(\d{1,2})/g,function(h,y){return m[y]||""})}function c(f,m){return f.replace(m[0],function(h,y){var g=a(m[1],arguments);return s(h===""?f[y-1]:h,g)})}function l(f,m,h){if(!f.length||r.hasOwnProperty(f))return m;for(var y=h.length;y--;){var g=h[y];if(g[0].test(m))return c(m,g)}return m}function p(f,m,h){return function(y){var g=y.toLowerCase();return m.hasOwnProperty(g)?s(y,g):f.hasOwnProperty(g)?s(y,f[g]):l(g,y,h)}}function u(f,m,h,y){return function(g){var w=g.toLowerCase();return m.hasOwnProperty(w)?!0:f.hasOwnProperty(w)?!1:l(w,w,h)===w}}function d(f,m,h){var y=m===1?d.singular(f):d.plural(f);return(h?m+" ":"")+y}return d.plural=p(o,n,e),d.isPlural=u(o,n,e),d.singular=p(n,o,t),d.isSingular=u(n,o,t),d.addPluralRule=function(f,m){e.push([i(f),m])},d.addSingularRule=function(f,m){t.push([i(f),m])},d.addUncountableRule=function(f){if(typeof f=="string"){r[f.toLowerCase()]=!0;return}d.addPluralRule(f,"$0"),d.addSingularRule(f,"$0")},d.addIrregularRule=function(f,m){m=m.toLowerCase(),f=f.toLowerCase(),o[f]=m,n[m]=f},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(f){return d.addIrregularRule(f[0],f[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(f){return d.addPluralRule(f[0],f[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(f){return d.addSingularRule(f[0],f[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(d.addUncountableRule),d})});var Ts=v((eX,Jb)=>{"use strict";var Gb="[^\\\\/]",aI="(?=.)",Wb="[^/]",sd="(?:\\/|$)",Yb="(?:^|\\/)",ad=`\\.{1,2}${sd}`,cI="(?!\\.)",pI=`(?!${Yb}${ad})`,lI=`(?!\\.{0,1}${sd})`,uI=`(?!${ad})`,dI="[^.\\/]",fI=`${Wb}*?`,mI="/",Qb={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:aI,QMARK:Wb,END_ANCHOR:sd,DOTS_SLASH:ad,NO_DOT:cI,NO_DOTS:pI,NO_DOT_SLASH:lI,NO_DOTS_SLASH:uI,QMARK_NO_DOT:dI,STAR:fI,START_ANCHOR:Yb,SEP:mI},hI={...Qb,SLASH_LITERAL:"[\\\\/]",QMARK:Gb,STAR:`${Gb}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},yI={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Jb.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:yI,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?hI:Qb}}});var Rs=v(kt=>{"use strict";var{REGEX_BACKSLASH:gI,REGEX_REMOVE_BACKSLASH:bI,REGEX_SPECIAL_CHARS:vI,REGEX_SPECIAL_CHARS_GLOBAL:xI}=Ts();kt.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);kt.hasRegexChars=e=>vI.test(e);kt.isRegexChar=e=>e.length===1&&kt.hasRegexChars(e);kt.escapeRegex=e=>e.replace(xI,"\\$1");kt.toPosixSlashes=e=>e.replace(gI,"/");kt.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};kt.removeBackslashes=e=>e.replace(bI,t=>t==="\\"?"":t);kt.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?kt.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};kt.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};kt.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};kt.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var iv=v((rX,ov)=>{"use strict";var Xb=Rs(),{CHAR_ASTERISK:cd,CHAR_AT:SI,CHAR_BACKWARD_SLASH:Os,CHAR_COMMA:wI,CHAR_DOT:pd,CHAR_EXCLAMATION_MARK:ld,CHAR_FORWARD_SLASH:nv,CHAR_LEFT_CURLY_BRACE:ud,CHAR_LEFT_PARENTHESES:dd,CHAR_LEFT_SQUARE_BRACKET:_I,CHAR_PLUS:PI,CHAR_QUESTION_MARK:Zb,CHAR_RIGHT_CURLY_BRACE:EI,CHAR_RIGHT_PARENTHESES:ev,CHAR_RIGHT_SQUARE_BRACKET:$I}=Ts(),tv=e=>e===nv||e===Os,rv=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},AI=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],c=e,l=-1,p=0,u=0,d=!1,f=!1,m=!1,h=!1,y=!1,g=!1,w=!1,b=!1,S=!1,x=!1,P=0,T,E,$={value:"",depth:0,isGlob:!1},_=()=>l>=n,G=()=>c.charCodeAt(l+1),F=()=>(T=E,c.charCodeAt(++l));for(;l<n;){E=F();let Se;if(E===Os){w=$.backslashes=!0,E=F(),E===ud&&(g=!0);continue}if(g===!0||E===ud){for(P++;_()!==!0&&(E=F());){if(E===Os){w=$.backslashes=!0,F();continue}if(E===ud){P++;continue}if(g!==!0&&E===pd&&(E=F())===pd){if(d=$.isBrace=!0,m=$.isGlob=!0,x=!0,o===!0)continue;break}if(g!==!0&&E===wI){if(d=$.isBrace=!0,m=$.isGlob=!0,x=!0,o===!0)continue;break}if(E===EI&&(P--,P===0)){g=!1,d=$.isBrace=!0,x=!0;break}}if(o===!0)continue;break}if(E===nv){if(i.push(l),s.push($),$={value:"",depth:0,isGlob:!1},x===!0)continue;if(T===pd&&l===p+1){p+=2;continue}u=l+1;continue}if(r.noext!==!0&&(E===PI||E===SI||E===cd||E===Zb||E===ld)===!0&&G()===dd){if(m=$.isGlob=!0,h=$.isExtglob=!0,x=!0,E===ld&&l===p&&(S=!0),o===!0){for(;_()!==!0&&(E=F());){if(E===Os){w=$.backslashes=!0,E=F();continue}if(E===ev){m=$.isGlob=!0,x=!0;break}}continue}break}if(E===cd){if(T===cd&&(y=$.isGlobstar=!0),m=$.isGlob=!0,x=!0,o===!0)continue;break}if(E===Zb){if(m=$.isGlob=!0,x=!0,o===!0)continue;break}if(E===_I){for(;_()!==!0&&(Se=F());){if(Se===Os){w=$.backslashes=!0,F();continue}if(Se===$I){f=$.isBracket=!0,m=$.isGlob=!0,x=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&E===ld&&l===p){b=$.negated=!0,p++;continue}if(r.noparen!==!0&&E===dd){if(m=$.isGlob=!0,o===!0){for(;_()!==!0&&(E=F());){if(E===dd){w=$.backslashes=!0,E=F();continue}if(E===ev){x=!0;break}}continue}break}if(m===!0){if(x=!0,o===!0)continue;break}}r.noext===!0&&(h=!1,m=!1);let pe=c,R="",O="";p>0&&(R=c.slice(0,p),c=c.slice(p),u-=p),pe&&m===!0&&u>0?(pe=c.slice(0,u),O=c.slice(u)):m===!0?(pe="",O=c):pe=c,pe&&pe!==""&&pe!=="/"&&pe!==c&&tv(pe.charCodeAt(pe.length-1))&&(pe=pe.slice(0,-1)),r.unescape===!0&&(O&&(O=Xb.removeBackslashes(O)),pe&&w===!0&&(pe=Xb.removeBackslashes(pe)));let dt={prefix:R,input:e,start:p,base:pe,glob:O,isBrace:d,isBracket:f,isGlob:m,isExtglob:h,isGlobstar:y,negated:b,negatedExtglob:S};if(r.tokens===!0&&(dt.maxDepth=0,tv(E)||s.push($),dt.tokens=s),r.parts===!0||r.tokens===!0){let Se;for(let W=0;W<i.length;W++){let De=Se?Se+1:p,$e=i[W],fe=e.slice(De,$e);r.tokens&&(W===0&&p!==0?(s[W].isPrefix=!0,s[W].value=R):s[W].value=fe,rv(s[W]),dt.maxDepth+=s[W].depth),(W!==0||fe!=="")&&a.push(fe),Se=$e}if(Se&&Se+1<e.length){let W=e.slice(Se+1);a.push(W),r.tokens&&(s[s.length-1].value=W,rv(s[s.length-1]),dt.maxDepth+=s[s.length-1].depth)}dt.slashes=i,dt.parts=a}return dt};ov.exports=AI});var lv=v((nX,pv)=>{"use strict";var ks=Ts(),Ht=Rs(),{MAX_LENGTH:mc,POSIX_REGEX_SOURCE:TI,REGEX_NON_SPECIAL_CHARS:RI,REGEX_SPECIAL_CHARS_BACKREF:OI,REPLACEMENTS:sv}=ks,kI=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(o=>Ht.escapeRegex(o)).join("..")}return r},ni=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,av=e=>{let t=[],r=0,n=0,o=0,i="",s=!1;for(let a of e){if(s===!0){i+=a,s=!1;continue}if(a==="\\"){i+=a,s=!0;continue}if(a==='"'){o=o===1?0:1,i+=a;continue}if(o===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){t.push(i),i="";continue}}}i+=a}return t.push(i),t},II=e=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},cv=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(II(t))return t.replace(/\\(.)/g,"$1")},CI=e=>{let t=e.map(cv).filter(Boolean);for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++){let o=t[r],i=t[n],s=o[0];if(!(!s||o!==s.repeat(o.length)||i!==s.repeat(i.length))&&(o===i||o.startsWith(i)||i.startsWith(o)))return!0}return!1},fd=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,n=0,o=0,i=!1;for(let s=1;s<e.length;s++){let a=e[s];if(i===!0){i=!1;continue}if(a==="\\"){i=!0;continue}if(a==='"'){o=o===1?0:1;continue}if(o!==1){if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(!(r>0)){if(a==="("){n++;continue}if(a===")"&&(n--,n===0))return t===!0&&s!==e.length-1?void 0:{type:e[0],body:e.slice(2,s),end:s}}}}},qI=e=>{let t=0,r=[];for(;t<e.length;){let o=fd(e.slice(t),!1);if(!o||o.type!=="*")return;let i=av(o.body).map(a=>a.trim());if(i.length!==1)return;let s=cv(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?Ht.escapeRegex(r[0]):`[${r.map(o=>Ht.escapeRegex(o)).join("")}]`}*`},NI=e=>{let t=0,r=e.trim(),n=fd(r);for(;n;)t++,r=n.body.trim(),n=fd(r);return t},jI=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:ks.DEFAULT_MAX_EXTGLOB_RECURSION,n=av(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||CI(n)))return{risky:!0};for(let o of n){let i=qI(o);if(i)return{risky:!0,safeOutput:i};if(NI(o)>r)return{risky:!0}}return{risky:!1}},md=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=sv[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(mc,r.maxLength):mc,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},s=[i],a=r.capture?"":"?:",c=ks.globChars(r.windows),l=ks.extglobChars(c),{DOT_LITERAL:p,PLUS_LITERAL:u,SLASH_LITERAL:d,ONE_CHAR:f,DOTS_SLASH:m,NO_DOT:h,NO_DOT_SLASH:y,NO_DOTS_SLASH:g,QMARK:w,QMARK_NO_DOT:b,STAR:S,START_ANCHOR:x}=c,P=k=>`(${a}(?:(?!${x}${k.dot?m:p}).)*?)`,T=r.dot?"":h,E=r.dot?w:b,$=r.bash===!0?P(r):S;r.capture&&($=`(${$})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=Ht.removePrefix(e,_),o=e.length;let G=[],F=[],pe=[],R=i,O,dt=()=>_.index===o-1,Se=_.peek=(k=1)=>e[_.index+k],W=_.advance=()=>e[++_.index]||"",De=()=>e.slice(_.index+1),$e=(k="",Z=0)=>{_.consumed+=k,_.index+=Z},fe=k=>{_.output+=k.output!=null?k.output:k.value,$e(k.value)},Ft=()=>{let k=1;for(;Se()==="!"&&(Se(2)!=="("||Se(3)==="?");)W(),_.start++,k++;return k%2===0?!1:(_.negated=!0,_.start++,!0)},Je=k=>{_[k]++,pe.push(k)},Ge=k=>{_[k]--,pe.pop()},V=k=>{if(R.type==="globstar"){let Z=_.braces>0&&(k.type==="comma"||k.type==="brace"),I=k.extglob===!0||G.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!Z&&!I&&(_.output=_.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=$,_.output+=R.output)}if(G.length&&k.type!=="paren"&&(G[G.length-1].inner+=k.value),(k.value||k.output)&&fe(k),R&&R.type==="text"&&k.type==="text"){R.output=(R.output||R.value)+k.value,R.value+=k.value;return}k.prev=R,s.push(k),R=k},Yt=(k,Z)=>{let I={...l[Z],conditions:1,inner:""};I.prev=R,I.parens=_.parens,I.output=_.output,I.startIndex=_.index,I.tokensIndex=s.length;let N=(r.capture?"(":"")+I.open;Je("parens"),V({type:k,value:Z,output:_.output?"":f}),V({type:"paren",extglob:!0,value:W(),output:N}),G.push(I)},M=k=>{let Z=e.slice(k.startIndex,_.index+1),I=e.slice(k.startIndex+2,_.index),N=jI(I,r);if((k.type==="plus"||k.type==="star")&&N.risky){let we=N.safeOutput?(k.output?"":f)+(r.capture?`(${N.safeOutput})`:N.safeOutput):void 0,Or=s[k.tokensIndex];Or.type="text",Or.value=Z,Or.output=we||Ht.escapeRegex(Z);for(let kr=k.tokensIndex+1;kr<s.length;kr++)s[kr].value="",s[kr].output="",delete s[kr].suffix;_.output=k.output+Or.output,_.backtrack=!0,V({type:"paren",extglob:!0,value:O,output:""}),Ge("parens");return}let me=k.close+(r.capture?")":""),Le;if(k.type==="negate"){let we=$;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(we=P(r)),(we!==$||dt()||/^\)+$/.test(De()))&&(me=k.close=`)$))${we}`),k.inner.includes("*")&&(Le=De())&&/^\.[^\\/.]+$/.test(Le)){let Or=md(Le,{...t,fastpaths:!1}).output;me=k.close=`)${Or})${we})`}k.prev.type==="bos"&&(_.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:O,output:me}),Ge("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,Z=e.replace(OI,(I,N,me,Le,we,Or)=>Le==="\\"?(k=!0,I):Le==="?"?N?N+Le+(we?w.repeat(we.length):""):Or===0?E+(we?w.repeat(we.length):""):w.repeat(me.length):Le==="."?p.repeat(me.length):Le==="*"?N?N+Le+(we?$:""):$:N?I:`\\${I}`);return k===!0&&(r.unescape===!0?Z=Z.replace(/\\/g,""):Z=Z.replace(/\\+/g,I=>I.length%2===0?"\\\\":I?"\\":"")),Z===e&&r.contains===!0?(_.output=e,_):(_.output=Ht.wrapOutput(Z,_,t),_)}for(;!dt();){if(O=W(),O==="\0")continue;if(O==="\\"){let I=Se();if(I==="/"&&r.bash!==!0||I==="."||I===";")continue;if(!I){O+="\\",V({type:"text",value:O});continue}let N=/^\\+/.exec(De()),me=0;if(N&&N[0].length>2&&(me=N[0].length,_.index+=me,me%2!==0&&(O+="\\")),r.unescape===!0?O=W():O+=W(),_.brackets===0){V({type:"text",value:O});continue}}if(_.brackets>0&&(O!=="]"||R.value==="["||R.value==="[^")){if(r.posix!==!1&&O===":"){let I=R.value.slice(1);if(I.includes("[")&&(R.posix=!0,I.includes(":"))){let N=R.value.lastIndexOf("["),me=R.value.slice(0,N),Le=R.value.slice(N+2),we=TI[Le];if(we){R.value=me+we,_.backtrack=!0,W(),!i.output&&s.indexOf(R)===1&&(i.output=f);continue}}}(O==="["&&Se()!==":"||O==="-"&&Se()==="]")&&(O=`\\${O}`),O==="]"&&(R.value==="["||R.value==="[^")&&(O=`\\${O}`),r.posix===!0&&O==="!"&&R.value==="["&&(O="^"),R.value+=O,fe({value:O});continue}if(_.quotes===1&&O!=='"'){O=Ht.escapeRegex(O),R.value+=O,fe({value:O});continue}if(O==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:O});continue}if(O==="("){Je("parens"),V({type:"paren",value:O});continue}if(O===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ni("opening","("));let I=G[G.length-1];if(I&&_.parens===I.parens+1){M(G.pop());continue}V({type:"paren",value:O,output:_.parens?")":"\\)"}),Ge("parens");continue}if(O==="["){if(r.nobracket===!0||!De().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ni("closing","]"));O=`\\${O}`}else Je("brackets");V({type:"bracket",value:O});continue}if(O==="]"){if(r.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){V({type:"text",value:O,output:`\\${O}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ni("opening","["));V({type:"text",value:O,output:`\\${O}`});continue}Ge("brackets");let I=R.value.slice(1);if(R.posix!==!0&&I[0]==="^"&&!I.includes("/")&&(O=`/${O}`),R.value+=O,fe({value:O}),r.literalBrackets===!1||Ht.hasRegexChars(I))continue;let N=Ht.escapeRegex(R.value);if(_.output=_.output.slice(0,-R.value.length),r.literalBrackets===!0){_.output+=N,R.value=N;continue}R.value=`(${a}${N}|${R.value})`,_.output+=R.value;continue}if(O==="{"&&r.nobrace!==!0){Je("braces");let I={type:"brace",value:O,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};F.push(I),V(I);continue}if(O==="}"){let I=F[F.length-1];if(r.nobrace===!0||!I){V({type:"text",value:O,output:O});continue}let N=")";if(I.dots===!0){let me=s.slice(),Le=[];for(let we=me.length-1;we>=0&&(s.pop(),me[we].type!=="brace");we--)me[we].type!=="dots"&&Le.unshift(me[we].value);N=kI(Le,r),_.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let me=_.output.slice(0,I.outputIndex),Le=_.tokens.slice(I.tokensIndex);I.value=I.output="\\{",O=N="\\}",_.output=me;for(let we of Le)_.output+=we.output||we.value}V({type:"brace",value:O,output:N}),Ge("braces"),F.pop();continue}if(O==="|"){G.length>0&&G[G.length-1].conditions++,V({type:"text",value:O});continue}if(O===","){let I=O,N=F[F.length-1];N&&pe[pe.length-1]==="braces"&&(N.comma=!0,I="|"),V({type:"comma",value:O,output:I});continue}if(O==="/"){if(R.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",s.pop(),R=i;continue}V({type:"slash",value:O,output:d});continue}if(O==="."){if(_.braces>0&&R.type==="dot"){R.value==="."&&(R.output=p);let I=F[F.length-1];R.type="dots",R.output+=O,R.value+=O,I.dots=!0;continue}if(_.braces+_.parens===0&&R.type!=="bos"&&R.type!=="slash"){V({type:"text",value:O,output:p});continue}V({type:"dot",value:O,output:p});continue}if(O==="?"){if(!(R&&R.value==="(")&&r.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){Yt("qmark",O);continue}if(R&&R.type==="paren"){let N=Se(),me=O;(R.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test(De()))&&(me=`\\${O}`),V({type:"text",value:O,output:me});continue}if(r.dot!==!0&&(R.type==="slash"||R.type==="bos")){V({type:"qmark",value:O,output:b});continue}V({type:"qmark",value:O,output:w});continue}if(O==="!"){if(r.noextglob!==!0&&Se()==="("&&(Se(2)!=="?"||!/[!=<:]/.test(Se(3)))){Yt("negate",O);continue}if(r.nonegate!==!0&&_.index===0){Ft();continue}}if(O==="+"){if(r.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){Yt("plus",O);continue}if(R&&R.value==="("||r.regex===!1){V({type:"plus",value:O,output:u});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||_.parens>0){V({type:"plus",value:O});continue}V({type:"plus",value:u});continue}if(O==="@"){if(r.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){V({type:"at",extglob:!0,value:O,output:""});continue}V({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);let I=RI.exec(De());I&&(O+=I[0],_.index+=I[0].length),V({type:"text",value:O});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=O,R.output=$,_.backtrack=!0,_.globstar=!0,$e(O);continue}let k=De();if(r.noextglob!==!0&&/^\([^?]/.test(k)){Yt("star",O);continue}if(R.type==="star"){if(r.noglobstar===!0){$e(O);continue}let I=R.prev,N=I.prev,me=I.type==="slash"||I.type==="bos",Le=N&&(N.type==="star"||N.type==="globstar");if(r.bash===!0&&(!me||k[0]&&k[0]!=="/")){V({type:"star",value:O,output:""});continue}let we=_.braces>0&&(I.type==="comma"||I.type==="brace"),Or=G.length&&(I.type==="pipe"||I.type==="paren");if(!me&&I.type!=="paren"&&!we&&!Or){V({type:"star",value:O,output:""});continue}for(;k.slice(0,3)==="/**";){let kr=e[_.index+4];if(kr&&kr!=="/")break;k=k.slice(3),$e("/**",3)}if(I.type==="bos"&&dt()){R.type="globstar",R.value+=O,R.output=P(r),_.output=R.output,_.globstar=!0,$e(O);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!Le&&dt()){_.output=_.output.slice(0,-(I.output+R.output).length),I.output=`(?:${I.output}`,R.type="globstar",R.output=P(r)+(r.strictSlashes?")":"|$)"),R.value+=O,_.globstar=!0,_.output+=I.output+R.output,$e(O);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&k[0]==="/"){let kr=k[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(I.output+R.output).length),I.output=`(?:${I.output}`,R.type="globstar",R.output=`${P(r)}${d}|${d}${kr})`,R.value+=O,_.output+=I.output+R.output,_.globstar=!0,$e(O+W()),V({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&k[0]==="/"){R.type="globstar",R.value+=O,R.output=`(?:^|${d}|${P(r)}${d})`,_.output=R.output,_.globstar=!0,$e(O+W()),V({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-R.output.length),R.type="globstar",R.output=P(r),R.value+=O,_.output+=R.output,_.globstar=!0,$e(O);continue}let Z={type:"star",value:O,output:$};if(r.bash===!0){Z.output=".*?",(R.type==="bos"||R.type==="slash")&&(Z.output=T+Z.output),V(Z);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&r.regex===!0){Z.output=O,V(Z);continue}(_.index===_.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(_.output+=y,R.output+=y):r.dot===!0?(_.output+=g,R.output+=g):(_.output+=T,R.output+=T),Se()!=="*"&&(_.output+=f,R.output+=f)),V(Z)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ni("closing","]"));_.output=Ht.escapeLast(_.output,"["),Ge("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ni("closing",")"));_.output=Ht.escapeLast(_.output,"("),Ge("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ni("closing","}"));_.output=Ht.escapeLast(_.output,"{"),Ge("braces")}if(r.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${d}?`}),_.backtrack===!0){_.output="";for(let k of _.tokens)_.output+=k.output!=null?k.output:k.value,k.suffix&&(_.output+=k.suffix)}return _};md.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(mc,r.maxLength):mc,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=sv[e]||e;let{DOT_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:p,NO_DOTS_SLASH:u,STAR:d,START_ANCHOR:f}=ks.globChars(r.windows),m=r.dot?p:l,h=r.dot?u:l,y=r.capture?"":"?:",g={negated:!1,prefix:""},w=r.bash===!0?".*?":d;r.capture&&(w=`(${w})`);let b=T=>T.noglobstar===!0?w:`(${y}(?:(?!${f}${T.dot?c:i}).)*?)`,S=T=>{switch(T){case"*":return`${m}${a}${w}`;case".*":return`${i}${a}${w}`;case"*.*":return`${m}${w}${i}${a}${w}`;case"*/*":return`${m}${w}${s}${a}${h}${w}`;case"**":return m+b(r);case"**/*":return`(?:${m}${b(r)}${s})?${h}${a}${w}`;case"**/*.*":return`(?:${m}${b(r)}${s})?${h}${w}${i}${a}${w}`;case"**/.*":return`(?:${m}${b(r)}${s})?${i}${a}${w}`;default:{let E=/^(.*?)\.(\w+)$/.exec(T);if(!E)return;let $=S(E[1]);return $?$+i+E[2]:void 0}}},x=Ht.removePrefix(e,g),P=S(x);return P&&r.strictSlashes!==!0&&(P+=`${s}?`),P};pv.exports=md});var fv=v((oX,dv)=>{"use strict";var MI=iv(),hd=lv(),uv=Rs(),DI=Ts(),LI=e=>e&&typeof e=="object"&&!Array.isArray(e),ze=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(d=>ze(d,t,r));return d=>{for(let f of p){let m=f(d);if(m)return m}return!1}}let n=LI(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},i=o.windows,s=n?ze.compileRe(e,t):ze.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(o.ignore){let p={...t,ignore:null,onMatch:null,onResult:null};c=ze(o.ignore,p,r)}let l=(p,u=!1)=>{let{isMatch:d,match:f,output:m}=ze.test(p,s,t,{glob:e,posix:i}),h={glob:e,state:a,regex:s,posix:i,input:p,output:m,match:f,isMatch:d};return typeof o.onResult=="function"&&o.onResult(h),d===!1?(h.isMatch=!1,u?h:!1):c(p)?(typeof o.onIgnore=="function"&&o.onIgnore(h),h.isMatch=!1,u?h:!1):(typeof o.onMatch=="function"&&o.onMatch(h),u?h:!0)};return r&&(l.state=a),l};ze.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},s=i.format||(o?uv.toPosixSlashes:null),a=e===n,c=a&&s?s(e):e;return a===!1&&(c=s?s(e):e,a=c===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=ze.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};ze.matchBase=(e,t,r)=>(t instanceof RegExp?t:ze.makeRe(t,r)).test(uv.basename(e));ze.isMatch=(e,t,r)=>ze(t,r)(e);ze.parse=(e,t)=>Array.isArray(e)?e.map(r=>ze.parse(r,t)):hd(e,{...t,fastpaths:!1});ze.scan=(e,t)=>MI(e,t);ze.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},i=o.contains?"":"^",s=o.contains?"":"$",a=`${i}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=ze.toRegex(a,t);return n===!0&&(c.state=e),c};ze.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=hd.fastpaths(e,t)),o.output||(o=hd(e,t)),ze.compileRe(o,t,r,n)};ze.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};ze.constants=DI;dv.exports=ze});var gv=v((iX,yv)=>{"use strict";var mv=fv(),UI=Rs();function hv(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:UI.isWindows()}),mv(e,t,r)}Object.assign(hv,mv);yv.exports=hv});var js=v(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.regexpCode=ve.getEsmExportName=ve.getProperty=ve.safeStringify=ve.stringify=ve.strConcat=ve.addCodeArg=ve.str=ve._=ve.nil=ve._Code=ve.Name=ve.IDENTIFIER=ve._CodeOrName=void 0;var qs=class{};ve._CodeOrName=qs;ve.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var mo=class extends qs{constructor(t){if(super(),!ve.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};ve.Name=mo;var Zt=class extends qs{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof mo&&(r[n.str]=(r[n.str]||0)+1),r),{})}};ve._Code=Zt;ve.nil=new Zt("");function x0(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Vd(r,t[n]),r.push(e[++n]);return new Zt(r)}ve._=x0;var Fd=new Zt("+");function S0(e,...t){let r=[Ns(e[0])],n=0;for(;n<t.length;)r.push(Fd),Vd(r,t[n]),r.push(Fd,Ns(e[++n]));return L2(r),new Zt(r)}ve.str=S0;function Vd(e,t){t instanceof Zt?e.push(...t._items):t instanceof mo?e.push(t):e.push(F2(t))}ve.addCodeArg=Vd;function L2(e){let t=1;for(;t<e.length-1;){if(e[t]===Fd){let r=U2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function U2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof mo||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof mo))return`"${e}${t.slice(1)}`}function z2(e,t){return t.emptyStr()?e:e.emptyStr()?t:S0`${e}${t}`}ve.strConcat=z2;function F2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ns(Array.isArray(e)?e.join(","):e)}function V2(e){return new Zt(Ns(e))}ve.stringify=V2;function Ns(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ve.safeStringify=Ns;function B2(e){return typeof e=="string"&&ve.IDENTIFIER.test(e)?new Zt(`.${e}`):x0`[${e}]`}ve.getProperty=B2;function H2(e){if(typeof e=="string"&&ve.IDENTIFIER.test(e))return new Zt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ve.getEsmExportName=H2;function K2(e){return new Zt(e.toString())}ve.regexpCode=K2});var Kd=v(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.ValueScope=qt.ValueScopeName=qt.Scope=qt.varKinds=qt.UsedValueState=void 0;var Ct=js(),Bd=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},kc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(kc||(qt.UsedValueState=kc={}));qt.varKinds={const:new Ct.Name("const"),let:new Ct.Name("let"),var:new Ct.Name("var")};var Ic=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ct.Name?t:this.name(t)}name(t){return new Ct.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};qt.Scope=Ic;var Cc=class extends Ct.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ct._)`.${new Ct.Name(r)}[${n}]`}};qt.ValueScopeName=Cc;var G2=(0,Ct._)`\n`,Hd=class extends Ic{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?G2:Ct.nil}}get(){return this._scope}name(t){return new Cc(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let p=a.get(s);if(p)return p}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),l=c.length;return c[l]=r.ref,o.setValue(r,{property:i,itemIndex:l}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Ct._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Ct.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,kc.Started);let p=r(l);if(p){let u=this.opts.es5?qt.varKinds.var:qt.varKinds.const;i=(0,Ct._)`${i}${u} ${l} = ${p};${this.opts._n}`}else if(p=o?.(l))i=(0,Ct._)`${i}${p}${this.opts._n}`;else throw new Bd(l);c.set(l,kc.Completed)})}return i}};qt.ValueScope=Hd});var B=v(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.or=re.and=re.not=re.CodeGen=re.operators=re.varKinds=re.ValueScopeName=re.ValueScope=re.Scope=re.Name=re.regexpCode=re.stringify=re.getProperty=re.nil=re.strConcat=re.str=re._=void 0;var le=js(),gr=Kd(),Tn=js();Object.defineProperty(re,"_",{enumerable:!0,get:function(){return Tn._}});Object.defineProperty(re,"str",{enumerable:!0,get:function(){return Tn.str}});Object.defineProperty(re,"strConcat",{enumerable:!0,get:function(){return Tn.strConcat}});Object.defineProperty(re,"nil",{enumerable:!0,get:function(){return Tn.nil}});Object.defineProperty(re,"getProperty",{enumerable:!0,get:function(){return Tn.getProperty}});Object.defineProperty(re,"stringify",{enumerable:!0,get:function(){return Tn.stringify}});Object.defineProperty(re,"regexpCode",{enumerable:!0,get:function(){return Tn.regexpCode}});Object.defineProperty(re,"Name",{enumerable:!0,get:function(){return Tn.Name}});var Mc=Kd();Object.defineProperty(re,"Scope",{enumerable:!0,get:function(){return Mc.Scope}});Object.defineProperty(re,"ValueScope",{enumerable:!0,get:function(){return Mc.ValueScope}});Object.defineProperty(re,"ValueScopeName",{enumerable:!0,get:function(){return Mc.ValueScopeName}});Object.defineProperty(re,"varKinds",{enumerable:!0,get:function(){return Mc.varKinds}});re.operators={GT:new le._Code(">"),GTE:new le._Code(">="),LT:new le._Code("<"),LTE:new le._Code("<="),EQ:new le._Code("==="),NEQ:new le._Code("!=="),NOT:new le._Code("!"),OR:new le._Code("||"),AND:new le._Code("&&"),ADD:new le._Code("+")};var sn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Gd=class extends sn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?gr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=mi(this.rhs,t,r)),this}get names(){return this.rhs instanceof le._CodeOrName?this.rhs.names:{}}},qc=class extends sn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof le.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=mi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof le.Name?{}:{...this.lhs.names};return jc(t,this.rhs)}},Wd=class extends qc{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Yd=class extends sn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Qd=class extends sn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Jd=class extends sn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Xd=class extends sn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=mi(this.code,t,r),this}get names(){return this.code instanceof le._CodeOrName?this.code.names:{}}},Ms=class extends sn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||(W2(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>go(t,r.names),{})}},an=class extends Ms{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Zd=class extends Ms{},fi=class extends an{};fi.kind="else";var ho=class e extends an{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new fi(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(w0(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=mi(this.condition,t,r),this}get names(){let t=super.names;return jc(t,this.condition),this.else&&go(t,this.else.names),t}};ho.kind="if";var yo=class extends an{};yo.kind="for";var ef=class extends yo{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=mi(this.iteration,t,r),this}get names(){return go(super.names,this.iteration.names)}},tf=class extends yo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?gr.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=jc(super.names,this.from);return jc(t,this.to)}},Nc=class extends yo{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=mi(this.iterable,t,r),this}get names(){return go(super.names,this.iterable.names)}},Ds=class extends an{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Ds.kind="func";var Ls=class extends Ms{render(t){return"return "+super.render(t)}};Ls.kind="return";var rf=class extends an{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&go(t,this.catch.names),this.finally&&go(t,this.finally.names),t}},Us=class extends an{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Us.kind="catch";var zs=class extends an{render(t){return"finally"+super.render(t)}};zs.kind="finally";var nf=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
8
+ `:""},this._extScope=t,this._scope=new gr.Scope({parent:t}),this._nodes=[new Zd]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new Gd(t,i,n)),i}const(t,r,n){return this._def(gr.varKinds.const,t,r,n)}let(t,r,n){return this._def(gr.varKinds.let,t,r,n)}var(t,r,n){return this._def(gr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new qc(t,r,n))}add(t,r){return this._leafNode(new Wd(t,re.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==le.nil&&this._leafNode(new Xd(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,le.addCodeArg)(r,o));return r.push("}"),new le._Code(r)}if(t,r,n){if(this._blockNode(new ho(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new ho(t))}else(){return this._elseNode(new fi)}endIf(){return this._endBlockNode(ho,fi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new ef(t),r)}forRange(t,r,n,o,i=this.opts.es5?gr.varKinds.var:gr.varKinds.let){let s=this._scope.toName(t);return this._for(new tf(i,s,r,n),()=>o(s))}forOf(t,r,n,o=gr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof le.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,le._)`${s}.length`,a=>{this.var(i,(0,le._)`${s}[${a}]`),n(i)})}return this._for(new Nc("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?gr.varKinds.var:gr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,le._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new Nc("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(yo)}label(t){return this._leafNode(new Yd(t))}break(t){return this._leafNode(new Qd(t))}return(t){let r=new Ls;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ls)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new rf;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Us(i),r(i)}return n&&(this._currNode=o.finally=new zs,this.code(n)),this._endBlockNode(Us,zs)}throw(t){return this._leafNode(new Jd(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=le.nil,n,o){return this._blockNode(new Ds(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Ds)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof ho))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};re.CodeGen=nf;function go(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function jc(e,t){return t instanceof le._CodeOrName?go(e,t.names):e}function mi(e,t,r){if(e instanceof le.Name)return n(e);if(!o(e))return e;return new le._Code(e._items.reduce((i,s)=>(s instanceof le.Name&&(s=n(s)),s instanceof le._Code?i.push(...s._items):i.push(s),i),[]));function n(i){let s=r[i.str];return s===void 0||t[i.str]!==1?i:(delete t[i.str],s)}function o(i){return i instanceof le._Code&&i._items.some(s=>s instanceof le.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function W2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function w0(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,le._)`!${of(e)}`}re.not=w0;var Y2=_0(re.operators.AND);function Q2(...e){return e.reduce(Y2)}re.and=Q2;var J2=_0(re.operators.OR);function X2(...e){return e.reduce(J2)}re.or=X2;function _0(e){return(t,r)=>t===le.nil?r:r===le.nil?t:(0,le._)`${of(t)} ${e} ${of(r)}`}function of(e){return e instanceof le.Name?e:(0,le._)`(${e})`}});var ae=v(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.checkStrictMode=se.getErrorPath=se.Type=se.useFunc=se.setEvaluated=se.evaluatedPropsToName=se.mergeEvaluated=se.eachItem=se.unescapeJsonPointer=se.escapeJsonPointer=se.escapeFragment=se.unescapeFragment=se.schemaRefOrVal=se.schemaHasRulesButRef=se.schemaHasRules=se.checkUnknownRules=se.alwaysValidSchema=se.toHash=void 0;var Re=B(),Z2=js();function eU(e){let t={};for(let r of e)t[r]=!0;return t}se.toHash=eU;function tU(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:($0(e,t),!A0(t,e.self.RULES.all))}se.alwaysValidSchema=tU;function $0(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||O0(e,`unknown keyword: "${i}"`)}se.checkUnknownRules=$0;function A0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}se.schemaHasRules=A0;function rU(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}se.schemaHasRulesButRef=rU;function nU({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Re._)`${r}`}return(0,Re._)`${e}${t}${(0,Re.getProperty)(n)}`}se.schemaRefOrVal=nU;function oU(e){return T0(decodeURIComponent(e))}se.unescapeFragment=oU;function iU(e){return encodeURIComponent(af(e))}se.escapeFragment=iU;function af(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}se.escapeJsonPointer=af;function T0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}se.unescapeJsonPointer=T0;function sU(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}se.eachItem=sU;function P0({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Re.Name?(i instanceof Re.Name?e(o,i,s):t(o,i,s),s):i instanceof Re.Name?(t(o,s,i),i):r(i,s);return a===Re.Name&&!(c instanceof Re.Name)?n(o,c):c}}se.mergeEvaluated={props:P0({mergeNames:(e,t,r)=>e.if((0,Re._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Re._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Re._)`${r} || {}`).code((0,Re._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Re._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Re._)`${r} || {}`),cf(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:R0}),items:P0({mergeNames:(e,t,r)=>e.if((0,Re._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Re._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Re._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Re._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function R0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Re._)`{}`);return t!==void 0&&cf(e,r,t),r}se.evaluatedPropsToName=R0;function cf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Re._)`${t}${(0,Re.getProperty)(n)}`,!0))}se.setEvaluated=cf;var E0={};function aU(e,t){return e.scopeValue("func",{ref:t,code:E0[t.code]||(E0[t.code]=new Z2._Code(t.code))})}se.useFunc=aU;var sf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(sf||(se.Type=sf={}));function cU(e,t,r){if(e instanceof Re.Name){let n=t===sf.Num;return r?n?(0,Re._)`"[" + ${e} + "]"`:(0,Re._)`"['" + ${e} + "']"`:n?(0,Re._)`"/" + ${e}`:(0,Re._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Re.getProperty)(e).toString():"/"+af(e)}se.getErrorPath=cU;function O0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}se.checkStrictMode=O0});var _t=v(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});var ot=B(),pU={data:new ot.Name("data"),valCxt:new ot.Name("valCxt"),instancePath:new ot.Name("instancePath"),parentData:new ot.Name("parentData"),parentDataProperty:new ot.Name("parentDataProperty"),rootData:new ot.Name("rootData"),dynamicAnchors:new ot.Name("dynamicAnchors"),isAllOfVariant:new ot.Name("isAllOfVariant"),vErrors:new ot.Name("vErrors"),errors:new ot.Name("errors"),this:new ot.Name("this"),self:new ot.Name("self"),scope:new ot.Name("scope"),json:new ot.Name("json"),jsonPos:new ot.Name("jsonPos"),jsonLen:new ot.Name("jsonLen"),jsonPart:new ot.Name("jsonPart")};pf.default=pU});var Fs=v(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.extendErrors=yt.resetErrorsCount=yt.reportExtraError=yt.reportError=yt.keyword$DataError=yt.keywordError=void 0;var ye=B(),Dc=ae(),Pt=_t();yt.keywordError={message:({keyword:e})=>(0,ye.str)`must pass "${e}" keyword validation`};yt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ye.str)`"${e}" keyword must be ${t} ($data)`:(0,ye.str)`"${e}" keyword is invalid ($data)`};function lU(e,t=yt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=C0(e,t,r);n??(s||a)?k0(i,c):I0(o,(0,ye._)`[${c}]`)}yt.reportError=lU;function uU(e,t=yt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=C0(e,t,r);k0(o,a),i||s||I0(n,Pt.default.vErrors)}yt.reportExtraError=uU;function dU(e,t){e.assign(Pt.default.errors,t),e.if((0,ye._)`${Pt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ye._)`${Pt.default.vErrors}.length`,t),()=>e.assign(Pt.default.vErrors,null)))}yt.resetErrorsCount=dU;function fU({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",o,Pt.default.errors,a=>{e.const(s,(0,ye._)`${Pt.default.vErrors}[${a}]`),e.if((0,ye._)`${s}.instancePath === undefined`,()=>e.assign((0,ye._)`${s}.instancePath`,(0,ye.strConcat)(Pt.default.instancePath,i.errorPath))),e.assign((0,ye._)`${s}.schemaPath`,(0,ye.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,ye._)`${s}.schema`,r),e.assign((0,ye._)`${s}.data`,n))})}yt.extendErrors=fU;function k0(e,t){let r=e.const("err",t);e.if((0,ye._)`${Pt.default.vErrors} === null`,()=>e.assign(Pt.default.vErrors,(0,ye._)`[${r}]`),(0,ye._)`${Pt.default.vErrors}.push(${r})`),e.code((0,ye._)`${Pt.default.errors}++`)}function I0(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,ye._)`new ${e.ValidationError}(${t})`):(r.assign((0,ye._)`${n}.errors`,t),r.return(!1))}var bo={keyword:new ye.Name("keyword"),schemaPath:new ye.Name("schemaPath"),params:new ye.Name("params"),propertyName:new ye.Name("propertyName"),message:new ye.Name("message"),schema:new ye.Name("schema"),parentSchema:new ye.Name("parentSchema")};function C0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ye._)`{}`:mU(e,t,r)}function mU(e,t,r={}){let{gen:n,it:o}=e,i=[hU(o,r),yU(e,r)];return gU(e,t,i),n.object(...i)}function hU({errorPath:e},{instancePath:t}){let r=t?(0,ye.str)`${e}${(0,Dc.getErrorPath)(t,Dc.Type.Str)}`:e;return[Pt.default.instancePath,(0,ye.strConcat)(Pt.default.instancePath,r)]}function yU({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,ye.str)`${t}/${e}`;return r&&(o=(0,ye.str)`${o}${(0,Dc.getErrorPath)(r,Dc.Type.Str)}`),[bo.schemaPath,o]}function gU(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:u}=a;n.push([bo.keyword,o],[bo.params,typeof t=="function"?t(e):t||(0,ye._)`{}`]),c.messages&&n.push([bo.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([bo.schema,s],[bo.parentSchema,(0,ye._)`${p}${u}`],[Pt.default.data,i]),l&&n.push([bo.propertyName,l])}});var N0=v(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.boolOrEmptySchema=hi.topBoolOrEmptySchema=void 0;var bU=Fs(),vU=B(),xU=_t(),SU={message:"boolean schema is false"};function wU(e){let{gen:t,schema:r,validateName:n}=e;r===!1?q0(e,!1):typeof r=="object"&&r.$async===!0?t.return(xU.default.data):(t.assign((0,vU._)`${n}.errors`,null),t.return(!0))}hi.topBoolOrEmptySchema=wU;function _U(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),q0(e)):r.var(t,!0)}hi.boolOrEmptySchema=_U;function q0(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,bU.reportError)(o,SU,void 0,t)}});var lf=v(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.getRules=yi.isJSONType=void 0;var PU=["string","number","integer","boolean","null","object","array"],EU=new Set(PU);function $U(e){return typeof e=="string"&&EU.has(e)}yi.isJSONType=$U;function AU(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}yi.getRules=AU});var uf=v(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.shouldUseRule=Rn.shouldUseGroup=Rn.schemaHasRulesForType=void 0;function TU({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&j0(e,n)}Rn.schemaHasRulesForType=TU;function j0(e,t){return t.rules.some(r=>M0(e,r))}Rn.shouldUseGroup=j0;function M0(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Rn.shouldUseRule=M0});var Vs=v(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.reportTypeError=gt.checkDataTypes=gt.checkDataType=gt.coerceAndCheckDataType=gt.getJSONTypes=gt.getSchemaTypes=gt.DataType=void 0;var RU=lf(),OU=uf(),kU=Fs(),J=B(),D0=ae(),gi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(gi||(gt.DataType=gi={}));function IU(e){let t=L0(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}gt.getSchemaTypes=IU;function L0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(RU.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}gt.getJSONTypes=L0;function CU(e,t){let{gen:r,data:n,opts:o}=e,i=qU(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,OU.schemaHasRulesForType)(e,t[0]));if(s){let a=ff(t,n,o.strictNumbers,gi.Wrong);r.if(a,()=>{i.length?NU(e,t,i):mf(e)})}return s}gt.coerceAndCheckDataType=CU;var U0=new Set(["string","number","integer","boolean","null"]);function qU(e,t){return t?e.filter(r=>U0.has(r)||t==="array"&&r==="array"):[]}function NU(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,J._)`typeof ${o}`),a=n.let("coerced",(0,J._)`undefined`);i.coerceTypes==="array"&&n.if((0,J._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,J._)`${o}[0]`).assign(s,(0,J._)`typeof ${o}`).if(ff(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,J._)`${a} !== undefined`);for(let l of r)(U0.has(l)||l==="array"&&i.coerceTypes==="array")&&c(l);n.else(),mf(e),n.endIf(),n.if((0,J._)`${a} !== undefined`,()=>{n.assign(o,a),jU(e,a)});function c(l){switch(l){case"string":n.elseIf((0,J._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,J._)`"" + ${o}`).elseIf((0,J._)`${o} === null`).assign(a,(0,J._)`""`);return;case"number":n.elseIf((0,J._)`${s} == "boolean" || ${o} === null
9
+ || (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,J._)`+${o}`);return;case"integer":n.elseIf((0,J._)`${s} === "boolean" || ${o} === null
10
+ || (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,J._)`+${o}`);return;case"boolean":n.elseIf((0,J._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,J._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,J._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,J._)`${s} === "string" || ${s} === "number"
11
+ || ${s} === "boolean" || ${o} === null`).assign(a,(0,J._)`[${o}]`)}}}function jU({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,J._)`${t} !== undefined`,()=>e.assign((0,J._)`${t}[${r}]`,n))}function df(e,t,r,n=gi.Correct){let o=n===gi.Correct?J.operators.EQ:J.operators.NEQ,i;switch(e){case"null":return(0,J._)`${t} ${o} null`;case"array":i=(0,J._)`Array.isArray(${t})`;break;case"object":i=(0,J._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,J._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,J._)`typeof ${t} ${o} ${e}`}return n===gi.Correct?i:(0,J.not)(i);function s(a=J.nil){return(0,J.and)((0,J._)`typeof ${t} == "number"`,a,r?(0,J._)`isFinite(${t})`:J.nil)}}gt.checkDataType=df;function ff(e,t,r,n){if(e.length===1)return df(e[0],t,r,n);let o,i=(0,D0.toHash)(e);if(i.array&&i.object){let s=(0,J._)`typeof ${t} != "object"`;o=i.null?s:(0,J._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=J.nil;i.number&&delete i.integer;for(let s in i)o=(0,J.and)(o,df(s,t,r,n));return o}gt.checkDataTypes=ff;var MU={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,J._)`{type: ${e}}`:(0,J._)`{type: ${t}}`};function mf(e){let t=DU(e);(0,kU.reportError)(t,MU)}gt.reportTypeError=mf;function DU(e){let{gen:t,data:r,schema:n}=e,o=(0,D0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var F0=v(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.assignDefaults=void 0;var bi=B(),LU=ae();function UU(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)z0(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>z0(e,i,o.default))}Lc.assignDefaults=UU;function z0(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,bi._)`${i}${(0,bi.getProperty)(t)}`;if(o){(0,LU.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,bi._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,bi._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,bi._)`${a} = ${(0,bi.stringify)(r)}`)}});var yf=v(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.getSkipCondition=void 0;var Uc=B(),hf=_t();function zU(e,t){var r;let n=(r=e.properties)===null||r===void 0?void 0:r[t];if(!n)return;let o=n.readOnly===!0,i=n.writeOnly===!0;if(!o&&!i)return;let s=[],a=(0,Uc._)`typeof ${hf.default.this} == "object" && ${hf.default.this} && ${hf.default.this}.apiContext`;return o&&s.push((0,Uc._)`${a} === "request"`),i&&s.push((0,Uc._)`${a} === "response"`),(0,Uc.or)(...s)}zc.getSkipCondition=zU});var er=v(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.validateUnion=Ae.validateArray=Ae.usePattern=Ae.callValidateCode=Ae.schemaProperties=Ae.allSchemaProperties=Ae.noPropertyInData=Ae.propertyInData=Ae.isOwnProperty=Ae.hasPropFunc=Ae.reportMissingProp=Ae.checkMissingProp=Ae.checkReportMissingProp=void 0;var Oe=B(),gf=ae(),cn=_t(),FU=ae(),VU=yf();function BU(e,t){let{gen:r,data:n,it:o}=e;r.if(vf(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Oe._)`${t}`},!0),e.error()})}Ae.checkReportMissingProp=BU;function HU({gen:e,data:t,it:{opts:r},parentSchema:n},o,i){return(0,Oe.or)(...o.map(s=>{var a;return(0,Oe.and)((0,Oe.not)((a=(0,VU.getSkipCondition)(n,s))!==null&&a!==void 0?a:(0,Oe._)`false`),vf(e,t,s,r.ownProperties),(0,Oe._)`${i} = ${s}`)}))}Ae.checkMissingProp=HU;function KU(e,t){e.setParams({missingProperty:t},!0),e.error()}Ae.reportMissingProp=KU;function V0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Oe._)`Object.prototype.hasOwnProperty`})}Ae.hasPropFunc=V0;function bf(e,t,r){return(0,Oe._)`${V0(e)}.call(${t}, ${r})`}Ae.isOwnProperty=bf;function GU(e,t,r,n){let o=(0,Oe._)`${t}${(0,Oe.getProperty)(r)} !== undefined`;return n?(0,Oe._)`${o} && ${bf(e,t,r)}`:o}Ae.propertyInData=GU;function vf(e,t,r,n){let o=(0,Oe._)`${t}${(0,Oe.getProperty)(r)} === undefined`;return n?(0,Oe.or)(o,(0,Oe.not)(bf(e,t,r))):o}Ae.noPropertyInData=vf;function B0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ae.allSchemaProperties=B0;function WU(e,t){return B0(t).filter(r=>!(0,gf.alwaysValidSchema)(e,t[r]))}Ae.schemaProperties=WU;function YU({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,l){let p=l?(0,Oe._)`${e}, ${t}, ${n}${o}`:t,u=[[cn.default.instancePath,(0,Oe.strConcat)(cn.default.instancePath,i)],[cn.default.parentData,s.parentData],[cn.default.parentDataProperty,s.parentDataProperty],[cn.default.rootData,cn.default.rootData],[cn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&u.push([cn.default.dynamicAnchors,cn.default.dynamicAnchors]);let d=(0,Oe._)`${p}, ${r.object(...u)}`;return c!==Oe.nil?(0,Oe._)`${a}.call(${c}, ${d})`:(0,Oe._)`${a}(${d})`}Ae.callValidateCode=YU;var QU=(0,Oe._)`new RegExp`;function JU({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Oe._)`${o.code==="new RegExp"?QU:(0,FU.useFunc)(e,o)}(${r}, ${n})`})}Ae.usePattern=JU;function XU(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(i,!0),s(()=>t.break()),i;function s(a){let c=t.const("len",(0,Oe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:gf.Type.Num},i),t.if((0,Oe.not)(i),a)})}}Ae.validateArray=XU;function ZU(e){let{gen:t,schema:r,keyword:n,parentSchema:o,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&o.discriminator||r.some(l=>(0,gf.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((l,p)=>{let u=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},c);t.assign(a,(0,Oe._)`${a} || ${c}`),e.mergeValidEvaluated(u,c)||t.if((0,Oe.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Ae.validateUnion=ZU});var G0=v(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.validateKeywordUsage=Mr.validSchemaType=Mr.funcKeywordCode=Mr.macroKeywordCode=void 0;var Et=B(),vo=_t(),ez=er(),tz=Fs();function rz(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=K0(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:Et.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Mr.macroKeywordCode=rz;function nz(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;iz(c,t);let l=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,p=K0(n,o,l),u=n.let("valid");e.block$data(u,d),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function d(){if(t.errors===!1)h(),t.modifying&&H0(e),y(()=>e.error());else{let g=t.async?f():m();t.modifying&&H0(e),y(()=>oz(e,g))}}function f(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,Et._)`await `),w=>n.assign(u,!1).if((0,Et._)`${w} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,Et._)`${w}.errors`),()=>n.throw(w))),g}function m(){let g=(0,Et._)`${p}.errors`;return n.assign(g,null),h(Et.nil),g}function h(g=t.async?(0,Et._)`await `:Et.nil){let w=c.opts.passContext?vo.default.this:vo.default.self,b=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,Et._)`${g}${(0,ez.callValidateCode)(e,p,w,b)}`,t.modifying)}function y(g){var w;n.if((0,Et.not)((w=t.valid)!==null&&w!==void 0?w:u),g)}}Mr.funcKeywordCode=nz;function H0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Et._)`${n.parentData}[${n.parentDataProperty}]`))}function oz(e,t){let{gen:r}=e;r.if((0,Et._)`Array.isArray(${t})`,()=>{r.assign(vo.default.vErrors,(0,Et._)`${vo.default.vErrors} === null ? ${t} : ${vo.default.vErrors}.concat(${t})`).assign(vo.default.errors,(0,Et._)`${vo.default.vErrors}.length`),(0,tz.extendErrors)(e)},()=>e.error())}function iz({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function K0(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Et.stringify)(r)})}function sz(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Mr.validSchemaType=sz;function az({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let s=o.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Mr.validateKeywordUsage=az});var Y0=v(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.extendSubschemaMode=On.extendSubschemaData=On.getSubschema=void 0;var Dr=B(),W0=ae();function cz(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Dr._)`${e.schemaPath}${(0,Dr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Dr._)`${e.schemaPath}${(0,Dr.getProperty)(t)}${(0,Dr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,W0.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}On.getSubschema=cz;function pz(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:u}=t,d=a.let("data",(0,Dr._)`${t.data}${(0,Dr.getProperty)(r)}`,!0);c(d),e.errorPath=(0,Dr.str)`${l}${(0,W0.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Dr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(o!==void 0){let l=o instanceof Dr.Name?o:a.let("data",o,!0);c(l),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}On.extendSubschemaData=pz;function lz(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}On.extendSubschemaMode=lz});var Bs=v((C7,Q0)=>{"use strict";Q0.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var s=i[o];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var xf=v((q7,J0)=>{"use strict";var kn=J0.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};Fc(t,n,o,e,"",e)};kn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};kn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};kn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};kn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Fc(e,t,r,n,o,i,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,i,s,a,c,l);for(var p in n){var u=n[p];if(Array.isArray(u)){if(p in kn.arrayKeywords)for(var d=0;d<u.length;d++)Fc(e,t,r,u[d],o+"/"+p+"/"+d,i,o,p,n,d)}else if(p in kn.propsKeywords){if(u&&typeof u=="object")for(var f in u)Fc(e,t,r,u[f],o+"/"+p+"/"+uz(f),i,o,p,n,f)}else(p in kn.keywords||e.allKeys&&!(p in kn.skipKeywords))&&Fc(e,t,r,u,o+"/"+p,i,o,p,n)}r(n,o,i,s,a,c,l)}}function uz(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Hs=v(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getSchemaRefs=Nt.resolveUrl=Nt.normalizeId=Nt._getFullPath=Nt.getFullPath=Nt.inlineRef=void 0;var dz=ae(),fz=Bs(),mz=xf(),hz=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function yz(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Sf(e):t?X0(e)<=t:!1}Nt.inlineRef=yz;var gz=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Sf(e){for(let t in e){if(gz.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Sf)||typeof r=="object"&&Sf(r))return!0}return!1}function X0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!hz.has(r)&&(typeof e[r]=="object"&&(0,dz.eachItem)(e[r],n=>t+=X0(n)),t===1/0))return 1/0}return t}function Z0(e,t="",r){r!==!1&&(t=vi(t));let n=e.parse(t);return ex(e,n)}Nt.getFullPath=Z0;function ex(e,t){return e.serialize(t).split("#")[0]+"#"}Nt._getFullPath=ex;var bz=/#\/?$/;function vi(e){return e?e.replace(bz,""):""}Nt.normalizeId=vi;function vz(e,t,r){return r=vi(r),e.resolve(t,r)}Nt.resolveUrl=vz;var xz=/^[a-z_][-a-z0-9._]*$/i;function Sz(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=vi(e[r]||t),i={"":o},s=Z0(n,o,!1),a={},c=new Set;return mz(e,{allKeys:!0},(u,d,f,m)=>{if(m===void 0)return;let h=s+d,y=i[m];typeof u[r]=="string"&&(y=g.call(this,u[r])),w.call(this,u.$anchor),w.call(this,u.$dynamicAnchor),i[d]=y;function g(b){let S=this.opts.uriResolver.resolve;if(b=vi(y?S(y,b):b),c.has(b))throw p(b);c.add(b);let x=this.refs[b];return typeof x=="string"&&(x=this.refs[x]),typeof x=="object"?l(u,x.schema,b):b!==vi(h)&&(b[0]==="#"?(l(u,a[b],b),a[b]=u):this.refs[b]=h),b}function w(b){if(typeof b=="string"){if(!xz.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function l(u,d,f){if(d!==void 0&&!fz(u,d))throw p(f)}function p(u){return new Error(`reference "${u}" resolves to more than one schema`)}}Nt.getSchemaRefs=Sz});var xi=v(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.getData=In.KeywordCxt=In.validateFunctionCode=void 0;var ix=N0(),tx=Vs(),_f=uf(),Vc=Vs(),wz=F0(),Gs=G0(),wf=Y0(),D=B(),z=_t(),_z=Hs(),pn=ae(),Ks=Fs();function Pz(e){if(cx(e)&&(px(e),ax(e))){Az(e);return}sx(e,()=>(0,ix.topBoolOrEmptySchema)(e))}In.validateFunctionCode=Pz;function sx({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,D._)`${z.default.data}, ${z.default.valCxt}`,n.$async,()=>{e.code((0,D._)`"use strict"; ${rx(r,o)}`),$z(e,o),e.code(i)}):e.func(t,(0,D._)`${z.default.data}, ${Ez(o)}`,n.$async,()=>e.code(rx(r,o)).code(i))}function Ez(e){return(0,D._)`{${z.default.instancePath}="", ${z.default.parentData}, ${z.default.parentDataProperty}, ${z.default.rootData}=${z.default.data}${e.dynamicRef?(0,D._)`, ${z.default.dynamicAnchors}={}`:D.nil}, ${z.default.isAllOfVariant} = 0}={}`}function $z(e,t){e.if(z.default.valCxt,()=>{e.var(z.default.instancePath,(0,D._)`${z.default.valCxt}.${z.default.instancePath}`),e.var(z.default.parentData,(0,D._)`${z.default.valCxt}.${z.default.parentData}`),e.var(z.default.parentDataProperty,(0,D._)`${z.default.valCxt}.${z.default.parentDataProperty}`),e.var(z.default.rootData,(0,D._)`${z.default.valCxt}.${z.default.rootData}`),e.var(z.default.isAllOfVariant,(0,D._)`${z.default.valCxt}.${z.default.isAllOfVariant}`),t.dynamicRef&&e.var(z.default.dynamicAnchors,(0,D._)`${z.default.valCxt}.${z.default.dynamicAnchors}`)},()=>{e.var(z.default.instancePath,(0,D._)`""`),e.var(z.default.parentData,(0,D._)`undefined`),e.var(z.default.parentDataProperty,(0,D._)`undefined`),e.var(z.default.rootData,z.default.data),e.var(z.default.isAllOfVariant,(0,D._)`0`),t.dynamicRef&&e.var(z.default.dynamicAnchors,(0,D._)`{}`)})}function Az(e){let{schema:t,opts:r,gen:n}=e;sx(e,()=>{r.$comment&&t.$comment&&ux(e),Iz(e),n.let(z.default.vErrors,null),n.let(z.default.errors,0),r.unevaluated&&Tz(e),lx(e),Nz(e)})}function Tz(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,D._)`${r}.evaluated`),t.if((0,D._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,D._)`${e.evaluated}.props`,(0,D._)`undefined`)),t.if((0,D._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,D._)`${e.evaluated}.items`,(0,D._)`undefined`))}function rx(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,D._)`/*# sourceURL=${r} */`:D.nil}function Rz(e,t){if(cx(e)&&(px(e),ax(e))){Oz(e,t);return}(0,ix.boolOrEmptySchema)(e,t)}function ax({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function cx(e){return typeof e.schema!="boolean"}function Oz(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&ux(e),Cz(e),qz(e);let i=n.const("_errs",z.default.errors);lx(e,i),n.var(t,(0,D._)`${i} === ${z.default.errors}`)}function px(e){(0,pn.checkUnknownRules)(e),kz(e)}function lx(e,t){if(e.opts.jtd)return nx(e,[],!1,t);let r=(0,tx.getSchemaTypes)(e.schema),n=(0,tx.coerceAndCheckDataType)(e,r);nx(e,r,!n,t)}function kz(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,pn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Iz(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,pn.checkStrictMode)(e,"default is ignored in the schema root")}function Cz(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,_z.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function qz(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function ux({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,D._)`${z.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,D.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,D._)`${z.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function Nz(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,D._)`${z.default.errors} === 0`,()=>t.return(z.default.data),()=>t.throw((0,D._)`new ${o}(${z.default.vErrors})`)):(t.assign((0,D._)`${n}.errors`,z.default.vErrors),i.unevaluated&&jz(e),t.return((0,D._)`${z.default.errors} === 0`))}function jz({gen:e,evaluated:t,props:r,items:n}){r instanceof D.Name&&e.assign((0,D._)`${t}.props`,r),n instanceof D.Name&&e.assign((0,D._)`${t}.items`,n)}function nx(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:l}=e,{RULES:p}=l;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,pn.schemaHasRulesButRef)(i,p))){o.block(()=>fx(e,"$ref",p.all.$ref.definition));return}c.jtd||Mz(e,t),o.block(()=>{for(let d of p.rules)u(d);u(p.post)});function u(d){(0,_f.shouldUseGroup)(i,d)&&(d.type?(o.if((0,Vc.checkDataType)(d.type,s,c.strictNumbers)),ox(e,d),t.length===1&&t[0]===d.type&&r&&(o.else(),(0,Vc.reportTypeError)(e)),o.endIf()):ox(e,d),a||o.if((0,D._)`${z.default.errors} === ${n||0}`))}}function ox(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,wz.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,_f.shouldUseRule)(n,s)||i(n,s))&&fx(e,s.keyword,s.definition,t.type)});function i(s,a){return!!(a.keyword==="unevaluatedProperties"&&(s.properties||s.patternProperties)&&!e.isAllOfVariant&&e.opts.defaultUnevaluatedProperties===!1)}}function Mz(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Dz(e,t),e.opts.allowUnionTypes||Lz(e,t),Uz(e,e.dataTypes))}function Dz(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{dx(e.dataTypes,r)||Pf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Fz(e,t)}}function Lz(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Pf(e,"use allowUnionTypes to allow union type keyword")}function Uz(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,_f.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>zz(t,s))&&Pf(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function zz(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function dx(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Fz(e,t){let r=[];for(let n of e.dataTypes)dx(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Pf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,pn.checkStrictMode)(e,t,e.opts.strictTypes)}var Bc=class{constructor(t,r,n){if((0,Gs.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,pn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",mx(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Gs.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",z.default.errors))}result(t,r,n){this.failResult((0,D.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,D.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,D._)`${r} !== undefined && (${(0,D.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Ks.reportExtraError:Ks.reportError)(this,this.def.error,r)}$dataError(){(0,Ks.reportError)(this,this.def.$dataError||Ks.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Ks.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=D.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=D.nil,r=D.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,D.or)((0,D._)`${o} === undefined`,r)),t!==D.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==D.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,D.or)(s(),a());function s(){if(n.length){if(!(r instanceof D.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,D._)`${(0,Vc.checkDataTypes)(c,r,i.opts.strictNumbers,Vc.DataType.Wrong)}`}return D.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,D._)`!${c}(${r})`}return D.nil}}subschema(t,r,n){let o=(0,wf.getSubschema)(this.it,t);(0,wf.extendSubschemaData)(o,this.it,t),(0,wf.extendSubschemaMode)(o,t);let i={...this.it,...o,items:void 0,props:void 0,isAllOfVariant:n};return Rz(i,r),i}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=pn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=pn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,D.Name)),!0}};In.KeywordCxt=Bc;function fx(e,t,r,n){let o=new Bc(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Gs.funcKeywordCode)(o,r):"macro"in r?(0,Gs.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Gs.funcKeywordCode)(o,r)}var Vz=/^\/(?:[^~]|~0|~1)*$/,Bz=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function mx(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return z.default.rootData;if(e[0]==="/"){if(!Vz.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=z.default.rootData}else{let l=Bz.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(o=l[2],o==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(i=r[t-p],!o)return i}let s=i,a=o.split("/");for(let l of a)l&&(i=(0,D._)`${i}${(0,D.getProperty)((0,pn.unescapeJsonPointer)(l))}`,s=(0,D._)`${s} && ${i}`);return s;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}In.getData=mx});var Ws=v($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});var Ef=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};$f.default=Ef});var Si=v(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var Af=Hs(),Tf=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Af.resolveUrl)(t,r,n),this.missingSchema=(0,Af.normalizeId)((0,Af.getFullPath)(t,this.missingRef))}};Rf.default=Tf});var Ys=v(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.resolveSchema=tr.getCompilingSchema=tr.resolveRef=tr.compileSchema=tr.SchemaEnv=void 0;var br=B(),Hz=Ws(),xo=_t(),vr=Hs(),hx=ae(),Kz=xi(),wi=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,vr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};tr.SchemaEnv=wi;function kf(e){let t=gx.call(this,e);if(t)return t;let r=(0,vr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new br.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:Hz.default,code:(0,br._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:xo.default.data,parentData:xo.default.parentData,parentDataProperty:xo.default.parentDataProperty,dataNames:[xo.default.data],dataPathArr:[br.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,br.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:br.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,br._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,Kz.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let u=s.toString();p=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(xo.default.scope)}return ${u}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let f=new Function(`${xo.default.self}`,`${xo.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:m,items:h}=l;f.evaluated={props:m instanceof br.Name?void 0:m,items:h instanceof br.Name?void 0:h,dynamicProps:m instanceof br.Name,dynamicItems:h instanceof br.Name},f.source&&(f.source.evaluated=(0,br.stringify)(f.evaluated))}return e.validate=f,e}catch(u){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),u}finally{this._compilations.delete(e)}}tr.compileSchema=kf;function Gz(e,t,r){var n;let o=(0,vr.resolveUrl)(this.opts.uriResolver,t,r),i=e.refs[o];if(i)return i;let s=yx.call(this,e,o);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[o],{schemaId:c}=this.opts;a&&(s=new wi({schema:a,schemaId:c,root:e,baseId:t}))}if(s===void 0&&this.opts.loadSchemaSync){let a=this.opts.loadSchemaSync(t,r,o);a&&!(this.refs[o]||this.schemas[o])&&(this.addSchema(a,o,void 0),s=yx.call(this,e,o))}if(s!==void 0)return e.refs[o]=Wz.call(this,s)}tr.resolveRef=Gz;function Wz(e){return(0,vr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:kf.call(this,e)}function gx(e){for(let t of this._compilations)if(Yz(t,e))return t}tr.getCompilingSchema=gx;function Yz(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function yx(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Hc.call(this,e,t)}function Hc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,vr._getFullPath)(this.opts.uriResolver,r),o=(0,vr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Of.call(this,r,e);let i=(0,vr.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Hc.call(this,e,s);return typeof a?.schema!="object"?void 0:Of.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||kf.call(this,s),i===(0,vr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(o=(0,vr.resolveUrl)(this.opts.uriResolver,o,l)),new wi({schema:a,schemaId:c,root:e,baseId:o})}return Of.call(this,r,s)}}tr.resolveSchema=Hc;var Qz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Of(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,hx.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!Qz.has(a)&&l&&(t=(0,vr.resolveUrl)(this.opts.uriResolver,t,l))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,hx.schemaHasRulesButRef)(r,this.RULES)){let a=(0,vr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Hc.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new wi({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var bx=v((U7,Jz)=>{Jz.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var qf=v((z7,Px)=>{"use strict";var Xz=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),xx=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),If=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Sx=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),Zz=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function Cf(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var eF=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function vx(e){return e.length=0,!0}function tF(e,t,r){if(e.length){let n=Cf(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function rF(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],i=!1,s=!1,a=tF;for(let c=0;c<e.length;c++){let l=e[c];if(!(l==="["||l==="]"))if(l===":"){if(i===!0&&(s=!0),!a(o,n,r))break;if(++t>7){r.error=!0;break}c>0&&e[c-1]===":"&&(i=!0),n.push(":");continue}else if(l==="%"){if(!a(o,n,r))break;a=vx}else{o.push(l);continue}}return o.length&&(a===vx?r.zone=o.join(""):s?n.push(o.join("")):n.push(Cf(o))),r.address=n.join(""),r}function wx(e){if(nF(e,":")<2)return{host:e,isIPV6:!1};let t=rF(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function nF(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function oF(e){let t=e,r=[],n=-1,o=0;for(;o=t.length;){if(o===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(o===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(o===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}var iF={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},sF=/[@/?#:]/g,aF=/[@/?#]/g;function _x(e,t){let r=t?aF:sF;return r.lastIndex=0,e.replace(r,n=>iF[n])}function cF(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let o=e.slice(n+1,n+3);if(If(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));t&&Sx(s)?r+=s:r+="%"+i,n+=2;continue}}r+=e[n]}return r}function pF(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(If(n)){let o=n.toUpperCase(),i=String.fromCharCode(parseInt(o,16));i!=="."&&Sx(i)?t+=i:t+="%"+o,r+=2;continue}}Zz(e[r])?t+=e[r]:t+=escape(e[r])}return t}function lF(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(If(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function uF(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!xx(r)){let n=wx(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=_x(r,!1)}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}Px.exports={nonSimpleDomain:eF,recomposeAuthority:uF,reescapeHostDelimiters:_x,normalizePercentEncoding:cF,normalizePathEncoding:pF,escapePreservingEscapes:lF,removeDotSegments:oF,isIPv4:xx,isUUID:Xz,normalizeIPv6:wx,stringArrayToHexStripped:Cf}});var Rx=v((F7,Tx)=>{"use strict";var{isUUID:dF}=qf(),fF=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,mF=["http","https","ws","wss","urn","urn:uuid"];function hF(e){return mF.indexOf(e)!==-1}function Nf(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function Ex(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function $x(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function yF(e){return e.secure=Nf(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function gF(e){if((e.port===(Nf(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function bF(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(fF);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=jf(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function vF(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=`${r}:${t.nid||n}`,i=jf(o);i&&(e=i.serialize(e,t));let s=e,a=e.nss;return s.path=`${n||t.nid}:${a}`,t.skipEscape=!0,s}function xF(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!dF(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function SF(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var Ax={scheme:"http",domainHost:!0,parse:Ex,serialize:$x},wF={scheme:"https",domainHost:Ax.domainHost,parse:Ex,serialize:$x},Kc={scheme:"ws",domainHost:!0,parse:yF,serialize:gF},_F={scheme:"wss",domainHost:Kc.domainHost,parse:Kc.parse,serialize:Kc.serialize},PF={scheme:"urn",parse:bF,serialize:vF,skipNormalize:!0},EF={scheme:"urn:uuid",parse:xF,serialize:SF,skipNormalize:!0},Gc={http:Ax,https:wF,ws:Kc,wss:_F,urn:PF,"urn:uuid":EF};Object.setPrototypeOf(Gc,null);function jf(e){return e&&(Gc[e]||Gc[e.toLowerCase()])||void 0}Tx.exports={wsIsSecure:Nf,SCHEMES:Gc,isValidSchemeName:hF,getSchemeHandler:jf}});var Df=v((V7,Qc)=>{"use strict";var{normalizeIPv6:$F,removeDotSegments:Qs,recomposeAuthority:AF,normalizePercentEncoding:TF,normalizePathEncoding:RF,escapePreservingEscapes:OF,reescapeHostDelimiters:kF,isIPv4:IF,nonSimpleDomain:CF}=qf(),{SCHEMES:qF,getSchemeHandler:kx}=Rx();function NF(e,t){return typeof e=="string"?e=FF(e,t):typeof e=="object"&&(e=Yc(So(e,t),t)),e}function jF(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:i}=Wc(e,n),{parsed:s,malformedAuthorityOrPort:a}=Wc(t,n);if(i||a)throw new Error(o.error||s.error||"URI is malformed.");let c=Ix(o,s,n,!0);return n.skipEscape=!0,So(c,n)}function Ix(e,t,r,n){let o={};return n||(e=Yc(So(e,r),r),t=Yc(So(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Qs(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Qs(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=Qs(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=Qs(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function MF(e,t,r){let n=Ox(e,r),o=Ox(t,r);return n!==void 0&&o!==void 0&&n.toLowerCase()===o.toLowerCase()}function So(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[],i=kx(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=TF(r.path):(r.path=OF(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let s=AF(r);if(s!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(s),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(a=Qs(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var DF=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,LF=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,UF=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function zF(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}function Wc(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1,i=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let s=e.match(LF);s!==null&&s[1].indexOf("\\")!==-1&&(n.error="URI authority must not contain a literal backslash.",o=!0);let a=e.match(UF);if(a!==null){let l=a[1],p=l.replace(/[\t\n\r]/g,"");p.length>=2&&(p.slice(0,2)!=="//"?(n.error=n.error||"URI authority must not contain a literal backslash.",o=!0):l.length!==p.length&&(n.error=n.error||"URI authority introducer must not contain whitespace.",o=!0))}let c=e.match(DF);if(c){n.scheme=c[1],n.userinfo=c[3],n.host=c[4],n.port=parseInt(c[5],10),n.path=c[6]||"",n.query=c[7],n.fragment=c[8],isNaN(n.port)&&(n.port=c[5]);let l=zF(n,c);if(l!==void 0&&(n.error=n.error||l,o=!0),n.host)if(IF(n.host)===!1){let d=$F(n.host);n.host=d.host.toLowerCase(),i=d.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let p=kx(r.scheme||n.scheme);if(!r.unicodeSupport&&(!p||!p.unicodeSupport)&&n.host&&(r.domainHost||p&&p.domainHost)&&i===!1&&CF(n.host))try{n.host=new URL("http://"+n.host).hostname}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!p||p&&!p.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=kF(unescape(n.host),i))),n.path&&(n.path=RF(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}p&&p.parse&&p.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o}}function Yc(e,t){return Wc(e,t).parsed}function FF(e,t){return Cx(e,t).normalized}function Cx(e,t){let{parsed:r,malformedAuthorityOrPort:n}=Wc(e,t);return{normalized:n?e:So(r,t),malformedAuthorityOrPort:n}}function Ox(e,t){if(typeof e=="string"){let{normalized:r,malformedAuthorityOrPort:n}=Cx(e,t);return n?void 0:r}if(typeof e=="object")return So(e,t)}var Mf={SCHEMES:qF,normalize:NF,resolve:jF,resolveComponent:Ix,equal:MF,serialize:So,parse:Yc};Qc.exports=Mf;Qc.exports.default=Mf;Qc.exports.fastUri=Mf});var Nx=v(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var qx=Df();qx.code='require("ajv/dist/runtime/uri").default';Lf.default=qx});var Ff=v(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.CodeGen=it.Name=it.nil=it.stringify=it.str=it._=it.KeywordCxt=void 0;var VF=xi();Object.defineProperty(it,"KeywordCxt",{enumerable:!0,get:function(){return VF.KeywordCxt}});var _i=B();Object.defineProperty(it,"_",{enumerable:!0,get:function(){return _i._}});Object.defineProperty(it,"str",{enumerable:!0,get:function(){return _i.str}});Object.defineProperty(it,"stringify",{enumerable:!0,get:function(){return _i.stringify}});Object.defineProperty(it,"nil",{enumerable:!0,get:function(){return _i.nil}});Object.defineProperty(it,"Name",{enumerable:!0,get:function(){return _i.Name}});Object.defineProperty(it,"CodeGen",{enumerable:!0,get:function(){return _i.CodeGen}});var BF=Ws(),Ux=Si(),HF=lf(),Js=Ys(),KF=B(),Xs=Hs(),Jc=Vs(),zf=ae(),jx=bx(),GF=Nx(),zx=(e,t)=>new RegExp(e,t);zx.code="new RegExp";var WF=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],YF=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),QF={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},JF={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Mx=200;function XF(e){var t,r,n,o,i,s,a,c,l,p,u,d,f,m,h,y,g,w,b,S,x,P,T,E,$;let _=e.strict,G=(t=e.code)===null||t===void 0?void 0:t.optimize,F=G===!0||G===void 0?1:G||0,pe=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:zx,R=(o=e.uriResolver)!==null&&o!==void 0?o:GF.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:_)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:_)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:_)!==null&&p!==void 0?p:"log",strictTuples:(d=(u=e.strictTuples)!==null&&u!==void 0?u:_)!==null&&d!==void 0?d:"log",strictRequired:(m=(f=e.strictRequired)!==null&&f!==void 0?f:_)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:F,regExp:pe}:{optimize:F,regExp:pe},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:Mx,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:Mx,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(S=e.schemaId)!==null&&S!==void 0?S:"$id",addUsedSchema:(x=e.addUsedSchema)!==null&&x!==void 0?x:!0,validateSchema:(P=e.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(T=e.validateFormats)!==null&&T!==void 0?T:!0,unicodeRegExp:(E=e.unicodeRegExp)!==null&&E!==void 0?E:!0,int32range:($=e.int32range)!==null&&$!==void 0?$:!0,uriResolver:R}}var Zs=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...XF(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new KF.ValueScope({scope:{},prefixes:YF,es5:r,lines:n}),this.logger=oV(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,HF.getRules)(),Dx.call(this,QF,t,"NOT SUPPORTED"),Dx.call(this,JF,t,"DEPRECATED","warn"),this._metaOpts=rV.call(this),t.formats&&eV.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&tV.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),ZF.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=jx;n==="id"&&(o={...jx},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}setDefaultUnevaluatedProperties(t){this.opts.defaultUnevaluatedProperties=t}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(p,u){await i.call(this,p.$schema);let d=this._addSchema(p,u);return d.validate||s.call(this,d)}async function i(p){p&&!this.getSchema(p)&&await o.call(this,{$ref:p},!0)}async function s(p){try{return this._compileSchemaEnv(p)}catch(u){if(!(u instanceof Ux.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,p)}}function a({missingSchema:p,missingRef:u}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${u} cannot be resolved`)}async function c(p){let u=await l.call(this,p);this.refs[p]||await i.call(this,u.$schema),this.refs[p]||this.addSchema(u,p,r)}async function l(p){let u=this._loading[p];if(u)return u;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:s}=this.opts;if(i=t[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,Xs.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(t){let r;for(;typeof(r=Lx.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Js.SchemaEnv({schema:{},schemaId:n});if(r=Js.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Lx.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Xs.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(sV.call(this,n,r),!r)return(0,zf.eachItem)(n,i=>Uf.call(this,i)),this;cV.call(this,r);let o={...r,type:(0,Jc.getJSONTypes)(r.type),schemaType:(0,Jc.getJSONTypes)(r.schemaType)};return(0,zf.eachItem)(n,o.type.length===0?i=>Uf.call(this,i,o):i=>o.type.forEach(s=>Uf.call(this,i,o,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),s=t;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,p=s[a];l&&p&&(s[a]=Fx(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Xs.normalizeId)(s||n);let l=Xs.getSchemaRefs.call(this,t,n);return c=new Js.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Js.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Js.compileSchema.call(this,t)}finally{this.opts=r}}};Zs.ValidationError=BF.default;Zs.MissingRefError=Ux.default;it.default=Zs;function Dx(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function Lx(e){return e=(0,Xs.normalizeId)(e),this.schemas[e]||this.refs[e]}function ZF(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function eV(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function tV(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function rV(){let e={...this.opts};for(let t of WF)delete e[t];return e}var nV={log(){},warn(){},error(){}};function oV(e){if(e===!1)return nV;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var iV=/^[a-z_$][a-z0-9_$:-]*$/i;function sV(e,t){let{RULES:r}=this;if((0,zf.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!iV.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function Uf(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=o?i.post:i.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},i.rules.push(s)),i.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,Jc.getJSONTypes)(t.type),schemaType:(0,Jc.getJSONTypes)(t.schemaType)}};t.before?aV.call(this,s,a,t.before):s.rules.push(a),i.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function aV(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function cV(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Fx(t)),e.validateSchema=this.compile(t,!0))}var pV={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Fx(e){return{anyOf:[e,pV]}}});var Vx=v(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var lV={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Vf.default=lV});var ea=v(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.callRef=wo.getValidate=void 0;var uV=Si(),Bx=er(),He=B(),Pi=_t(),Hx=Ys(),Xc=ae(),dV={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:l}=i;if((r==="#"||r==="#/")&&o===l.baseId)return u();let p=Hx.resolveRef.call(c,l,o,r);if(p===void 0)throw new uV.default(n.opts.uriResolver,o,r);if(p instanceof Hx.SchemaEnv)return d(p);return f(p);function u(){if(i===l)return Zc(e,s,i,i.$async);let m=t.scopeValue("root",{ref:l});return Zc(e,(0,He._)`${m}.validate`,l,l.$async)}function d(m){let h=Kx(e,m);Zc(e,h,m,m.$async)}function f(m){let h=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,He.stringify)(m)}:{ref:m}),y=t.name("valid"),g=e.subschema({schema:m,dataTypes:[],schemaPath:He.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(g),e.ok(y)}}};function Kx(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,He._)`${r.scopeValue("wrapper",{ref:t})}.validate`}wo.getValidate=Kx;function Zc(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,l=c.passContext?Pi.default.this:He.nil;n?p():u();function p(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,He._)`await ${(0,Bx.callValidateCode)(e,t,l)}`),f(t),s||o.assign(m,!0)},h=>{o.if((0,He._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),d(h),s||o.assign(m,!1)}),e.ok(m)}function u(){let m=o.name("visitedNodes");o.code((0,He._)`const ${m} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),o.if((0,He._)`!${m}.has(${e.data})`,()=>{o.code((0,He._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${m})`),o.code((0,He._)`const dataNode = ${e.data}`),o.code((0,He._)`if (typeof dataNode === "object" && dataNode !== null) ${m}.add(dataNode)`);let h=e.result((0,Bx.callValidateCode)(e,t,l),()=>f(t),()=>d(t));return o.code((0,He._)`${m}.delete(dataNode)`),h})}function d(m){let h=(0,He._)`${m}.errors`;o.assign(Pi.default.vErrors,(0,He._)`${Pi.default.vErrors} === null ? ${h} : ${Pi.default.vErrors}.concat(${h})`),o.assign(Pi.default.errors,(0,He._)`${Pi.default.vErrors}.length`)}function f(m){var h;if(!i.opts.unevaluated)return;let y=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(i.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(i.props=Xc.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,He._)`${m}.evaluated.props`);i.props=Xc.mergeEvaluated.props(o,g,i.props,He.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=Xc.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,He._)`${m}.evaluated.items`);i.items=Xc.mergeEvaluated.items(o,g,i.items,He.Name)}}}wo.callRef=Zc;wo.default=dV});var Gx=v(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});var fV=Vx(),mV=ea(),hV=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",fV.default,mV.default];Bf.default=hV});var Wx=v(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var ep=B(),Cn=ep.operators,tp={maximum:{okStr:"<=",ok:Cn.LTE,fail:Cn.GT},minimum:{okStr:">=",ok:Cn.GTE,fail:Cn.LT},exclusiveMaximum:{okStr:"<",ok:Cn.LT,fail:Cn.GTE},exclusiveMinimum:{okStr:">",ok:Cn.GT,fail:Cn.LTE}},yV={message:({keyword:e,schemaCode:t})=>(0,ep.str)`must be ${tp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,ep._)`{comparison: ${tp[e].okStr}, limit: ${t}}`},gV={keyword:Object.keys(tp),type:"number",schemaType:"number",$data:!0,error:yV,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,ep._)`${r} ${tp[t].fail} ${n} || isNaN(${r})`)}};Hf.default=gV});var Yx=v(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var ta=B(),bV={message:({schemaCode:e})=>(0,ta.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,ta._)`{multipleOf: ${e}}`},vV={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:bV,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,ta._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,ta._)`${s} !== parseInt(${s})`;e.fail$data((0,ta._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};Kf.default=vV});var Jx=v(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});function Qx(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}Gf.default=Qx;Qx.code='require("ajv/dist/runtime/ucs2length").default'});var Xx=v(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var _o=B(),xV=ae(),SV=Jx(),wV={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,_o.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,_o._)`{limit: ${e}}`},_V={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:wV,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?_o.operators.GT:_o.operators.LT,s=o.opts.unicode===!1?(0,_o._)`${r}.length`:(0,_o._)`${(0,xV.useFunc)(e.gen,SV.default)}(${r})`;e.fail$data((0,_o._)`${s} ${i} ${n}`)}};Wf.default=_V});var Zx=v(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});var PV=er(),EV=ae(),Ei=B(),$V={message:({schemaCode:e})=>(0,Ei.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Ei._)`{pattern: ${e}}`},AV={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:$V,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,l=c.code==="new RegExp"?(0,Ei._)`new RegExp`:(0,EV.useFunc)(t,c),p=t.let("valid");t.try(()=>t.assign(p,(0,Ei._)`${l}(${i}, ${a}).test(${r})`),()=>t.assign(p,!1)),e.fail$data((0,Ei._)`!${p}`)}else{let c=(0,PV.usePattern)(e,o);e.fail$data((0,Ei._)`!${c}.test(${r})`)}}};Yf.default=AV});var eS=v(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});var ra=B(),TV={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,ra.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ra._)`{limit: ${e}}`},RV={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:TV,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?ra.operators.GT:ra.operators.LT;e.fail$data((0,ra._)`Object.keys(${r}).length ${o} ${n}`)}};Qf.default=RV});var tS=v(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var na=er(),OV=yf(),Po=B(),kV=ae(),IV={message:({params:{missingProperty:e}})=>(0,Po.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Po._)`{missingProperty: ${e}}`},CV={keyword:"required",type:"object",schemaType:"array",$data:!0,error:IV,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:s}=e,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():p(),a.strictRequired){let f=e.parentSchema.properties,{definedProperties:m}=e.it;for(let h of r)if(f?.[h]===void 0&&!m.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,kV.checkStrictMode)(s,g,s.opts.strictRequired)}}function l(){var f;if(c||i)e.block$data(Po.nil,u);else for(let m of r){let h=(f=(0,OV.getSkipCondition)(e.parentSchema,m))!==null&&f!==void 0?f:(0,Po._)`false`;t.if((0,Po.not)(h),()=>(0,na.checkReportMissingProp)(e,m))}}function p(){let f=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>d(f,m)),e.ok(m)}else t.if((0,na.checkMissingProp)(e,r,f)),(0,na.reportMissingProp)(e,f),t.else()}function u(){t.forOf("prop",n,f=>{e.setParams({missingProperty:f}),t.if((0,na.noPropertyInData)(t,o,f,a.ownProperties),()=>e.error())})}function d(f,m){e.setParams({missingProperty:f}),t.forOf(f,n,()=>{t.assign(m,(0,na.propertyInData)(t,o,f,a.ownProperties)),t.if((0,Po.not)(m),()=>{e.error(),t.break()})},Po.nil)}}};Jf.default=CV});var nS=v(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var Xf=B(),rS=_t(),qV={message:()=>(0,Xf.str)`must NOT be present in request context`},NV={keyword:"readOnly",schemaType:"boolean",error:qV,code(e){if(e.schema!==!0)return;let t=(0,Xf._)`(${rS.default.this} && ${rS.default.this}.apiContext)`;e.fail((0,Xf._)`${t} === "request"`)}};Zf.default=NV});var iS=v(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});var em=B(),oS=_t(),jV={message:()=>(0,em.str)`must NOT be present in response context`},MV={keyword:"writeOnly",schemaType:"boolean",error:jV,code(e){if(e.schema!==!0)return;let t=(0,em._)`(${oS.default.this} && ${oS.default.this}.apiContext)`;e.fail((0,em._)`${t} === "response"`)}};tm.default=MV});var sS=v(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var oa=B(),DV={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,oa.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,oa._)`{limit: ${e}}`},LV={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:DV,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?oa.operators.GT:oa.operators.LT;e.fail$data((0,oa._)`${r}.length ${o} ${n}`)}};rm.default=LV});var rp=v(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});var aS=Bs();aS.code='require("ajv/dist/runtime/equal").default';nm.default=aS});var cS=v(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var om=Vs(),st=B(),UV=ae(),zV=rp(),FV={message:({params:{i:e,j:t}})=>(0,st.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,st._)`{i: ${e}, j: ${t}}`},VV={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:FV,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),l=i.items?(0,om.getSchemaTypes)(i.items):[];e.block$data(c,p,(0,st._)`${s} === false`),e.ok(c);function p(){let m=t.let("i",(0,st._)`${r}.length`),h=t.let("j");e.setParams({i:m,j:h}),t.assign(c,!0),t.if((0,st._)`${m} > 1`,()=>(u()?d:f)(m,h))}function u(){return l.length>0&&!l.some(m=>m==="object"||m==="array")}function d(m,h){let y=t.name("item"),g=(0,om.checkDataTypes)(l,y,a.opts.strictNumbers,om.DataType.Wrong),w=t.const("indices",(0,st._)`{}`);t.for((0,st._)`;${m}--;`,()=>{t.let(y,(0,st._)`${r}[${m}]`),t.if(g,(0,st._)`continue`),l.length>1&&t.if((0,st._)`typeof ${y} == "string"`,(0,st._)`${y} += "_"`),t.if((0,st._)`typeof ${w}[${y}] == "number"`,()=>{t.assign(h,(0,st._)`${w}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,st._)`${w}[${y}] = ${m}`)})}function f(m,h){let y=(0,UV.useFunc)(t,zV.default),g=t.name("outer");t.label(g).for((0,st._)`;${m}--;`,()=>t.for((0,st._)`${h} = ${m}; ${h}--;`,()=>t.if((0,st._)`${y}(${r}[${m}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};im.default=VV});var pS=v(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});var sm=B(),BV=ae(),HV=rp(),KV={message:"must be equal to constant",params:({schemaCode:e})=>(0,sm._)`{allowedValue: ${e}}`},GV={keyword:"const",$data:!0,error:KV,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,sm._)`!${(0,BV.useFunc)(t,HV.default)}(${r}, ${o})`):e.fail((0,sm._)`${i} !== ${r}`)}};am.default=GV});var lS=v(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});var ia=B(),WV=ae(),YV=rp(),QV={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,ia._)`{allowedValues: ${e}}`},JV={keyword:"enum",schemaType:"array",$data:!0,error:QV,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,l=()=>c??(c=(0,WV.useFunc)(t,YV.default)),p;if(a||n)p=t.let("valid"),e.block$data(p,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let f=t.const("vSchema",i);p=(0,ia.or)(...o.map((m,h)=>d(f,h)))}e.pass(p);function u(){t.assign(p,!1),t.forOf("v",i,f=>t.if((0,ia._)`${l()}(${r}, ${f})`,()=>t.assign(p,!0).break()))}function d(f,m){let h=o[m];return typeof h=="object"&&h!==null?(0,ia._)`${l()}(${r}, ${f}[${m}])`:(0,ia._)`${r} === ${h}`}}};cm.default=JV});var lm=v(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var XV=Wx(),ZV=Yx(),eB=Xx(),tB=Zx(),rB=eS(),nB=tS(),oB=nS(),iB=iS(),sB=sS(),aB=cS(),cB=pS(),pB=lS(),lB=[XV.default,ZV.default,eB.default,tB.default,rB.default,nB.default,oB.default,iB.default,sB.default,aB.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},cB.default,pB.default];pm.default=lB});var dm=v(sa=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.validateAdditionalItems=void 0;var Eo=B(),um=ae(),uB={message:({params:{len:e}})=>(0,Eo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Eo._)`{limit: ${e}}`},dB={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:uB,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,um.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}uS(e,n)}};function uS(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Eo._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Eo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,um.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,Eo._)`${a} <= ${t.length}`);r.if((0,Eo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,p=>{e.subschema({keyword:i,dataProp:p,dataPropType:um.Type.Num},l),s.allErrors||r.if((0,Eo.not)(l),()=>r.break())})}}sa.validateAdditionalItems=uS;sa.default=dB});var fm=v(aa=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.validateTuple=void 0;var dS=B(),np=ae(),fB=er(),mB={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return fS(e,"additionalItems",t);r.items=!0,!(0,np.alwaysValidSchema)(r,t)&&e.ok((0,fB.validateArray)(e))}};function fS(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;p(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=np.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,dS._)`${i}.length`);r.forEach((u,d)=>{(0,np.alwaysValidSchema)(a,u)||(n.if((0,dS._)`${l} > ${d}`,()=>e.subschema({keyword:s,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(u){let{opts:d,errSchemaPath:f}=a,m=r.length,h=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(d.strictTuples&&!h){let y=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${f}"`;(0,np.checkStrictMode)(a,y,d.strictTuples)}}}aa.validateTuple=fS;aa.default=mB});var mS=v(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});var hB=fm(),yB={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,hB.validateTuple)(e,"items")};mm.default=yB});var yS=v(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});var hS=B(),gB=ae(),bB=er(),vB=dm(),xB={message:({params:{len:e}})=>(0,hS.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,hS._)`{limit: ${e}}`},SB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:xB,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,gB.alwaysValidSchema)(n,t)&&(o?(0,vB.validateAdditionalItems)(e,o):e.ok((0,bB.validateArray)(e)))}};hm.default=SB});var gS=v(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});var rr=B(),op=ae(),wB={message:({params:{min:e,max:t}})=>t===void 0?(0,rr.str)`must contain at least ${e} valid item(s)`:(0,rr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,rr._)`{minContains: ${e}}`:(0,rr._)`{minContains: ${e}, maxContains: ${t}}`},_B={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:wB,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:l}=n;i.opts.next?(s=c===void 0?1:c,a=l):s=1;let p=t.const("len",(0,rr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,op.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,op.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,op.alwaysValidSchema)(i,r)){let h=(0,rr._)`${p} >= ${s}`;a!==void 0&&(h=(0,rr._)`${h} && ${p} <= ${a}`),e.pass(h);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?f(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,rr._)`${o}.length > 0`,d)):(t.let(u,!1),d()),e.result(u,()=>e.reset());function d(){let h=t.name("_valid"),y=t.let("count",0);f(h,()=>t.if(h,()=>m(y)))}function f(h,y){t.forRange("i",0,p,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:op.Type.Num,compositeRule:!0},h),y()})}function m(h){t.code((0,rr._)`${h}++`),a===void 0?t.if((0,rr._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,rr._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,rr._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};ym.default=_B});var ip=v(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.validateSchemaDeps=Lr.validatePropertyDeps=Lr.error=void 0;var gm=B(),PB=ae(),ca=er();Lr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,gm.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,gm._)`{property: ${e},
12
+ missingProperty: ${n},
13
+ depsCount: ${t},
14
+ deps: ${r}}`};var EB={keyword:"dependencies",type:"object",schemaType:"object",error:Lr.error,code(e){let[t,r]=$B(e);bS(e,t),vS(e,r)}};function $B({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function bS(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,ca.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let l of a)(0,ca.checkReportMissingProp)(e,l)}):(r.if((0,gm._)`${c} && (${(0,ca.checkMissingProp)(e,a,i)})`),(0,ca.reportMissingProp)(e,i),r.else())}}Lr.validatePropertyDeps=bS;function vS(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,PB.alwaysValidSchema)(i,t[a])||(r.if((0,ca.propertyInData)(r,n,a,i.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}Lr.validateSchemaDeps=vS;Lr.default=EB});var SS=v(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var xS=B(),AB=ae(),TB={message:"property name must be valid",params:({params:e})=>(0,xS._)`{propertyName: ${e.propertyName}}`},RB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:TB,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,AB.alwaysValidSchema)(o,r))return;let i=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),t.if((0,xS.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};bm.default=RB});var xm=v(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});var sp=er(),xr=B(),OB=_t(),ap=ae(),kB={message:"must NOT have additional properties",params:({params:e})=>(0,xr._)`{additionalProperty: ${e.additionalProperty}}`},IB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:kB,code(e){let{gen:t,parentSchema:r,data:n,errsCount:o,it:i}=e,{schema:s=i.opts.defaultAdditionalProperties}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,ap.alwaysValidSchema)(i,s))return;let l=(0,sp.allSchemaProperties)(r.properties),p=(0,sp.allSchemaProperties)(r.patternProperties);u(),e.ok((0,xr._)`${o} === ${OB.default.errors}`);function u(){t.forIn("key",n,y=>{!l.length&&!p.length?m(y):t.if(d(y),()=>m(y))})}function d(y){let g;if(l.length>8){let w=(0,ap.schemaRefOrVal)(i,r.properties,"properties");g=(0,sp.isOwnProperty)(t,w,y)}else l.length?g=(0,xr.or)(...l.map(w=>(0,xr._)`${y} === ${w}`)):g=xr.nil;return p.length&&(g=(0,xr.or)(g,...p.map(w=>(0,xr._)`${(0,sp.usePattern)(e,w)}.test(${y})`))),(0,xr.not)(g)}function f(y){t.code((0,xr._)`delete ${n}[${y}]`)}function m(y){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){f(y);return}if(s===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,ap.alwaysValidSchema)(i,s)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,xr.not)(g),()=>{e.reset(),f(y)})):(h(y,g),a||t.if((0,xr.not)(g),()=>t.break()))}}function h(y,g,w){let b={keyword:"additionalProperties",dataProp:y,dataPropType:ap.Type.Str};w===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,g)}}};vm.default=IB});var PS=v(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var CB=xi(),wS=er(),Sm=ae(),_S=xm(),qB={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e;(i.opts.removeAdditional==="all"&&n.additionalProperties===void 0||i.opts.defaultAdditionalProperties===!1)&&_S.default.code(new CB.KeywordCxt(i,_S.default,"additionalProperties"));let s=(0,wS.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Sm.mergeEvaluated.props(t,(0,Sm.toHash)(s),i.props));let a=s.filter(u=>!(0,Sm.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)l(u)?p(u):(t.if((0,wS.propertyInData)(t,o,u,i.opts.ownProperties)),p(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function l(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function p(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};wm.default=qB});var TS=v(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var ES=er(),cp=B(),$S=ae(),AS=ae(),NB={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:i}=e,{opts:s}=i,a=(0,ES.allSchemaProperties)(r),c=a.filter(h=>(0,$S.alwaysValidSchema)(i,r[h]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&o.properties,p=t.name("valid");i.props!==!0&&!(i.props instanceof cp.Name)&&(i.props=(0,AS.evaluatedPropsToName)(t,i.props));let{props:u}=i;d();function d(){for(let h of a)l&&f(h),i.allErrors?m(h):(t.var(p,!0),m(h),t.if(p))}function f(h){for(let y in l)new RegExp(h).test(y)&&(0,$S.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){t.forIn("key",n,y=>{t.if((0,cp._)`${(0,ES.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:AS.Type.Str},p),i.opts.unevaluated&&u!==!0?t.assign((0,cp._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,cp.not)(p),()=>t.break())})})}}};_m.default=NB});var RS=v(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var jB=ae(),MB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,jB.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Pm.default=MB});var OS=v(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var DB=er(),LB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:DB.validateUnion,error:{message:"must match a schema in anyOf"}};Em.default=LB});var kS=v($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});var pp=B(),UB=ae(),zB={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,pp._)`{passingSchemas: ${e.passing}}`},FB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:zB,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){i.forEach((p,u)=>{let d;(0,UB.alwaysValidSchema)(o,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,pp._)`${c} && ${s}`).assign(s,!1).assign(a,(0,pp._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),d&&e.mergeEvaluated(d,pp.Name)})})}}};$m.default=FB});var IS=v(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var VB=ae(),BB={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((i,s)=>{if((0,VB.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o,!0);e.ok(o),e.mergeEvaluated(a)})}};Am.default=BB});var NS=v(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var lp=B(),qS=ae(),HB={message:({params:e})=>(0,lp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,lp._)`{failingKeyword: ${e.ifClause}}`},KB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:HB,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,qS.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=CS(n,"then"),i=CS(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(a,l("then",p),l("else",p))}else o?t.if(a,l("then")):t.if((0,lp.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(p)}function l(p,u){return()=>{let d=e.subschema({keyword:p},a);t.assign(s,a),e.mergeValidEvaluated(d,s),u?t.assign(u,(0,lp._)`${p}`):e.setParams({ifClause:p})}}}};function CS(e,t){let r=e.schema[t];return r!==void 0&&!(0,qS.alwaysValidSchema)(e,r)}Tm.default=KB});var jS=v(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});var GB=ae(),WB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,GB.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Rm.default=WB});var km=v(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var YB=dm(),QB=mS(),JB=fm(),XB=yS(),ZB=gS(),e3=ip(),t3=SS(),r3=xm(),n3=PS(),o3=TS(),i3=RS(),s3=OS(),a3=kS(),c3=IS(),p3=NS(),l3=jS();function u3(e=!1){let t=[i3.default,s3.default,a3.default,c3.default,p3.default,l3.default,t3.default,r3.default,e3.default,n3.default,o3.default];return e?t.push(QB.default,XB.default):t.push(YB.default,JB.default),t.push(ZB.default),t}Om.default=u3});var Cm=v(pa=>{"use strict";Object.defineProperty(pa,"__esModule",{value:!0});pa.dynamicAnchor=void 0;var Im=B(),d3=_t(),MS=Ys(),f3=ea(),m3={keyword:"$dynamicAnchor",schemaType:"string",code:e=>DS(e,e.schema)};function DS(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,Im._)`${d3.default.dynamicAnchors}${(0,Im.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:h3(e);r.if((0,Im._)`!${o}`,()=>r.assign(o,i))}pa.dynamicAnchor=DS;function h3(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:i,localRefs:s,meta:a}=t.root,{schemaId:c}=n.opts,l=new MS.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:s,meta:a});return MS.compileSchema.call(n,l),(0,f3.getValidate)(e,l)}pa.default=m3});var qm=v(la=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.dynamicRef=void 0;var LS=B(),y3=_t(),US=ea(),g3={keyword:"$dynamicRef",schemaType:"string",code:e=>zS(e,e.schema)};function zS(e,t){let{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let i=t.slice(1);if(o.allErrors)s();else{let c=r.let("valid",!1);s(c),e.ok(c)}function s(c){if(o.schemaEnv.root.dynamicAnchors[i]){let l=r.let("_v",(0,LS._)`${y3.default.dynamicAnchors}${(0,LS.getProperty)(i)}`);r.if(l,a(l,c),a(o.validateName,c))}else a(o.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,US.callRef)(e,c),r.let(l,!0)}):()=>(0,US.callRef)(e,c)}}la.dynamicRef=zS;la.default=g3});var FS=v(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var b3=Cm(),v3=ae(),x3={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,b3.dynamicAnchor)(e,""):(0,v3.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Nm.default=x3});var VS=v(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var S3=qm(),w3={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,S3.dynamicRef)(e,e.schema)};jm.default=w3});var BS=v(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});var _3=Cm(),P3=qm(),E3=FS(),$3=VS(),A3=[_3.default,P3.default,E3.default,$3.default];Mm.default=A3});var KS=v(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});var HS=ip(),T3={keyword:"dependentRequired",type:"object",schemaType:"object",error:HS.error,code:e=>(0,HS.validatePropertyDeps)(e)};Dm.default=T3});var GS=v(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var R3=ip(),O3={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,R3.validateSchemaDeps)(e)};Lm.default=O3});var WS=v(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var k3=ae(),I3={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,k3.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Um.default=I3});var YS=v(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var C3=KS(),q3=GS(),N3=WS(),j3=[C3.default,q3.default,N3.default];zm.default=j3});var XS=v(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var ln=B(),QS=ae(),JS=_t(),M3={message:"must NOT have unevaluated properties",params:({params:e})=>(0,ln._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},D3={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:M3,code(e){let{gen:t,schema:r=e.it.opts.defaultUnevaluatedProperties,data:n,errsCount:o,it:i}=e,s=e.schema===void 0&&e.it.opts.defaultUnevaluatedProperties===!1;if(!o)throw new Error("ajv implementation error");let{allErrors:a,props:c}=i;if(c instanceof ln.Name)t.if((0,ln._)`${c} !== true`,()=>t.forIn("key",n,d=>t.if(p(c,d),()=>l(d))));else if(c!==!0){let d=()=>t.forIn("key",n,f=>c===void 0?l(f):t.if(u(c,f),()=>l(f)));s&&i.errorPath.emptyStr()&&!i.compositeRule?t.if((0,ln._)`${JS.default.isAllOfVariant} === 0`,d):(!i.compositeRule||e.schema!==void 0)&&d()}s||(i.props=!0),e.ok((0,ln._)`${o} === ${JS.default.errors}`);function l(d){if(r===!1){e.setParams({unevaluatedProperty:d}),e.error(),a||t.break();return}if(!(0,QS.alwaysValidSchema)(i,r)){let f=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:d,dataPropType:QS.Type.Str},f),a||t.if((0,ln.not)(f),()=>t.break())}}function p(d,f){return(0,ln._)`!${d} || !${d}[${f}]`}function u(d,f){let m=[];for(let h in d)d[h]===!0&&m.push((0,ln._)`${f} !== ${h}`);return(0,ln.and)(...m)}}};Fm.default=D3});var ew=v(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var $o=B(),ZS=ae(),L3={message:({params:{len:e}})=>(0,$o.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,$o._)`{limit: ${e}}`},U3={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:L3,code(e){let{gen:t,schema:r,data:n,it:o}=e,i=o.items||0;if(i===!0)return;let s=t.const("len",(0,$o._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,$o._)`${s} > ${i}`);else if(typeof r=="object"&&!(0,ZS.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,$o._)`${s} <= ${i}`);t.if((0,$o.not)(c),()=>a(c,i)),e.ok(c)}o.items=!0;function a(c,l){t.forRange("i",l,s,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:ZS.Type.Num},c),o.allErrors||t.if((0,$o.not)(c),()=>t.break())})}}};Vm.default=U3});var Hm=v(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});var z3=XS(),F3=ew(),V3=[z3.default,F3.default];Bm.default=V3});var tw=v(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});var Ve=B(),B3={message:({schemaCode:e})=>(0,Ve.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ve._)`{format: ${e}}`},H3={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:B3,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:u}=a;if(!c.validateFormats)return;o?d():f();function d(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Ve._)`${m}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Ve._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Ve._)`${h}.type || "string"`).assign(g,(0,Ve._)`${h}.validate`),()=>r.assign(y,(0,Ve._)`"string"`).assign(g,h)),e.fail$data((0,Ve.or)(w(),b()));function w(){return c.strictSchema===!1?Ve.nil:(0,Ve._)`${s} && !${g}`}function b(){let S=p.$async?(0,Ve._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Ve._)`${g}(${n})`,x=(0,Ve._)`(typeof ${g} == "function" ? ${S} : ${g}.test(${n}))`;return(0,Ve._)`${g} && ${g} !== true && ${y} === ${t} && !${x}`}}function f(){let m=u.formats[i];if(!m){w();return}if(m===!0)return;let[h,y,g]=b(m);h===t&&e.pass(S());function w(){if(c.strictSchema===!1){u.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${i}" ignored in schema at path "${l}"`}}function b(x){let P=x instanceof RegExp?(0,Ve.regexpCode)(x):c.code.formats?(0,Ve._)`${c.code.formats}${(0,Ve.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:x,code:P});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,Ve._)`${T}.validate`]:["string",x,T]}function S(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Ve._)`await ${g}(${n})`}return typeof y=="function"?(0,Ve._)`${g}(${n})`:(0,Ve._)`${g}.test(${n})`}}}};Km.default=H3});var Wm=v(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});var K3=tw(),G3=[K3.default];Gm.default=G3});var rw=v($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});$i.contentVocabulary=$i.metadataVocabulary=void 0;$i.metadataVocabulary=["title","description","default","deprecated","examples"];$i.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ow=v(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});var W3=Gx(),Y3=lm(),Q3=km(),J3=BS(),X3=YS(),Z3=Hm(),eH=Wm(),nw=rw(),tH=[J3.default,W3.default,Y3.default,(0,Q3.default)(!0),eH.default,nw.metadataVocabulary,nw.contentVocabulary,X3.default,Z3.default];Ym.default=tH});var sw=v(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.DiscrError=void 0;var iw;(function(e){e.Tag="tag",e.Mapping="mapping"})(iw||(up.DiscrError=iw={}))});var Xm=v(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var Ai=B(),Qm=sw(),aw=Ys(),rH=Si(),nH=ae(),oH={message:({params:{discrError:e,tagName:t}})=>e===Qm.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf or anyOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Ai._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function iH(e,t){var r;if(!(!e.allOf||!Array.isArray(e.allOf))){for(let n of e.allOf)if(!((r=n?.properties)===null||r===void 0)&&r[t])return n.properties[t]}}var sH={keyword:"discriminator",type:"object",schemaType:"object",error:oH,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,s=o.oneOf?"oneOf":o.anyOf?"anyOf":void 0;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(!s)throw new Error("discriminator: requires oneOf or anyOf composite keyword");let c=o[s],l=t.let("valid",!1),p=t.const("tag",(0,Ai._)`${r}${(0,Ai.getProperty)(a)}`);t.if((0,Ai._)`typeof ${p} == "string"`,()=>u(),()=>e.error(!1,{discrError:Qm.DiscrError.Tag,tag:p,tagName:a})),e.ok(l);function u(){let m=f();t.if(!1);for(let h in m)t.elseIf((0,Ai._)`${p} === ${h}`),t.assign(l,d(m[h]));t.else(),e.error(!1,{discrError:Qm.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function d(m){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:m},h);return e.mergeEvaluated(y,Ai.Name),h}function f(){var m;let h={},y=w(o),g=!0;for(let x=0;x<c.length;x++){let P=c[x],T=P?.$ref;if(T&&n.mapping){let{mapping:$}=n,_=Object.keys($).filter(G=>$[G]===P.$ref);if(_.length){for(let G of _)S(G,x);continue}}if(T&&!(0,nH.schemaHasRulesButRef)(P,i.self.RULES)&&(P=aw.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,T),P instanceof aw.SchemaEnv&&(P=P.schema),P===void 0))throw new rH.default(i.opts.uriResolver,i.baseId,T);let E=(m=P?.properties)===null||m===void 0?void 0:m[a];if(!E&&P?.allOf&&(E=iH(P,a)),typeof E!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);g=g&&(y||w(P)),b(E,x)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return h;function w(x){if(Array.isArray(x.required)&&x.required.includes(a))return!0;if(x.allOf&&Array.isArray(x.allOf))for(let P of x.allOf){let T=P;if(Array.isArray(T.required)&&T.required.includes(a))return!0}return!1}function b(x,P){if(x.const)S(x.const,P);else if(x.enum)for(let T of x.enum)S(T,P);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function S(x,P){if(typeof x!="string"||x in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[x]=P}}}};Jm.default=sH});var cw=v((HZ,aH)=>{aH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var pw=v((KZ,cH)=>{cH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var lw=v((GZ,pH)=>{pH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var uw=v((WZ,lH)=>{lH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var dw=v((YZ,uH)=>{uH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var fw=v((QZ,dH)=>{dH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var mw=v((JZ,fH)=>{fH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var hw=v((XZ,mH)=>{mH.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var yw=v(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var hH=cw(),yH=pw(),gH=lw(),bH=uw(),vH=dw(),xH=fw(),SH=mw(),wH=hw(),_H=["/properties"];function PH(e){return[hH,yH,gH,bH,vH,t(this,xH),SH,t(this,wH)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,_H):n}}Zm.default=PH});var rh=v((Ie,th)=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.MissingRefError=Ie.ValidationError=Ie.CodeGen=Ie.Name=Ie.nil=Ie.stringify=Ie.str=Ie._=Ie.KeywordCxt=Ie.Ajv2020=void 0;var EH=Ff(),$H=ow(),AH=Xm(),TH=yw(),eh="https://json-schema.org/draft/2020-12/schema",Ti=class extends EH.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),$H.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(AH.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(TH.default.call(this,t),this.refs["http://json-schema.org/schema"]=eh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(eh)?eh:void 0)}};Ie.Ajv2020=Ti;th.exports=Ie=Ti;th.exports.Ajv2020=Ti;Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=Ti;var RH=xi();Object.defineProperty(Ie,"KeywordCxt",{enumerable:!0,get:function(){return RH.KeywordCxt}});var Ri=B();Object.defineProperty(Ie,"_",{enumerable:!0,get:function(){return Ri._}});Object.defineProperty(Ie,"str",{enumerable:!0,get:function(){return Ri.str}});Object.defineProperty(Ie,"stringify",{enumerable:!0,get:function(){return Ri.stringify}});Object.defineProperty(Ie,"nil",{enumerable:!0,get:function(){return Ri.nil}});Object.defineProperty(Ie,"Name",{enumerable:!0,get:function(){return Ri.Name}});Object.defineProperty(Ie,"CodeGen",{enumerable:!0,get:function(){return Ri.CodeGen}});var OH=Ws();Object.defineProperty(Ie,"ValidationError",{enumerable:!0,get:function(){return OH.default}});var kH=Si();Object.defineProperty(Ie,"MissingRefError",{enumerable:!0,get:function(){return kH.default}})});var Rw=v(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var xp=B(),Nn=xp.operators,ih={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:Nn.LTE,fail:Nn.GT},{okStr:"<",ok:Nn.LT,fail:Nn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:Nn.GTE,fail:Nn.LT},{okStr:">",ok:Nn.GT,fail:Nn.LTE}]}},P9={message:e=>(0,xp.str)`must be ${sh(e).okStr} ${e.schemaCode}`,params:e=>(0,xp._)`{comparison: ${sh(e).okStr}, limit: ${e.schemaCode}}`},E9={keyword:Object.keys(ih),type:"number",schemaType:"number",$data:!0,error:P9,code(e){let{data:t,schemaCode:r}=e;e.fail$data((0,xp._)`${t} ${sh(e).fail} ${r} || isNaN(${t})`)}};function sh(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[ih[r].exclusive]?1:0;return ih[r].ops[n]}ah.default=E9});var kw=v(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var Ow={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},$9={keyword:Object.keys(Ow),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=Ow[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ch.default=$9});var Iw=v(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});var A9=ea(),T9=km(),R9=Hm(),O9=Wm(),k9=lm(),I9=Rw(),C9=kw(),q9=["title","description","default"],N9=["$schema","id","$defs",{keyword:"$comment"},"definitions",A9.default],j9=[...k9.default.slice(1),I9.default,C9.default],M9=[N9,j9,(0,T9.default)(),O9.default,q9,R9.default];ph.default=M9});var Cw=v((Hee,D9)=>{D9.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var jw=v((Ce,Nw)=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.MissingRefError=Ce.ValidationError=Ce.CodeGen=Ce.Name=Ce.nil=Ce.stringify=Ce.str=Ce._=Ce.KeywordCxt=Ce.Ajv=void 0;var L9=Ff(),U9=Iw(),z9=Xm(),qw=Cw(),F9=["/properties"],Sp="http://json-schema.org/draft-04/schema",ha=class extends L9.default{constructor(t={}){super({...t,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),U9.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(z9.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(qw,F9):qw;this.addMetaSchema(t,Sp,!1),this.refs["http://json-schema.org/schema"]=Sp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Sp)?Sp:void 0)}};Ce.Ajv=ha;Nw.exports=Ce=ha;Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=ha;var V9=xi();Object.defineProperty(Ce,"KeywordCxt",{enumerable:!0,get:function(){return V9.KeywordCxt}});var Ci=B();Object.defineProperty(Ce,"_",{enumerable:!0,get:function(){return Ci._}});Object.defineProperty(Ce,"str",{enumerable:!0,get:function(){return Ci.str}});Object.defineProperty(Ce,"stringify",{enumerable:!0,get:function(){return Ci.stringify}});Object.defineProperty(Ce,"nil",{enumerable:!0,get:function(){return Ci.nil}});Object.defineProperty(Ce,"Name",{enumerable:!0,get:function(){return Ci.Name}});Object.defineProperty(Ce,"CodeGen",{enumerable:!0,get:function(){return Ci.CodeGen}});var B9=Ws();Object.defineProperty(Ce,"ValidationError",{enumerable:!0,get:function(){return B9.default}});var H9=Si();Object.defineProperty(Ce,"MissingRefError",{enumerable:!0,get:function(){return H9.default}})});var Bw=v(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.formatNames=Vr.fastFormats=Vr.fullFormats=void 0;function Fr(e,t){return{validate:e,compare:t}}Vr.fullFormats={date:Fr(Uw,fh),time:Fr(uh(!0),mh),"date-time":Fr(Mw(!0),Fw),"iso-time":Fr(uh(),zw),"iso-date-time":Fr(Mw(),Vw),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:J9,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:oK,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:X9,int32:{type:"number",validate:tK},int64:{type:"number",validate:rK},float:{type:"number",validate:Lw},double:{type:"number",validate:Lw},password:!0,binary:!0};Vr.fastFormats={...Vr.fullFormats,date:Fr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,fh),time:Fr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,mh),"date-time":Fr(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Fw),"iso-time":Fr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,zw),"iso-date-time":Fr(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Vw),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Vr.formatNames=Object.keys(Vr.fullFormats);function K9(e){return e%4===0&&(e%100!==0||e%400===0)}var G9=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,W9=[0,31,28,31,30,31,30,31,31,30,31,30,31];function Uw(e){let t=G9.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&K9(r)?29:W9[n])}function fh(e,t){if(e&&t)return e>t?1:e<t?-1:0}var lh=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function uh(e){return function(r){let n=lh.exec(r);if(!n)return!1;let o=+n[1],i=+n[2],s=+n[3],a=n[4],c=n[5]==="-"?-1:1,l=+(n[6]||0),p=+(n[7]||0);if(l>23||p>59||e&&!a)return!1;if(o<=23&&i<=59&&s<60)return!0;let u=i-p*c,d=o-l*c-(u<0?1:0);return(d===23||d===-1)&&(u===59||u===-1)&&s<61}}function mh(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function zw(e,t){if(!(e&&t))return;let r=lh.exec(e),n=lh.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e<t?-1:0}var dh=/t|\s/i;function Mw(e){let t=uh(e);return function(n){let o=n.split(dh);return o.length===2&&Uw(o[0])&&t(o[1])}}function Fw(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function Vw(e,t){if(!(e&&t))return;let[r,n]=e.split(dh),[o,i]=t.split(dh),s=fh(r,o);if(s!==void 0)return s||mh(n,i)}var Y9=/\/|:/,Q9=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function J9(e){return Y9.test(e)&&Q9.test(e)}var Dw=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function X9(e){return Dw.lastIndex=0,Dw.test(e)}var Z9=-(2**31),eK=2**31-1;function tK(e){return Number.isInteger(e)&&e<=eK&&e>=Z9}function rK(e){return Number.isInteger(e)}function Lw(){return!0}var nK=/[^\\]\\Z/;function oK(e){if(nK.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ba=v(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.regexpCode=xe.getEsmExportName=xe.getProperty=xe.safeStringify=xe.stringify=xe.strConcat=xe.addCodeArg=xe.str=xe._=xe.nil=xe._Code=xe.Name=xe.IDENTIFIER=xe._CodeOrName=void 0;var ya=class{};xe._CodeOrName=ya;xe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var To=class extends ya{constructor(t){if(super(),!xe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};xe.Name=To;var ir=class extends ya{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof To&&(r[n.str]=(r[n.str]||0)+1),r),{})}};xe._Code=ir;xe.nil=new ir("");function Hw(e,...t){let r=[e[0]],n=0;for(;n<t.length;)yh(r,t[n]),r.push(e[++n]);return new ir(r)}xe._=Hw;var hh=new ir("+");function Kw(e,...t){let r=[ga(e[0])],n=0;for(;n<t.length;)r.push(hh),yh(r,t[n]),r.push(hh,ga(e[++n]));return iK(r),new ir(r)}xe.str=Kw;function yh(e,t){t instanceof ir?e.push(...t._items):t instanceof To?e.push(t):e.push(cK(t))}xe.addCodeArg=yh;function iK(e){let t=1;for(;t<e.length-1;){if(e[t]===hh){let r=sK(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function sK(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof To||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof To))return`"${e}${t.slice(1)}`}function aK(e,t){return t.emptyStr()?e:e.emptyStr()?t:Kw`${e}${t}`}xe.strConcat=aK;function cK(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ga(Array.isArray(e)?e.join(","):e)}function pK(e){return new ir(ga(e))}xe.stringify=pK;function ga(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}xe.safeStringify=ga;function lK(e){return typeof e=="string"&&xe.IDENTIFIER.test(e)?new ir(`.${e}`):Hw`[${e}]`}xe.getProperty=lK;function uK(e){if(typeof e=="string"&&xe.IDENTIFIER.test(e))return new ir(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}xe.getEsmExportName=uK;function dK(e){return new ir(e.toString())}xe.regexpCode=dK});var vh=v(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.ValueScope=Dt.ValueScopeName=Dt.Scope=Dt.varKinds=Dt.UsedValueState=void 0;var Mt=ba(),gh=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},wp;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(wp||(Dt.UsedValueState=wp={}));Dt.varKinds={const:new Mt.Name("const"),let:new Mt.Name("let"),var:new Mt.Name("var")};var _p=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Mt.Name?t:this.name(t)}name(t){return new Mt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Dt.Scope=_p;var Pp=class extends Mt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Mt._)`.${new Mt.Name(r)}[${n}]`}};Dt.ValueScopeName=Pp;var fK=(0,Mt._)`\n`,bh=class extends _p{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?fK:Mt.nil}}get(){return this._scope}name(t){return new Pp(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let p=a.get(s);if(p)return p}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),l=c.length;return c[l]=r.ref,o.setValue(r,{property:i,itemIndex:l}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Mt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Mt.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,wp.Started);let p=r(l);if(p){let u=this.opts.es5?Dt.varKinds.var:Dt.varKinds.const;i=(0,Mt._)`${i}${u} ${l} = ${p};${this.opts._n}`}else if(p=o?.(l))i=(0,Mt._)`${i}${p}${this.opts._n}`;else throw new gh(l);c.set(l,wp.Completed)})}return i}};Dt.ValueScope=bh});var ee=v(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.or=ne.and=ne.not=ne.CodeGen=ne.operators=ne.varKinds=ne.ValueScopeName=ne.ValueScope=ne.Scope=ne.Name=ne.regexpCode=ne.stringify=ne.getProperty=ne.nil=ne.strConcat=ne.str=ne._=void 0;var ue=ba(),Sr=vh(),jn=ba();Object.defineProperty(ne,"_",{enumerable:!0,get:function(){return jn._}});Object.defineProperty(ne,"str",{enumerable:!0,get:function(){return jn.str}});Object.defineProperty(ne,"strConcat",{enumerable:!0,get:function(){return jn.strConcat}});Object.defineProperty(ne,"nil",{enumerable:!0,get:function(){return jn.nil}});Object.defineProperty(ne,"getProperty",{enumerable:!0,get:function(){return jn.getProperty}});Object.defineProperty(ne,"stringify",{enumerable:!0,get:function(){return jn.stringify}});Object.defineProperty(ne,"regexpCode",{enumerable:!0,get:function(){return jn.regexpCode}});Object.defineProperty(ne,"Name",{enumerable:!0,get:function(){return jn.Name}});var Tp=vh();Object.defineProperty(ne,"Scope",{enumerable:!0,get:function(){return Tp.Scope}});Object.defineProperty(ne,"ValueScope",{enumerable:!0,get:function(){return Tp.ValueScope}});Object.defineProperty(ne,"ValueScopeName",{enumerable:!0,get:function(){return Tp.ValueScopeName}});Object.defineProperty(ne,"varKinds",{enumerable:!0,get:function(){return Tp.varKinds}});ne.operators={GT:new ue._Code(">"),GTE:new ue._Code(">="),LT:new ue._Code("<"),LTE:new ue._Code("<="),EQ:new ue._Code("==="),NEQ:new ue._Code("!=="),NOT:new ue._Code("!"),OR:new ue._Code("||"),AND:new ue._Code("&&"),ADD:new ue._Code("+")};var dn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},xh=class extends dn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Sr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Ni(this.rhs,t,r)),this}get names(){return this.rhs instanceof ue._CodeOrName?this.rhs.names:{}}},Ep=class extends dn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof ue.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Ni(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ue.Name?{}:{...this.lhs.names};return Ap(t,this.rhs)}},Sh=class extends Ep{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},wh=class extends dn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},_h=class extends dn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Ph=class extends dn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Eh=class extends dn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Ni(this.code,t,r),this}get names(){return this.code instanceof ue._CodeOrName?this.code.names:{}}},va=class extends dn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||(mK(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ko(t,r.names),{})}},fn=class extends va{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},$h=class extends va{},qi=class extends fn{};qi.kind="else";var Ro=class e extends fn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new qi(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Gw(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Ni(this.condition,t,r),this}get names(){let t=super.names;return Ap(t,this.condition),this.else&&ko(t,this.else.names),t}};Ro.kind="if";var Oo=class extends fn{};Oo.kind="for";var Ah=class extends Oo{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Ni(this.iteration,t,r),this}get names(){return ko(super.names,this.iteration.names)}},Th=class extends Oo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?Sr.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=Ap(super.names,this.from);return Ap(t,this.to)}},$p=class extends Oo{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Ni(this.iterable,t,r),this}get names(){return ko(super.names,this.iterable.names)}},xa=class extends fn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};xa.kind="func";var Sa=class extends va{render(t){return"return "+super.render(t)}};Sa.kind="return";var Rh=class extends fn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&ko(t,this.catch.names),this.finally&&ko(t,this.finally.names),t}},wa=class extends fn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};wa.kind="catch";var _a=class extends fn{render(t){return"finally"+super.render(t)}};_a.kind="finally";var Oh=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
15
+ `:""},this._extScope=t,this._scope=new Sr.Scope({parent:t}),this._nodes=[new $h]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new xh(t,i,n)),i}const(t,r,n){return this._def(Sr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Sr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Sr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ep(t,r,n))}add(t,r){return this._leafNode(new Sh(t,ne.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ue.nil&&this._leafNode(new Eh(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,ue.addCodeArg)(r,o));return r.push("}"),new ue._Code(r)}if(t,r,n){if(this._blockNode(new Ro(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Ro(t))}else(){return this._elseNode(new qi)}endIf(){return this._endBlockNode(Ro,qi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ah(t),r)}forRange(t,r,n,o,i=this.opts.es5?Sr.varKinds.var:Sr.varKinds.let){let s=this._scope.toName(t);return this._for(new Th(i,s,r,n),()=>o(s))}forOf(t,r,n,o=Sr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof ue.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ue._)`${s}.length`,a=>{this.var(i,(0,ue._)`${s}[${a}]`),n(i)})}return this._for(new $p("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?Sr.varKinds.var:Sr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ue._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new $p("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(Oo)}label(t){return this._leafNode(new wh(t))}break(t){return this._leafNode(new _h(t))}return(t){let r=new Sa;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Sa)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Rh;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new wa(i),r(i)}return n&&(this._currNode=o.finally=new _a,this.code(n)),this._endBlockNode(wa,_a)}throw(t){return this._leafNode(new Ph(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=ue.nil,n,o){return this._blockNode(new xa(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(xa)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Ro))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ne.CodeGen=Oh;function ko(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Ap(e,t){return t instanceof ue._CodeOrName?ko(e,t.names):e}function Ni(e,t,r){if(e instanceof ue.Name)return n(e);if(!o(e))return e;return new ue._Code(e._items.reduce((i,s)=>(s instanceof ue.Name&&(s=n(s)),s instanceof ue._Code?i.push(...s._items):i.push(s),i),[]));function n(i){let s=r[i.str];return s===void 0||t[i.str]!==1?i:(delete t[i.str],s)}function o(i){return i instanceof ue._Code&&i._items.some(s=>s instanceof ue.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function mK(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Gw(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ue._)`!${kh(e)}`}ne.not=Gw;var hK=Ww(ne.operators.AND);function yK(...e){return e.reduce(hK)}ne.and=yK;var gK=Ww(ne.operators.OR);function bK(...e){return e.reduce(gK)}ne.or=bK;function Ww(e){return(t,r)=>t===ue.nil?r:r===ue.nil?t:(0,ue._)`${kh(t)} ${e} ${kh(r)}`}function kh(e){return e instanceof ue.Name?e:(0,ue._)`(${e})`}});var ge=v(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.checkStrictMode=ce.getErrorPath=ce.Type=ce.useFunc=ce.setEvaluated=ce.evaluatedPropsToName=ce.mergeEvaluated=ce.eachItem=ce.unescapeJsonPointer=ce.escapeJsonPointer=ce.escapeFragment=ce.unescapeFragment=ce.schemaRefOrVal=ce.schemaHasRulesButRef=ce.schemaHasRules=ce.checkUnknownRules=ce.alwaysValidSchema=ce.toHash=void 0;var ke=ee(),vK=ba();function xK(e){let t={};for(let r of e)t[r]=!0;return t}ce.toHash=xK;function SK(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Jw(e,t),!Xw(t,e.self.RULES.all))}ce.alwaysValidSchema=SK;function Jw(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||t_(e,`unknown keyword: "${i}"`)}ce.checkUnknownRules=Jw;function Xw(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ce.schemaHasRules=Xw;function wK(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ce.schemaHasRulesButRef=wK;function _K({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ke._)`${r}`}return(0,ke._)`${e}${t}${(0,ke.getProperty)(n)}`}ce.schemaRefOrVal=_K;function PK(e){return Zw(decodeURIComponent(e))}ce.unescapeFragment=PK;function EK(e){return encodeURIComponent(Ch(e))}ce.escapeFragment=EK;function Ch(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ce.escapeJsonPointer=Ch;function Zw(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ce.unescapeJsonPointer=Zw;function $K(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ce.eachItem=$K;function Yw({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof ke.Name?(i instanceof ke.Name?e(o,i,s):t(o,i,s),s):i instanceof ke.Name?(t(o,s,i),i):r(i,s);return a===ke.Name&&!(c instanceof ke.Name)?n(o,c):c}}ce.mergeEvaluated={props:Yw({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,ke._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,ke._)`${r} || {}`).code((0,ke._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,ke._)`${r} || {}`),qh(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:e_}),items:Yw({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,ke._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,ke._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function e_(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,ke._)`{}`);return t!==void 0&&qh(e,r,t),r}ce.evaluatedPropsToName=e_;function qh(e,t,r){Object.keys(r).forEach(n=>e.assign((0,ke._)`${t}${(0,ke.getProperty)(n)}`,!0))}ce.setEvaluated=qh;var Qw={};function AK(e,t){return e.scopeValue("func",{ref:t,code:Qw[t.code]||(Qw[t.code]=new vK._Code(t.code))})}ce.useFunc=AK;var Ih;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ih||(ce.Type=Ih={}));function TK(e,t,r){if(e instanceof ke.Name){let n=t===Ih.Num;return r?n?(0,ke._)`"[" + ${e} + "]"`:(0,ke._)`"['" + ${e} + "']"`:n?(0,ke._)`"/" + ${e}`:(0,ke._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ke.getProperty)(e).toString():"/"+Ch(e)}ce.getErrorPath=TK;function t_(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ce.checkStrictMode=t_});var mn=v(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});var bt=ee(),RK={data:new bt.Name("data"),valCxt:new bt.Name("valCxt"),instancePath:new bt.Name("instancePath"),parentData:new bt.Name("parentData"),parentDataProperty:new bt.Name("parentDataProperty"),rootData:new bt.Name("rootData"),dynamicAnchors:new bt.Name("dynamicAnchors"),vErrors:new bt.Name("vErrors"),errors:new bt.Name("errors"),this:new bt.Name("this"),self:new bt.Name("self"),scope:new bt.Name("scope"),json:new bt.Name("json"),jsonPos:new bt.Name("jsonPos"),jsonLen:new bt.Name("jsonLen"),jsonPart:new bt.Name("jsonPart")};Nh.default=RK});var Pa=v(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.extendErrors=vt.resetErrorsCount=vt.reportExtraError=vt.reportError=vt.keyword$DataError=vt.keywordError=void 0;var be=ee(),Rp=ge(),$t=mn();vt.keywordError={message:({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`};vt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`};function OK(e,t=vt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=o_(e,t,r);n??(s||a)?r_(i,c):n_(o,(0,be._)`[${c}]`)}vt.reportError=OK;function kK(e,t=vt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=o_(e,t,r);r_(o,a),i||s||n_(n,$t.default.vErrors)}vt.reportExtraError=kK;function IK(e,t){e.assign($t.default.errors,t),e.if((0,be._)`${$t.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${$t.default.vErrors}.length`,t),()=>e.assign($t.default.vErrors,null)))}vt.resetErrorsCount=IK;function CK({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",o,$t.default.errors,a=>{e.const(s,(0,be._)`${$t.default.vErrors}[${a}]`),e.if((0,be._)`${s}.instancePath === undefined`,()=>e.assign((0,be._)`${s}.instancePath`,(0,be.strConcat)($t.default.instancePath,i.errorPath))),e.assign((0,be._)`${s}.schemaPath`,(0,be.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,be._)`${s}.schema`,r),e.assign((0,be._)`${s}.data`,n))})}vt.extendErrors=CK;function r_(e,t){let r=e.const("err",t);e.if((0,be._)`${$t.default.vErrors} === null`,()=>e.assign($t.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${$t.default.vErrors}.push(${r})`),e.code((0,be._)`${$t.default.errors}++`)}function n_(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}var Io={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function o_(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:qK(e,t,r)}function qK(e,t,r={}){let{gen:n,it:o}=e,i=[NK(o,r),jK(e,r)];return MK(e,t,i),n.object(...i)}function NK({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,Rp.getErrorPath)(t,Rp.Type.Str)}`:e;return[$t.default.instancePath,(0,be.strConcat)($t.default.instancePath,r)]}function jK({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,be.str)`${t}/${e}`;return r&&(o=(0,be.str)`${o}${(0,Rp.getErrorPath)(r,Rp.Type.Str)}`),[Io.schemaPath,o]}function MK(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:u}=a;n.push([Io.keyword,o],[Io.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),c.messages&&n.push([Io.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Io.schema,s],[Io.parentSchema,(0,be._)`${p}${u}`],[$t.default.data,i]),l&&n.push([Io.propertyName,l])}});var s_=v(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.boolOrEmptySchema=ji.topBoolOrEmptySchema=void 0;var DK=Pa(),LK=ee(),UK=mn(),zK={message:"boolean schema is false"};function FK(e){let{gen:t,schema:r,validateName:n}=e;r===!1?i_(e,!1):typeof r=="object"&&r.$async===!0?t.return(UK.default.data):(t.assign((0,LK._)`${n}.errors`,null),t.return(!0))}ji.topBoolOrEmptySchema=FK;function VK(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),i_(e)):r.var(t,!0)}ji.boolOrEmptySchema=VK;function i_(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,DK.reportError)(o,zK,void 0,t)}});var jh=v(Mi=>{"use strict";Object.defineProperty(Mi,"__esModule",{value:!0});Mi.getRules=Mi.isJSONType=void 0;var BK=["string","number","integer","boolean","null","object","array"],HK=new Set(BK);function KK(e){return typeof e=="string"&&HK.has(e)}Mi.isJSONType=KK;function GK(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Mi.getRules=GK});var Mh=v(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});Mn.shouldUseRule=Mn.shouldUseGroup=Mn.schemaHasRulesForType=void 0;function WK({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&a_(e,n)}Mn.schemaHasRulesForType=WK;function a_(e,t){return t.rules.some(r=>c_(e,r))}Mn.shouldUseGroup=a_;function c_(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Mn.shouldUseRule=c_});var Ea=v(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.reportTypeError=xt.checkDataTypes=xt.checkDataType=xt.coerceAndCheckDataType=xt.getJSONTypes=xt.getSchemaTypes=xt.DataType=void 0;var YK=jh(),QK=Mh(),JK=Pa(),X=ee(),p_=ge(),Di;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Di||(xt.DataType=Di={}));function XK(e){let t=l_(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}xt.getSchemaTypes=XK;function l_(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(YK.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}xt.getJSONTypes=l_;function ZK(e,t){let{gen:r,data:n,opts:o}=e,i=e4(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,QK.schemaHasRulesForType)(e,t[0]));if(s){let a=Lh(t,n,o.strictNumbers,Di.Wrong);r.if(a,()=>{i.length?t4(e,t,i):Uh(e)})}return s}xt.coerceAndCheckDataType=ZK;var u_=new Set(["string","number","integer","boolean","null"]);function e4(e,t){return t?e.filter(r=>u_.has(r)||t==="array"&&r==="array"):[]}function t4(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,X._)`typeof ${o}`),a=n.let("coerced",(0,X._)`undefined`);i.coerceTypes==="array"&&n.if((0,X._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,X._)`${o}[0]`).assign(s,(0,X._)`typeof ${o}`).if(Lh(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,X._)`${a} !== undefined`);for(let l of r)(u_.has(l)||l==="array"&&i.coerceTypes==="array")&&c(l);n.else(),Uh(e),n.endIf(),n.if((0,X._)`${a} !== undefined`,()=>{n.assign(o,a),r4(e,a)});function c(l){switch(l){case"string":n.elseIf((0,X._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,X._)`"" + ${o}`).elseIf((0,X._)`${o} === null`).assign(a,(0,X._)`""`);return;case"number":n.elseIf((0,X._)`${s} == "boolean" || ${o} === null
16
+ || (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,X._)`+${o}`);return;case"integer":n.elseIf((0,X._)`${s} === "boolean" || ${o} === null
17
+ || (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,X._)`+${o}`);return;case"boolean":n.elseIf((0,X._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,X._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,X._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,X._)`${s} === "string" || ${s} === "number"
18
+ || ${s} === "boolean" || ${o} === null`).assign(a,(0,X._)`[${o}]`)}}}function r4({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,X._)`${t} !== undefined`,()=>e.assign((0,X._)`${t}[${r}]`,n))}function Dh(e,t,r,n=Di.Correct){let o=n===Di.Correct?X.operators.EQ:X.operators.NEQ,i;switch(e){case"null":return(0,X._)`${t} ${o} null`;case"array":i=(0,X._)`Array.isArray(${t})`;break;case"object":i=(0,X._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,X._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,X._)`typeof ${t} ${o} ${e}`}return n===Di.Correct?i:(0,X.not)(i);function s(a=X.nil){return(0,X.and)((0,X._)`typeof ${t} == "number"`,a,r?(0,X._)`isFinite(${t})`:X.nil)}}xt.checkDataType=Dh;function Lh(e,t,r,n){if(e.length===1)return Dh(e[0],t,r,n);let o,i=(0,p_.toHash)(e);if(i.array&&i.object){let s=(0,X._)`typeof ${t} != "object"`;o=i.null?s:(0,X._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=X.nil;i.number&&delete i.integer;for(let s in i)o=(0,X.and)(o,Dh(s,t,r,n));return o}xt.checkDataTypes=Lh;var n4={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,X._)`{type: ${e}}`:(0,X._)`{type: ${t}}`};function Uh(e){let t=o4(e);(0,JK.reportError)(t,n4)}xt.reportTypeError=Uh;function o4(e){let{gen:t,data:r,schema:n}=e,o=(0,p_.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var f_=v(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.assignDefaults=void 0;var Li=ee(),i4=ge();function s4(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)d_(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>d_(e,i,o.default))}Op.assignDefaults=s4;function d_(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Li._)`${i}${(0,Li.getProperty)(t)}`;if(o){(0,i4.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Li._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Li._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Li._)`${a} = ${(0,Li.stringify)(r)}`)}});var sr=v(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.validateUnion=Te.validateArray=Te.usePattern=Te.callValidateCode=Te.schemaProperties=Te.allSchemaProperties=Te.noPropertyInData=Te.propertyInData=Te.isOwnProperty=Te.hasPropFunc=Te.reportMissingProp=Te.checkMissingProp=Te.checkReportMissingProp=void 0;var qe=ee(),zh=ge(),Dn=mn(),a4=ge();function c4(e,t){let{gen:r,data:n,it:o}=e;r.if(Vh(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,qe._)`${t}`},!0),e.error()})}Te.checkReportMissingProp=c4;function p4({gen:e,data:t,it:{opts:r}},n,o){return(0,qe.or)(...n.map(i=>(0,qe.and)(Vh(e,t,i,r.ownProperties),(0,qe._)`${o} = ${i}`)))}Te.checkMissingProp=p4;function l4(e,t){e.setParams({missingProperty:t},!0),e.error()}Te.reportMissingProp=l4;function m_(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,qe._)`Object.prototype.hasOwnProperty`})}Te.hasPropFunc=m_;function Fh(e,t,r){return(0,qe._)`${m_(e)}.call(${t}, ${r})`}Te.isOwnProperty=Fh;function u4(e,t,r,n){let o=(0,qe._)`${t}${(0,qe.getProperty)(r)} !== undefined`;return n?(0,qe._)`${o} && ${Fh(e,t,r)}`:o}Te.propertyInData=u4;function Vh(e,t,r,n){let o=(0,qe._)`${t}${(0,qe.getProperty)(r)} === undefined`;return n?(0,qe.or)(o,(0,qe.not)(Fh(e,t,r))):o}Te.noPropertyInData=Vh;function h_(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Te.allSchemaProperties=h_;function d4(e,t){return h_(t).filter(r=>!(0,zh.alwaysValidSchema)(e,t[r]))}Te.schemaProperties=d4;function f4({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,l){let p=l?(0,qe._)`${e}, ${t}, ${n}${o}`:t,u=[[Dn.default.instancePath,(0,qe.strConcat)(Dn.default.instancePath,i)],[Dn.default.parentData,s.parentData],[Dn.default.parentDataProperty,s.parentDataProperty],[Dn.default.rootData,Dn.default.rootData]];s.opts.dynamicRef&&u.push([Dn.default.dynamicAnchors,Dn.default.dynamicAnchors]);let d=(0,qe._)`${p}, ${r.object(...u)}`;return c!==qe.nil?(0,qe._)`${a}.call(${c}, ${d})`:(0,qe._)`${a}(${d})`}Te.callValidateCode=f4;var m4=(0,qe._)`new RegExp`;function h4({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,qe._)`${o.code==="new RegExp"?m4:(0,a4.useFunc)(e,o)}(${r}, ${n})`})}Te.usePattern=h4;function y4(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(i,!0),s(()=>t.break()),i;function s(a){let c=t.const("len",(0,qe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:zh.Type.Num},i),t.if((0,qe.not)(i),a)})}}Te.validateArray=y4;function g4(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,zh.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);t.assign(s,(0,qe._)`${s} || ${a}`),e.mergeValidEvaluated(p,a)||t.if((0,qe.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Te.validateUnion=g4});var b_=v(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.validateKeywordUsage=Br.validSchemaType=Br.funcKeywordCode=Br.macroKeywordCode=void 0;var At=ee(),Co=mn(),b4=sr(),v4=Pa();function x4(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=g_(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:At.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Br.macroKeywordCode=x4;function S4(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;_4(c,t);let l=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,p=g_(n,o,l),u=n.let("valid");e.block$data(u,d),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function d(){if(t.errors===!1)h(),t.modifying&&y_(e),y(()=>e.error());else{let g=t.async?f():m();t.modifying&&y_(e),y(()=>w4(e,g))}}function f(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,At._)`await `),w=>n.assign(u,!1).if((0,At._)`${w} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,At._)`${w}.errors`),()=>n.throw(w))),g}function m(){let g=(0,At._)`${p}.errors`;return n.assign(g,null),h(At.nil),g}function h(g=t.async?(0,At._)`await `:At.nil){let w=c.opts.passContext?Co.default.this:Co.default.self,b=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,At._)`${g}${(0,b4.callValidateCode)(e,p,w,b)}`,t.modifying)}function y(g){var w;n.if((0,At.not)((w=t.valid)!==null&&w!==void 0?w:u),g)}}Br.funcKeywordCode=S4;function y_(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,At._)`${n.parentData}[${n.parentDataProperty}]`))}function w4(e,t){let{gen:r}=e;r.if((0,At._)`Array.isArray(${t})`,()=>{r.assign(Co.default.vErrors,(0,At._)`${Co.default.vErrors} === null ? ${t} : ${Co.default.vErrors}.concat(${t})`).assign(Co.default.errors,(0,At._)`${Co.default.vErrors}.length`),(0,v4.extendErrors)(e)},()=>e.error())}function _4({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function g_(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,At.stringify)(r)})}function P4(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Br.validSchemaType=P4;function E4({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let s=o.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Br.validateKeywordUsage=E4});var x_=v(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.extendSubschemaMode=Ln.extendSubschemaData=Ln.getSubschema=void 0;var Hr=ee(),v_=ge();function $4(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Hr._)`${e.schemaPath}${(0,Hr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Hr._)`${e.schemaPath}${(0,Hr.getProperty)(t)}${(0,Hr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,v_.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}Ln.getSubschema=$4;function A4(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:u}=t,d=a.let("data",(0,Hr._)`${t.data}${(0,Hr.getProperty)(r)}`,!0);c(d),e.errorPath=(0,Hr.str)`${l}${(0,v_.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Hr._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(o!==void 0){let l=o instanceof Hr.Name?o:a.let("data",o,!0);c(l),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}Ln.extendSubschemaData=A4;function T4(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}Ln.extendSubschemaMode=T4});var $a=v(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.getSchemaRefs=Lt.resolveUrl=Lt.normalizeId=Lt._getFullPath=Lt.getFullPath=Lt.inlineRef=void 0;var R4=ge(),O4=Bs(),k4=xf(),I4=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function C4(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Bh(e):t?S_(e)<=t:!1}Lt.inlineRef=C4;var q4=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Bh(e){for(let t in e){if(q4.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Bh)||typeof r=="object"&&Bh(r))return!0}return!1}function S_(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!I4.has(r)&&(typeof e[r]=="object"&&(0,R4.eachItem)(e[r],n=>t+=S_(n)),t===1/0))return 1/0}return t}function w_(e,t="",r){r!==!1&&(t=Ui(t));let n=e.parse(t);return __(e,n)}Lt.getFullPath=w_;function __(e,t){return e.serialize(t).split("#")[0]+"#"}Lt._getFullPath=__;var N4=/#\/?$/;function Ui(e){return e?e.replace(N4,""):""}Lt.normalizeId=Ui;function j4(e,t,r){return r=Ui(r),e.resolve(t,r)}Lt.resolveUrl=j4;var M4=/^[a-z_][-a-z0-9._]*$/i;function D4(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Ui(e[r]||t),i={"":o},s=w_(n,o,!1),a={},c=new Set;return k4(e,{allKeys:!0},(u,d,f,m)=>{if(m===void 0)return;let h=s+d,y=i[m];typeof u[r]=="string"&&(y=g.call(this,u[r])),w.call(this,u.$anchor),w.call(this,u.$dynamicAnchor),i[d]=y;function g(b){let S=this.opts.uriResolver.resolve;if(b=Ui(y?S(y,b):b),c.has(b))throw p(b);c.add(b);let x=this.refs[b];return typeof x=="string"&&(x=this.refs[x]),typeof x=="object"?l(u,x.schema,b):b!==Ui(h)&&(b[0]==="#"?(l(u,a[b],b),a[b]=u):this.refs[b]=h),b}function w(b){if(typeof b=="string"){if(!M4.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function l(u,d,f){if(d!==void 0&&!O4(u,d))throw p(f)}function p(u){return new Error(`reference "${u}" resolves to more than one schema`)}}Lt.getSchemaRefs=D4});var Ra=v(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.getData=Un.KeywordCxt=Un.validateFunctionCode=void 0;var T_=s_(),P_=Ea(),Kh=Mh(),kp=Ea(),L4=f_(),Ta=b_(),Hh=x_(),L=ee(),K=mn(),U4=$a(),hn=ge(),Aa=Pa();function z4(e){if(k_(e)&&(I_(e),O_(e))){B4(e);return}R_(e,()=>(0,T_.topBoolOrEmptySchema)(e))}Un.validateFunctionCode=z4;function R_({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,L._)`${K.default.data}, ${K.default.valCxt}`,n.$async,()=>{e.code((0,L._)`"use strict"; ${E_(r,o)}`),V4(e,o),e.code(i)}):e.func(t,(0,L._)`${K.default.data}, ${F4(o)}`,n.$async,()=>e.code(E_(r,o)).code(i))}function F4(e){return(0,L._)`{${K.default.instancePath}="", ${K.default.parentData}, ${K.default.parentDataProperty}, ${K.default.rootData}=${K.default.data}${e.dynamicRef?(0,L._)`, ${K.default.dynamicAnchors}={}`:L.nil}}={}`}function V4(e,t){e.if(K.default.valCxt,()=>{e.var(K.default.instancePath,(0,L._)`${K.default.valCxt}.${K.default.instancePath}`),e.var(K.default.parentData,(0,L._)`${K.default.valCxt}.${K.default.parentData}`),e.var(K.default.parentDataProperty,(0,L._)`${K.default.valCxt}.${K.default.parentDataProperty}`),e.var(K.default.rootData,(0,L._)`${K.default.valCxt}.${K.default.rootData}`),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,L._)`${K.default.valCxt}.${K.default.dynamicAnchors}`)},()=>{e.var(K.default.instancePath,(0,L._)`""`),e.var(K.default.parentData,(0,L._)`undefined`),e.var(K.default.parentDataProperty,(0,L._)`undefined`),e.var(K.default.rootData,K.default.data),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,L._)`{}`)})}function B4(e){let{schema:t,opts:r,gen:n}=e;R_(e,()=>{r.$comment&&t.$comment&&q_(e),Y4(e),n.let(K.default.vErrors,null),n.let(K.default.errors,0),r.unevaluated&&H4(e),C_(e),X4(e)})}function H4(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,L._)`${r}.evaluated`),t.if((0,L._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,L._)`${e.evaluated}.props`,(0,L._)`undefined`)),t.if((0,L._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,L._)`${e.evaluated}.items`,(0,L._)`undefined`))}function E_(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,L._)`/*# sourceURL=${r} */`:L.nil}function K4(e,t){if(k_(e)&&(I_(e),O_(e))){G4(e,t);return}(0,T_.boolOrEmptySchema)(e,t)}function O_({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function k_(e){return typeof e.schema!="boolean"}function G4(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&q_(e),Q4(e),J4(e);let i=n.const("_errs",K.default.errors);C_(e,i),n.var(t,(0,L._)`${i} === ${K.default.errors}`)}function I_(e){(0,hn.checkUnknownRules)(e),W4(e)}function C_(e,t){if(e.opts.jtd)return $_(e,[],!1,t);let r=(0,P_.getSchemaTypes)(e.schema),n=(0,P_.coerceAndCheckDataType)(e,r);$_(e,r,!n,t)}function W4(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,hn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Y4(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,hn.checkStrictMode)(e,"default is ignored in the schema root")}function Q4(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,U4.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function J4(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function q_({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,L._)`${K.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,L.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,L._)`${K.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function X4(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,L._)`${K.default.errors} === 0`,()=>t.return(K.default.data),()=>t.throw((0,L._)`new ${o}(${K.default.vErrors})`)):(t.assign((0,L._)`${n}.errors`,K.default.vErrors),i.unevaluated&&Z4(e),t.return((0,L._)`${K.default.errors} === 0`))}function Z4({gen:e,evaluated:t,props:r,items:n}){r instanceof L.Name&&e.assign((0,L._)`${t}.props`,r),n instanceof L.Name&&e.assign((0,L._)`${t}.items`,n)}function $_(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:l}=e,{RULES:p}=l;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,hn.schemaHasRulesButRef)(i,p))){o.block(()=>j_(e,"$ref",p.all.$ref.definition));return}c.jtd||eG(e,t),o.block(()=>{for(let d of p.rules)u(d);u(p.post)});function u(d){(0,Kh.shouldUseGroup)(i,d)&&(d.type?(o.if((0,kp.checkDataType)(d.type,s,c.strictNumbers)),A_(e,d),t.length===1&&t[0]===d.type&&r&&(o.else(),(0,kp.reportTypeError)(e)),o.endIf()):A_(e,d),a||o.if((0,L._)`${K.default.errors} === ${n||0}`))}}function A_(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,L4.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,Kh.shouldUseRule)(n,i)&&j_(e,i.keyword,i.definition,t.type)})}function eG(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(tG(e,t),e.opts.allowUnionTypes||rG(e,t),nG(e,e.dataTypes))}function tG(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{N_(e.dataTypes,r)||Gh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),iG(e,t)}}function rG(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Gh(e,"use allowUnionTypes to allow union type keyword")}function nG(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Kh.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>oG(t,s))&&Gh(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function oG(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function N_(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function iG(e,t){let r=[];for(let n of e.dataTypes)N_(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Gh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,hn.checkStrictMode)(e,t,e.opts.strictTypes)}var Ip=class{constructor(t,r,n){if((0,Ta.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,hn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",M_(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ta.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",K.default.errors))}result(t,r,n){this.failResult((0,L.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,L.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,L._)`${r} !== undefined && (${(0,L.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Aa.reportExtraError:Aa.reportError)(this,this.def.error,r)}$dataError(){(0,Aa.reportError)(this,this.def.$dataError||Aa.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Aa.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=L.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=L.nil,r=L.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,L.or)((0,L._)`${o} === undefined`,r)),t!==L.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==L.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,L.or)(s(),a());function s(){if(n.length){if(!(r instanceof L.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,L._)`${(0,kp.checkDataTypes)(c,r,i.opts.strictNumbers,kp.DataType.Wrong)}`}return L.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,L._)`!${c}(${r})`}return L.nil}}subschema(t,r){let n=(0,Hh.getSubschema)(this.it,t);(0,Hh.extendSubschemaData)(n,this.it,t),(0,Hh.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return K4(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=hn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=hn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,L.Name)),!0}};Un.KeywordCxt=Ip;function j_(e,t,r,n){let o=new Ip(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Ta.funcKeywordCode)(o,r):"macro"in r?(0,Ta.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Ta.funcKeywordCode)(o,r)}var sG=/^\/(?:[^~]|~0|~1)*$/,aG=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function M_(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return K.default.rootData;if(e[0]==="/"){if(!sG.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=K.default.rootData}else{let l=aG.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(o=l[2],o==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(i=r[t-p],!o)return i}let s=i,a=o.split("/");for(let l of a)l&&(i=(0,L._)`${i}${(0,L.getProperty)((0,hn.unescapeJsonPointer)(l))}`,s=(0,L._)`${s} && ${i}`);return s;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}Un.getData=M_});var Cp=v(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var Wh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Yh.default=Wh});var Oa=v(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});var Qh=$a(),Jh=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Qh.resolveUrl)(t,r,n),this.missingSchema=(0,Qh.normalizeId)((0,Qh.getFullPath)(t,this.missingRef))}};Xh.default=Jh});var Np=v(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.resolveSchema=ar.getCompilingSchema=ar.resolveRef=ar.compileSchema=ar.SchemaEnv=void 0;var wr=ee(),cG=Cp(),qo=mn(),_r=$a(),D_=ge(),pG=Ra(),zi=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,_r.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};ar.SchemaEnv=zi;function ey(e){let t=L_.call(this,e);if(t)return t;let r=(0,_r.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new wr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:cG.default,code:(0,wr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:qo.default.data,parentData:qo.default.parentData,parentDataProperty:qo.default.parentDataProperty,dataNames:[qo.default.data],dataPathArr:[wr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,wr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:wr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,wr._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,pG.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let u=s.toString();p=`${s.scopeRefs(qo.default.scope)}return ${u}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let f=new Function(`${qo.default.self}`,`${qo.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=e.schema,f.schemaEnv=e,e.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:m,items:h}=l;f.evaluated={props:m instanceof wr.Name?void 0:m,items:h instanceof wr.Name?void 0:h,dynamicProps:m instanceof wr.Name,dynamicItems:h instanceof wr.Name},f.source&&(f.source.evaluated=(0,wr.stringify)(f.evaluated))}return e.validate=f,e}catch(u){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),u}finally{this._compilations.delete(e)}}ar.compileSchema=ey;function lG(e,t,r){var n;r=(0,_r.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=fG.call(this,e,r);if(i===void 0){let s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(i=new zi({schema:s,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=uG.call(this,i)}ar.resolveRef=lG;function uG(e){return(0,_r.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:ey.call(this,e)}function L_(e){for(let t of this._compilations)if(dG(t,e))return t}ar.getCompilingSchema=L_;function dG(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function fG(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||qp.call(this,e,t)}function qp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,_r._getFullPath)(this.opts.uriResolver,r),o=(0,_r.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Zh.call(this,r,e);let i=(0,_r.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=qp.call(this,e,s);return typeof a?.schema!="object"?void 0:Zh.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||ey.call(this,s),i===(0,_r.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(o=(0,_r.resolveUrl)(this.opts.uriResolver,o,l)),new zi({schema:a,schemaId:c,root:e,baseId:o})}return Zh.call(this,r,s)}}ar.resolveSchema=qp;var mG=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Zh(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,D_.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!mG.has(a)&&l&&(t=(0,_r.resolveUrl)(this.opts.uriResolver,t,l))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,D_.schemaHasRulesButRef)(r,this.RULES)){let a=(0,_r.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=qp.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new zi({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var U_=v((dte,hG)=>{hG.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var F_=v(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var z_=Df();z_.code='require("ajv/dist/runtime/uri").default';ty.default=z_});var Q_=v(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.CodeGen=at.Name=at.nil=at.stringify=at.str=at._=at.KeywordCxt=void 0;var yG=Ra();Object.defineProperty(at,"KeywordCxt",{enumerable:!0,get:function(){return yG.KeywordCxt}});var Fi=ee();Object.defineProperty(at,"_",{enumerable:!0,get:function(){return Fi._}});Object.defineProperty(at,"str",{enumerable:!0,get:function(){return Fi.str}});Object.defineProperty(at,"stringify",{enumerable:!0,get:function(){return Fi.stringify}});Object.defineProperty(at,"nil",{enumerable:!0,get:function(){return Fi.nil}});Object.defineProperty(at,"Name",{enumerable:!0,get:function(){return Fi.Name}});Object.defineProperty(at,"CodeGen",{enumerable:!0,get:function(){return Fi.CodeGen}});var gG=Cp(),G_=Oa(),bG=jh(),ka=Np(),vG=ee(),Ia=$a(),jp=Ea(),ny=ge(),V_=U_(),xG=F_(),W_=(e,t)=>new RegExp(e,t);W_.code="new RegExp";var SG=["removeAdditional","useDefaults","coerceTypes"],wG=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),_G={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},PG={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},B_=200;function EG(e){var t,r,n,o,i,s,a,c,l,p,u,d,f,m,h,y,g,w,b,S,x,P,T,E,$;let _=e.strict,G=(t=e.code)===null||t===void 0?void 0:t.optimize,F=G===!0||G===void 0?1:G||0,pe=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:W_,R=(o=e.uriResolver)!==null&&o!==void 0?o:xG.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:_)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:_)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:_)!==null&&p!==void 0?p:"log",strictTuples:(d=(u=e.strictTuples)!==null&&u!==void 0?u:_)!==null&&d!==void 0?d:"log",strictRequired:(m=(f=e.strictRequired)!==null&&f!==void 0?f:_)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:F,regExp:pe}:{optimize:F,regExp:pe},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:B_,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:B_,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(S=e.schemaId)!==null&&S!==void 0?S:"$id",addUsedSchema:(x=e.addUsedSchema)!==null&&x!==void 0?x:!0,validateSchema:(P=e.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(T=e.validateFormats)!==null&&T!==void 0?T:!0,unicodeRegExp:(E=e.unicodeRegExp)!==null&&E!==void 0?E:!0,int32range:($=e.int32range)!==null&&$!==void 0?$:!0,uriResolver:R}}var Ca=class{constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...EG(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new vG.ValueScope({scope:{},prefixes:wG,es5:r,lines:n}),this.logger=kG(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,bG.getRules)(),H_.call(this,_G,t,"NOT SUPPORTED"),H_.call(this,PG,t,"DEPRECATED","warn"),this._metaOpts=RG.call(this),t.formats&&AG.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&TG.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),$G.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=V_;n==="id"&&(o={...V_},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(p,u){await i.call(this,p.$schema);let d=this._addSchema(p,u);return d.validate||s.call(this,d)}async function i(p){p&&!this.getSchema(p)&&await o.call(this,{$ref:p},!0)}async function s(p){try{return this._compileSchemaEnv(p)}catch(u){if(!(u instanceof G_.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,p)}}function a({missingSchema:p,missingRef:u}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${u} cannot be resolved`)}async function c(p){let u=await l.call(this,p);this.refs[p]||await i.call(this,u.$schema),this.refs[p]||this.addSchema(u,p,r)}async function l(p){let u=this._loading[p];if(u)return u;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:s}=this.opts;if(i=t[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,Ia.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(t){let r;for(;typeof(r=K_.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new ka.SchemaEnv({schema:{},schemaId:n});if(r=ka.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=K_.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Ia.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(CG.call(this,n,r),!r)return(0,ny.eachItem)(n,i=>ry.call(this,i)),this;NG.call(this,r);let o={...r,type:(0,jp.getJSONTypes)(r.type),schemaType:(0,jp.getJSONTypes)(r.schemaType)};return(0,ny.eachItem)(n,o.type.length===0?i=>ry.call(this,i,o):i=>o.type.forEach(s=>ry.call(this,i,o,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),s=t;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,p=s[a];l&&p&&(s[a]=Y_(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Ia.normalizeId)(s||n);let l=Ia.getSchemaRefs.call(this,t,n);return c=new ka.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):ka.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{ka.compileSchema.call(this,t)}finally{this.opts=r}}};Ca.ValidationError=gG.default;Ca.MissingRefError=G_.default;at.default=Ca;function H_(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function K_(e){return e=(0,Ia.normalizeId)(e),this.schemas[e]||this.refs[e]}function $G(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function AG(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function TG(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function RG(){let e={...this.opts};for(let t of SG)delete e[t];return e}var OG={log(){},warn(){},error(){}};function kG(e){if(e===!1)return OG;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var IG=/^[a-z_$][a-z0-9_$:-]*$/i;function CG(e,t){let{RULES:r}=this;if((0,ny.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!IG.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function ry(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=o?i.post:i.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},i.rules.push(s)),i.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,jp.getJSONTypes)(t.type),schemaType:(0,jp.getJSONTypes)(t.schemaType)}};t.before?qG.call(this,s,a,t.before):s.rules.push(a),i.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function qG(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function NG(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Y_(t)),e.validateSchema=this.compile(t,!0))}var jG={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Y_(e){return{anyOf:[e,jG]}}});var J_=v(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var MG={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};oy.default=MG});var tP=v(No=>{"use strict";Object.defineProperty(No,"__esModule",{value:!0});No.callRef=No.getValidate=void 0;var DG=Oa(),X_=sr(),Ut=ee(),Vi=mn(),Z_=Np(),Mp=ge(),LG={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:l}=i;if((r==="#"||r==="#/")&&o===l.baseId)return u();let p=Z_.resolveRef.call(c,l,o,r);if(p===void 0)throw new DG.default(n.opts.uriResolver,o,r);if(p instanceof Z_.SchemaEnv)return d(p);return f(p);function u(){if(i===l)return Dp(e,s,i,i.$async);let m=t.scopeValue("root",{ref:l});return Dp(e,(0,Ut._)`${m}.validate`,l,l.$async)}function d(m){let h=eP(e,m);Dp(e,h,m,m.$async)}function f(m){let h=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,Ut.stringify)(m)}:{ref:m}),y=t.name("valid"),g=e.subschema({schema:m,dataTypes:[],schemaPath:Ut.nil,topSchemaRef:h,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function eP(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Ut._)`${r.scopeValue("wrapper",{ref:t})}.validate`}No.getValidate=eP;function Dp(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,l=c.passContext?Vi.default.this:Ut.nil;n?p():u();function p(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,Ut._)`await ${(0,X_.callValidateCode)(e,t,l)}`),f(t),s||o.assign(m,!0)},h=>{o.if((0,Ut._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),d(h),s||o.assign(m,!1)}),e.ok(m)}function u(){e.result((0,X_.callValidateCode)(e,t,l),()=>f(t),()=>d(t))}function d(m){let h=(0,Ut._)`${m}.errors`;o.assign(Vi.default.vErrors,(0,Ut._)`${Vi.default.vErrors} === null ? ${h} : ${Vi.default.vErrors}.concat(${h})`),o.assign(Vi.default.errors,(0,Ut._)`${Vi.default.vErrors}.length`)}function f(m){var h;if(!i.opts.unevaluated)return;let y=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(i.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(i.props=Mp.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,Ut._)`${m}.evaluated.props`);i.props=Mp.mergeEvaluated.props(o,g,i.props,Ut.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=Mp.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,Ut._)`${m}.evaluated.items`);i.items=Mp.mergeEvaluated.items(o,g,i.items,Ut.Name)}}}No.callRef=Dp;No.default=LG});var rP=v(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var UG=J_(),zG=tP(),FG=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",UG.default,zG.default];iy.default=FG});var nP=v(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var Lp=ee(),zn=Lp.operators,Up={maximum:{okStr:"<=",ok:zn.LTE,fail:zn.GT},minimum:{okStr:">=",ok:zn.GTE,fail:zn.LT},exclusiveMaximum:{okStr:"<",ok:zn.LT,fail:zn.GTE},exclusiveMinimum:{okStr:">",ok:zn.GT,fail:zn.LTE}},VG={message:({keyword:e,schemaCode:t})=>(0,Lp.str)`must be ${Up[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Lp._)`{comparison: ${Up[e].okStr}, limit: ${t}}`},BG={keyword:Object.keys(Up),type:"number",schemaType:"number",$data:!0,error:VG,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Lp._)`${r} ${Up[t].fail} ${n} || isNaN(${r})`)}};sy.default=BG});var oP=v(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});var qa=ee(),HG={message:({schemaCode:e})=>(0,qa.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,qa._)`{multipleOf: ${e}}`},KG={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:HG,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,qa._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,qa._)`${s} !== parseInt(${s})`;e.fail$data((0,qa._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};ay.default=KG});var sP=v(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});function iP(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}cy.default=iP;iP.code='require("ajv/dist/runtime/ucs2length").default'});var aP=v(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var jo=ee(),GG=ge(),WG=sP(),YG={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,jo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,jo._)`{limit: ${e}}`},QG={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:YG,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?jo.operators.GT:jo.operators.LT,s=o.opts.unicode===!1?(0,jo._)`${r}.length`:(0,jo._)`${(0,GG.useFunc)(e.gen,WG.default)}(${r})`;e.fail$data((0,jo._)`${s} ${i} ${n}`)}};py.default=QG});var cP=v(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var JG=sr(),XG=ge(),Bi=ee(),ZG={message:({schemaCode:e})=>(0,Bi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Bi._)`{pattern: ${e}}`},e5={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:ZG,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,l=c.code==="new RegExp"?(0,Bi._)`new RegExp`:(0,XG.useFunc)(t,c),p=t.let("valid");t.try(()=>t.assign(p,(0,Bi._)`${l}(${i}, ${a}).test(${r})`),()=>t.assign(p,!1)),e.fail$data((0,Bi._)`!${p}`)}else{let c=(0,JG.usePattern)(e,o);e.fail$data((0,Bi._)`!${c}.test(${r})`)}}};ly.default=e5});var pP=v(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var Na=ee(),t5={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Na.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Na._)`{limit: ${e}}`},r5={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:t5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Na.operators.GT:Na.operators.LT;e.fail$data((0,Na._)`Object.keys(${r}).length ${o} ${n}`)}};uy.default=r5});var lP=v(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var ja=sr(),Ma=ee(),n5=ge(),o5={message:({params:{missingProperty:e}})=>(0,Ma.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ma._)`{missingProperty: ${e}}`},i5={keyword:"required",type:"object",schemaType:"array",$data:!0,error:o5,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:s}=e,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():p(),a.strictRequired){let f=e.parentSchema.properties,{definedProperties:m}=e.it;for(let h of r)if(f?.[h]===void 0&&!m.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,n5.checkStrictMode)(s,g,s.opts.strictRequired)}}function l(){if(c||i)e.block$data(Ma.nil,u);else for(let f of r)(0,ja.checkReportMissingProp)(e,f)}function p(){let f=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>d(f,m)),e.ok(m)}else t.if((0,ja.checkMissingProp)(e,r,f)),(0,ja.reportMissingProp)(e,f),t.else()}function u(){t.forOf("prop",n,f=>{e.setParams({missingProperty:f}),t.if((0,ja.noPropertyInData)(t,o,f,a.ownProperties),()=>e.error())})}function d(f,m){e.setParams({missingProperty:f}),t.forOf(f,n,()=>{t.assign(m,(0,ja.propertyInData)(t,o,f,a.ownProperties)),t.if((0,Ma.not)(m),()=>{e.error(),t.break()})},Ma.nil)}}};dy.default=i5});var uP=v(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var Da=ee(),s5={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Da.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Da._)`{limit: ${e}}`},a5={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:s5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Da.operators.GT:Da.operators.LT;e.fail$data((0,Da._)`${r}.length ${o} ${n}`)}};fy.default=a5});var zp=v(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var dP=Bs();dP.code='require("ajv/dist/runtime/equal").default';my.default=dP});var fP=v(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var hy=Ea(),ct=ee(),c5=ge(),p5=zp(),l5={message:({params:{i:e,j:t}})=>(0,ct.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,ct._)`{i: ${e}, j: ${t}}`},u5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:l5,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),l=i.items?(0,hy.getSchemaTypes)(i.items):[];e.block$data(c,p,(0,ct._)`${s} === false`),e.ok(c);function p(){let m=t.let("i",(0,ct._)`${r}.length`),h=t.let("j");e.setParams({i:m,j:h}),t.assign(c,!0),t.if((0,ct._)`${m} > 1`,()=>(u()?d:f)(m,h))}function u(){return l.length>0&&!l.some(m=>m==="object"||m==="array")}function d(m,h){let y=t.name("item"),g=(0,hy.checkDataTypes)(l,y,a.opts.strictNumbers,hy.DataType.Wrong),w=t.const("indices",(0,ct._)`{}`);t.for((0,ct._)`;${m}--;`,()=>{t.let(y,(0,ct._)`${r}[${m}]`),t.if(g,(0,ct._)`continue`),l.length>1&&t.if((0,ct._)`typeof ${y} == "string"`,(0,ct._)`${y} += "_"`),t.if((0,ct._)`typeof ${w}[${y}] == "number"`,()=>{t.assign(h,(0,ct._)`${w}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,ct._)`${w}[${y}] = ${m}`)})}function f(m,h){let y=(0,c5.useFunc)(t,p5.default),g=t.name("outer");t.label(g).for((0,ct._)`;${m}--;`,()=>t.for((0,ct._)`${h} = ${m}; ${h}--;`,()=>t.if((0,ct._)`${y}(${r}[${m}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};yy.default=u5});var mP=v(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var gy=ee(),d5=ge(),f5=zp(),m5={message:"must be equal to constant",params:({schemaCode:e})=>(0,gy._)`{allowedValue: ${e}}`},h5={keyword:"const",$data:!0,error:m5,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,gy._)`!${(0,d5.useFunc)(t,f5.default)}(${r}, ${o})`):e.fail((0,gy._)`${i} !== ${r}`)}};by.default=h5});var hP=v(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var La=ee(),y5=ge(),g5=zp(),b5={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,La._)`{allowedValues: ${e}}`},v5={keyword:"enum",schemaType:"array",$data:!0,error:b5,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,l=()=>c??(c=(0,y5.useFunc)(t,g5.default)),p;if(a||n)p=t.let("valid"),e.block$data(p,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let f=t.const("vSchema",i);p=(0,La.or)(...o.map((m,h)=>d(f,h)))}e.pass(p);function u(){t.assign(p,!1),t.forOf("v",i,f=>t.if((0,La._)`${l()}(${r}, ${f})`,()=>t.assign(p,!0).break()))}function d(f,m){let h=o[m];return typeof h=="object"&&h!==null?(0,La._)`${l()}(${r}, ${f}[${m}])`:(0,La._)`${r} === ${h}`}}};vy.default=v5});var yP=v(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var x5=nP(),S5=oP(),w5=aP(),_5=cP(),P5=pP(),E5=lP(),$5=uP(),A5=fP(),T5=mP(),R5=hP(),O5=[x5.default,S5.default,w5.default,_5.default,P5.default,E5.default,$5.default,A5.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},T5.default,R5.default];xy.default=O5});var wy=v(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.validateAdditionalItems=void 0;var Mo=ee(),Sy=ge(),k5={message:({params:{len:e}})=>(0,Mo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Mo._)`{limit: ${e}}`},I5={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:k5,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Sy.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}gP(e,n)}};function gP(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Mo._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Mo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Sy.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,Mo._)`${a} <= ${t.length}`);r.if((0,Mo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,p=>{e.subschema({keyword:i,dataProp:p,dataPropType:Sy.Type.Num},l),s.allErrors||r.if((0,Mo.not)(l),()=>r.break())})}}Ua.validateAdditionalItems=gP;Ua.default=I5});var _y=v(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.validateTuple=void 0;var bP=ee(),Fp=ge(),C5=sr(),q5={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return vP(e,"additionalItems",t);r.items=!0,!(0,Fp.alwaysValidSchema)(r,t)&&e.ok((0,C5.validateArray)(e))}};function vP(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;p(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Fp.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,bP._)`${i}.length`);r.forEach((u,d)=>{(0,Fp.alwaysValidSchema)(a,u)||(n.if((0,bP._)`${l} > ${d}`,()=>e.subschema({keyword:s,schemaProp:d,dataProp:d},c)),e.ok(c))});function p(u){let{opts:d,errSchemaPath:f}=a,m=r.length,h=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(d.strictTuples&&!h){let y=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${f}"`;(0,Fp.checkStrictMode)(a,y,d.strictTuples)}}}za.validateTuple=vP;za.default=q5});var xP=v(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var N5=_y(),j5={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,N5.validateTuple)(e,"items")};Py.default=j5});var wP=v(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var SP=ee(),M5=ge(),D5=sr(),L5=wy(),U5={message:({params:{len:e}})=>(0,SP.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,SP._)`{limit: ${e}}`},z5={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:U5,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,M5.alwaysValidSchema)(n,t)&&(o?(0,L5.validateAdditionalItems)(e,o):e.ok((0,D5.validateArray)(e)))}};Ey.default=z5});var _P=v($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var cr=ee(),Vp=ge(),F5={message:({params:{min:e,max:t}})=>t===void 0?(0,cr.str)`must contain at least ${e} valid item(s)`:(0,cr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,cr._)`{minContains: ${e}}`:(0,cr._)`{minContains: ${e}, maxContains: ${t}}`},V5={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:F5,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:l}=n;i.opts.next?(s=c===void 0?1:c,a=l):s=1;let p=t.const("len",(0,cr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Vp.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Vp.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Vp.alwaysValidSchema)(i,r)){let h=(0,cr._)`${p} >= ${s}`;a!==void 0&&(h=(0,cr._)`${h} && ${p} <= ${a}`),e.pass(h);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?f(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,cr._)`${o}.length > 0`,d)):(t.let(u,!1),d()),e.result(u,()=>e.reset());function d(){let h=t.name("_valid"),y=t.let("count",0);f(h,()=>t.if(h,()=>m(y)))}function f(h,y){t.forRange("i",0,p,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Vp.Type.Num,compositeRule:!0},h),y()})}function m(h){t.code((0,cr._)`${h}++`),a===void 0?t.if((0,cr._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,cr._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,cr._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};$y.default=V5});var $P=v(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.validateSchemaDeps=Kr.validatePropertyDeps=Kr.error=void 0;var Ay=ee(),B5=ge(),Fa=sr();Kr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Ay.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Ay._)`{property: ${e},
19
+ missingProperty: ${n},
20
+ depsCount: ${t},
21
+ deps: ${r}}`};var H5={keyword:"dependencies",type:"object",schemaType:"object",error:Kr.error,code(e){let[t,r]=K5(e);PP(e,t),EP(e,r)}};function K5({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function PP(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Fa.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let l of a)(0,Fa.checkReportMissingProp)(e,l)}):(r.if((0,Ay._)`${c} && (${(0,Fa.checkMissingProp)(e,a,i)})`),(0,Fa.reportMissingProp)(e,i),r.else())}}Kr.validatePropertyDeps=PP;function EP(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,B5.alwaysValidSchema)(i,t[a])||(r.if((0,Fa.propertyInData)(r,n,a,i.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}Kr.validateSchemaDeps=EP;Kr.default=H5});var TP=v(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var AP=ee(),G5=ge(),W5={message:"property name must be valid",params:({params:e})=>(0,AP._)`{propertyName: ${e.propertyName}}`},Y5={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:W5,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,G5.alwaysValidSchema)(o,r))return;let i=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),t.if((0,AP.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Ty.default=Y5});var Oy=v(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var Bp=sr(),Pr=ee(),Q5=mn(),Hp=ge(),J5={message:"must NOT have additional properties",params:({params:e})=>(0,Pr._)`{additionalProperty: ${e.additionalProperty}}`},X5={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:J5,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,Hp.alwaysValidSchema)(s,r))return;let l=(0,Bp.allSchemaProperties)(n.properties),p=(0,Bp.allSchemaProperties)(n.patternProperties);u(),e.ok((0,Pr._)`${i} === ${Q5.default.errors}`);function u(){t.forIn("key",o,y=>{!l.length&&!p.length?m(y):t.if(d(y),()=>m(y))})}function d(y){let g;if(l.length>8){let w=(0,Hp.schemaRefOrVal)(s,n.properties,"properties");g=(0,Bp.isOwnProperty)(t,w,y)}else l.length?g=(0,Pr.or)(...l.map(w=>(0,Pr._)`${y} === ${w}`)):g=Pr.nil;return p.length&&(g=(0,Pr.or)(g,...p.map(w=>(0,Pr._)`${(0,Bp.usePattern)(e,w)}.test(${y})`))),(0,Pr.not)(g)}function f(y){t.code((0,Pr._)`delete ${o}[${y}]`)}function m(y){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){f(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Hp.alwaysValidSchema)(s,r)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,Pr.not)(g),()=>{e.reset(),f(y)})):(h(y,g),a||t.if((0,Pr.not)(g),()=>t.break()))}}function h(y,g,w){let b={keyword:"additionalProperties",dataProp:y,dataPropType:Hp.Type.Str};w===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,g)}}};Ry.default=X5});var kP=v(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var Z5=Ra(),RP=sr(),ky=ge(),OP=Oy(),eW={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&OP.default.code(new Z5.KeywordCxt(i,OP.default,"additionalProperties"));let s=(0,RP.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=ky.mergeEvaluated.props(t,(0,ky.toHash)(s),i.props));let a=s.filter(u=>!(0,ky.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)l(u)?p(u):(t.if((0,RP.propertyInData)(t,o,u,i.opts.ownProperties)),p(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function l(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function p(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};Iy.default=eW});var NP=v(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var IP=sr(),Kp=ee(),CP=ge(),qP=ge(),tW={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:i}=e,{opts:s}=i,a=(0,IP.allSchemaProperties)(r),c=a.filter(h=>(0,CP.alwaysValidSchema)(i,r[h]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&o.properties,p=t.name("valid");i.props!==!0&&!(i.props instanceof Kp.Name)&&(i.props=(0,qP.evaluatedPropsToName)(t,i.props));let{props:u}=i;d();function d(){for(let h of a)l&&f(h),i.allErrors?m(h):(t.var(p,!0),m(h),t.if(p))}function f(h){for(let y in l)new RegExp(h).test(y)&&(0,CP.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){t.forIn("key",n,y=>{t.if((0,Kp._)`${(0,IP.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:qP.Type.Str},p),i.opts.unevaluated&&u!==!0?t.assign((0,Kp._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,Kp.not)(p),()=>t.break())})})}}};Cy.default=tW});var jP=v(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var rW=ge(),nW={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,rW.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};qy.default=nW});var MP=v(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var oW=sr(),iW={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:oW.validateUnion,error:{message:"must match a schema in anyOf"}};Ny.default=iW});var DP=v(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var Gp=ee(),sW=ge(),aW={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Gp._)`{passingSchemas: ${e.passing}}`},cW={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:aW,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){i.forEach((p,u)=>{let d;(0,sW.alwaysValidSchema)(o,p)?t.var(c,!0):d=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,Gp._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Gp._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),d&&e.mergeEvaluated(d,Gp.Name)})})}}};jy.default=cW});var LP=v(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var pW=ge(),lW={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((i,s)=>{if((0,pW.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o);e.ok(o),e.mergeEvaluated(a)})}};My.default=lW});var FP=v(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var Wp=ee(),zP=ge(),uW={message:({params:e})=>(0,Wp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Wp._)`{failingKeyword: ${e.ifClause}}`},dW={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:uW,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,zP.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=UP(n,"then"),i=UP(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(a,l("then",p),l("else",p))}else o?t.if(a,l("then")):t.if((0,Wp.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(p)}function l(p,u){return()=>{let d=e.subschema({keyword:p},a);t.assign(s,a),e.mergeValidEvaluated(d,s),u?t.assign(u,(0,Wp._)`${p}`):e.setParams({ifClause:p})}}}};function UP(e,t){let r=e.schema[t];return r!==void 0&&!(0,zP.alwaysValidSchema)(e,r)}Dy.default=dW});var VP=v(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var fW=ge(),mW={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,fW.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ly.default=mW});var BP=v(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var hW=wy(),yW=xP(),gW=_y(),bW=wP(),vW=_P(),xW=$P(),SW=TP(),wW=Oy(),_W=kP(),PW=NP(),EW=jP(),$W=MP(),AW=DP(),TW=LP(),RW=FP(),OW=VP();function kW(e=!1){let t=[EW.default,$W.default,AW.default,TW.default,RW.default,OW.default,SW.default,wW.default,xW.default,_W.default,PW.default];return e?t.push(yW.default,bW.default):t.push(hW.default,gW.default),t.push(vW.default),t}Uy.default=kW});var HP=v(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var Be=ee(),IW={message:({schemaCode:e})=>(0,Be.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Be._)`{format: ${e}}`},CW={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:IW,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:u}=a;if(!c.validateFormats)return;o?d():f();function d(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Be._)`${m}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Be._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Be._)`${h}.type || "string"`).assign(g,(0,Be._)`${h}.validate`),()=>r.assign(y,(0,Be._)`"string"`).assign(g,h)),e.fail$data((0,Be.or)(w(),b()));function w(){return c.strictSchema===!1?Be.nil:(0,Be._)`${s} && !${g}`}function b(){let S=p.$async?(0,Be._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Be._)`${g}(${n})`,x=(0,Be._)`(typeof ${g} == "function" ? ${S} : ${g}.test(${n}))`;return(0,Be._)`${g} && ${g} !== true && ${y} === ${t} && !${x}`}}function f(){let m=u.formats[i];if(!m){w();return}if(m===!0)return;let[h,y,g]=b(m);h===t&&e.pass(S());function w(){if(c.strictSchema===!1){u.logger.warn(x());return}throw new Error(x());function x(){return`unknown format "${i}" ignored in schema at path "${l}"`}}function b(x){let P=x instanceof RegExp?(0,Be.regexpCode)(x):c.code.formats?(0,Be._)`${c.code.formats}${(0,Be.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:x,code:P});return typeof x=="object"&&!(x instanceof RegExp)?[x.type||"string",x.validate,(0,Be._)`${T}.validate`]:["string",x,T]}function S(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Be._)`await ${g}(${n})`}return typeof y=="function"?(0,Be._)`${g}(${n})`:(0,Be._)`${g}.test(${n})`}}}};zy.default=CW});var KP=v(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var qW=HP(),NW=[qW.default];Fy.default=NW});var GP=v(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.contentVocabulary=Hi.metadataVocabulary=void 0;Hi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Hi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var YP=v(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var jW=rP(),MW=yP(),DW=BP(),LW=KP(),WP=GP(),UW=[jW.default,MW.default,(0,DW.default)(),LW.default,WP.metadataVocabulary,WP.contentVocabulary];Vy.default=UW});var JP=v(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.DiscrError=void 0;var QP;(function(e){e.Tag="tag",e.Mapping="mapping"})(QP||(Yp.DiscrError=QP={}))});var ZP=v(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var Ki=ee(),By=JP(),XP=Np(),zW=Oa(),FW=ge(),VW={message:({params:{discrError:e,tagName:t}})=>e===By.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Ki._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},BW={keyword:"discriminator",type:"object",schemaType:"object",error:VW,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,{oneOf:s}=o;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Ki._)`${r}${(0,Ki.getProperty)(a)}`);t.if((0,Ki._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:By.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function p(){let f=d();t.if(!1);for(let m in f)t.elseIf((0,Ki._)`${l} === ${m}`),t.assign(c,u(f[m]));t.else(),e.error(!1,{discrError:By.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function u(f){let m=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:f},m);return e.mergeEvaluated(h,Ki.Name),m}function d(){var f;let m={},h=g(o),y=!0;for(let S=0;S<s.length;S++){let x=s[S];if(x?.$ref&&!(0,FW.schemaHasRulesButRef)(x,i.self.RULES)){let T=x.$ref;if(x=XP.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,T),x instanceof XP.SchemaEnv&&(x=x.schema),x===void 0)throw new zW.default(i.opts.uriResolver,i.baseId,T)}let P=(f=x?.properties)===null||f===void 0?void 0:f[a];if(typeof P!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||g(x)),w(P,S)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return m;function g({required:S}){return Array.isArray(S)&&S.includes(a)}function w(S,x){if(S.const)b(S.const,x);else if(S.enum)for(let P of S.enum)b(P,x);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function b(S,x){if(typeof S!="string"||S in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[S]=x}}}};Hy.default=BW});var eE=v((ere,HW)=>{HW.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var rE=v((Ne,Ky)=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.MissingRefError=Ne.ValidationError=Ne.CodeGen=Ne.Name=Ne.nil=Ne.stringify=Ne.str=Ne._=Ne.KeywordCxt=Ne.Ajv=void 0;var KW=Q_(),GW=YP(),WW=ZP(),tE=eE(),YW=["/properties"],Qp="http://json-schema.org/draft-07/schema",Gi=class extends KW.default{_addVocabularies(){super._addVocabularies(),GW.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(WW.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(tE,YW):tE;this.addMetaSchema(t,Qp,!1),this.refs["http://json-schema.org/schema"]=Qp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Qp)?Qp:void 0)}};Ne.Ajv=Gi;Ky.exports=Ne=Gi;Ky.exports.Ajv=Gi;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Gi;var QW=Ra();Object.defineProperty(Ne,"KeywordCxt",{enumerable:!0,get:function(){return QW.KeywordCxt}});var Wi=ee();Object.defineProperty(Ne,"_",{enumerable:!0,get:function(){return Wi._}});Object.defineProperty(Ne,"str",{enumerable:!0,get:function(){return Wi.str}});Object.defineProperty(Ne,"stringify",{enumerable:!0,get:function(){return Wi.stringify}});Object.defineProperty(Ne,"nil",{enumerable:!0,get:function(){return Wi.nil}});Object.defineProperty(Ne,"Name",{enumerable:!0,get:function(){return Wi.Name}});Object.defineProperty(Ne,"CodeGen",{enumerable:!0,get:function(){return Wi.CodeGen}});var JW=Cp();Object.defineProperty(Ne,"ValidationError",{enumerable:!0,get:function(){return JW.default}});var XW=Oa();Object.defineProperty(Ne,"MissingRefError",{enumerable:!0,get:function(){return XW.default}})});var nE=v(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.formatLimitDefinition=void 0;var ZW=rE(),Er=ee(),Fn=Er.operators,Jp={formatMaximum:{okStr:"<=",ok:Fn.LTE,fail:Fn.GT},formatMinimum:{okStr:">=",ok:Fn.GTE,fail:Fn.LT},formatExclusiveMaximum:{okStr:"<",ok:Fn.LT,fail:Fn.GTE},formatExclusiveMinimum:{okStr:">",ok:Fn.GT,fail:Fn.LTE}},eY={message:({keyword:e,schemaCode:t})=>(0,Er.str)`should be ${Jp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Er._)`{comparison: ${Jp[e].okStr}, limit: ${t}}`};Yi.formatLimitDefinition={keyword:Object.keys(Jp),type:"string",schemaType:"string",$data:!0,error:eY,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:i}=e,{opts:s,self:a}=i;if(!s.validateFormats)return;let c=new ZW.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?l():p();function l(){let d=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),f=t.const("fmt",(0,Er._)`${d}[${c.schemaCode}]`);e.fail$data((0,Er.or)((0,Er._)`typeof ${f} != "object"`,(0,Er._)`${f} instanceof RegExp`,(0,Er._)`typeof ${f}.compare != "function"`,u(f)))}function p(){let d=c.schema,f=a.formats[d];if(!f||f===!0)return;if(typeof f!="object"||f instanceof RegExp||typeof f.compare!="function")throw new Error(`"${o}": format "${d}" does not define "compare" function`);let m=t.scopeValue("formats",{key:d,ref:f,code:s.code.formats?(0,Er._)`${s.code.formats}${(0,Er.getProperty)(d)}`:void 0});e.fail$data(u(m))}function u(d){return(0,Er._)`${d}.compare(${r}, ${n}) ${Jp[o].fail} 0`}},dependencies:["format"]};var tY=e=>(e.addKeyword(Yi.formatLimitDefinition),e);Yi.default=tY});var aE=v((Va,sE)=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var Qi=Bw(),rY=nE(),Gy=ee(),oE=new Gy.Name("fullFormats"),nY=new Gy.Name("fastFormats"),Wy=(e,t={keywords:!0})=>{if(Array.isArray(t))return iE(e,t,Qi.fullFormats,oE),e;let[r,n]=t.mode==="fast"?[Qi.fastFormats,nY]:[Qi.fullFormats,oE],o=t.formats||Qi.formatNames;return iE(e,o,r,n),t.keywords&&(0,rY.default)(e),e};Wy.get=(e,t="full")=>{let n=(t==="fast"?Qi.fastFormats:Qi.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function iE(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,Gy._)`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}sE.exports=Va=Wy;Object.defineProperty(Va,"__esModule",{value:!0});Va.default=Wy});var DE=v((roe,ME)=>{"use strict";ME.exports=(function(){function e(t,r,n,o,i){return t<r||n<r?t>n?n+1:t+1:o===i?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var o=t.length,i=r.length;o>0&&t.charCodeAt(o-1)===r.charCodeAt(i-1);)o--,i--;for(var s=0;s<o&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(o-=s,i-=s,o===0||i<3)return i;var a=0,c,l,p,u,d,f,m,h,y,g,w,b,S=[];for(c=0;c<o;c++)S.push(c+1),S.push(t.charCodeAt(s+c));for(var x=S.length-1;a<i-3;)for(y=r.charCodeAt(s+(l=a)),g=r.charCodeAt(s+(p=a+1)),w=r.charCodeAt(s+(u=a+2)),b=r.charCodeAt(s+(d=a+3)),f=a+=4,c=0;c<x;c+=2)m=S[c],h=S[c+1],l=e(m,l,p,y,h),p=e(l,p,u,g,h),u=e(p,u,d,w,h),f=e(u,d,f,b,h),S[c]=f,d=u,u=p,p=l,l=m;for(;a<i;)for(y=r.charCodeAt(s+(l=a)),f=++a,c=0;c<x;c+=2)m=S[c],S[c]=f=e(m,l,f,y,S[c+1]),l=m;return f}})()});var Qa=v(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var cs;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(cs=en.Kind||(en.Kind={}));function wQ(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:cs.MAPPING,parent:null,errors:[]};return n}en.newMapping=wQ;function _Q(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:cs.ANCHOR_REF,parent:null}}en.newAnchorRef=_Q;function PQ(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:cs.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}en.newScalar=PQ;function pT(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:cs.SEQ,parent:null}}en.newItems=pT;function EQ(){return pT()}en.newSeq=EQ;function $Q(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:cs.MAP,parent:null}}en.newMap=$Q});var Fo=v(Zn=>{"use strict";Object.defineProperty(Zn,"__esModule",{value:!0});function lT(e){return typeof e>"u"||e===null}Zn.isNothing=lT;function AQ(e){return typeof e=="object"&&e!==null}Zn.isObject=AQ;function TQ(e){return Array.isArray(e)?e:lT(e)?[]:[e]}Zn.toArray=TQ;function RQ(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}Zn.extend=RQ;function OQ(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}Zn.repeat=OQ;function kQ(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Zn.isNegativeZero=kQ});var ps=v((Bfe,uT)=>{"use strict";var IQ=(function(){function e(t,r,n){r===void 0&&(r=null),n===void 0&&(n=!1),this.name="YAMLException",this.reason=t,this.mark=r,this.message=this.toString(!1),this.isWarning=n}return e.isInstance=function(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function")for(var r=0,n=t.getClassIdentifier();r<n.length;r++){var o=n[r];if(o==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){var t=[];return t.concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(t){t===void 0&&(t=!1);var r;return r="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(r+=" "+this.mark.toString()),r},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e})();uT.exports=IQ});var mT=v((Hfe,fT)=>{"use strict";var dT=Fo(),CQ=(function(){function e(t,r,n,o,i){this.name=t,this.buffer=r,this.position=n,this.line=o,this.column=i}return e.prototype.getSnippet=function(t,r){t===void 0&&(t=0),r===void 0&&(r=75);var n,o,i,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",o=this.position;o>0&&`\0\r
22
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(o-1))===-1;)if(o-=1,this.position-o>r/2-1){n=" ... ",o+=5;break}for(i="",s=this.position;s<this.buffer.length&&`\0\r
23
+ \x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){i=" ... ",s-=5;break}return a=this.buffer.slice(o,s),dT.repeat(" ",t)+n+a+i+`
24
+ `+dT.repeat(" ",t+this.position-o+n.length)+"^"},e.prototype.toString=function(t){t===void 0&&(t=!0);var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
25
+ `+r)),n},e})();fT.exports=CQ});var ut=v(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});var hT=ps(),qQ=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],NQ=["scalar","sequence","mapping"];function jQ(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var MQ=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(qQ.indexOf(n)===-1)throw new hT('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.defaultStyle=r.defaultStyle||null,this.styleAliases=jQ(r.styleAliases||null),NQ.indexOf(this.kind)===-1)throw new hT('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();Pg.Type=MQ});var ls=v($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});var yT=Fo(),Yl=ps(),DQ=ut();function Eg(e,t,r){var n=[];return e.include.forEach(function(o){r=Eg(o,t,r)}),e[t].forEach(function(o){r.forEach(function(i,s){i.tag===o.tag&&n.push(s)}),r.push(o)}),r.filter(function(o,i){return n.indexOf(i)===-1})}function LQ(){var e={},t,r;function n(o){e[o.tag]=o}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}var UQ=(function(){function e(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(r){if(r.loadKind&&r.loadKind!=="scalar")throw new Yl("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Eg(this,"implicit",[]),this.compiledExplicit=Eg(this,"explicit",[]),this.compiledTypeMap=LQ(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var r,n;switch(arguments.length){case 1:r=e.DEFAULT,n=arguments[0];break;case 2:r=arguments[0],n=arguments[1];break;default:throw new Yl("Wrong number of arguments for Schema.create function")}if(r=yT.toArray(r),n=yT.toArray(n),!r.every(function(o){return o instanceof e}))throw new Yl("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(o){return o instanceof DQ.Type}))throw new Yl("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();$g.Schema=UQ});var bT=v((Wfe,gT)=>{"use strict";var zQ=ut();gT.exports=new zQ.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var xT=v((Yfe,vT)=>{"use strict";var FQ=ut();vT.exports=new FQ.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var wT=v((Qfe,ST)=>{"use strict";var VQ=ut();ST.exports=new VQ.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var PT=v((Jfe,_T)=>{"use strict";var BQ=ls();_T.exports=new BQ.Schema({explicit:[bT(),xT(),wT()]})});var $T=v((Xfe,ET)=>{"use strict";var HQ=ut();function KQ(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function GQ(){return null}function WQ(e){return e===null}ET.exports=new HQ.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:KQ,construct:GQ,predicate:WQ,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var TT=v((Zfe,AT)=>{"use strict";var YQ=ut();function QQ(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function JQ(e){return e==="true"||e==="True"||e==="TRUE"}function XQ(e){return Object.prototype.toString.call(e)==="[object Boolean]"}AT.exports=new YQ.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:QQ,construct:JQ,predicate:XQ,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var OT=v((eme,RT)=>{"use strict";var ZQ=Fo(),e6=ut();function t6(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function r6(e){return 48<=e&&e<=55}function n6(e){return 48<=e&&e<=57}function o6(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!t6(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(!r6(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!n6(e.charCodeAt(r)))return!1;n=!0}return n?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function i6(e){var t=e,r=1,n,o,i=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){i.unshift(parseInt(s,10))}),t=0,o=1,i.forEach(function(s){t+=s*o,o*=60}),r*t):r*parseInt(t,10)}function s6(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!ZQ.isNegativeZero(e)}RT.exports=new e6.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:o6,construct:i6,predicate:s6,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var CT=v((tme,IT)=>{"use strict";var kT=Fo(),a6=ut(),c6=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function p6(e){if(e===null)return!1;var t,r,n,o;return!!c6.test(e)}function l6(e){var t,r,n,o;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,o=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:0<=t.indexOf(":")?(t.split(":").forEach(function(i){o.unshift(parseFloat(i,10))}),t=0,n=1,o.forEach(function(i){t+=i*n,n*=60}),r*t):r*parseFloat(t,10)}function u6(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(kT.isNegativeZero(e))return"-0.0";return e.toString(10)}function d6(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||kT.isNegativeZero(e))}IT.exports=new a6.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:p6,construct:l6,predicate:d6,represent:u6,defaultStyle:"lowercase"})});var NT=v((rme,qT)=>{"use strict";var f6=ls();qT.exports=new f6.Schema({include:[PT()],implicit:[$T(),TT(),OT(),CT()]})});var MT=v((nme,jT)=>{"use strict";var m6=ls();jT.exports=new m6.Schema({include:[NT()]})});var UT=v((ome,LT)=>{"use strict";var h6=ut(),DT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function y6(e){if(e===null)return!1;var t,r,n,o,i,s,a,c=0,l=null,p,u,d;return t=DT.exec(e),t!==null}function g6(e){var t,r,n,o,i,s,a,c=0,l=null,p,u,d;if(t=DT.exec(e),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(p=+t[10],u=+(t[11]||0),l=(p*60+u)*6e4,t[9]==="-"&&(l=-l)),d=new Date(Date.UTC(r,n,o,i,s,a,c)),l&&d.setTime(d.getTime()-l),d}function b6(e){return e.toISOString()}LT.exports=new h6.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:y6,construct:g6,instanceOf:Date,represent:b6})});var FT=v((ime,zT)=>{"use strict";var v6=ut();function x6(e){return e==="<<"||e===null}zT.exports=new v6.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:x6})});var BT=v((sme,VT)=>{"use strict";var Ql=cu("buffer").Buffer,S6=ut(),Ag=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
26
+ \r`;function w6(e){if(e===null)return!1;var t,r,n=0,o=0,i=e.length,s=Ag;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function _6(e){var t,r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,s=Ag,a=0,c=[];for(r=0;r<i;r++)r%4===0&&r&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(o.charAt(r));return n=i%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),Ql?new Ql(c):c}function P6(e){var t="",r=0,n,o,i=e.length,s=Ag;for(n=0;n<i;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return o=i%3,o===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):o===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):o===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function E6(e){return Ql&&Ql.isBuffer(e)}VT.exports=new S6.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:w6,construct:_6,predicate:E6,represent:P6})});var KT=v((ame,HT)=>{"use strict";var $6=ut(),A6=Object.prototype.hasOwnProperty,T6=Object.prototype.toString;function R6(e){if(e===null)return!0;var t=[],r,n,o,i,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(o=a[r],s=!1,T6.call(o)!=="[object Object]")return!1;for(i in o)if(A6.call(o,i))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function O6(e){return e!==null?e:[]}HT.exports=new $6.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:R6,construct:O6})});var WT=v((cme,GT)=>{"use strict";var k6=ut(),Tg=Qa(),I6=Object.prototype.toString;function C6(e){if(e===null)return!0;if(e.kind!=Tg.Kind.SEQ)return!1;var t,r,n,o,i,s=e.items;for(t=0,r=s.length;t<r;t+=1)if(n=s[t],I6.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function q6(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,o,i=e.items;for(o=Tg.newItems(),o.parent=e.parent,o.startPosition=e.startPosition,o.endPosition=e.endPosition,t=0,r=i.length;t<r;t+=1){var s=i[t],a=s.mappings[0],c=Tg.newItems();c.parent=o,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],o.items.push(c)}return o}GT.exports=new k6.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:C6,construct:q6})});var QT=v((pme,YT)=>{"use strict";var N6=ut(),j6=Qa();function M6(e){return e===null?!0:e.kind==j6.Kind.MAP}function D6(e){return e!==null?e:{}}YT.exports=new N6.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:M6,construct:D6})});var Jl=v((lme,JT)=>{"use strict";var L6=ls(),U6=new L6.Schema({include:[MT()],implicit:[UT(),FT()],explicit:[BT(),KT(),WT(),QT()]});JT.exports=U6});var ZT=v((ume,XT)=>{"use strict";var z6=ut();function F6(){return!0}function V6(){}function B6(){return""}function H6(e){return typeof e>"u"}XT.exports=new z6.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:F6,construct:V6,predicate:H6,represent:B6})});var tR=v((dme,eR)=>{"use strict";var K6=ut();function G6(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/")return!1;t=t.slice(1,t.length-n.length-1)}try{var o=new RegExp(t,n);return!0}catch{return!1}}function W6(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function Y6(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Q6(e){return Object.prototype.toString.call(e)==="[object RegExp]"}eR.exports=new K6.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:G6,construct:W6,predicate:Q6,represent:Y6})});var Rg=v((fme,oR)=>{"use strict";var rR=ls(),nR=new rR.Schema({include:[Jl()],explicit:[ZT(),tR()]});rR.Schema.DEFAULT=nR;oR.exports=nR});var gR=v((ms,Xa)=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});var Wt=Qa(),eo=Fo(),jg=ps(),Mg=mT(),cR=Jl(),J6=Rg(),eu=Object.prototype.hasOwnProperty,Xl=1,pR=2,lR=3,Zl=4,Og=1,X6=2,iR=3,Z6=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,eJ=/[\x85\u2028\u2029]/,tJ=/[,\[\]\{\}]/,uR=/^(?:!|!!|![a-z\-]+!)$/i,dR=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function $r(e){return e===10||e===13}function Vo(e){return e===9||e===32}function zt(e){return e===9||e===32||e===10||e===13}function us(e){return e===44||e===91||e===93||e===123||e===125}function rJ(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function nJ(e){return e===120?2:e===117?4:e===85?8:0}function oJ(e){return 48<=e&&e<=57?e-48:-1}function iJ(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
27
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function sJ(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var kg=new Array(256),Ig=new Array(256),fR=new Array(256),Cg=new Array(256);for(ur=0;ur<256;ur++)Cg[ur]=Ig[ur]=iJ(ur),kg[ur]=Ig[ur]?1:0,fR[ur]=1,kg[ur]||(Cg[ur]="\\"+String.fromCharCode(ur));var ur,aJ=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||J6,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.allowAnyEscape=r.allowAnyEscape||!1,this.ignoreDuplicateKeys=r.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return e})();function Dg(e,t,r){return r===void 0&&(r=!1),new jg(t,new Mg(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function qg(e,t,r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var i=cJ(e,t);if(i){var s=r+t;if(!e.errorMap[s]){var a=new Mg(e.filename,e.input,t,i.line,t-i.start);o&&(a.toLineEnd=!0);var c=new jg(r,a,n);e.errors.push(c)}}}function H(e,t){var r=Dg(e,t),n=r.message+r.mark.position;if(!e.errorMap[n]){e.errors.push(r),e.errorMap[n]=1;for(var o=e.position;;){if(e.position>=e.input.length-1)return;var i=e.input.charAt(e.position);if(i==`
28
+ `){e.position--,e.position==o&&(e.position+=1);return}if(i=="\r"){e.position--,e.position==o&&(e.position+=1);return}e.position++}}}function Ng(e,t){var r=Dg(e,t);e.onWarning&&e.onWarning.call(null,r)}var sR={YAML:function(t,r,n){var o,i,s;t.version!==null&&H(t,"duplication of %YAML directive"),n.length!==1&&H(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&H(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&H(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&H(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var o,i;n.length!==2&&H(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],uR.test(o)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),eu.call(t.tagMap,o)&&H(t,'there is a previously declared suffix for "'+o+'" tag handle'),dR.test(i)||H(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function to(e,t,r,n){var o,i,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=r){if(a=e.input.slice(t,r),n)for(o=0,i=a.length;o<i;o+=1)s=a.charCodeAt(o),s===9||32<=s&&s<=1114111||H(e,"expected valid JSON character");else Z6.test(a)&&H(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function ds(e,t,r,n,o){var i,s;if(n!=null){t===null&&(t={startPosition:n.startPosition,endPosition:o.endPosition,parent:null,errors:[],mappings:[],kind:Wt.Kind.MAP});var a=Wt.newMapping(n,o);return a.parent=t,n.parent=a,o!=null&&(o.parent=a),!e.ignoreDuplicateKeys&&t.mappings.forEach(function(c){c.key&&c.key.value===(a.key&&a.key.value)&&(qg(e,a.key.startPosition,"duplicate key"),qg(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=o?o.endPosition:n.endPosition+1,t}}function Lg(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function cJ(e,t){for(var r,n=0;n<e.lines.length&&!(e.lines[n].start>t);n++)r=e.lines[n];return r||{start:0,line:0}}function Ke(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Vo(o);)o===9&&e.errors.push(Dg(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if($r(o))for(Lg(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Ng(e,"deficient indentation"),n}function Ja(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&e.input.charCodeAt(t+1)===r&&e.input.charCodeAt(t+2)===r&&(t+=3,r=e.input.charCodeAt(t),r===0||zt(r)))}function Ug(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=eo.repeat(`
29
+ `,r-1))}function pJ(e,t,r){var n,o,i,s,a,c,l,p,u=e.kind,d=e.result,f,m=Wt.newScalar();if(m.plainScalar=!0,e.result=m,f=e.input.charCodeAt(e.position),zt(f)||us(f)||f===35||f===38||f===42||f===33||f===124||f===62||f===39||f===34||f===37||f===64||f===96||(f===63||f===45)&&(o=e.input.charCodeAt(e.position+1),zt(o)||r&&us(o)))return!1;for(e.kind="scalar",i=s=e.position,a=!1;f!==0;){if(f===58){if(o=e.input.charCodeAt(e.position+1),zt(o)||r&&us(o))break}else if(f===35){if(n=e.input.charCodeAt(e.position-1),zt(n))break}else{if(e.position===e.lineStart&&Ja(e)||r&&us(f))break;if($r(f))if(c=e.line,l=e.lineStart,p=e.lineIndent,Ke(e,!1,-1),e.lineIndent>=t){a=!0,f=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=p;break}}if(a&&(to(e,i,s,!1),Ug(e,m,e.line-c),i=s=e.position,a=!1),Vo(f)||(s=e.position+1),f=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return to(e,i,s,!1),e.result.startPosition!=-1?(m.rawValue=e.input.substring(m.startPosition,m.endPosition),!0):(e.kind=u,e.result=d,!1)}function lJ(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var i=Wt.newScalar();for(i.singleQuoted=!0,e.kind="scalar",e.result=i,i.startPosition=e.position,e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(to(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),i.endPosition=e.position,r===39)n=o=e.position,e.position++;else return!0;else $r(r)?(to(e,n,o,!0),Ug(e,i,Ke(e,!1,t)),n=o=e.position):e.position===e.lineStart&&Ja(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position,i.endPosition=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function uJ(e,t){var r,n,o,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var l=Wt.newScalar();for(l.doubleQuoted=!0,e.result=l,l.startPosition=e.position,e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return to(e,r,e.position,!0),e.position++,l.endPosition=e.position,l.rawValue=e.input.substring(l.startPosition,l.endPosition),!0;if(c===92){if(to(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),$r(c))Ke(e,!1,t);else if(c<256&&(e.allowAnyEscape?fR[c]:kg[c]))l.value+=e.allowAnyEscape?Cg[c]:Ig[c],e.position++;else if((s=nJ(c))>0){for(o=s,i=0;o>0;o--)c=e.input.charCodeAt(++e.position),(s=rJ(c))>=0?i=(i<<4)+s:H(e,"expected hexadecimal character");l.value+=sJ(i),e.position++}else H(e,"unknown escape sequence");r=n=e.position}else $r(c)?(to(e,r,n,!0),Ug(e,l,Ke(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ja(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function dJ(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,c,l,p,u,d,f,m,h;if(h=e.input.charCodeAt(e.position),h===91)c=93,u=!1,i=Wt.newItems(),i.startPosition=e.position;else if(h===123)c=125,u=!0,i=Wt.newMap(),i.startPosition=e.position;else return!1;for(e.anchor!==null&&(i.anchorId=e.anchor,e.anchorMap[e.anchor]=i),h=e.input.charCodeAt(++e.position);h!==0;){if(Ke(e,!0,t),h=e.input.charCodeAt(e.position),h===c)return e.position++,e.tag=o,e.anchor=s,e.kind=u?"mapping":"sequence",e.result=i,i.endPosition=e.position,!0;if(!r){var y=e.position;H(e,"missed comma between flow collection entries"),e.position=y+1}if(f=d=m=null,l=p=!1,h===63&&(a=e.input.charCodeAt(e.position+1),zt(a)&&(l=p=!0,e.position++,Ke(e,!0,t))),n=e.line,fs(e,t,Xl,!1,!0),f=e.tag,d=e.result,Ke(e,!0,t),h=e.input.charCodeAt(e.position),(p||e.line===n)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),Ke(e,!0,t),fs(e,t,Xl,!1,!0),m=e.result),u)ds(e,i,f,d,m);else if(l){var g=ds(e,null,f,d,m);g.parent=i,i.items.push(g)}else d&&(d.parent=i),i.items.push(d);i.endPosition=e.position+1,Ke(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}H(e,"unexpected end of the stream within a flow collection")}function fJ(e,t){var r,n,o=Og,i=!1,s=t,a=0,c=!1,l,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;var u=Wt.newScalar();for(e.kind="scalar",e.result=u,u.startPosition=e.position;p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)Og===o?o=p===43?iR:X6:H(e,"repeat of a chomping mode identifier");else if((l=oJ(p))>=0)l===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?H(e,"repeat of an indentation width identifier"):(s=t+l-1,i=!0);else break;if(Vo(p)){do p=e.input.charCodeAt(++e.position);while(Vo(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!$r(p)&&p!==0)}for(;p!==0;){for(Lg(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),$r(p)){a++;continue}if(e.lineIndent<s){o===iR?u.value+=eo.repeat(`
30
+ `,a):o===Og&&i&&(u.value+=`
31
+ `);break}for(n?Vo(p)?(c=!0,u.value+=eo.repeat(`
32
+ `,a+1)):c?(c=!1,u.value+=eo.repeat(`
33
+ `,a+1)):a===0?i&&(u.value+=" "):u.value+=eo.repeat(`
34
+ `,a):i&&(u.value+=eo.repeat(`
35
+ `,a+1)),i=!0,a=0,r=e.position;!$r(p)&&p!==0;)p=e.input.charCodeAt(++e.position);to(e,r,e.position,!1)}u.endPosition=e.position;for(var d=e.position-1,f=!1;;){var m=e.input[d];if(m=="\r"||m==`
36
+ `){f&&d--;break}if(m!=" "&&m!=" ")break;d--}return u.endPosition=d,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0}function aR(e,t){var r,n=e.tag,o=e.anchor,i=Wt.newItems(),s,a=!1,c;for(e.anchor!==null&&(i.anchorId=e.anchor,e.anchorMap[e.anchor]=i),i.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!zt(s)));){if(a=!0,e.position++,Ke(e,!0,-1)&&e.lineIndent<=t){i.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,fs(e,t,lR,!1,!0),e.result&&(e.result.parent=i,i.items.push(e.result)),Ke(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)H(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i.endPosition=e.position,a?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=i,i.endPosition=e.position,!0):!1}function mJ(e,t,r){var n,o,i,s=e.tag,a=e.anchor,c=Wt.newMap(),l=null,p=null,u=null,d=!1,f=!1,m;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),m=e.input.charCodeAt(e.position);m!==0;){if(n=e.input.charCodeAt(e.position+1),i=e.line,(m===63||m===58)&&zt(n))m===63?(d&&(ds(e,c,l,p,null),l=p=u=null),f=!0,d=!0,o=!0):d?(d=!1,o=!0):H(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,m=n;else if(fs(e,r,pR,!1,!0))if(e.line===i){for(m=e.input.charCodeAt(e.position);Vo(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),zt(m)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),d&&(ds(e,c,l,p,null),l=p=u=null),f=!0,d=!1,o=!1,l=e.tag,p=e.result;else{if(e.position==e.lineStart&&Ja(e))break;if(f)H(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(f){for(H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(m=e.input.charCodeAt(--e.position),$r(m)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===i||e.lineIndent>t)&&(fs(e,t,Zl,!0,o)&&(d?p=e.result:u=e.result),d||(ds(e,c,l,p,u),l=p=u=null),Ke(e,!0,-1),m=e.input.charCodeAt(e.position)),e.lineIndent>t&&m!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return d&&ds(e,c,l,p,null),f&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),f}function hJ(e){var t,r=!1,n=!1,o,i,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&H(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,o="!!",s=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(i=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!zt(s);)s===33&&(n?H(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),uR.test(o)||H(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),tJ.test(i)&&H(e,"tag suffix cannot contain flow indicator characters")}return i&&!dR.test(i)&&H(e,"tag name cannot contain such characters: "+i),r?e.tag=i:eu.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:H(e,'undeclared tag handle "'+o+'"'),!0}function yJ(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!zt(r)&&!us(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function gJ(e){var t,r,n=e.length,o=e.input,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!zt(i)&&!us(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(H(e,"name of an alias node must contain at least one character"),e.position=t+1),r=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(r)||(H(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=Wt.newAnchorRef(r,t,e.position,e.anchorMap[r]),Ke(e,!0,-1),!0}function fs(e,t,r,n,o){var i,s,a,c=1,l=!1,p=!1,u,d,f,m,h,y;e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=Zl===r||lR===r,n&&Ke(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var g=e.position,w=e.position-e.lineStart;if(c===1)for(;hJ(e)||yJ(e);)Ke(e,!0,-1)?(l=!0,a=i,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=l||o),(c===1||Zl===r)&&(Xl===r||pR===r?m=t:m=t+1,h=e.position-e.lineStart,c===1?a&&(aR(e,h)||mJ(e,h,m))||dJ(e,m)?p=!0:(s&&fJ(e,m)||lJ(e,m)||uJ(e,m)?p=!0:gJ(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):pJ(e,m,Xl===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(p=a&&aR(e,h))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Wt.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,H(e,"!include without value")),e.result.kind=Wt.Kind.INCLUDE_REF;else if(e.tag==="?")for(u=0,d=e.implicitTypes.length;u<d;u+=1){f=e.implicitTypes[u];var b=e.result.value;if(f.resolve(b)){e.result.valueObject=f.construct(e.result.value),e.tag=f.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else eu.call(e.typeMap,e.tag)?(f=e.typeMap[e.tag],e.result!==null&&f.kind!==e.kind&&H(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+f.kind+'", not "'+e.kind+'"'),f.resolve(e.result)?(e.result=f.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):qg(e,g,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||p}function bJ(e){var t=e.position,r,n,o,i=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(Ke(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(i=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!zt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&H(e,"directive name must not be less than one character in length");s!==0;){for(;Vo(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!$r(s));break}if($r(s))break;for(r=e.position;s!==0&&!zt(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&Lg(e),eu.call(sR,n)?sR[n](e,n,o):(Ng(e,'unknown document directive "'+n+'"'),e.position++)}if(Ke(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Ke(e,!0,-1)):i&&H(e,"directives end mark is expected"),fs(e,e.lineIndent-1,Zl,!1,!0),Ke(e,!0,-1),e.checkLineBreaks&&eJ.test(e.input.slice(t,e.position))&&Ng(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ja(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ke(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function mR(e,t){e=String(e),t=t||{};var r=e.length;r!==0&&(e.charCodeAt(r-1)!==10&&e.charCodeAt(r-1)!==13&&(e+=`
37
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new aJ(e,t);for(n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;){var o=n.position;if(bJ(n),n.position<=o)for(;n.position<n.length-1;n.position++){var i=n.input.charAt(n.position);if(i==`
38
+ `)break}}var s=n.documents,a=s.length;a>0&&(s[a-1].endPosition=r);for(var c=0,l=s;c<l.length;c++){var p=l[c];p.errors=n.errors,p.startPosition>p.endPosition&&(p.startPosition=p.endPosition)}return s}function zg(e,t,r){r===void 0&&(r={});var n=mR(e,r),o,i;for(o=0,i=n.length;o<i;o+=1)t(n[o])}ms.loadAll=zg;function Fg(e,t){t===void 0&&(t={});var r=mR(e,t),n,o;if(r.length!==0){if(r.length===1)return r[0];var i=new jg("expected a single document in the stream, but found more");return i.mark=new Mg("","",0,0,0),i.mark.position=r[0].endPosition,r[0].errors.push(i),r[0]}}ms.load=Fg;function hR(e,t,r){r===void 0&&(r={}),zg(e,t,eo.extend({schema:cR},r))}ms.safeLoadAll=hR;function yR(e,t){return t===void 0&&(t={}),Fg(e,eo.extend({schema:cR},t))}ms.safeLoad=yR;Xa.exports.loadAll=zg;Xa.exports.load=Fg;Xa.exports.safeLoadAll=hR;Xa.exports.safeLoad=yR});var PR=v(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});var Za=Fo(),Wg=ps(),vJ=Rg(),xJ=Jl(),Yg=Object.prototype.toString,SR=Object.prototype.hasOwnProperty,SJ=9,Bo=10,wJ=13,Vg=32,_J=33,Bg=34,PJ=35,EJ=37,$J=38,Hg=39,AJ=42,TJ=44,RJ=45,OJ=58,kJ=62,IJ=63,CJ=64,qJ=91,NJ=93,jJ=96,MJ=123,DJ=124,LJ=125,tt={};tt[0]="\\0";tt[7]="\\a";tt[8]="\\b";tt[9]="\\t";tt[10]="\\n";tt[11]="\\v";tt[12]="\\f";tt[13]="\\r";tt[27]="\\e";tt[34]='\\"';tt[92]="\\\\";tt[133]="\\N";tt[160]="\\_";tt[8232]="\\L";tt[8233]="\\P";var UJ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function zJ(e,t){var r,n,o,i,s,a,c;if(t===null)return{};for(r={},n=Object.keys(t),o=0,i=n.length;o<i;o+=1)s=n[o],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap[s],c&&SR.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function FJ(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Wg("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Za.repeat("0",n-t.length)+t}function VJ(e){this.schema=e.schema||vJ,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Za.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=zJ(this.schema,e.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function bR(e,t){for(var r=Za.repeat(" ",t),n=0,o=-1,i="",s,a=e.length;n<a;)o=e.indexOf(`
39
+ `,n),o===-1?(s=e.slice(n),n=a):(s=e.slice(n,o+1),n=o+1),s.length&&s!==`
40
+ `&&(i+=r),i+=s;return i}function Kg(e,t){return`
41
+ `+Za.repeat(" ",e.indent*t)}function BJ(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}function tu(e){this.source=e,this.result="",this.checkpoint=0}tu.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this};tu.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=tt[e]||FJ(e),this.result+=t,this.checkpoint+=1,this};tu.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function HJ(e,t,r){var n,o,i,s,a,c,l,p,u,d,f,m,h,y,g,w,b,S,x,P,T;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(UJ.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(n=!0,o=t.length?t.charCodeAt(0):0,i=Vg===o||Vg===t.charCodeAt(t.length-1),(RJ===o||IJ===o||CJ===o||jJ===o)&&(n=!1),i?(n=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,l=new tu(t),p=!1,u=0,d=0,f=e.indent*r,m=80,f<40?m-=f:m=40,y=0;y<t.length;y++){if(h=t.charCodeAt(y),n)if(!GJ(h))n=!1;else continue;c&&h===Hg&&(c=!1),g=tt[h],w=wR(h),!(!g&&!w)&&(h!==Bo&&h!==Bg&&h!==Hg?(s=!1,a=!1):h===Bo&&(p=!0,c=!1,y>0&&(b=t.charCodeAt(y-1),b===Vg&&(a=!1,s=!1)),s&&(S=y-u,u=y,S>d&&(d=S))),h!==Bg&&(c=!1),l.takeUpTo(y),l.escapeChar())}if(n&&BJ(e,t)&&(n=!1),x="",(s||a)&&(P=0,t.charCodeAt(t.length-1)===Bo&&(P+=1,t.charCodeAt(t.length-2)===Bo&&(P+=1)),P===0?x="-":P===2&&(x="+")),a&&d<m&&(s=!1),p||(a=!1),n)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)T=KJ(t,m),e.dump=">"+x+`
42
+ `+bR(T,f);else if(a)x||(t=t.replace(/\n$/,"")),e.dump="|"+x+`
43
+ `+bR(t,f);else if(l)l.finish(),e.dump='"'+l.result+'"';else throw new Error("Failed to dump scalar value")}function KJ(e,t){var r="",n=0,o=e.length,i=/\n+$/.exec(e),s;for(i&&(o=i.index+1);n<o;)s=e.indexOf(`
44
+ `,n),s>o||s===-1?(r&&(r+=`
45
+
46
+ `),r+=vR(e.slice(n,o),t),n=o):(r&&(r+=`
47
+
48
+ `),r+=vR(e.slice(n,s),t),n=s+1);return i&&i[0]!==`
49
+ `&&(r+=i[0]),r}function vR(e,t){if(e==="")return e;for(var r=/[^\s] [^\s]/g,n="",o=0,i=0,s=r.exec(e),a,c,l;s;)a=s.index,a-i>t&&(o!==i?c=o:c=a,n&&(n+=`
50
+ `),l=e.slice(i,c),n+=l,i=c+1),o=a+1,s=r.exec(e);return n&&(n+=`
51
+ `),i!==o&&e.length-i>t?n+=e.slice(i,o)+`
52
+ `+e.slice(o+1):n+=e.slice(i),n}function GJ(e){return SJ!==e&&Bo!==e&&wJ!==e&&TJ!==e&&qJ!==e&&NJ!==e&&MJ!==e&&LJ!==e&&PJ!==e&&$J!==e&&AJ!==e&&_J!==e&&DJ!==e&&kJ!==e&&Hg!==e&&Bg!==e&&EJ!==e&&OJ!==e&&!tt[e]&&!wR(e)}function wR(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function WJ(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)Ho(e,t,r[i],!1,!1)&&(i!==0&&(n+=", "),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function YJ(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ho(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=Kg(e,t)),o+="- "+e.dump);e.tag=i,e.dump=o||"[]"}function QJ(e,t,r){var n="",o=e.tag,i=Object.keys(r),s,a,c,l,p;for(s=0,a=i.length;s<a;s+=1)p="",s!==0&&(p+=", "),c=i[s],l=r[c],Ho(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+": ",Ho(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=o,e.dump="{"+n+"}"}function JJ(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,c,l,p,u,d;for(a=0,c=s.length;a<c;a+=1)d="",(!n||a!==0)&&(d+=Kg(e,t)),l=s[a],p=r[l],Ho(e,t+1,l,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Bo===e.dump.charCodeAt(0)?d+="?":d+="? "),d+=e.dump,u&&(d+=Kg(e,t)),Ho(e,t+1,p,!0,u)&&(e.dump&&Bo===e.dump.charCodeAt(0)?d+=":":d+=": ",d+=e.dump,o+=d));e.tag=i,e.dump=o||"{}"}function xR(e,t,r){var n,o,i,s,a,c;for(o=r?e.explicitTypes:e.implicitTypes,i=0,s=o.length;i<s;i+=1)if(a=o[i],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,Yg.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(SR.call(a.represent,c))n=a.represent[c](t,c);else throw new Wg("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Ho(e,t,r,n,o){e.tag=null,e.dump=r,xR(e,r,!1)||xR(e,r,!0);var i=Yg.call(e.dump);n&&(n=0>e.flowLevel||e.flowLevel>t),(e.tag!==null&&e.tag!=="?"||e.indent!==2&&t>0)&&(o=!1);var s=i==="[object Object]"||i==="[object Array]",a,c;if(s&&(a=e.duplicates.indexOf(r),c=a!==-1),c&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&c&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),i==="[object Object]")n&&Object.keys(e.dump).length!==0?(JJ(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
53
+ `:"")+e.dump)):(QJ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object Array]")n&&e.dump.length!==0?(YJ(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
54
+ `:"")+e.dump)):(WJ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object String]")e.tag!=="?"&&HJ(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Wg("unacceptable kind of an object to dump "+i)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function XJ(e,t){var r=[],n=[],o,i;for(Gg(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function Gg(e,t,r){var n=Yg.call(e),o,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)Gg(e[i],t,r);else for(o=Object.keys(e),i=0,s=o.length;i<s;i+=1)Gg(e[o[i]],t,r)}function _R(e,t){t=t||{};var r=new VJ(t);return XJ(e,r),Ho(r,0,e,!0,!0)?r.dump+`
55
+ `:""}ru.dump=_R;function ZJ(e,t){return _R(e,Za.extend({schema:xJ},t))}ru.safeDump=ZJ});var ER=v(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});function e8(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}ro.parseYamlBoolean=e8;function t8(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function r8(e){var t=t8(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}ro.parseYamlInteger=r8;function n8(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;var t=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,r=t.exec(e);if(r)return r[1]==="-"?-1/0:1/0;var n=parseFloat(e);if(!isNaN(n))return n;throw'Invalid float "'+e+'"'}ro.parseYamlFloat=n8;var Sn;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(Sn=ro.ScalarType||(ro.ScalarType={}));function o8(e){if(e===void 0)return Sn.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Sn.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Sn.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Sn.bool;var r=/^[-+]?[0-9]+$/,n=/^0o[0-7]+$/,o=/^0x[0-9a-fA-F]+$/;if(r.test(t)||n.test(t)||o.test(t))return Sn.int;var i=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return i.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?Sn.float:Sn.string}ro.determineScalarType=o8});var TR=v(Ar=>{"use strict";function $R(e){for(var t in e)Ar.hasOwnProperty(t)||(Ar[t]=e[t])}Object.defineProperty(Ar,"__esModule",{value:!0});var nu=gR();Ar.load=nu.load;Ar.loadAll=nu.loadAll;Ar.safeLoad=nu.safeLoad;Ar.safeLoadAll=nu.safeLoadAll;var AR=PR();Ar.dump=AR.dump;Ar.safeDump=AR.safeDump;Ar.YAMLException=ps();$R(Qa());$R(ER())});import*as Wo from"node:path";function A(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function We(e){return!!e}function dr(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function j(e){return A(e)&&typeof e.$ref=="string"}function Yo(e){return j(e)&&Object.keys(e).length>1}function ec(e){return A(e)&&typeof e.externalValue=="string"}var ft=class e{source;pointer;constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,dr(this.pointer,(Array.isArray(t)?t:[t]).map(Cr).join("/")))}key(){return Object.assign(Object.create(e.prototype),this,{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function Zg(e){let t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Cr(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function _n(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:pu(r)}}function pu(e){return e.split("/").map(Zg).filter(We)}function eb(e){let t=e.split("/");return t[t.length-1]}function tb(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function oe(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function lu(e){return Wo.extname(e)?oe(e)?e.substring(0,e.lastIndexOf("/")):Wo.dirname(e):e}function tc(e,t){return oe(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:Wo.resolve(e,t)}function qr(e){return typeof e=="string"&&(e.startsWith("#")||oe(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function rb(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function ys(e,t,r){if(!A(t.node)&&r.parent){r.parent[r.key]=t.node;return}delete e.$ref,A(t.node)&&Object.assign(e,{...t.node,...e})}var he=Symbol("NOT_RESOLVED"),Cu=Symbol("MERGE_KEY");function mt(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify??null,represent:t.represent??(r=>String(r)),representTagName:t.representTagName??null}}function qu(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify??null,represent:t.represent??(n=>n),representTagName:t.representTagName??null}}function pc(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify??null,represent:t.represent??(n=>n),representTagName:t.representTagName??null}}var DR=mt("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),LR=["","~","null","Null","NULL"],UR=mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>LR.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),zR=mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:he,identify:e=>e===null,represent:()=>"null"}),FR=["","~","null","Null","NULL"],VR=mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>FR.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),BR=["true","True","TRUE"],HR=["false","False","FALSE"],KR=mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>BR.indexOf(e)!==-1?!0:HR.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),GR=["true"],WR=["false"],YR=mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>GR.indexOf(e)!==-1?!0:WR.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),QR=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],JR=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],XR=mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>QR.indexOf(e)!==-1?!0:JR.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),ZR=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),eO=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function tO(e){let t=e,r=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(r=-1),t=t.slice(1)),t.startsWith("0b")?r*parseInt(t.slice(2),2):t.startsWith("0o")?r*parseInt(t.slice(2),8):t.startsWith("0x")?r*parseInt(t.slice(2),16):r*parseInt(t,10)}function rO(e,t){if(t){if(!eO.test(e))return he}else if(!ZR.test(e))return he;let r=tO(e);return Number.isFinite(r)?r:he}var Sb=mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:rO,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),nO=new RegExp("^-?(?:0|[1-9][0-9]*)$"),oO=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function iO(e){let t=e,r=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(r=-1),t=t.slice(1)),t.startsWith("0b")?r*parseInt(t.slice(2),2):t.startsWith("0o")?r*parseInt(t.slice(2),8):t.startsWith("0x")?r*parseInt(t.slice(2),16):r*parseInt(t,10)}function sO(e,t){if(t){if(!oO.test(e))return he}else if(!nO.test(e))return he;let r=iO(e);return Number.isFinite(r)?r:he}var aO=mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:sO,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),cO=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function pO(e){let t=e.replace(/_/g,""),r=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(r=-1),t=t.slice(1)),t.startsWith("0b"))return r*parseInt(t.slice(2),2);if(t.startsWith("0x"))return r*parseInt(t.slice(2),16);if(t.includes(":")){let n=0;for(let o of t.split(":"))n=n*60+Number(o);return r*n}return t!=="0"&&t[0]==="0"?r*parseInt(t,8):r*parseInt(t,10)}function lO(e){if(!cO.test(e))return he;let t=pO(e);return Number.isFinite(t)?t:he}var gu=mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:lO,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),uO=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),dO=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function fO(e){if(!uO.test(e))return he;let t=e.toLowerCase(),r=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let n=r*parseFloat(t);return Number.isFinite(n)||dO.test(e)?n:he}function mO(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var wb=mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:fO,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:mO}),hO=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),yO=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function gO(e,t){if(t){if(!yO.test(e))return he;let n=e.toLowerCase(),o=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return o===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let i=o*parseFloat(n);return Number.isFinite(i)?i:he}if(!hO.test(e))return he;let r=Number(e);return Number.isFinite(r)?r:he}function bO(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var vO=mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:gO,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:bO}),xO=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),SO=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function wO(e){if(!xO.test(e))return he;let t=e.toLowerCase().replace(/_/g,""),r=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let n=0;if(t.includes(":")){for(let o of t.split(":"))n=n*60+Number(o);n*=r}else n=r*parseFloat(t);return Number.isFinite(n)||SO.test(e)?n:he}function _O(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var bu=mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:wO,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:_O}),Nu=mt("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Cu:he}),PO=/^[A-Za-z0-9+/]*={0,2}$/;function EO(e){let t=e.replace(/\s/g,"");if(t.length%4!==0||!PO.test(t))return he;let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function $O(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var ju=mt("tag:yaml.org,2002:binary",{resolve:EO,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:$O}),AO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),TO=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function RO(e){let t=AO.exec(e);if(t===null&&(t=TO.exec(e)),t===null)return he;let r=+t[1],n=+t[2]-1,o=+t[3];if(!t[4]){let p=new Date(Date.UTC(r,n,o));return p.getUTCFullYear()!==r||p.getUTCMonth()!==n||p.getUTCDate()!==o?he:p}let i=+t[4],s=+t[5],a=+t[6],c=0;if(i>23||s>59||a>59)return he;if(t[7]){let p=t[7].slice(0,3);for(;p.length<3;)p+="0";c=+p}let l=new Date(Date.UTC(r,n,o,i,s,a,c));if(l.getUTCFullYear()!==r||l.getUTCMonth()!==n||l.getUTCDate()!==o)return he;if(t[9]){let p=+t[10],u=+(t[11]||0);if(p>23||u>59)return he;let d=(p*60+u)*6e4;l.setTime(l.getTime()-(t[9]==="-"?-d:d))}return l}var OO=mt("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:RO,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),kO=qu("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function lc(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function vu(e,t){let r={};for(let n of t)e[n]!==void 0&&(r[n]=e[n]);return r}var Mu=qu("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let r;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";r=t.keys().next().value}else if(lc(t)){let n=Object.keys(t);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return e.seen.has(r)?"duplicate key in ordered map":(e.seen.add(r),e.list.push(t),"")},finalize:e=>e.list}),Du=qu("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size!==1?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if(Object.prototype.toString.call(t)!=="[object Object]")return"cannot resolve a pairs item";let r=t,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(e.push([n[0],r[n[0]]]),"")}}),IO=pc("tag:yaml.org,2002:map",{create:()=>({}),identify:lc,represent:e=>{let t=new Map;for(let r of Object.keys(e))t.set(r,e[r]);return t},addPair:(e,t,r)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";let n=String(t);return n==="__proto__"?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),Lu=pc("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let r of e)t.set(r,null);return t},addPair:(e,t,r)=>r!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function CO(){return{scalar:{},sequence:{},mapping:{}}}function qO(){return{scalar:[],sequence:[],mapping:[]}}function NO(e){let t=[];for(let r of e){let n=t.length;for(let o=0;o<t.length;o++){let i=t[o];if(i.nodeKind===r.nodeKind&&i.tagName===r.tagName&&i.matchByTagPrefix===r.matchByTagPrefix){n=o;break}}t[n]=r}return t}var uc=class _b{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){let r=NO(t),n=[],o=CO(),i=qO();for(let p of r){if(p.nodeKind==="scalar"&&p.implicit){if(p.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");n.push(p)}switch(p.nodeKind){case"scalar":p.matchByTagPrefix?i.scalar.push(p):o.scalar[p.tagName]=p;break;case"sequence":p.matchByTagPrefix?i.sequence.push(p):o.sequence[p.tagName]=p;break;case"mapping":p.matchByTagPrefix?i.mapping.push(p):o.mapping[p.tagName]=p;break}}let s=n.filter(p=>p.implicitFirstChars===null),a=new Set;for(let p of n)if(p.implicitFirstChars!==null)for(let u of p.implicitFirstChars)a.add(u);let c=new Map;for(let p of a)c.set(p,n.filter(u=>u.implicitFirstChars===null||u.implicitFirstChars.indexOf(p)!==-1));let l=o.scalar["tag:yaml.org,2002:str"];if(!l)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=c,this.implicitScalarAnyFirstChar=s,this.defaultScalarTag=l,this.defaultSequenceTag=o.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=o.mapping["tag:yaml.org,2002:map"],this.exact=o,this.prefix=i}withTags(...t){let r=[];for(let n of t)r=r.concat(n);return new _b([...this.tags,...r])}},Uu=new uc([DR,kO,IO]),T8=new uc([...Uu.tags,zR,YR,aO,vO]),zu=new uc([...Uu.tags,UR,KR,Sb,wb]),jO=new uc([...Uu.tags,VR,XR,gu,bu,OO,Nu,ju,Mu,Du,Lu]),R8=pc("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,r)=>(e.set(t,r),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||lc(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,r=e;for(let n of Object.keys(r))t.set(n,r[n]);return t}});function nb(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let r=0;r<t.length;r++){if(Array.isArray(t[r]))return null;typeof t[r]=="object"&&Object.prototype.toString.call(t[r])==="[object Object]"&&(t[r]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}var O8=pc("tag:yaml.org,2002:map",{create:()=>({}),identify:lc,represent:e=>{let t=new Map;for(let r of Object.keys(e))t.set(r,e[r]);return t},addPair:(e,t,r)=>{let n=nb(t);return n===null?"nested arrays are not supported inside keys":(n==="__proto__"?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,"")},has:(e,t)=>{let r=nb(t);return r!==null&&Object.prototype.hasOwnProperty.call(e,r)},keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),MO={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function uu(e,t,r,n,o){let i="",s="",a=Math.floor(o/2)-1;return n-t>a&&(i=" ... ",t=n-a+i.length),r-n>a&&(s=" ...",r=n+a-s.length),{str:i+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+i.length}}function du(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function DO(e,t){if(!e.buffer)return null;let r={...MO,...t},n=/\r?\n|\r|\0/g,o=[0],i=[],s,a=-1;for(;s=n.exec(e.buffer);)i.push(s.index),o.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);let c="",l=Math.min(e.line+r.linesAfter,i.length).toString().length,p=r.maxLength-(r.indent+l+3);for(let d=1;d<=r.linesBefore&&!(a-d<0);d++){let f=uu(e.buffer,o[a-d],i[a-d],e.position-(o[a]-o[a-d]),p);c=`${" ".repeat(r.indent)}${du((e.line-d+1).toString(),l)} | ${f.str}
56
+ ${c}`}let u=uu(e.buffer,o[a],i[a],e.position,p);c+=`${" ".repeat(r.indent)}${du((e.line+1).toString(),l)} | ${u.str}
57
+ `,c+=`${"-".repeat(r.indent+l+3+u.pos)}^
58
+ `;for(let d=1;d<=r.linesAfter&&!(a+d>=i.length);d++){let f=uu(e.buffer,o[a+d],i[a+d],e.position-(o[a]-o[a+d]),p);c+=`${" ".repeat(r.indent)}${du((e.line+d+1).toString(),l)} | ${f.str}
59
+ `}return c.replace(/\n$/,"")}function ob(e,t){let r="";return e.mark?(e.mark.name&&(r+=`in "${e.mark.name}" `),r+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(r+=`
60
+
61
+ ${e.mark.snippet}`),`${e.reason} ${r}`):e.reason}var Ps=class extends Error{reason;mark;constructor(e,t){super(),this.name="YAMLException",this.reason=e,this.mark=t,this.message=ob(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${ob(this,e)}`}};function dc(e,t,r,n=""){let o=0,i=0;for(let a=0;a<t;a++){let c=e.charCodeAt(a);c===10?(o++,i=a+1):c===13&&(o++,e.charCodeAt(a+1)===10&&a++,i=a+1)}let s={name:n,buffer:e,position:t,line:o,column:t-i};throw s.snippet=DO(s),new Ps(r,s)}var LO=-1;function ib(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
62
+ `;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var Pb=new Array(256),Eb=new Array(256);for(let e=0;e<256;e++)Pb[e]=ib(e)?1:0,Eb[e]=ib(e);function UO(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function zO(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function FO(e){return e===120?2:e===117?4:8}function sc(e,t,r){let n=0;for(;t<r;){let o=e.charCodeAt(t);if(o===10)n++,t++;else if(o===13)n++,t++,e.charCodeAt(t)===10&&t++;else if(o===32||o===9)t++;else break}return{position:t,breaks:n}}function Fu(e){return e===1?" ":`
63
+ `.repeat(e-1)}function VO(e,t,r){let n="",o=t,i=t,s=t;for(;o<r;){let a=e.charCodeAt(o);if(a===10||a===13){n+=e.slice(i,s);let c=sc(e,o,r);n+=Fu(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,s)}function BO(e,t,r){let n="",o=t,i=t,s=t;for(;o<r;){let a=e.charCodeAt(o);if(a===39)n+=e.slice(i,o)+"'",o+=2,i=s=o;else if(a===10||a===13){n+=e.slice(i,s);let c=sc(e,o,r);n+=Fu(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function HO(e,t,r){let n="",o=t,i=t,s=t;for(;o<r;){let a=e.charCodeAt(o);if(a===92){n+=e.slice(i,o),o++;let c=e.charCodeAt(o);if(c===10||c===13)o=sc(e,o,r).position;else if(c<256&&Pb[c])n+=Eb[c],o++;else{let l=FO(c),p=0;for(;l>0;l--){o++;let u=zO(e.charCodeAt(o));p=(p<<4)+u}n+=UO(p),o++}i=s=o}else if(a===10||a===13){n+=e.slice(i,s);let c=sc(e,o,r);n+=Fu(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function sb(e,t,r,n,o,i){let s=n<0?0:n,a=e.slice(t,r).replace(/\r\n?/g,`
64
+ `),c=a===""?[]:(a.endsWith(`
65
+ `)?a.slice(0,-1):a).split(`
66
+ `),l="",p=!1,u=0,d=!1;for(let f of c){let m=0;for(;m<s&&f.charCodeAt(m)===32;)m++;if(n<0||m>=f.length){u++;continue}let h=f.slice(s),y=h.charCodeAt(0);i?y===32||y===9?(d=!0,l+=`
67
+ `.repeat(p?1+u:u)):d?(d=!1,l+=`
68
+ `.repeat(u+1)):u===0?p&&(l+=" "):l+=`
69
+ `.repeat(u):l+=`
70
+ `.repeat(p?1+u:u),l+=h,p=!0,u=0}return o===3?l+=`
71
+ `.repeat(p?1+u:u):o!==2&&p&&(l+=`
72
+ `),l}function KO(e,t){if(t.valueStart===LO)return"";let{valueStart:r,valueEnd:n}=t;if(t.fast)return e.slice(r,n);switch(t.style){case 2:return BO(e,r,n);case 3:return HO(e,r,n);case 4:return sb(e,r,n,t.indent,t.chomping,!1);case 5:return sb(e,r,n,t.indent,t.chomping,!0);default:return VO(e,r,n)}}var GO={"!":"!","!!":"tag:yaml.org,2002:"};function fu(e){return encodeURI(e).replace(/!/g,"%21")}function $b(e,t){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));let r=e.indexOf("!",1),n=r===-1?"!":e.slice(0,r+1),o=t?.[n]??GO[n]??n;return decodeURIComponent(o)+decodeURIComponent(e.slice(n.length))}function Ab(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${fu(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${fu(t.slice(18))}`:`!<${fu(t)}>`}var Qo=-1,Vu={filename:"",schema:zu,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function WO(e){return"tagStart"in e&&e.tagStart!==Qo?e.tagStart:"anchorStart"in e&&e.anchorStart!==Qo?e.anchorStart:"valueStart"in e&&e.valueStart!==Qo?e.valueStart:"start"in e?e.start:0}function Ot(e,t){dc(e.source,e.position,t,e.filename)}function Tb(e,t,r,n){try{return r.finalize(n)}catch(o){if(o instanceof Ps)throw o;dc(e.source,t,o instanceof Error?o.message:String(o),e.filename)}}function oc(e,t,r){let n=e[r];if(n)return n;for(let o of t)if(r.startsWith(o.tagName))return o}function YO(e,t,r,n,o){let i=oc(t,r,n);if(i)return i;Ot(e,`unknown ${o} tag !<${n}>`)}function QO(e,t){let r=KO(e.source,t),n=t.tagStart===Qo?"":e.source.slice(t.tagStart,t.tagEnd),o=e.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:o};let i=$b(n,e.tagHandlers),s=oc(e.schema.exact.scalar,e.schema.prefix.scalar,i);if(s){let c=s.resolve(r,!0,i);return c===he&&Ot(e,`cannot resolve a node with !<${i}> explicit tag`),{value:c,tag:s}}let a=oc(e.schema.exact.mapping,e.schema.prefix.mapping,i)??oc(e.schema.exact.sequence,e.schema.prefix.sequence,i);if(a){r!==""&&Ot(e,`cannot resolve a node with !<${i}> explicit tag`);let c=a.create(i);return{value:a.carrierIsResult?c:Tb(e,e.position,a,c),tag:a}}Ot(e,`unknown scalar tag !<${i}>`)}if(t.style===1){let i=e.schema.implicitScalarByFirstChar.get(r.charAt(0))??e.schema.implicitScalarAnyFirstChar;for(let s of i){let a=s.resolve(r,!1,s.tagName);if(a!==he)return{value:a,tag:s}}}return{value:o.resolve(r,!1,o.tagName),tag:o}}function ab(e,t,r,n,o,i){let s=t.tagStart===Qo?"":e.source.slice(t.tagStart,t.tagEnd),a=s===""||s==="!"?o:$b(s,e.tagHandlers);return{tagName:a,tag:YO(e,r,n,a,i)}}function Rb(e){return e.nodeKind==="mapping"}function cb(e,t,r,n){for(let o of n.keys(r)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&Ot(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`),t.tag.has(t.value,o))continue;let i=t.tag.addPair(t.value,o,n.get(r,o));i&&Ot(e,i),(t.overridable??=new Set).add(o)}}function JO(e,t,r,n){if(e.position=t.keyPosition,Rb(n))cb(e,t,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let o of r)cb(e,t,o,t.tag);else Ot(e,"cannot merge mappings; the provided source object is unacceptable")}function XO(e,t,r,n,o){if(e.position=t.keyPosition,r===Cu){JO(e,t,n,o);return}!e.json&&t.tag.has(t.value,r)&&!t.overridable?.has(r)&&Ot(e,"duplicated mapping key");let i=t.tag.addPair(t.value,r,n);i&&Ot(e,i),t.overridable?.delete(r)}function mu(e,t,r){let n=e.frames[e.frames.length-1];if(n.kind==="document")n.value=t,n.hasValue=!0;else if(n.kind==="sequence"){n.merge&&(Rb(r)||Ot(e,"cannot merge mappings; the provided source object is unacceptable"));let o=n.tag.addItem(n.value,t,n.index++);o&&Ot(e,o)}else if(n.hasKey){let o=n.key;n.key=void 0,n.hasKey=!1,XO(e,n,o,t,r)}else n.key=t,n.keyPosition=e.position,n.hasKey=!0}function hu(e,t,r,n,o){if(t.anchorStart!==Qo){let i={value:r,tag:n,isValueFinal:o};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),i),i}return null}function ZO(e,t){let r={...Vu,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=WO(n),n.type){case 1:r.anchors=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let o of n.directives)o.kind==="tag"&&(r.tagHandlers[o.handle]=o.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case 4:{let{value:o,tag:i}=QO(r,n);hu(r,n,o,i,!0),mu(r,o,i);break}case 2:{let o=ab(r,n,r.schema.exact.sequence,r.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),i=o.tag.create(o.tagName),s=hu(r,n,i,o.tag,o.tag.carrierIsResult),a=r.frames[r.frames.length-1],c=a!==void 0&&a.kind==="mapping"&&a.hasKey&&a.key===Cu;r.frames.push({kind:"sequence",position:r.position,value:i,tag:o.tag,anchor:s,index:0,merge:c});break}case 3:{let o=ab(r,n,r.schema.exact.mapping,r.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),i=o.tag.create(o.tagName),s=hu(r,n,i,o.tag,o.tag.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:i,tag:o.tag,anchor:s,key:void 0,keyPosition:r.position,hasKey:!1,overridable:null});break}case 5:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&Ot(r,`aliases exceeded maxAliases (${r.maxAliases})`);let o=r.source.slice(n.anchorStart,n.anchorEnd),i=r.anchors.get(o);i||Ot(r,`unidentified alias "${o}"`),i.isValueFinal||Ot(r,`recursive alias "${o}" is not supported for tag ${i.tag.tagName} because it uses finalize()`),mu(r,i.value,i.tag);break}case 6:{let o=r.frames.pop();if(o.kind==="document")r.documents.push(o.value);else{let i=o.tag.carrierIsResult?o.value:Tb(r,o.position,o.tag,o.value);o.anchor&&(o.anchor.value=i,o.anchor.isValueFinal=!0),mu(r,i,o.tag)}break}}}return r.documents}var _e=-1,Ob=Object.prototype.hasOwnProperty,ei=1,xu=2,kb=3,ac=4,e1=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,t1=/[,\[\]{}]/,Ib=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Su=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,Cb=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,r1=new RegExp(`^(?:${Su})*$`),n1=new RegExp(`^(?:${Cb})+$`),o1=new RegExp(`^(?:!(?:${Su})*|${Cb}(?:${Su})*)$`),Bu={filename:"",maxDepth:100};function i1(e,t,r){e.events.push({type:1,explicitStart:t,explicitEnd:r,directives:e.directives})}function qb(e,t,r,n,o,i,s){e.events.push({type:2,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function wu(e,t,r,n,o,i,s){e.events.push({type:3,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function pb(e,t){e.events.splice(t.eventsLength,0,{type:3,start:t.position,anchorStart:_e,anchorEnd:_e,tagStart:_e,tagEnd:_e,style:2})}function ri(e,t,r,n,o,i,s,a,c=1,l=-1,p=!1){e.events.push({type:4,valueStart:t,valueEnd:r,anchorStart:n,anchorEnd:o,tagStart:i,tagEnd:s,style:a,chomping:c,indent:l,fast:p})}function s1(e,t,r){e.events.push({type:5,anchorStart:t,anchorEnd:r})}function Jo(e){e.events.push({type:6})}function St(e){ri(e,_e,_e,_e,_e,_e,_e,1)}function lb(){return{anchorStart:_e,anchorEnd:_e,tagStart:_e,tagEnd:_e}}function vs(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Xo(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function U(e,t){dc(e.input.slice(0,e.length),e.position,t,e.filename)}function Xe(e){return e===10||e===13}function io(e){return e===9||e===32}function fr(e){return io(e)||Xe(e)}function tn(e){return e===0||fr(e)}function so(e){return e===44||e===91||e===93||e===123||e===125}function a1(e){return e>=48&&e<=57?e-48:-1}function c1(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function p1(e){return e===120?2:e===117?4:e===85?8:0}function l1(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function cc(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function wt(e,t){let r=0,n=e.input.charCodeAt(e.position),o=e.position===e.lineStart||fr(e.input.charCodeAt(e.position-1));for(;n!==0;){for(;io(n);)o=!0,n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&o&&n===35)do n=e.input.charCodeAt(++e.position);while(!Xe(n)&&n!==0);if(!Xe(n))break;for(cc(e),r++,o=!0,n=e.input.charCodeAt(e.position);n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return r}function En(e,t=e.position){let r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||fr(n)}return!1}function ub(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Xe(t);)t=e.input.charCodeAt(++e.position)}function Nb(e,t,r){e1.test(e.input.slice(t,r))&&U(e,"the stream contains non-printable characters")}function u1(e,t,r){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==_e&&U(e,"duplication of a tag property");let n=e.position,o=!1,i=!1,s="!",a=e.input.charCodeAt(++e.position);a===60?(o=!0,a=e.input.charCodeAt(++e.position)):a===33&&(i=!0,s="!!",a=e.input.charCodeAt(++e.position));let c=e.position,l;if(o){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&U(e,"unexpected end of the stream within a verbatim tag"),l=e.input.slice(c,e.position),e.position++}else{for(;a!==0&&!fr(a)&&!(r&&so(a));)a===33&&(i?U(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(c-1,e.position+1),Ib.test(s)||U(e,"named tag handle cannot contain such characters"),i=!0,c=e.position+1)),a=e.input.charCodeAt(++e.position);l=e.input.slice(c,e.position),t1.test(l)&&U(e,"tag suffix cannot contain flow indicator characters")}return l&&!(o?r1.test(l):n1.test(l))&&U(e,`tag name cannot contain such characters: ${l}`),!o&&s!=="!"&&s!=="!!"&&!Ob.call(e.tagHandlers,s)&&U(e,`undeclared tag handle "${s}"`),t.tagStart=n,t.tagEnd=e.position,!0}function d1(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==_e&&U(e,"duplication of an anchor property"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!fr(e.input.charCodeAt(e.position))&&!so(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&U(e,"name of an anchor node must contain at least one character"),t.anchorStart=r,t.anchorEnd=e.position,!0}function f1(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==_e||t.tagStart!==_e)&&U(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!fr(e.input.charCodeAt(e.position))&&!so(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&U(e,"name of an alias node must contain at least one character"),s1(e,r,e.position),!0}function _u(e,t){wt(e,!1),e.lineIndent<t&&U(e,"deficient indentation")}function m1(e,t,r){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let n=e.position,o=!0;for(;e.input.charCodeAt(e.position)!==0;){let i=e.input.charCodeAt(e.position);if(i===39){if(e.input.charCodeAt(e.position+1)===39){o=!1,e.position+=2;continue}let s=e.position;return e.position++,ri(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2,1,-1,o),!0}Xe(i)?(o=!1,_u(e,t)):e.position===e.lineStart&&En(e)?U(e,"unexpected end of the document within a single quoted scalar"):i!==9&&i<32?U(e,"expected valid JSON character"):e.position++}U(e,"unexpected end of the stream within a single quoted scalar")}function h1(e,t,r){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let n=e.position,o=!0;for(;e.input.charCodeAt(e.position)!==0;){let i=e.input.charCodeAt(e.position);if(i===34){let s=e.position;return e.position++,ri(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,3,1,-1,o),!0}if(i===92){o=!1;let s=e.input.charCodeAt(++e.position);if(Xe(s))_u(e,t);else if(l1(s))e.position++;else{let a=p1(s);for(a===0&&U(e,"unknown escape sequence");a-- >0;)e.position++,c1(e.input.charCodeAt(e.position))<0&&U(e,"expected hexadecimal character");e.position++}}else Xe(i)?(o=!1,_u(e,t)):e.position===e.lineStart&&En(e)?U(e,"unexpected end of the document within a double quoted scalar"):i!==9&&i<32?U(e,"expected valid JSON character"):e.position++}U(e,"unexpected end of the stream within a double quoted scalar")}function y1(e,t,r){let n=e.input.charCodeAt(e.position),o=1,i=-1,s=!1;if(n!==124&&n!==62)return!1;let a=n===124?4:5;for(e.position++;e.input.charCodeAt(e.position)!==0;){let f=e.input.charCodeAt(e.position),m=a1(f);if(f===43||f===45)o!==1&&U(e,"repeat of a chomping mode identifier"),o=f===43?3:2,e.position++;else if(m>=0)m===0&&U(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),s&&U(e,"repeat of an indentation width identifier"),i=t+m-1,s=!0,e.position++;else break}let c=!1;for(;io(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&ub(e),Xe(e.input.charCodeAt(e.position))?cc(e):e.input.charCodeAt(e.position)!==0&&U(e,"a line break is expected");let l=s?i:-1,p=0,u=e.position,d=e.position;for(;e.input.charCodeAt(e.position)!==0;){let f=e.position,m=0;for(;e.input.charCodeAt(f+m)===32;)m++;let h=e.input.charCodeAt(f+m);if(h===0){l>=0?m>l&&(d=f+m):m>0&&(d=f+m);break}if(f===e.lineStart&&En(e,f))break;if(!s&&l===-1&&Xe(h)&&(p=Math.max(p,m)),!s&&l===-1&&!Xe(h)&&(h===9&&m<t&&(e.position=f+m,U(e,"tab characters must not be used in indentation")),m<p&&(e.position=f+m,U(e,"bad indentation of a mapping entry"))),l===-1&&h!==0&&!Xe(h)&&m<t){e.lineIndent=m,e.position=f+m;break}!s&&h!==0&&!Xe(h)&&l===-1&&(l=m);let y=l===-1?t+1:l;if(h!==0&&!Xe(h)&&m<y){e.lineIndent=m,e.position=f+m;break}ub(e),d=e.position,Xe(e.input.charCodeAt(e.position))&&(cc(e),d=e.position)}return Nb(e,u,d),ri(e,u,d,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,a,o,l),!0}function g1(e,t){let r=e.input.charCodeAt(e.position),n=t===ei;if(r===0||fr(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||n&&so(r))return!1;if(r===63||r===45){let o=e.input.charCodeAt(e.position+1);if(tn(o)||n&&so(o))return!1}return!0}function b1(e,t,r,n){if(!g1(e,r))return!1;let o=e.position,i=e.position,s=e.input.charCodeAt(e.position),a=r===ei,c=!1;for(;s!==0&&!(e.position===e.lineStart&&En(e));){if(s===58){let l=e.input.charCodeAt(e.position+1);if(tn(l)||a&&so(l))break}else if(s===35){if(fr(e.input.charCodeAt(e.position-1)))break}else{if(a&&so(s))break;if(Xe(s)){let l=e.position,p=e.line,u=e.lineStart,d=e.lineIndent;if(wt(e,!1),e.lineIndent>=t){c=!0,s=e.input.charCodeAt(e.position);continue}e.position=l,e.line=p,e.lineStart=u,e.lineIndent=d;break}}io(s)||(i=e.position+1),s=e.input.charCodeAt(++e.position)}return i===o?!1:(Nb(e,o,i),ri(e,o,i,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1,1,-1,!c),!0)}function gs(e,t){let r=e.line;wt(e,!0),(e.line>r&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&U(e,"deficient indentation")}function v1(e,t,r){let n=e.input.charCodeAt(e.position),o=n===123,i=e.position,s=!0;if(n!==91&&n!==123)return!1;let a=o?125:93;for(o?wu(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2):qb(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){gs(e,t);let c=e.input.charCodeAt(e.position);if(c===a)return e.position++,Jo(e),!0;s?c===44&&U(e,"expected the node content, but found ','"):U(e,"missed comma between flow collection entries");let l=!1,p=!1;c===63&&fr(e.input.charCodeAt(e.position+1))&&(l=p=!0,e.position+=1,gs(e,t));let u=e.line,d=vs(e),f=oo(e,t,ei,!1,!0);gs(e,t),c=e.input.charCodeAt(e.position),(o||p||e.line===u)&&c===58?(l=!0,e.position++,gs(e,t),o||pb(e,d),f||St(e),oo(e,t,ei,!1,!0)||St(e),gs(e,t),o||Jo(e)):o&&l?(f||St(e),St(e)):o?St(e):l&&(pb(e,d),f||St(e),St(e),Jo(e)),c=e.input.charCodeAt(e.position),c===44?(s=!0,e.position++):s=!1}U(e,"unexpected end of the stream within a flow collection")}function db(e,t,r){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!tn(e.input.charCodeAt(e.position+1)))return!1;for(qb(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1);e.input.charCodeAt(e.position)===45&&tn(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,U(e,"tab characters must not be used in indentation"));let n=e.line;e.position++;let o=wt(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&tn(e.input.charCodeAt(e.position+1))&&U(e,"bad indentation of a sequence entry"),o&&e.lineIndent<=t?St(e):oo(e,t,kb,!1,!0),wt(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&U(e,"bad indentation of a sequence entry"),e.line===n&&e.input.charCodeAt(e.position)===45&&tn(e.input.charCodeAt(e.position+1))&&U(e,"bad indentation of a sequence entry")}return Jo(e),!0}function yu(e,t,r,n){let o=!1,i=!1,s=!1,a=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!o&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,U(e,"tab characters must not be used in indentation"));let l=e.input.charCodeAt(e.position+1),p=e.line;if((c===63||c===58)&&tn(l))s||(wu(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0),c===63?(o&&St(e),i=!0,o=!0):(o||(St(e),i=!0),o=!1),e.position+=1,a=!0;else{o&&(St(e),o=!1);let u=vs(e);if(!oo(e,r,xu,!1,!0))break;if(e.line===p){for(c=e.input.charCodeAt(e.position);io(c);)c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),tn(c)||U(e,"a whitespace character is expected after the key-value separator within a block mapping"),!s){for(Xo(e,u),wu(e,u.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0,oo(e,r,xu,!1,!0),c=e.input.charCodeAt(e.position);io(c);)c=e.input.charCodeAt(++e.position);e.position++}i=!0,o=!1,a=!1}else if(i)U(e,"expected ':' after a mapping key");else return n.anchorStart!==_e||n.tagStart!==_e?(Xo(e,u),!1):!0}else if(i)U(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==_e||n.tagStart!==_e?(Xo(e,u),!1):!0}if(oo(e,t,ac,!0,a)&&(a=!1),o||a&&(St(e),a=!1),wt(e,!0),c=e.input.charCodeAt(e.position),(e.line===p||e.lineIndent>t)&&c!==0)U(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return i?(o&&St(e),s&&Jo(e),!0):!1}function oo(e,t,r,n,o,i=!0){e.depth>=e.maxDepth&&U(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let s=1,a=!1,c=!1,l=null,p=lb(),u=r===ac||r===kb,d=u,f=u;if(n&&wt(e,!0)&&(a=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1),e.position===e.lineStart&&En(e))return e.depth--,!1;if(s===1)for(;;){let m=e.input.charCodeAt(e.position),h=vs(e);if(a&&s!==1&&(m===33||m===38))break;if(a&&f&&(p.tagStart!==_e||p.anchorStart!==_e)&&(m===33||m===38)){let y=vs(e),g=t+1;if(yu(e,e.position-e.lineStart,g,p)&&e.events[y.eventsLength]?.type===3)return e.depth--,!0;Xo(e,y)}if(a&&(m===33&&p.tagStart!==_e||m===38&&p.anchorStart!==_e)||!u1(e,p,r===ei)&&!d1(e,p))break;l===null&&(l=h),wt(e,!0)?(a=!0,d=f,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1):d=!1}if(d&&(d=a||o),s===1||r===ac){let m=r===ei||r===xu?t:t+1,h=e.position-e.lineStart;if(s===1)if(d&&(db(e,h,p)||yu(e,h,m,p))||v1(e,m,p))c=!0;else{let y=e.input.charCodeAt(e.position);if(l!==null&&i&&f&&!d&&y!==124&&y!==62){let g=vs(e),w=l.position-l.lineStart;Xo(e,l),yu(e,w,m,lb())&&e.events[g.eventsLength]?.type===3?c=!0:Xo(e,g)}!c&&(u&&y1(e,m,p)||m1(e,m,p)||h1(e,m,p)||f1(e,p)||b1(e,m,r,p))&&(c=!0)}else s===0&&(c=d&&db(e,h,p))}return u=u&&!c,!c&&(p.anchorStart!==_e||p.tagStart!==_e||u)&&(ri(e,_e,_e,p.anchorStart,p.anchorEnd,p.tagStart,p.tagEnd,1),c=!0),e.depth--,c||p.anchorStart!==_e||p.tagStart!==_e}function x1(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!fr(e.input.charCodeAt(e.position));)e.position++;let r=e.input.slice(t,e.position),n=[];for(r.length===0&&U(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!Xe(e.input.charCodeAt(e.position));){for(;io(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Xe(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let o=e.position;for(;e.input.charCodeAt(e.position)!==0&&!fr(e.input.charCodeAt(e.position));)e.position++;n.push(e.input.slice(o,e.position))}if(Xe(e.input.charCodeAt(e.position))&&cc(e),r==="YAML"){e.directives.some(i=>i.kind==="yaml")&&U(e,"duplication of %YAML directive"),n.length!==1&&U(e,"YAML directive accepts exactly one argument");let o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);o===null&&U(e,"ill-formed argument of the YAML directive"),parseInt(o[1],10)!==1&&U(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&U(e,"TAG directive accepts exactly two arguments");let[o,i]=n;Ib.test(o)||U(e,"ill-formed tag handle (first argument) of the TAG directive"),Ob.call(e.tagHandlers,o)&&U(e,`there is a previously declared suffix for "${o}" tag handle`),o1.test(i)||U(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[o]=i,e.directives.push({kind:"tag",handle:o,prefix:i})}return!0}function S1(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(wt(e,!0);x1(e);)t=!0,wt(e,!0);let r=!1,n=!1,o=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&tn(e.input.charCodeAt(e.position+3))){r=!0;let a=e.line;e.position+=3,wt(e,!0),o=e.line>a}else t&&U(e,"directives end mark is expected");let i=e.events.length;if(!r&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&En(e)){e.position+=3,wt(e,!0);return}if(i1(e,r,!1),oo(e,e.lineIndent-1,ac,!1,o,o)||St(e),wt(e,!0),e.position===e.lineStart&&En(e)&&(n=e.input.charCodeAt(e.position)===46,n)){let a=e.line;e.position+=3,wt(e,!0),e.line===a&&e.position<e.length&&U(e,"end of the stream or a document separator is expected")}let s=e.events[i];s?.type===1&&(s.explicitEnd=n),Jo(e),!n&&e.position<e.length&&!(e.position===e.lineStart&&En(e))&&U(e,"end of the stream or a document separator is expected")}function w1(e,t){let r=e.length,n={...Bu,...t,input:`${e}\0`,length:r,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},o=e.indexOf("\0");for(o!==-1&&dc(e,o,"null byte is not allowed in input",n.filename),n.input.charCodeAt(n.position)===65279&&n.position++;n.position<n.length&&(wt(n,!0),!(n.position>=n.length));){let i=n.position;S1(n),n.position===i&&U(n,"can not read a document")}return n.events}var _1={...Bu,...Vu};function P1(e,t={}){let r={..._1,...t},n=String(e),o=Object.keys(Bu),i=Object.keys(Vu);return ZO(w1(n,vu(r,o)),{...vu(r,i),source:n})}function jb(e,t,r){let n=null;typeof t=="function"?n=t:t!==null&&typeof t=="object"&&(r=t);let o=P1(e,r);if(n===null)return o;for(let i of o)n(i)}var rc=class{tagged=!1;flow=!1;singleQuoted=!1;doubleQuoted=!1;literal=!1;folded=!1},no=Symbol("INVALID");function E1(e){let t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(i=>i!==void 0)),r=e.implicitScalarTags,n=e.tags.filter(i=>!(i.nodeKind==="scalar"&&i.implicit)&&!t.has(i)),o=e.tags.filter(i=>t.has(i));return[...r.map(i=>({tag:i,implicitTag:!0})),...n.map(i=>({tag:i,implicitTag:!1})),...o.map(i=>({tag:i,implicitTag:!0}))]}function $1(e,t){for(let r=0,n=e.representTypes.length;r<n;r+=1){let{tag:o,implicitTag:i}=e.representTypes[r];if(o.identify&&o.identify(t)){let s;return o.matchByTagPrefix&&o.representTagName?s=o.representTagName(t):s=o.tagName,{tag:o,tagName:s,implicitTag:i}}}return null}function bs(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){let p=e.refs.get(t);if(p)return p.anchor===void 0&&(p.anchor=`ref_${e.refCounter++}`),{kind:"alias",tag:"",style:new rc,anchor:p.anchor}}let r=$1(e,t);if(!r){if(t===void 0||e.skipInvalid)return no;throw new Ps(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:n,tagName:o,implicitTag:i}=r,s=i?o:Ab(o);if(n.nodeKind==="scalar"){let p=new rc;return p.tagged=!i,{kind:"scalar",tag:s,style:p,value:n.represent(t)}}if(n.nodeKind==="sequence"){let p=n.represent(t),u=new rc;u.tagged=!i;let d={kind:"sequence",tag:s,style:u,items:[]};e.noRefs||e.refs.set(t,d);for(let f=0,m=p.length;f<m;f+=1){let h=bs(e,p[f]);h===no&&p[f]===void 0&&(h=bs(e,null)),h!==no&&d.items.push(h)}return d}let a=n.represent(t),c=new rc;c.tagged=!i;let l={kind:"mapping",tag:s,style:c,items:[]};e.noRefs||e.refs.set(t,l);for(let[p,u]of a){let d=bs(e,p);if(d===no)continue;let f=bs(e,u);f!==no&&l.items.push({key:d,value:f})}return l}function A1(e,t,r={}){let n=bs({representTypes:E1(t),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:n===no?null:n,directives:[]}]}var T1=Symbol("visit:break"),Mb=Symbol("visit:skip");function ic(e,t,r){let n=t(e,r);if(n===T1)return!0;if(n===Mb)return!1;let o=r.depth+1;switch(e.kind){case"sequence":for(let i of e.items)if(ic(i,t,{depth:o,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:i,value:s}of e.items)if(ic(i,t,{depth:o,parent:e,isKey:!0})||ic(s,t,{depth:o,parent:e,isKey:!1}))return!0;break}return!1}function R1(e,t){for(let r of e)if(r.contents&&ic(r.contents,t,{depth:0,parent:null,isKey:!1}))return}var Hu=65279,O1=9,ao=10,Db=13,k1=32,I1=33,Lb=34,Pu=35,C1=37,q1=38,Ub=39,N1=42,Eu=44,Ku=45,Ss=58,j1=61,M1=62,zb=63,D1=64,$u=91,Au=93,L1=96,Tu=123,U1=124,Ru=125,ht={};ht[0]="\\0";ht[7]="\\a";ht[8]="\\b";ht[9]="\\t";ht[10]="\\n";ht[11]="\\v";ht[12]="\\f";ht[13]="\\r";ht[27]="\\e";ht[34]='\\"';ht[92]="\\\\";ht[133]="\\N";ht[160]="\\_";ht[8232]="\\L";ht[8233]="\\P";var Gu={indent:2,seqNoIndent:!1,seqInlineFirst:!0,sortKeys:!1,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,tagBeforeAnchor:!1};function z1(e){return e.style.tagged?e.tag:Ab(e.tag)}function F1(e){let t={...Gu,...e};return{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,implicitResolvers:t.schema.implicitScalarTags}}function V1(e){let t=e.toString(16).toUpperCase(),r=e<=255?"x":"u",n=e<=255?2:4;return`\\${r}${"0".repeat(n-t.length)}${t}`}function fb(e,t){let r=" ".repeat(t),n=0,o="",i=e.length;for(;n<i;){let s,a=e.indexOf(`
73
+ `,n);a===-1?(s=e.slice(n),n=i):(s=e.slice(n,a+1),n=a+1),s.length&&s!==`
74
+ `&&(o+=r),o+=s}return o}function Ou(e,t){return`
75
+ ${" ".repeat(e.indent*t)}`}function B1(e,t){let r=e.indent*Math.max(1,t);return{indent:r,blockIndent:t===0?e.indent+1:e.indent,lineWidth:e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r)}}function mb(e,t){for(let r=0,n=e.implicitResolvers.length;r<n;r+=1){let o=e.implicitResolvers[r];if(o.resolve(t,!1,o.tagName)!==he)return o.tagName}return e.defaultScalarTagName}function ti(e){return e===k1||e===O1}function H1(e){let t=e.charCodeAt(0);if(t!==Ku&&t!==46||e.charCodeAt(1)!==t||e.charCodeAt(2)!==t)return!1;if(e.length===3)return!0;let r=e.charCodeAt(3);return ti(r)||r===Db||r===ao}function ws(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==Hu||e>=65536&&e<=1114111}function hb(e){return ws(e)&&e!==Hu&&e!==Db&&e!==ao}function ku(e,t,r){let n=hb(e),o=n&&!ti(e);return(r?n:n&&e!==Eu&&e!==$u&&e!==Au&&e!==Tu&&e!==Ru)&&e!==Pu&&!(t===Ss&&!o)||hb(t)&&!ti(t)&&e===Pu||t===Ss&&o&&(r||e!==Eu&&e!==$u&&e!==Au&&e!==Tu&&e!==Ru)}function K1(e){return ws(e)&&e!==Hu&&!ti(e)&&e!==Ku&&e!==zb&&e!==Ss&&e!==Eu&&e!==$u&&e!==Au&&e!==Tu&&e!==Ru&&e!==Pu&&e!==q1&&e!==N1&&e!==I1&&e!==U1&&e!==j1&&e!==M1&&e!==Ub&&e!==Lb&&e!==C1&&e!==D1&&e!==L1}function G1(e,t){let r=Zo(e,0);if(K1(r))return!0;if(e.length>1&&(r===Ku||r===zb||r===Ss)){let n=Zo(e,1);return!ti(n)&&ku(n,r,t)}return!1}function W1(e){return!ti(e)&&e!==Ss}function Zo(e,t){let r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Fb(e){return/^\n* /.test(e)}var _s=1,xs=2,Wu=3,Yu=4,Pn=5;function Y1(e,t,r,n,o,i){let{blockIndent:s,lineWidth:a}=r,c,l=0,p=-1,u=!1,d=!1,f=a!==-1,m=-1,h=!H1(t)&&G1(t,i)&&W1(Zo(t,t.length-1));if(n||o)for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=Zo(t,c),!ws(l))return Pn;h=h&&ku(l,p,i),p=l}else{for(c=0;c<t.length;l>=65536?c+=2:c++){if(l=Zo(t,c),l===ao)u=!0,f&&(d=d||c-m-1>a&&t[m+1]!==" ",m=c);else if(!ws(l))return Pn;h=h&&ku(l,p,i),p=l}d=d||f&&c-m-1>a&&t[m+1]!==" "}return!u&&!d?h&&!o?_s:e.quoteStyle==="double"?Pn:xs:s>9&&Fb(t)?Pn:d?Yu:Wu}function Q1(e,t,r){let{indent:n,blockIndent:o,lineWidth:i}=r;switch(t){case _s:return gb(e,n);case xs:return`'${gb(e,n).replace(/'/g,"''")}'`;case Wu:return"|"+yb(e,o)+bb(fb(e,n));case Yu:return">"+yb(e,o)+bb(fb(X1(e,i),n));case Pn:return`"${Z1(e)}"`}}function J1(e,t,r,n,o){let i=n||!o;if(t.style.singleQuoted)return xs;if(t.style.doubleQuoted)return Pn;if(!i){if(t.style.literal)return Wu;if(t.style.folded)return Yu}let s=t.value;if(s.length===0)return t.style.tagged||mb(e,s)===t.tag?_s:e.quoteStyle==="double"?Pn:xs;let a=Y1(e,s,r,i,e.forceQuotes&&!n,o);return a===_s&&!t.style.tagged&&mb(e,s)!==t.tag?e.quoteStyle==="double"?Pn:xs:a}function yb(e,t){let r=Fb(e)?String(t):"",n=e[e.length-1]===`
76
+ `;return`${r}${n&&(e[e.length-2]===`
77
+ `||e===`
78
+ `)?"+":n?"":"-"}
79
+ `}function gb(e,t){let r=e.indexOf(`
80
+ `);if(r===-1)return e;let n=" ".repeat(t),o=e.slice(0,r),i=/(\n+)([^\n]*)/g;i.lastIndex=r;let s;for(;s=i.exec(e);){let a=s[1].length,c=s[2];o+=`
81
+ `.repeat(a+1)+n+c}return o}function bb(e){return e[e.length-1]===`
82
+ `?e.slice(0,-1):e}function X1(e,t){let r=/(\n+)([^\n]*)/g,n=e.indexOf(`
83
+ `);n===-1&&(n=e.length),r.lastIndex=n;let o=vb(e.slice(0,n),t),i=e[0]===`
84
+ `||e[0]===" ",s,a;for(;a=r.exec(e);){let c=a[1],l=a[2];s=l[0]===" ",o+=c+(!i&&!s&&l!==""?`
85
+ `:"")+vb(l,t),i=s}return o}function vb(e,t){if(e===""||e[0]===" ")return e;let r=/ [^ ]/g,n,o=0,i,s=0,a=0,c="";for(;n=r.exec(e);)a=n.index,a-o>t&&(i=s>o?s:a,c+=`
86
+ ${e.slice(o,i)}`,o=i+1),s=a;return c+=`
87
+ `,e.length-o>t&&s>o?c+=`${e.slice(o,s)}
88
+ ${e.slice(s+1)}`:c+=e.slice(o),c.slice(1)}function Z1(e){let t="",r=0;for(let n=0;n<e.length;r>=65536?n+=2:n++){r=Zo(e,n);let o=ht[r];if(o){t+=o;continue}if(ws(r)){t+=e[n],r>=65536&&(t+=e[n+1]);continue}t+=V1(r)}return t}function ek(e,t,r){let n="";for(let i=0,s=r.items.length;i<s;i+=1){let a=rn(e,t,r.items[i],{});n!==""&&(n+=`,${e.flowSkipCommaSpace?"":" "}`),n+=a}let o=e.flowBracketPadding&&n!==""?" ":"";return`[${o}${n}${o}]`}function xb(e,t,r,n){let o="";for(let i=0,s=r.items.length;i<s;i+=1){let a=rn(e,t+1,r.items[i],{block:!0,compact:e.seqInlineFirst,isblockseq:!0});(!n||o!=="")&&(o+=Ou(e,t)),a===""||ao===a.charCodeAt(0)?o+="-":o+="- ",o+=a}return o}function tk(e,t,r){let n="",o=Vb(e,r.items);for(let{key:s,value:a}of o){let c="";n!==""&&(c+=`,${e.flowSkipCommaSpace?"":" "}`);let l=rn(e,t,s,{iskey:!0}),p=l.length>1024;p?c+="? ":e.quoteFlowKeys&&(c+='"');let u=rn(e,t,a,{}),d=e.flowSkipColonSpace||u===""?"":" ";c+=`${l}${e.quoteFlowKeys&&!p?'"':""}:${d}${u}`,n+=c}let i=e.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}function nc(e){return e.kind==="scalar"?e.value:e}function Vb(e,t){if(!e.sortKeys)return t;let r=t.slice();if(e.sortKeys===!0)r.sort((n,o)=>{let i=nc(n.key),s=nc(o.key);return i<s?-1:i>s?1:0});else{let n=e.sortKeys;r.sort((o,i)=>n(nc(o.key),nc(i.key)))}return r}function rk(e,t,r,n){let o="",i=Vb(e,r.items);for(let s=0,a=i.length;s<a;s+=1){let c="";(!n||o!=="")&&(c+=Ou(e,t));let{key:l,value:p}=i[s],u=(l.kind==="mapping"||l.kind==="sequence")&&!l.style.flow&&l.items.length!==0||l.kind==="scalar"&&(l.style.literal||l.style.folded),d=u?rn(e,t+1,l,{block:!0,compact:!0,isblockseq:!Iu(e,l,t+1)}):rn(e,t+1,l,{block:!0,compact:!0,iskey:!0}),f=l.kind==="scalar"&&l.value.indexOf(`
89
+ `)!==-1,m=u||f||d.length>1024;m&&(d&&ao===d.charCodeAt(0)?c+="?":c+="? "),c+=d,m&&(c+=Ou(e,t));let h=rn(e,t+1,p,{block:!0,compact:m,isblockseq:m&&!Iu(e,p,t+1)}),y=l.kind==="scalar"&&l.value===""&&d!==""&&d.charCodeAt(d.length-1)!==Ub&&d.charCodeAt(d.length-1)!==Lb,g=!m&&(l.kind==="alias"||y)?" ":"";h===""||ao===h.charCodeAt(0)?c+=`${g}:`:c+=`${g}: `,c+=h,o+=c}return o}function Iu(e,t,r){return t.style.tagged||t.anchor!==void 0||e.indent<2&&r>0}function rn(e,t,r,n){if(r.kind==="alias")return`*${r.anchor}`;let{block:o=!1,iskey:i=!1,isblockseq:s=!1}=n,a=n.compact??!1,c=r.anchor!==void 0;Iu(e,r,t)&&(a=!1);let l,p=r.style.tagged,u=o&&(r.kind==="mapping"||r.kind==="sequence")&&!r.style.flow&&r.items.length!==0;if(r.kind==="mapping")u?l=rk(e,t,r,a):l=tk(e,t,r);else if(r.kind==="sequence")u?e.seqNoIndent&&!s&&t>0?l=xb(e,t-1,r,a):l=xb(e,t,r,a):l=ek(e,t,r);else{let d=B1(e,t),f=J1(e,r,d,i,o);l=Q1(r.value,f,d),p=r.style.tagged||f!==_s&&r.tag!==e.defaultScalarTagName}if(u&&a&&t>0&&e.indent>2&&(l=`${" ".repeat(e.indent-2)}${l}`),p||c){let d=[],f=p?z1(r):null,m=c?`&${r.anchor}`:null;e.tagBeforeAnchor?(f!==null&&d.push(f),m!==null&&d.push(m)):(m!==null&&d.push(m),f!==null&&d.push(f));let h=l===""||l.charCodeAt(0)===ao?"":" ";l=`${d.join(" ")}${h}${l}`}return l}function nk(e){return(e.kind==="sequence"||e.kind==="mapping")&&!e.style.flow&&e.items.length!==0&&!e.style.tagged&&e.anchor===void 0}function ok(e){let t=e;for(;(t.kind==="sequence"||t.kind==="mapping")&&!t.style.flow&&t.items.length!==0;)t=t.kind==="sequence"?t.items[t.items.length-1]:t.items[t.items.length-1].value;if(t.kind!=="scalar"||!(t.style.literal||t.style.folded))return!1;let{value:r}=t;return r.endsWith(`
90
+
91
+ `)||r===`
92
+ `}function ik(e){let t="";for(let r of e.directives){if(r.kind==="yaml"){t+=`%YAML ${r.version}
93
+ `;continue}let{handle:n,prefix:o}=r;t+=`%TAG ${n} ${o}
94
+ `}return t}function sk(e,t){let r=F1(t),n="",o=!1;for(let i=0;i<e.length;i+=1){let s=e[i],a=ik(s),c=a!=="",l=s.explicitStart||c||i>0&&!o;if(n+=a,s.contents===null)l&&(n+=`---
95
+ `);else if(l){let p=rn(r,0,s.contents,{block:!0,compact:!0}),u=p===""?"":c||nk(s.contents)?`
96
+ `:" ";n+=`---${u}${p}
97
+ `}else n+=rn(r,0,s.contents,{block:!0,compact:!0})+`
98
+ `;o=s.explicitEnd||s.contents!==null&&ok(s.contents),o&&(n+=`...
99
+ `)}return n}var ak=jO.withTags({...gu,resolve:(e,t,r)=>{let n=gu.resolve(e,t,r);return n===he?Sb.resolve(e,t,r):n}},{...bu,resolve:(e,t,r)=>{let n=bu.resolve(e,t,r);return n===he?wb.resolve(e,t,r):n}}),ck={...Gu,schema:ak,skipInvalid:!1,noRefs:!1,flowLevel:-1,transform:()=>{}};function Bb(e,t={}){let r={...ck,...t},n=A1(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});return r.flowLevel>=0&&R1(n,(o,i)=>{if(!(i.depth<r.flowLevel))return o.style.flow=!0,Mb}),r.transform(n),sk(n,{...vu(r,Object.keys(Gu)),schema:r.schema})}var pk=zu.withTags(Nu,ju,Mu,Du,Lu),co=(e,t)=>{let r=jb(e,{schema:pk,...t});if(r.length===0)return e.trim()===""?void 0:null;if(r.length>1)throw new Ps("expected a single document in the stream, but found more");return r[0]},fc=(e,t)=>Bb(e,t);var ed={};jR(ed,{bgBlack:()=>Ik,bgBlackBright:()=>Wk,bgBlue:()=>jk,bgBlueBright:()=>Xk,bgCyan:()=>Dk,bgCyanBright:()=>eI,bgGreen:()=>qk,bgGreenBright:()=>Qk,bgMagenta:()=>Mk,bgMagentaBright:()=>Zk,bgRed:()=>Ck,bgRedBright:()=>Yk,bgWhite:()=>Lk,bgWhiteBright:()=>tI,bgYellow:()=>Nk,bgYellowBright:()=>Jk,black:()=>_k,blackBright:()=>Uk,blue:()=>Ak,blueBright:()=>Bk,bold:()=>yk,cyan:()=>Rk,cyanBright:()=>Kk,dim:()=>gk,gray:()=>kk,green:()=>Ek,greenBright:()=>Fk,hidden:()=>Sk,inverse:()=>xk,italic:()=>bk,magenta:()=>Tk,magentaBright:()=>Hk,options:()=>Zu,red:()=>Pk,redBright:()=>zk,reset:()=>hk,strikethrough:()=>wk,underline:()=>vk,white:()=>Ok,whiteBright:()=>Gk,yellow:()=>$k,yellowBright:()=>Vk});import*as Ju from"tty";var $n=process.env,lk="NO_COLOR"in $n,uk="FORCE_COLOR"in $n,dk=process.platform==="win32",fk=Ju&&Ju.isatty(1)&&$n.TERM&&$n.TERM!=="dumb",mk="CI"in $n&&("GITHUB_ACTIONS"in $n||"GITLAB_CI"in $n||"CIRCLECI"in $n),Qu=!lk&&(uk||dk||fk||mk),Xu=(e,t,r,n)=>o=>Qu?e+(~(o+="").indexOf(t,4)?o.replace(r,n):o)+t:o,te=(e,t)=>Xu(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),Zu=Object.defineProperty({},"enabled",{get:()=>Qu,set:e=>Qu=e}),hk=te(0,0),yk=Xu("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),gk=Xu("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),bk=te(3,23),vk=te(4,24),xk=te(7,27),Sk=te(8,28),wk=te(9,29),_k=te(30,39),Pk=te(31,39),Ek=te(32,39),$k=te(33,39),Ak=te(34,39),Tk=te(35,39),Rk=te(36,39),Ok=te(37,39),kk=te(90,39),Ik=te(40,49),Ck=te(41,49),qk=te(42,49),Nk=te(43,49),jk=te(44,49),Mk=te(45,49),Dk=te(46,49),Lk=te(47,49),Uk=te(90,39),zk=te(91,39),Fk=te(92,39),Vk=te(93,39),Bk=te(94,39),Hk=te(95,39),Kk=te(96,39),Gk=te(97,39),Wk=te(100,49),Yk=te(101,49),Qk=te(102,49),Jk=te(103,49),Xk=te(104,49),Zk=te(105,49),eI=te(106,49),tI=te(107,49);var Ze=typeof window<"u"||typeof process>"u"||process?.platform==="browser",Es=Ze?{}:process.env||{};function Hb(e){return e}var $s=Zu,Y=new Proxy(ed,{get(e,t){return Ze?Hb:e[t]}}),td=class{info(t){return Ze?console.info(t):process.stderr.write(t)}warn(t){return Ze?console.warn(t):process.stderr.write(Y.yellow(t))}error(t){return Ze?console.error(t):process.stderr.write(Y.red(t))}output(t){return Ze?console.log(t):process.stdout.write(t)}printNewLine(){Ze?console.log(`
100
+ `):process.stdout.write(`
101
+ `)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),o=Ze?n:Y.gray(n);return Ze?console.log(o):process.stdout.write(o)}indent(t,r){let n=Ze?" ":"\xA0";return t.split(`
102
+ `).map(o=>n.repeat(r)+o).join(`
103
+ `)}},Q=new td;import*as rI from"node:fs";import*as rd from"node:path";function nI(e){return(rd.extname(e)===".yaml"||rd.extname(e)===".yml")&&!!rI?.existsSync?.(e)}function Vt(e,t){let r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Vt(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n&&!Object.prototype.hasOwnProperty.call(t,r)||!(r in t)||!Vt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Bt(e){return A(e)&&Object.keys(e).length===0}function po(e){return Array.isArray(e)&&e.length>0}function oI(e){return A(e)&&!Bt(e)}function je(e){return typeof e=="string"}function As(e){return e?Object.keys(e):[]}async function iI(e){return new Promise(t=>setTimeout(t,e))}var Kb=Ir(id(),1);function sI(e,t,r){return e.split(" ").map(n=>(0,Kb.default)(n,t,r)).join(" ")}var bv=Ir(gv(),1);async function yd(e,t){let r={};for(let o of t.headers)zI(e,o.matches)&&(r[o.name]=o.envVariable!==void 0?Es[o.envVariable]||"":o.value);let n=await(t.customFetch||fetch)(e,{headers:r});if(!n.ok)throw new Error(`Failed to load ${e}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function zI(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),bv.default.isMatch(e,t)}function gd(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function lo(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}function C(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function q(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}var mr={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function nn(e,t={}){let r={};for(let i of Object.keys(e))r[i]={...e[i],name:i};for(let i of Object.values(r))n(i);return r.SpecExtension=mr,r;function n(i){if(i.additionalProperties&&(i.additionalProperties=o(i.additionalProperties)),i.items&&(i.items=o(i.items)),i.properties){let s={};for(let[a,c]of Object.entries(i.properties))s[a]=o(c),t.doNotResolveExamples&&c&&c.isExample&&(s[a]={...c,resolvable:!1});i.properties=s}}function o(i){if(typeof i=="string"){if(!r[i])throw new Error(`Unknown type name found: ${i}`);return r[i]}else return typeof i=="function"?(s,a)=>o(i(s,a)):Qt(i)?(i={...i},n(i),i):i?.directResolveAs!==void 0?{...i,directResolveAs:o(i.directResolveAs)??void 0}:i}}function Qt(e){return typeof e?.name=="string"}var FI=/^[0-9][0-9Xx]{2}$/,VI={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},BI={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},HI={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},KI={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},GI={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},WI={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},YI={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},QI={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},JI={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},XI={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},ZI={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},eC={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(e){return!e||!e.in?["name","in"]:e.in==="body"?["name","in","schema"]:e.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},tC={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},rC={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>FI.test(t)?"Response":void 0},nC={properties:{description:{type:"string"},schema:"Schema",headers:q("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},oC={properties:{},additionalProperties:{isExample:!0}},iC={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return A(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},sC={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},aC={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},cC={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?C("Schema"):"Schema",allOf:C("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},pC={properties:{},additionalProperties:{type:"string"}},lC={properties:{},additionalProperties:"Schema"},uC={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},dC={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},fC={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:"Scopes","x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(e?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},mC={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},hC={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},bd={Root:VI,Tag:sC,TagList:C("Tag"),TagGroups:C("TagGroup"),TagGroup:aC,ExternalDocs:ZI,Example:hC,ExamplesMap:q("Example"),EnumDescriptions:pC,SecurityRequirement:mC,SecurityRequirementList:C("SecurityRequirement"),Info:BI,Contact:KI,License:GI,Logo:HI,Paths:WI,PathItem:YI,Parameter:eC,ParameterItems:tC,ParameterList:C("Parameter"),Operation:QI,Examples:oC,Header:iC,Responses:rC,Response:nC,Schema:cC,Xml:uC,SchemaProperties:lC,NamedSchemas:q("Schema"),NamedResponses:q("Response"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),SecurityScheme:fC,Scopes:dC,XCodeSample:JI,XCodeSampleList:C("XCodeSample"),XServerList:C("XServer"),XServer:XI};var yC=/^[0-9][0-9Xx]{2}$/,gC={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},bC={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A description for the tag."},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-",description:"The Tag Object represents a tag used by the OAS. It is not mandatory to have a tag object per tag used by the OAS but each tag object can contain additional metadata."},vC={properties:{name:{type:"string",description:"The display name for the tag, used in the navigation bar and as a section heading."},tags:{type:"array",description:"List of tags to include in this group.",items:{type:"string"}}},extensionsPrefix:"x-",description:"The x-tagGroups extension is used at the top level of an OpenAPI description.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-tag-groups#taggroup-object"},xC={properties:{description:{type:"string",description:"A description of the target documentation. Used as the link anchor text in Redocly. If not provided, the url is used as the link anchor text."},url:{type:"string",description:"REQUIRED. The URL for the target documentation."}},required:["url"],extensionsPrefix:"x-",description:"Additional external documentation for this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/external-docs"},SC={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served. Variable substitutions are made when a variable is named in { curly braces }."},description:{type:"string",description:"An optional string describing the host designated by the URL."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"A server object to be used by the target operation."},wC={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. If defined, the array MUST contain the default value."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object's treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value MUST exist in the enum's values."},description:{type:"string",description:"An optional description for the server variable."}},required:["default"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/server-variables#server-variables",description:"Server variables are used when you need to make a substitution into the server URL such as when the subdomain is unique per tenant."},_C={properties:{},additionalProperties:{type:"array",items:{type:"string"}},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/security#security-requirement-object",description:"A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement ({}) can be included in the array."},PC={properties:{title:{type:"string",description:"REQUIRED. The title of the API."},version:{type:"string",description:"REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version)."},description:{type:"string",description:"RECOMMENDED. A description of the API (Markdown may be used)."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API."},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/info#info"},EC={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},documentationLink:"https://redocly.com/docs-legacy/api-reference-docs/specification-extensions/x-logo#x-logo",description:"A commonly used specification extension containing the information about the API logo."},$C={properties:{name:{type:"string",description:"The identifying name of the contact person or organization."},url:{type:"string",description:"The URL pointing to the contact information."},email:{type:"string",description:"The email address of the contact person or organization."}},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/contact",description:"The contact information for the exposed API."},AC={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"The URL pointing to the contact information."}},required:["name"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/license#license",description:"The license information for the exposed API."},TC={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0,description:"The Paths Object is a map of a paths to the path item object. A path starts with a /.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/paths#paths-object"},RC={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},OC={properties:{$ref:{type:"string",description:"Allows for a referenced definition of this path item. The referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/reference"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string",description:"An optional, string summary, intended to apply to all operations in this path."},description:{type:"string",description:"An optional, string description, intended to apply to all operations in this path."},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation","x-query":"Operation"},extensionsPrefix:"x-",description:"Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/path-item#path-item-object"},kC={properties:{name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},in:{enum:["query","header","path","cookie"],description:'REQUIRED. The location of the parameter. Possible values are "query", "header", "path", or "cookie".'},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use."},required:{type:"boolean",description:'Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.'},deprecated:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},allowEmptyValue:{type:"boolean",description:"Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later revision."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form."},explode:{type:"boolean",description:"When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. This property only applies to parameters with an in value of query. The default value is false."},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-",description:"Describes a request parameter, which excludes the request body. A unique parameter is defined by a unique combination of the name and in values.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/parameter"},IC={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation"},CC={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}},documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-code-samples",description:"Code samples are snippets of code shown alongside API operations in reference documentation, giving users a quick way to start to interact with an API from their own code. The x-codeSamples addition to OpenAPI allows you to add or override any existing code samples for a particular language or endpoint."},qC={properties:{description:{type:"string",description:"A brief description of the request body. This could contain examples of use."},required:{type:"boolean",description:"Determines if the request body is required in the request. Defaults to false."},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/request-body",description:"The request body is defined inside of operations (including paths and webhooks). The request body can also be defined inside of the named requestBodies object in components."},NC={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},jC={properties:{schema:"Schema",example:{isExample:!0,description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema."},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-",description:"The Media Type Object is one of the important building blocks of OpenAPI.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type"},MC={properties:{value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary."},summary:{type:"string"},description:{type:"string",description:"Long description for the example."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/example"},DC={properties:{contentType:{type:"string",description:"The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binary \u2013 application/octet-stream; for other primitive types \u2013 text/plain; for object - application/json; for array \u2013 the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types."},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how a specific property value will be serialized depending on its type. See Parameter Object for details on the style property. The behavior follows the same values as query parameters, including default values. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},explode:{type:"boolean",description:"When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."}},extensionsPrefix:"x-",description:"A single encoding definition applied to a single schema property.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/encoding#types"},LC={properties:{},additionalProperties:{type:"string"},description:'The enum (short for "enumeration") fields in OpenAPI allow you to restrict the value of a field to a list of allowed values. These values need to be short and machine-readable, but that can make them harder for humans to parse and work with.',documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-enum-descriptions"},UC={properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines whether this parameter is mandatory. Its default value is false."},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0,description:"Example of the header's potential value. The example SHOULD match the specified schema and encoding properties if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema that contains an example, the example value SHALL override the example provided by the schema. To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary."},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/header#header-object",description:"The header object is used to describe a response header in the headers map."},zC={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>yC.test(t)?"Response":void 0,description:"The list of possible responses as they are returned from executing this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/named-responses"},FC={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-summary#openapi-extension-x-summary",description:"Use x-summary to add a short custom text to describe the response in the API documentation."}},required:["description"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/response",description:"The response object describes a single response in the Responses Map."},VC={properties:{operationRef:{type:"string",description:"A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition."},operationId:{type:"string",description:"The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field."},parameters:null,requestBody:null,description:{type:"string",description:"A description of the link."},server:"Server"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/links",description:"The Link object represents a possible design-time link for a response. The presence of a link does not guarantee the caller\u2019s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations."},vd="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",vv=C("Schema",{name:"AllOf",description:vd}),xv=C("Schema",{name:"AnyOf",description:vd}),Sv=C("Schema",{name:"OneOf",description:vd}),BC={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string",description:"Value MUST be a string. Multiple types via an array are not supported."},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string",description:"(This string SHOULD be a valid regular expression, according to the Ecma-262 Edition 5.1 regular expression dialect)"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"],description:"Value MUST be a string. Multiple types via an array are not supported."},allOf:vv,anyOf:xv,oneOf:Sv,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?C("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string",description:"CommonMark syntax MAY be used for rich text representation."},format:{type:"string",description:"See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats."},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-",description:"The schema defining the content of the request, response, or parameter.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/schemas"},HC={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-",description:"This MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property."},KC={properties:{},additionalProperties:"Schema"},GC={properties:{},additionalProperties:e=>typeof e=="string"&&qr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},WC={properties:{propertyName:{type:"string",description:"REQUIRED. The name of the property in the payload that will hold the discriminator value."},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#discriminator-object",description:"When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the document of an alternative schema based on the value associated with it."},YC={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/components#components"},QC={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Implicit flow."},JC={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Object Configuration for the OAuth Resource Owner Password flow."},XC={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0."},ZC={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":e=>typeof e=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0."},eq={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},tq={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"],description:'REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect".'},description:{type:"string",description:"A short description for security scheme."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie"],description:'REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie".'},scheme:{type:"string",description:"A short description for security scheme."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"OAuth2Flows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL."},"x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},rq={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}},description:"The x-usePkce allows you to enable Proof Key for Code Exchange (PKCE) for the Oauth2 or OpenID Connect authorization code flow in the Replay.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-use-pkce#openapi-extension-x-usepkce"},It={Root:gC,Tag:bC,TagList:C("Tag",{documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/tags",description:"A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique."}),TagGroups:C("TagGroup"),TagGroup:vC,ExternalDocs:xC,Server:SC,ServerList:C("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:wC,ServerVariablesMap:q("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:_C,SecurityRequirementList:C("SecurityRequirement"),Info:PC,Contact:$C,License:AC,Paths:TC,PathItem:OC,Parameter:kC,ParameterList:C("Parameter",{description:"A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object\u2019s components/parameters."}),Operation:IC,Callback:q("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:q("Callback"),RequestBody:qC,MediaTypesMap:NC,MediaType:jC,Example:MC,ExamplesMap:q("Example"),Encoding:DC,EncodingMap:q("Encoding"),EnumDescriptions:LC,Header:UC,HeadersMap:q("Header"),Responses:zC,Response:FC,Link:VC,Logo:EC,Schema:BC,AllOf:vv,AnyOf:xv,OneOf:Sv,Xml:HC,SchemaProperties:KC,DiscriminatorMapping:GC,Discriminator:WC,Components:YC,LinksMap:q("Link"),NamedSchemas:q("Schema"),NamedResponses:q("Response"),NamedParameters:q("Parameter"),NamedExamples:q("Example"),NamedRequestBodies:q("RequestBody"),NamedHeaders:q("Header"),NamedSecuritySchemes:q("SecurityScheme"),NamedLinks:q("Link"),NamedCallbacks:q("Callback"),ImplicitFlow:QC,PasswordFlow:JC,ClientCredentials:XC,AuthorizationCode:ZC,OAuth2Flows:eq,SecurityScheme:tq,XCodeSample:CC,XCodeSampleList:C("XCodeSample"),XUsePkce:rq,WebhooksMap:RC};var nq={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string",description:"The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI."}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},oq={...It.License,properties:{...It.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},iq={...It.Info,properties:{...It.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},sq={...It.Components,properties:{...It.Components.properties,pathItems:"NamedPathItems"}},aq={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed."},cq={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:C("Schema",{name:"AllOf"}),anyOf:C("Schema",{name:"AnyOf"}),oneOf:C("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:q("Schema"),dependentRequired:"DependentRequired",prefixItems:C("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},wv={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},pq={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},lq={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},ie={...It,Info:iq,Root:nq,Schema:cq,SchemaProperties:wv,PatternProperties:wv,License:oq,Components:sq,NamedPathItems:q("PathItem"),SecurityScheme:pq,Operation:aq,DependentRequired:lq};var uq={...ie.Root,properties:{...ie.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1. Implementations MUST support identifying the targets of API description URIs using the URI defined by this field when it is present. See Establishing the Base URI for the base URI behavior when $self is absent or relative, and see Appendix F for examples of using $self to resolve references."}}},dq={...ie.Tag,properties:{...ie.Tag.properties,kind:{type:"string",description:"A machine-readable string to categorize what sort of tag it is. Any string value can be used; common uses are nav for Navigation, badge for visible badges, audience for APIs used by different groups. A registry of the most commonly used values is available."},parent:{type:"string",description:"The name of a tag that this tag is nested under. The named tag MUST exist in the API description, and circular references between parent and child tags MUST NOT be used."},summary:{type:"string",description:"A short summary of the tag, used for display purposes."}},description:"Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances."},fq={...ie.Server,properties:{...ie.Server.properties,name:{type:"string",description:"An optional unique string to refer to the host designated by the URL."}},description:"An object representing a Server."},mq={...ie.SecurityScheme,properties:{...ie.SecurityScheme.properties,deprecated:{type:"boolean",description:"Declares this security scheme to be deprecated. Consumers SHOULD refrain from usage of the declared scheme. Default value is false."},oauth2MetadataUrl:{type:"string",description:"URL to the OAuth2 authorization server metadata [RFC8414]. TLS is required."}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}},description:"Defines a security scheme that can be used by the operations."},hq={...ie.OAuth2Flows,properties:{...ie.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},yq={properties:{deviceAuthorizationUrl:{type:"string",description:"REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},tokenUrl:{type:"string",description:"REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},refreshUrl:{type:"string",description:"The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},scopes:q("string",{description:"REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."})},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Device Authorization flow."},gq={...It.PathItem,properties:{...It.PathItem.properties,query:"Operation",additionalOperations:q("Operation")}},bq={...ie.Parameter,properties:{...ie.Parameter.properties,in:{description:'REQUIRED. The location of the parameter. Possible values are "query", "querystring", "header", "path" or "cookie".',enum:["query","header","path","cookie","querystring"]}}},vq={...ie.Response,properties:{...ie.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},xq={...ie.MediaType,properties:{...ie.MediaType.properties,itemSchema:"Schema",prefixEncoding:C("Encoding",{description:"A map between a property name and its encoding information, as defined under Encoding By Name. The encoding field SHALL only apply when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. This field MUST NOT be present if prefixEncoding or itemEncoding are present."}),itemEncoding:"Encoding"}},Sq={...ie.Discriminator,properties:{...ie.Discriminator.properties,defaultMapping:e=>{let t="The schema name or URI reference to a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload or contains a value for which there is no explicit or implicit mapping.";return qr(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},wq={extensionsPrefix:"x-",properties:{...ie.Components.properties,mediaTypes:"NamedMediaTypes"}},_q={...ie.Example,properties:{...ie.Example.properties,dataValue:{resolvable:!1,description:"An example of the data structure that MUST be valid according to the relevant Schema Object. If this field is present, value MUST be absent."},serializedValue:{type:"string",description:"An example of the serialized form of the value, including encoding and escaping as described under Validating Examples. If dataValue is present, then this field SHOULD contain the serialization of the given data. Otherwise, it SHOULD be the valid serialization of a data value that itself MUST be valid as described for dataValue. This field SHOULD NOT be used if the serialization format is JSON, as the data form is easier to work with. If this field is present, value, and externalValue MUST be absent."}}},Pq={properties:{nodeType:{type:"string",enum:["element","attribute","text","cdata","none"],description:'One of element, attribute, text, cdata, or none, as explained under XML Node Types. The default value is none if $ref, $dynamicRef, or type: "array" is present in the Schema Object containing the XML Object, and element otherwise.'},name:{type:"string",description:"Sets the name of the element/attribute corresponding to the schema, replacing the name that was inferred as described under XML Node Names. This field SHALL be ignored if the nodeType is text, cdata, or none."},namespace:{type:"string",description:"The IRI ([RFC3987]) of the namespace definition. Value MUST be in the form of a non-relative IRI."},prefix:{type:"string",description:"The prefix to be used for the name."},attribute:{type:"boolean",description:'Declares whether the property definition translates to an attribute instead of an element. Default value is false. If nodeType is present, this field MUST NOT be present.Deprecated: Use nodeType: "attribute" instead of attribute: true.'},wrapped:{type:"boolean",description:'MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). If nodeType is present, this field MUST NOT be present. Deprecated: Use nodeType: "element" instead of wrapped: true.'}},extensionsPrefix:"x-",description:"A metadata object that allows for more fine-tuned XML model definitions. When using a Schema Object with XML, if no XML Object is present, the behavior is determined by the XML Object\u2019s default field values."},Eq={...ie.Schema,properties:{...ie.Schema.properties,xml:"Xml"}},Ye={...ie,Root:uq,Tag:dq,Server:fq,SecurityScheme:mq,OAuth2Flows:hq,DeviceAuthorization:yq,PathItem:gq,Parameter:bq,Response:vq,MediaType:xq,Discriminator:Sq,Example:_q,Xml:Pq,Schema:Eq,Components:wq,NamedMediaTypes:q("MediaTypesMap")};var $q={properties:{},description:"Protocol-specific information for an HTTP channel."},Aq={properties:{},description:"Protocol-specific information for an HTTP server."},Tq={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},Rq={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP operation."},Oq={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},kq={properties:{},description:"Protocol-specific information for a WebSockets server."},Iq={properties:{},description:"Protocol-specific information for a WebSockets message."},Cq={properties:{},description:"Protocol-specific information for a WebSockets operation."},qq={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"},"confluent.key.schema.validation":{type:"boolean"},"confluent.key.subject.name.strategy":{type:"string"},"confluent.value.schema.validation":{type:"boolean"},"confluent.value.subject.name.strategy":{type:"string"}}},Nq={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},jq={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},Mq={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},Dq={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},Lq={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},Uq={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},zq={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},Fq={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},Vq={properties:{name:{type:"string"},type:{type:"string",enum:["topic","direct","fanout","default","headers"]},durable:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP exchange the channel is bound to."},Bq={properties:{name:{type:"string"},durable:{type:"boolean"},exclusive:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP queue the channel is bound to."},Hq={properties:{is:{type:"string",enum:["queue","routingKey"]},exchange:"AmqpChannelExchange",queue:"AmqpChannelQueue",bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 channel."},Kq={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Gq={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},Wq={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 operation."},Yq={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},Qq={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},Jq={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Xq={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},Zq={properties:{},description:"Protocol-specific information for an MQTT channel."},eN={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},tN={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>A(e)?"Schema":{type:"integer"},maximumPacketSize:e=>A(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},rN={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>A(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},nN={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>A(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},oN={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},iN={properties:{sessionExpiryInterval:e=>A(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},sN={properties:{},description:"Protocol-specific information for an MQTT 5 message."},aN={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},cN={properties:{},description:"Protocol-specific information for a NATS channel."},pN={properties:{},description:"Protocol-specific information for a NATS server."},lN={properties:{},description:"Protocol-specific information for a NATS message."},uN={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},dN={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},fN={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},mN={properties:{jmsConnectionFactory:{type:"string"},properties:C("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},hN={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},yN={properties:{},description:"Protocol-specific information for a JMS operation."},gN={properties:{},description:"Protocol-specific information for a Solace channel."},bN={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},vN={properties:{},description:"Protocol-specific information for a Solace message."},xN={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxMsgSpoolUsage":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},SN={properties:{bindingVersion:{type:"string"},destinations:C("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},wN={properties:{url:{type:"string"},email:{type:"string"},phone:{type:"string"},arn:{type:"string"},name:{type:"string"}},description:"Identifies an SNS resource: exactly one of url, email, phone, arn, or name."},_N={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},PN={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},EN={properties:{statements:C("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},$N={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},AN={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},TN={properties:{minDelayTarget:{type:"integer"},maxDelayTarget:{type:"integer"},numRetries:{type:"integer"},numNoDelayRetries:{type:"integer"},numMinDelayRetries:{type:"integer"},numMaxDelayRetries:{type:"integer"},backoffFunction:{type:"string",enum:["arithmetic","exponential","geometric","linear"]},maxReceivesPerSecond:{type:"integer"}},description:"Defines how SNS retries the delivery of messages to a subscription endpoint."},RN={properties:{protocol:{type:"string",enum:["http","https","email","email-json","sms","sqs","application","lambda","firehose"]},endpoint:"SnsIdentifier",filterPolicy:{type:"object"},filterPolicyScope:{type:"string",enum:["MessageAttributes","MessageBody"]},rawMessageDelivery:{type:"boolean"},redrivePolicy:"SnsRedrivePolicy",deliveryPolicy:"SnsDeliveryPolicy",displayName:{type:"string"}},required:["protocol","endpoint","rawMessageDelivery"],description:"Describes an SNS subscription consuming messages from a topic."},ON={properties:{topic:"SnsIdentifier",consumers:C("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},kN={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},IN={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},CN={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},qN={properties:{statements:C("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},_v={properties:{name:{type:"string"},fifoQueue:{type:"boolean"},deduplicationScope:{type:"string",enum:["queue","messageGroup"]},fifoThroughputLimit:{type:"string",enum:["perQueue","perMessageGroupId"]},deliveryDelay:{type:"integer"},visibilityTimeout:{type:"integer"},receiveMessageWaitTime:{type:"integer"},messageRetentionPeriod:{type:"integer"},redrivePolicy:"SqsRedrivePolicy",policy:"SqsPolicy",tags:{type:"object"}},required:["name","fifoQueue"],description:"Describes an SQS queue (channel-level definition)."},NN={..._v,required:["name"],description:"Describes an SQS queue (operation-level definition)."},jN={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},MN={properties:{queues:C("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},DN={properties:{},description:"Protocol-specific information for a STOMP channel."},LN={properties:{},description:"Protocol-specific information for a STOMP server."},UN={properties:{},description:"Protocol-specific information for a STOMP message."},zN={properties:{},description:"Protocol-specific information for a STOMP operation."},FN={properties:{},description:"Protocol-specific information for a Redis channel."},VN={properties:{},description:"Protocol-specific information for a Redis server."},BN={properties:{},description:"Protocol-specific information for a Redis message."},HN={properties:{},description:"Protocol-specific information for a Redis operation."},KN={properties:{},description:"Protocol-specific information for a Mercure channel."},GN={properties:{},description:"Protocol-specific information for a Mercure server."},WN={properties:{},description:"Protocol-specific information for a Mercure message."},YN={properties:{},description:"Protocol-specific information for a Mercure operation."},QN={properties:{groupId:{type:"string"},ccdtQueueManagerName:{type:"string"},cipherSpec:{type:"string"},multiEndpointServer:{type:"boolean"},heartBeatInterval:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ server."},JN={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},XN={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},ZN={properties:{destinationType:{type:"string",enum:["topic","queue"]},queue:"IbmmqChannelQueue",topic:"IbmmqChannelTopic",maxMsgLength:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ channel."},ej={properties:{type:{type:"string",enum:["string","jms","binary"]},headers:{type:"string"},description:{type:"string"},expiry:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ message."},tj={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},rj={properties:{encoding:{type:"string"},firstRevisionId:{type:"string"},lastRevisionId:{type:"string"},name:{type:"string"}},required:["encoding","name"],description:"Settings for validating Google Cloud Pub/Sub messages against a schema."},nj={properties:{labels:{type:"object"},messageRetentionDuration:{type:"string"},messageStoragePolicy:"GooglepubsubMessageStoragePolicy",schemaSettings:"GooglepubsubSchemaSettings",topic:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub channel."},oj={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},ij={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},sj={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},aj={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},cj={properties:{namespace:{type:"string"},persistence:{type:"string",enum:["persistent","non-persistent"]},compaction:{type:"integer"},"geo-replication":{type:"array",items:{type:"string"}},retention:"PulsarRetention",ttl:{type:"integer"},deduplication:{type:"boolean"},bindingVersion:{type:"string"}},required:["namespace","persistence"],description:"Protocol-specific information for a Pulsar channel."},pj={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},lj={properties:{},description:"Protocol-specific information for a ROS 2 channel."},uj={properties:{reliability:{type:"string",enum:["best_effort","reliable"]},history:{type:"string",enum:["keep_last","keep_all","unknown"]},durability:{type:"string",enum:["transient_local","volatile"]},lifespan:{type:"integer"},deadline:{type:"integer"},liveliness:{type:"string",enum:["automatic","manual"]},leaseDuration:{type:"integer"}},description:"Quality of Service settings for a ROS 2 operation."},dj={properties:{role:{type:"string",enum:["publisher","subscriber","service_client","service_server","action_client","action_server"]},node:{type:"string"},qosPolicies:"Ros2QosPolicies",bindingVersion:{type:"string"}},description:"Protocol-specific information for a ROS 2 operation."},fj={properties:{},description:"Protocol-specific information for a ROS 2 message."},mj={extensionsPrefix:"x-",properties:{http:"HttpServerBinding",ws:"WsServerBinding",kafka:"KafkaServerBinding",anypointmq:"AnypointmqServerBinding",amqp:"AmqpServerBinding",amqp1:"Amqp1ServerBinding",mqtt:"MqttServerBinding",mqtt5:"Mqtt5ServerBinding",nats:"NatsServerBinding",jms:"JmsServerBinding",solace:"SolaceServerBinding",stomp:"StompServerBinding",redis:"RedisServerBinding",mercure:"MercureServerBinding",ibmmq:"IbmmqServerBinding",pulsar:"PulsarServerBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a server."},hj={extensionsPrefix:"x-",properties:{http:"HttpChannelBinding",ws:"WsChannelBinding",kafka:"KafkaChannelBinding",anypointmq:"AnypointmqChannelBinding",amqp:"AmqpChannelBinding",amqp1:"Amqp1ChannelBinding",mqtt:"MqttChannelBinding",mqtt5:"Mqtt5ChannelBinding",nats:"NatsChannelBinding",jms:"JmsChannelBinding",solace:"SolaceChannelBinding",stomp:"StompChannelBinding",redis:"RedisChannelBinding",mercure:"MercureChannelBinding",sns:"SnsChannelBinding",sqs:"SqsChannelBinding",ibmmq:"IbmmqChannelBinding",googlepubsub:"GooglepubsubChannelBinding",pulsar:"PulsarChannelBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a channel."},yj={extensionsPrefix:"x-",properties:{http:"HttpOperationBinding",ws:"WsOperationBinding",kafka:"KafkaOperationBinding",anypointmq:"AnypointmqOperationBinding",amqp:"AmqpOperationBinding",amqp1:"Amqp1OperationBinding",mqtt:"MqttOperationBinding",mqtt5:"Mqtt5OperationBinding",nats:"NatsOperationBinding",jms:"JmsOperationBinding",solace:"SolaceOperationBinding",stomp:"StompOperationBinding",redis:"RedisOperationBinding",mercure:"MercureOperationBinding",sns:"SnsOperationBinding",sqs:"SqsOperationBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for an operation."},gj={extensionsPrefix:"x-",properties:{http:"HttpMessageBinding",ws:"WsMessageBinding",kafka:"KafkaMessageBinding",anypointmq:"AnypointmqMessageBinding",amqp:"AmqpMessageBinding",amqp1:"Amqp1MessageBinding",mqtt:"MqttMessageBinding",mqtt5:"Mqtt5MessageBinding",nats:"NatsMessageBinding",jms:"JmsMessageBinding",solace:"SolaceMessageBinding",stomp:"StompMessageBinding",redis:"RedisMessageBinding",mercure:"MercureMessageBinding",ibmmq:"IbmmqMessageBinding",googlepubsub:"GooglepubsubMessageBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a message."},Jt={HttpServerBinding:Aq,HttpChannelBinding:$q,HttpMessageBinding:Tq,HttpOperationBinding:Rq,WsServerBinding:kq,WsChannelBinding:Oq,WsMessageBinding:Iq,WsOperationBinding:Cq,KafkaServerBinding:jq,KafkaTopicConfiguration:qq,KafkaChannelBinding:Nq,KafkaMessageBinding:Mq,KafkaOperationBinding:Dq,AnypointmqServerBinding:Uq,AnypointmqChannelBinding:Lq,AnypointmqMessageBinding:zq,AnypointmqOperationBinding:Fq,AmqpServerBinding:Kq,AmqpChannelExchange:Vq,AmqpChannelQueue:Bq,AmqpChannelBinding:Hq,AmqpMessageBinding:Gq,AmqpOperationBinding:Wq,Amqp1ServerBinding:Qq,Amqp1ChannelBinding:Yq,Amqp1MessageBinding:Jq,Amqp1OperationBinding:Xq,MqttServerBindingLastWill:eN,MqttServerBinding:tN,MqttChannelBinding:Zq,MqttMessageBinding:rN,MqttOperationBinding:nN,Mqtt5ServerBinding:iN,Mqtt5ChannelBinding:oN,Mqtt5MessageBinding:sN,Mqtt5OperationBinding:aN,NatsServerBinding:pN,NatsChannelBinding:cN,NatsMessageBinding:lN,NatsOperationBinding:uN,JmsServerBindingProperty:fN,JmsServerBinding:mN,JmsChannelBinding:dN,JmsMessageBinding:hN,JmsOperationBinding:yN,SolaceServerBinding:bN,SolaceChannelBinding:gN,SolaceMessageBinding:vN,SolaceDestination:xN,SolaceOperationBinding:SN,StompServerBinding:LN,StompChannelBinding:DN,StompMessageBinding:UN,StompOperationBinding:zN,RedisServerBinding:VN,RedisChannelBinding:FN,RedisMessageBinding:BN,RedisOperationBinding:HN,MercureServerBinding:GN,MercureChannelBinding:KN,MercureMessageBinding:WN,MercureOperationBinding:YN,SnsIdentifier:wN,SnsOrdering:_N,SnsStatement:PN,SnsPolicy:EN,SnsChannelBinding:$N,SnsRedrivePolicy:AN,SnsDeliveryPolicy:TN,SnsConsumer:RN,SnsOperationBinding:ON,SqsIdentifier:kN,SqsRedrivePolicy:IN,SqsStatement:CN,SqsPolicy:qN,SqsQueue:_v,SqsOperationQueue:NN,SqsChannelBinding:jN,SqsOperationBinding:MN,IbmmqServerBinding:QN,IbmmqChannelQueue:JN,IbmmqChannelTopic:XN,IbmmqChannelBinding:ZN,IbmmqMessageBinding:ej,GooglepubsubMessageStoragePolicy:tj,GooglepubsubSchemaSettings:rj,GooglepubsubChannelBinding:nj,GooglepubsubSchema:oj,GooglepubsubMessageBinding:ij,PulsarServerBinding:sj,PulsarRetention:aj,PulsarChannelBinding:cj,ServerBindings:mj,ChannelBindings:hj,MessageBindings:gj,OperationBindings:yj},Pv={Ros2ServerBinding:pj,Ros2ChannelBinding:lj,Ros2OperationBinding:dj,Ros2QosPolicies:uj,Ros2MessageBinding:fj};var oi={extensionsPrefix:"x-",properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:C("Schema"),anyOf:C("Schema"),oneOf:C("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?C("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},ii={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},si={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},ai={properties:{},additionalProperties:e=>typeof e=="string"&&qr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},ci={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};var bj={extensionsPrefix:"x-",properties:{asyncapi:null,info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},vj={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of this channel item. CommonMark syntax can be used for rich text representation."},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"},description:"The servers on which this channel is available, specified as an optional unordered list of names (string keys) of Server Objects defined in the Servers Object (a map)."}},description:"Describes the operations available on a single channel."},xj={properties:{},additionalProperties:"Channel"},xd={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A short description for the tag. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],description:"Allows adding meta data to a single tag."},Sd={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A short description of the target documentation. CommonMark syntax can be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL."}},required:["url"],description:"Allows referencing an external resource for extended documentation."},Sj={properties:{},additionalProperties:{type:"array",items:{type:"string"}},description:"Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object."},wj={extensionsPrefix:"x-",properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the AsyncAPI document is being served. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this URL supports for connection. Supported protocol include, but are not limited to: amqp, amqps, http, https, ibmmq, jms, kafka, kafka-secure, anypointmq, mqtt, secure-mqtt, solace, stomp, stomps, ws, wss, mercure, googlepubsub, pulsar."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},wd={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},_d={extensionsPrefix:"x-",properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},description:{type:"string",description:"An optional description for the server variable. CommonMark syntax MAY be used for rich text representation."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the server variable."}},required:[],description:"An object representing a Server Variable for server URL template substitution."},_j={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},Pd={extensionsPrefix:"x-",properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. This MUST be in the form of an absolute URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},description:"Contact information for the exposed API."},Ed={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. This MUST be in the form of an absolute URL."}},required:["name"],description:"License information for the exposed API."},Pj={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A verbose explanation of the parameter. CommonMark syntax can be used for rich text representation."},schema:"Schema",location:{type:"string",description:"A runtime expression that specifies the location of the parameter value. Even when a definition for the target field exists, it MUST NOT be used to validate this parameter but, instead, the schema property MUST be used."}},description:"Describes a parameter included in a channel name."},$d={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of the identifier. CommonMark syntax can be used for rich text representation."},location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the correlation ID."}},required:["location"],description:"An object that specifies an identifier at design time that can used for message tracing and correlation."},Ej={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format used to define the message payload. If omitted, implementations should parse the payload as a Schema object. When the payload is defined using a $ref to a remote file, it is RECOMMENDED the schema format includes the file encoding type to allow implementations to parse the file correctly."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},$j={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except message and traits."},Aj={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format/language used to define the message payload. If omitted, implementations should parse the payload as a Schema object."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},Tj={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[],description:"Describes a publish or a subscribe operation. This provides a place to document how and why messages are sent and received."},Ad={extensionsPrefix:"x-",properties:{payload:{isExample:!0,description:"The value of this field MUST validate against the Message Object's payload field."},summary:{type:"string",description:"A short summary of what the example is about."},name:{type:"string",description:"A machine-friendly name."},headers:{type:"object",description:"The value of this field MUST validate against the Message Object's headers field."}},description:"Message Example Object represents an example of a Message Object and MUST contain either headers and/or payload fields."},Rj={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},Oj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},kj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},Ij={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},Cj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"],description:"Configuration for the OAuth Authorization Code flow."},Td={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},qj={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},Rd={...Jt,Root:bj,Tag:xd,TagList:C("Tag"),ServerMap:wd,ExternalDocs:Sd,Server:wj,ServerVariable:_d,ServerVariablesMap:q("ServerVariable"),SecurityRequirement:Sj,SecurityRequirementList:C("SecurityRequirement"),Info:_j,Contact:Pd,License:Ed,ChannelMap:xj,Channel:vj,Parameter:Pj,ParametersMap:q("Parameter"),Operation:Tj,Schema:oi,MessageExample:Ad,SchemaProperties:ii,DiscriminatorMapping:ai,Discriminator:ci,Components:Rj,NamedSchemas:q("Schema"),NamedMessages:q("Message"),NamedMessageTraits:q("MessageTrait"),NamedOperationTraits:q("OperationTrait"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),NamedCorrelationIds:q("CorrelationId"),ImplicitFlow:Oj,PasswordFlow:kj,ClientCredentials:Ij,AuthorizationCode:Cj,SecuritySchemeFlows:Td,SecurityScheme:qj,Message:Ej,OperationTrait:$j,OperationTraitList:C("OperationTrait"),MessageTrait:Aj,MessageTraitList:C("MessageTrait"),MessageExampleList:C("MessageExample"),CorrelationId:$d,Dependencies:si};var Nj={extensionsPrefix:"x-",properties:{asyncapi:{type:"string",description:"REQUIRED. Specifies the AsyncAPI Specification version being used. It can be used by tooling Specifications and clients to interpret the version. The structure shall be major.minor.patch, where patch versions must be compatible with the existing major.minor tooling. Typically patch versions will be introduced to address errors in the documentation, and tooling should typically be compatible with the corresponding major.minor (1.0.*). Patch versions will correspond to patches of this document."},info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string",description:"Default content type to use when encoding/decoding a message's payload."}},required:["asyncapi","info"],description:"This is the root document object for the API specification. It combines resource listing and API declaration together into one document."},jj={extensionsPrefix:"x-",properties:{address:{type:"string",description:`An optional string representation of this channel's address. The address is typically the "topic name", "routing key", "event type", or "path". When null or absent, it MUST be interpreted as unknown. This is useful when the address is generated dynamically at runtime or can't be known upfront. It MAY contain Channel Address Expressions. Query parameters and fragments SHALL NOT be used, instead use bindings to define them.`},messages:"NamedMessages",title:{type:"string",description:"A human-friendly title for the channel."},summary:{type:"string",description:"A short summary of the channel."},description:{type:"string",description:"An optional description of this channel. CommonMark syntax can be used for rich text representation."},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"},description:"Describes a shared communication channel."},Mj={extensionsPrefix:"x-",properties:{host:{type:"string",description:"REQUIRED. The server host name. It MAY include the port. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},pathname:{type:"string",description:"The path to a resource in the host. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this server supports for connection."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the server. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},Dj={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},Lj={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description for the parameter. CommonMark syntax MAY be used for rich text representation."},enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the parameter value."},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value."}},description:"Describes a parameter included in a channel address."},Uj={extensionsPrefix:"x-",properties:{headers:e=>A(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>A(e)&&"schema"in e?"MultiFormatSchema":"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},description:"Describes a message received on a given channel and operation."},zj={extensionsPrefix:"x-",properties:{tags:"TagList",title:{type:"string",description:"A human-friendly title for the operation."},summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except the action, channel, messages and traits ones."},Fj={extensionsPrefix:"x-",properties:{headers:e=>A(e)&&"schema"in e?"MultiFormatSchema":"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},Vj={extensionsPrefix:"x-",properties:{action:{type:"string",enum:["send","receive"],description:"Required. Use send when it's expected that the application will send a message to the given channel, and receive when the application should expect receiving messages from the given channel."},channel:"Channel",title:{type:"string",description:"A human-friendly title for the operation."},tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},Bj={extensionsPrefix:"x-",properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"},description:"Describes the reply part that MAY be applied to an Operation Object. If an operation implements the request/reply pattern, the reply object represents the response message."},Hj={extensionsPrefix:"x-",properties:{location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the reply address."},description:{type:"string",description:"An optional description of the address. CommonMark syntax can be used for rich text representation."}},required:["location"],description:"An object that specifies where an operation has to send the reply."},Kj={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"},description:"Holds a set of reusable objects for different aspects of the AsyncAPI specification. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},Gj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},Wj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Resource Owner Protected Credentials flow."},Yj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},Qj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"],description:"Configuration for the OAuth Authorization Code flow."},Jj={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"],description:'REQUIRED. The type of the security scheme. Valid values are "userPassword", "apiKey", "X509", "symmetricEncryption", "asymmetricEncryption", "httpApiKey", "http", "oauth2", "openIdConnect", "plain", "scramSha256", "scramSha512", and "gssapi".'},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."},scopes:{type:"array",items:{type:"string"},description:"List of the needed scope names. An empty array means no scopes are needed."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},Xj={...Jt.ServerBindings,properties:{...Jt.ServerBindings.properties,ros2:"Ros2ServerBinding"}},Zj={...Jt.ChannelBindings,properties:{...Jt.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},eM={...Jt.OperationBindings,properties:{...Jt.OperationBindings.properties,ros2:"Ros2OperationBinding"}},tM={...Jt.MessageBindings,properties:{...Jt.MessageBindings.properties,ros2:"Ros2MessageBinding"}},rM={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},nM={properties:{},additionalProperties:e=>A(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Od={...Jt,...Pv,ServerBindings:Xj,ChannelBindings:Zj,OperationBindings:eM,MessageBindings:tM,CorrelationId:$d,SecuritySchemeFlows:Td,ServerVariable:_d,Contact:Pd,License:Ed,MessageExample:Ad,Tag:xd,Dependencies:si,Schema:oi,MultiFormatSchema:rM,Discriminator:ci,DiscriminatorMapping:ai,SchemaProperties:ii,ServerMap:wd,ExternalDocs:Sd,Root:Nj,Channel:jj,Parameter:Lj,Info:Dj,Server:Mj,MessageTrait:Fj,Operation:Vj,OperationReply:Bj,OperationReplyAddress:Hj,Components:Kj,ImplicitFlow:Gj,PasswordFlow:Wj,ClientCredentials:Yj,AuthorizationCode:Qj,SecurityScheme:Jj,Message:Uj,OperationTrait:zj,ServerVariablesMap:q("ServerVariable"),NamedTags:q("Tag"),NamedExternalDocs:q("ExternalDocs"),NamedChannels:q("Channel"),ParametersMap:q("Parameter"),NamedOperations:q("Operation"),NamedOperationReplies:q("OperationReply"),NamedOperationRelyAddresses:q("OperationReplyAddress"),NamedSchemas:nM,NamedMessages:q("Message"),NamedMessageTraits:q("MessageTrait"),NamedOperationTraits:q("OperationTrait"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),NamedCorrelationIds:q("CorrelationId"),ServerList:C("Server"),SecuritySchemeList:C("SecurityScheme"),MessageList:C("Message"),OperationTraitList:C("OperationTrait"),MessageTraitList:C("MessageTrait"),MessageExampleList:C("MessageExample"),TagList:C("Tag")};var oM={properties:{arazzo:{type:"string",description:"REQUIRED. This string MUST be the version number of the Arazzo Specification that the Arazzo Description uses. The arazzo field MUST be used by tooling to interpret the Arazzo Description."},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},iM={properties:{},additionalProperties:"Parameter"},sM={properties:{},additionalProperties:"SuccessActionObject"},aM={properties:{},additionalProperties:"FailureActionObject"},cM={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},pM=q("Schema"),lM={properties:{title:{type:"string",description:"REQUIRED. A human readable title of the Arazzo Description."},description:{type:"string",description:"A description of the purpose of the workflows defined. CommonMark syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of the Arazzo Description."},version:{type:"string",description:"REQUIRED. The version identifier of the Arazzo document (which is distinct from the Arazzo Specification version)."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about API workflows defined in this Arazzo document. The metadata MAY be used by the clients if needed."},uM={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},dM={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["openapi"],description:'The type of source description. Possible values are "openapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},fM={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["arazzo"],description:'The type of source description. Possible values are "arazzo".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},mM={properties:{reference:{type:"string",description:"REQUIRED. A Runtime Expression used to reference the desired object."},value:{}},required:["reference"],extensionsPrefix:"x-",description:"A simple object to allow referencing of objects contained within the Components Object. It can be used from locations within steps or workflows in the Arazzo Description. Note - Input Objects MUST use standard JSON Schema referencing via the $ref keyword while all non JSON Schema objects use this object and its expression based referencing mechanism."},hM={properties:{in:{type:"string",enum:["header","query","path","cookie"],description:'The location of the parameter. Possible values are "path", "query", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'},name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},value:{}},required:["name","value"],extensionsPrefix:"x-",description:"Describes a single step parameter. A unique parameter is defined by the combination of a name and in fields."},yM={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},gM={properties:{workflowId:{type:"string",description:"REQUIRED. The unique identifier of the workflow."},summary:{type:"string",description:"A short summary of what the workflow does."},description:{type:"string",description:"A verbose explanation of the workflow behavior. CommonMark syntax MAY be used for rich text representation."},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"},description:"A list of workflows that MUST be completed before this workflow can be processed. Each value provided MUST be a workflowId."},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-",description:"Describes the steps to be taken across one or more APIs to achieve an objective. The workflow object MAY define inputs needed in order to execute workflow steps, where the defined steps represent a call to an API operation or another workflow, and a set of outputs."},bM=C("Workflow"),vM=C("Step"),xM={properties:{stepId:{type:"string",description:"REQUIRED. Unique string to represent the step. The stepId MUST be unique amongst all steps described in the workflow. The stepId value is case-sensitive. Tools and libraries MAY use the stepId to uniquely identify a workflow step, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},description:{type:"string",description:"A description of the step. CommonMark syntax MAY be used for rich text representation."},operationId:{type:"string",description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions. The referenced operation will be invoked by this workflow step. If multiple (non arazzo type) sourceDescriptions are defined, then the operationId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<operationId>) to avoid ambiguity or potential clashes. This field is mutually exclusive of the operationPath and workflowId fields respectively."},operationPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an operation. This field is mutually exclusive of the operationId and workflowId fields respectively. The operation being referenced MUST be described within one of the sourceDescriptions descriptions. A Runtime Expression syntax MUST be used to identify the source description document. If the referenced operation has an operationId defined then the operationId SHOULD be preferred over the operationPath."},workflowId:{type:"string",description:"The workflowId referencing an existing workflow within the Arazzo Description. If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. The field is mutually exclusive of the operationId and operationPath fields respectively."},parameters:"Parameters",successCriteria:C("CriterionObject",{description:"A list of assertions to determine the success of the step. Each assertion is described using a Criterion Object. All assertions MUST be satisfied for the step to be deemed successful."}),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-",description:"Describes a single workflow step which MAY be a call to an API operation (OpenAPI Operation Object) or another Workflow Object."},SM={properties:{},additionalProperties:{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},wM={properties:{contentType:{type:"string",description:"The Content-Type for the request content. If omitted then refer to Content-Type specified at the targeted operation to understand serialization requirements."},payload:{},replacements:C("Replacement",{description:"A list of locations and values to set within a payload."})},required:["payload"],extensionsPrefix:"x-",description:"A single request body describing the Content-Type and request body content to be passed by a step to an operation."},_M={properties:{target:{type:"string",description:"REQUIRED. A JSON Pointer or XPath Expression which MUST be resolved against the request body. Used to identify the location to inject the value."},value:{}},required:["target","value"],extensionsPrefix:"x-",description:"Describes a location within a payload (e.g., a request body) and a value to set within the location."},PM={properties:{schemeName:{type:"string",description:"REQUIRED. Name of the security scheme from your OpenAPI specification. Use with operationId or operationPath at the step level."},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"],description:"Use the x-security extension to define authorization flows based on OpenAPI security schemes. Respect automatically constructs appropriate authorization headers, queries, or cookies based on your parameters."},EM={properties:{url:{type:"string",description:"REQUIRED. A valid url including the protocol (such as http://localhost:4000/my-api or https://example.com/api/my-api)."},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"],description:"REQUIRED. HTTP operation method. Possible values: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, TRACE. You can also use their lowercase equivalents."}},required:["url","method"],description:"x-operation enables you to specify a URL and HTTP method for an operation that is not described in the Arazzo sourceDescriptions section. The primary application of the x-operation extension is to facilitate calls to third-party APIs or other endpoints that are needed in a sequence of API calls."},$M={properties:{condition:{type:"string",description:"REQUIRED. The condition to apply. Conditions can be simple (e.g. $statusCode == 200 which applies an operator on a value obtained from a runtime expression), or a regex, or a JSONPath expression. For regex or JSONPath, the type and context MUST be specified."},context:{type:"string",description:"A Runtime Expression used to set the context for the condition to be applied on. If type is specified, then the context MUST be provided (e.g. $response.body would set the context that a JSONPath query expression could be applied to)."},type:e=>{if(e)return typeof e=="string"?{enum:["regex","jsonpath","simple","xpath"],description:"The type of condition to be applied."}:e?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"],description:"An object used to specify the context, conditions, and condition types that can be used to prove or satisfy assertions specified in Step Object successCriteria, Success Action Object criteria, and Failure Action Object criteria."},AM={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},TM={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},RM={properties:{name:{type:"string",description:"REQUIRED. The name of the success action. Names are case sensitive."},type:{type:"string",enum:["goto","end"],description:'REQUIRED. The type of action to take. Possible values are "end" or "goto".'},stepId:{type:"string",description:'The stepId to transfer to upon success of the step. This field is only relevant when the type field value is "goto". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId.'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon success of the step. This field is only relevant when the type field value is "goto". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId.'},criteria:C("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object. All criteria assertions MUST be satisfied for the action to be executed."})},required:["type","name"],description:"A single success action which describes an action to take upon success of a workflow step."},OM={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},kM={properties:{name:{type:"string",description:"REQUIRED. The name of the failure action. Names are case sensitive."},type:{type:"string",enum:["goto","retry","end"],description:'REQUIRED. The type of action to take. Possible values are "end", "retry", or "goto".'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId. When used with "retry", context transfers back upon completion of the specified workflow.'},stepId:{type:"string",description:'The stepId to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId. When used with "retry", context transfers back upon completion of the specified step.'},retryAfter:{type:"number",minimum:0,description:'A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. Note: if an HTTP Retry-After response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the type field value is "retry".'},retryLimit:{type:"number",minimum:0,description:'A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step. If not specified then a single retry SHALL be attempted. This field only applies when the type field value is "retry". The retryLimit MUST be exhausted prior to executing subsequent failure actions.'},criteria:C("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object."})},required:["type","name"],description:"A single failure action which describes an action to take upon failure of a workflow step."},IM={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},Qe={Root:oM,Info:lM,SourceDescriptions:uM,OpenAPISourceDescription:dM,ArazzoSourceDescription:fM,Parameters:yM,Parameter:hM,ReusableObject:mM,Workflows:bM,Workflow:gM,Steps:vM,Step:xM,RequestBody:wM,Replacement:_M,ExtendedOperation:EM,ExtendedSecurityList:C("ExtendedSecurity"),ExtendedSecurity:PM,Outputs:SM,CriterionObject:$M,XPathCriterion:TM,JSONPathCriterion:AM,SuccessActionObject:RM,OnSuccessActionList:OM,FailureActionObject:kM,OnFailureActionList:IM,Schema:Ye.Schema,NamedSchemas:q("Schema"),ExternalDocs:Ye.ExternalDocs,DiscriminatorMapping:Ye.DiscriminatorMapping,Discriminator:Ye.Discriminator,DependentRequired:Ye.DependentRequired,SchemaProperties:Ye.SchemaProperties,PatternProperties:Ye.SchemaProperties,Components:cM,NamedInputs:pM,NamedParameters:iM,NamedSuccessActions:sM,NamedFailureActions:aM,Xml:Ye.Xml,SecurityScheme:Ye.SecurityScheme,OAuth2Flows:Ye.OAuth2Flows,ImplicitFlow:Ye.ImplicitFlow,PasswordFlow:Ye.PasswordFlow,ClientCredentials:Ye.ClientCredentials,AuthorizationCode:Ye.AuthorizationCode,DeviceAuthorization:Ye.DeviceAuthorization};var CM={...Qe.Root,properties:{...Qe.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1."}}},qM={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},NM={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["asyncapi"],description:'The type of source description. Possible values are "asyncapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an AsyncAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},jM={...Qe.Parameter,properties:{...Qe.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},MM={...Qe.Step,properties:{...Qe.Step.properties,channelPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an AsyncAPI channel. This field is mutually exclusive of the operationId, operationPath, and workflowId fields respectively. A Runtime Expression syntax MUST be used to identify the source description document."},action:{type:"string",enum:["send","receive"],description:'Describes the intent of the message flow for an AsyncAPI operation. Possible values are "send" or "receive".'},correlationId:{type:"string",description:'A Runtime Expression used to correlate a request with a response when interacting with asynchronous APIs. Applies to "receive" steps.'},timeout:{type:"integer",minimum:0,description:"A non-negative integer indicating the maximum amount of time (in milliseconds) to wait before timing out."},dependsOn:{type:"array",items:{type:"string"},description:"A list of steps that MUST be completed before this step can be executed. Each value provided MUST be a stepId."}},requiredOneOf:["x-operation","operationId","operationPath","channelPath","workflowId"]},DM={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},LM={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},UM={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},zM={properties:{type:{type:"string",enum:["jsonpath","xpath","jsonpointer"],description:"REQUIRED. The selector type. The options allowed are jsonpath, xpath, or jsonpointer."},version:{type:"string",description:"REQUIRED. A short hand string representing the version of the expression type being used."}},required:["type","version"]},FM=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",kd=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:FM(n)},VM={...Qe.CriterionObject,properties:{...Qe.CriterionObject.properties,type:kd(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},BM={properties:{context:{type:"string",description:"REQUIRED. A Runtime Expression that evaluates to structured data (e.g., $response.body) the selector is applied to."},selector:{type:"string",description:"REQUIRED. The selector expression (JSONPath, XPath, or JSON Pointer) used to extract data from the context."},type:kd(["jsonpath","xpath","jsonpointer"],"The type of selector to be applied.",{optional:!1})},required:["context","selector","type"],extensionsPrefix:"x-",description:"An object used to extract specific data from structured content using JSONPath, XPath, or JSON Pointer expressions."},HM={properties:{},additionalProperties:e=>A(e)?"SelectorObject":{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression or a Selector Object. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},KM={...Qe.Replacement,properties:{...Qe.Replacement.properties,value:e=>A(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:kd(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},GM={...Qe.SuccessActionObject,properties:{...Qe.SuccessActionObject.properties,parameters:"Parameters"}},WM={...Qe.FailureActionObject,properties:{...Qe.FailureActionObject.properties,parameters:"Parameters"}},Id={...Qe,Root:CM,SourceDescriptions:qM,AsyncAPISourceDescription:NM,Parameter:jM,Step:MM,CriterionObject:VM,JSONPathExpression:DM,XPathExpression:LM,JSONPointerExpression:UM,ExpressionType:zM,SelectorObject:BM,Outputs:HM,Replacement:KM,SuccessActionObject:GM,FailureActionObject:WM};var YM={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},QM={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},JM=C("Action"),XM={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},Cd={Root:YM,Info:QM,Actions:JM,Action:XM};var ZM={properties:{openrpc:{type:"string",description:"REQUIRED. This string MUST be the semantic version number of the OpenRPC Specification version that the OpenRPC document uses. The openrpc field SHOULD be used by tooling specifications and clients to interpret the OpenRPC document. This is not related to the API info.version string."},info:"Info",servers:"ServerList",methods:"MethodList",components:"Components",externalDocs:"ExternalDocs"},required:["openrpc","info","methods"],extensionsPrefix:"x-",description:"This is the root object of the OpenRPC document. The contents of this object represent a whole OpenRPC document. How this object is constructed or stored is outside the scope of the OpenRPC Specification."},eD={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},description:{type:"string",description:"A verbose description of the application. GitHub Flavored Markdown syntax MAY be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL."},contact:"Contact",license:"License",version:{type:"string",description:"REQUIRED. The version of the OpenRPC document (which is distinct from the OpenRPC Specification version or the API implementation version)."}},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required."},tD={properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. MUST be in the format of a URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},extensionsPrefix:"x-",description:"Contact information for the exposed API."},rD={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. MUST be in the format of a URL."}},required:["name"],extensionsPrefix:"x-",description:"License information for the exposed API."},nD={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenRPC document is being served. Server Variables are passed into the Runtime Expression to produce a server URL."},name:{type:"string",description:"REQUIRED. A name to be used as the canonical name for the server."},description:{type:"string",description:"An optional string describing the host designated by the URL. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of what the server is."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"An object representing a Server."},oD={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object\u2019s treatment of default values, because in those cases parameter values are optional."},description:{type:"string",description:"An optional description for the server variable. GitHub Flavored Markdown syntax MAY be used for rich text representation."}},required:["default"],extensionsPrefix:"x-",description:"An object representing a Server Variable for server URL template substitution."},iD={properties:{name:{type:"string",description:"REQUIRED. The cannonical name for the method. The name MUST be unique within the methods array."},tags:"TagList",summary:{type:"string",description:"A short summary of what the method does."},description:{type:"string",description:"A verbose explanation of the method behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs",params:"ContentDescriptorList",result:"ContentDescriptor",deprecated:{type:"boolean",description:"Declares this method to be deprecated. Consumers SHOULD refrain from usage of the declared method. Default value is false."},servers:"ServerList",errors:"ErrorList",links:"LinkList",paramStructure:{enum:["by-name","by-position","either"]},examples:"ExamplePairingList"},required:["name","params"],extensionsPrefix:"x-",description:"Describes the interface for the given method name. The method name is used as the method field of the JSON-RPC body. It therefore MUST be unique."},sD={properties:{name:{type:"string",description:"REQUIRED. Name of the content that is being described. If the content described is a method parameter assignable by-name, this field SHALL define the parameter\u2019s key (ie name)."},summary:{type:"string",description:"A short summary of the content that is being described."},description:{type:"string",description:"A verbose explanation of the content descriptor behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines if the content is a required field. Default value is false."},schema:"Schema",deprecated:{type:"boolean",description:"Specifies that the content is deprecated and SHOULD be transitioned out of usage. Default value is false."}},required:["name","schema"],extensionsPrefix:"x-",description:"Content Descriptors are objects that do just as they suggest - describe content. They are reusable ways of describing either parameters or result. They MUST have a schema."},aD={properties:{name:{type:"string",description:"REQUIRED Name for the example pairing."},description:{type:"string",description:"A verbose explanation of the example pairing."},summary:{type:"string",description:"Short description for the example pairing."},params:"ExampleList",result:"Example"},extensionsPrefix:"x-",description:"The Example Pairing object consists of a set of example params and result. The result is what you can expect from the JSON-RPC service given the exact params."},cD={properties:{name:{type:"string",description:"Cannonical name of the example."},summary:{type:"string",description:"Short description for the example."},description:{type:"string",description:"A verbose explanation of the example. GitHub Flavored Markdown syntax MAY be used for rich text representation."},value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON, use a string value to contain the example, escaping where necessary."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"The Example object is an object that defines an example that is intended to match the schema of a given Content Descriptor."},pD={properties:{name:{type:"string",description:"REQUIRED. Canonical name of the link."},description:{type:"string",description:"A description of the link. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"Short description for the link."},method:{type:"string",description:"The name of an existing, resolvable OpenRPC method, as defined with a unique method. This field MUST resolve to a unique Method Object. As opposed to Open Api, Relative method values ARE NOT permitted."},params:{type:"object",description:"A map representing parameters to pass to a method as specified with method. The key is the parameter name to be used, whereas the value can be a constant or a runtime expression to be evaluated and passed to the linked method."},server:"Server"},required:["name"],extensionsPrefix:"x-",description:"The Link object represents a possible design-time link for a result. The presence of a link does not guarantee the caller\u2019s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between results and other methods."},lD={properties:{code:{type:"integer",description:"REQUIRED. A Number that indicates the error type that occurred. This MUST be an integer. The error codes from and including -32768 to -32000 are reserved for pre-defined errors. These pre-defined errors SHOULD be assumed to be returned from any JSON-RPC api."},message:{type:"string",description:"REQUIRED. A String providing a short description of the error. The message SHOULD be limited to a concise single sentence."},data:{resolvable:!1,description:"A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.)."}},required:["code","message"],extensionsPrefix:"x-",description:"Defines an application level error."},uD={properties:{contentDescriptors:"NamedContentDescriptors",schemas:"NamedSchemas",examples:"NamedExamples",links:"NamedLinks",errors:"NamedErrors",examplePairingObjects:"NamedExamplePairingObjects",tags:"NamedTags"},extensionsPrefix:"x-",description:"Holds a set of reusable objects for different aspects of the OpenRPC. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},dD={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},summary:{type:"string",description:"A short summary of the tag."},description:{type:"string",description:"A verbose explanation for the tag. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],extensionsPrefix:"x-",description:"Adds metadata to a single tag that is used by the Method Object. It is not mandatory to have a Tag Object per tag defined in the Method Object instances."},fD={properties:{description:{type:"string",description:"A verbose explanation of the target documentation. GitHub Flavored Markdown syntax MAY be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. Value MUST be in the format of a URL."}},required:["url"],extensionsPrefix:"x-",description:"Allows referencing an external resource for extended documentation."},qd={Root:ZM,Info:eD,Contact:tD,License:rD,Server:nD,ServerList:C("Server"),ServerVariable:oD,ServerVariablesMap:q("ServerVariable"),Method:iD,MethodList:C("Method"),ContentDescriptor:sD,ContentDescriptorList:C("ContentDescriptor"),ExamplePairing:aD,ExamplePairingList:C("ExamplePairing"),Example:cD,ExampleList:C("Example"),Link:pD,LinkList:C("Link"),ErrorObject:lD,ErrorList:C("ErrorObject"),Components:uD,Tag:dD,TagList:C("Tag"),ExternalDocs:fD,Schema:oi,SchemaProperties:ii,Dependencies:si,DiscriminatorMapping:ai,Discriminator:ci,NamedContentDescriptors:q("ContentDescriptor"),NamedSchemas:q("Schema"),NamedExamples:q("Example"),NamedLinks:q("Link"),NamedErrors:q("ErrorObject"),NamedExamplePairingObjects:q("ExamplePairing"),NamedTags:q("Tag")};var Dv={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Is={type:"object",properties:Dv,additionalProperties:!1},mD={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Cs={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...Dv,like:Is,dislike:Is,satisfied:Is,neutral:Is,dissatisfied:Is},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:mD},additionalProperties:!1}},additionalProperties:!1},hD={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},Dd={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},vc={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Cs,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Dd,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:hD,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},pi={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},yD={type:"object",properties:{name:{type:"string"},items:pi,queries:pi,mutations:pi,subscriptions:pi,types:pi,directives:pi},required:["name"],additionalProperties:!1},gD={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:yD},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},bD={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},vD={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},xD={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:bD,license:vD},additionalProperties:!1},xc={type:"object",properties:{menu:{type:"object",properties:{...gD.properties},additionalProperties:!1},downloadUrls:Dd,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Cs,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:xD},additionalProperties:!1},SD={type:"object",properties:{downloadUrls:Dd,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:Cs,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},wD={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},_D={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},Ev={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},PD={type:"object",properties:{beforeInfo:{type:"array",items:Ev},end:{type:"array",items:Ev}}},uo={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},hc={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},ED={type:"object",properties:$c(uo.properties,["light","dark"])},$D={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},AD={type:"object",properties:{error:hc,info:hc,redirect:hc,success:hc}},TD={type:"object",properties:li(uo.properties,["dark"])},RD={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},OD={type:"object",properties:{accent:uo,border:ED,error:uo,http:$D,primary:uo,responses:AD,secondary:TD,success:uo,text:RD,tonalOffset:{type:"number"},warning:uo}},yc={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},kD={type:"object",properties:{small:yc,medium:yc,large:yc,xlarge:yc}},jr={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},ID={type:"object",properties:{...li(jr.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:kD}},$v={type:"object",properties:$c(jr.properties,["fontSize","lineHeight"])},CD={type:"object",properties:{medium:$v,small:$v}},qD={type:"object",properties:{...li(jr.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:CD}},ND={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},jD={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},Av={type:"object",properties:{fullWidth:{type:"boolean"}}},MD={type:"object",properties:{buttons:ID,httpBadges:qD,layoutControls:ND,panels:jD,tryItButton:Av,tryItSendButton:Av}},Sc={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},DD={type:"object",properties:{maxWidth:Sc}},LD={type:"object",properties:{maxWidth:Sc,middlePanelMaxWidth:Sc}},UD={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:DD,"three-panel":LD}},Tv={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},zD={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Tv,defaultDetailsWidth:{type:"string"},examples:Tv,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Lv={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},FD={type:"object",properties:$c(Lv.properties,["textTransform"])},VD={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},BD={type:"object",properties:{...li(jr.properties,["fontWeight","lineHeight"]),activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Lv,level1items:FD,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:VD,textColor:{type:"string"},width:{type:"string"}}},gc={type:"object",properties:{...jr.properties,color:{type:"string"},transform:{type:"string"}}},HD={type:"object",properties:{...jr.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},KD={type:"object",properties:li(jr.properties,["fontSize"])},GD={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},WD={type:"object",properties:{code:HD,fieldName:jr,...$c(jr.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:gc,heading2:gc,heading3:gc,headings:KD,lineHeight:{type:"string"},links:GD,optimizeSpeed:{type:"boolean"},rightPanelHeading:gc,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},YD={type:"object",properties:{color:{type:"string"},...li(jr.properties,["fontWeight"])}},QD={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:YD}},JD={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},XD={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Rv={type:"object",properties:{custom:{type:"string"}}},ZD={type:"object",properties:{DownloadButton:Rv,NextSectionButton:Rv}},eL={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},tL={type:"object",properties:{borderRadius:{type:"string"}}},rL={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},nL={type:"object",properties:{breakpoints:Sc,codeBlock:QD,colors:OD,components:MD,layout:UD,logo:JD,fab:XD,overrides:ZD,rightPanel:eL,schema:zD,shape:tL,sidebar:BD,spacing:rL,typography:WD,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},oL={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:wD}},required:["languages"]},Uv={type:"object",properties:{theme:nL,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:oL,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:_D,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:PD,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function $c(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function li(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Xt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var iL={rules:Xt,oas2Rules:Xt,oas3_0Rules:Xt,oas3_1Rules:Xt,oas3_2Rules:Xt,async2Rules:Xt,async3Rules:Xt,arazzo1Rules:Xt,arazzo1_1Rules:Xt,overlay1Rules:Xt,openrpc1Rules:Xt,graphqlRules:Xt};var hr={nodeTypeName:void 0,type:"object",additionalProperties:!0},sL={preprocessors:hr,oas2Preprocessors:hr,oas3_0Preprocessors:hr,oas3_1Preprocessors:hr,oas3_2Preprocessors:hr,async2Preprocessors:hr,async3Preprocessors:hr,arazzo1Preprocessors:hr,arazzo1_1Preprocessors:hr,overlay1Preprocessors:hr,openrpc1Preprocessors:hr},yr={nodeTypeName:void 0,type:"object",additionalProperties:!0};var aL={decorators:yr,oas2Decorators:yr,oas3_0Decorators:yr,oas3_1Decorators:yr,oas3_2Decorators:yr,async2Decorators:yr,async3Decorators:yr,arazzo1Decorators:yr,arazzo1_1Decorators:yr,overlay1Decorators:yr,openrpc1Decorators:yr},cL={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},Ac={...iL,...aL,...sL,extends:cL},zv=e=>e,nt=zv({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),et={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Ov={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},Nd={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean"},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},Ld={type:"array",items:{...Nd,properties:{...Nd.properties,items:{type:"array",items:Nd}}}},pL={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},lL={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},uL={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},dL={type:"object",properties:{facets:uL,...et.properties},additionalProperties:!1},fL={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Fv={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Vv={type:"object",properties:{items:Ld,...et.properties},additionalProperties:!1},Bv={type:"object",additionalProperties:pL},Hv={type:"object",properties:{items:Ld,copyrightText:{type:"string"},logo:et,...et.properties},additionalProperties:!1},Kv={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...et.properties},additionalProperties:!1},Gv={type:"object",properties:{head:{type:"array",items:Ov},body:{type:"array",items:Ov}},additionalProperties:!1},Wv={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},Yv={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:lL,filters:dL,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:fL},...et.properties},additionalProperties:!1},Qv={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Jv={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...et.properties},additionalProperties:!1},Ud={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},mL={type:"object",properties:{...et.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Xv={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},actions:mL},additionalProperties:!1},Zv={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...et.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...et.properties},additionalProperties:!1},expand:{type:"object",properties:{...et.properties},additionalProperties:!1},collapse:{type:"object",properties:{...et.properties},additionalProperties:!1}},additionalProperties:!1},e0={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...et.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...et.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...et.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},wc={...vc,properties:{...vc.properties,...Uv.properties}},XX={...vc,properties:{...vc.properties,...Uv.properties}},hL={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},yL={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},gL={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},bL={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},vL={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},xL={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},SL={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},t0={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},wL={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:t0}},additionalProperties:!1,required:["trackingId"]},r0={type:"object",properties:{adobe:hL,amplitude:yL,fullstory:gL,heap:bL,rudderstack:vL,segment:xL,gtm:SL,ga:wL}},n0={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...et.properties},additionalProperties:!1},o0={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},i0={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1}}},additionalProperties:!1},_L={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},PL={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:_L},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Ld,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},_c={type:"object",patternProperties:{".*":PL}},Pc={nodeTypeName:nt.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:nt.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:nt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:nt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Ac},additionalProperties:!1}},targets:{nodeTypeName:nt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:nt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:nt.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:nt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},EL={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},$L={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},AL={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},on={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:$L},excludes:{type:"array",items:EL},filters:{type:"array",items:AL},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},TL={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},RL={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:TL},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},OL={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:RL,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},kL={type:"object",additionalProperties:OL},s0={type:"object",properties:{show:{type:"boolean"},entityTypes:kL,catalogs:{type:"object",properties:{all:on,services:on,domains:on,teams:on,users:on,apiDescriptions:on,dataSchemas:on,apiOperations:on},additionalProperties:on}},additionalProperties:!1},kv={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},zd={type:"string",enum:["and","or"]},jd={type:"object",properties:{field:{type:"string"},operator:kv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:kv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},IL={type:"object",properties:{operator:zd,conditions:{type:"array",items:jd}},required:["operator","conditions"],additionalProperties:!1},Iv={type:"array",items:{oneOf:[jd,{type:"object",properties:{operator:zd,conditions:{type:"array",items:{oneOf:[jd,IL]}}},required:["operator","conditions"],additionalProperties:!1}]}},a0={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},CL={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:a0},required:["subject","assertions"],additionalProperties:!1}},qL={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:a0,where:CL,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},NL={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},qL]}},jL={type:"object",properties:{name:{type:"string"},extends:Ac.extends,rules:NL},required:["name"],additionalProperties:!1},Cv={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},ML={oneOf:[Cv,{type:"array",items:Cv}]},DL={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Iv,{type:"object",properties:{operator:zd,conditions:Iv},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:jL,minItems:1},trigger:ML},required:["name","key","entities","levels"],additionalProperties:!1},c0={type:"array",items:DL},Nr={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Fv,navbar:Vv,products:Bv,footer:Hv,sidebar:Kv,scripts:Gv,links:Wv,feedback:Cs,search:Yv,aiAssistant:Qv,colorMode:Jv,palette:Ud,navigation:Xv,codeSnippet:Zv,markdown:e0,openapi:wc,asyncapi:SD,graphql:xc,analytics:r0,userMenu:n0,versionPicker:o0,breadcrumbs:i0,catalog:_c,entitiesCatalog:s0,catalogClassic:_c,scorecard:Pc,scorecardClassic:Pc,scorecards:c0},additionalProperties:!0};var LL=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(LL||{}),UL=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(UL||{});var zL=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(zL||{});var p0="^[a-z0-9]+(?:-[a-z0-9]+)*$",ZX=new RegExp(p0);var FL=63,e7=`Unique ID cannot exceed ${FL} characters`,l0="redocly",u0=[l0,"corporate","guest"],t7=`Unique ID cannot be a reserved word (${u0.join(", ")})`,qv=["REDOCLY","CORPORATE","GUEST"],VL={type:"object",additionalProperties:{type:"string"}},BL={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},bc={type:"string",enum:["error","warn","off"]},HL={type:"object",additionalProperties:!1,properties:{schemaCheck:bc,statusCodeCheck:bc,contentTypeCheck:bc,successCriteriaCheck:bc}},KL={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},GL={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},WL={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},YL={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[KL,GL]},inputs:VL,servers:BL,severity:HL,slo:WL},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},QL={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},JL={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:QL,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},XL={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},ZL={oneOf:[JL,XL],discriminator:{propertyName:"type"}},e2={type:"object",additionalProperties:ZL},d0={oneOf:[{type:"array",items:{type:"string",enum:qv},uniqueItems:!0},{type:"string",enum:qv}]},Nv={type:"string",pattern:p0,not:{enum:u0.filter(e=>e!==l0)}},f0={oneOf:[{type:"array",items:Nv,uniqueItems:!0},Nv]},m0={type:"boolean"},h0={type:"string",pattern:"^https?://.*"},y0={type:"string",pattern:"^https?://.*"},t2={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:nt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},r2={type:"object",additionalProperties:t2,nodeTypeName:nt.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},n2={type:"string",enum:["info","success","warning","error"]},Ee={type:"object",additionalProperties:{type:"string"}},o2={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:n2,rbac:Ee,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},i2={type:"array",items:o2},g0={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Ee,openapi:wc,graphql:xc,theme:{type:"object",properties:{openapi:wc,graphql:xc},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Ac},required:["root"]},s2={type:"object",additionalProperties:!0},a2={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},c2={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},p2={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:c2},additionalProperties:!1},l2={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},u2={type:"object",properties:{catalogs:{type:"object",properties:{all:Ee,services:Ee,domains:Ee,teams:Ee,users:Ee,apiDescriptions:Ee,dataSchemas:Ee,apiOperations:Ee},additionalProperties:Ee},entitiesTypes:{type:"object",properties:{service:Ee,domain:Ee,team:Ee,user:Ee,apiDescription:Ee,apiOperation:Ee,dataSchema:Ee},additionalProperties:Ee},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Ee},additionalProperties:!1}},entities:{type:"object",properties:{"**":Ee},additionalProperties:Ee}},additionalProperties:!1},b0={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Ee,cms:Ee,reunite:Ee,features:{type:"object",properties:{aiSearch:Ee,mcp:Ee},additionalProperties:!1},content:{type:"object",properties:{"**":Ee},additionalProperties:Ee},entitiesCatalog:u2},additionalProperties:Ee},d2={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},f2={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},m2={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[d2,f2]}},additionalProperties:!1,required:["type","apiBaseUrl"]},h2={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},y2={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Md={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[h2,y2],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},g2={...Md,properties:{...Md.properties,type:{type:"string",const:"APIGEE_EDGE"}}},b2={type:"object",oneOf:[Md,g2,m2],discriminator:{propertyName:"type"}},v2={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:b2}}},jv={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},x2={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},S2={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},w2={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},_2={type:"object",properties:{requiresLogin:m0,logoutReturnUrl:h0,residency:y0,sso:d0,idps:f0,rbac:b0},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Ec={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:r2,seo:p2,rbac:b0,apiFunctions:l2,requiresLogin:m0,responseHeaders:{type:"object",additionalProperties:{type:"array",items:x2}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",additionalProperties:g0},...Ac,ssoDirect:e2,sso:d0,idps:f0,residency:y0,logoutReturnUrl:h0,access:_2,developerOnboarding:v2,removeAttribution:{type:"boolean"},i18n:jv,l10n:jv,metadata:s2,metadataGlobs:a2,ignore:{type:"array",items:{type:"string"}},theme:Nr,reunite:YL,logo:Fv,navbar:Vv,products:Bv,footer:Hv,sidebar:Kv,scripts:Gv,links:Wv,feedback:Cs,search:Yv,aiAssistant:Qv,colorMode:Jv,palette:Ud,navigation:Xv,codeSnippet:Zv,markdown:e0,openapi:wc,graphql:xc,analytics:r0,userMenu:n0,versionPicker:o0,breadcrumbs:i0,catalog:_c,entitiesCatalog:s0,catalogClassic:_c,scorecard:Pc,scorecardClassic:Pc,scorecards:c0,mcp:S2,skills:w2,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:i2},not:{required:["sso","idps"]},additionalProperties:!0},P2={...Ec,additionalProperties:!1},ui={$id:"root-redocly-config",...Ec,properties:{plugins:{type:"array",items:{type:"string"}},...Ec.properties,env:{type:"object",additionalProperties:P2}},additionalProperties:!1},Mv={type:"object",properties:{logo:Nr.properties.logo,navbar:Nr.properties.navbar,footer:Nr.properties.footer,sidebar:Nr.properties.sidebar,search:Nr.properties.search,codeSnippet:Nr.properties.codeSnippet,breadcrumbs:Nr.properties.breadcrumbs,openapi:Nr.properties.openapi,feedback:Nr.properties.feedback,palette:Ud,mockServer:Ec.properties.mockServer,analytics:{type:"object",properties:{ga:t0}}},additionalProperties:!0},r7={$id:"product-config-override",type:"object",properties:{...Mv.properties,apis:{type:"object",additionalProperties:g0},theme:Mv},additionalProperties:!1},E2=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],Fe=zv({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),$2={type:"object",nodeTypeName:Fe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},A2={type:"object",nodeTypeName:Fe.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},T2={type:"object",nodeTypeName:Fe.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},R2={type:"object",nodeTypeName:Fe.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},O2={type:"object",properties:{},nodeTypeName:Fe.EntityMetadata,additionalProperties:!0},k2={type:"object",nodeTypeName:Fe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},I2={type:"object",nodeTypeName:Fe.EntitySlackContact,properties:{channels:{type:"array",items:k2}},required:["channels"],additionalProperties:!1},C2={type:"object",nodeTypeName:Fe.EntityContact,properties:{slack:I2},additionalProperties:!1},q2={type:"object",nodeTypeName:Fe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},N2={type:"object",nodeTypeName:Fe.EntityRelation,properties:{type:{type:"string",enum:E2},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},An={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:C2,links:{type:"array",nodeTypeName:Fe.EntityLinkList,items:q2},relations:{type:"array",nodeTypeName:Fe.EntityRelationList,items:N2},metadata:O2},j2={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...An,type:{type:"string",const:"user"},metadata:$2},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Fe.UserEntity},{type:"object",nodeTypeName:Fe.ApiOperationEntity,properties:{...An,type:{type:"string",const:"api-operation"},metadata:T2},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Fe.DataSchemaEntity,properties:{...An,type:{type:"string",const:"data-schema"},metadata:R2},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Fe.ApiDescriptionEntity,properties:{...An,type:{type:"string",const:"api-description"},metadata:A2},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Fe.ServiceEntity,properties:{...An,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Fe.DomainEntity,properties:{...An,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Fe.TeamEntity,properties:{...An,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},M2={type:"object",nodeTypeName:Fe.Entity,properties:{...An},required:["key","title","type"],additionalProperties:!1};import qH from"node:path";var v0=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"];var di=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Tc="a-zA-Z0-9\\.\\-_",D2={oas2:bd,oas3_0:It,oas3_1:ie,oas3_2:Ye,async2:Rd,async3:Od,arazzo1:Qe,arazzo1_1:Id,overlay1:Cd,openrpc1:qd};function fo(e){return e==="graphql"?{}:D2[e]}function Rc(e){return e.includes("/")}function Oc(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var bw=Ir(rh(),1);var IH=new bw.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function gw(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>IH.validate(o,r));return n===-1&&(n=0),t[n]}}function Oi(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){let{default:n,format:o,...i}=t;return i}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(A(t.properties)||A(t.additionalProperties)||A(t.items)&&(A(t.items.properties)||A(t.items.additionalProperties)||t.items.oneOf))return CH(e,t,r);if(t.oneOf)if(t.discriminator){let n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);let o={},i=t.oneOf.map((s,a)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);let c=s?.properties?.[n];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);let l=c.const,p=Oi(l,s,r);return typeof p=="string"&&(o[l]=p),p});return(s,a)=>{if(A(s)){let c=s[n];if(typeof c=="string"){let l=o[c];if(l&&r[l])return l}}return gw(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>Oi(e+"_"+i,o,r));return gw(t.oneOf,n)}return t}function CH(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);let n=t.nodeTypeName??e,o={};for(let[c,l]of Object.entries(t.properties||{}))o[c]=Oi(n+"."+c,l,r);let i;A(t.additionalProperties)&&(i=Oi(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;A(t.items)&&(A(t.items.properties)||A(t.items.additionalProperties)||t.items.oneOf)&&(s=Oi(e+"_items",t.items,r));let a=t.required;return t.oneOf&&t.oneOf.every(c=>!!c.required)&&(a=c=>{let l=t.oneOf.map(u=>[...t.required||[],...u.required]),p=l.findIndex(u=>u.every(d=>c[d]!==void 0));return p===-1&&(p=0),l[p]}),r[n]={properties:o,additionalProperties:i,items:s,required:a,description:t.description,documentationLink:t.documentationLink},n}function nh(e,t){let r={},n=Oi(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var NH=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names","spec-ref-siblings"],jH=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-illogical-composition-keywords","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","no-mixed-number-range-constraints","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values","spec-querystring-parameters","spec-ref-siblings"],MH=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],DH=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],LH=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],UH=["info-contact"],zH=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],FH=["no-unused-types","type-description"],VH=["struct","no-unresolved-refs"],BH=[...NH,...jH,...MH,...DH,...LH,...UH,...zH,...FH,...VH],HH=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],KH=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","media-type-examples-override","remove-unused-components"],vw=[...KH,...HH],xw={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!oe(e)&&!qH.extname(e)?{type:"string"}:{...ua,directResolveAs:{name:"ConfigGovernance",...ua}},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends#extends"},plugins:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",oas3_2Rules:"Rules",async2Rules:"Rules",async3Rules:"Rules",arazzo1Rules:"Rules",arazzo1_1Rules:"Rules",overlay1Rules:"Rules",openrpc1Rules:"Rules",graphqlRules:"Rules",preprocessors:"Preprocessors",oas2Preprocessors:"Preprocessors",oas3_0Preprocessors:"Preprocessors",oas3_1Preprocessors:"Preprocessors",oas3_2Preprocessors:"Preprocessors",async2Preprocessors:"Preprocessors",async3Preprocessors:"Preprocessors",arazzo1Preprocessors:"Preprocessors",arazzo1_1Preprocessors:"Preprocessors",overlay1Preprocessors:"Preprocessors",openrpc1Preprocessors:"Preprocessors",decorators:"Decorators",oas2Decorators:"Decorators",oas3_0Decorators:"Decorators",oas3_1Decorators:"Decorators",oas3_2Decorators:"Decorators",async2Decorators:"Decorators",async3Decorators:"Decorators",arazzo1Decorators:"Decorators",arazzo1_1Decorators:"Decorators",overlay1Decorators:"Decorators",openrpc1Decorators:"Decorators"},ua={properties:xw},GH=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...ua.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),WH={properties:{},additionalProperties:"ConfigApisProperties",description:"The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/apis"},YH=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Oc(ua.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),QH={properties:{headers:{type:"array",items:{type:"string"}}}},JH={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:q("ClientGeneratorOptions"),pagination:"ClientPagination"}},XH={properties:{},additionalProperties:{}},Sw={properties:{style:{enum:["cursor","offset","page","link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},ZH={properties:{...Sw.properties,exclude:{type:"array",items:{type:"string"}},operations:q("ClientPaginationRule")}},e9={properties:{},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules",additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"ConfigurableRule";if(BH.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(Rc(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},t9={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.",documentationLink:"https://redocly.com/docs/cli/rules/built-in-rules"},r9={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Custom rules are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-rules"},n9={properties:{},description:"Decorators define transformations that can be applied to the API document during the bundle step.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/decorators",additionalProperties:(e,t)=>{if(vw.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(Rc(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},o9={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},i9={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},s9={properties:{},description:"Preprocessors define transformations that can be applied to the API document before bundling.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/preprocessors",additionalProperties:(e,t)=>{if(vw.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(Rc(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},a9={properties:{},additionalProperties:{},description:"Built-in preprocessors are the default preprocessors included with Redocly CLI. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},c9={properties:{},additionalProperties:{},description:"Custom preprocessors are defined by users via plugins. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"};function p9(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])],description:"REQUIRED. Locates the API node type that the lint command evaluates.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"},description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"}:t===null?null:{type:"string",description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"},filterInParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},filterOutParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions."},matchParentKeys:{type:"string",description:"Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions."}},required:["type"],description:"REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"}}function l9(e){return{...e[nt.ScorecardClassicLevel],properties:{...e[nt.ScorecardClassicLevel]?.properties,...xw}}}var u9={properties:{enum:{type:"array",items:{type:"string"},description:"Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#enum-example"},pattern:{type:"string",description:"Asserts a value matches a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#pattern-example"},notPattern:{type:"string",description:"Asserts a value doesn't match a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"],description:"Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#casing-example"},mutuallyExclusive:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually exclusive.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example"},mutuallyRequired:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually required.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},required:{type:"array",items:{type:"string"},description:"Asserts all listed values are defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#required-example"},requireAny:{type:"array",items:{type:"string"},description:"Asserts that at least one of the listed properties (key names only) is defined. ",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#requireany-example"},contains:{type:"array",items:{type:"string"},description:"Asserts that all listed strings are included in the value array.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#contains-example"},disallowed:{type:"array",items:{type:"string"},description:"Asserts all listed values are not defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example"},defined:{type:"boolean",description:"Asserts a property is defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#defined-example"},nonEmpty:{type:"boolean",description:"Asserts a property is not empty.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example"},minLength:{type:"integer",description:"Asserts a minimum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#minlength-example"},maxLength:{type:"integer",description:"Asserts a maximum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example"},schema:"Schema",ref:e=>typeof e=="string"?{type:"string",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"}:{type:"boolean",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"},const:e=>{if(typeof e=="string")return{type:"string",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="number")return{type:"number",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="boolean")return{type:"boolean",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}},description:"A minimum of one assertion property is required to be defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#assertion-object"},d9={properties:{subject:"Subject",assertions:"Assertions"},required:["subject","assertions"],description:"The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#where-object"},f9={properties:{subject:"Subject",assertions:"Assertions",where:C("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function dp(e,t){let r=di.flatMap(o=>{let i=fo(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=nh("rootRedoclyConfigSchema",e);return{...m9,ConfigRoot:GH(n),ConfigApisProperties:YH(n),Subject:p9([...r,...v0]),...n,[nt.ScorecardClassicLevel]:l9(n)}}var m9={ConfigurableRule:f9,ConfigApis:WH,ConfigGovernance:ua,ConfigHTTP:QH,Client:JH,ClientGeneratorOptions:XH,ClientPagination:ZH,ClientPaginationRule:Sw,Where:d9,BuiltinRule:t9,CustomRule:r9,BuiltinDecorator:o9,CustomDecorator:i9,BuiltinPreprocessor:a9,CustomPreprocessor:c9,Schema:ie.Schema,SchemaProperties:ie.SchemaProperties,PatternProperties:ie.PatternProperties,NamedSchemas:ie.NamedSchemas,DependentRequired:ie.DependentRequired,Discriminator:ie.Discriminator,DiscriminatorMapping:ie.DiscriminatorMapping,ExternalDocs:ie.ExternalDocs,Xml:ie.Xml,Rules:e9,Decorators:n9,Preprocessors:s9,Assertions:u9},{theme:fee,...h9}=ui.properties,y9={...ui,properties:h9},ww=dp(y9),qn=nn(ww);function nr(e,t){if(j(t.parent))return;let r=t.key.toString(),n=e.counts??={};n[r]=(n[r]??0)+1}function oh(e){for(let o of Object.values(e))o.items&&(o.total=o.items.size);let{xExtensions:t}=e,r=t.counts??{},n=Object.keys(r).sort();t.total=n.length,t.counts=Object.fromEntries(n.map(o=>[o,r[o]]))}var g9=e=>({SpecExtension:{enter(t,r){nr(e.xExtensions,r)}},XCodeSampleList:{enter(t,r){nr(e.xExtensions,r)}},ExamplesMap:{enter(t,r){r.key.toString()==="x-examples"&&nr(e.xExtensions,r)}},EnumDescriptions:{enter(t,r){nr(e.xExtensions,r)}},TagGroups:{enter(t,r){nr(e.xExtensions,r)}},Logo:{enter(t,r){nr(e.xExtensions,r)}},XServerList:{enter(t,r){nr(e.xExtensions,r)}},XUsePkce:{enter(t,r){nr(e.xExtensions,r)}},Operation:{enter(t,r){r.key.toString()==="x-query"&&nr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},Link:{leave(t){e.links.items.add(t.operationId)}},WebhooksMap:{enter(t,r){r.key.toString()==="x-webhooks"&&nr(e.xExtensions,r)},Operation:{leave(t){if(e.webhooks.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},Paths:{PathItem:{leave(){e.pathItems.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t){e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){oh(e)}}}),b9=e=>({SpecExtension:{enter(t,r){nr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},ChannelMap:{Channel:{leave(){e.channels.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t,{key:r}){e.parameters.items.add(r.toString())}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){oh(e)}}}),v9=e=>({SpecExtension:{enter(t,r){nr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},NamedChannels:{Channel:{leave(){e.channels.total++},Parameter:{leave(t,{key:r}){e.parameters.items.add(r.toString())}}}},NamedOperations:{Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){oh(e)}}});import*as yE from"node:fs";import*as yn from"node:path";var ki="redocly.yaml",_w={extends:["recommended"]},da=".redocly.lint-ignore.yaml",Pw=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
104
+ # See https://redocly.com/docs/cli/ for more information.
105
+ `,fp="configBundler",mp="pluginsCollector",Ew=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function hp(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}import*as bp from"node:fs";import*as vp from"node:path";var x9=/\((\d+):(\d+)\)$/,Ur=class e extends Error{originalError;source;col;line;constructor(t,r){super(t.message.split(`
106
+ `)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,o]=this.message.match(x9)||[];this.line=parseInt(n,10),this.col=parseInt(o,10)}};var S9=[".graphql",".gql"];function Ii(e){let t=e.toLowerCase();return S9.some(r=>t.endsWith(r))}function Ue(e,t){return e.hasOwnProperty(t)?e[t]:void 0}function fa(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}function un(e,t){return e+"::"+t}function $w(){return new Promise(e=>{setTimeout(e)})}var zr=class{absoluteRef;body;mimeType;constructor(t,r,n){this.absoluteRef=t,this.body=r,this.mimeType=n}#e;#t;getAst(t){return this.#e===void 0&&(this.#e=t(this.body,{filename:this.absoluteRef})??void 0,this.#e&&this.#e.kind===0&&this.#e.value===""&&this.#e.startPosition!==1&&(this.#e.startPosition=1,this.#e.endPosition=1)),this.#e}getLines(){return this.#t===void 0&&(this.#t=this.body.split(/\r\n|[\n\r]/g)),this.#t}},gp=class e extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function Ao(e,t){let r=new zr(t,e);if(Ii(t))return{source:r,parsed:e};try{return{source:r,parsed:co(e,{filename:t})}}catch(n){throw new Ur(n,r)}}var jt=class{config;cache=new Map;constructor(t={http:{headers:[]}}){this.config=t}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return oe(r)?r:t&&oe(t)?new URL(r,t).href:vp.resolve(t?vp.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(oe(t)){let{body:r,mimeType:n}=await yd(t,this.config.http);return new zr(t,r,n)}else{if(bp.lstatSync(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);let r=await bp.promises.readFile(t,"utf-8");return new zr(t,r.replace(/\r\n/g,`
107
+ `))}}catch(r){throw r.message=r.message.replace(", lstat",""),new gp(r)}}parseDocument(t,r=!1){if(Ii(t.absoluteRef))return{source:t,parsed:t.body};let n=oe(t.absoluteRef)?new URL(t.absoluteRef).pathname:t.absoluteRef;if(!fa(n)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:co(t.body,{filename:t.absoluteRef})}}catch(o){throw new Ur(o,t)}}async resolveDocument(t,r,n=!1){let o=this.resolveExternalRef(t,r),i=this.cache.get(o);if(i)return i;let s=this.loadExternalRef(o).then(a=>this.parseDocument(a,n));return this.cache.set(o,s),s}};function Aw(e,t){return{prev:e,node:t}}function w9(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var yp={name:"unknown",properties:{}},_9={name:"scalar",properties:{}};async function or(e){let{rootDocument:t,externalRefResolver:r,rootType:n}=e,o=new Map,i=new Set,s=[];c(t.parsed,t,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return o;function c(l,p,u,d){let f=p.source.absoluteRef,m=new Map;h(l,d,f+u);function h(g,w,b){if(!A(g)&&!Array.isArray(g))return;let S=`${w.name}::${b}`;if(i.has(S))return;if(i.add(S),Array.isArray(g)){let T=w.items;if(T===void 0&&w!==yp&&w!==mr)return;let E=typeof T=="function";for(let $=0;$<g.length;$++){let _=E?T(g[$],dr(b,$)):T;if(_===void 0&&w!==yp&&w!==mr)continue;let G=_?.directResolveAs?{$ref:g[$]}:g[$];_=_?.directResolveAs||_,h(G,Qt(_)?_:yp,dr(b,$))}return}let[x,P]=Object.entries(g).find(([T])=>T==="$anchor")||[];P&&m.set(`#${P}`,g);for(let T of Object.keys(g)){let E=g[T],$=Ue(w.properties,T),_=w.extensionsPrefix!==void 0&&T.startsWith(w.extensionsPrefix);$===void 0&&!_&&($=w.additionalProperties),typeof $=="function"&&($=$(E,T)),_&&$===void 0&&($=mr),$===void 0&&($=yp),!Qt($)&&$?.directResolveAs&&($=$.directResolveAs,E={$ref:E}),$&&$.name===void 0&&$.resolvable!==!1&&($=_9),!(!Qt($)||!(A(E)||Array.isArray(E)))&&h(E,$,dr(b,Cr(T)))}if(j(g)){let T=y(p,g,{prev:null,node:g}).then(E=>{if(E.resolved){c(E.node,E.document,E.nodePointer,w);for(let $ of E.chain??[])c($.node,$.document,$.location.pointer,w)}});s.push(T)}if(ec(g)){let T=y(p,{$ref:g.externalValue},{prev:null,node:g}).then(E=>{E.resolved&&c(E.node,E.document,E.nodePointer,w)});s.push(T)}}async function y(g,w,b){if(w9(b.prev,w))throw new Error("Self-referencing circular pointer");if(rb(w.$ref)){await $w();let F={resolved:!0,isRemote:!1,node:m.get(w.$ref),document:g,nodePointer:w.$ref},pe=un(g.source.absoluteRef,w.$ref);return o.set(pe,F),F}let{uri:S,pointer:x}=_n(w.$ref),P=S!==null&&r.resolveExternalRef(g.source.absoluteRef,S)!==g.source.absoluteRef,T;try{T=P?await r.resolveDocument(g.source.absoluteRef,S):g}catch(F){let pe={resolved:!1,isRemote:P,document:void 0,error:F},R=un(g.source.absoluteRef,w.$ref);return o.set(R,pe),pe}let E={resolved:!0,document:T,isRemote:P,node:g.parsed,nodePointer:"#/"},$=T.parsed,_=x;for(let F of _)if(A($)&&$[F]!==void 0)$=$[F],E.nodePointer=dr(E.nodePointer,Cr(F));else if(Array.isArray($)&&$[+F]!==void 0)$=$[+F],E.nodePointer=dr(E.nodePointer,Cr(F));else if(j($))if(E=await y(T,$,Aw(b,$)),E.chain=void 0,T=E.document||T,A(E.node))$=E.node[F],E.nodePointer=dr(E.nodePointer,Cr(F));else if(Array.isArray(E.node))$=E.node[+F],E.nodePointer=dr(E.nodePointer,Cr(F));else{$=void 0;break}else{$=void 0;break}E.node=$,E.document=T;let G=un(g.source.absoluteRef,w.$ref);if(E.document&&j($)){let F=Yo($)?{node:$,document:E.document,location:new ft(E.document.source,E.nodePointer)}:void 0;E=await y(E.document,$,Aw(b,$)),F&&E.resolved&&(E={...E,chain:[F,...E.chain??[]]})}return o.set(G,E),{...E}}}}function ma(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function Tw(e,t){let r=t.direction||t,n=t.property;for(let o=1;o<e.length;o++){let i=e[o],s=e[o-1];if(n){let c=e[o][n],l=e[o-1][n];if(!c||!l)return!1;i=c,s=l}if(typeof i=="string"&&typeof s=="string"&&(i=i.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?i>=s:i<=s))return!1}return!0}var pE=Ir(rh(),1),lE=Ir(jw(),1),uE=Ir(aE(),1);function cE(e){return e==="draft4"?"id":"$id"}function oY(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var Gr=class{instances={};validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:l}=n,p=oY(l),u=this.getValidator(r,o,s,a,p);if(!u)return{valid:!0,errors:[]};let d={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,d),errors:(u.errors||[]).map(m)};function m(h){let y=h.message,g=h.keyword==="enum"?h.params.allowedValues:void 0;g&&(y+=` ${g.map(S=>`"${S}"`).join(", ")}`),h.keyword==="type"&&(y=`type ${y}`);let w=h.instancePath.substring(i.length+1),b=w.substring(w.lastIndexOf("/")+1);if(b&&(y=`\`${b}\` property ${y}`),h.keyword==="additionalProperties"||h.keyword==="unevaluatedProperties"){let S=h.params.additionalProperty||h.params.unevaluatedProperty;y=`${y} \`${S}\``,h.instancePath+="/"+Cr(S)}return{...h,message:y,suggest:g}}}getAjv(t,r){if(!this.instances[r]){let n=cE(r),o={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(i,s,a){let c=decodeURI(i.split("#")[0]),l=t({$ref:s},c);return!l||!l.location?!1:{[n]:encodeURI(l.location.source.absoluteRef)+"#"+a,...l.node}}};this.instances[r]=r==="2020"?new pE.default(o):new lE.default(o),(0,uE.default)(this.instances[r])}return this.instances[r]}getValidator(t,r,n,o,i){let s=this.getAjv(n,i),a=encodeURI(r.absolutePointer),c=cE(i);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}};var Xp=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Zp=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),dE=new WeakMap,iY=new ft(new zr("assertion",""),"#/schema"),Wr={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||A(e))return[];let o=Array.isArray(e)?e:[e],i=lo(t);return o.map(s=>!i?.test(s)&&{message:`"${s}" should match a regex ${t}`,location:je(e)?r:A(n)?r.child(s).key():r.key()}).filter(We)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||A(e))return[];let o=Array.isArray(e)?e:[e],i=lo(t);return o.map(s=>i?.test(s)&&{message:`"${s}" should not match a regex ${t}`,location:je(e)?r:A(n)?r.child(s).key():r.key()}).filter(We)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||A(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`"${o}" should be one of the predefined values`,location:je(e)?r:r.child(o).key()}).filter(We),defined:(e,t=!0,{baseLocation:r})=>{let n=typeof e<"u";return(t?n:!n)?[]:[{message:t?"Should be defined":"Should be not defined",location:r}]},required:(e,t,{baseLocation:r})=>t.map(n=>!e.includes(n)&&{message:`${n} is required`,location:r.key()}).filter(We),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||A(e))return[];let n=Array.isArray(e)?e:[e];return t.map(o=>!n.includes(o)&&{message:`${o} should be in the list`,location:r}).filter(We)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||A(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`"${o}" is disallowed`,location:je(e)?r:r.child(o).key()}).filter(We),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`"${n}" should be equal ${t} `,location:je(e)?r:r.child(n).key()}).filter(We):e!==t?[{message:`${e} should be equal ${t}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{let n=typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0;return(t?!n:n)?[]:[{message:t?"Should not be empty":"Should be empty",location:r}]},minLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length>=t?[]:[{message:`Should have at least ${t} characters`,location:r}],maxLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length<=t?[]:[{message:`Should have at most ${t} characters`,location:r}],casing:(e,t,{baseLocation:r})=>{if(typeof e>"u"||A(e))return[];let n=Array.isArray(e)?e:[e],o={camelCase:/^[a-z][a-zA-Z0-9]*$/g,"kebab-case":/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/g,snake_case:/^([a-z][a-z0-9]*)(_[a-z0-9]+)*$/g,PascalCase:/^[A-Z][a-zA-Z0-9]+$/g,MACRO_CASE:/^([A-Z][A-Z0-9]*)(_[A-Z0-9]+)*$/g,"COBOL-CASE":/^([A-Z][A-Z0-9]*)(-[A-Z0-9]+)*$/g,flatcase:/^[a-z][a-z0-9]+$/g};return n.map(i=>!i.match(o[t])&&{message:`"${i}" should use ${t}`,location:je(e)?r:r.child(i).key()}).filter(We)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,o=t.property;return Array.isArray(e)&&e.length>0&&A(e[0])&&!o?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||Tw(e,t)?[]:[{message:`Should be sorted in ${n==="asc"?"an ascending":"a descending"} order${o?` by property ${o}`:""}`,location:r}]},mutuallyExclusive:(e,t,{baseLocation:r})=>ma(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(ma(e,t)>0?ma(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>ma(e,t)>=1?[]:[{message:`Should have any of ${t.join(", ")}`,location:r.key()}],ref:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof n>"u")return[];let o=n.hasOwnProperty("$ref");if(typeof t=="boolean")return(t?o:!o)?[]:[{message:t?"should use $ref":"should not use $ref",location:o?r:r.key()}];let i=lo(t);return o&&i?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:o?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:o})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let i=dE.get(t);i||(i=new Gr,dE.set(t,i));let s=j(n)&&o(n)?.location||r,a;try{({errors:a}=i.validate(e,t,{schemaLoc:iY,instancePath:"",resolve:o,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(c){throw new Error(`the 'schema' assertion has an invalid schema: ${c.message}`)}return a.map(c=>{let l=c.instancePath?dr(s.pointer,c.instancePath.slice(1)):s.pointer,p=new ft(s.source,l),u=c.keyword==="additionalProperties"||c.keyword==="unevaluatedProperties";return{message:c.message,location:u?p.key():p}})}};function fE(e){return(t,r,n)=>e.call(null,t,r,n)}function hE(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&A(i)){let s=i;if(t){mE(t,s);for(let a of s.where||[])mE(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function mE(e,t){for(let r of Object.keys(t.assertions||{})){let[n,o]=r.split("/");if(!n||!o)continue;let i=e.find(s=>s.id===n);if(!i)throw Error(`Plugin ${n} isn't found.`);if(!i.assertions||!i.assertions[o])throw Error(`Plugin ${n} doesn't export assertions function with name ${o}.`);Wr[r]=fE(i.assertions[o])}}var Ji=class e{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=hp(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>hE({rules:o},this.plugins);this.rules={oas2:n({...t.rules,...t.oas2Rules}),oas3_0:n({...t.rules,...t.oas3_0Rules}),oas3_1:n({...t.rules,...t.oas3_1Rules}),oas3_2:n({...t.rules,...t.oas3_2Rules}),async2:n({...t.rules,...t.async2Rules}),async3:n({...t.rules,...t.async3Rules}),arazzo1:n({...t.rules,...t.arazzo1Rules}),arazzo1_1:n({...t.rules,...t.arazzo1_1Rules}),overlay1:n({...t.rules,...t.overlay1Rules}),openrpc1:n({...t.rules,...t.openrpc1Rules}),graphql:n({...Oc(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!A(this.resolvedConfig?.apis?.[t]))return this;let{apis:r,...n}=this.resolvedConfig,{root:o,output:i,...s}=r[t];return new e({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){let r=this.configPath?yn.dirname(this.configPath):process.cwd(),n=oe(t)?t:yn.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?yn.dirname(this.configPath):process.cwd(),r=yn.join(t,da),n={};for(let o of Object.keys(this.ignore)){let i=oe(o)?o:gd(yn.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}yE.writeFileSync(r,Pw+fc(n))}addIgnore(t){let r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;let o=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(o[t.ruleId]=o[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){let r=t.location[0];if(r.pointer===void 0)return t;let o=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],i=o&&o.has(r.pointer);return i?{...t,ignored:i}:t}extendTypes(t,r){let n=t;for(let o of this.plugins)if(o.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!o.typeExtension.oas3)continue;n=o.typeExtension.oas3(n,r);break;case"oas2":if(!o.typeExtension.oas2)continue;n=o.typeExtension.oas2(n,r);break;case"async2":if(!o.typeExtension.async2)continue;n=o.typeExtension.async2(n,r);break;case"async3":if(!o.typeExtension.async3)continue;n=o.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!o.typeExtension.arazzo1)continue;n=o.typeExtension.arazzo1(n,r);break;case"overlay1":if(!o.typeExtension.overlay1)continue;n=o.typeExtension.overlay1(n,r);break;case"openrpc1":if(!o.typeExtension.openrpc1)continue;n=o.typeExtension.openrpc1(n,r);break;case"graphql":break;default:throw new Error("Not implemented")}return n}getRuleSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.rules[r][t]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.preprocessors[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){let t=[],r=[],n=[];for(let o of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[o]).filter(i=>!this._usedRules.has(i))),r.push(...Object.keys(this.decorators[o]).filter(i=>!this._usedRules.has(i))),n.push(...Object.keys(this.preprocessors[o]).filter(i=>!this._usedRules.has(i)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas3&&r.push(n.preprocessors.oas3)),this.plugins.forEach(n=>n.rules?.oas3&&r.push(n.rules.oas3)),this.plugins.forEach(n=>n.decorators?.oas3&&r.push(n.decorators.oas3)),r}case"oas2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas2&&r.push(n.preprocessors.oas2)),this.plugins.forEach(n=>n.rules?.oas2&&r.push(n.rules.oas2)),this.plugins.forEach(n=>n.decorators?.oas2&&r.push(n.decorators.oas2)),r}case"async2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async2&&r.push(n.preprocessors.async2)),this.plugins.forEach(n=>n.rules?.async2&&r.push(n.rules.async2)),this.plugins.forEach(n=>n.decorators?.async2&&r.push(n.decorators.async2)),r}case"async3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async3&&r.push(n.preprocessors.async3)),this.plugins.forEach(n=>n.rules?.async3&&r.push(n.rules.async3)),this.plugins.forEach(n=>n.decorators?.async3&&r.push(n.decorators.async3)),r}case"arazzo1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1&&r.push(n.preprocessors.arazzo1)),this.plugins.forEach(n=>n.rules?.arazzo1&&r.push(n.rules.arazzo1)),this.plugins.forEach(n=>n.decorators?.arazzo1&&r.push(n.decorators.arazzo1)),r}case"arazzo1_1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1_1&&r.push(n.preprocessors.arazzo1_1)),this.plugins.forEach(n=>n.rules?.arazzo1_1&&r.push(n.rules.arazzo1_1)),this.plugins.forEach(n=>n.decorators?.arazzo1_1&&r.push(n.decorators.arazzo1_1)),r}case"overlay1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.overlay1&&r.push(n.preprocessors.overlay1)),this.plugins.forEach(n=>n.rules?.overlay1&&r.push(n.rules.overlay1)),this.plugins.forEach(n=>n.decorators?.overlay1&&r.push(n.decorators.overlay1)),r}case"openrpc1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.openrpc1&&r.push(n.preprocessors.openrpc1)),this.plugins.forEach(n=>n.rules?.openrpc1&&r.push(n.rules.openrpc1)),this.plugins.forEach(n=>n.decorators?.openrpc1&&r.push(n.decorators.openrpc1)),r}case"graphql":{let r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(let r of t||[])for(let n of di)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(let o of this.rules[n].assertions)o.assertionId===r&&(o.severity="off")}skipPreprocessors(t){for(let r of t||[])for(let n of di)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of di)this.decorators[n][r]&&(this.decorators[n][r]="off")}};var gE={};var bE={};var vE={};function el(e){return Array.isArray(e)&&e.length===0}function tl(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(j(e[s])){let a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),i=!0,s--)}r(e[s])&&(e.splice(s,1),i=!0,s--)}else if(A(e))for(let s of Object.keys(e)){if(j(e[s])){let a=t.resolve(e[s]);r(a.node)&&(delete e[s],i=!0)}r(e[s])&&(delete e[s],i=!0)}i&&(Bt(e)||el(e))&&delete n[o]}function Vn(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=xE(t),e=xE(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function xE(e){return Array.isArray(e)?e:[e]}var sY="any",rl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||sY;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let p of s){let u=j(a[p])?c.resolve(a[p]).node:a[p];if(A(u)){let d=u[e];Vn(d,t,o)||delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];Vn(c,t,o)||delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>s?.[e]&&!Vn(s?.[e],t,o);return{any:{enter:(s,a)=>{tl(s,a,i)}}}};var aY="any",nl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||aY;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let p of s){let u=j(a[p])?c.resolve(a[p]).node:a[p];if(A(u)){let d=u[e];Vn(d,t,o)&&delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];Vn(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>Vn(s?.[e],t,o);return{any:{enter:(s,a)=>{tl(s,a,i)}}}};import*as ol from"node:fs";import*as il from"node:path";function Yy(e){let t=ol.readFileSync(e,"utf-8");return co(t)}function gn(e,t){return oe(e)||t===void 0?e:il.resolve(il.dirname(t),e)}function Xi(e){return ol.readFileSync(e,"utf-8")}var sl=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:o}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=Xi(gn(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
108
+ ${i.message}`,location:n.child("description")})}}}});var al=e=>({Info:{leave(t){if(!A(e))throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});var cl=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:o}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');let i=t.operationId;if(e[i])try{let s=e[i];t.description=Xi(gn(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
109
+ ${s.message}`,location:n.child("operationId").key()})}}}});var cY="x-internal",pl=({internalFlagProperty:e=cY})=>{function t(n,o,i){let{parent:s,key:a}=o,c=!1;if(Array.isArray(n))for(let l=0;l<n.length;l++){if(j(n[l])&&o.resolve(n[l]).node?.[e]){if(A(s.discriminator?.mapping))for(let u in s.discriminator.mapping)i?.[u]===n[l].$ref&&delete s.discriminator.mapping[u];n.splice(l,1),c=!0,l--}n[l]?.[e]&&(n.splice(l,1),c=!0,l--)}else if(A(n))for(let l of Object.keys(n)){if(j(n[l])){let p=o.resolve(n[l]);A(p.node)&&p.node?.[e]&&(delete n[l],c=!0)}A(n[l])&&n[l]?.[e]&&(delete n[l],c=!0)}c&&(Bt(n)||el(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,o)=>{t(n,o,r)}}}};var ll=({tagNames:e})=>({Tag:{leave(t,{report:r,config:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');let o=e[t.name];if(o)try{t.description=Xi(gn(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
110
+ ${i.message}`})}}}});var pY=["definitions","parameters","responses","securityDefinitions"],ul=()=>{let e=new Map;function t(o,i){let s=`${o}/${i}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:o,name:i})}function r(o){if(!o.startsWith("#/"))return;let[i,s]=_n(o).pointer;if(!(!i||!s)&&pY.includes(i))return`${i}/${s}`}function n(o,i=new Set){let s=i.size;for(let[a,{usedIn:c,name:l,componentType:p}]of e)!c.some(d=>d!==a&&!i.has(d))&&p&&(i.add(a),delete o[p][l],e.delete(a),Bt(o[p])&&delete o[p]);return i.size>s?n(o,i):i.size}return{ref:{leave(o,{location:i,type:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(s.name)){let c=r(o.$ref);if(!c)return;let l=r(i.pointer)??i.pointer,p=e.get(c);p?p.usedIn.push(l):e.set(c,{usedIn:[l],name:a.toString()})}}},Root:{leave(o,i){let s=i.getVisitorData();s.removedCount=n(o)}},NamedSchemas:{Schema(o,{key:i}){o.allOf||t("definitions",i.toString())}},NamedParameters:{Parameter(o,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(o,{key:i}){t("responses",i.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{key:i}){t("securityDefinitions",i.toString())}},SecurityRequirement(o){for(let i of Object.keys(o)){let s=`securityDefinitions/${i}`,a=e.get(s);a?a.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:i})}}}};var SE={"operation-description-override":cl,"tag-description-override":ll,"info-description-override":sl,"info-override":al,"remove-x-internal":pl,"filter-in":rl,"filter-out":nl,"remove-unused-components":ul};var _E=({operationIds:e})=>({Operation:{enter(t,r){let n=t.operationId;if(!n)return;let o=e[n];if(o){if(o.responses&&t.responses)for(let i of Object.keys(o.responses)){let s=wE(t.responses[i],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(o.responses[i]).forEach(a=>{let c=o.responses[i][a];s.content[a]={...s.content[a],examples:Yy(gn(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=wE(t.requestBody,r.resolve);if(!i)return;i.content=i.content?i.content:{},Object.keys(o.request).forEach(s=>{let a=o.request[s];i.content[s]={...i.content[s],examples:Yy(gn(a,r.config?.configPath))}}),t.requestBody=i}}}}});function wE(e,t){if(!j(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function PE(e,t){return t in e}function EE(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=_n(e).pointer;if(!(!r||!n))return`${r}/${n}`}var dl=()=>{let e=new Map;function t(n,o,i=!1){let s=`${n}/${o}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:n,name:o,referencesDiscriminator:i})}function r(n,o=new Set){let i=o.size;for(let[s,{usedIn:a,name:c,componentType:l,referencesDiscriminator:p}]of e)if(!(a.some(d=>d!==s&&!o.has(d))||p)&&l&&n.components&&PE(n.components,l)){o.add(s);let d=n.components[l];delete d[c],e.delete(s),Bt(d)&&delete n.components[l]}return o.size>i?r(n,o):o.size}return{ref:{leave(n,{location:o,type:i,key:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(i.name)){let a=EE(n.$ref);if(!a)return;let c=EE(o.pointer)??o.pointer,l=e.get(a);l?l.usedIn.push(c):e.set(a,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,o){let i=o.getVisitorData();i.removedCount=r(n),Bt(n.components)&&delete n.components}},NamedSchemas:{Schema(n,o){let i=n.allOf?.some(s=>j(s)&&o.resolve(s)?.node?.discriminator);t("schemas",o.key.toString(),i)}},NamedParameters:{Parameter(n,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(n,{key:o}){t("responses",o.toString())}},NamedExamples:{Example(n,{key:o}){t("examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{key:o}){t("requestBodies",o.toString())}},NamedHeaders:{Header(n,{key:o}){t("headers",o.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:o}){t("mediaTypes",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:o}){t("securitySchemes",o.toString())}},SecurityRequirement(n){for(let o of Object.keys(n)){let i=`securitySchemes/${o}`,s=e.get(i);s?s.usedIn.push("SecurityRequirement"):e.set(i,{usedIn:["SecurityRequirement"],name:o})}}}};var $E={"operation-description-override":cl,"tag-description-override":ll,"info-description-override":sl,"info-override":al,"remove-x-internal":pl,"filter-in":rl,"filter-out":nl,"media-type-examples-override":_E,"remove-unused-components":dl};var AE={};var TE={};var RE=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;let o=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(let i of e)o.includes(i?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${o.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});var Qy={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function OE(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&lo(n),i=o&&(c=>o.test(c.toString())),s=Array.isArray(t)&&(c=>t.includes(c.toString())),a=Array.isArray(r)&&(c=>!r.includes(c.toString()));return[i,s,a].filter(We)}function IE(e){let t=As(Wr).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:Xp.has(o),runsOnValues:Zp.has(o)})),r=t.find(o=>o.runsOnKeys&&!o.runsOnValues),n=t.find(o=>o.runsOnValues&&!o.runsOnKeys);if(n&&!e.subject.property)throw new Error(`The '${n.name}' assertion can't be used on all keys. Please provide a single property.`);if(r&&e.subject.property)throw new Error(`The '${r.name}' assertion can't be used on properties. Please remove the 'property' key.`);return t}function CE({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function qE(e,t,r){let n=CE(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push(kE({assert:i,ctx:r,assertionProperty:s}));else o.push(kE({assert:i,ctx:r}));return o.flat()}function NE(e,t){let r=OE(e.subject),n=r.length?(c,l)=>!r.every(p=>p(l)):void 0,o={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return o;let i={},s=i,a=e.where;for(let c=0;c<a.length;c++){let l=a[c];if(!je(l.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);if(!A(l.assertions))throw new Error(`${e.assertionId} -> where -> [${c}]: 'assertions' (Object) is required`);let p=OE(l.subject),u=IE(l),d=(m,h,y)=>!p.every(g=>g(h))||!!qE(l,u,{...y,node:m}).length,f={...(p.length||u.length)&&{skip:d}};l.subject.type===e.subject.type&&c===a.length-1?o[e.subject.type]={enter:t,...f.skip&&{skip:f.skip}||n&&{skip:(m,h,y)=>!!(f.skip?.(m,h,y)||n?.(m,h))}}:i=i[l.subject?.type]=f}return i[e.subject.type]=o[e.subject.type],s}function jE(e,t){return(r,n)=>{let o=CE(t),i=`${Y.blue(e)} failed because the ${Y.blue(t.subject.type)} ${Y.blue(o.join(", "))} didn't meet the assertions: ${Qy.problems}`.replace(/ +/g," "),s=qE(t,IE(t),{...n,node:r});if(s.length)for(let a of lY(s)){let c=t.message||i,p={problems:Jy(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:Xy(n.location.source.absoluteRef)};n.report({message:Zy(c,p),location:uY(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function lY(e){let t={};for(let r of e){if(!r.location)continue;let n=r.location.absolutePointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function uY(e){return e.length?e[0].location:void 0}function Jy(e){return e.length===1?e[0].message??"":e.map(t=>`
111
+ - ${t.message??""}`).join("")}function Xy(e){return oe(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function Zy(e,t){let r=e;for(let n of Object.keys(Qy)){let o=Qy[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function kE({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=j(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return Wr[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return Wr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var Tt=e=>{let t=[],r=Object.values(e).filter(n=>A(n));for(let[n,o]of r.entries()){if(!je(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);if(!A(o.assertions))throw new Error(`${o.assertionId}: 'assertions' (Object) is required`);let i=jE(o.assertionId,o),s=NE(o,i);t.push(s)}return t};function dY(e){return A(e)||Array.isArray(e)}var Yr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;let n=new Set,o=[];for(let[i,s]of e.enum.entries()){let a=dY(s);(a?o.some(l=>Vt(l,s)):n.has(s))&&t({message:`Duplicated enum value found: '${a?JSON.stringify(s):s}'.`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),a?o.push(s):n.add(s)}}});var LE=Ir(DE(),1);var Do=(e,t,r)=>{if(j(e)){let n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location,chain:n.chain}:{schema:void 0,location:r}}return{schema:e,location:r}},eg=(e,t,r,n,o)=>!!(e.properties&&Ue(e.properties,t)!==void 0||e.allOf?.some(i=>bn(i,t,r,n,o))||po(e.anyOf)&&e.anyOf.every(i=>bn(i,t,r,new Set(n),o))||po(e.oneOf)&&e.oneOf.every(i=>bn(i,t,r,new Set(n),o))),bn=(e,t,r,n=new Set,o)=>{if(j(e)&&eg(e,t,r,n,o))return!0;let{schema:i,location:s,chain:a}=Do(e,r,o);if(!i)return!1;if(!n.has(i)&&(n.add(i),eg(i,t,r,n,s)))return!0;for(let c of a??[])if(!(!A(c.node)||n.has(c.node))&&(n.add(c.node),eg(c.node,t,r,n,c.location)))return!0;return!1};function es(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Zi(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function fl(e,t,r){if(Zi(e))return!0;if(!Array.isArray(e?.traits))return!1;for(let n of e.traits){let o=j(n)?t(n,r).node:n;if(Zi(o))return!0}return!1}function ts(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return A(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Lo(e,t){return`${e} object should contain \`${t}\` field.`}function fY(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function UE(e,t){return`${e} object \`${t}\` must be non-empty string.`}function pr({fieldName:e,value:t,ctx:r,reference:n}){A(t)&&(t[e]===void 0?r.report({message:Lo(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:UE(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function zE({fieldNames:e,value:t,ctx:r,reference:n}){if(A(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:fY(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:UE(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function Uo(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];let r=[];for(let n=0;n<t.length;n++){let o=(0,LE.default)(e,t[n]);o<4&&r.push({distance:o,variant:t[n]})}return r.sort((n,o)=>n.distance-o.distance),r.map(n=>n.variant)}function ml(e){if(A(e)){if(rt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(rt(e.value))return{value:e.value,field:"value"}}}function Bn({example:e,schema:t,options:r,reference:n}){let{location:o,ctx:i,validator:s,allowAdditionalProperties:a,ajvContext:c}=r,{resolve:l,location:p,report:u,specVersion:d}=i;try{let{valid:f,errors:m}=s.validate(e,t,{schemaLoc:p.child("schema"),instancePath:o.pointer,resolve:l,allowAdditionalProperties:a,ajvContext:c,specVersion:d});if(!f)for(let h of m)u({message:`Example value must conform to the schema: ${h.message}.`,location:{...new ft(o.source,h.instancePath),reportOnKey:h.keyword==="unevaluatedProperties"||h.keyword==="additionalProperties"},from:p,suggest:h.suggest,reference:n})}catch(f){if(f.message==="discriminator: requires oneOf or anyOf composite keyword")return;u({message:`Example validation errored: ${f.message}.`,location:p.child("schema"),from:p,reference:n})}}var mY=10;function tg(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>mY?`\`${r}\` "${t}" is not a valid value.${s?` See the supported values: ${s}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(c=>`"${c}"`).join(", ")}.`;o({location:i,message:a,from:n,suggest:Uo(t,e)})}}function rs({responseCodes:e,codeRange:t,report:r,reference:n}){let o=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(s=>t==="2XX"&&s==="default"||o.test(s))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Ba(e,t){return t?e.name.toLowerCase():e.name}var Qr=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){let n=e.enum.filter(o=>!ts(o,e.type,e.nullable));for(let o of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${es(o)}".`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){let n={};for(let o of e.enum){n[o]=[];for(let i of e.type)ts(o,i,e.nullable)||n[o].push(i);n[o].length!==e.type.length&&delete n[o]}for(let o of Object.keys(n))t({message:`Enum value \`${o}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}});var Hn=()=>({Schema(e,{report:t,location:r}){typeof e.maximum=="number"&&typeof e.exclusiveMaximum=="number"&&t({message:"Schema should not have both `maximum` and `exclusiveMaximum`. Use one or the other.",location:r.child(["exclusiveMaximum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"}),typeof e.minimum=="number"&&typeof e.exclusiveMinimum=="number"&&t({message:"Schema should not have both `minimum` and `exclusiveMinimum`. Use one or the other.",location:r.child(["exclusiveMinimum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"})}});var Jr=()=>{let e=[],t=new Set,r=(n,o,i)=>{if(po(n.required))for(let[s,a]of n.required.entries())bn(n,a,i,new Set,o)||i.report({message:`Required property '${a}' is not defined.`,location:o.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,o,i){if(o.type.name!=="Schema")return;let s=[{node:n,location:o.location},...i.chain??[]];for(let{node:a,location:c}of s)!A(a)||t.has(a)||(t.add(a),r(a,c,o))}},Schema:{leave(n){e.pop()},enter(n,o){if(e.push(n),!po(n.required))return;let i=(c,l)=>{let p=u=>Do(u,o).schema===l;return!!(c.allOf?.some(p)||c.anyOf?.some(p)||c.oneOf?.some(p))},s=(c,l)=>{if(c<0)return;let p=e[c];return i(p,l)?s(c-1,p)??p:void 0},a=s(e.length-2,n);for(let[c,l]of n.required.entries())!bn(n,l,o)&&!bn(a,l,o)&&o.report({message:`Required property '${l}' is not defined.`,location:o.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var Xr=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}});var pt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&zo(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(let o of Object.keys(e)){let i=r({$ref:e[o]});if(i.node!==void 0)return;zo(i,t,n.child(o))}}});function zo(e,t,r){let n=e.error;n instanceof Ur&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let o=e.error?.message;t({location:r,message:`Can't resolve $ref${o?": "+o:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}var Zr=()=>({any(e,{report:t,location:r}){typeof e.description=="string"&&(/<script\b/i.test(e.description)&&t({message:"Markdown descriptions must not contain '<script>' tags.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/<[a-z][^>]*\bon[a-z]+\s*=/i.test(e.description)&&t({message:"Markdown descriptions must not contain HTML event handler attributes.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/(?:\]\(\s*|\b(?:href|src)\s*=\s*["']?\s*)javascript:/i.test(e.description)&&t({message:"Markdown descriptions must not contain 'javascript:' URLs.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}))}});var lt=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=es(e),l=o!==n?o:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:l}),a());return}else if(c!=="object"){r!==mr&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:l}),a();return}let p=typeof r.required=="function"?r.required(e,i):r.required;for(let f of p||[])e.hasOwnProperty(f)||t({message:`The field \`${f}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});let u=r.allowed?.(e);if(u&&A(e))for(let f in e)u.includes(f)||r.extensionsPrefix&&f.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(f)||t({message:`The field \`${f}\` is not allowed here.`,from:l,location:n.child([f]).key()});let d=r.requiredOneOf||null;if(d){let f=!1;for(let m of d||[])e.hasOwnProperty(m)&&(f=!0);f||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(let f of Object.keys(e)){let m=n.child([f]),h=e[f],y=Ue(r.properties,f);if(y===void 0&&(y=r.additionalProperties),typeof y=="function"&&(y=y(h,f)),Qt(y))continue;let g=y,w=es(h);if(g===void 0){if(f.startsWith("x-"))continue;t({message:`Property \`${f}\` is not expected here.`,suggest:Uo(f,Object.keys(r.properties)),from:l,location:m.key()});continue}if(g!==null){if(g.resolvable!==!1&&j(h)&&(h=s(h).node),g.items&&g.items?.enum&&Array.isArray(h))for(let b=0;b<h.length;b++)tg(g.items?.enum,h[b],f,l,{report:t,location:n.child([f,b])},g.items?.documentationLink);if(g.enum)tg(g.enum,h,f,l,{report:t,location:n.child([f])},g.documentationLink);else if(g.type&&!ts(h,g.type,!1))t({message:`Expected type \`${g.type}\` but got \`${w}\`.`,from:l,location:m}),a();else if(w==="array"&&g.items?.type){let b=g.items?.type;for(let S=0;S<h.length;S++){let x=h[S];ts(x,b,!1)||t({message:`Expected type \`${b}\` but got \`${es(x)}\`.`,from:l,location:m.child([S])})}}typeof g.minimum=="number"&&g.minimum>e[f]&&t({message:`The value of the ${f} field must be greater than or equal to ${g.minimum}`,from:l,location:n.child([f])})}}}});var FE=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||A(e.type)&&e.type.type==="xpath")&&t({message:"The `xpath` type criteria is not supported by Respect.",location:r.child(["type"]),reference:"https://redocly.com/docs/cli/rules/respect/no-criteria-xpath"})}}});var VE=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=Ue(o,"scheme"),s=Ue(o,"schemeName");i&&s&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-both-scheme-and-scheme-name"})}}return{Workflow:{enter(t,r){e(t?.["x-security"],r)}},Step:{enter(t,r){e(t?.["x-security"],r)}}}};var BE=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;let o=e?.["x-security"];if(o)for(let i of o)"schemeName"in i&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",o.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}});var HE=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){let o=t?.["x-security"];if(!(!o||e<=1)){for(let i of o)if("schemeName"in i){let s=i.schemeName;typeof s=="string"&&s.startsWith("$sourceDescriptions.")||r({message:"When multiple `sourceDescriptions` exist, `workflow.x-security.schemeName` must be a reference to a source description (e.g. `$sourceDescriptions.{name}.{schemeName}`)",location:n.child(["x-security",o.indexOf(i),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}};var hY={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function KE(e,{report:t,location:r}){if(e)for(let n of e){if("schemeName"in n)continue;let{scheme:o,values:i}=n,s=o?.type==="http"?o.scheme:o?.type;if(s==="mutualTLS"){Q.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let a=hY[s];if(a)for(let c of a)(!i||!(c in i))&&t({message:`The \`${c}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}var GE=()=>({Step:{enter(e,t){KE(e?.["x-security"],t)}},Workflow:{enter(e,t){KE(e?.["x-security"],t)}}});var WE=()=>({FailureActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},Step:{enter(e,{report:t,location:r}){let n=e?.successCriteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}}});var YE=()=>{let e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:l,definedWorkflowOutputs:p}){let u=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,d;for(;(d=u.exec(s))!==null;){let[f,m,h]=d,y=p.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in workflow "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(l)}):a({message:`Workflow "${m}" referenced in runtime expression "${f}" is not defined or has no outputs.`,location:c.child(l)})}}function o({value:s,report:a,location:c,path:l,definedStepOutputs:p}){let u=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,d;for(;(d=u.exec(s))!==null;){let[f,m,h]=d,y=p.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in step "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(l)}):a({message:`Step "${m}" referenced in runtime expression "${f}" is not defined or has no outputs.`,location:c.child(l)})}}function i(s,a,c=[]){if(typeof s=="string")n({value:s,report:a.report,location:a.location,path:c,definedWorkflowOutputs:e}),o({value:s,report:a.report,location:a.location,path:c,definedStepOutputs:t});else if(A(s)||Array.isArray(s))for(let[l,p]of Object.entries(s))i(p,a,[...c,l])}return{Step:{enter(s,{report:a,location:c}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:a,location:c}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,a){r.push(()=>{i(s,a)})}},RequestBody:{enter(s,a){r.push(()=>{i(s,a)})}},CriterionObject:{enter(s,a){r.push(()=>{i(s.condition,a)})}},Outputs:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedSecurity:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedOperation:{enter(s,a){r.push(()=>{i(s,a)})}},Root:{leave(){for(let s of r)s()}}}};var QE=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.has(o?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.add(o?.name??o?.reference)}}});var JE=()=>{let e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(let o of t.replacements)e.has(o.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(o),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(o.target)}}}}};var XE=()=>{let e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(let o of t)e.has(o.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(o.name)}}}};var ZE=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var yY=["x-operation","operationId","operationPath","channelPath","workflowId"],e$=()=>({Step:{enter(e,{report:t,location:r}){let n=yY.filter(o=>Object.hasOwn(e,o));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(o=>`\`${o}\``).join(", ")}.`,location:n.map(o=>r.child([o]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}});var t$=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(o.name??o.reference)}}});var r$=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(o?.name??o?.reference)}}});var n$=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;let n=new Set;for(let o of e.steps){if(!o.stepId)return;n.has(o.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(o.stepId)}}}});var o$=()=>{let e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(let o of n)t.add(o.name)}},Workflows:{enter(n){for(let o of n)r.add(o.workflowId)}},Workflow:{leave(n,{report:o,location:i}){if(n.dependsOn)for(let s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];t.has(a)||o({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&o({message:`Workflow ${s} must be defined in workflows.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(s)&&o({message:"Every workflow in dependsOn must be unique.",location:i.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(s)}}}}};var i$=()=>{let e=new Set;return{Workflow:{enter(t,{report:r,location:n}){t.workflowId&&(e.has(t.workflowId)&&r({message:"Every workflow must have a unique `workflowId`.",location:n.child([t.workflowId]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflowid-unique"}),e.add(t.workflowId))}}}};var s$={assertions:Tt,"criteria-unique":WE,"no-criteria-xpath":FE,"no-duplicated-enum-values":Yr,"no-unsafe-markdown":Zr,"no-enum-type-mismatch":Qr,"no-mixed-number-range-constraints":Hn,"no-required-schema-properties-undefined":Jr,"no-schema-type-mismatch":Xr,"no-unresolved-refs":pt,"no-x-security-both-scheme-and-scheme-name":VE,"no-x-security-scheme-name-without-openapi":BE,"outputs-defined":YE,"parameters-unique":QE,"requestBody-replacements-unique":JE,"sourceDescription-name-unique":XE,"sourceDescription-type":RE,"sourceDescriptions-not-empty":ZE,"spec-step-mutually-exclusive-fields":e$,"step-onFailure-unique":t$,"step-onSuccess-unique":r$,"stepId-unique":n$,struct:lt,"workflow-dependsOn":o$,"workflowId-unique":i$,"x-security-scheme-name-reference":HE,"x-security-scheme-required-values":GE},a$={};var lr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Lo("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var c$=/^1\.0\.\d+(-.+)?$/;function Ha(e){return e.startsWith("oas3")?"oas3":e==="oas2"?"oas2":e==="async2"?"async2":e==="async3"?"async3":e==="arazzo1"||e==="arazzo1_1"?"arazzo1":e==="overlay1"?"overlay1":e==="openrpc1"?"openrpc1":e==="graphql"?"graphql":"oas3"}function vn(e){if(!A(e))throw new Error(`Document must be JSON object, got ${typeof e}`);if(typeof e.openrpc=="string"&&e.openrpc.startsWith("1."))return"openrpc1";if(e.openapi&&typeof e.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof e.openapi}"`);if(typeof e.openapi=="string"&&e.openapi.startsWith("3.0."))return"oas3_0";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.1."))return"oas3_1";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.2."))return"oas3_2";if(e.swagger&&e.swagger==="2.0")return"oas2";if(e.openapi||e.swagger)throw new Error(`Unsupported OpenAPI version: ${e.openapi||e.swagger}`);if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("2."))return"async2";if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("3."))return"async3";if(e.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${e.asyncapi}`);if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.0."))return"arazzo1";if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.1."))return"arazzo1_1";if(e.arazzo)throw new Error(`Unsupported Arazzo version: ${e.arazzo}`);if(typeof e.overlay=="string"&&c$.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var Kn=()=>{let e;return{Root:{enter(t){e=vn(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?zE({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):pr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var Gn=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=Ba(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}};var Wn=()=>({Root:{PathItem:{Operation(e,t){pr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function gY(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=j(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=j(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var ns=e=>{let t=new Map,r=[];return{Root:{leave(n,{report:o}){for(let{schemeName:i,scopes:s,location:a}of r){let c=t.get(i);if(c?.type==="oauth2"){if(e.requireScopes&&s.length===0){o({message:`The "${i}" security requirement must list at least one scope.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let l=0;l<s.length;l++){let p=s[l];c.definedScopes.includes(p)||o({message:`The "${p}" scope is not defined in the "${i}" security scheme.`,location:a.child([l]),suggest:Uo(p,c.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:o,resolve:i,location:s}){t.set(o.toString(),{type:n.type,definedScopes:n.type==="oauth2"?gY(n,i,s):[]})},SecurityRequirement(n,{location:o}){for(let[i,s]of Object.entries(n))r.push({schemeName:i,scopes:s||[],location:o.child([i])})}}};var Yn=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(let o of Object.keys(e))o!=="$ref"&&t({message:`Property \`${o}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}});var Qn=()=>({Tag(e,t){pr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Jn=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)Ba(t.tags[o],e)>Ba(t.tags[o+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}});var p$=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var l$=()=>({Channel(e,{report:t,key:r,location:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var u$="https://redocly.com/docs/cli/rules/async/security-defined",d$=()=>{let e=new Map,t=new Map,r=[],n,o=!1;return{Root:{leave(i,{report:s}){for(let[c,l]of e.entries())if(!l.defined)for(let p of l.from)s({message:`There is no \`${c}\` security scheme defined.`,location:p.key(),reference:u$});let a=[...t.keys()];for(let{location:c,channelServers:l}of r){let p=l??a;p.length>0&&p.every(d=>t.get(d))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:u$})}}},SecurityScheme(i,{key:s}){i!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=e.get(a),l=s.child([a]);c?c.from.push(l):e.set(a,{from:[l]})}},Components:{enter(){o=!0},leave(){o=!1}},Server(i,{key:s}){o||t.set(s.toString(),Zi(i))},Channel:{skip(){return o},enter(i){n=Array.isArray(i?.servers)&&i.servers.length>0?i.servers:void 0},Operation(i,{location:s,resolve:a}){fl(i,a)||r.push({location:s,channelServers:n})}}}};var f$={struct:lt,"no-unresolved-refs":pt,assertions:Tt,"info-contact":lr,"info-license-strict":Kn,"operation-operationId":Wn,"security-defined":d$,"channels-kebab-case":p$,"no-channel-trailing-slash":l$,"tag-description":Qn,"tags-alphabetical":Jn,"no-duplicated-enum-values":Yr,"no-unsafe-markdown":Zr,"no-duplicated-tag-names":Gn,"no-required-schema-properties-undefined":Jr,"no-enum-type-mismatch":Qr,"no-mixed-number-range-constraints":Hn,"no-schema-type-mismatch":Xr,"security-scopes-defined":ns,"spec-ref-siblings":Yn},m$={};var h$=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var y$=()=>({Channel(e,{report:t,location:r}){e?.address?.endsWith("/")&&e?.address!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var g$="#/components/securitySchemes/",bY="#/components/",rg="https://redocly.com/docs/cli/rules/async/security-defined";function vY(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function xY(e){if(!e.startsWith(g$))return!1;let t=e.slice(g$.length);return t!==""&&!t.includes("/")}var b$=()=>{let e=[],t,r,n,o,i,s=(a,c,l)=>{let p=a.channel,u=j(p)?c(p,l):void 0,f=(j(p)?u?.node:p)?.servers,m,h;return f&&f.length>0?(m=f,h=u?.location?.source.absoluteRef??l):(m=t?Object.values(t):[],h=r),m.length===0?!1:m.every(y=>{let g=j(y)?c(y,h).node:y;return Zi(g)})};return{Root:{enter(a,{location:c,resolve:l}){let p=a?.servers;if(j(p)){let d=l(p);t=d.node??void 0,r=d.location?.source.absoluteRef}else t=p,r=void 0;let u=a?.operations;if(j(u)){let d=l(u);n=d.node??void 0,o=d.location?.source.absoluteRef,i=d.location}else n=u,o=void 0,i=c.child(["operations"])},leave(a,{report:c,resolve:l}){for(let p of e){if((p.local||p.refPointer.startsWith(bY))&&!xY(p.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:p.location.key(),reference:rg});continue}p.resolved||c({message:`There is no \`${p.name}\` security scheme defined.`,location:p.location.key(),reference:rg})}if(n&&i){let p=i;for(let[u,d]of Object.entries(n)){let f,m;if(j(d)){let h=l(d,o);f=h.node,m=h.location?.source.absoluteRef}else f=d,m=o;f&&(fl(f,l,m)||s(f,l,m)||c({message:"Every operation should have security defined on it.",location:p.child([u]).key(),reference:rg}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:l}){if(a)for(let p=0;p<a.length;p++){let u=a[p];if(!j(u))continue;let d=c.child([p]),f=l(u),m=vY(u.$ref),h=m.split("/").pop()??u.$ref;e.push({location:d,name:h,refPointer:m,resolved:f.node!=null,local:u.$ref.startsWith("#")})}}}}};function SY(e,t,r){if(!e.flows)return[];let{node:n,location:o}=j(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=j(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var v$=e=>{let t=new Map;return{SecuritySchemeList(r,{resolve:n,location:o}){for(let i=0;i<r.length;i++){let s=r[i],a=j(s)?n(s):{node:s,location:o.child([i])};!a.node||!a.location||t.set(a.location.absolutePointer,{scheme:a.node,location:a.location,availableScopes:a.node.type==="oauth2"?SY(a.node,n,a.location):[]})}},Root:{leave(r,{report:n}){for(let{scheme:o,location:i,availableScopes:s}of t.values()){if(o.type!=="oauth2")continue;if(e.requireScopes&&!o.scopes?.length){n({message:"The security scheme must list at least one scope.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}let a=o.scopes||[];for(let c=0;c<a.length;c++){let l=a[c];s.includes(l)||n({message:`The "${l}" scope is not defined in the available scopes of the security scheme flows.`,location:i.child(["scopes",c]),suggest:Uo(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var x$={struct:lt,"no-unresolved-refs":pt,assertions:Tt,"info-contact":lr,"info-license-strict":Kn,"operation-operationId":Wn,"security-defined":b$,"channels-kebab-case":h$,"no-channel-trailing-slash":y$,"tag-description":Qn,"tags-alphabetical":Jn,"no-duplicated-enum-values":Yr,"no-unsafe-markdown":Zr,"no-duplicated-tag-names":Gn,"no-required-schema-properties-undefined":Jr,"no-enum-type-mismatch":Qr,"no-mixed-number-range-constraints":Hn,"no-schema-type-mismatch":Xr,"security-scopes-defined":v$,"spec-ref-siblings":Yn},S$={};function _$(e){return As(Wr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Xp.has(t),runsOnValues:Zp.has(t)}))}var P$=e=>{let t=Object.values(e).filter(A),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;if(!A(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);let i=_$(n),s=wY(n);r.push({[o]:(a,c)=>{_Y(a,c,s)&&PY(a,c,n,i)}})}return r};function wY(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!je(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!A(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:_$(t)}}):[]}function _Y(e,t,r){let n=r,o=r.at(-1);if(o&&o.kind===e.kind){if(!w$(e,o,t))return!1;n=r.slice(0,-1)}let i=0;for(let s of n){let a=!1;for(;i<t.ancestors.length;){let c=t.ancestors[i++];if(c.kind===s.kind&&w$(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function w$(e,t,r){let{value:n}=E$(e,t.definition.subject.property),o=new ft(r.source,"#/");return t.assertsToApply.every(i=>Wr[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function PY(e,t,r,n){let o=$$(r.subject.property),{value:i,locNode:s}=E$(e,r.subject.property),a=new ft(t.source,"#/"),c=n.flatMap(p=>Wr[p.name](i,p.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let l=`${Y.blue(r.assertionId)} failed because the ${Y.blue(r.subject.type)} ${Y.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:Zy(r.message??l,{problems:Jy(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:Xy(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function ng(e){return e?.name?.value!==void 0?{value:e.name.value,locNode:e.name}:e?.value!==void 0?{value:e.value,locNode:e}:{value:e,locNode:e}}function E$(e,t){let r=$$(t);if(r===void 0)return ng(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>ng(i).value),locNode:e};let o=ng(n);return{value:o.value,locNode:EY(o.locNode)?o.locNode:e}}function EY(e){return A(e)&&"kind"in e}function $$(e){return Array.isArray(e)?e[0]:e}var $Y=["Query","Mutation","Subscription"];function AY(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var A$=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=p=>t.add(AY(p)),i=p=>e.set(p.name.value,p.name),s=p=>{for(let u of p.interfaces??[])o(u);for(let u of p.fields??[]){o(u.type);for(let d of u.arguments??[])o(d.type)}},a=p=>{for(let u of p.types??[])o(u)},c=p=>{for(let u of p.fields??[])o(u.type)},l=p=>{for(let u of p.operationTypes??[])r.add(u.type.name.value)};return{SchemaDefinition:p=>{n=!0,l(p)},SchemaExtension:l,DirectiveDefinition:p=>{for(let u of p.arguments??[])o(u.type)},ObjectTypeDefinition:p=>{i(p),s(p)},ObjectTypeExtension:s,InterfaceTypeDefinition:p=>{i(p),s(p)},InterfaceTypeExtension:s,UnionTypeDefinition:p=>{i(p),a(p)},UnionTypeExtension:a,InputObjectTypeDefinition:p=>{i(p),c(p)},InputObjectTypeExtension:c,EnumTypeDefinition:i,ScalarTypeDefinition:i,Document:{leave:(p,u)=>{if(!n)for(let d of $Y)e.has(d)&&r.add(d);if(r.size!==0)for(let[d,f]of e)t.has(d)||r.has(d)||u.report({message:`Type \`${d}\` is declared but never used.`,node:f})}}}};var os=Ir(MR(),1),T$=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,os.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){TY(n,t);return}for(let n of(0,os.validateSchema)(r))R$(n,t)}}});function TY(e,t){if(e instanceof os.GraphQLError)R$(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function R$(e,t){let r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}var O$=()=>{let e=(t,r)=>{(!t.description||t.description.value.trim()==="")&&r.report({message:`Type \`${t.name.value}\` should have a non-empty description.`,node:t.name})};return{ObjectTypeDefinition:e,InterfaceTypeDefinition:e,EnumTypeDefinition:e,InputObjectTypeDefinition:e,UnionTypeDefinition:e,ScalarTypeDefinition:e}};var k$={struct:T$,assertions:P$,"no-unused-types":A$,"type-description":O$};var is=()=>({Info(e,{report:t}){e.license||t({message:Lo("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var hl=()=>({Paths(e,{report:t,location:r}){let n=[];for(let o of Object.keys(e)){let i=n.find(s=>RY(s,o));i&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${i}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(o)}}});function RY(e,t){let r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let o=0,i=0,s=!0;for(let a=0;a<r.length;a++){let c=r[a].match(/^{.+?}$/),l=n[a].match(/^{.+?}$/);if(c||l){c&&o++,l&&i++;continue}else r[a]!==n[a]&&(s=!1)}return s&&o===i}function yl(e){return e.startsWith("{")&&e.endsWith("}")}function I$(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(We).map(n=>n.toLocaleLowerCase()),r=e.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...t,...r])}var OY=["get","head","post","put","patch","delete","options","trace"],gl=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:o,location:i}){let s=n.toString();if(!s.startsWith("/")||t?.some(c=>s===c))return;let a=s.split("/");for(let c of a){if(!c||yl(c))continue;let l=p=>e?I$(c).has(p):c.toLocaleLowerCase().includes(p);for(let p of OY)l(p)&&o({message:`path \`${s}\` should not contain http verb ${p}`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}});var bl=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let o of Object.keys(e)){let i=o.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(i);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(i,o)}}});var vl=e=>{let t=new Gr;return{Parameter:{leave(r,n){if(rt(r.example)&&Bn({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),A(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=ml(i);s&&Bn({example:s.value,schema:r.schema,options:{location:n.location.child(["examples",o,s.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}};var xl=e=>{let t=new Gr;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)Bn({example:i,schema:r,options:{location:n.location.child(["examples",o.indexOf(i)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(rt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Bn({example:r.example,schema:r,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"})}}}}};var Sl=()=>({PathItem(e,{report:t,key:r,rawLocation:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-path-trailing-slash"})}});var wl=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});rs({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});rs({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}});var _l=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});rs({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});rs({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}});var Pl=()=>({Operation(e,t){pr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var El=()=>{let e=new Set;return{Operation(t,{report:r,location:n}){t.operationId&&(e.has(t.operationId)&&r({message:"Every operation must have a unique `operationId`.",location:n.child([t.operationId]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-unique"}),e.add(t.operationId))}}};var kY=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,$l=()=>({Operation(e,{report:t,location:r}){e.operationId&&!kY.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-url-safe"})}});var Al=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
112
+ Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:i.PathItem.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),e.add(`${r.in}___${r.name}`)},Operation:{enter(){t=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;t.has(s)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:i.Operation.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(s)}}}}};var Tl=()=>({Operation(e,{report:t,location:r}){e.tags&&e.tags.length>1&&t({message:"Operation `tags` object should have only one tag.",location:r.child(["tags"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-singular-tag"})}});var Rl=()=>({Operation(e,t){pr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var Ol=()=>{let e;return{Root(t){e=new Set((t.tags??[]).map(r=>r.name))},Operation(t,{report:r,location:n}){if(t?.tags)for(let o=0;o<t.tags.length;o++)e.has(t.tags[o])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"});else r({message:"Operation tags should be defined",location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"})}}};var kl=()=>({Parameter(e,{report:t,location:r}){e.description===void 0?t({message:"Parameter object description must be present.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"}):e.description||t({message:"Parameter object description must be non-empty string.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"})}});var Il=()=>({PathItem(e,{report:t,key:r}){r.indexOf("{}")!==-1&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-declaration-must-exist"})}});var IY=["get","head","post","put","patch","delete","options","query","trace"],Cl=e=>{let t=e&&e.order||IY;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:o}){let i=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<i.length-1;s++){let a=t.indexOf(i[s]);t.indexOf(i[s+1])<a&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...o.child(i[s+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}};var ql=()=>({Paths:{PathItem(e,{report:t,key:r}){r.toString().includes("?")&&t({message:"Don't put query string items in the path, they belong in parameters with `in: query`.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-not-include-query"})}}});var CY=/\{([a-zA-Z0-9_.-]+)\}+/g,qY=2,ss=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){C$(e,n)},leave(){NY(e)},Parameter(r,{report:n,location:o,rawLocation:i}){q$({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:N$(e,new Set)}}},C$=(e,t)=>{e.current={path:t,templateParams:jY(t),definedParams:new Set}},NY=e=>{e.current=null},q$=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),j$({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},N$=(e,t,r=0)=>{let n=(i,s,a)=>{i({message:`Maximum callback nesting depth (${a}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:s,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=qY)return{enter:()=>{},leave:(i,{report:s,location:a})=>{n(s,a,r)},Parameter:()=>{},Callback:void 0};let o=()=>{let i=null;return{enter(s,{key:a}){i=e.current,C$(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:l}){q$({parameter:s,pathContext:e,report:a,location:c,rawLocation:l})},get Operation(){return N$(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||DY({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:s,location:a})},Parameter(i,{report:s,location:a,rawLocation:c}){MY(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),j$({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},jY=e=>new Set(Array.from(e.matchAll(CY)).map(t=>t[1])),MY=(e,t)=>{A(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},j$=({paramName:e,templateParams:t,path:r,report:n,location:o,rawLocation:i})=>{if(!t.has(e)){let s=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,a=i===o?void 0:i;n({message:s,location:o.child(["name"]),from:a,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},DY=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:o,location:i})=>{let s=new Set([...t,...r]);for(let a of e)s.has(a)||o({message:`The operation does not define the path parameter \`{${a}}\` expected by path \`${n}\`.`,location:i.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};var M$=Ir(id(),1);var Nl=e=>{let{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:o,key:i,location:s}){let a=i.toString();if(a.startsWith("/")){let c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(let l of c)r&&r.includes(l)||!yl(l)&&M$.default.isSingular(l)&&o({message:`path segment \`${l}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}};var jl=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}});var Ml=()=>{let e,t;return{Schema:{enter(r){if(!r?.required){e=!0;return}t=new Set(r.required),e=!1},SchemaProperties:{skip(){return e},Schema:{enter(r,{key:n,location:o,report:i}){t.has(n)&&r.type==="string"&&(r?.minLength||i({message:"Property minLength is required.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function xn(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var Dl=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[xn(i)]||t[xn(i).toLowerCase()]||[];for(let a of s)(!r?.headers||!Object.keys(r?.headers).some(c=>c.toLowerCase()===a.toLowerCase()))&&n({message:`Response object must contain a "${a}" header.`,location:o.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}};var D$=["string","integer","number","boolean","null"],Ll=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(Ue(e,i)).node;!s||!LY(s)||s.example===void 0&&s.examples===void 0&&t({message:`Scalar property should have "example"${n==="oas3_1"||n==="oas3_2"?' or "examples"':""} defined.`,location:r.child(i).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function LY(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>D$.includes(t)):D$.includes(e.type)}var Ul=e=>{let t=new Map,r=[],n=!0,o;return{Root:{leave(i,{report:s}){for(let[a,c]of t.entries())if(!c.defined)for(let l of c.from)s({message:`There is no \`${a}\` security scheme defined.`,location:l.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(i.security||n))for(let a of r)s({message:"Every operation should have security defined on it or on the root level.",location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(i,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=t.get(a),l=s.child([a]);c?c.from.push(l):t.set(a,{from:[l]})}},PathItem:{enter(i,{key:s}){o=s},Operation(i,{location:s,key:a}){let c=e.exceptions?.some(l=>l.path===o&&(!l.methods||l.methods?.some(p=>p.toLowerCase()===a)));!i?.security&&!c&&(n=!1,r.push(s))}}}};var zl=()=>{let e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:o,type:i}){!e.includes(i.name)&&j(n)&&r({message:"Field $ref is not expected here.",location:o.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}};var L$=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(i=>`\`${i}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(i,{report:s,location:a}){i.type==="boolean"&&!r.test(i.name)&&s({message:`Boolean parameter \`${i.name}\` should have ${o} prefix.`,location:a.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function as({type:e,value:t,ctx:r,allowedValues:n,reference:o}){let{report:i,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t[e])for(let c of t[e])n.includes(c)||i({message:`Mime type "${c}" is not allowed`,location:s.child(t[e].indexOf(c)).key(),reference:o})}function Xn({type:e,value:t,ctx:r,allowedValues:n,reference:o}){let{report:i,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t.content)for(let c of Object.keys(t.content))n.includes(c)||i({message:`Mime type "${c}" is not allowed`,location:s.child("content").child(c).key(),reference:o})}var U$=({allowedValues:e})=>({Root(t,r){as({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){as({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var z$=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[xn(r)]||t[xn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}};var F$=({allowedValues:e})=>({Root(t,r){as({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){as({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var V$={struct:lt,"no-invalid-schema-examples":xl,"no-invalid-parameter-examples":vl,"info-contact":lr,"info-license":is,"info-license-strict":Kn,"tag-description":Qn,"tags-alphabetical":Jn,"paths-kebab-case":jl,"no-enum-type-mismatch":Qr,"boolean-parameter-prefixes":L$,"no-path-trailing-slash":Sl,"operation-2xx-response":wl,"operation-4xx-response":_l,assertions:Tt,"operation-operationId-unique":El,"operation-parameters-unique":Al,"path-parameters-defined":ss,"operation-tag-defined":Ol,"path-declaration-must-exist":Il,"operation-operationId-url-safe":$l,"operation-operationId":Wn,"operation-summary":Rl,"operation-description":Pl,"path-not-include-query":ql,"path-params-defined":ss,"parameter-description":kl,"operation-singular-tag":Tl,"security-defined":Ul,"security-scopes-defined":ns,"no-unresolved-refs":pt,"no-identical-paths":bl,"no-ambiguous-paths":hl,"path-http-verbs-order":Cl,"no-http-verbs-in-paths":gl,"request-mime-type":U$,"response-mime-type":F$,"path-segment-plural":Nl,"response-contains-header":Dl,"response-contains-property":z$,"scalar-property-missing-example":Ll,"required-string-property-missing-min-length":Ml,"spec-strict-refs":zl,"spec-ref-siblings":Yn,"no-required-schema-properties-undefined":Jr,"no-schema-type-mismatch":Xr,"no-duplicated-enum-values":Yr,"no-unsafe-markdown":Zr,"no-duplicated-tag-names":Gn},B$={};var H$=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=j(t.schema)?r.resolve(t.schema).node:t.schema;n&&UY(t,n,e)&&r.report({message:`Parameter \`${t.name}\` should have \`style\` and \`explode \` fields`,location:r.location,reference:"https://redocly.com/docs/cli/rules/oas/array-parameter-serialization"})}}});function UY(e,t,r){return(t.type==="array"||t.items||t.prefixItems)&&(e.style===void 0||e.explode===void 0)&&(!r.in||e.in&&r.in?.includes(e.in))}var K$=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(i=>`\`${i}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(i,{report:s,parentLocations:a},c){i.type==="boolean"&&!r.test(c.Parameter.name)&&s({message:`Boolean parameter \`${c.Parameter.name}\` should have ${o} prefix.`,location:a.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}};var og="Schema",ig="Parameter",sg="Response",ag="RequestBody",zY={[og]:"schemas",[ig]:"parameters",[sg]:"responses",[ag]:"requestBodies"},G$=e=>{let t=new Map,r=[];e.schemas!=="off"&&r.push(og),e.parameters!=="off"&&r.push(ig),e.responses!=="off"&&r.push(sg),e.requestBodies!=="off"&&r.push(ag);let n={ref:{leave(a,{type:c,resolve:l}){let p=c.name;if(r.includes(p)){let u=l(a);if(!u.location)return;s(p,u.location)}}},Root:{leave(a,c){t.forEach((l,p,u)=>{if(l.absolutePointers.size>1){let d=BY(p),f=FY(d.typeName),m=f?e[f]:null;for(let h of l.locations){let y=Array.from(l.absolutePointers).filter(w=>w!==h.absolutePointer.toString()).map(w=>`- ${w}`).join(`
113
+ `),g={message:`Component '${f}/${d.componentName}' is not unique. It is also defined at:
114
+ ${y}`,location:h,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};m&&(g.forceSeverity=m),c.report(g)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(a,{location:c}){s(og,c)}}),e.responses!="off"&&(n.NamedResponses={Response(a,{location:c}){s(sg,c)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(a,{location:c}){s(ig,c)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(a,{location:c}){s(ag,c)}}),n;function o(a){let c=a.split("/").slice(-1)[0];return fa(c)?c.slice(0,c.lastIndexOf(".")):c}function i(a,c,l){let p=VY(a,c),u=t.get(p)??{absolutePointers:new Set,locations:[]},d=l.absolutePointer.toString();u.absolutePointers.has(d)||(u.absolutePointers.add(d),u.locations.push(l)),t.set(p,u)}function s(a,c){let l=o(c.absolutePointer.toString());i(a,l,c)}};function FY(e){return zY[e]??null}function VY(e,t){return`${e}/${t}`}function BY(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var W$=()=>({Root(e,{report:t,location:r}){if(!e.hasOwnProperty("servers")){t({message:"Servers must be present.",location:r.child(["openapi"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"});return}(!Array.isArray(e.servers)||e.servers.length===0)&&t({message:"Servers must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"})}});var Y$=()=>({Example(e,{report:t,location:r}){e.value&&e.externalValue&&t({message:"Example object can have either `value` or `externalValue` fields.",location:r.child(["value"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-example-value-and-externalValue"})}});var HY=new Set(["type","format","enum","const","nullable","properties","required","additionalProperties","discriminator","$ref","$id","$schema","$anchor","$comment","title","description","default","example","examples","deprecated","readOnly","writeOnly","externalDocs","xml"]),eA=()=>({AllOf(e,t){let r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!KY(e[0],t.resolve))&&cg(e,"allOf",t),pg(e,"allOf",t),lg(e,"allOf",t))},AnyOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let n=A(r.discriminator);e.length<2&&!n&&cg(e,"anyOf",t),pg(e,"anyOf",t),lg(e,"anyOf",t),n&&Q$(e,"anyOf",t)},OneOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let{discriminator:n}=r,o=A(n);e.length<2&&!o&&cg(e,"oneOf",t),pg(e,"oneOf",t),lg(e,"oneOf",t),o&&Q$(e,"oneOf",t),Vl(r)&&GY(e,t),WY(e,o?n:void 0,t)}});function cg(e,t,r){let n=e.length===1?" Use the schema directly instead.":"";r.report({message:`\`${t}\` should have at least two schemas.${n}`,location:r.location.key()})}function KY(e,t){return A(Ka(e,t)?.schema.discriminator)}function pg(e,t,r){for(let[n,o]of e.entries())A(o)&&Object.keys(o).length===0&&r.report({message:`Schema in \`${t}\` is empty, so it matches any value.`,location:r.location.child([n])})}function Q$(e,t,r){for(let[n,o]of e.entries())j(o)||A(o)&&"$id"in o||r.report({message:`Schema in \`${t}\` is inline, so the \`discriminator\` cannot select it. Use a \`$ref\` to a named schema.`,location:r.location.child([n])})}function lg(e,t,r){for(let n=1;n<e.length;n++){let o=e.findIndex(i=>Vt(i,e[n]));o<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${o+1}.`,location:r.location.child([n])})}}function GY(e,t){e.some(n=>{let o=Ka(n,t.resolve);return o?Vl(o.schema):!1})&&t.report({message:"The schema and a schema in `oneOf` both accept `null`, so nothing decides which one applies to a null value.",location:t.location.key()})}function WY(e,t,r){let{resolve:n,report:o,location:i}=r,s=r.specVersion!=="oas3_2",a=e.map(c=>Ka(c,n));for(let c=0;c<a.length-1;c++){let l=a[c];if(l)for(let p=c+1;p<a.length;p++){let u=a[p];if(!u||Vt(e[c],e[p]))continue;let d=YY(l,u,n,t,s);d&&o({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${J$(e[c],c)} and ${J$(e[p],p)}. ${d}`,location:i.key()})}}}function J$(e,t){return j(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function YY(e,t,r,n,o){let i=e.schema,s=t.schema;if(Fl(i)||Fl(s)||tA(i,s))return null;if(Vl(i)&&Vl(s))return"Both schemas accept `null`.";let a=Wa(i),c=Wa(s);if(a&&c){let p=a.filter(u=>c.some(d=>Vt(u,d)));return`Both schemas allow the values ${JSON.stringify(p)}.`}if(n)return o?QY(i,s,n):null;let l=JY(e,t,r);if(l)return l;if(!i.properties&&!s.properties){let p=nA(i,s);if(p?.length)return`Both schemas accept ${p.map(u=>`\`${u}\``).join(", ")}.`}return null}function QY(e,t,r){let{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:rt(Ue(e.properties??{},n))&&rt(Ue(t.properties??{},n))?`Add \`${n}\` to \`required\` in every schema; the \`discriminator\` cannot read a property a value may omit.`:`Declare \`${n}\` in every schema and add it to \`required\`; the \`discriminator\` cannot read a property a value may omit.`}function JY(e,t,r){let n=XY(e,t);if(!n||X$(e.schema,n.leftProperties,n.rightRequired)||X$(t.schema,n.rightProperties,n.leftRequired)||ZY(n)||n.sharedNames.length===0)return null;let o=eQ(n,r);if(!o)return null;let{optionalDistinguishingNames:i,ambiguousNames:s}=o;if(i.length>0){let a=s.length>0?` Other shared properties: ${ug(s)}.`:"";return`Add ${ug(i)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${a}`}return s.length>0?`Both schemas define ${ug(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function XY(e,t){let r=e.schema.properties,n=t.schema.properties;return!r||!n?null:{leftSource:e.source,rightSource:t.source,leftProperties:r,rightProperties:n,leftRequired:new Set(e.schema.required??[]),rightRequired:new Set(t.schema.required??[]),sharedNames:Object.keys(r).filter(o=>Ue(n,o))}}function ZY({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){let o=[...r].some(s=>!Ue(t,s)&&!n.has(s)),i=[...n].some(s=>!Ue(e,s)&&!r.has(s));return o&&i}function eQ({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:o,rightRequired:i,sharedNames:s},a){let c=[],l=[];for(let p of s){let u=o.has(p)&&i.has(p),d=Ka(Ue(r,p),a,e),f=Ka(Ue(n,p),a,t);if(!(!d||!f)&&!(Fl(d.schema)||Fl(f.schema))){if(tA(d.schema,f.schema)){if(u)return null;c.push(p);continue}l.push(p)}}return{optionalDistinguishingNames:c,ambiguousNames:l}}function X$(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!Ue(t,n))}function tA(e,t){let r=Wa(e),n=Wa(t);return r&&n?!r.some(o=>n.some(i=>Vt(o,i))):nA(e,t)?.length===0}function Ka(e,t,r){if(j(e)){let{node:n,location:o}=t(e,r);return A(n)?{schema:n,source:o?.source.absoluteRef}:void 0}return A(e)?{schema:e,source:r}:void 0}function Fl(e){return Object.keys(e).some(t=>!HY.has(t)&&!t.startsWith("x-"))}function rA(e){return"nullable"in e&&e.nullable===!0}function Ga(e){let t=e.type;if(t===void 0)return;let r=new Set(Array.isArray(t)?t:[t]);return rA(e)&&r.add("null"),r}function nA(e,t){let r=Ga(e),n=Ga(t);if(!r||!n)return;let o=[...r].filter(i=>n.has(i));return o.length===0&&tQ(e,t)?["integer"]:o}function tQ(e,t){let r=Ga(e),n=Ga(t);return r?.has("integer")&&n?.has("number")?Z$(t):r?.has("number")&&n?.has("integer")?Z$(e):!1}function Z$(e){let t=Wa(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function Vl(e){return rA(e)||Ga(e)?.has("null")===!0}function Wa(e){if(e.enum)return e.enum;let t="const"in e?e.const:void 0;return rt(t)?[t]:void 0}function ug(e){return e.map(t=>`\`${t}\``).join(", ")}var oA=e=>{let t=new Gr,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(rt(i.example))l(i.example,a.child("example"));else if(A(i.examples))for(let p of Object.keys(i.examples))l(i.examples[p],a.child(["examples",p]),!0);function l(p,u,d){if(j(p)){let m=c(p);if(!m.location)return;u=m.location,p=m.node}let f=p;if(d){let m=ml(p);if(!m)return;f=m.value,u=u.child(m.field)}Bn({example:f,schema:i.schema,options:{location:u,ctx:s,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:o},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-media-type-examples"})}};return{Parameter:{MediaType:{skip:r,leave:n({apiContext:"request"})}},RequestBody:{MediaType:{skip:r,leave:n({apiContext:"request"})}},Response:{MediaType:{skip:r,leave:n({apiContext:"response"})}}}};var iA=()=>({Server(e,{report:t,location:r}){let n=/^(.*[\/.])?(example\.com|localhost)([\/:?].*|$)/;e.url&&n.test(e.url)&&t({message:"Server `url` should not point to example.com or localhost.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-example-com"})}});var sA=()=>({Server(e,{report:t,location:r}){e.url&&e.url.endsWith("/")&&e.url!=="/"&&t({message:"Server `url` should not have a trailing slash.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-trailing-slash"})}});var cA=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;let n=[];if(Array.isArray(e.servers))for(let o of e.servers){let i=aA(o);i&&n.push(...i)}else{let o=aA(e.servers);if(!o)return;n.push(...o)}for(let o of n)o==="empty"&&t({message:"Server variable with `enum` must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"}),o==="invalidDefaultValue"&&t({message:"Server variable define `enum` and `default`. `enum` must include default value",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"})}});function aA(e){if(e.variables&&Object.keys(e.variables).length===0)return;let t=[];for(let r in e.variables){let n=e.variables[r];if(!n.enum||(Array.isArray(n.enum)&&n.enum?.length===0&&t.push("empty"),!n.default))continue;let o=e.variables[r].default;n.enum&&!n.enum.includes(o)&&t.push("invalidDefaultValue")}if(t.length)return t}var pA=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;let n=e.url.match(/{[^}]+}/g)?.map(i=>i.slice(1,i.length-1))||[],o=e?.variables&&Object.keys(e.variables)||[];for(let i of n)o.includes(i)||t({message:`The \`${i}\` variable is not defined in the \`variables\` objects.`,location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"});for(let i of o)n.includes(i)||t({message:`The \`${i}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",i]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}});var lA=()=>{let e=new Map,t=new Map,r=new Set;function n(o,i,s=!1){e.set(o.absolutePointer,{used:e.get(o.absolutePointer)?.used||!1,referencesDiscriminator:s,location:o,name:i})}return{ref(o,{type:i,resolve:s,key:a,location:c}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(i.name)){let l=s(o);if(!l.location)return;e.set(l.location.absolutePointer,{used:!0,name:a.toString(),location:c})}},Root:{leave(o,{report:i}){e.forEach(s=>{!s.used&&!s.referencesDiscriminator&&i({message:`Component: "${s.name}" is never used.`,location:s.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((s,a)=>{r.has(a)||i({message:`Security scheme: "${a}" is never used.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(o,{location:i,key:s,resolve:a}){let c=o.allOf?.some(l=>j(l)&&a(l)?.node?.discriminator);n(i,s.toString(),c)}},NamedParameters:{Parameter(o,{location:i,key:s}){n(i,s.toString())}},NamedResponses:{Response(o,{location:i,key:s}){n(i,s.toString())}},NamedExamples:{Example(o,{location:i,key:s}){n(i,s.toString())}},NamedRequestBodies:{RequestBody(o,{location:i,key:s}){n(i,s.toString())}},NamedHeaders:{Header(o,{location:i,key:s}){n(i,s.toString())}},NamedMediaTypes:{MediaTypesMap(o,{location:i,key:s}){n(i,s.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{rawLocation:i,key:s}){t.set(s.toString(),i)}},SecurityRequirement(o){for(let i of Object.keys(o))r.add(i)}}};var uA=()=>({Schema:{leave(e,t){"nullable"in e&&!("type"in e)&&t.report({message:"The `type` field must be defined when the `nullable` field is used.",location:t.location.child(["nullable"]),reference:"https://redocly.com/docs/cli/rules/oas/nullable-type-sibling"})}}});var dg="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",dA=()=>({Response:{skip(e,t){return!/4[Xx0-9]{2}/.test(`${t}`)},enter(e,{report:t,location:r}){(!e.content||!e.content["application/problem+json"])&&t({message:"Response `4xx` must have content-type `application/problem+json`.",location:r.key(),reference:dg})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(pr({fieldName:"schema",value:e,ctx:t,reference:dg}),!e.schema)return;let{schema:r,location:n}=Do(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(let o of["type","title"])bn(e.schema,o,t)||t.report({message:Lo("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:dg})}}}});var fA=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Xn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}},Callback:{RequestBody(){},Response:{leave(t,r){Xn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Xn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var mA=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},MediaType:{Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[xn(r)]||t[xn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}};var hA=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Xn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}},Callback:{Response(){},RequestBody:{leave(t,r){Xn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Xn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var yA=()=>{let e=`^[${Tc}]+$`;function t(r,n,o,i){new RegExp(e).test(r)||n({message:`The map key in ${i} "${r}" does not match the regular expression "${e}"`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-components-invalid-map-name"})}return{NamedSchemas:{Schema(r,{key:n,report:o,location:i}){t(n,o,i,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:o,location:i}){t(n,o,i,"parameters")}},NamedResponses:{Response(r,{key:n,report:o,location:i}){t(n,o,i,"responses")}},NamedExamples:{Example(r,{key:n,report:o,location:i}){t(n,o,i,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:o,location:i}){t(n,o,i,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:o,location:i}){t(n,o,i,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:o,location:i}){t(n,o,i,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:o,location:i}){t(n,o,i,"links")}},NamedCallbacks:{Callback(r,{key:n,report:o,location:i}){t(n,o,i,"callbacks")}}}};var gA=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){let n=t.discriminator?.propertyName;if(!n)return;let o=t.discriminator?.defaultMapping;if(o===void 0){let i=new Set,s=(a,c)=>{let l=Do(a,r,c);return!!(!l.schema||i.has(l.schema)||(i.add(l.schema),l.schema.required?.includes(n)||l.schema.allOf?.some(p=>s(p,l.location))||l.schema.oneOf?.every(p=>s(p,l.location))||l.schema.anyOf?.every(p=>s(p,l.location))))};s(t)||r.report({message:`Discriminator with optional property '${n}' must include a defaultMapping field.`,location:r.location.child("discriminator"),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}else r.resolve({$ref:o}).node===void 0&&!e.includes(o)&&r.report({message:`defaultMapping value '${o}' does not point to an existing schema component.`,location:r.location.child(["discriminator","defaultMapping"]),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}}}};var bA=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:o,location:i}){e!==void 0&&t!==void 0&&o({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:i,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),n!==void 0&&t!==void 0&&o({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:i,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&r!==void 0&&o({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:i.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&n!==void 0&&o({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:i.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}});var vA=()=>({MediaType:{leave(e,t){("prefixEncoding"in e&&"encoding"in e||"itemEncoding"in e&&"encoding"in e)&&t.report({message:"The 'encoding' field cannot be used together with 'prefixEncoding' or 'itemEncoding'.",location:t.location.child("encoding").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-encoding-combinations"})}}});var xA=()=>{let e;return{Root:{enter(t){e=t.tags??[]}},Tag:{leave(t,{report:r,location:n}){if(t?.parent===void 0)return;if(!e.find(s=>s.name===t.parent)){r({message:`Tag parent '${t.parent}' is not defined in the API description.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}let o=new Set(t.name),i=t.parent;for(;i!==void 0;){if(o.has(i)){r({message:`Circular reference detected in tag parent hierarchy for tag '${t.name}'.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}o.add(i),i=e.find(s=>s.name===i)?.parent}}}}};function SA(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function wA(e,t){let r=t.location.child("parameters");e>1&&t.report({message:"Parameters with `in: querystring` should be defined only once per path/operation parameter set.",location:r,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"})}function _A(e,t,r,n){if(e.in==="query"){r.querystringLocation&&n.report({message:"Parameters with `in: query` cannot be used together with `in: querystring` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.queryLocation??=t;return}e.in==="querystring"&&(r.queryLocation&&n.report({message:"Parameters with `in: querystring` cannot be used together with `in: query` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.querystringLocation??=t)}var PA=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,wA(SA(n.parameters||[]),o)},Parameter(n,o){_A(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+SA(n.parameters||[]);wA(i,o)},Parameter(n,o){_A(n,o.location,t,o)}}}}};var EA=()=>({ref:{leave(e,{report:t,location:r,type:n,specVersion:o}){let i=o!=="oas3_0";if(!(i&&n.name==="Schema"||n.name==="PathItem"))for(let s of Object.keys(e))s!=="$ref"&&(i&&(s==="summary"||s==="description")||t({message:`Property \`${s}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(s).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"}))}}});var $A={struct:lt,"info-contact":lr,"info-license":is,"info-license-strict":Kn,"operation-2xx-response":wl,"operation-4xx-response":_l,"operation-4xx-problem-details-rfc7807":dA,assertions:Tt,"operation-operationId-unique":El,"operation-parameters-unique":Al,"operation-tag-defined":Ol,"no-example-value-and-externalValue":Y$,"no-mixed-number-range-constraints":Hn,"no-enum-type-mismatch":Qr,"no-path-trailing-slash":Sl,"no-empty-servers":W$,"path-declaration-must-exist":Il,"operation-operationId-url-safe":$l,"operation-operationId":Wn,"operation-summary":Rl,"tags-alphabetical":Jn,"no-server-example.com":iA,"no-server-trailing-slash":sA,"tag-description":Qn,"operation-description":Pl,"no-unused-components":lA,"path-not-include-query":ql,"path-parameters-defined":ss,"path-params-defined":ss,"parameter-description":kl,"operation-singular-tag":Tl,"security-defined":Ul,"security-scopes-defined":ns,"no-unresolved-refs":pt,"paths-kebab-case":jl,"boolean-parameter-prefixes":K$,"path-http-verbs-order":Cl,"no-illogical-composition-keywords":eA,"no-invalid-media-type-examples":oA,"no-identical-paths":bl,"no-ambiguous-paths":hl,"no-undefined-server-variable":pA,"no-server-variables-empty-enum":cA,"no-http-verbs-in-paths":gl,"request-mime-type":fA,"response-mime-type":hA,"path-segment-plural":Nl,"no-invalid-schema-examples":xl,"no-invalid-parameter-examples":vl,"response-contains-header":Dl,"response-contains-property":mA,"scalar-property-missing-example":Ll,"spec-components-invalid-map-name":yA,"required-string-property-missing-min-length":Ml,"spec-strict-refs":zl,"component-name-unique":G$,"array-parameter-serialization":H$,"no-required-schema-properties-undefined":Jr,"no-schema-type-mismatch":Xr,"no-duplicated-enum-values":Yr,"no-unsafe-markdown":Zr,"no-duplicated-tag-names":Gn,"nullable-type-sibling":uA,"spec-no-invalid-tag-parents":xA,"spec-no-invalid-encoding-combinations":vA,"spec-discriminator-defaultMapping":gA,"spec-example-values":bA,"spec-querystring-parameters":PA,"spec-ref-siblings":EA},AA={};var TA=()=>{let e=new Map;function t(r,n){e.set(r.absolutePointer,{used:e.get(r.absolutePointer)?.used||!1,location:r,name:n})}return{ref(r,{type:n,resolve:o,key:i,location:s}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){let a=o(r);if(!a.location)return;e.set(a.location.absolutePointer,{used:!0,name:i.toString(),location:s})}},Root:{leave(r,{report:n}){e.forEach(o=>{o.used||n({message:`Component: "${o.name}" is never used.`,location:o.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(r,{location:n,key:o}){t(n,o.toString())}},NamedContentDescriptors:{ContentDescriptor(r,{location:n,key:o}){t(n,o.toString())}},NamedExamples:{Example(r,{location:n,key:o}){t(n,o.toString())}},NamedLinks:{Link(r,{location:n,key:o}){t(n,o.toString())}},NamedErrors:{ErrorObject(r,{location:n,key:o}){t(n,o.toString())}},NamedExamplePairingObjects:{ExamplePairing(r,{location:n,key:o}){t(n,o.toString())}},NamedTags:{Tag(r,{location:n,key:o}){t(n,o.toString())}}}};var RA=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=new Set;e.params.forEach((i,s)=>{let a=r(i);if(!a.node)return;let c=a.node,l=c.name;l&&(o.has(l)&&t({message:`Parameter names must be unique. Duplicate parameter name '${c.name}' found.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),o.add(l))})}}});var OA=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=!1;e.params.forEach((i,s)=>{let a=r(i);if(!a.node)return;let c=a.node;if(!c.name)return;c.required===!0?o&&t({message:`Required parameter '${c.name}' must be positioned before optional parameters.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):o=!0})}}});var kA={struct:lt,"no-unresolved-refs":pt,assertions:Tt,"info-license":is,"no-unused-components":TA,"info-contact":lr,"spec-no-duplicated-method-params":RA,"spec-no-required-params-after-optional":OA,"spec-ref-siblings":Yn},IA={};var CA={"info-contact":lr,struct:lt,"no-unresolved-refs":pt,assertions:Tt},qA={};var rQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_1Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_2Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-querystring-parameters":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"error"},openrpc1Rules:{"info-contact":"error","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},NA=rQ;var nQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","nullable-type-sibling":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-discriminator-defaultMapping":"off","spec-example-values":"off","spec-no-invalid-encoding-combinations":"warn","spec-no-invalid-tag-parents":"warn","spec-querystring-parameters":"error","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},graphqlRules:{"no-unused-types":"off","type-description":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"off"}},jA=nQ;var oQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":{severity:"error",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","nullable-type-sibling":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},MA=oQ;var iQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"warn","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","nullable-type-sibling":"error","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"warn","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-license":"warn","no-unused-components":"warn","info-contact":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"warn"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},DA=iQ;var sQ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":{severity:"off",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","nullable-type-sibling":"error","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},LA=sQ;var aQ={recommended:DA,"recommended-strict":MA,minimal:jA,all:NA,spec:LA},fg={id:"",rules:{oas3:$A,oas2:V$,async2:f$,async3:x$,arazzo1:s$,overlay1:CA,openrpc1:kA,graphql:k$},preprocessors:{oas3:AA,oas2:B$,async2:m$,async3:S$,arazzo1:a$,overlay1:qA,openrpc1:IA},decorators:{oas3:$E,oas2:SE,async2:bE,async3:vE,arazzo1:gE,overlay1:TE,openrpc1:AE},configs:aQ};import*as Ya from"node:fs";import*as oT from"node:path";import*as wg from"node:fs";import yQ from"node:module";import*as Rt from"node:path";import*as rT from"node:url";var cQ={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Kt(e,t){let r={};r.any={enter:[],leave:[]};for(let s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(let{ruleId:s,severity:a,message:c,visitor:l}of e)i({ruleId:s,severity:a,message:c},l,null);for(let s of Object.keys(r))r[s].enter.sort((a,c)=>c.depth-a.depth),r[s].leave.sort((a,c)=>a.depth-c.depth);return r;function n(s,a,c,l,p=[]){if(p.includes(a))return;p=[...p,a];let u=new Set;for(let f of Object.values(a.properties)){if(f===c){d(s,p);continue}A(f)&&f.name!==void 0&&u.add(f)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?d(s,p):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?d(s,p):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(mr);for(let f of Array.from(u.values()))n(s,f,c,l,p);function d(f,m){for(let h of m.slice(1))r[h.name]=r[h.name]||{enter:[],leave:[]},r[h.name].enter.push({...f,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:l}})}}function o(s,a){if(Array.isArray(a)){let c=a.find(l=>s[l])||void 0;return c&&s[c]}return s[a]}function i(s,a,c,l=0){let p=Object.keys(t);if(l===0)p.push("any"),p.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(let u of p){let d=a[u]||o(a,cQ[u]),f=r[u];if(!d)continue;let m,h,y,g=A(d);if(u==="ref"&&g&&d.skip)throw new Error("ref() visitor does not support skip");typeof d=="function"?m=d:g&&(m=d.enter,h=d.leave,y=d.skip);let w=(m?1:0)+(h?1:0)+(y?1:0),b=g&&Object.keys(d).length>w,S={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(b&&i(s,d,S,l+1),c&&n(s,c.type,t[u],c),m||g){if(m&&typeof m!="function")throw new Error("DEV: should be function");f.enter.push({...s,visit:m||(()=>{}),skip:y,depth:l,context:S})}if(h){if(typeof h!="function")throw new Error("DEV: should be function");f.leave.push({...s,visit:h,depth:l,context:S})}}}}import pQ from"node:path";var de=(e,t)=>{if(t)for(let r of Object.keys(t))A(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Pe(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&(A(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function UA(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Me(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Bl(e){let t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(let r of e){if(A(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
115
+ ${JSON.stringify(r,null,2)}`);de(t.rules,r.rules),de(t.oas2Rules,r.oas2Rules),Pe(t.oas2Rules,r.rules),de(t.oas3_0Rules,r.oas3_0Rules),Pe(t.oas3_0Rules,r.rules),de(t.oas3_1Rules,r.oas3_1Rules),Pe(t.oas3_1Rules,r.rules),de(t.oas3_2Rules,r.oas3_2Rules),Pe(t.oas3_2Rules,r.rules),de(t.async2Rules,r.async2Rules),Pe(t.async2Rules,r.rules),de(t.async3Rules,r.async3Rules),Pe(t.async3Rules,r.rules),de(t.arazzo1Rules,r.arazzo1Rules),Pe(t.arazzo1Rules,r.rules),de(t.arazzo1_1Rules,r.arazzo1_1Rules),Pe(t.arazzo1_1Rules,r.rules),de(t.overlay1Rules,r.overlay1Rules),Pe(t.overlay1Rules,r.rules),de(t.openrpc1Rules,r.openrpc1Rules),Pe(t.openrpc1Rules,r.rules),de(t.graphqlRules,r.graphqlRules),Pe(t.graphqlRules,r.rules),de(t.preprocessors,r.preprocessors),de(t.oas2Preprocessors,r.oas2Preprocessors),Pe(t.oas2Preprocessors,r.preprocessors),de(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Pe(t.oas3_0Preprocessors,r.preprocessors),de(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Pe(t.oas3_1Preprocessors,r.preprocessors),de(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Pe(t.oas3_2Preprocessors,r.preprocessors),de(t.async2Preprocessors,r.async2Preprocessors),Pe(t.async2Preprocessors,r.preprocessors),de(t.async3Preprocessors,r.async3Preprocessors),Pe(t.async3Preprocessors,r.preprocessors),de(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Pe(t.arazzo1Preprocessors,r.preprocessors),de(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Pe(t.arazzo1_1Preprocessors,r.preprocessors),de(t.overlay1Preprocessors,r.overlay1Preprocessors),Pe(t.overlay1Preprocessors,r.preprocessors),de(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Pe(t.openrpc1Preprocessors,r.preprocessors),de(t.decorators,r.decorators),de(t.oas2Decorators,r.oas2Decorators),Pe(t.oas2Decorators,r.decorators),de(t.oas3_0Decorators,r.oas3_0Decorators),Pe(t.oas3_0Decorators,r.decorators),de(t.oas3_1Decorators,r.oas3_1Decorators),Pe(t.oas3_1Decorators,r.decorators),de(t.oas3_2Decorators,r.oas3_2Decorators),Pe(t.oas3_2Decorators,r.decorators),de(t.async2Decorators,r.async2Decorators),Pe(t.async2Decorators,r.decorators),de(t.async3Decorators,r.async3Decorators),Pe(t.async3Decorators,r.decorators),de(t.arazzo1Decorators,r.arazzo1Decorators),Pe(t.arazzo1Decorators,r.decorators),de(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Pe(t.arazzo1_1Decorators,r.decorators),de(t.overlay1Decorators,r.overlay1Decorators),Pe(t.overlay1Decorators,r.decorators),de(t.openrpc1Decorators,r.openrpc1Decorators),Pe(t.openrpc1Decorators,r.decorators)}return t}var mg=class extends Error{};function zA(e){return new Map(JSON.parse(JSON.stringify([...e])))}function hg(e){return A(e)&&"id"in e}function FA(e){return typeof e=="function"}function yg({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=(e.extends||[]).filter(We).map(o=>{if(!oe(o)&&!pQ.extname(o))return VA(o,r);let i=t.resolve({$ref:o});return i.location&&i.node!==void 0?i.node:null}).filter(We);return Bl([...n.map(o=>yg({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function Hl(e,t){if(A(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>Gl(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var BA=Kt([{severity:"error",ruleId:mp,visitor:{ref:{},ConfigGovernance:{leave(e,t){Hl(e,t)}},ConfigApisProperties:{leave(e,t){Hl(e,t)}},[nt.ScorecardClassicLevel]:{leave(e,t){Hl(e,t)}},ConfigRoot:{leave(e,t){Hl(e,t)}}}}],qn);function Kl(e,t){if(A(e)&&e.extends){let{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;let o=yg({node:e,ctx:t,plugins:r});Object.assign(e,o),delete e.extends}}var HA=Kt([{severity:"error",ruleId:fp,visitor:{ref:{leave(e,t,r){ys(e,r,t)}},ConfigGovernance:{leave(e,t){Kl(e,t)}},ConfigApisProperties:{leave(e,t){Kl(e,t)}},[nt.ScorecardClassicLevel]:{leave(e,t){Kl(e,t)}},ConfigRoot:{leave(e,t){Kl(e,t)}}}}],qn);function gg(e,t){return{prev:e,value:t}}function bg(e){return e?.prev??null}function lQ(e){let t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function uQ(e){let t={};for(;e.parent;)e.parent.activatedOn?.value.location&&(t[e.parent.type.name]=e.parent.activatedOn?.value.location),e=e.parent;return t}function Gt(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:o,ctx:i}=e,s={},a=new Set,c=(y,g)=>`${y.name}::${g.absolutePointer}`,l=new Set,p={},u=n.any.enter,d=n.any.leave,f={},m={};for(let y of Object.keys(n))y==="any"||y==="ref"||(f[y]=u.concat(n[y]?.enter||[]),m[y]=(n[y]?.leave||[]).concat(d));h(t.parsed,r,new ft(t.source,"#/"),void 0,"");function h(y,g,w,b,S){let x=(W,De=T.source.absoluteRef)=>{if(!j(W))return{location:w,node:W};let $e=un(De,W.$ref),fe=o.get($e);if(!fe)return{location:void 0,node:void 0};let{resolved:Ft,node:Je,document:Ge,nodePointer:V,error:Yt,chain:M}=fe;return{location:Ft?new ft(Ge.source,V):Yt instanceof Ur?new ft(Yt.source,""):void 0,node:Je,error:Yt,chain:M}},P=w,T=w,E=j(y),{node:$,location:_,error:G,chain:F}=x(y),pe=new Set,R=Yo(y)&&a.has(c(g,w));if(Yo(y)&&a.add(c(g,w)),E&&!R){let W=n.ref.enter;for(let{visit:De,ruleId:$e,severity:fe,message:Ft,context:Je}of W)pe.add(Je),De(y,{report:V=>dt($e,fe,Ft,V),resolve:x,rawNode:y,rawLocation:P,location:w,type:g,parent:b,key:S,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Se($e)},{node:$,location:_,error:G,chain:F}),_?.source.absoluteRef&&i.refTypes&&i.refTypes.set(_?.source.absoluteRef,g)}if($!==void 0&&_&&g.name!=="scalar"){let W=(M,k,Z,I)=>{let N=Ue(g.properties,M),me=g.extensionsPrefix!==void 0&&M.startsWith(g.extensionsPrefix);N===void 0&&!me&&(N=g.additionalProperties),typeof N=="function"&&(N=N(k,M)),me&&!Qt(N)&&(N=mr),!Qt(N)&&N?.directResolveAs&&(N=N.directResolveAs,k={$ref:k}),N&&N.name===void 0&&N.resolvable!==!1&&(N={name:"scalar",properties:{}}),!(!Qt(N)||N.name==="scalar"&&!j(k))&&h(k,N,Z.child([M]),I,M)};T=_;let De=A($)||Array.isArray($)?$:w.absolutePointer,$e=s[g.name]?.has?.(De),fe=!1,Ft=f[g.name]||u.concat(n[g.name]?.enter||[]),Je=[],Ge=`${T.absolutePointer}${T.pointer}`;for(let{context:M,visit:k,skip:Z,ruleId:I,severity:N,message:me}of Ft){if(l.has(Ge))break;if(M.isSkippedLevel)M.parent.activatedOn&&!M.parent.activatedOn.value.nextLevelTypeActivated&&!M.seen.has(y)&&(M.seen.add(y),fe=!0,Je.push(M));else if(M.parent&&M.parent.activatedOn&&M.parent.activatedOn.value.node===p[M.parent.type.name]&&M.activatedOn?.value.withParentNode!==M.parent.activatedOn.value.node&&M.parent.activatedOn.value.nextLevelTypeActivated?.value!==g||!M.parent&&!$e){Je.push(M);let Le={node:$,location:_,nextLevelTypeActivated:null,withParentNode:M.parent?.activatedOn?.value.node,skipped:(M.parent?.activatedOn?.value.skipped||Z?.($,S,{location:w,rawLocation:P,resolve:x,rawNode:y}))??!1};M.activatedOn=gg(M.activatedOn,Le);let we=M.parent;for(;we;)we.activatedOn.value.nextLevelTypeActivated=gg(we.activatedOn.value.nextLevelTypeActivated,g),we=we.parent;Le.skipped||(fe=!0,pe.add(M),O(k,$,y,M,I,N,me))}}let V=p[g.name];if(p[g.name]=$,fe||!$e){if(s[g.name]=s[g.name]||new Set,s[g.name].add(De),Array.isArray($)){let M=g.items;if(M!==void 0){let k=typeof M=="function";for(let Z=0;Z<$.length;Z++){let I=_.child([Z]),N=k?M($[Z],I.absolutePointer):M,me=$[Z];N?.directResolveAs&&(N=N.directResolveAs,me={$ref:me}),Qt(N)&&h(me,N,I,$,Z)}}}else if(A($)){let M=Object.keys(g.properties);g.additionalProperties?M.push(...Object.keys($).filter(k=>!M.includes(k))):g.extensionsPrefix&&M.push(...Object.keys($).filter(k=>k.startsWith(g.extensionsPrefix)&&!M.includes(k)));for(let k of M){let Z=$[k];Z!==void 0&&W(k,Z,_,$)}}}if(E&&F?.length){let M=F[0];a.has(c(g,M.location))||h(M.node,g,M.location,void 0,S)}if(Yo(y)&&!R)for(let M of Object.keys(y))M!=="$ref"&&y[M]!==$?.[M]&&W(M,y[M],w,y);p[g.name]=V;let Yt=m[g.name]||(n[g.name]?.leave||[]).concat(d);for(let M of Je.reverse())if(M.isSkippedLevel)M.seen.delete($);else if(M.activatedOn=bg(M.activatedOn),M.parent){let k=M.parent;for(;k;)k.activatedOn.value.nextLevelTypeActivated=bg(k.activatedOn.value.nextLevelTypeActivated),k=k.parent}for(let{context:M,visit:k,ruleId:Z,severity:I,message:N}of Yt)!M.isSkippedLevel&&pe.has(M)&&O(k,$,y,M,Z,I,N)}if(T=w,E&&!R){let W=n.ref.leave;for(let{visit:De,ruleId:$e,severity:fe,context:Ft,message:Je}of W)pe.has(Ft)&&De(y,{report:V=>dt($e,fe,Je,V),resolve:x,rawNode:y,rawLocation:P,location:w,type:g,parent:b,key:S,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Se($e)},{node:$,location:_,error:G,chain:F})}function O(W,De,$e,fe,Ft,Je,Ge){W(De,{report:Yt=>dt(Ft,Je,Ge,Yt),resolve:x,rawNode:$e,location:T,rawLocation:P,type:g,parent:b,key:S,parentLocations:uQ(fe),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{l.add(`${T.absolutePointer}${T.pointer}`)},getVisitorData:()=>Se(Ft)},lQ(fe),fe)}function dt(W,De,$e,fe){let Je=(fe.location?Array.isArray(fe.location)?fe.location:[fe.location]:[{...T,reportOnKey:!1}]).map(V=>({...T,reportOnKey:!1,...V})),Ge=fe.forceSeverity||De;Ge!=="off"&&i.problems.push({ruleId:fe.ruleId||W,severity:Ge,...fe,message:$e?$e.replace("{{message}}",fe.message):fe.message,suggest:fe.suggest||[],location:Je})}function Se(W){return i.visitorsData[W]=i.visitorsData[W]||{},i.visitorsData[W]}}}function KA(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function vg(e,t){switch(t){case"oas3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";case"MediaTypesMap":return"mediaTypes";default:return null}case"oas2":switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(e){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null;case"openrpc1":switch(e){case"ContentDescriptor":return"contentDescriptors";case"Schema":return"schemas";case"Example":return"examples";case"Link":return"links";case"ErrorObject":return"errors";case"ExamplePairing":return"examplePairingObjects";case"Tag":return"tags";default:return null}default:return null}}function GA({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,l=b=>b.chain?.[0]??{node:b.node,location:b.location},p=new Map,u=vg("Schema",e),d={ref:{leave(b,S,x){if(!x.location||x.node===void 0){zo(x,S.report,S.location);return}let P=l(x);if(P.location.source===r.source&&P.location.source===S.location.source&&S.type.name!=="scalar"&&!t){_n(b.$ref).uri!==null&&b.$ref!==P.location.pointer&&(b.$ref=P.location.pointer);return}if(o&&oe(b.$ref))return;let T=vg(S.type.name,e);T?t?(m(T,P,S),ys(b,P,S)):(b.$ref=m(T,P,S),f(b,x,S)):ys(b,P,S)}},Example:{leave(b,S){if(ec(b)&&b.value===void 0){let x=S.resolve({$ref:b.externalValue});if(!x.location||x.node===void 0){zo(x,S.report,S.location);return}if(o&&oe(b.externalValue))return;b.value=S.resolve({$ref:b.externalValue}).node,delete b.externalValue}}},Root:{enter(b,S){c=S.location,e==="oas3"?a=b.components=b.components||{}:e==="oas2"?a=b:e==="async2"?a=b.components=b.components||{}:e==="async3"?a=b.components=b.components||{}:e==="arazzo1"?a=b.components=b.components||{}:e==="openrpc1"&&(a=b.components=b.components||{})}}};e==="oas3"&&(d.Discriminator={leave(b,S){if(typeof b.defaultMapping!="string"||!qr(b.defaultMapping))return;let x=S.resolve({$ref:b.defaultMapping});if(!x.location||x.node===void 0){zo(x,S.report,S.location.child("defaultMapping"));return}b.defaultMapping=m(u,l(x),S)},DiscriminatorMapping:{leave(b,S){for(let x of Object.keys(b)){let P=b[x];if(!qr(P))continue;let T=S.resolve({$ref:P});if(!T.location||T.node===void 0){zo(T,S.report,S.location.child(x));return}b[x]=m(u,l(T),S)}}}});function f(b,S,x){let P={resolved:!0,isRemote:!1,node:S.node,chain:S.chain,document:r,nodePointer:b.$ref};n.set(un(x.location.source.absoluteRef,b.$ref),P),n.set(un(r.source.absoluteRef,b.$ref),P)}function m(b,S,x){a[b]=a[b]||{};let P=w(S,b,x);return a[b][P]=S.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${b}/${P}`:`#/${b}/${P}`}function h(b,S,x){if(j(b)){let P=x.resolve(b,c.absolutePointer);if((P.location&&l(P).location)?.absolutePointer===S.location.absolutePointer)return!0}return Vt(b,S.node)}function y(b,S,x){let{node:P}=b,T=A(P)&&je(P.title)?P.title.trim():"",E=KA(T).replace(new RegExp(`[^${Tc}]`,"g"),"-"),$=b.location.child("title");return T===""?{key:E,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:b.location,forceSeverity:"error"}}:S[E]&&!h(S[E],b,x)?{key:E,problem:{message:`Title "${T}" maps to component name \`${E}\`, already used by another schema. Rename one of the titles.`,location:$,from:p.get(E),forceSeverity:i}}:{key:E}}function g(b,S,x){let P=eb(b.location.pointer)||tb(b.location.source.absoluteRef),T=P;for(let E=2;S[T]&&!h(S[T],b,x);E++)T=`${P}-${E}`;return{name:T,prevName:P}}function w(b,S,x){let P=a[S];if(s==="title"&&S===u){let{key:$,problem:_}=y(b,P,x);if(!_)return p.set($,b.location.child("title")),$;let{name:G}=g(b,P,x);return P[G]||(x.report(_),p.set(G,b.location)),G}let{name:T,prevName:E}=g(b,P,x);return!P[T]&&E!==T&&x.report({message:`Two schemas are referenced with the same name but different content. Renamed ${E} to ${T}.`,location:x.location,forceSeverity:i}),T}return d}async function xg(e){let{document:t,config:r,types:n,externalRefResolver:o,dereference:i=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:l="basename"}=e,p=vn(t.parsed),u=Ha(p),d=r.getRulesForSpecVersion(u),f=nn(r.extendTypes(n,p),r),m=Go(d,r,"preprocessors",p),h=Go(d,r,"decorators",p),y={problems:[],specVersion:p,config:r,refTypes:new Map,visitorsData:{}},g=await or({rootDocument:t,rootType:f.Root,externalRefResolver:o});m.length>0&&(Gt({document:t,rootType:f.Root,normalizedVisitors:Kt(m,f),resolvedRefMap:g,ctx:y}),g=await or({rootDocument:t,rootType:f.Root,externalRefResolver:o}));let w=Kt([{severity:"error",ruleId:"bundler",visitor:GA({version:u,dereference:i,rootDocument:t,resolvedRefMap:g,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:l})},...h.filter(b=>b.ruleId!=="remove-unused-components")],f);if(Gt({document:t,rootType:f.Root,normalizedVisitors:w,resolvedRefMap:g,ctx:y}),s||r.getDecoratorSettings("remove-unused-components",p).severity!=="off"){let b=await or({rootDocument:t,rootType:f.Root,externalRefResolver:o}),S=Kt([{severity:"error",ruleId:"remove-unused-components",visitor:u==="oas2"?ul({}):dl({})}],f);Gt({document:t,rootType:f.Root,normalizedVisitors:S,resolvedRefMap:b,ctx:y})}return{bundle:t,problems:y.problems.map(b=>r.addProblemToIgnore(b)),fileDependencies:o.getFiles(),rootType:f.Root,refTypes:y.refTypes,visitorsData:y.visitorsData}}function WA(e,t,r){let n={plugins:[],rootConfigDir:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[mp]:n}};return Gt({document:e,rootType:qn.ConfigRoot,normalizedVisitors:BA,resolvedRefMap:t,ctx:o}),n.plugins}function YA(e,t,r,n=!1){let o={plugins:r,skipPluginEval:n},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[fp]:o}};return Gt({document:e,rootType:qn.ConfigRoot,normalizedVisitors:HA,resolvedRefMap:t,ctx:i}),e.parsed??{}}async function dQ(e){let{ref:t,doc:r,externalRefResolver:n=new jt(e.config.resolve),base:o=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
116
+ `);let i=r===void 0?await n.resolveDocument(o,t,!0):r;if(i instanceof Error)throw i;return e.collectSpecData?.(i),xg({document:i,...e,externalRefResolver:n,types:fo(vn(i.parsed))})}function Wl(e){return!je(e)}import*as QA from"node:url";var fQ=function(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,n,o,i,s){return n?t?".jsx":".js":o&&(!i||!s)?r:o+i+"."+s.toLowerCase()+"js"}):e},Sg=new Map,mQ="v",hQ=0;function JA(e){return Sg.has(e)}function XA(e){return Sg.get(e)}function ZA(e,t){Sg.set(e,t)}async function eT(e){let t=QA.pathToFileURL(e);return t.searchParams.set(mQ,String(hQ)),import(fQ(t.href))}async function _g({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:o}){let i=e===void 0?_w:e.parsed;if(n!==void 0&&A(i)&&(i.extends=n),A(i)&&(i?.extends?.some(Wl)||i?.scorecardClassic?.levels?.some(f=>f?.extends?.some(Wl))||i?.scorecard?.levels?.some(f=>f?.extends?.some(Wl))))throw new Error("Configuration format not detected in extends: values must be strings.");let s=e??{source:new zr(t??"",JSON.stringify(i)),parsed:i},a=await or({rootDocument:s,rootType:qn.ConfigRoot,externalRefResolver:r??new jt(hp(i?.resolve))}),c=[],l,p="";Ze?l=[...(i?.plugins||[]).filter(m=>!je(m)),fg]:(p=Rt.dirname(t??""),c=WA(s,a,p),l=[...await nT(c.map(m=>tT(m)?m.absolutePath:m),p,o),fg]);let u=YA(s,zA(a),l,o);u.apis&&!o&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([f,m])=>{let h=Bl([u,m]);return[f,{...m,...h}]})));let d=c.length?c.map(f=>tT(f)&&f.isModule?f.rawPath:f.absolutePath&&Rt.relative(p,f.absolutePath)).filter(rt):void 0;return{resolvedConfig:{...u,plugins:d},resolvedRefMap:a,plugins:l}}function gQ(e){for(let t of Ew){let r=Rt.resolve(e,t);if(wg.existsSync(r))return t}}function tT(e){return"isModule"in e}var Gl=(e,t,r)=>{if(!je(e))return e;let n=Rt.resolve(Rt.dirname(t),e);if(wg.existsSync(n))return{absolutePath:n,rawPath:e,isModule:!1};try{return{absolutePath:yQ.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?Rt.dirname(rT.fileURLToPath(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function nT(e,t,r=!1){if(!e)return[];let n=async c=>{if(!je(c))return c;try{let l=Rt.isAbsolute(c)?c:Gl(c,Rt.join(t,ki),t).absolutePath;if(!JA(l)){let p=await eT(l),u=p.default||p,d={contentDir:t},f=Array.isArray(u)?u:[u];for(let y of f)y?.id&&hg(y)&&Q.info(`Deprecated plugin format detected: ${y.id}
117
+ `);let m=hg(u)?u:FA(u)?await u(d):await u?.default?.(d),h=Array.isArray(m)?m:[m];m&&ZA(l,h.map(y=>({...y,path:c,absolutePath:l})))}return XA(l)}catch(l){throw new Error(`Failed to load plugin "${c}": ${l.message}
118
+
119
+ ${l.stack}`)}},o=new Map,i=gQ(t);i&&e.push(i);let s=new Set;if(r){let c=[];for(let l of e){if(!je(l)){c.push(l);continue}let p=Rt.isAbsolute(l)?l:Gl(l,Rt.join(t,ki),t).absolutePath;s.has(p)||(s.add(p),c.push({absolutePath:p}))}return c}return(await Promise.all(e.map(async c=>{if(je(c)){if(oe(c))throw new Error(Y.red("We don't support remote plugins yet."));if(s.has(c))return;s.add(c)}let l=await n(c);if(!l)return;let p=Array.isArray(l)?l:[l];return(await Promise.all(p.map(async u=>{if(!u)return;let d=u.id;if(typeof d!="string")throw new Error(Y.red(`Plugin must define \`id\` property in ${Y.blue(c.toString())}.`));let f=u.absolutePath??c.toString(),m=o.get(d);if(m){if(f!==m)throw new Error(Y.red(`Plugin "id" must be unique. Plugin ${Y.blue(f)} uses id "${Y.blue(d)}" already seen in ${Y.blue(f)}`));return}o.set(d,f);let h={id:d,...u.configs?{configs:u.configs}:{},...u.typeExtension?{typeExtension:u.typeExtension}:{}};if(u.rules){if(!u.rules.oas3&&!u.rules.oas2&&!u.rules.async2&&!u.rules.async3&&!u.rules.arazzo1&&!u.rules.overlay1&&!u.rules.openrpc1&&!u.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);h.rules={},u.rules.oas3&&(h.rules.oas3=Me(u.rules.oas3,d)),u.rules.oas2&&(h.rules.oas2=Me(u.rules.oas2,d)),u.rules.async2&&(h.rules.async2=Me(u.rules.async2,d)),u.rules.async3&&(h.rules.async3=Me(u.rules.async3,d)),u.rules.arazzo1&&(h.rules.arazzo1=Me(u.rules.arazzo1,d)),u.rules.overlay1&&(h.rules.overlay1=Me(u.rules.overlay1,d)),u.rules.openrpc1&&(h.rules.openrpc1=Me(u.rules.openrpc1,d)),u.rules.graphql&&(h.rules.graphql=Me(u.rules.graphql,d))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1&&!u.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);h.preprocessors={},u.preprocessors.oas3&&(h.preprocessors.oas3=Me(u.preprocessors.oas3,d)),u.preprocessors.oas2&&(h.preprocessors.oas2=Me(u.preprocessors.oas2,d)),u.preprocessors.async2&&(h.preprocessors.async2=Me(u.preprocessors.async2,d)),u.preprocessors.async3&&(h.preprocessors.async3=Me(u.preprocessors.async3,d)),u.preprocessors.arazzo1&&(h.preprocessors.arazzo1=Me(u.preprocessors.arazzo1,d)),u.preprocessors.overlay1&&(h.preprocessors.overlay1=Me(u.preprocessors.overlay1,d)),u.preprocessors.openrpc1&&(h.preprocessors.openrpc1=Me(u.preprocessors.openrpc1,d))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1&&!u.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);h.decorators={},u.decorators.oas3&&(h.decorators.oas3=Me(u.decorators.oas3,d)),u.decorators.oas2&&(h.decorators.oas2=Me(u.decorators.oas2,d)),u.decorators.async2&&(h.decorators.async2=Me(u.decorators.async2,d)),u.decorators.async3&&(h.decorators.async3=Me(u.decorators.async3,d)),u.decorators.arazzo1&&(h.decorators.arazzo1=Me(u.decorators.arazzo1,d)),u.decorators.overlay1&&(h.decorators.overlay1=Me(u.decorators.overlay1,d)),u.decorators.openrpc1&&(h.decorators.openrpc1=Me(u.decorators.openrpc1,d))}return u.assertions&&(h.assertions=u.assertions),{...u,...h}}))).filter(rt)}))).filter(rt).flat()}function VA(e,t){let{pluginId:r,configName:n}=UA(e),o=t.find(s=>s.id===r);if(!o)throw new Error(`Invalid config ${Y.red(e)}: plugin ${r} is not included.`);let i=o.configs?.[n];if(!i)throw new Error(r?`Invalid config ${Y.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${Y.red(e)}: there is no such built-in config.`);return i}function bQ(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=oe(n)?n:tc(t,n);r[i]=Object.create(null);for(let s of Object.keys(o))r[i][s]=new Set(o[s])}return r}async function iT(e,t){let r=e?lu(e):Ze?"":process.cwd(),n=r?tc(r,da):da;if(Ya?.existsSync&&!oe(n)&&!Ya.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:bQ(o.parsed||{},r)}async function vQ(e={}){let{configPath:t=sT(),customExtends:r,externalRefResolver:n,skipPluginEval:o}=e,i=n??new jt,s=t?await i.resolveDocument(null,t,!0):void 0;if(s instanceof Error)throw s;let{resolvedConfig:a,resolvedRefMap:c,plugins:l}=await _g({rawConfigDocument:s?cT(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o}),p=await iT(t,i);return new Ji(a,{configPath:t,document:s,resolvedRefMap:c,plugins:l,ignore:p})}function sT(e){if(!Ya?.existsSync)return;let t=e?oT.resolve(e,ki):ki;return Ya.existsSync(t)?t:void 0}async function aT(e,{configPath:t,externalRefResolver:r,ignore:n}={}){let i=Ao(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(i.parsed=e);let{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await _g({rawConfigDocument:cT(i),configPath:t,externalRefResolver:r});return new Ji(s,{configPath:t,document:i,resolvedRefMap:a,plugins:c,ignore:n})}function cT(e){if(!e.parsed)return e;let{plugins:t,resolve:r,...n}=e.parsed,o={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:o}}var Ko=Ir(TR(),1);var i8=150,s8=3;function iu(e,t){$s.enabled=t;let{start:r,end:n={line:r.line,col:r.col+1},source:o}=e,i=o.getLines(),s=r.line,a=Math.max(Math.min(n.line,i.length),r.line),c=Math.max(a-s-s8+1,0);c<2&&(c=0);let l=[],p=0;for(let d=s;d<=a&&!(c>0&&d>=a-c);d++){let f=i[d-1]||"";f!==""&&(p=ou(f));let m=d===s?r.col-1:p,h=d===a?n.col-1:f.length;l.push([`${d}`,u(f,m,h,Y.red)]),t||l.push(["",RR(f,m,h)])}return c>0&&(l.push(["\u2026",`${Qg(p)}${Y.gray(`< ${c} more lines >`)}`]),l.push([`${a}`,u(i[a-1],-1,n.col-1,Y.red)]),t||l.push(["",RR(i[a-1],-1,n.col-1)])),a8([[`${s-2}`,u(i[s-1-2])],[`${s-1}`,u(i[s-1-1])],...l,[`${a+1}`,u(i[a-1+1])],[`${a+2}`,u(i[a-1+2])]]);function u(d,f=-1,m=1/0,h=Y.gray){return!t||!d?d:(f===-1&&(f=ou(d)),m=Math.min(m,d.length),d.substr(0,f)+h(d.substring(f,m))+d.substr(m))}}function a8(e){let t=e.filter(([o,i])=>i!==void 0),r=Math.max(...t.map(([o])=>o.length)),n=Math.min(...t.map(([o,i])=>i===""?1/0:ou(i)));return t.map(([o,i])=>Y.gray(p8(r,o)+" |")+(i?" "+c8(i.substring(n)):"")).join(`
120
+ `)}function c8(e,t=i8){let r=e.length-t;if(r>0){let n=Y.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function RR(e,t=-1,r=1/0){return t===-1&&(t=ou(e)),r=Math.min(r,e.length),Qg(t)+"^".repeat(Math.max(r-t,1))}function Qg(e){return" ".repeat(e)}function p8(e,t){return Qg(e-t.length)+t}function ou(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function wn(e){if(e.pointer===void 0)return e;let{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(Ko.safeLoad),i=OR(o,r,!!n);return{...e,pointer:void 0,...l8(t.body,i?.startPosition??1,i?.endPosition??1)}}function l8(e,t,r){let n=1,o=1,i={line:1,col:1};for(let a=0;a<r-1;a++){if(a===t-1&&(i={line:n,col:o+1}),e[a]===`
121
+ `){n++,o=1,a===t-1&&(i={line:n,col:o}),e[a+1]==="\r"&&a++;continue}o++}let s=t===r?{...i}:{line:n,col:o+1};return{start:i,end:s}}function OR(e,t,r){let n=pu(t.substr(2));if(e===void 0)return;let o=e;for(let i of n)if(o.kind===Ko.Kind.MAP){let s=o.mappings.find(a=>a.key.value===i);if(!s||(o=s,!s?.value))break;o=s.value}else if(o.kind===Ko.Kind.SEQ){let s=o.items[parseInt(i,10)];if(!s)break;o=s}if(r){let i=o.parent;return!i||i.kind===Ko.Kind.SEQ?o:i.kind===Ko.Kind.MAPPING?i.key:o}else return o}import*as Rr from"node:path";var u8={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},kR={warn:e=>Y.bgYellow(Y.black(e)),error:Y.bgRed},IR={warn:Y.yellow,error:Y.red},hs={warn:"Warning",error:"Error"},d8={error:"critical",warn:"minor"},f8=+(Es.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function su(e){return e==="error"?1:2}function CR(e){let t=0,r=0,n=0;for(let o of e){if(o.ignored){n++;continue}o.severity==="error"&&t++,o.severity==="warn"&&r++}return{errors:t,warnings:r,ignored:n}}function m8(e,t){let{maxProblems:r=100,cwd:n=Ze?"":process.cwd(),format:o="codeframe",color:i=$s.enabled,totals:s=CR(e),version:a="2.0",command:c}=t;$s.enabled=i;let l=e.length;e=e.filter(b=>!b.ignored);let p=l-e.length;if(e=e.sort((b,S)=>su(b.severity)-su(S.severity)).slice(0,r),!l&&o!=="json"&&o!=="junit")return;switch(o){case"json":d();break;case"codeframe":for(let b=0;b<e.length;b++){let S=e[b];c==="bundle"?Q.info(`${m(S,b)}
122
+ `):Q.output(`${m(S,b)}
123
+ `)}break;case"stylish":{let b=Jg(e);for(let[S,{ruleIdPad:x,locationPad:P,fileProblems:T}]of Object.entries(b)){Q.output(`${Y.blue(oe(S)?S:Rr.relative(n,S))}:
124
+ `);for(let E=0;E<T.length;E++){let $=T[E];Q.output(`${h($,P,x)}
125
+ `)}Q.output(`
126
+ `)}break}case"markdown":{let b=Jg(e);for(let[S,{fileProblems:x}]of Object.entries(b)){Q.output(`## Lint: ${oe(S)?S:Rr.relative(n,S)}
127
+
128
+ `),Q.output(`| Severity | Location | Problem | Message |
129
+ `),Q.output(`|---|---|---|---|
130
+ `);for(let P=0;P<x.length;P++){let T=x[P];Q.output(`${y(T)}
131
+ `)}Q.output(`
132
+ `),s.errors>0?Q.output(`Validation failed
133
+ Errors: ${s.errors}
134
+ `):Q.output(`Validation successful
135
+ `),s.warnings>0&&Q.output(`Warnings: ${s.warnings}
136
+ `),Q.output(`
137
+ `)}break}case"checkstyle":{let b=Jg(e);Q.output(`<?xml version="1.0" encoding="UTF-8"?>
138
+ `),Q.output(`<checkstyle version="4.3">
139
+ `);for(let[S,{fileProblems:x}]of Object.entries(b))Q.output(`<file name="${Tr(oe(S)?S:Rr.relative(n,S))}">
140
+ `),x.forEach(g),Q.output(`</file>
141
+ `);Q.output(`</checkstyle>
142
+ `);break}case"junit":{let b=e.filter(P=>P.severity==="error").length,S=e.filter(P=>P.severity==="warn").length,x={};for(let P of e){let T=P.location[0].source.absoluteRef;x[T]||(x[T]=[]),x[T].push(P)}Q.output(`<?xml version="1.0" encoding="UTF-8"?>
143
+ `),Q.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${b}" failures="${S}" skipped="0">
144
+ `);for(let[P,T]of Object.entries(x)){let E=oe(P)?P:Rr.relative(n,P),$=T.filter(G=>G.severity==="error").length,_=T.filter(G=>G.severity==="warn").length;Q.output(`<testsuite name="${Tr(E)}" tests="${T.length}" errors="${$}" failures="${_}">
145
+ `),T.forEach(G=>w(G,E)),Q.output(`</testsuite>
146
+ `)}Q.output(`</testsuites>
147
+ `);break}case"codeclimate":u();break;case"summary":h8(e);break;case"github-actions":g8(e,n)}l-p>r&&Q.info(`< ... ${l-r} more problems hidden > ${Y.gray("increase with `--max-problems N`")}
148
+ `);function u(){let b=e.map(S=>{let x=S.location[0],P=wn(x);return{description:S.message,location:{path:oe(x.source.absoluteRef)?x.source.absoluteRef:Rr.relative(n,x.source.absoluteRef),lines:{begin:P.start.line}},severity:d8[S.severity],fingerprint:`${S.ruleId}${S.location.length>0?"-"+S.location[0].pointer:""}`}});Q.output(JSON.stringify(b,null,2))}function d(){let b={totals:s,version:a,problems:e.map(S=>{let x={...S,location:S.location.map(P=>({...P,source:{ref:oe(P.source.absoluteRef)?P.source.absoluteRef:Rr.relative(n,P.source.absoluteRef)}})),from:S.from?{...S.from,source:{ref:oe(S.from?.source.absoluteRef)?S.from?.source.absoluteRef:Rr.relative(n,S.from?.source.absoluteRef||n)}}:void 0};if(Es.FORMAT_JSON_WITH_CODEFRAMES){let P=S.location[0],T=wn(P);x.codeframe=iu(T,i)}return x})};Q.output(JSON.stringify(b,null,2))}function f(b){let{severity:S}=b;if(!kR[S])throw new Error(u8.INVALID_SEVERITY_LEVEL);return kR[S]}function m(b,S){let x=f(b),P=b.location[0],T=oe(P.source.absoluteRef)?P.source.absoluteRef:Rr.relative(n,P.source.absoluteRef),E=wn(P),$=P.pointer?Y.gray(`at ${P.pointer}`):"",_=`${T}:${E.start.line}:${E.start.col}`;return`[${S+1}] ${x(_)} ${$}
149
+
150
+ ${b.message}
151
+
152
+ `+qR(b)+iu(E,i)+`
153
+
154
+ `+y8(n,b.from)+`${hs[b.severity]} was generated by the ${Y.blue(b.ruleId)} rule.
155
+
156
+ `+(b.reference?`Reference: ${Y.blue(b.reference)}
157
+
158
+ `:"")}function h(b,S,x){let P=IR[b.severity];if(!hs[b.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let T=P(hs[b.severity].toLowerCase().padEnd(7)),{start:E}=b.location[0];return` ${`${E.line}:${E.col}`.padEnd(S)} ${T} ${b.ruleId.padEnd(x)} ${b.message}`}function y(b){if(!hs[b.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let S=hs[b.severity].toLowerCase(),{start:x}=b.location[0];return`| ${S} | line ${`${x.line}:${x.col}`} | [${b.ruleId}](https://redocly.com/docs/cli/rules/${b.ruleId}/) | ${b.message.replaceAll(`
159
+ `,"<br>")} |`}function g(b){let{line:S,col:x}=b.location[0].start,P=b.severity=="warn"?"warning":"error",T=Tr(b.message),E=Tr(b.ruleId);Q.output(`<error line="${S}" column="${x}" severity="${P}" message="${T}" source="${E}" />
160
+ `)}function w(b,S){let x=b.location[0],{start:P}=wn(x),T=b.severity==="error"?"error":"failure",E=Tr(b.ruleId),$=Tr(b.message),_=[`Rule: ${E}`,`Severity: ${Tr(b.severity)}`,`File: ${Tr(S)}`,`Line: ${P.line}`,`Column: ${P.col}`];x.pointer&&_.push(`Pointer: ${Tr(x.pointer)}`),_.push(`Message: ${$}`),Q.output(`<testcase classname="${E}" name="${E}" file="${Tr(S)}" line="${P.line}">
161
+ `),Q.output(`<${T} message="${$}" type="${E}">${_.join(`
162
+ `)}</${T}>
163
+ `),Q.output(`</testcase>
164
+ `)}}function h8(e){let t={};for(let n of e)t[n.ruleId]=t[n.ruleId]||{count:0,severity:n.severity},t[n.ruleId].count++;let r=Object.entries(t).sort(([,n],[,o])=>su(n.severity)-su(o.severity)||o.count-n.count);for(let[n,o]of r){let i=IR[o.severity],s=i(hs[o.severity].toLowerCase().padEnd(7));Q.output(`${s} ${n}: ${o.count}
165
+ `)}Q.output(`
166
+ `)}function y8(e,t){if(!t)return"";let r=Rr.relative(e,t.source.absoluteRef),n=wn(t),o=`${r}:${n.start.line}:${n.start.col}`,i=t.pointer?Y.gray(`at ${t.pointer}`):"";return`referenced from ${Y.blue(o)} ${i}
167
+
168
+ `}function qR(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
169
+
170
+ `:`Did you mean:
171
+ - ${e.suggest.slice(0,f8).join(`
172
+ - `)}
173
+
174
+ `}var Jg=e=>{let t={};for(let r of e){let n=r.location[0].source.absoluteRef;t[n]=t[n]||{fileProblems:[],ruleIdPad:0,locationPad:0};let o={...r,location:r.location.map(wn)};t[n].fileProblems.push(o),t[n].ruleIdPad=Math.max(r.ruleId.length,t[n].ruleIdPad),t[n].locationPad=Math.max(Math.max(...o.location.map(i=>`${i.start.line}:${i.start.col}`.length)),t[n].locationPad)}return t};function Tr(e){return e.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu,t=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";case"'":return"&apos;";default:return`&#${t.charCodeAt(0)};`}})}function g8(e,t){for(let s of e)for(let a of s.location.map(wn)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}let l=qR(s),p=s.reference?`Reference: ${s.reference}
175
+
176
+ `:"",u=s.message+(l!==""||p!==""?`
177
+
178
+ `:"")+l+p,d={title:s.ruleId,file:oe(a.source.absoluteRef)?a.source.absoluteRef:Rr.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};Q.output(`::${c} ${r(d)}::${o(u)}
179
+ `)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,c])=>`${a}=${i(c)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}var{theme:Mme,...b8}=ui.properties,v8={...ui,properties:b8};async function NR(e){let{ref:t,externalRefResolver:r=new jt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),au({document:n,...e,externalRefResolver:r})}async function x8(e){let{source:t,absoluteRef:r,externalRefResolver:n=new jt(e.config.resolve)}=e,o=Ao(t,r||"/");return au({document:o,...e,externalRefResolver:n})}async function au(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(Ii(t.source.absoluteRef)){let{lintGraphqlDocument:f}=await import("./UYZXI3NO.js");return f({document:t,config:o})}let i=vn(t.parsed),s=o.getRulesForSpecVersion(Ha(i)),a=nn(o.extendTypes(r??fo(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},l=Go(s,o,"preprocessors",i),p=Go(s,o,"rules",i),u=await or({rootDocument:t,rootType:a.Root,externalRefResolver:n});l.length>0&&(Gt({document:t,rootType:a.Root,normalizedVisitors:Kt(l,a),resolvedRefMap:u,ctx:c}),u=await or({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let d=Kt(p,a);return Gt({document:t,rootType:a.Root,normalizedVisitors:d,resolvedRefMap:u,ctx:c}),c.problems.map(f=>o.addProblemToIgnore(f))}async function S8(e){let{severity:t,externalRefResolver:r=new jt,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=nn(e.externalConfigTypes||dp(v8,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:lt({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:pt({severity:"error"})}],a=Kt(s,i),c=n.resolvedRefMap||await or({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return Gt({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}var Xg=class extends Error{};export{nI as a,Vt as b,A as c,Bt as d,po as e,oI as f,je as g,We as h,As as i,iI as j,id as k,sI as l,Ze as m,gd as n,lo as o,nn as p,j as q,Zg as r,oe as s,qr as t,fo as u,Bs as v,xf as w,rh as x,g9 as y,b9 as z,v9 as A,co as B,fc as C,Ur as D,Ii as E,fa as F,gp as G,jt as H,or as I,aE as J,yk as K,gk as L,Pk as M,Ek as N,$k as O,Ak as P,Tk as Q,Rk as R,Ok as S,kk as T,ed as U,Q as V,Ha as W,vn as X,Kt as Y,mg as Z,Gt as _,xg as $,dQ as aa,vQ as ba,aT as ca,wn as da,CR as ea,m8 as fa,Tr as ga,NR as ha,x8 as ia,au as ja,S8 as ka,Xg as la};
180
+ /*! Bundled license information:
181
+
182
+ js-yaml/dist/js-yaml.mjs:
183
+ (*! js-yaml 5.2.2 https://github.com/nodeca/js-yaml @license MIT *)
184
+ */