@redocly/cli 2.71.2 → 2.72.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 (159) hide show
  1. package/README.md +1 -1
  2. package/THIRD_PARTY_NOTICES +29 -7
  3. package/lib/chunks/{AZ5LIJEO.js → 2DXUH2SS.js} +1 -1
  4. package/lib/chunks/{UYZXI3NO.js → 2X2KHSF3.js} +1 -1
  5. package/lib/chunks/{BPJTNQBC.js → 42X6IAVM.js} +1 -1
  6. package/lib/chunks/44US4AGQ.js +13 -0
  7. package/lib/chunks/{R32HBYOH.js → 4AXMK6B2.js} +1 -1
  8. package/lib/chunks/4ZCKAKVF.js +199 -0
  9. package/lib/chunks/{N4GCIKY4.js → 5F7XFPS7.js} +1 -1
  10. package/lib/chunks/{YF4FMOTE.js → 6234PJEZ.js} +1 -1
  11. package/lib/chunks/{4H3DPQDW.js → 62SOICN7.js} +1 -1
  12. package/lib/chunks/{BOTTA3HA.js → 6JFL6L56.js} +1 -1
  13. package/lib/chunks/{NEWT5A6S.js → 6RTITFQA.js} +1 -1
  14. package/lib/chunks/{KJNBOXDI.js → 6XDKNFYM.js} +3 -3
  15. package/lib/chunks/{L325HIGK.js → 76AJ5P4Y.js} +1 -1
  16. package/lib/chunks/{JRVXIEVC.js → 7HTKK26B.js} +1 -1
  17. package/lib/chunks/{2TG3DP4I.js → A7XJ7Y3N.js} +1 -1
  18. package/lib/chunks/AB4FYNJN.js +22 -0
  19. package/lib/chunks/BJ6Z66KZ.js +7 -0
  20. package/lib/chunks/{XVS7B4RZ.js → BL2KWYMY.js} +1 -1
  21. package/lib/chunks/{BIS2ZFGS.js → BTLP7Z6A.js} +1 -1
  22. package/lib/chunks/{AXGFQS75.js → BXMYSHQY.js} +2 -2
  23. package/lib/chunks/{JOUEVI3E.js → BY22HEXP.js} +1 -1
  24. package/lib/chunks/D2BBHPMR.js +7 -0
  25. package/lib/chunks/{5CR6AOLY.js → D3C6XIMY.js} +3 -3
  26. package/lib/chunks/{DWXDCKZ7.js → DNDYWJHC.js} +1 -1
  27. package/lib/chunks/{ORWIUECT.js → E6QTRG6I.js} +1 -1
  28. package/lib/chunks/EHMG7I34.js +9 -0
  29. package/lib/chunks/{UTEOWLD5.js → EL6MGCYE.js} +1 -1
  30. package/lib/chunks/EVCSNWMN.js +7 -0
  31. package/lib/chunks/{KLGUZBJO.js → FJBULQ4P.js} +1 -1
  32. package/lib/chunks/{IQLQH23V.js → FLL7MTDS.js} +1 -1
  33. package/lib/chunks/{CRJEY7P3.js → FM7Y6KMP.js} +1 -1
  34. package/lib/chunks/{CR5TYFBN.js → FMMOQ6SE.js} +2 -2
  35. package/lib/chunks/{CZX7WE2R.js → FRC2YJS4.js} +1 -1
  36. package/lib/chunks/{W7TN2XCW.js → GHJGHHQP.js} +1 -1
  37. package/lib/chunks/{BH4FA7AH.js → GKPSJEG5.js} +1 -1
  38. package/lib/chunks/{UVKUPD4U.js → GMMFZFKJ.js} +1 -1
  39. package/lib/chunks/{MJ2NI6MR.js → GW4PLLFM.js} +1 -1
  40. package/lib/chunks/{5AVTCY6F.js → HIMEF7J2.js} +1 -1
  41. package/lib/chunks/{U4MI7HDM.js → HJ5KS42K.js} +1 -1
  42. package/lib/chunks/{DZT5NLUB.js → HXOTKK2E.js} +1 -1
  43. package/lib/chunks/{HP7UD4BA.js → IFGXTL5P.js} +1 -1
  44. package/lib/chunks/{XQEXWC5L.js → IHUHQ7PO.js} +1 -1
  45. package/lib/chunks/{3FR3456Q.js → IJYEZR53.js} +1 -1
  46. package/lib/chunks/{JO76DPXR.js → IKSSZYHA.js} +1 -1
  47. package/lib/chunks/{I4TK6NG7.js → IMNPDC6N.js} +1 -1
  48. package/lib/chunks/{7JS7JGWP.js → IO7M7MGV.js} +1 -1
  49. package/lib/chunks/{LY6BDOEF.js → J3TXBQDL.js} +1 -1
  50. package/lib/chunks/{HRZLSSOF.js → JZV7EL4R.js} +1 -1
  51. package/lib/chunks/{EHJ3FMW6.js → K6HV4EJS.js} +1 -1
  52. package/lib/chunks/{OFIQ2EST.js → KVXVR5Y4.js} +33 -33
  53. package/lib/chunks/{LKNL5LEV.js → L4HVZOFP.js} +1 -1
  54. package/lib/chunks/{Z6GFQV2Y.js → L5AG5NJZ.js} +1 -1
  55. package/lib/chunks/{ZXOX7NF2.js → LTJXST6M.js} +1 -1
  56. package/lib/chunks/MO6NEDYO.js +17 -0
  57. package/lib/chunks/{FDKY4PGX.js → NDECHUWV.js} +1 -1
  58. package/lib/chunks/{HMYFTLS7.js → NFGCHP5P.js} +1 -1
  59. package/lib/chunks/{GFSMOHUE.js → NNBSSORJ.js} +1 -1
  60. package/lib/chunks/{ADACRYTN.js → OLAN2CVV.js} +1 -1
  61. package/lib/chunks/{CER2D6ZD.js → OOKU5T7P.js} +7 -7
  62. package/lib/chunks/{U2F3JOT2.js → OQRUWVII.js} +1 -1
  63. package/lib/chunks/{WO6IIVA3.js → Q5WCA45H.js} +8 -8
  64. package/lib/chunks/{6X42UQ3O.js → QGKTPGO7.js} +1 -1
  65. package/lib/chunks/{DM4EUYBB.js → QQ2PGWE6.js} +2 -2
  66. package/lib/chunks/QYBWIG5Y.js +59 -0
  67. package/lib/chunks/{QTSECOQB.js → RC4LK3ZS.js} +2 -2
  68. package/lib/chunks/{NXREEI2S.js → RL2EIWFM.js} +1 -1
  69. package/lib/chunks/{4S6LRPCX.js → RQMFL6Q4.js} +1 -1
  70. package/lib/chunks/S3B562IT.js +7 -0
  71. package/lib/chunks/{P5T6BIKW.js → SPIFPTTE.js} +1 -1
  72. package/lib/chunks/SUQ7ZWYJ.js +7 -0
  73. package/lib/chunks/{VJZDR6KS.js → TFPMT2XD.js} +1529 -4
  74. package/lib/chunks/{FAFMGLT6.js → TVUYXOSQ.js} +1 -1
  75. package/lib/chunks/{T77BOGYV.js → UFDBFVRI.js} +1 -1
  76. package/lib/chunks/{HTFKP5HH.js → UH4Q6U6X.js} +1 -1
  77. package/lib/chunks/{LET2MPMU.js → UKVHQIBO.js} +1 -1
  78. package/lib/chunks/{SSEMMWPY.js → VF2YOZ3U.js} +1 -1
  79. package/lib/chunks/{5HPO77VR.js → VO775J6V.js} +2 -2
  80. package/lib/chunks/WKBXTA7Y.js +53 -0
  81. package/lib/chunks/{YWRFPTTI.js → WRGAJXOK.js} +1 -1
  82. package/lib/chunks/{3EQNI6CT.js → XKENZH7W.js} +1 -1
  83. package/lib/chunks/{QXXAC25O.js → YB52VXMW.js} +1 -1
  84. package/lib/chunks/{VPTYPV6P.js → ZSQF6YOF.js} +1 -1
  85. package/lib/chunks/{TH44RKLO.js → ZYHLWT2C.js} +1 -1
  86. package/lib/eject-assets/AGENTS.md +1 -1
  87. package/lib/eject-assets/generators/cli/docs.ts +1 -1
  88. package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
  89. package/lib/eject-assets/generators/cli/index.ts +2 -2
  90. package/lib/eject-assets/generators/cli/render.ts +1 -1
  91. package/lib/eject-assets/generators/go/client.ts +1 -1
  92. package/lib/eject-assets/generators/go/descriptor.ts +1 -1
  93. package/lib/eject-assets/generators/go/index.ts +2 -2
  94. package/lib/eject-assets/generators/go/models.ts +1 -1
  95. package/lib/eject-assets/generators/go/naming.ts +1 -1
  96. package/lib/eject-assets/generators/go/operations.ts +1 -1
  97. package/lib/eject-assets/generators/go/pagination.ts +1 -1
  98. package/lib/eject-assets/generators/go/types.ts +1 -1
  99. package/lib/eject-assets/generators/java/client.ts +66 -0
  100. package/lib/eject-assets/generators/java/descriptor.ts +72 -0
  101. package/lib/eject-assets/generators/java/index.ts +245 -0
  102. package/lib/eject-assets/generators/java/models.ts +362 -0
  103. package/lib/eject-assets/generators/java/naming.ts +135 -0
  104. package/lib/eject-assets/generators/java/operations.ts +300 -0
  105. package/lib/eject-assets/generators/java/pagination.ts +94 -0
  106. package/lib/eject-assets/generators/java/types.ts +103 -0
  107. package/lib/eject-assets/generators/mock/faker.ts +1 -1
  108. package/lib/eject-assets/generators/mock/index.ts +2 -2
  109. package/lib/eject-assets/generators/mock/render.ts +1 -1
  110. package/lib/eject-assets/generators/mock/sample.ts +1 -1
  111. package/lib/eject-assets/generators/mock/values.ts +1 -1
  112. package/lib/eject-assets/generators/php/client.ts +1 -1
  113. package/lib/eject-assets/generators/php/descriptor.ts +1 -1
  114. package/lib/eject-assets/generators/php/index.ts +2 -2
  115. package/lib/eject-assets/generators/php/models.ts +1 -1
  116. package/lib/eject-assets/generators/php/naming.ts +1 -1
  117. package/lib/eject-assets/generators/php/operations.ts +1 -1
  118. package/lib/eject-assets/generators/php/pagination.ts +1 -1
  119. package/lib/eject-assets/generators/php/types.ts +1 -1
  120. package/lib/eject-assets/generators/python/client.ts +1 -1
  121. package/lib/eject-assets/generators/python/descriptor.ts +1 -1
  122. package/lib/eject-assets/generators/python/index.ts +2 -2
  123. package/lib/eject-assets/generators/python/models.ts +1 -1
  124. package/lib/eject-assets/generators/python/naming.ts +1 -1
  125. package/lib/eject-assets/generators/python/operations.ts +1 -1
  126. package/lib/eject-assets/generators/python/pagination.ts +1 -1
  127. package/lib/eject-assets/generators/python/types.ts +1 -1
  128. package/lib/eject-assets/generators/swr/index.ts +2 -2
  129. package/lib/eject-assets/generators/swr/render.ts +1 -1
  130. package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
  131. package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
  132. package/lib/eject-assets/generators/transformers/index.ts +2 -2
  133. package/lib/eject-assets/generators/transformers/render.ts +1 -1
  134. package/lib/eject-assets/generators/typescript/banner.ts +1 -1
  135. package/lib/eject-assets/generators/typescript/client.ts +1 -1
  136. package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
  137. package/lib/eject-assets/generators/typescript/index.ts +2 -2
  138. package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
  139. package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
  140. package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
  141. package/lib/eject-assets/generators/typescript/operations.ts +1 -1
  142. package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
  143. package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
  144. package/lib/eject-assets/generators/typescript/types.ts +1 -1
  145. package/lib/eject-assets/generators/zod/index.ts +2 -2
  146. package/lib/eject-assets/generators/zod/schemas.ts +1 -1
  147. package/lib/eject-assets/skills/client-generators/SKILL.md +1 -1
  148. package/lib/eject-assets/skills/java-generator/SKILL.md +161 -0
  149. package/lib/index.js +91 -90
  150. package/lib/skills/redocly-cli/SKILL.md +3 -1
  151. package/package.json +1 -1
  152. package/lib/chunks/2ZEKFWJQ.js +0 -13
  153. package/lib/chunks/3VOQMXIZ.js +0 -7
  154. package/lib/chunks/7GADNOVY.js +0 -9
  155. package/lib/chunks/FRQHCFKP.js +0 -199
  156. package/lib/chunks/J2EPFEBO.js +0 -17
  157. package/lib/chunks/JZATGVUO.js +0 -53
  158. package/lib/chunks/KNMNSDHR.js +0 -7
  159. package/lib/chunks/U5DIFWGH.js +0 -7
@@ -0,0 +1,199 @@
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 wt,b as bo,c as cx,d as Nq}from"./6RTITFQA.js";import{a as df,c as E,d as Cq,e as tn}from"./RFWIIJFG.js";var hf=E((ff,mf)=>{(function(e,t){typeof df=="function"&&typeof ff=="object"&&typeof mf=="object"?mf.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(ff,function(){var e=[],t=[],r={},n={},o={};function i(h){return typeof h=="string"?new RegExp("^"+h+"$","i"):h}function s(h,m){return h===m?m:h===h.toLowerCase()?m.toLowerCase():h===h.toUpperCase()?m.toUpperCase():h[0]===h[0].toUpperCase()?m.charAt(0).toUpperCase()+m.substr(1).toLowerCase():m.toLowerCase()}function a(h,m){return h.replace(/\$(\d{1,2})/g,function(y,b){return m[b]||""})}function c(h,m){return h.replace(m[0],function(y,b){var x=a(m[1],arguments);return s(y===""?h[b-1]:y,x)})}function l(h,m,y){if(!h.length||r.hasOwnProperty(h))return m;for(var b=y.length;b--;){var x=y[b];if(x[0].test(m))return c(m,x)}return m}function p(h,m,y){return function(b){var x=b.toLowerCase();return m.hasOwnProperty(x)?s(b,x):h.hasOwnProperty(x)?s(b,h[x]):l(x,b,y)}}function u(h,m,y,b){return function(x){var w=x.toLowerCase();return m.hasOwnProperty(w)?!0:h.hasOwnProperty(w)?!1:l(w,w,y)===w}}function f(h,m,y){var b=m===1?f.singular(h):f.plural(h);return(y?m+" ":"")+b}return f.plural=p(o,n,e),f.isPlural=u(o,n,e),f.singular=p(n,o,t),f.isSingular=u(n,o,t),f.addPluralRule=function(h,m){e.push([i(h),m])},f.addSingularRule=function(h,m){t.push([i(h),m])},f.addUncountableRule=function(h){if(typeof h=="string"){r[h.toLowerCase()]=!0;return}f.addPluralRule(h,"$0"),f.addSingularRule(h,"$0")},f.addIrregularRule=function(h,m){m=m.toLowerCase(),h=h.toLowerCase(),o[h]=m,n[m]=h},[["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(h){return f.addIrregularRule(h[0],h[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(h){return f.addPluralRule(h[0],h[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(h){return f.addSingularRule(h[0],h[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(f.addUncountableRule),f})});var Na=E((Qae,ES)=>{"use strict";var wS="[^\\\\/]",uV="(?=.)",_S="[^/]",um="(?:\\/|$)",$S="(?:^|\\/)",dm=`\\.{1,2}${um}`,dV="(?!\\.)",fV=`(?!${$S}${dm})`,mV=`(?!\\.{0,1}${um})`,hV=`(?!${dm})`,yV="[^.\\/]",gV=`${_S}*?`,vV="/",PS={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:uV,QMARK:_S,END_ANCHOR:um,DOTS_SLASH:dm,NO_DOT:dV,NO_DOTS:fV,NO_DOT_SLASH:mV,NO_DOTS_SLASH:hV,QMARK_NO_DOT:yV,STAR:gV,START_ANCHOR:$S,SEP:vV},bV={...PS,SLASH_LITERAL:"[\\\\/]",QMARK:wS,STAR:`${wS}*?`,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:"\\"},xV={__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"};ES.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:xV,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?bV:PS}}});var qa=E(mr=>{"use strict";var{REGEX_BACKSLASH:SV,REGEX_REMOVE_BACKSLASH:wV,REGEX_SPECIAL_CHARS:_V,REGEX_SPECIAL_CHARS_GLOBAL:$V}=Na();mr.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);mr.hasRegexChars=e=>_V.test(e);mr.isRegexChar=e=>e.length===1&&mr.hasRegexChars(e);mr.escapeRegex=e=>e.replace($V,"\\$1");mr.toPosixSlashes=e=>e.replace(SV,"/");mr.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};mr.removeBackslashes=e=>e.replace(wV,t=>t==="\\"?"":t);mr.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?mr.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};mr.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};mr.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};mr.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var NS=E((Xae,CS)=>{"use strict";var AS=qa(),{CHAR_ASTERISK:fm,CHAR_AT:PV,CHAR_BACKWARD_SLASH:ja,CHAR_COMMA:EV,CHAR_DOT:mm,CHAR_EXCLAMATION_MARK:hm,CHAR_FORWARD_SLASH:IS,CHAR_LEFT_CURLY_BRACE:ym,CHAR_LEFT_PARENTHESES:gm,CHAR_LEFT_SQUARE_BRACKET:AV,CHAR_PLUS:OV,CHAR_QUESTION_MARK:OS,CHAR_RIGHT_CURLY_BRACE:TV,CHAR_RIGHT_PARENTHESES:TS,CHAR_RIGHT_SQUARE_BRACKET:RV}=Na(),RS=e=>e===IS||e===ja,kS=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},kV=(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,f=!1,h=!1,m=!1,y=!1,b=!1,x=!1,w=!1,S=!1,P=!1,$=!1,O=0,C,I,k={value:"",depth:0,isGlob:!1},T=()=>l>=n,se=()=>c.charCodeAt(l+1),X=()=>(C=I,c.charCodeAt(++l));for(;l<n;){I=X();let Te;if(I===ja){w=k.backslashes=!0,I=X(),I===ym&&(x=!0);continue}if(x===!0||I===ym){for(O++;T()!==!0&&(I=X());){if(I===ja){w=k.backslashes=!0,X();continue}if(I===ym){O++;continue}if(x!==!0&&I===mm&&(I=X())===mm){if(f=k.isBrace=!0,m=k.isGlob=!0,$=!0,o===!0)continue;break}if(x!==!0&&I===EV){if(f=k.isBrace=!0,m=k.isGlob=!0,$=!0,o===!0)continue;break}if(I===TV&&(O--,O===0)){x=!1,f=k.isBrace=!0,$=!0;break}}if(o===!0)continue;break}if(I===IS){if(i.push(l),s.push(k),k={value:"",depth:0,isGlob:!1},$===!0)continue;if(C===mm&&l===p+1){p+=2;continue}u=l+1;continue}if(r.noext!==!0&&(I===OV||I===PV||I===fm||I===OS||I===hm)===!0&&se()===gm){if(m=k.isGlob=!0,y=k.isExtglob=!0,$=!0,I===hm&&l===p&&(P=!0),o===!0){for(;T()!==!0&&(I=X());){if(I===ja){w=k.backslashes=!0,I=X();continue}if(I===TS){m=k.isGlob=!0,$=!0;break}}continue}break}if(I===fm){if(C===fm&&(b=k.isGlobstar=!0),m=k.isGlob=!0,$=!0,o===!0)continue;break}if(I===OS){if(m=k.isGlob=!0,$=!0,o===!0)continue;break}if(I===AV){for(;T()!==!0&&(Te=X());){if(Te===ja){w=k.backslashes=!0,X();continue}if(Te===RV){h=k.isBracket=!0,m=k.isGlob=!0,$=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&I===hm&&l===p){S=k.negated=!0,p++;continue}if(r.noparen!==!0&&I===gm){if(m=k.isGlob=!0,o===!0){for(;T()!==!0&&(I=X());){if(I===gm){w=k.backslashes=!0,I=X();continue}if(I===TS){$=!0;break}}continue}break}if(m===!0){if($=!0,o===!0)continue;break}}r.noext===!0&&(y=!1,m=!1);let he=c,q="",j="";p>0&&(q=c.slice(0,p),c=c.slice(p),u-=p),he&&m===!0&&u>0?(he=c.slice(0,u),j=c.slice(u)):m===!0?(he="",j=c):he=c,he&&he!==""&&he!=="/"&&he!==c&&RS(he.charCodeAt(he.length-1))&&(he=he.slice(0,-1)),r.unescape===!0&&(j&&(j=AS.removeBackslashes(j)),he&&w===!0&&(he=AS.removeBackslashes(he)));let xt={prefix:q,input:e,start:p,base:he,glob:j,isBrace:f,isBracket:h,isGlob:m,isExtglob:y,isGlobstar:b,negated:S,negatedExtglob:P};if(r.tokens===!0&&(xt.maxDepth=0,RS(I)||s.push(k),xt.tokens=s),r.parts===!0||r.tokens===!0){let Te;for(let ie=0;ie<i.length;ie++){let tt=Te?Te+1:p,Ve=i[ie],Ee=e.slice(tt,Ve);r.tokens&&(ie===0&&p!==0?(s[ie].isPrefix=!0,s[ie].value=q):s[ie].value=Ee,kS(s[ie]),xt.maxDepth+=s[ie].depth),(ie!==0||Ee!=="")&&a.push(Ee),Te=Ve}if(Te&&Te+1<e.length){let ie=e.slice(Te+1);a.push(ie),r.tokens&&(s[s.length-1].value=ie,kS(s[s.length-1]),xt.maxDepth+=s[s.length-1].depth)}xt.slashes=i,xt.parts=a}return xt};CS.exports=kV});var LS=E((Zae,MS)=>{"use strict";var Da=Na(),Tr=qa(),{MAX_LENGTH:Hp,POSIX_REGEX_SOURCE:IV,REGEX_NON_SPECIAL_CHARS:CV,REGEX_SPECIAL_CHARS_BACKREF:NV,REPLACEMENTS:qS}=Da,qV=(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=>Tr.escapeRegex(o)).join("..")}return r},ms=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,jS=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},jV=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},DS=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(jV(t))return t.replace(/\\(.)/g,"$1")},DV=e=>{let t=e.map(DS).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},vm=(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}}}}},MV=e=>{let t=0,r=[];for(;t<e.length;){let o=vm(e.slice(t),!1);if(!o||o.type!=="*")return;let i=jS(o.body).map(a=>a.trim());if(i.length!==1)return;let s=DS(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?Tr.escapeRegex(r[0]):`[${r.map(o=>Tr.escapeRegex(o)).join("")}]`}*`},LV=e=>{let t=0,r=e.trim(),n=vm(r);for(;n;)t++,r=n.body.trim(),n=vm(r);return t},FV=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:Da.DEFAULT_MAX_EXTGLOB_RECURSION,n=jS(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||DV(n)))return{risky:!0};for(let o of n){let i=MV(o);if(i)return{risky:!0,safeOutput:i};if(LV(o)>r)return{risky:!0}}return{risky:!1}},bm=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=qS[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Hp,r.maxLength):Hp,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=Da.globChars(r.windows),l=Da.extglobChars(c),{DOT_LITERAL:p,PLUS_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:h,DOTS_SLASH:m,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:x,QMARK:w,QMARK_NO_DOT:S,STAR:P,START_ANCHOR:$}=c,O=D=>`(${a}(?:(?!${$}${D.dot?m:p}).)*?)`,C=r.dot?"":y,I=r.dot?w:S,k=r.bash===!0?O(r):P;r.capture&&(k=`(${k})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let T={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=Tr.removePrefix(e,T),o=e.length;let se=[],X=[],he=[],q=i,j,xt=()=>T.index===o-1,Te=T.peek=(D=1)=>e[T.index+D],ie=T.advance=()=>e[++T.index]||"",tt=()=>e.slice(T.index+1),Ve=(D="",pe=0)=>{T.consumed+=D,T.index+=pe},Ee=D=>{T.output+=D.output!=null?D.output:D.value,Ve(D.value)},er=()=>{let D=1;for(;Te()==="!"&&(Te(2)!=="("||Te(3)==="?");)ie(),T.start++,D++;return D%2===0?!1:(T.negated=!0,T.start++,!0)},lt=D=>{T[D]++,he.push(D)},ct=D=>{T[D]--,he.pop()},te=D=>{if(q.type==="globstar"){let pe=T.braces>0&&(D.type==="comma"||D.type==="brace"),M=D.extglob===!0||se.length&&(D.type==="pipe"||D.type==="paren");D.type!=="slash"&&D.type!=="paren"&&!pe&&!M&&(T.output=T.output.slice(0,-q.output.length),q.type="star",q.value="*",q.output=k,T.output+=q.output)}if(se.length&&D.type!=="paren"&&(se[se.length-1].inner+=D.value),(D.value||D.output)&&Ee(D),q&&q.type==="text"&&D.type==="text"){q.output=(q.output||q.value)+D.value,q.value+=D.value;return}D.prev=q,s.push(D),q=D},lr=(D,pe)=>{let M={...l[pe],conditions:1,inner:""};M.prev=q,M.parens=T.parens,M.output=T.output,M.startIndex=T.index,M.tokensIndex=s.length;let H=(r.capture?"(":"")+M.open;lt("parens"),te({type:D,value:pe,output:T.output?"":h}),te({type:"paren",extglob:!0,value:ie(),output:H}),se.push(M)},K=D=>{let pe=e.slice(D.startIndex,T.index+1),M=e.slice(D.startIndex+2,T.index),H=FV(M,r);if((D.type==="plus"||D.type==="star")&&H.risky){let Ne=H.safeOutput?(D.output?"":h)+(r.capture?`(${H.safeOutput})`:H.safeOutput):void 0,kr=s[D.tokensIndex];kr.type="text",kr.value=pe,kr.output=Ne||Tr.escapeRegex(pe);for(let Ir=D.tokensIndex+1;Ir<s.length;Ir++)s[Ir].value="",s[Ir].output="",delete s[Ir].suffix;T.output=D.output+kr.output,T.backtrack=!0,te({type:"paren",extglob:!0,value:j,output:""}),ct("parens");return}let Ae=D.close+(r.capture?")":""),rt;if(D.type==="negate"){let Ne=k;if(D.inner&&D.inner.length>1&&D.inner.includes("/")&&(Ne=O(r)),(Ne!==k||xt()||/^\)+$/.test(tt()))&&(Ae=D.close=`)$))${Ne}`),D.inner.includes("*")&&(rt=tt())&&/^\.[^\\/.]+$/.test(rt)){let kr=bm(rt,{...t,fastpaths:!1}).output;Ae=D.close=`)${kr})${Ne})`}D.prev.type==="bos"&&(T.negatedExtglob=!0)}te({type:"paren",extglob:!0,value:j,output:Ae}),ct("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let D=!1,pe=e.replace(NV,(M,H,Ae,rt,Ne,kr)=>rt==="\\"?(D=!0,M):rt==="?"?H?H+rt+(Ne?w.repeat(Ne.length):""):kr===0?I+(Ne?w.repeat(Ne.length):""):w.repeat(Ae.length):rt==="."?p.repeat(Ae.length):rt==="*"?H?H+rt+(Ne?k:""):k:H?M:`\\${M}`);return D===!0&&(r.unescape===!0?pe=pe.replace(/\\/g,""):pe=pe.replace(/\\+/g,M=>M.length%2===0?"\\\\":M?"\\":"")),pe===e&&r.contains===!0?(T.output=e,T):(T.output=Tr.wrapOutput(pe,T,t),T)}for(;!xt();){if(j=ie(),j==="\0")continue;if(j==="\\"){let M=Te();if(M==="/"&&r.bash!==!0||M==="."||M===";")continue;if(!M){j+="\\",te({type:"text",value:j});continue}let H=/^\\+/.exec(tt()),Ae=0;if(H&&H[0].length>2&&(Ae=H[0].length,T.index+=Ae,Ae%2!==0&&(j+="\\")),r.unescape===!0?j=ie():j+=ie(),T.brackets===0){te({type:"text",value:j});continue}}if(T.brackets>0&&(j!=="]"||q.value==="["||q.value==="[^")){if(r.posix!==!1&&j===":"){let M=q.value.slice(1);if(M.includes("[")&&(q.posix=!0,M.includes(":"))){let H=q.value.lastIndexOf("["),Ae=q.value.slice(0,H),rt=q.value.slice(H+2),Ne=IV[rt];if(Ne){q.value=Ae+Ne,T.backtrack=!0,ie(),!i.output&&s.indexOf(q)===1&&(i.output=h);continue}}}(j==="["&&Te()!==":"||j==="-"&&Te()==="]")&&(j=`\\${j}`),j==="]"&&(q.value==="["||q.value==="[^")&&(j=`\\${j}`),r.posix===!0&&j==="!"&&q.value==="["&&(j="^"),q.value+=j,Ee({value:j});continue}if(T.quotes===1&&j!=='"'){j=Tr.escapeRegex(j),q.value+=j,Ee({value:j});continue}if(j==='"'){T.quotes=T.quotes===1?0:1,r.keepQuotes===!0&&te({type:"text",value:j});continue}if(j==="("){lt("parens"),te({type:"paren",value:j});continue}if(j===")"){if(T.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ms("opening","("));let M=se[se.length-1];if(M&&T.parens===M.parens+1){K(se.pop());continue}te({type:"paren",value:j,output:T.parens?")":"\\)"}),ct("parens");continue}if(j==="["){if(r.nobracket===!0||!tt().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ms("closing","]"));j=`\\${j}`}else lt("brackets");te({type:"bracket",value:j});continue}if(j==="]"){if(r.nobracket===!0||q&&q.type==="bracket"&&q.value.length===1){te({type:"text",value:j,output:`\\${j}`});continue}if(T.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ms("opening","["));te({type:"text",value:j,output:`\\${j}`});continue}ct("brackets");let M=q.value.slice(1);if(q.posix!==!0&&M[0]==="^"&&!M.includes("/")&&(j=`/${j}`),q.value+=j,Ee({value:j}),r.literalBrackets===!1||Tr.hasRegexChars(M))continue;let H=Tr.escapeRegex(q.value);if(T.output=T.output.slice(0,-q.value.length),r.literalBrackets===!0){T.output+=H,q.value=H;continue}q.value=`(${a}${H}|${q.value})`,T.output+=q.value;continue}if(j==="{"&&r.nobrace!==!0){lt("braces");let M={type:"brace",value:j,output:"(",outputIndex:T.output.length,tokensIndex:T.tokens.length};X.push(M),te(M);continue}if(j==="}"){let M=X[X.length-1];if(r.nobrace===!0||!M){te({type:"text",value:j,output:j});continue}let H=")";if(M.dots===!0){let Ae=s.slice(),rt=[];for(let Ne=Ae.length-1;Ne>=0&&(s.pop(),Ae[Ne].type!=="brace");Ne--)Ae[Ne].type!=="dots"&&rt.unshift(Ae[Ne].value);H=qV(rt,r),T.backtrack=!0}if(M.comma!==!0&&M.dots!==!0){let Ae=T.output.slice(0,M.outputIndex),rt=T.tokens.slice(M.tokensIndex);M.value=M.output="\\{",j=H="\\}",T.output=Ae;for(let Ne of rt)T.output+=Ne.output||Ne.value}te({type:"brace",value:j,output:H}),ct("braces"),X.pop();continue}if(j==="|"){se.length>0&&se[se.length-1].conditions++,te({type:"text",value:j});continue}if(j===","){let M=j,H=X[X.length-1];H&&he[he.length-1]==="braces"&&(H.comma=!0,M="|"),te({type:"comma",value:j,output:M});continue}if(j==="/"){if(q.type==="dot"&&T.index===T.start+1){T.start=T.index+1,T.consumed="",T.output="",s.pop(),q=i;continue}te({type:"slash",value:j,output:f});continue}if(j==="."){if(T.braces>0&&q.type==="dot"){q.value==="."&&(q.output=p);let M=X[X.length-1];q.type="dots",q.output+=j,q.value+=j,M.dots=!0;continue}if(T.braces+T.parens===0&&q.type!=="bos"&&q.type!=="slash"){te({type:"text",value:j,output:p});continue}te({type:"dot",value:j,output:p});continue}if(j==="?"){if(!(q&&q.value==="(")&&r.noextglob!==!0&&Te()==="("&&Te(2)!=="?"){lr("qmark",j);continue}if(q&&q.type==="paren"){let H=Te(),Ae=j;(q.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(tt()))&&(Ae=`\\${j}`),te({type:"text",value:j,output:Ae});continue}if(r.dot!==!0&&(q.type==="slash"||q.type==="bos")){te({type:"qmark",value:j,output:S});continue}te({type:"qmark",value:j,output:w});continue}if(j==="!"){if(r.noextglob!==!0&&Te()==="("&&(Te(2)!=="?"||!/[!=<:]/.test(Te(3)))){lr("negate",j);continue}if(r.nonegate!==!0&&T.index===0){er();continue}}if(j==="+"){if(r.noextglob!==!0&&Te()==="("&&Te(2)!=="?"){lr("plus",j);continue}if(q&&q.value==="("||r.regex===!1){te({type:"plus",value:j,output:u});continue}if(q&&(q.type==="bracket"||q.type==="paren"||q.type==="brace")||T.parens>0){te({type:"plus",value:j});continue}te({type:"plus",value:u});continue}if(j==="@"){if(r.noextglob!==!0&&Te()==="("&&Te(2)!=="?"){te({type:"at",extglob:!0,value:j,output:""});continue}te({type:"text",value:j});continue}if(j!=="*"){(j==="$"||j==="^")&&(j=`\\${j}`);let M=CV.exec(tt());M&&(j+=M[0],T.index+=M[0].length),te({type:"text",value:j});continue}if(q&&(q.type==="globstar"||q.star===!0)){q.type="star",q.star=!0,q.value+=j,q.output=k,T.backtrack=!0,T.globstar=!0,Ve(j);continue}let D=tt();if(r.noextglob!==!0&&/^\([^?]/.test(D)){lr("star",j);continue}if(q.type==="star"){if(r.noglobstar===!0){Ve(j);continue}let M=q.prev,H=M.prev,Ae=M.type==="slash"||M.type==="bos",rt=H&&(H.type==="star"||H.type==="globstar");if(r.bash===!0&&(!Ae||D[0]&&D[0]!=="/")){te({type:"star",value:j,output:""});continue}let Ne=T.braces>0&&(M.type==="comma"||M.type==="brace"),kr=se.length&&(M.type==="pipe"||M.type==="paren");if(!Ae&&M.type!=="paren"&&!Ne&&!kr){te({type:"star",value:j,output:""});continue}for(;D.slice(0,3)==="/**";){let Ir=e[T.index+4];if(Ir&&Ir!=="/")break;D=D.slice(3),Ve("/**",3)}if(M.type==="bos"&&xt()){q.type="globstar",q.value+=j,q.output=O(r),T.output=q.output,T.globstar=!0,Ve(j);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&!rt&&xt()){T.output=T.output.slice(0,-(M.output+q.output).length),M.output=`(?:${M.output}`,q.type="globstar",q.output=O(r)+(r.strictSlashes?")":"|$)"),q.value+=j,T.globstar=!0,T.output+=M.output+q.output,Ve(j);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&D[0]==="/"){let Ir=D[1]!==void 0?"|$":"";T.output=T.output.slice(0,-(M.output+q.output).length),M.output=`(?:${M.output}`,q.type="globstar",q.output=`${O(r)}${f}|${f}${Ir})`,q.value+=j,T.output+=M.output+q.output,T.globstar=!0,Ve(j+ie()),te({type:"slash",value:"/",output:""});continue}if(M.type==="bos"&&D[0]==="/"){q.type="globstar",q.value+=j,q.output=`(?:^|${f}|${O(r)}${f})`,T.output=q.output,T.globstar=!0,Ve(j+ie()),te({type:"slash",value:"/",output:""});continue}T.output=T.output.slice(0,-q.output.length),q.type="globstar",q.output=O(r),q.value+=j,T.output+=q.output,T.globstar=!0,Ve(j);continue}let pe={type:"star",value:j,output:k};if(r.bash===!0){pe.output=".*?",(q.type==="bos"||q.type==="slash")&&(pe.output=C+pe.output),te(pe);continue}if(q&&(q.type==="bracket"||q.type==="paren")&&r.regex===!0){pe.output=j,te(pe);continue}(T.index===T.start||q.type==="slash"||q.type==="dot")&&(q.type==="dot"?(T.output+=b,q.output+=b):r.dot===!0?(T.output+=x,q.output+=x):(T.output+=C,q.output+=C),Te()!=="*"&&(T.output+=h,q.output+=h)),te(pe)}for(;T.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ms("closing","]"));T.output=Tr.escapeLast(T.output,"["),ct("brackets")}for(;T.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ms("closing",")"));T.output=Tr.escapeLast(T.output,"("),ct("parens")}for(;T.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ms("closing","}"));T.output=Tr.escapeLast(T.output,"{"),ct("braces")}if(r.strictSlashes!==!0&&(q.type==="star"||q.type==="bracket")&&te({type:"maybe_slash",value:"",output:`${f}?`}),T.backtrack===!0){T.output="";for(let D of T.tokens)T.output+=D.output!=null?D.output:D.value,D.suffix&&(T.output+=D.suffix)}return T};bm.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Hp,r.maxLength):Hp,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=qS[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:f,START_ANCHOR:h}=Da.globChars(r.windows),m=r.dot?p:l,y=r.dot?u:l,b=r.capture?"":"?:",x={negated:!1,prefix:""},w=r.bash===!0?".*?":f;r.capture&&(w=`(${w})`);let S=C=>C.noglobstar===!0?w:`(${b}(?:(?!${h}${C.dot?c:i}).)*?)`,P=C=>{switch(C){case"*":return`${m}${a}${w}`;case".*":return`${i}${a}${w}`;case"*.*":return`${m}${w}${i}${a}${w}`;case"*/*":return`${m}${w}${s}${a}${y}${w}`;case"**":return m+S(r);case"**/*":return`(?:${m}${S(r)}${s})?${y}${a}${w}`;case"**/*.*":return`(?:${m}${S(r)}${s})?${y}${w}${i}${a}${w}`;case"**/.*":return`(?:${m}${S(r)}${s})?${i}${a}${w}`;default:{let I=/^(.*?)\.(\w+)$/.exec(C);if(!I)return;let k=P(I[1]);return k?k+i+I[2]:void 0}}},$=Tr.removePrefix(e,x),O=P($);return O&&r.strictSlashes!==!0&&(O+=`${s}?`),O};MS.exports=bm});var zS=E((ece,US)=>{"use strict";var UV=NS(),xm=LS(),FS=qa(),zV=Na(),VV=e=>e&&typeof e=="object"&&!Array.isArray(e),ut=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(f=>ut(f,t,r));return f=>{for(let h of p){let m=h(f);if(m)return m}return!1}}let n=VV(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?ut.compileRe(e,t):ut.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=ut(o.ignore,p,r)}let l=(p,u=!1)=>{let{isMatch:f,match:h,output:m}=ut.test(p,s,t,{glob:e,posix:i}),y={glob:e,state:a,regex:s,posix:i,input:p,output:m,match:h,isMatch:f};return typeof o.onResult=="function"&&o.onResult(y),f===!1?(y.isMatch=!1,u?y:!1):c(p)?(typeof o.onIgnore=="function"&&o.onIgnore(y),y.isMatch=!1,u?y:!1):(typeof o.onMatch=="function"&&o.onMatch(y),u?y:!0)};return r&&(l.state=a),l};ut.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?FS.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=ut.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};ut.matchBase=(e,t,r)=>(t instanceof RegExp?t:ut.makeRe(t,r)).test(FS.basename(e));ut.isMatch=(e,t,r)=>ut(t,r)(e);ut.parse=(e,t)=>Array.isArray(e)?e.map(r=>ut.parse(r,t)):xm(e,{...t,fastpaths:!1});ut.scan=(e,t)=>UV(e,t);ut.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=ut.toRegex(a,t);return n===!0&&(c.state=e),c};ut.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=xm.fastpaths(e,t)),o.output||(o=xm(e,t)),ut.compileRe(o,t,r,n)};ut.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/$^/}};ut.constants=zV;US.exports=ut});var KS=E((tce,HS)=>{"use strict";var VS=zS(),BV=qa();function BS(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:BV.isWindows()}),VS(e,t,r)}Object.assign(BS,VS);HS.exports=BS});var rc=E(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.regexpCode=Le.getEsmExportName=Le.getProperty=Le.safeStringify=Le.stringify=Le.strConcat=Le.addCodeArg=Le.str=Le._=Le.nil=Le._Code=Le.Name=Le.IDENTIFIER=Le._CodeOrName=void 0;var ec=class{};Le._CodeOrName=ec;Le.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var fi=class extends ec{constructor(t){if(super(),!Le.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}}};Le.Name=fi;var Ur=class extends ec{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 fi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Le._Code=Ur;Le.nil=new Ur("");function U_(e,...t){let r=[e[0]],n=0;for(;n<t.length;)ch(r,t[n]),r.push(e[++n]);return new Ur(r)}Le._=U_;var ah=new Ur("+");function z_(e,...t){let r=[tc(e[0])],n=0;for(;n<t.length;)r.push(ah),ch(r,t[n]),r.push(ah,tc(e[++n]));return DK(r),new Ur(r)}Le.str=z_;function ch(e,t){t instanceof Ur?e.push(...t._items):t instanceof fi?e.push(t):e.push(FK(t))}Le.addCodeArg=ch;function DK(e){let t=1;for(;t<e.length-1;){if(e[t]===ah){let r=MK(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function MK(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof fi||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 fi))return`"${e}${t.slice(1)}`}function LK(e,t){return t.emptyStr()?e:e.emptyStr()?t:z_`${e}${t}`}Le.strConcat=LK;function FK(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:tc(Array.isArray(e)?e.join(","):e)}function UK(e){return new Ur(tc(e))}Le.stringify=UK;function tc(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Le.safeStringify=tc;function zK(e){return typeof e=="string"&&Le.IDENTIFIER.test(e)?new Ur(`.${e}`):U_`[${e}]`}Le.getProperty=zK;function VK(e){if(typeof e=="string"&&Le.IDENTIFIER.test(e))return new Ur(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Le.getEsmExportName=VK;function BK(e){return new Ur(e.toString())}Le.regexpCode=BK});var uh=E(gr=>{"use strict";Object.defineProperty(gr,"__esModule",{value:!0});gr.ValueScope=gr.ValueScopeName=gr.Scope=gr.varKinds=gr.UsedValueState=void 0;var yr=rc(),ph=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Al;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Al||(gr.UsedValueState=Al={}));gr.varKinds={const:new yr.Name("const"),let:new yr.Name("let"),var:new yr.Name("var")};var Ol=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof yr.Name?t:this.name(t)}name(t){return new yr.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}}};gr.Scope=Ol;var Tl=class extends yr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,yr._)`.${new yr.Name(r)}[${n}]`}};gr.ValueScopeName=Tl;var HK=(0,yr._)`\n`,lh=class extends Ol{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?HK:yr.nil}}get(){return this._scope}name(t){return new Tl(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,yr._)`${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=yr.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,Al.Started);let p=r(l);if(p){let u=this.opts.es5?gr.varKinds.var:gr.varKinds.const;i=(0,yr._)`${i}${u} ${l} = ${p};${this.opts._n}`}else if(p=o?.(l))i=(0,yr._)`${i}${p}${this.opts._n}`;else throw new ph(l);c.set(l,Al.Completed)})}return i}};gr.ValueScope=lh});var re=E(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.or=be.and=be.not=be.CodeGen=be.operators=be.varKinds=be.ValueScopeName=be.ValueScope=be.Scope=be.Name=be.regexpCode=be.stringify=be.getProperty=be.nil=be.strConcat=be.str=be._=void 0;var Ie=rc(),pn=uh(),Ao=rc();Object.defineProperty(be,"_",{enumerable:!0,get:function(){return Ao._}});Object.defineProperty(be,"str",{enumerable:!0,get:function(){return Ao.str}});Object.defineProperty(be,"strConcat",{enumerable:!0,get:function(){return Ao.strConcat}});Object.defineProperty(be,"nil",{enumerable:!0,get:function(){return Ao.nil}});Object.defineProperty(be,"getProperty",{enumerable:!0,get:function(){return Ao.getProperty}});Object.defineProperty(be,"stringify",{enumerable:!0,get:function(){return Ao.stringify}});Object.defineProperty(be,"regexpCode",{enumerable:!0,get:function(){return Ao.regexpCode}});Object.defineProperty(be,"Name",{enumerable:!0,get:function(){return Ao.Name}});var Cl=uh();Object.defineProperty(be,"Scope",{enumerable:!0,get:function(){return Cl.Scope}});Object.defineProperty(be,"ValueScope",{enumerable:!0,get:function(){return Cl.ValueScope}});Object.defineProperty(be,"ValueScopeName",{enumerable:!0,get:function(){return Cl.ValueScopeName}});Object.defineProperty(be,"varKinds",{enumerable:!0,get:function(){return Cl.varKinds}});be.operators={GT:new Ie._Code(">"),GTE:new Ie._Code(">="),LT:new Ie._Code("<"),LTE:new Ie._Code("<="),EQ:new Ie._Code("==="),NEQ:new Ie._Code("!=="),NOT:new Ie._Code("!"),OR:new Ie._Code("||"),AND:new Ie._Code("&&"),ADD:new Ie._Code("+")};var ro=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},dh=class extends ro{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?pn.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=Ps(this.rhs,t,r)),this}get names(){return this.rhs instanceof Ie._CodeOrName?this.rhs.names:{}}},Rl=class extends ro{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 Ie.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Ps(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Ie.Name?{}:{...this.lhs.names};return Il(t,this.rhs)}},fh=class extends Rl{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},mh=class extends ro{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},hh=class extends ro{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},yh=class extends ro{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},gh=class extends ro{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=Ps(this.code,t,r),this}get names(){return this.code instanceof Ie._CodeOrName?this.code.names:{}}},nc=class extends ro{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)||(KK(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>yi(t,r.names),{})}},no=class extends nc{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},vh=class extends nc{},$s=class extends no{};$s.kind="else";var mi=class e extends no{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 $s(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(V_(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=Ps(this.condition,t,r),this}get names(){let t=super.names;return Il(t,this.condition),this.else&&yi(t,this.else.names),t}};mi.kind="if";var hi=class extends no{};hi.kind="for";var bh=class extends hi{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=Ps(this.iteration,t,r),this}get names(){return yi(super.names,this.iteration.names)}},xh=class extends hi{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?pn.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=Il(super.names,this.from);return Il(t,this.to)}},kl=class extends hi{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=Ps(this.iterable,t,r),this}get names(){return yi(super.names,this.iterable.names)}},oc=class extends no{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)}};oc.kind="func";var ic=class extends nc{render(t){return"return "+super.render(t)}};ic.kind="return";var Sh=class extends no{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&&yi(t,this.catch.names),this.finally&&yi(t,this.finally.names),t}},sc=class extends no{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};sc.kind="catch";var ac=class extends no{render(t){return"finally"+super.render(t)}};ac.kind="finally";var wh=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
8
+ `:""},this._extScope=t,this._scope=new pn.Scope({parent:t}),this._nodes=[new vh]}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 dh(t,i,n)),i}const(t,r,n){return this._def(pn.varKinds.const,t,r,n)}let(t,r,n){return this._def(pn.varKinds.let,t,r,n)}var(t,r,n){return this._def(pn.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Rl(t,r,n))}add(t,r){return this._leafNode(new fh(t,be.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Ie.nil&&this._leafNode(new gh(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,Ie.addCodeArg)(r,o));return r.push("}"),new Ie._Code(r)}if(t,r,n){if(this._blockNode(new mi(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 mi(t))}else(){return this._elseNode(new $s)}endIf(){return this._endBlockNode(mi,$s)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new bh(t),r)}forRange(t,r,n,o,i=this.opts.es5?pn.varKinds.var:pn.varKinds.let){let s=this._scope.toName(t);return this._for(new xh(i,s,r,n),()=>o(s))}forOf(t,r,n,o=pn.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof Ie.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Ie._)`${s}.length`,a=>{this.var(i,(0,Ie._)`${s}[${a}]`),n(i)})}return this._for(new kl("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?pn.varKinds.var:pn.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Ie._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new kl("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(hi)}label(t){return this._leafNode(new mh(t))}break(t){return this._leafNode(new hh(t))}return(t){let r=new ic;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ic)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Sh;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new sc(i),r(i)}return n&&(this._currNode=o.finally=new ac,this.code(n)),this._endBlockNode(sc,ac)}throw(t){return this._leafNode(new yh(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=Ie.nil,n,o){return this._blockNode(new oc(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(oc)}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 mi))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}};be.CodeGen=wh;function yi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Il(e,t){return t instanceof Ie._CodeOrName?yi(e,t.names):e}function Ps(e,t,r){if(e instanceof Ie.Name)return n(e);if(!o(e))return e;return new Ie._Code(e._items.reduce((i,s)=>(s instanceof Ie.Name&&(s=n(s)),s instanceof Ie._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 Ie._Code&&i._items.some(s=>s instanceof Ie.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function KK(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function V_(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Ie._)`!${_h(e)}`}be.not=V_;var GK=B_(be.operators.AND);function WK(...e){return e.reduce(GK)}be.and=WK;var YK=B_(be.operators.OR);function QK(...e){return e.reduce(YK)}be.or=QK;function B_(e){return(t,r)=>t===Ie.nil?r:r===Ie.nil?t:(0,Ie._)`${_h(t)} ${e} ${_h(r)}`}function _h(e){return e instanceof Ie.Name?e:(0,Ie._)`(${e})`}});var $e=E(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.checkStrictMode=_e.getErrorPath=_e.Type=_e.useFunc=_e.setEvaluated=_e.evaluatedPropsToName=_e.mergeEvaluated=_e.eachItem=_e.unescapeJsonPointer=_e.escapeJsonPointer=_e.escapeFragment=_e.unescapeFragment=_e.schemaRefOrVal=_e.schemaHasRulesButRef=_e.schemaHasRules=_e.checkUnknownRules=_e.alwaysValidSchema=_e.toHash=void 0;var Ge=re(),JK=rc();function XK(e){let t={};for(let r of e)t[r]=!0;return t}_e.toHash=XK;function ZK(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(G_(e,t),!W_(t,e.self.RULES.all))}_e.alwaysValidSchema=ZK;function G_(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]||J_(e,`unknown keyword: "${i}"`)}_e.checkUnknownRules=G_;function W_(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}_e.schemaHasRules=W_;function e4(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}_e.schemaHasRulesButRef=e4;function t4({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ge._)`${r}`}return(0,Ge._)`${e}${t}${(0,Ge.getProperty)(n)}`}_e.schemaRefOrVal=t4;function r4(e){return Y_(decodeURIComponent(e))}_e.unescapeFragment=r4;function n4(e){return encodeURIComponent(Ph(e))}_e.escapeFragment=n4;function Ph(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}_e.escapeJsonPointer=Ph;function Y_(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}_e.unescapeJsonPointer=Y_;function o4(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}_e.eachItem=o4;function H_({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Ge.Name?(i instanceof Ge.Name?e(o,i,s):t(o,i,s),s):i instanceof Ge.Name?(t(o,s,i),i):r(i,s);return a===Ge.Name&&!(c instanceof Ge.Name)?n(o,c):c}}_e.mergeEvaluated={props:H_({mergeNames:(e,t,r)=>e.if((0,Ge._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ge._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ge._)`${r} || {}`).code((0,Ge._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Ge._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ge._)`${r} || {}`),Eh(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Q_}),items:H_({mergeNames:(e,t,r)=>e.if((0,Ge._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ge._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Ge._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ge._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Q_(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ge._)`{}`);return t!==void 0&&Eh(e,r,t),r}_e.evaluatedPropsToName=Q_;function Eh(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ge._)`${t}${(0,Ge.getProperty)(n)}`,!0))}_e.setEvaluated=Eh;var K_={};function i4(e,t){return e.scopeValue("func",{ref:t,code:K_[t.code]||(K_[t.code]=new JK._Code(t.code))})}_e.useFunc=i4;var $h;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})($h||(_e.Type=$h={}));function s4(e,t,r){if(e instanceof Ge.Name){let n=t===$h.Num;return r?n?(0,Ge._)`"[" + ${e} + "]"`:(0,Ge._)`"['" + ${e} + "']"`:n?(0,Ge._)`"/" + ${e}`:(0,Ge._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ge.getProperty)(e).toString():"/"+Ph(e)}_e.getErrorPath=s4;function J_(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}_e.checkStrictMode=J_});var nr=E(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});var Dt=re(),a4={data:new Dt.Name("data"),valCxt:new Dt.Name("valCxt"),instancePath:new Dt.Name("instancePath"),parentData:new Dt.Name("parentData"),parentDataProperty:new Dt.Name("parentDataProperty"),rootData:new Dt.Name("rootData"),dynamicAnchors:new Dt.Name("dynamicAnchors"),isAllOfVariant:new Dt.Name("isAllOfVariant"),vErrors:new Dt.Name("vErrors"),errors:new Dt.Name("errors"),this:new Dt.Name("this"),self:new Dt.Name("self"),scope:new Dt.Name("scope"),json:new Dt.Name("json"),jsonPos:new Dt.Name("jsonPos"),jsonLen:new Dt.Name("jsonLen"),jsonPart:new Dt.Name("jsonPart")};Ah.default=a4});var cc=E(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.extendErrors=Wt.resetErrorsCount=Wt.reportExtraError=Wt.reportError=Wt.keyword$DataError=Wt.keywordError=void 0;var qe=re(),Nl=$e(),or=nr();Wt.keywordError={message:({keyword:e})=>(0,qe.str)`must pass "${e}" keyword validation`};Wt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,qe.str)`"${e}" keyword must be ${t} ($data)`:(0,qe.str)`"${e}" keyword is invalid ($data)`};function c4(e,t=Wt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=e$(e,t,r);n??(s||a)?X_(i,c):Z_(o,(0,qe._)`[${c}]`)}Wt.reportError=c4;function p4(e,t=Wt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=e$(e,t,r);X_(o,a),i||s||Z_(n,or.default.vErrors)}Wt.reportExtraError=p4;function l4(e,t){e.assign(or.default.errors,t),e.if((0,qe._)`${or.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,qe._)`${or.default.vErrors}.length`,t),()=>e.assign(or.default.vErrors,null)))}Wt.resetErrorsCount=l4;function u4({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,or.default.errors,a=>{e.const(s,(0,qe._)`${or.default.vErrors}[${a}]`),e.if((0,qe._)`${s}.instancePath === undefined`,()=>e.assign((0,qe._)`${s}.instancePath`,(0,qe.strConcat)(or.default.instancePath,i.errorPath))),e.assign((0,qe._)`${s}.schemaPath`,(0,qe.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,qe._)`${s}.schema`,r),e.assign((0,qe._)`${s}.data`,n))})}Wt.extendErrors=u4;function X_(e,t){let r=e.const("err",t);e.if((0,qe._)`${or.default.vErrors} === null`,()=>e.assign(or.default.vErrors,(0,qe._)`[${r}]`),(0,qe._)`${or.default.vErrors}.push(${r})`),e.code((0,qe._)`${or.default.errors}++`)}function Z_(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,qe._)`new ${e.ValidationError}(${t})`):(r.assign((0,qe._)`${n}.errors`,t),r.return(!1))}var gi={keyword:new qe.Name("keyword"),schemaPath:new qe.Name("schemaPath"),params:new qe.Name("params"),propertyName:new qe.Name("propertyName"),message:new qe.Name("message"),schema:new qe.Name("schema"),parentSchema:new qe.Name("parentSchema")};function e$(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,qe._)`{}`:d4(e,t,r)}function d4(e,t,r={}){let{gen:n,it:o}=e,i=[f4(o,r),m4(e,r)];return h4(e,t,i),n.object(...i)}function f4({errorPath:e},{instancePath:t}){let r=t?(0,qe.str)`${e}${(0,Nl.getErrorPath)(t,Nl.Type.Str)}`:e;return[or.default.instancePath,(0,qe.strConcat)(or.default.instancePath,r)]}function m4({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,qe.str)`${t}/${e}`;return r&&(o=(0,qe.str)`${o}${(0,Nl.getErrorPath)(r,Nl.Type.Str)}`),[gi.schemaPath,o]}function h4(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([gi.keyword,o],[gi.params,typeof t=="function"?t(e):t||(0,qe._)`{}`]),c.messages&&n.push([gi.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([gi.schema,s],[gi.parentSchema,(0,qe._)`${p}${u}`],[or.default.data,i]),l&&n.push([gi.propertyName,l])}});var r$=E(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.boolOrEmptySchema=Es.topBoolOrEmptySchema=void 0;var y4=cc(),g4=re(),v4=nr(),b4={message:"boolean schema is false"};function x4(e){let{gen:t,schema:r,validateName:n}=e;r===!1?t$(e,!1):typeof r=="object"&&r.$async===!0?t.return(v4.default.data):(t.assign((0,g4._)`${n}.errors`,null),t.return(!0))}Es.topBoolOrEmptySchema=x4;function S4(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),t$(e)):r.var(t,!0)}Es.boolOrEmptySchema=S4;function t$(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,y4.reportError)(o,b4,void 0,t)}});var Oh=E(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.getRules=As.isJSONType=void 0;var w4=["string","number","integer","boolean","null","object","array"],_4=new Set(w4);function $4(e){return typeof e=="string"&&_4.has(e)}As.isJSONType=$4;function P4(){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:{}}}As.getRules=P4});var Th=E(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.shouldUseRule=Oo.shouldUseGroup=Oo.schemaHasRulesForType=void 0;function E4({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&n$(e,n)}Oo.schemaHasRulesForType=E4;function n$(e,t){return t.rules.some(r=>o$(e,r))}Oo.shouldUseGroup=n$;function o$(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))}Oo.shouldUseRule=o$});var pc=E(Yt=>{"use strict";Object.defineProperty(Yt,"__esModule",{value:!0});Yt.reportTypeError=Yt.checkDataTypes=Yt.checkDataType=Yt.coerceAndCheckDataType=Yt.getJSONTypes=Yt.getSchemaTypes=Yt.DataType=void 0;var A4=Oh(),O4=Th(),T4=cc(),fe=re(),i$=$e(),Os;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Os||(Yt.DataType=Os={}));function R4(e){let t=s$(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}Yt.getSchemaTypes=R4;function s$(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(A4.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Yt.getJSONTypes=s$;function k4(e,t){let{gen:r,data:n,opts:o}=e,i=I4(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,O4.schemaHasRulesForType)(e,t[0]));if(s){let a=kh(t,n,o.strictNumbers,Os.Wrong);r.if(a,()=>{i.length?C4(e,t,i):Ih(e)})}return s}Yt.coerceAndCheckDataType=k4;var a$=new Set(["string","number","integer","boolean","null"]);function I4(e,t){return t?e.filter(r=>a$.has(r)||t==="array"&&r==="array"):[]}function C4(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,fe._)`typeof ${o}`),a=n.let("coerced",(0,fe._)`undefined`);i.coerceTypes==="array"&&n.if((0,fe._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,fe._)`${o}[0]`).assign(s,(0,fe._)`typeof ${o}`).if(kh(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,fe._)`${a} !== undefined`);for(let l of r)(a$.has(l)||l==="array"&&i.coerceTypes==="array")&&c(l);n.else(),Ih(e),n.endIf(),n.if((0,fe._)`${a} !== undefined`,()=>{n.assign(o,a),N4(e,a)});function c(l){switch(l){case"string":n.elseIf((0,fe._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,fe._)`"" + ${o}`).elseIf((0,fe._)`${o} === null`).assign(a,(0,fe._)`""`);return;case"number":n.elseIf((0,fe._)`${s} == "boolean" || ${o} === null
9
+ || (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,fe._)`+${o}`);return;case"integer":n.elseIf((0,fe._)`${s} === "boolean" || ${o} === null
10
+ || (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,fe._)`+${o}`);return;case"boolean":n.elseIf((0,fe._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,fe._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,fe._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,fe._)`${s} === "string" || ${s} === "number"
11
+ || ${s} === "boolean" || ${o} === null`).assign(a,(0,fe._)`[${o}]`)}}}function N4({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,fe._)`${t} !== undefined`,()=>e.assign((0,fe._)`${t}[${r}]`,n))}function Rh(e,t,r,n=Os.Correct){let o=n===Os.Correct?fe.operators.EQ:fe.operators.NEQ,i;switch(e){case"null":return(0,fe._)`${t} ${o} null`;case"array":i=(0,fe._)`Array.isArray(${t})`;break;case"object":i=(0,fe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,fe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,fe._)`typeof ${t} ${o} ${e}`}return n===Os.Correct?i:(0,fe.not)(i);function s(a=fe.nil){return(0,fe.and)((0,fe._)`typeof ${t} == "number"`,a,r?(0,fe._)`isFinite(${t})`:fe.nil)}}Yt.checkDataType=Rh;function kh(e,t,r,n){if(e.length===1)return Rh(e[0],t,r,n);let o,i=(0,i$.toHash)(e);if(i.array&&i.object){let s=(0,fe._)`typeof ${t} != "object"`;o=i.null?s:(0,fe._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=fe.nil;i.number&&delete i.integer;for(let s in i)o=(0,fe.and)(o,Rh(s,t,r,n));return o}Yt.checkDataTypes=kh;var q4={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,fe._)`{type: ${e}}`:(0,fe._)`{type: ${t}}`};function Ih(e){let t=j4(e);(0,T4.reportError)(t,q4)}Yt.reportTypeError=Ih;function j4(e){let{gen:t,data:r,schema:n}=e,o=(0,i$.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var p$=E(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.assignDefaults=void 0;var Ts=re(),D4=$e();function M4(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)c$(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>c$(e,i,o.default))}ql.assignDefaults=M4;function c$(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Ts._)`${i}${(0,Ts.getProperty)(t)}`;if(o){(0,D4.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Ts._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Ts._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Ts._)`${a} = ${(0,Ts.stringify)(r)}`)}});var Nh=E(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.getSkipCondition=void 0;var jl=re(),Ch=nr();function L4(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,jl._)`typeof ${Ch.default.this} == "object" && ${Ch.default.this} && ${Ch.default.this}.apiContext`;return o&&s.push((0,jl._)`${a} === "request"`),i&&s.push((0,jl._)`${a} === "response"`),(0,jl.or)(...s)}Dl.getSkipCondition=L4});var zr=E(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.validateUnion=He.validateArray=He.usePattern=He.callValidateCode=He.schemaProperties=He.allSchemaProperties=He.noPropertyInData=He.propertyInData=He.isOwnProperty=He.hasPropFunc=He.reportMissingProp=He.checkMissingProp=He.checkReportMissingProp=void 0;var We=re(),qh=$e(),oo=nr(),F4=$e(),U4=Nh();function z4(e,t){let{gen:r,data:n,it:o}=e;r.if(Dh(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,We._)`${t}`},!0),e.error()})}He.checkReportMissingProp=z4;function V4({gen:e,data:t,it:{opts:r},parentSchema:n},o,i){return(0,We.or)(...o.map(s=>{var a;return(0,We.and)((0,We.not)((a=(0,U4.getSkipCondition)(n,s))!==null&&a!==void 0?a:(0,We._)`false`),Dh(e,t,s,r.ownProperties),(0,We._)`${i} = ${s}`)}))}He.checkMissingProp=V4;function B4(e,t){e.setParams({missingProperty:t},!0),e.error()}He.reportMissingProp=B4;function l$(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,We._)`Object.prototype.hasOwnProperty`})}He.hasPropFunc=l$;function jh(e,t,r){return(0,We._)`${l$(e)}.call(${t}, ${r})`}He.isOwnProperty=jh;function H4(e,t,r,n){let o=(0,We._)`${t}${(0,We.getProperty)(r)} !== undefined`;return n?(0,We._)`${o} && ${jh(e,t,r)}`:o}He.propertyInData=H4;function Dh(e,t,r,n){let o=(0,We._)`${t}${(0,We.getProperty)(r)} === undefined`;return n?(0,We.or)(o,(0,We.not)(jh(e,t,r))):o}He.noPropertyInData=Dh;function u$(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}He.allSchemaProperties=u$;function K4(e,t){return u$(t).filter(r=>!(0,qh.alwaysValidSchema)(e,t[r]))}He.schemaProperties=K4;function G4({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,l){let p=l?(0,We._)`${e}, ${t}, ${n}${o}`:t,u=[[oo.default.instancePath,(0,We.strConcat)(oo.default.instancePath,i)],[oo.default.parentData,s.parentData],[oo.default.parentDataProperty,s.parentDataProperty],[oo.default.rootData,oo.default.rootData],[oo.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&u.push([oo.default.dynamicAnchors,oo.default.dynamicAnchors]);let f=(0,We._)`${p}, ${r.object(...u)}`;return c!==We.nil?(0,We._)`${a}.call(${c}, ${f})`:(0,We._)`${a}(${f})`}He.callValidateCode=G4;var W4=(0,We._)`new RegExp`;function Y4({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,We._)`${o.code==="new RegExp"?W4:(0,F4.useFunc)(e,o)}(${r}, ${n})`})}He.usePattern=Y4;function Q4(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,We._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:qh.Type.Num},i),t.if((0,We.not)(i),a)})}}He.validateArray=Q4;function J4(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,qh.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,We._)`${a} || ${c}`),e.mergeValidEvaluated(u,c)||t.if((0,We.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}He.validateUnion=J4});var m$=E(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});Tn.validateKeywordUsage=Tn.validSchemaType=Tn.funcKeywordCode=Tn.macroKeywordCode=void 0;var ir=re(),vi=nr(),X4=zr(),Z4=cc();function eG(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=f$(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:ir.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Tn.macroKeywordCode=eG;function tG(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;nG(c,t);let l=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,p=f$(n,o,l),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)y(),t.modifying&&d$(e),b(()=>e.error());else{let x=t.async?h():m();t.modifying&&d$(e),b(()=>rG(e,x))}}function h(){let x=n.let("ruleErrs",null);return n.try(()=>y((0,ir._)`await `),w=>n.assign(u,!1).if((0,ir._)`${w} instanceof ${c.ValidationError}`,()=>n.assign(x,(0,ir._)`${w}.errors`),()=>n.throw(w))),x}function m(){let x=(0,ir._)`${p}.errors`;return n.assign(x,null),y(ir.nil),x}function y(x=t.async?(0,ir._)`await `:ir.nil){let w=c.opts.passContext?vi.default.this:vi.default.self,S=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,ir._)`${x}${(0,X4.callValidateCode)(e,p,w,S)}`,t.modifying)}function b(x){var w;n.if((0,ir.not)((w=t.valid)!==null&&w!==void 0?w:u),x)}}Tn.funcKeywordCode=tG;function d$(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ir._)`${n.parentData}[${n.parentDataProperty}]`))}function rG(e,t){let{gen:r}=e;r.if((0,ir._)`Array.isArray(${t})`,()=>{r.assign(vi.default.vErrors,(0,ir._)`${vi.default.vErrors} === null ? ${t} : ${vi.default.vErrors}.concat(${t})`).assign(vi.default.errors,(0,ir._)`${vi.default.vErrors}.length`),(0,Z4.extendErrors)(e)},()=>e.error())}function nG({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function f$(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,ir.stringify)(r)})}function oG(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")}Tn.validSchemaType=oG;function iG({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)}}Tn.validateKeywordUsage=iG});var y$=E(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.extendSubschemaMode=To.extendSubschemaData=To.getSubschema=void 0;var Rn=re(),h$=$e();function sG(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,Rn._)`${e.schemaPath}${(0,Rn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Rn._)`${e.schemaPath}${(0,Rn.getProperty)(t)}${(0,Rn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,h$.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')}To.getSubschema=sG;function aG(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,f=a.let("data",(0,Rn._)`${t.data}${(0,Rn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Rn.str)`${l}${(0,h$.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Rn._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(o!==void 0){let l=o instanceof Rn.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]}}To.extendSubschemaData=aG;function cG(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}To.extendSubschemaMode=cG});var lc=E((Nme,g$)=>{"use strict";g$.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 Mh=E((qme,v$)=>{"use strict";var Ro=v$.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(){};Ml(t,n,o,e,"",e)};Ro.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Ro.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Ro.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Ro.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 Ml(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 Ro.arrayKeywords)for(var f=0;f<u.length;f++)Ml(e,t,r,u[f],o+"/"+p+"/"+f,i,o,p,n,f)}else if(p in Ro.propsKeywords){if(u&&typeof u=="object")for(var h in u)Ml(e,t,r,u[h],o+"/"+p+"/"+pG(h),i,o,p,n,h)}else(p in Ro.keywords||e.allKeys&&!(p in Ro.skipKeywords))&&Ml(e,t,r,u,o+"/"+p,i,o,p,n)}r(n,o,i,s,a,c,l)}}function pG(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var uc=E(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.getSchemaRefs=vr.resolveUrl=vr.normalizeId=vr._getFullPath=vr.getFullPath=vr.inlineRef=void 0;var lG=$e(),uG=lc(),dG=Mh(),fG=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function mG(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Lh(e):t?b$(e)<=t:!1}vr.inlineRef=mG;var hG=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Lh(e){for(let t in e){if(hG.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Lh)||typeof r=="object"&&Lh(r))return!0}return!1}function b$(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!fG.has(r)&&(typeof e[r]=="object"&&(0,lG.eachItem)(e[r],n=>t+=b$(n)),t===1/0))return 1/0}return t}function x$(e,t="",r){r!==!1&&(t=Rs(t));let n=e.parse(t);return S$(e,n)}vr.getFullPath=x$;function S$(e,t){return e.serialize(t).split("#")[0]+"#"}vr._getFullPath=S$;var yG=/#\/?$/;function Rs(e){return e?e.replace(yG,""):""}vr.normalizeId=Rs;function gG(e,t,r){return r=Rs(r),e.resolve(t,r)}vr.resolveUrl=gG;var vG=/^[a-z_][-a-z0-9._]*$/i;function bG(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Rs(e[r]||t),i={"":o},s=x$(n,o,!1),a={},c=new Set;return dG(e,{allKeys:!0},(u,f,h,m)=>{if(m===void 0)return;let y=s+f,b=i[m];typeof u[r]=="string"&&(b=x.call(this,u[r])),w.call(this,u.$anchor),w.call(this,u.$dynamicAnchor),i[f]=b;function x(S){let P=this.opts.uriResolver.resolve;if(S=Rs(b?P(b,S):S),c.has(S))throw p(S);c.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(u,$.schema,S):S!==Rs(y)&&(S[0]==="#"?(l(u,a[S],S),a[S]=u):this.refs[S]=y),S}function w(S){if(typeof S=="string"){if(!vG.test(S))throw new Error(`invalid anchor "${S}"`);x.call(this,`#${S}`)}}}),a;function l(u,f,h){if(f!==void 0&&!uG(u,f))throw p(h)}function p(u){return new Error(`reference "${u}" resolves to more than one schema`)}}vr.getSchemaRefs=bG});var ks=E(ko=>{"use strict";Object.defineProperty(ko,"__esModule",{value:!0});ko.getData=ko.KeywordCxt=ko.validateFunctionCode=void 0;var E$=r$(),w$=pc(),Uh=Th(),Ll=pc(),xG=p$(),fc=m$(),Fh=y$(),W=re(),ee=nr(),SG=uc(),io=$e(),dc=cc();function wG(e){if(T$(e)&&(R$(e),O$(e))){PG(e);return}A$(e,()=>(0,E$.topBoolOrEmptySchema)(e))}ko.validateFunctionCode=wG;function A$({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,W._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${_$(r,o)}`),$G(e,o),e.code(i)}):e.func(t,(0,W._)`${ee.default.data}, ${_G(o)}`,n.$async,()=>e.code(_$(r,o)).code(i))}function _G(e){return(0,W._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${e.dynamicRef?(0,W._)`, ${ee.default.dynamicAnchors}={}`:W.nil}, ${ee.default.isAllOfVariant} = 0}={}`}function $G(e,t){e.if(ee.default.valCxt,()=>{e.var(ee.default.instancePath,(0,W._)`${ee.default.valCxt}.${ee.default.instancePath}`),e.var(ee.default.parentData,(0,W._)`${ee.default.valCxt}.${ee.default.parentData}`),e.var(ee.default.parentDataProperty,(0,W._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),e.var(ee.default.rootData,(0,W._)`${ee.default.valCxt}.${ee.default.rootData}`),e.var(ee.default.isAllOfVariant,(0,W._)`${ee.default.valCxt}.${ee.default.isAllOfVariant}`),t.dynamicRef&&e.var(ee.default.dynamicAnchors,(0,W._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{e.var(ee.default.instancePath,(0,W._)`""`),e.var(ee.default.parentData,(0,W._)`undefined`),e.var(ee.default.parentDataProperty,(0,W._)`undefined`),e.var(ee.default.rootData,ee.default.data),e.var(ee.default.isAllOfVariant,(0,W._)`0`),t.dynamicRef&&e.var(ee.default.dynamicAnchors,(0,W._)`{}`)})}function PG(e){let{schema:t,opts:r,gen:n}=e;A$(e,()=>{r.$comment&&t.$comment&&I$(e),RG(e),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),r.unevaluated&&EG(e),k$(e),CG(e)})}function EG(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,W._)`${r}.evaluated`),t.if((0,W._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,W._)`${e.evaluated}.props`,(0,W._)`undefined`)),t.if((0,W._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,W._)`${e.evaluated}.items`,(0,W._)`undefined`))}function _$(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,W._)`/*# sourceURL=${r} */`:W.nil}function AG(e,t){if(T$(e)&&(R$(e),O$(e))){OG(e,t);return}(0,E$.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 T$(e){return typeof e.schema!="boolean"}function OG(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&I$(e),kG(e),IG(e);let i=n.const("_errs",ee.default.errors);k$(e,i),n.var(t,(0,W._)`${i} === ${ee.default.errors}`)}function R$(e){(0,io.checkUnknownRules)(e),TG(e)}function k$(e,t){if(e.opts.jtd)return $$(e,[],!1,t);let r=(0,w$.getSchemaTypes)(e.schema),n=(0,w$.coerceAndCheckDataType)(e,r);$$(e,r,!n,t)}function TG(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,io.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function RG(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,io.checkStrictMode)(e,"default is ignored in the schema root")}function kG(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,SG.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function IG(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function I$({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,W._)`${ee.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,W.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${ee.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function CG(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,W._)`${ee.default.errors} === 0`,()=>t.return(ee.default.data),()=>t.throw((0,W._)`new ${o}(${ee.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,ee.default.vErrors),i.unevaluated&&NG(e),t.return((0,W._)`${ee.default.errors} === 0`))}function NG({gen:e,evaluated:t,props:r,items:n}){r instanceof W.Name&&e.assign((0,W._)`${t}.props`,r),n instanceof W.Name&&e.assign((0,W._)`${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,io.schemaHasRulesButRef)(i,p))){o.block(()=>N$(e,"$ref",p.all.$ref.definition));return}c.jtd||qG(e,t),o.block(()=>{for(let f of p.rules)u(f);u(p.post)});function u(f){(0,Uh.shouldUseGroup)(i,f)&&(f.type?(o.if((0,Ll.checkDataType)(f.type,s,c.strictNumbers)),P$(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,Ll.reportTypeError)(e)),o.endIf()):P$(e,f),a||o.if((0,W._)`${ee.default.errors} === ${n||0}`))}}function P$(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,xG.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,Uh.shouldUseRule)(n,s)||i(n,s))&&N$(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 qG(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(jG(e,t),e.opts.allowUnionTypes||DG(e,t),MG(e,e.dataTypes))}function jG(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{C$(e.dataTypes,r)||zh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),FG(e,t)}}function DG(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&zh(e,"use allowUnionTypes to allow union type keyword")}function MG(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Uh.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>LG(t,s))&&zh(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function LG(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function C$(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function FG(e,t){let r=[];for(let n of e.dataTypes)C$(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function zh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,io.checkStrictMode)(e,t,e.opts.strictTypes)}var Fl=class{constructor(t,r,n){if((0,fc.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,io.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",q$(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,fc.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",ee.default.errors))}result(t,r,n){this.failResult((0,W.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,W.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,W._)`${r} !== undefined && (${(0,W.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?dc.reportExtraError:dc.reportError)(this,this.def.error,r)}$dataError(){(0,dc.reportError)(this,this.def.$dataError||dc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,dc.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=W.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=W.nil,r=W.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,W.or)((0,W._)`${o} === undefined`,r)),t!==W.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==W.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,W.or)(s(),a());function s(){if(n.length){if(!(r instanceof W.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,W._)`${(0,Ll.checkDataTypes)(c,r,i.opts.strictNumbers,Ll.DataType.Wrong)}`}return W.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,W._)`!${c}(${r})`}return W.nil}}subschema(t,r,n){let o=(0,Fh.getSubschema)(this.it,t);(0,Fh.extendSubschemaData)(o,this.it,t),(0,Fh.extendSubschemaMode)(o,t);let i={...this.it,...o,items:void 0,props:void 0,isAllOfVariant:n};return AG(i,r),i}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=io.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=io.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,W.Name)),!0}};ko.KeywordCxt=Fl;function N$(e,t,r,n){let o=new Fl(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,fc.funcKeywordCode)(o,r):"macro"in r?(0,fc.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,fc.funcKeywordCode)(o,r)}var UG=/^\/(?:[^~]|~0|~1)*$/,zG=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function q$(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return ee.default.rootData;if(e[0]==="/"){if(!UG.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=ee.default.rootData}else{let l=zG.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,W._)`${i}${(0,W.getProperty)((0,io.unescapeJsonPointer)(l))}`,s=(0,W._)`${s} && ${i}`);return s;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}ko.getData=q$});var mc=E(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});var Vh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Bh.default=Vh});var Is=E(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var Hh=uc(),Kh=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Hh.resolveUrl)(t,r,n),this.missingSchema=(0,Hh.normalizeId)((0,Hh.getFullPath)(t,this.missingRef))}};Gh.default=Kh});var hc=E(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.resolveSchema=Vr.getCompilingSchema=Vr.resolveRef=Vr.compileSchema=Vr.SchemaEnv=void 0;var ln=re(),VG=mc(),bi=nr(),un=uc(),j$=$e(),BG=ks(),Cs=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,un.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Vr.SchemaEnv=Cs;function Yh(e){let t=M$.call(this,e);if(t)return t;let r=(0,un.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new ln.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:VG.default,code:(0,ln._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:bi.default.data,parentData:bi.default.parentData,parentDataProperty:bi.default.parentDataProperty,dataNames:[bi.default.data],dataPathArr:[ln.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ln.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ln.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ln._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,BG.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let u=s.toString();p=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(bi.default.scope)}return ${u}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${bi.default.self}`,`${bi.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:m,items:y}=l;h.evaluated={props:m instanceof ln.Name?void 0:m,items:y instanceof ln.Name?void 0:y,dynamicProps:m instanceof ln.Name,dynamicItems:y instanceof ln.Name},h.source&&(h.source.evaluated=(0,ln.stringify)(h.evaluated))}return e.validate=h,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)}}Vr.compileSchema=Yh;function HG(e,t,r){var n;let o=(0,un.resolveUrl)(this.opts.uriResolver,t,r),i=e.refs[o];if(i)return i;let s=D$.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 Cs({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=D$.call(this,e,o))}if(s!==void 0)return e.refs[o]=KG.call(this,s)}Vr.resolveRef=HG;function KG(e){return(0,un.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Yh.call(this,e)}function M$(e){for(let t of this._compilations)if(GG(t,e))return t}Vr.getCompilingSchema=M$;function GG(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function D$(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Ul.call(this,e,t)}function Ul(e,t){let r=this.opts.uriResolver.parse(t),n=(0,un._getFullPath)(this.opts.uriResolver,r),o=(0,un.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Wh.call(this,r,e);let i=(0,un.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Ul.call(this,e,s);return typeof a?.schema!="object"?void 0:Wh.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||Yh.call(this,s),i===(0,un.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(o=(0,un.resolveUrl)(this.opts.uriResolver,o,l)),new Cs({schema:a,schemaId:c,root:e,baseId:o})}return Wh.call(this,r,s)}}Vr.resolveSchema=Ul;var WG=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Wh(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,j$.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!WG.has(a)&&l&&(t=(0,un.resolveUrl)(this.opts.uriResolver,t,l))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,j$.schemaHasRulesButRef)(r,this.RULES)){let a=(0,un.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Ul.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Cs({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var L$=E((Ume,YG)=>{YG.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 ty=E((zme,G$)=>{"use strict";var QG=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Jh=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),JG=RegExp.prototype.test.bind(/^\d*$/u),xi=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Xh=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),U$=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),Zh=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),XG=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),br=new Array(256);{let e="0123456789ABCDEF";for(let t=0;t<256;t++)br[t]="%"+e[t>>4]+e[t&15]}function Qt(e){return e<2048?br[192|e>>6]+br[128|e&63]:e<65536?br[224|e>>12]+br[128|e>>6&63]+br[128|e&63]:br[240|e>>18]+br[128|e>>12&63]+br[128|e>>6&63]+br[128|e&63]}function ZG(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 eW=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),tW=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),rW=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),nW=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function oW(e){if(e.length===0)return!1;for(let t=0;t<e.length;t++)if(!rW(e[t])){if(e[t]==="%"&&t+2<e.length&&xi(e.slice(t+1,t+3))){t+=2;continue}return!1}return!0}function F$(e){let t=-1,r=0,n=-1,o=0;for(let a=0;a<e.length;a++)e[a]==="0"?(n===-1&&(n=a),o++,o>r&&(r=o,t=n)):(n=-1,o=0);if(r<2)return e.join(":");let i=e.slice(0,t).join(":"),s=e.slice(t+r).join(":");return i+"::"+s}function iW(e){let t=e.indexOf("::");if(t!==-1&&e.indexOf("::",t+1)!==-1)return;let r=t===-1?e.split(":"):e.slice(0,t).split(":"),n=t===-1?[]:e.slice(t+2).split(":");t!==-1&&(r.length===1&&r[0]===""&&(r.length=0),n.length===1&&n[0]===""&&(n.length=0));let o=r.concat(n),i=0;for(let a=0;a<o.length;a++){let c=o[a];if(c==="")return;if(c.indexOf(".")!==-1){if(a!==o.length-1||t!==-1&&n.length===0||!Jh(c))return;i+=2;continue}if(!eW(c))return;o[a]=parseInt(c,16).toString(16),i++}if(t===-1)return i!==8?void 0:F$(o);if(i>=8)return;let s=o.slice(0,r.length);for(let a=i;a<8;a++)s.push("0");for(let a=r.length;a<o.length;a++)s.push(o[a]);return F$(s)}function Qh(e){let t=e[0]==="["&&e[e.length-1]==="]";if((e[0]==="["||e[e.length-1]==="]")&&!t)return{host:e,isIPV6:!1,error:!0};let n=t?e.slice(1,-1):e;if(t&&tW(n))return n=n.toLowerCase(),{host:`[${n}]`,escapedHost:n,isIPV6:!1,isIPVFuture:!0};if(sW(n,":")<2)return{host:e,isIPV6:!1,error:t};let o="",i=n.indexOf("%");if(i!==-1){let a=n.slice(i,i+3).toLowerCase()==="%25"?3:1;if(o=n.slice(i+a),!oW(o))return{host:e,isIPV6:!1,error:!0};n=n.slice(0,i)}let s=iW(n);return s===void 0?{host:e,isIPV6:!1,error:!0}:{host:s+(o?"%"+o:""),escapedHost:s+(o?"%25"+o:""),isIPV6:!0}}function sW(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function z$(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("")}function aW(e){if(e===""||e[0]==="/")return z$(e);let t=e.split("/"),r=t.length-1,n=[],o=!1;for(let i=0;i<=r;i++){let s=t[i];s==="."||s===".."?(s===".."&&(n.length!==0&&n[n.length-1]!==".."?n.pop():n.push("..")),o=i===r):n.push(s)}return o&&n[n.length-1]!==".."&&n.push(""),(n.length===0||n[0]===""||n[0].includes(":"))&&n.unshift("."),n.join("/")}var cW={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},pW=/[@/?#:]/g,lW=/[@/?#]/g;function V$(e,t){let r=t?lW:pW;return r.lastIndex=0,e.replace(r,n=>cW[n])}function B$(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(xi(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));t&&Xh(s)?r+=s:r+="%"+i,n+=2;continue}}r+=e[n]}return r}function uW(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(n==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(xi(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));s!=="."&&Xh(s)?t+=s:t+="%"+i,r+=2;continue}}if(U$(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=K$(o)?n:br[o];else if(o<55296||o>57343)t+=Qt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=Qt(65536+(o-55296<<10)+(i-56320)),r++):t+=Qt(65533)}else t+=Qt(65533)}}return t}function dW(e,t=!1){let r="",n=t&&e[0]!=="/";for(let o=0;o<e.length;o++){let i=e[o];if(i==="%"&&o+2<e.length){let s=e.slice(o+1,o+3);if(xi(s)){r+="%"+s.toUpperCase(),o+=2;continue}}if(i==="/"&&(n=!1),U$(i)&&(i!==":"||!n))r+=i;else{let s=e.charCodeAt(o);if(s<128)r+=br[s];else if(s<55296||s>57343)r+=Qt(s);else if(s<=56319&&o+1<e.length){let a=e.charCodeAt(o+1);a>=56320&&a<=57343?(r+=Qt(65536+(s-55296<<10)+(a-56320)),o++):r+=Qt(65533)}else r+=Qt(65533)}}return r}function ey(e,t){let r="";for(let n=0;n<e.length;n++){let o=e[n];if(o==="%"&&n+2<e.length){let i=e.slice(n+1,n+3);if(xi(i)){r+="%"+i.toUpperCase(),n+=2;continue}}if(t(o))r+=o;else{let i=e.charCodeAt(n);if(i<128)r+=br[i];else if(i<55296||i>57343)r+=Qt(i);else if(i<=56319&&n+1<e.length){let s=e.charCodeAt(n+1);s>=56320&&s<=57343?(r+=Qt(65536+(i-55296<<10)+(s-56320)),n++):r+=Qt(65533)}else r+=Qt(65533)}}return r}function H$(e){return ey(e,XG)}function fW(e){return ey(e,Zh)}function mW(e){return ey(e,Zh)}function K$(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===42||e===43||e===45||e===46||e===47||e===64||e===95}function hW(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(n==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(xi(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));Xh(s)?t+=s:t+="%"+i,r+=2;continue}}if(Zh(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=K$(o)?n:br[o];else if(o<55296||o>57343)t+=Qt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=Qt(65536+(o-55296<<10)+(i-56320)),r++):t+=Qt(65533)}else t+=Qt(65533)}}return t}function yW(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(xi(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function gW(e){let t=[];if(e.userinfo!==void 0&&(t.push(H$(e.userinfo)),t.push("@")),e.host!==void 0){let r=e.host;if(!Jh(r)){let n=Qh(r);n.isIPV6!==!0&&n.isIPVFuture!==!0&&(r=B$(r,!0),n=Qh(r)),n.isIPV6===!0||n.isIPVFuture===!0?r=`[${n.escapedHost}]`:r=V$(r,!1)}t.push(r)}if(typeof e.port=="number"||typeof e.port=="string"){let r=String(e.port);if(!JG(r))throw new TypeError("URI port is malformed.");t.push(":"),t.push(r)}return t.length?t.join(""):void 0}G$.exports={nonSimpleDomain:nW,recomposeAuthority:gW,reescapeHostDelimiters:V$,normalizePercentEncoding:B$,normalizePathEncoding:uW,serializePathEncoding:dW,normalizeQueryFragmentEncoding:hW,encodeUserinfo:H$,encodeQuery:fW,encodeFragment:mW,escapePreservingEscapes:yW,removeDotSegments:z$,removeDotSegmentsRelative:aW,isIPv4:Jh,isUUID:QG,normalizeIPv6:Qh,stringArrayToHexStripped:ZG}});var X$=E((Vme,J$)=>{"use strict";var{isUUID:vW}=ty(),bW=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,xW=["http","https","ws","wss","urn","urn:uuid"];function SW(e){return xW.indexOf(e)!==-1}function ry(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 W$(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Y$(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 wW(e){return e.secure=ry(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function _W(e){if((e.port===(ry(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=e.resourceName.indexOf("?"),r=t===-1?e.resourceName:e.resourceName.slice(0,t);e.path=r&&r!=="/"?r:void 0,e.query=t===-1?void 0:e.resourceName.slice(t+1),e.resourceName=void 0}return e.fragment=void 0,e}function $W(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(bW);if(r&&r[0]===e.path){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=ny(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function PW(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=ny(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 EW(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!vW(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function AW(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var Q$={scheme:"http",domainHost:!0,parse:W$,serialize:Y$},OW={scheme:"https",domainHost:Q$.domainHost,parse:W$,serialize:Y$},zl={scheme:"ws",domainHost:!0,parse:wW,serialize:_W},TW={scheme:"wss",domainHost:zl.domainHost,parse:zl.parse,serialize:zl.serialize},RW={scheme:"urn",parse:$W,serialize:PW,skipNormalize:!0},kW={scheme:"urn:uuid",parse:EW,serialize:AW,skipNormalize:!0},Vl={http:Q$,https:OW,ws:zl,wss:TW,urn:RW,"urn:uuid":kW};Object.setPrototypeOf(Vl,null);function ny(e){return e&&(Vl[e]||Vl[e.toLowerCase()])||void 0}J$.exports={wsIsSecure:ry,SCHEMES:Vl,isValidSchemeName:SW,getSchemeHandler:ny}});var ay=E((Bme,Wl)=>{"use strict";var{normalizeIPv6:nP,removeDotSegments:gc,removeDotSegmentsRelative:oP,recomposeAuthority:IW,normalizePercentEncoding:oy,normalizePathEncoding:CW,serializePathEncoding:Z$,normalizeQueryFragmentEncoding:eP,encodeQuery:NW,encodeFragment:qW,reescapeHostDelimiters:jW,isIPv4:iP,nonSimpleDomain:DW}=ty(),{SCHEMES:sP,getSchemeHandler:iy}=X$(),aP=/^[A-Za-z][A-Za-z0-9+.-]*$/u,cP="URI scheme is malformed.",Bl="URI host is malformed.",MW=/[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;function tP(e){let t=String(e);if(!aP.test(t))throw new TypeError(cP);return t}function LW(e,t){return typeof e=="string"?e=WW(e,t):typeof e=="object"&&(e=Kl(Si(e,t),t)),e}function FW(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:i,malformedPercentEncoding:s,malformedSchemeSpecific:a,malformedHost:c,malformedScheme:l}=Hl(e,n),{parsed:p,malformedAuthorityOrPort:u,malformedPercentEncoding:f,malformedSchemeSpecific:h,malformedHost:m,malformedScheme:y}=Hl(t,n);if(i||u||s||f||a||h||c||m||l||y)throw new Error(o.error||p.error||"URI is malformed.");let b=pP(o,p,n,!0),x=iy(r&&r.scheme||b.scheme),w=b.host,S=w!==void 0&&w!==""&&(iP(w)||nP(w).isIPV6);if(uP(b,r||{},x,S))throw new Error(Bl);lP(b,r||{},x,S);let P=w&&w.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(w);if(b.error&&!P)throw new Error(b.error);return n.skipEscape=!0,Si(b,n)}function pP(e,t,r,n){let o={};if(n||(e=Kl(Si(e,r),r),t=Kl(Si(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=gc(t.path||""),o.query=t.query;else{if(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=gc(t.path||""),o.query=t.query;else{if(!t.path)o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query;else{if(t.path[0]==="/")o.path=gc(t.path);else{let i=e.userinfo!==void 0||e.host!==void 0||e.port!==void 0;i&&!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=e.scheme===void 0&&!i&&o.path[0]!=="/"?oP(o.path):gc(o.path)}o.query=t.query}o.userinfo=e.userinfo,o.host=e.host,o.port=e.port}o.scheme=e.scheme}return o.fragment=t.fragment,o}function UW(e,t,r){let n=rP(e,r),o=rP(t,r);return n!==void 0&&o!==void 0&&n===o}function Si(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=[];r.scheme&&(r.scheme=tP(r.scheme));let i=iy(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n);let s=r.userinfo!==void 0||r.host!==void 0||r.port!==void 0,a=(r.scheme===void 0||n.reference==="suffix")&&!s,c=!n.skipEscape&&a;r.path!==void 0&&(n.skipEscape?r.path=oy(r.path):r.path=Z$(r.path,c)),n.reference!=="suffix"&&r.scheme&&(r.scheme=tP(r.scheme),o.push(r.scheme,":"));let l=IW(r);if(l!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(l),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let p=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(p=a&&p[0]!=="/"?oP(p):gc(p)),a&&(p=Z$(p,!0)),l===void 0&&p[0]==="/"&&p[1]==="/"&&(p="/%2F"+p.slice(2)),o.push(p)}return r.query!==void 0&&o.push("?",NW(r.query)),r.fragment!==void 0&&o.push("#",qW(r.fragment)),o.join("")}var zW=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,VW=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,BW=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function HW(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 yc(e){if(e===void 0)return!1;let t=e.indexOf("%");for(;t!==-1;){if(t+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(t+1,t+3)))return!0;t=e.indexOf("%",t+3)}return!1}function Gl(e){return e[0]==="["&&e[e.length-1]==="]"}function KW(e){let t=e[4];return yc(e[3])||t!==void 0&&!Gl(t)&&yc(t)||yc(e[6])||yc(e[7])||yc(e[8])}function lP(e,t,r,n){if(uP(e,t,r,n))return e.error=e.error||Bl,!0;if(!t.unicodeSupport&&(!r||!r.unicodeSupport)&&e.host&&!Gl(e.host)&&(t.domainHost||r&&r.domainHost)&&n===!1&&DW(e.host)){let o;try{o=new URL("http://"+e.host)}catch(i){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+i,!0}if(!GW(o))return e.error=e.error||Bl,!0;e.host=o.hostname}return!1}function uP(e,t,r,n){return!!(e.host&&n===!1&&!Gl(e.host)&&(t.domainHost||r&&r.domainHost)&&MW.test(e.host))}function GW(e){return e.username===""&&e.password===""&&e.port===""&&e.pathname==="/"&&e.search===""&&e.hash===""&&e.hostname!==""}function Hl(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,s=!1,a=!1,c=!1,l=!1,p=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let u=e.match(VW);u!==null&&u[1].indexOf("\\")!==-1&&(n.error="URI authority must not contain a literal backslash.",o=!0);let f=e.match(BW);if(f!==null){let m=f[1],y=m.replace(/[\t\n\r]/g,"");y.length>=2&&(y.slice(0,2)!=="//"?(n.error=n.error||"URI authority must not contain a literal backslash.",o=!0):m.length!==y.length&&(n.error=n.error||"URI authority introducer must not contain whitespace.",o=!0))}let h=e.match(zW);if(h){n.scheme=h[1],n.userinfo=h[3],n.host=h[4],n.port=parseInt(h[5],10),n.path=h[6]||"",n.query=h[7],n.fragment=h[8],n.scheme!==void 0&&(aP.test(n.scheme)?n.scheme=n.scheme.toLowerCase():(n.error=n.error||cP,l=!0)),i=KW(h),i&&(n.error=n.error||"URI contains malformed percent-encoding."),isNaN(n.port)&&(n.port=h[5]);let m=HW(n,h);if(m!==void 0&&(n.error=n.error||m,o=!0),n.host)if(iP(n.host)===!1){let x=Gl(n.host),w=n.host.indexOf("[")!==-1||n.host.indexOf("]")!==-1,S=nP(n.host);p=S.isIPV6||S.isIPVFuture===!0,c=w&&(!x||S.error===!0),n.host=p?S.host:S.host.toLowerCase(),c&&(n.error=n.error||Bl,o=!0)}else p=!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 y=iy(r.scheme||n.scheme);if(c||(a=lP(n,r,y,p)),e.indexOf("%")!==-1&&n.host!==void 0&&!c){let b=p?n.host:oy(n.host,!0);p||(b=oy(b.toLowerCase())),n.host=p||r.scheme!=="null"?jW(b,p):b}(!y||y&&!y.skipNormalize)&&(n.path&&(n.path=CW(n.path)),n.query&&(n.query=eP(n.query)),n.fragment&&(n.fragment=eP(n.fragment))),y&&y.parse&&(y.parse(n,r),y===sP.urn&&n.nid===void 0&&(s=!0))}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:l}}function Kl(e,t){return Hl(e,t).parsed}function WW(e,t){return dP(e,t).normalized}function dP(e,t){let{parsed:r,malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}=Hl(e,t);return{normalized:n||o||i||s||a?e:Si(r,t),malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}}function rP(e,t){if(typeof e!="string"&&typeof e!="object")return;let r;try{r=typeof e=="string"?e:Si(e,t)}catch{return}let{normalized:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:c}=dP(r,t);return o||i||s||a||c?void 0:n}var sy={SCHEMES:sP,normalize:LW,resolve:FW,resolveComponent:pP,equal:UW,serialize:Si,parse:Kl};Wl.exports=sy;Wl.exports.default=sy;Wl.exports.fastUri=sy});var mP=E(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var fP=ay();fP.code='require("ajv/dist/runtime/uri").default';cy.default=fP});var uy=E(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.CodeGen=Mt.Name=Mt.nil=Mt.stringify=Mt.str=Mt._=Mt.KeywordCxt=void 0;var YW=ks();Object.defineProperty(Mt,"KeywordCxt",{enumerable:!0,get:function(){return YW.KeywordCxt}});var Ns=re();Object.defineProperty(Mt,"_",{enumerable:!0,get:function(){return Ns._}});Object.defineProperty(Mt,"str",{enumerable:!0,get:function(){return Ns.str}});Object.defineProperty(Mt,"stringify",{enumerable:!0,get:function(){return Ns.stringify}});Object.defineProperty(Mt,"nil",{enumerable:!0,get:function(){return Ns.nil}});Object.defineProperty(Mt,"Name",{enumerable:!0,get:function(){return Ns.Name}});Object.defineProperty(Mt,"CodeGen",{enumerable:!0,get:function(){return Ns.CodeGen}});var QW=mc(),bP=Is(),JW=Oh(),vc=hc(),XW=re(),bc=uc(),Yl=pc(),ly=$e(),hP=L$(),ZW=mP(),xP=(e,t)=>new RegExp(e,t);xP.code="new RegExp";var e5=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],t5=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),r5={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."},n5={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},yP=200;function o5(e){var t,r,n,o,i,s,a,c,l,p,u,f,h,m,y,b,x,w,S,P,$,O,C,I,k;let T=e.strict,se=(t=e.code)===null||t===void 0?void 0:t.optimize,X=se===!0||se===void 0?1:se||0,he=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:xP,q=(o=e.uriResolver)!==null&&o!==void 0?o:ZW.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:T)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:T)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:T)!==null&&p!==void 0?p:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:T)!==null&&f!==void 0?f:"log",strictRequired:(m=(h=e.strictRequired)!==null&&h!==void 0?h:T)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:X,regExp:he}:{optimize:X,regExp:he},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:yP,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:yP,meta:(x=e.meta)!==null&&x!==void 0?x:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(O=e.validateSchema)!==null&&O!==void 0?O:!0,validateFormats:(C=e.validateFormats)!==null&&C!==void 0?C:!0,unicodeRegExp:(I=e.unicodeRegExp)!==null&&I!==void 0?I:!0,int32range:(k=e.int32range)!==null&&k!==void 0?k:!0,uriResolver:q}}var xc=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...o5(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new XW.ValueScope({scope:{},prefixes:t5,es5:r,lines:n}),this.logger=l5(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,JW.getRules)(),gP.call(this,r5,t,"NOT SUPPORTED"),gP.call(this,n5,t,"DEPRECATED","warn"),this._metaOpts=c5.call(this),t.formats&&s5.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&a5.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),i5.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=hP;n==="id"&&(o={...hP},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 f=this._addSchema(p,u);return f.validate||s.call(this,f)}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 bP.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,bc.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=vP.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new vc.SchemaEnv({schema:{},schemaId:n});if(r=vc.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=vP.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,bc.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(d5.call(this,n,r),!r)return(0,ly.eachItem)(n,i=>py.call(this,i)),this;m5.call(this,r);let o={...r,type:(0,Yl.getJSONTypes)(r.type),schemaType:(0,Yl.getJSONTypes)(r.schemaType)};return(0,ly.eachItem)(n,o.type.length===0?i=>py.call(this,i,o):i=>o.type.forEach(s=>py.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]=SP(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,bc.normalizeId)(s||n);let l=bc.getSchemaRefs.call(this,t,n);return c=new vc.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):vc.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{vc.compileSchema.call(this,t)}finally{this.opts=r}}};xc.ValidationError=QW.default;xc.MissingRefError=bP.default;Mt.default=xc;function gP(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 vP(e){return e=(0,bc.normalizeId)(e),this.schemas[e]||this.refs[e]}function i5(){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 s5(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function a5(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 c5(){let e={...this.opts};for(let t of e5)delete e[t];return e}var p5={log(){},warn(){},error(){}};function l5(e){if(e===!1)return p5;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 u5=/^[a-z_$][a-z0-9_$:-]*$/i;function d5(e,t){let{RULES:r}=this;if((0,ly.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!u5.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 py(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,Yl.getJSONTypes)(t.type),schemaType:(0,Yl.getJSONTypes)(t.schemaType)}};t.before?f5.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 f5(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 m5(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=SP(t)),e.validateSchema=this.compile(t,!0))}var h5={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function SP(e){return{anyOf:[e,h5]}}});var wP=E(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});var y5={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};dy.default=y5});var Sc=E(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.callRef=wi.getValidate=void 0;var g5=Is(),_P=zr(),vt=re(),qs=nr(),$P=hc(),Ql=$e(),v5={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=$P.resolveRef.call(c,l,o,r);if(p===void 0)throw new g5.default(n.opts.uriResolver,o,r);if(p instanceof $P.SchemaEnv)return f(p);return h(p);function u(){if(i===l)return Jl(e,s,i,i.$async);let m=t.scopeValue("root",{ref:l});return Jl(e,(0,vt._)`${m}.validate`,l,l.$async)}function f(m){let y=PP(e,m);Jl(e,y,m,m.$async)}function h(m){let y=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,vt.stringify)(m)}:{ref:m}),b=t.name("valid"),x=e.subschema({schema:m,dataTypes:[],schemaPath:vt.nil,topSchemaRef:y,errSchemaPath:r},b,n.isAllOfVariant);e.mergeEvaluated(x),e.ok(b)}}};function PP(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,vt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}wi.getValidate=PP;function Jl(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,l=c.passContext?qs.default.this:vt.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,vt._)`await ${(0,_P.callValidateCode)(e,t,l)}`),h(t),s||o.assign(m,!0)},y=>{o.if((0,vt._)`!(${y} instanceof ${i.ValidationError})`,()=>o.throw(y)),f(y),s||o.assign(m,!1)}),e.ok(m)}function u(){let m=o.name("visitedNodes");o.code((0,vt._)`const ${m} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),o.if((0,vt._)`!${m}.has(${e.data})`,()=>{o.code((0,vt._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${m})`),o.code((0,vt._)`const dataNode = ${e.data}`),o.code((0,vt._)`if (typeof dataNode === "object" && dataNode !== null) ${m}.add(dataNode)`);let y=e.result((0,_P.callValidateCode)(e,t,l),()=>h(t),()=>f(t));return o.code((0,vt._)`${m}.delete(dataNode)`),y})}function f(m){let y=(0,vt._)`${m}.errors`;o.assign(qs.default.vErrors,(0,vt._)`${qs.default.vErrors} === null ? ${y} : ${qs.default.vErrors}.concat(${y})`),o.assign(qs.default.errors,(0,vt._)`${qs.default.vErrors}.length`)}function h(m){var y;if(!i.opts.unevaluated)return;let b=(y=r?.validate)===null||y===void 0?void 0:y.evaluated;if(i.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(i.props=Ql.mergeEvaluated.props(o,b.props,i.props));else{let x=o.var("props",(0,vt._)`${m}.evaluated.props`);i.props=Ql.mergeEvaluated.props(o,x,i.props,vt.Name)}if(i.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(i.items=Ql.mergeEvaluated.items(o,b.items,i.items));else{let x=o.var("items",(0,vt._)`${m}.evaluated.items`);i.items=Ql.mergeEvaluated.items(o,x,i.items,vt.Name)}}}wi.callRef=Jl;wi.default=v5});var EP=E(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var b5=wP(),x5=Sc(),S5=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",b5.default,x5.default];fy.default=S5});var AP=E(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var Xl=re(),Io=Xl.operators,Zl={maximum:{okStr:"<=",ok:Io.LTE,fail:Io.GT},minimum:{okStr:">=",ok:Io.GTE,fail:Io.LT},exclusiveMaximum:{okStr:"<",ok:Io.LT,fail:Io.GTE},exclusiveMinimum:{okStr:">",ok:Io.GT,fail:Io.LTE}},w5={message:({keyword:e,schemaCode:t})=>(0,Xl.str)`must be ${Zl[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Xl._)`{comparison: ${Zl[e].okStr}, limit: ${t}}`},_5={keyword:Object.keys(Zl),type:"number",schemaType:"number",$data:!0,error:w5,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Xl._)`${r} ${Zl[t].fail} ${n} || isNaN(${r})`)}};my.default=_5});var OP=E(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var wc=re(),$5={message:({schemaCode:e})=>(0,wc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,wc._)`{multipleOf: ${e}}`},P5={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:$5,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,wc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,wc._)`${s} !== parseInt(${s})`;e.fail$data((0,wc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};hy.default=P5});var RP=E(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});function TP(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}yy.default=TP;TP.code='require("ajv/dist/runtime/ucs2length").default'});var kP=E(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var _i=re(),E5=$e(),A5=RP(),O5={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,_i.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,_i._)`{limit: ${e}}`},T5={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:O5,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?_i.operators.GT:_i.operators.LT,s=o.opts.unicode===!1?(0,_i._)`${r}.length`:(0,_i._)`${(0,E5.useFunc)(e.gen,A5.default)}(${r})`;e.fail$data((0,_i._)`${s} ${i} ${n}`)}};gy.default=T5});var IP=E(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var R5=zr(),k5=$e(),js=re(),I5={message:({schemaCode:e})=>(0,js.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,js._)`{pattern: ${e}}`},C5={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:I5,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,js._)`new RegExp`:(0,k5.useFunc)(t,c),p=t.let("valid");t.try(()=>t.assign(p,(0,js._)`${l}(${i}, ${a}).test(${r})`),()=>t.assign(p,!1)),e.fail$data((0,js._)`!${p}`)}else{let c=(0,R5.usePattern)(e,o);e.fail$data((0,js._)`!${c}.test(${r})`)}}};vy.default=C5});var CP=E(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var _c=re(),N5={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,_c.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,_c._)`{limit: ${e}}`},q5={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:N5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?_c.operators.GT:_c.operators.LT;e.fail$data((0,_c._)`Object.keys(${r}).length ${o} ${n}`)}};by.default=q5});var NP=E(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var $c=zr(),j5=Nh(),$i=re(),D5=$e(),M5={message:({params:{missingProperty:e}})=>(0,$i.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,$i._)`{missingProperty: ${e}}`},L5={keyword:"required",type:"object",schemaType:"array",$data:!0,error:M5,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 h=e.parentSchema.properties,{definedProperties:m}=e.it;for(let y of r)if(h?.[y]===void 0&&!m.has(y)){let b=s.schemaEnv.baseId+s.errSchemaPath,x=`required property "${y}" is not defined at "${b}" (strictRequired)`;(0,D5.checkStrictMode)(s,x,s.opts.strictRequired)}}function l(){var h;if(c||i)e.block$data($i.nil,u);else for(let m of r){let y=(h=(0,j5.getSkipCondition)(e.parentSchema,m))!==null&&h!==void 0?h:(0,$i._)`false`;t.if((0,$i.not)(y),()=>(0,$c.checkReportMissingProp)(e,m))}}function p(){let h=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>f(h,m)),e.ok(m)}else t.if((0,$c.checkMissingProp)(e,r,h)),(0,$c.reportMissingProp)(e,h),t.else()}function u(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,$c.noPropertyInData)(t,o,h,a.ownProperties),()=>e.error())})}function f(h,m){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(m,(0,$c.propertyInData)(t,o,h,a.ownProperties)),t.if((0,$i.not)(m),()=>{e.error(),t.break()})},$i.nil)}}};xy.default=L5});var jP=E(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var Sy=re(),qP=nr(),F5={message:()=>(0,Sy.str)`must NOT be present in request context`},U5={keyword:"readOnly",schemaType:"boolean",error:F5,code(e){if(e.schema!==!0)return;let t=(0,Sy._)`(${qP.default.this} && ${qP.default.this}.apiContext)`;e.fail((0,Sy._)`${t} === "request"`)}};wy.default=U5});var MP=E($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var _y=re(),DP=nr(),z5={message:()=>(0,_y.str)`must NOT be present in response context`},V5={keyword:"writeOnly",schemaType:"boolean",error:z5,code(e){if(e.schema!==!0)return;let t=(0,_y._)`(${DP.default.this} && ${DP.default.this}.apiContext)`;e.fail((0,_y._)`${t} === "response"`)}};$y.default=V5});var LP=E(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var Pc=re(),B5={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Pc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Pc._)`{limit: ${e}}`},H5={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:B5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Pc.operators.GT:Pc.operators.LT;e.fail$data((0,Pc._)`${r}.length ${o} ${n}`)}};Py.default=H5});var eu=E(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var FP=lc();FP.code='require("ajv/dist/runtime/equal").default';Ey.default=FP});var UP=E(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var Ay=pc(),Lt=re(),K5=$e(),G5=eu(),W5={message:({params:{i:e,j:t}})=>(0,Lt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Lt._)`{i: ${e}, j: ${t}}`},Y5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:W5,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,Ay.getSchemaTypes)(i.items):[];e.block$data(c,p,(0,Lt._)`${s} === false`),e.ok(c);function p(){let m=t.let("i",(0,Lt._)`${r}.length`),y=t.let("j");e.setParams({i:m,j:y}),t.assign(c,!0),t.if((0,Lt._)`${m} > 1`,()=>(u()?f:h)(m,y))}function u(){return l.length>0&&!l.some(m=>m==="object"||m==="array")}function f(m,y){let b=t.name("item"),x=(0,Ay.checkDataTypes)(l,b,a.opts.strictNumbers,Ay.DataType.Wrong),w=t.const("indices",(0,Lt._)`{}`);t.for((0,Lt._)`;${m}--;`,()=>{t.let(b,(0,Lt._)`${r}[${m}]`),t.if(x,(0,Lt._)`continue`),l.length>1&&t.if((0,Lt._)`typeof ${b} == "string"`,(0,Lt._)`${b} += "_"`),t.if((0,Lt._)`typeof ${w}[${b}] == "number"`,()=>{t.assign(y,(0,Lt._)`${w}[${b}]`),e.error(),t.assign(c,!1).break()}).code((0,Lt._)`${w}[${b}] = ${m}`)})}function h(m,y){let b=(0,K5.useFunc)(t,G5.default),x=t.name("outer");t.label(x).for((0,Lt._)`;${m}--;`,()=>t.for((0,Lt._)`${y} = ${m}; ${y}--;`,()=>t.if((0,Lt._)`${b}(${r}[${m}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(x)})))}}};Oy.default=Y5});var zP=E(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var Ty=re(),Q5=$e(),J5=eu(),X5={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ty._)`{allowedValue: ${e}}`},Z5={keyword:"const",$data:!0,error:X5,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Ty._)`!${(0,Q5.useFunc)(t,J5.default)}(${r}, ${o})`):e.fail((0,Ty._)`${i} !== ${r}`)}};Ry.default=Z5});var VP=E(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Ec=re(),eY=$e(),tY=eu(),rY={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ec._)`{allowedValues: ${e}}`},nY={keyword:"enum",schemaType:"array",$data:!0,error:rY,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,eY.useFunc)(t,tY.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 h=t.const("vSchema",i);p=(0,Ec.or)(...o.map((m,y)=>f(h,y)))}e.pass(p);function u(){t.assign(p,!1),t.forOf("v",i,h=>t.if((0,Ec._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}function f(h,m){let y=o[m];return typeof y=="object"&&y!==null?(0,Ec._)`${l()}(${r}, ${h}[${m}])`:(0,Ec._)`${r} === ${y}`}}};ky.default=nY});var Cy=E(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var oY=AP(),iY=OP(),sY=kP(),aY=IP(),cY=CP(),pY=NP(),lY=jP(),uY=MP(),dY=LP(),fY=UP(),mY=zP(),hY=VP(),yY=[oY.default,iY.default,sY.default,aY.default,cY.default,pY.default,lY.default,uY.default,dY.default,fY.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},mY.default,hY.default];Iy.default=yY});var qy=E(Ac=>{"use strict";Object.defineProperty(Ac,"__esModule",{value:!0});Ac.validateAdditionalItems=void 0;var Pi=re(),Ny=$e(),gY={message:({params:{len:e}})=>(0,Pi.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Pi._)`{limit: ${e}}`},vY={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:gY,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ny.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}BP(e,n)}};function BP(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Pi._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Pi._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ny.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,Pi._)`${a} <= ${t.length}`);r.if((0,Pi.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,p=>{e.subschema({keyword:i,dataProp:p,dataPropType:Ny.Type.Num},l),s.allErrors||r.if((0,Pi.not)(l),()=>r.break())})}}Ac.validateAdditionalItems=BP;Ac.default=vY});var jy=E(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.validateTuple=void 0;var HP=re(),tu=$e(),bY=zr(),xY={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return KP(e,"additionalItems",t);r.items=!0,!(0,tu.alwaysValidSchema)(r,t)&&e.ok((0,bY.validateArray)(e))}};function KP(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=tu.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,HP._)`${i}.length`);r.forEach((u,f)=>{(0,tu.alwaysValidSchema)(a,u)||(n.if((0,HP._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function p(u){let{opts:f,errSchemaPath:h}=a,m=r.length,y=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(f.strictTuples&&!y){let b=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,tu.checkStrictMode)(a,b,f.strictTuples)}}}Oc.validateTuple=KP;Oc.default=xY});var GP=E(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var SY=jy(),wY={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,SY.validateTuple)(e,"items")};Dy.default=wY});var YP=E(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var WP=re(),_Y=$e(),$Y=zr(),PY=qy(),EY={message:({params:{len:e}})=>(0,WP.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,WP._)`{limit: ${e}}`},AY={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:EY,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,_Y.alwaysValidSchema)(n,t)&&(o?(0,PY.validateAdditionalItems)(e,o):e.ok((0,$Y.validateArray)(e)))}};My.default=AY});var QP=E(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var Br=re(),ru=$e(),OY={message:({params:{min:e,max:t}})=>t===void 0?(0,Br.str)`must contain at least ${e} valid item(s)`:(0,Br.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Br._)`{minContains: ${e}}`:(0,Br._)`{minContains: ${e}, maxContains: ${t}}`},TY={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:OY,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,Br._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,ru.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,ru.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,ru.alwaysValidSchema)(i,r)){let y=(0,Br._)`${p} >= ${s}`;a!==void 0&&(y=(0,Br._)`${y} && ${p} <= ${a}`),e.pass(y);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?h(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,Br._)`${o}.length > 0`,f)):(t.let(u,!1),f()),e.result(u,()=>e.reset());function f(){let y=t.name("_valid"),b=t.let("count",0);h(y,()=>t.if(y,()=>m(b)))}function h(y,b){t.forRange("i",0,p,x=>{e.subschema({keyword:"contains",dataProp:x,dataPropType:ru.Type.Num,compositeRule:!0},y),b()})}function m(y){t.code((0,Br._)`${y}++`),a===void 0?t.if((0,Br._)`${y} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,Br._)`${y} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,Br._)`${y} >= ${s}`,()=>t.assign(u,!0)))}}};Ly.default=TY});var nu=E(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.validateSchemaDeps=kn.validatePropertyDeps=kn.error=void 0;var Fy=re(),RY=$e(),Tc=zr();kn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Fy.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Fy._)`{property: ${e},
12
+ missingProperty: ${n},
13
+ depsCount: ${t},
14
+ deps: ${r}}`};var kY={keyword:"dependencies",type:"object",schemaType:"object",error:kn.error,code(e){let[t,r]=IY(e);JP(e,t),XP(e,r)}};function IY({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 JP(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,Tc.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,Tc.checkReportMissingProp)(e,l)}):(r.if((0,Fy._)`${c} && (${(0,Tc.checkMissingProp)(e,a,i)})`),(0,Tc.reportMissingProp)(e,i),r.else())}}kn.validatePropertyDeps=JP;function XP(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,RY.alwaysValidSchema)(i,t[a])||(r.if((0,Tc.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))}kn.validateSchemaDeps=XP;kn.default=kY});var eE=E(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var ZP=re(),CY=$e(),NY={message:"property name must be valid",params:({params:e})=>(0,ZP._)`{propertyName: ${e.propertyName}}`},qY={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:NY,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,CY.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,ZP.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Uy.default=qY});var Vy=E(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});var ou=zr(),dn=re(),jY=nr(),iu=$e(),DY={message:"must NOT have additional properties",params:({params:e})=>(0,dn._)`{additionalProperty: ${e.additionalProperty}}`},MY={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:DY,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,iu.alwaysValidSchema)(i,s))return;let l=(0,ou.allSchemaProperties)(r.properties),p=(0,ou.allSchemaProperties)(r.patternProperties);u(),e.ok((0,dn._)`${o} === ${jY.default.errors}`);function u(){t.forIn("key",n,b=>{!l.length&&!p.length?m(b):t.if(f(b),()=>m(b))})}function f(b){let x;if(l.length>8){let w=(0,iu.schemaRefOrVal)(i,r.properties,"properties");x=(0,ou.isOwnProperty)(t,w,b)}else l.length?x=(0,dn.or)(...l.map(w=>(0,dn._)`${b} === ${w}`)):x=dn.nil;return p.length&&(x=(0,dn.or)(x,...p.map(w=>(0,dn._)`${(0,ou.usePattern)(e,w)}.test(${b})`))),(0,dn.not)(x)}function h(b){t.code((0,dn._)`delete ${n}[${b}]`)}function m(b){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){h(b);return}if(s===!1){e.setParams({additionalProperty:b}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,iu.alwaysValidSchema)(i,s)){let x=t.name("valid");c.removeAdditional==="failing"?(y(b,x,!1),t.if((0,dn.not)(x),()=>{e.reset(),h(b)})):(y(b,x),a||t.if((0,dn.not)(x),()=>t.break()))}}function y(b,x,w){let S={keyword:"additionalProperties",dataProp:b,dataPropType:iu.Type.Str};w===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,x)}}};zy.default=MY});var nE=E(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var LY=ks(),tE=zr(),By=$e(),rE=Vy(),FY={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)&&rE.default.code(new LY.KeywordCxt(i,rE.default,"additionalProperties"));let s=(0,tE.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=By.mergeEvaluated.props(t,(0,By.toHash)(s),i.props));let a=s.filter(u=>!(0,By.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,tE.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)}}};Hy.default=FY});var aE=E(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});var oE=zr(),su=re(),iE=$e(),sE=$e(),UY={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,oE.allSchemaProperties)(r),c=a.filter(y=>(0,iE.alwaysValidSchema)(i,r[y]));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 su.Name)&&(i.props=(0,sE.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let y of a)l&&h(y),i.allErrors?m(y):(t.var(p,!0),m(y),t.if(p))}function h(y){for(let b in l)new RegExp(y).test(b)&&(0,iE.checkStrictMode)(i,`property ${b} matches pattern ${y} (use allowMatchingProperties)`)}function m(y){t.forIn("key",n,b=>{t.if((0,su._)`${(0,oE.usePattern)(e,y)}.test(${b})`,()=>{let x=c.includes(y);x||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:b,dataPropType:sE.Type.Str},p),i.opts.unevaluated&&u!==!0?t.assign((0,su._)`${u}[${b}]`,!0):!x&&!i.allErrors&&t.if((0,su.not)(p),()=>t.break())})})}}};Ky.default=UY});var cE=E(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var zY=$e(),VY={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,zY.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"}};Gy.default=VY});var pE=E(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var BY=zr(),HY={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:BY.validateUnion,error:{message:"must match a schema in anyOf"}};Wy.default=HY});var lE=E(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var au=re(),KY=$e(),GY={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,au._)`{passingSchemas: ${e.passing}}`},WY={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:GY,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 f;(0,KY.alwaysValidSchema)(o,p)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,au._)`${c} && ${s}`).assign(s,!1).assign(a,(0,au._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,au.Name)})})}}};Yy.default=WY});var uE=E(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});var YY=$e(),QY={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,YY.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o,!0);e.ok(o),e.mergeEvaluated(a)})}};Qy.default=QY});var mE=E(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var cu=re(),fE=$e(),JY={message:({params:e})=>(0,cu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,cu._)`{failingKeyword: ${e.ifClause}}`},XY={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:JY,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,fE.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=dE(n,"then"),i=dE(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,cu.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 f=e.subschema({keyword:p},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,cu._)`${p}`):e.setParams({ifClause:p})}}}};function dE(e,t){let r=e.schema[t];return r!==void 0&&!(0,fE.alwaysValidSchema)(e,r)}Jy.default=XY});var hE=E(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var ZY=$e(),eQ={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,ZY.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Xy.default=eQ});var eg=E(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});var tQ=qy(),rQ=GP(),nQ=jy(),oQ=YP(),iQ=QP(),sQ=nu(),aQ=eE(),cQ=Vy(),pQ=nE(),lQ=aE(),uQ=cE(),dQ=pE(),fQ=lE(),mQ=uE(),hQ=mE(),yQ=hE();function gQ(e=!1){let t=[uQ.default,dQ.default,fQ.default,mQ.default,hQ.default,yQ.default,aQ.default,cQ.default,sQ.default,pQ.default,lQ.default];return e?t.push(rQ.default,oQ.default):t.push(tQ.default,nQ.default),t.push(iQ.default),t}Zy.default=gQ});var rg=E(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.dynamicAnchor=void 0;var tg=re(),vQ=nr(),yE=hc(),bQ=Sc(),xQ={keyword:"$dynamicAnchor",schemaType:"string",code:e=>gE(e,e.schema)};function gE(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,tg._)`${vQ.default.dynamicAnchors}${(0,tg.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:SQ(e);r.if((0,tg._)`!${o}`,()=>r.assign(o,i))}Rc.dynamicAnchor=gE;function SQ(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 yE.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:s,meta:a});return yE.compileSchema.call(n,l),(0,bQ.getValidate)(e,l)}Rc.default=xQ});var ng=E(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.dynamicRef=void 0;var vE=re(),wQ=nr(),bE=Sc(),_Q={keyword:"$dynamicRef",schemaType:"string",code:e=>xE(e,e.schema)};function xE(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,vE._)`${wQ.default.dynamicAnchors}${(0,vE.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,bE.callRef)(e,c),r.let(l,!0)}):()=>(0,bE.callRef)(e,c)}}kc.dynamicRef=xE;kc.default=_Q});var SE=E(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var $Q=rg(),PQ=$e(),EQ={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,$Q.dynamicAnchor)(e,""):(0,PQ.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};og.default=EQ});var wE=E(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var AQ=ng(),OQ={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,AQ.dynamicRef)(e,e.schema)};ig.default=OQ});var _E=E(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var TQ=rg(),RQ=ng(),kQ=SE(),IQ=wE(),CQ=[TQ.default,RQ.default,kQ.default,IQ.default];sg.default=CQ});var PE=E(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});var $E=nu(),NQ={keyword:"dependentRequired",type:"object",schemaType:"object",error:$E.error,code:e=>(0,$E.validatePropertyDeps)(e)};ag.default=NQ});var EE=E(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});var qQ=nu(),jQ={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,qQ.validateSchemaDeps)(e)};cg.default=jQ});var AE=E(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});var DQ=$e(),MQ={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,DQ.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};pg.default=MQ});var OE=E(lg=>{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});var LQ=PE(),FQ=EE(),UQ=AE(),zQ=[LQ.default,FQ.default,UQ.default];lg.default=zQ});var kE=E(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var so=re(),TE=$e(),RE=nr(),VQ={message:"must NOT have unevaluated properties",params:({params:e})=>(0,so._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},BQ={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:VQ,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 so.Name)t.if((0,so._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(p(c,f),()=>l(f))));else if(c!==!0){let f=()=>t.forIn("key",n,h=>c===void 0?l(h):t.if(u(c,h),()=>l(h)));s&&i.errorPath.emptyStr()&&!i.compositeRule?t.if((0,so._)`${RE.default.isAllOfVariant} === 0`,f):(!i.compositeRule||e.schema!==void 0)&&f()}s||(i.props=!0),e.ok((0,so._)`${o} === ${RE.default.errors}`);function l(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,TE.alwaysValidSchema)(i,r)){let h=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:TE.Type.Str},h),a||t.if((0,so.not)(h),()=>t.break())}}function p(f,h){return(0,so._)`!${f} || !${f}[${h}]`}function u(f,h){let m=[];for(let y in f)f[y]===!0&&m.push((0,so._)`${h} !== ${y}`);return(0,so.and)(...m)}}};ug.default=BQ});var CE=E(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});var Ei=re(),IE=$e(),HQ={message:({params:{len:e}})=>(0,Ei.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ei._)`{limit: ${e}}`},KQ={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:HQ,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,Ei._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,Ei._)`${s} > ${i}`);else if(typeof r=="object"&&!(0,IE.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,Ei._)`${s} <= ${i}`);t.if((0,Ei.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:IE.Type.Num},c),o.allErrors||t.if((0,Ei.not)(c),()=>t.break())})}}};dg.default=KQ});var mg=E(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});var GQ=kE(),WQ=CE(),YQ=[GQ.default,WQ.default];fg.default=YQ});var NE=E(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});var ft=re(),QQ={message:({schemaCode:e})=>(0,ft.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ft._)`{format: ${e}}`},JQ={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:QQ,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?f():h();function f(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),y=r.const("fDef",(0,ft._)`${m}[${s}]`),b=r.let("fType"),x=r.let("format");r.if((0,ft._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(b,(0,ft._)`${y}.type || "string"`).assign(x,(0,ft._)`${y}.validate`),()=>r.assign(b,(0,ft._)`"string"`).assign(x,y)),e.fail$data((0,ft.or)(w(),S()));function w(){return c.strictSchema===!1?ft.nil:(0,ft._)`${s} && !${x}`}function S(){let P=p.$async?(0,ft._)`(${y}.async ? await ${x}(${n}) : ${x}(${n}))`:(0,ft._)`${x}(${n})`,$=(0,ft._)`(typeof ${x} == "function" ? ${P} : ${x}.test(${n}))`;return(0,ft._)`${x} && ${x} !== true && ${b} === ${t} && !${$}`}}function h(){let m=u.formats[i];if(!m){w();return}if(m===!0)return;let[y,b,x]=S(m);y===t&&e.pass(P());function w(){if(c.strictSchema===!1){u.logger.warn($());return}throw new Error($());function $(){return`unknown format "${i}" ignored in schema at path "${l}"`}}function S($){let O=$ instanceof RegExp?(0,ft.regexpCode)($):c.code.formats?(0,ft._)`${c.code.formats}${(0,ft.getProperty)(i)}`:void 0,C=r.scopeValue("formats",{key:i,ref:$,code:O});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,ft._)`${C}.validate`]:["string",$,C]}function P(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!p.$async)throw new Error("async format in sync schema");return(0,ft._)`await ${x}(${n})`}return typeof b=="function"?(0,ft._)`${x}(${n})`:(0,ft._)`${x}.test(${n})`}}}};hg.default=JQ});var gg=E(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});var XQ=NE(),ZQ=[XQ.default];yg.default=ZQ});var qE=E(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.contentVocabulary=Ds.metadataVocabulary=void 0;Ds.metadataVocabulary=["title","description","default","deprecated","examples"];Ds.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var DE=E(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});var e6=EP(),t6=Cy(),r6=eg(),n6=_E(),o6=OE(),i6=mg(),s6=gg(),jE=qE(),a6=[n6.default,e6.default,t6.default,(0,r6.default)(!0),s6.default,jE.metadataVocabulary,jE.contentVocabulary,o6.default,i6.default];vg.default=a6});var LE=E(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.DiscrError=void 0;var ME;(function(e){e.Tag="tag",e.Mapping="mapping"})(ME||(pu.DiscrError=ME={}))});var Sg=E(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});var Ms=re(),bg=LE(),FE=hc(),c6=Is(),p6=$e(),l6={message:({params:{discrError:e,tagName:t}})=>e===bg.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,Ms._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function u6(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 d6={keyword:"discriminator",type:"object",schemaType:"object",error:l6,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,Ms._)`${r}${(0,Ms.getProperty)(a)}`);t.if((0,Ms._)`typeof ${p} == "string"`,()=>u(),()=>e.error(!1,{discrError:bg.DiscrError.Tag,tag:p,tagName:a})),e.ok(l);function u(){let m=h();t.if(!1);for(let y in m)t.elseIf((0,Ms._)`${p} === ${y}`),t.assign(l,f(m[y]));t.else(),e.error(!1,{discrError:bg.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function f(m){let y=t.name("valid"),b=e.subschema({keyword:s,schemaProp:m},y);return e.mergeEvaluated(b,Ms.Name),y}function h(){var m;let y={},b=w(o),x=!0;for(let $=0;$<c.length;$++){let O=c[$],C=O?.$ref;if(C&&n.mapping){let{mapping:k}=n,T=Object.keys(k).filter(se=>k[se]===O.$ref);if(T.length){for(let se of T)P(se,$);continue}}if(C&&!(0,p6.schemaHasRulesButRef)(O,i.self.RULES)&&(O=FE.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,C),O instanceof FE.SchemaEnv&&(O=O.schema),O===void 0))throw new c6.default(i.opts.uriResolver,i.baseId,C);let I=(m=O?.properties)===null||m===void 0?void 0:m[a];if(!I&&O?.allOf&&(I=u6(O,a)),typeof I!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);x=x&&(b||w(O)),S(I,$)}if(!x)throw new Error(`discriminator: "${a}" must be required`);return y;function w($){if(Array.isArray($.required)&&$.required.includes(a))return!0;if($.allOf&&Array.isArray($.allOf))for(let O of $.allOf){let C=O;if(Array.isArray(C.required)&&C.required.includes(a))return!0}return!1}function S($,O){if($.const)P($.const,O);else if($.enum)for(let C of $.enum)P(C,O);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function P($,O){if(typeof $!="string"||$ in y)throw new Error(`discriminator: "${a}" values must be unique strings`);y[$]=O}}}};xg.default=d6});var UE=E((Khe,f6)=>{f6.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 zE=E((Ghe,m6)=>{m6.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 VE=E((Whe,h6)=>{h6.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 BE=E((Yhe,y6)=>{y6.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 HE=E((Qhe,g6)=>{g6.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 KE=E((Jhe,v6)=>{v6.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 GE=E((Xhe,b6)=>{b6.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 WE=E((Zhe,x6)=>{x6.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 YE=E(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});var S6=UE(),w6=zE(),_6=VE(),$6=BE(),P6=HE(),E6=KE(),A6=GE(),O6=WE(),T6=["/properties"];function R6(e){return[S6,w6,_6,$6,P6,t(this,E6),A6,t(this,O6)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,T6):n}}wg.default=R6});var Pg=E((Qe,$g)=>{"use strict";Object.defineProperty(Qe,"__esModule",{value:!0});Qe.MissingRefError=Qe.ValidationError=Qe.CodeGen=Qe.Name=Qe.nil=Qe.stringify=Qe.str=Qe._=Qe.KeywordCxt=Qe.Ajv2020=void 0;var k6=uy(),I6=DE(),C6=Sg(),N6=YE(),_g="https://json-schema.org/draft/2020-12/schema",Ls=class extends k6.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),I6.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(C6.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(N6.default.call(this,t),this.refs["http://json-schema.org/schema"]=_g)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(_g)?_g:void 0)}};Qe.Ajv2020=Ls;$g.exports=Qe=Ls;$g.exports.Ajv2020=Ls;Object.defineProperty(Qe,"__esModule",{value:!0});Qe.default=Ls;var q6=ks();Object.defineProperty(Qe,"KeywordCxt",{enumerable:!0,get:function(){return q6.KeywordCxt}});var Fs=re();Object.defineProperty(Qe,"_",{enumerable:!0,get:function(){return Fs._}});Object.defineProperty(Qe,"str",{enumerable:!0,get:function(){return Fs.str}});Object.defineProperty(Qe,"stringify",{enumerable:!0,get:function(){return Fs.stringify}});Object.defineProperty(Qe,"nil",{enumerable:!0,get:function(){return Fs.nil}});Object.defineProperty(Qe,"Name",{enumerable:!0,get:function(){return Fs.Name}});Object.defineProperty(Qe,"CodeGen",{enumerable:!0,get:function(){return Fs.CodeGen}});var j6=mc();Object.defineProperty(Qe,"ValidationError",{enumerable:!0,get:function(){return j6.default}});var D6=Is();Object.defineProperty(Qe,"MissingRefError",{enumerable:!0,get:function(){return D6.default}})});var mA=E(kg=>{"use strict";Object.defineProperty(kg,"__esModule",{value:!0});var _u=re(),qo=_u.operators,Tg={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:qo.LTE,fail:qo.GT},{okStr:"<",ok:qo.LT,fail:qo.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:qo.GTE,fail:qo.LT},{okStr:">",ok:qo.GT,fail:qo.LTE}]}},A8={message:e=>(0,_u.str)`must be ${Rg(e).okStr} ${e.schemaCode}`,params:e=>(0,_u._)`{comparison: ${Rg(e).okStr}, limit: ${e.schemaCode}}`},O8={keyword:Object.keys(Tg),type:"number",schemaType:"number",$data:!0,error:A8,code(e){let{data:t,schemaCode:r}=e;e.fail$data((0,_u._)`${t} ${Rg(e).fail} ${r} || isNaN(${t})`)}};function Rg(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Tg[r].exclusive]?1:0;return Tg[r].ops[n]}kg.default=O8});var yA=E(Ig=>{"use strict";Object.defineProperty(Ig,"__esModule",{value:!0});var hA={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},T8={keyword:Object.keys(hA),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=hA[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Ig.default=T8});var gA=E(Cg=>{"use strict";Object.defineProperty(Cg,"__esModule",{value:!0});var R8=Sc(),k8=eg(),I8=mg(),C8=gg(),N8=Cy(),q8=mA(),j8=yA(),D8=["title","description","default"],M8=["$schema","id","$defs",{keyword:"$comment"},"definitions",R8.default],L8=[...N8.default.slice(1),q8.default,j8.default],F8=[M8,L8,(0,k8.default)(),C8.default,D8,I8.default];Cg.default=F8});var vA=E((Ige,U8)=>{U8.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 SA=E((Je,xA)=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.MissingRefError=Je.ValidationError=Je.CodeGen=Je.Name=Je.nil=Je.stringify=Je.str=Je._=Je.KeywordCxt=Je.Ajv=void 0;var z8=uy(),V8=gA(),B8=Sg(),bA=vA(),H8=["/properties"],$u="http://json-schema.org/draft-04/schema",qc=class extends z8.default{constructor(t={}){super({...t,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),V8.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(B8.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(bA,H8):bA;this.addMetaSchema(t,$u,!1),this.refs["http://json-schema.org/schema"]=$u}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($u)?$u:void 0)}};Je.Ajv=qc;xA.exports=Je=qc;Object.defineProperty(Je,"__esModule",{value:!0});Je.default=qc;var K8=ks();Object.defineProperty(Je,"KeywordCxt",{enumerable:!0,get:function(){return K8.KeywordCxt}});var Vs=re();Object.defineProperty(Je,"_",{enumerable:!0,get:function(){return Vs._}});Object.defineProperty(Je,"str",{enumerable:!0,get:function(){return Vs.str}});Object.defineProperty(Je,"stringify",{enumerable:!0,get:function(){return Vs.stringify}});Object.defineProperty(Je,"nil",{enumerable:!0,get:function(){return Vs.nil}});Object.defineProperty(Je,"Name",{enumerable:!0,get:function(){return Vs.Name}});Object.defineProperty(Je,"CodeGen",{enumerable:!0,get:function(){return Vs.CodeGen}});var G8=mc();Object.defineProperty(Je,"ValidationError",{enumerable:!0,get:function(){return G8.default}});var W8=Is();Object.defineProperty(Je,"MissingRefError",{enumerable:!0,get:function(){return W8.default}})});var TA=E(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.formatNames=Cn.fastFormats=Cn.fullFormats=void 0;function In(e,t){return{validate:e,compare:t}}Cn.fullFormats={date:In(PA,Dg),time:In(qg(!0),Mg),"date-time":In(wA(!0),AA),"iso-time":In(qg(),EA),"iso-date-time":In(wA(),OA),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:e7,"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:a7,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:t7,int32:{type:"number",validate:o7},int64:{type:"number",validate:i7},float:{type:"number",validate:$A},double:{type:"number",validate:$A},password:!0,binary:!0};Cn.fastFormats={...Cn.fullFormats,date:In(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Dg),time:In(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Mg),"date-time":In(/^\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,AA),"iso-time":In(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,EA),"iso-date-time":In(/^\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,OA),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};Cn.formatNames=Object.keys(Cn.fullFormats);function Y8(e){return e%4===0&&(e%100!==0||e%400===0)}var Q8=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,J8=[0,31,28,31,30,31,30,31,31,30,31,30,31];function PA(e){let t=Q8.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&&Y8(r)?29:J8[n])}function Dg(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Ng=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function qg(e){return function(r){let n=Ng.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,f=o-l*c-(u<0?1:0);return(f===23||f===-1)&&(u===59||u===-1)&&s<61}}function Mg(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 EA(e,t){if(!(e&&t))return;let r=Ng.exec(e),n=Ng.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 jg=/t|\s/i;function wA(e){let t=qg(e);return function(n){let o=n.split(jg);return o.length===2&&PA(o[0])&&t(o[1])}}function AA(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function OA(e,t){if(!(e&&t))return;let[r,n]=e.split(jg),[o,i]=t.split(jg),s=Dg(r,o);if(s!==void 0)return s||Mg(n,i)}var X8=/\/|:/,Z8=/^(?:[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 e7(e){return X8.test(e)&&Z8.test(e)}var _A=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function t7(e){return _A.lastIndex=0,_A.test(e)}var r7=-(2**31),n7=2**31-1;function o7(e){return Number.isInteger(e)&&e<=n7&&e>=r7}function i7(e){return Number.isInteger(e)}function $A(){return!0}var s7=/[^\\]\\Z/;function a7(e){if(s7.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Mc=E(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.regexpCode=Fe.getEsmExportName=Fe.getProperty=Fe.safeStringify=Fe.stringify=Fe.strConcat=Fe.addCodeArg=Fe.str=Fe._=Fe.nil=Fe._Code=Fe.Name=Fe.IDENTIFIER=Fe._CodeOrName=void 0;var jc=class{};Fe._CodeOrName=jc;Fe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Oi=class extends jc{constructor(t){if(super(),!Fe.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}}};Fe.Name=Oi;var Hr=class extends jc{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 Oi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Fe._Code=Hr;Fe.nil=new Hr("");function RA(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Fg(r,t[n]),r.push(e[++n]);return new Hr(r)}Fe._=RA;var Lg=new Hr("+");function kA(e,...t){let r=[Dc(e[0])],n=0;for(;n<t.length;)r.push(Lg),Fg(r,t[n]),r.push(Lg,Dc(e[++n]));return c7(r),new Hr(r)}Fe.str=kA;function Fg(e,t){t instanceof Hr?e.push(...t._items):t instanceof Oi?e.push(t):e.push(u7(t))}Fe.addCodeArg=Fg;function c7(e){let t=1;for(;t<e.length-1;){if(e[t]===Lg){let r=p7(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function p7(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Oi||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 Oi))return`"${e}${t.slice(1)}`}function l7(e,t){return t.emptyStr()?e:e.emptyStr()?t:kA`${e}${t}`}Fe.strConcat=l7;function u7(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Dc(Array.isArray(e)?e.join(","):e)}function d7(e){return new Hr(Dc(e))}Fe.stringify=d7;function Dc(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Fe.safeStringify=Dc;function f7(e){return typeof e=="string"&&Fe.IDENTIFIER.test(e)?new Hr(`.${e}`):RA`[${e}]`}Fe.getProperty=f7;function m7(e){if(typeof e=="string"&&Fe.IDENTIFIER.test(e))return new Hr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Fe.getEsmExportName=m7;function h7(e){return new Hr(e.toString())}Fe.regexpCode=h7});var Vg=E(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.ValueScope=Sr.ValueScopeName=Sr.Scope=Sr.varKinds=Sr.UsedValueState=void 0;var xr=Mc(),Ug=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Pu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Pu||(Sr.UsedValueState=Pu={}));Sr.varKinds={const:new xr.Name("const"),let:new xr.Name("let"),var:new xr.Name("var")};var Eu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof xr.Name?t:this.name(t)}name(t){return new xr.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}}};Sr.Scope=Eu;var Au=class extends xr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,xr._)`.${new xr.Name(r)}[${n}]`}};Sr.ValueScopeName=Au;var y7=(0,xr._)`\n`,zg=class extends Eu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?y7:xr.nil}}get(){return this._scope}name(t){return new Au(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,xr._)`${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=xr.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,Pu.Started);let p=r(l);if(p){let u=this.opts.es5?Sr.varKinds.var:Sr.varKinds.const;i=(0,xr._)`${i}${u} ${l} = ${p};${this.opts._n}`}else if(p=o?.(l))i=(0,xr._)`${i}${p}${this.opts._n}`;else throw new Ug(l);c.set(l,Pu.Completed)})}return i}};Sr.ValueScope=zg});var ye=E(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.or=xe.and=xe.not=xe.CodeGen=xe.operators=xe.varKinds=xe.ValueScopeName=xe.ValueScope=xe.Scope=xe.Name=xe.regexpCode=xe.stringify=xe.getProperty=xe.nil=xe.strConcat=xe.str=xe._=void 0;var Ce=Mc(),fn=Vg(),jo=Mc();Object.defineProperty(xe,"_",{enumerable:!0,get:function(){return jo._}});Object.defineProperty(xe,"str",{enumerable:!0,get:function(){return jo.str}});Object.defineProperty(xe,"strConcat",{enumerable:!0,get:function(){return jo.strConcat}});Object.defineProperty(xe,"nil",{enumerable:!0,get:function(){return jo.nil}});Object.defineProperty(xe,"getProperty",{enumerable:!0,get:function(){return jo.getProperty}});Object.defineProperty(xe,"stringify",{enumerable:!0,get:function(){return jo.stringify}});Object.defineProperty(xe,"regexpCode",{enumerable:!0,get:function(){return jo.regexpCode}});Object.defineProperty(xe,"Name",{enumerable:!0,get:function(){return jo.Name}});var ku=Vg();Object.defineProperty(xe,"Scope",{enumerable:!0,get:function(){return ku.Scope}});Object.defineProperty(xe,"ValueScope",{enumerable:!0,get:function(){return ku.ValueScope}});Object.defineProperty(xe,"ValueScopeName",{enumerable:!0,get:function(){return ku.ValueScopeName}});Object.defineProperty(xe,"varKinds",{enumerable:!0,get:function(){return ku.varKinds}});xe.operators={GT:new Ce._Code(">"),GTE:new Ce._Code(">="),LT:new Ce._Code("<"),LTE:new Ce._Code("<="),EQ:new Ce._Code("==="),NEQ:new Ce._Code("!=="),NOT:new Ce._Code("!"),OR:new Ce._Code("||"),AND:new Ce._Code("&&"),ADD:new Ce._Code("+")};var co=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Bg=class extends co{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?fn.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=Hs(this.rhs,t,r)),this}get names(){return this.rhs instanceof Ce._CodeOrName?this.rhs.names:{}}},Ou=class extends co{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 Ce.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Hs(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Ce.Name?{}:{...this.lhs.names};return Ru(t,this.rhs)}},Hg=class extends Ou{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Kg=class extends co{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Gg=class extends co{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Wg=class extends co{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Yg=class extends co{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=Hs(this.code,t,r),this}get names(){return this.code instanceof Ce._CodeOrName?this.code.names:{}}},Lc=class extends co{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)||(g7(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ki(t,r.names),{})}},po=class extends Lc{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Qg=class extends Lc{},Bs=class extends po{};Bs.kind="else";var Ti=class e extends po{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 Bs(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(IA(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=Hs(this.condition,t,r),this}get names(){let t=super.names;return Ru(t,this.condition),this.else&&ki(t,this.else.names),t}};Ti.kind="if";var Ri=class extends po{};Ri.kind="for";var Jg=class extends Ri{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=Hs(this.iteration,t,r),this}get names(){return ki(super.names,this.iteration.names)}},Xg=class extends Ri{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?fn.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=Ru(super.names,this.from);return Ru(t,this.to)}},Tu=class extends Ri{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=Hs(this.iterable,t,r),this}get names(){return ki(super.names,this.iterable.names)}},Fc=class extends po{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)}};Fc.kind="func";var Uc=class extends Lc{render(t){return"return "+super.render(t)}};Uc.kind="return";var Zg=class extends po{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&&ki(t,this.catch.names),this.finally&&ki(t,this.finally.names),t}},zc=class extends po{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};zc.kind="catch";var Vc=class extends po{render(t){return"finally"+super.render(t)}};Vc.kind="finally";var ev=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
15
+ `:""},this._extScope=t,this._scope=new fn.Scope({parent:t}),this._nodes=[new Qg]}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 Bg(t,i,n)),i}const(t,r,n){return this._def(fn.varKinds.const,t,r,n)}let(t,r,n){return this._def(fn.varKinds.let,t,r,n)}var(t,r,n){return this._def(fn.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ou(t,r,n))}add(t,r){return this._leafNode(new Hg(t,xe.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Ce.nil&&this._leafNode(new Yg(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,Ce.addCodeArg)(r,o));return r.push("}"),new Ce._Code(r)}if(t,r,n){if(this._blockNode(new Ti(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 Ti(t))}else(){return this._elseNode(new Bs)}endIf(){return this._endBlockNode(Ti,Bs)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Jg(t),r)}forRange(t,r,n,o,i=this.opts.es5?fn.varKinds.var:fn.varKinds.let){let s=this._scope.toName(t);return this._for(new Xg(i,s,r,n),()=>o(s))}forOf(t,r,n,o=fn.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof Ce.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Ce._)`${s}.length`,a=>{this.var(i,(0,Ce._)`${s}[${a}]`),n(i)})}return this._for(new Tu("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?fn.varKinds.var:fn.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Ce._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new Tu("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(Ri)}label(t){return this._leafNode(new Kg(t))}break(t){return this._leafNode(new Gg(t))}return(t){let r=new Uc;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Uc)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Zg;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new zc(i),r(i)}return n&&(this._currNode=o.finally=new Vc,this.code(n)),this._endBlockNode(zc,Vc)}throw(t){return this._leafNode(new Wg(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=Ce.nil,n,o){return this._blockNode(new Fc(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Fc)}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 Ti))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}};xe.CodeGen=ev;function ki(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Ru(e,t){return t instanceof Ce._CodeOrName?ki(e,t.names):e}function Hs(e,t,r){if(e instanceof Ce.Name)return n(e);if(!o(e))return e;return new Ce._Code(e._items.reduce((i,s)=>(s instanceof Ce.Name&&(s=n(s)),s instanceof Ce._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 Ce._Code&&i._items.some(s=>s instanceof Ce.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function g7(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function IA(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Ce._)`!${tv(e)}`}xe.not=IA;var v7=CA(xe.operators.AND);function b7(...e){return e.reduce(v7)}xe.and=b7;var x7=CA(xe.operators.OR);function S7(...e){return e.reduce(x7)}xe.or=S7;function CA(e){return(t,r)=>t===Ce.nil?r:r===Ce.nil?t:(0,Ce._)`${tv(t)} ${e} ${tv(r)}`}function tv(e){return e instanceof Ce.Name?e:(0,Ce._)`(${e})`}});var je=E(Pe=>{"use strict";Object.defineProperty(Pe,"__esModule",{value:!0});Pe.checkStrictMode=Pe.getErrorPath=Pe.Type=Pe.useFunc=Pe.setEvaluated=Pe.evaluatedPropsToName=Pe.mergeEvaluated=Pe.eachItem=Pe.unescapeJsonPointer=Pe.escapeJsonPointer=Pe.escapeFragment=Pe.unescapeFragment=Pe.schemaRefOrVal=Pe.schemaHasRulesButRef=Pe.schemaHasRules=Pe.checkUnknownRules=Pe.alwaysValidSchema=Pe.toHash=void 0;var Ye=ye(),w7=Mc();function _7(e){let t={};for(let r of e)t[r]=!0;return t}Pe.toHash=_7;function $7(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(jA(e,t),!DA(t,e.self.RULES.all))}Pe.alwaysValidSchema=$7;function jA(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]||FA(e,`unknown keyword: "${i}"`)}Pe.checkUnknownRules=jA;function DA(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}Pe.schemaHasRules=DA;function P7(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}Pe.schemaHasRulesButRef=P7;function E7({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ye._)`${r}`}return(0,Ye._)`${e}${t}${(0,Ye.getProperty)(n)}`}Pe.schemaRefOrVal=E7;function A7(e){return MA(decodeURIComponent(e))}Pe.unescapeFragment=A7;function O7(e){return encodeURIComponent(nv(e))}Pe.escapeFragment=O7;function nv(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Pe.escapeJsonPointer=nv;function MA(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Pe.unescapeJsonPointer=MA;function T7(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}Pe.eachItem=T7;function NA({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Ye.Name?(i instanceof Ye.Name?e(o,i,s):t(o,i,s),s):i instanceof Ye.Name?(t(o,s,i),i):r(i,s);return a===Ye.Name&&!(c instanceof Ye.Name)?n(o,c):c}}Pe.mergeEvaluated={props:NA({mergeNames:(e,t,r)=>e.if((0,Ye._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ye._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ye._)`${r} || {}`).code((0,Ye._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Ye._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ye._)`${r} || {}`),ov(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:LA}),items:NA({mergeNames:(e,t,r)=>e.if((0,Ye._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ye._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Ye._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ye._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function LA(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ye._)`{}`);return t!==void 0&&ov(e,r,t),r}Pe.evaluatedPropsToName=LA;function ov(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ye._)`${t}${(0,Ye.getProperty)(n)}`,!0))}Pe.setEvaluated=ov;var qA={};function R7(e,t){return e.scopeValue("func",{ref:t,code:qA[t.code]||(qA[t.code]=new w7._Code(t.code))})}Pe.useFunc=R7;var rv;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(rv||(Pe.Type=rv={}));function k7(e,t,r){if(e instanceof Ye.Name){let n=t===rv.Num;return r?n?(0,Ye._)`"[" + ${e} + "]"`:(0,Ye._)`"['" + ${e} + "']"`:n?(0,Ye._)`"/" + ${e}`:(0,Ye._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ye.getProperty)(e).toString():"/"+nv(e)}Pe.getErrorPath=k7;function FA(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}Pe.checkStrictMode=FA});var lo=E(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});var Jt=ye(),I7={data:new Jt.Name("data"),valCxt:new Jt.Name("valCxt"),instancePath:new Jt.Name("instancePath"),parentData:new Jt.Name("parentData"),parentDataProperty:new Jt.Name("parentDataProperty"),rootData:new Jt.Name("rootData"),dynamicAnchors:new Jt.Name("dynamicAnchors"),vErrors:new Jt.Name("vErrors"),errors:new Jt.Name("errors"),this:new Jt.Name("this"),self:new Jt.Name("self"),scope:new Jt.Name("scope"),json:new Jt.Name("json"),jsonPos:new Jt.Name("jsonPos"),jsonLen:new Jt.Name("jsonLen"),jsonPart:new Jt.Name("jsonPart")};iv.default=I7});var Bc=E(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.extendErrors=Xt.resetErrorsCount=Xt.reportExtraError=Xt.reportError=Xt.keyword$DataError=Xt.keywordError=void 0;var De=ye(),Iu=je(),sr=lo();Xt.keywordError={message:({keyword:e})=>(0,De.str)`must pass "${e}" keyword validation`};Xt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,De.str)`"${e}" keyword must be ${t} ($data)`:(0,De.str)`"${e}" keyword is invalid ($data)`};function C7(e,t=Xt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=VA(e,t,r);n??(s||a)?UA(i,c):zA(o,(0,De._)`[${c}]`)}Xt.reportError=C7;function N7(e,t=Xt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=VA(e,t,r);UA(o,a),i||s||zA(n,sr.default.vErrors)}Xt.reportExtraError=N7;function q7(e,t){e.assign(sr.default.errors,t),e.if((0,De._)`${sr.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,De._)`${sr.default.vErrors}.length`,t),()=>e.assign(sr.default.vErrors,null)))}Xt.resetErrorsCount=q7;function j7({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,sr.default.errors,a=>{e.const(s,(0,De._)`${sr.default.vErrors}[${a}]`),e.if((0,De._)`${s}.instancePath === undefined`,()=>e.assign((0,De._)`${s}.instancePath`,(0,De.strConcat)(sr.default.instancePath,i.errorPath))),e.assign((0,De._)`${s}.schemaPath`,(0,De.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,De._)`${s}.schema`,r),e.assign((0,De._)`${s}.data`,n))})}Xt.extendErrors=j7;function UA(e,t){let r=e.const("err",t);e.if((0,De._)`${sr.default.vErrors} === null`,()=>e.assign(sr.default.vErrors,(0,De._)`[${r}]`),(0,De._)`${sr.default.vErrors}.push(${r})`),e.code((0,De._)`${sr.default.errors}++`)}function zA(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,De._)`new ${e.ValidationError}(${t})`):(r.assign((0,De._)`${n}.errors`,t),r.return(!1))}var Ii={keyword:new De.Name("keyword"),schemaPath:new De.Name("schemaPath"),params:new De.Name("params"),propertyName:new De.Name("propertyName"),message:new De.Name("message"),schema:new De.Name("schema"),parentSchema:new De.Name("parentSchema")};function VA(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,De._)`{}`:D7(e,t,r)}function D7(e,t,r={}){let{gen:n,it:o}=e,i=[M7(o,r),L7(e,r)];return F7(e,t,i),n.object(...i)}function M7({errorPath:e},{instancePath:t}){let r=t?(0,De.str)`${e}${(0,Iu.getErrorPath)(t,Iu.Type.Str)}`:e;return[sr.default.instancePath,(0,De.strConcat)(sr.default.instancePath,r)]}function L7({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,De.str)`${t}/${e}`;return r&&(o=(0,De.str)`${o}${(0,Iu.getErrorPath)(r,Iu.Type.Str)}`),[Ii.schemaPath,o]}function F7(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([Ii.keyword,o],[Ii.params,typeof t=="function"?t(e):t||(0,De._)`{}`]),c.messages&&n.push([Ii.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Ii.schema,s],[Ii.parentSchema,(0,De._)`${p}${u}`],[sr.default.data,i]),l&&n.push([Ii.propertyName,l])}});var HA=E(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.boolOrEmptySchema=Ks.topBoolOrEmptySchema=void 0;var U7=Bc(),z7=ye(),V7=lo(),B7={message:"boolean schema is false"};function H7(e){let{gen:t,schema:r,validateName:n}=e;r===!1?BA(e,!1):typeof r=="object"&&r.$async===!0?t.return(V7.default.data):(t.assign((0,z7._)`${n}.errors`,null),t.return(!0))}Ks.topBoolOrEmptySchema=H7;function K7(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),BA(e)):r.var(t,!0)}Ks.boolOrEmptySchema=K7;function BA(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,U7.reportError)(o,B7,void 0,t)}});var sv=E(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.getRules=Gs.isJSONType=void 0;var G7=["string","number","integer","boolean","null","object","array"],W7=new Set(G7);function Y7(e){return typeof e=="string"&&W7.has(e)}Gs.isJSONType=Y7;function Q7(){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:{}}}Gs.getRules=Q7});var av=E(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.shouldUseRule=Do.shouldUseGroup=Do.schemaHasRulesForType=void 0;function J7({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&KA(e,n)}Do.schemaHasRulesForType=J7;function KA(e,t){return t.rules.some(r=>GA(e,r))}Do.shouldUseGroup=KA;function GA(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))}Do.shouldUseRule=GA});var Hc=E(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.reportTypeError=Zt.checkDataTypes=Zt.checkDataType=Zt.coerceAndCheckDataType=Zt.getJSONTypes=Zt.getSchemaTypes=Zt.DataType=void 0;var X7=sv(),Z7=av(),eJ=Bc(),me=ye(),WA=je(),Ws;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Ws||(Zt.DataType=Ws={}));function tJ(e){let t=YA(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}Zt.getSchemaTypes=tJ;function YA(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(X7.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Zt.getJSONTypes=YA;function rJ(e,t){let{gen:r,data:n,opts:o}=e,i=nJ(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,Z7.schemaHasRulesForType)(e,t[0]));if(s){let a=pv(t,n,o.strictNumbers,Ws.Wrong);r.if(a,()=>{i.length?oJ(e,t,i):lv(e)})}return s}Zt.coerceAndCheckDataType=rJ;var QA=new Set(["string","number","integer","boolean","null"]);function nJ(e,t){return t?e.filter(r=>QA.has(r)||t==="array"&&r==="array"):[]}function oJ(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,me._)`typeof ${o}`),a=n.let("coerced",(0,me._)`undefined`);i.coerceTypes==="array"&&n.if((0,me._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,me._)`${o}[0]`).assign(s,(0,me._)`typeof ${o}`).if(pv(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,me._)`${a} !== undefined`);for(let l of r)(QA.has(l)||l==="array"&&i.coerceTypes==="array")&&c(l);n.else(),lv(e),n.endIf(),n.if((0,me._)`${a} !== undefined`,()=>{n.assign(o,a),iJ(e,a)});function c(l){switch(l){case"string":n.elseIf((0,me._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,me._)`"" + ${o}`).elseIf((0,me._)`${o} === null`).assign(a,(0,me._)`""`);return;case"number":n.elseIf((0,me._)`${s} == "boolean" || ${o} === null
16
+ || (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,me._)`+${o}`);return;case"integer":n.elseIf((0,me._)`${s} === "boolean" || ${o} === null
17
+ || (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,me._)`+${o}`);return;case"boolean":n.elseIf((0,me._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,me._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,me._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,me._)`${s} === "string" || ${s} === "number"
18
+ || ${s} === "boolean" || ${o} === null`).assign(a,(0,me._)`[${o}]`)}}}function iJ({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,me._)`${t} !== undefined`,()=>e.assign((0,me._)`${t}[${r}]`,n))}function cv(e,t,r,n=Ws.Correct){let o=n===Ws.Correct?me.operators.EQ:me.operators.NEQ,i;switch(e){case"null":return(0,me._)`${t} ${o} null`;case"array":i=(0,me._)`Array.isArray(${t})`;break;case"object":i=(0,me._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,me._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,me._)`typeof ${t} ${o} ${e}`}return n===Ws.Correct?i:(0,me.not)(i);function s(a=me.nil){return(0,me.and)((0,me._)`typeof ${t} == "number"`,a,r?(0,me._)`isFinite(${t})`:me.nil)}}Zt.checkDataType=cv;function pv(e,t,r,n){if(e.length===1)return cv(e[0],t,r,n);let o,i=(0,WA.toHash)(e);if(i.array&&i.object){let s=(0,me._)`typeof ${t} != "object"`;o=i.null?s:(0,me._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=me.nil;i.number&&delete i.integer;for(let s in i)o=(0,me.and)(o,cv(s,t,r,n));return o}Zt.checkDataTypes=pv;var sJ={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,me._)`{type: ${e}}`:(0,me._)`{type: ${t}}`};function lv(e){let t=aJ(e);(0,eJ.reportError)(t,sJ)}Zt.reportTypeError=lv;function aJ(e){let{gen:t,data:r,schema:n}=e,o=(0,WA.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var XA=E(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.assignDefaults=void 0;var Ys=ye(),cJ=je();function pJ(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)JA(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>JA(e,i,o.default))}Cu.assignDefaults=pJ;function JA(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Ys._)`${i}${(0,Ys.getProperty)(t)}`;if(o){(0,cJ.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Ys._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Ys._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Ys._)`${a} = ${(0,Ys.stringify)(r)}`)}});var Kr=E(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.validateUnion=Ke.validateArray=Ke.usePattern=Ke.callValidateCode=Ke.schemaProperties=Ke.allSchemaProperties=Ke.noPropertyInData=Ke.propertyInData=Ke.isOwnProperty=Ke.hasPropFunc=Ke.reportMissingProp=Ke.checkMissingProp=Ke.checkReportMissingProp=void 0;var Xe=ye(),uv=je(),Mo=lo(),lJ=je();function uJ(e,t){let{gen:r,data:n,it:o}=e;r.if(fv(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Xe._)`${t}`},!0),e.error()})}Ke.checkReportMissingProp=uJ;function dJ({gen:e,data:t,it:{opts:r}},n,o){return(0,Xe.or)(...n.map(i=>(0,Xe.and)(fv(e,t,i,r.ownProperties),(0,Xe._)`${o} = ${i}`)))}Ke.checkMissingProp=dJ;function fJ(e,t){e.setParams({missingProperty:t},!0),e.error()}Ke.reportMissingProp=fJ;function ZA(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Xe._)`Object.prototype.hasOwnProperty`})}Ke.hasPropFunc=ZA;function dv(e,t,r){return(0,Xe._)`${ZA(e)}.call(${t}, ${r})`}Ke.isOwnProperty=dv;function mJ(e,t,r,n){let o=(0,Xe._)`${t}${(0,Xe.getProperty)(r)} !== undefined`;return n?(0,Xe._)`${o} && ${dv(e,t,r)}`:o}Ke.propertyInData=mJ;function fv(e,t,r,n){let o=(0,Xe._)`${t}${(0,Xe.getProperty)(r)} === undefined`;return n?(0,Xe.or)(o,(0,Xe.not)(dv(e,t,r))):o}Ke.noPropertyInData=fv;function eO(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ke.allSchemaProperties=eO;function hJ(e,t){return eO(t).filter(r=>!(0,uv.alwaysValidSchema)(e,t[r]))}Ke.schemaProperties=hJ;function yJ({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,l){let p=l?(0,Xe._)`${e}, ${t}, ${n}${o}`:t,u=[[Mo.default.instancePath,(0,Xe.strConcat)(Mo.default.instancePath,i)],[Mo.default.parentData,s.parentData],[Mo.default.parentDataProperty,s.parentDataProperty],[Mo.default.rootData,Mo.default.rootData]];s.opts.dynamicRef&&u.push([Mo.default.dynamicAnchors,Mo.default.dynamicAnchors]);let f=(0,Xe._)`${p}, ${r.object(...u)}`;return c!==Xe.nil?(0,Xe._)`${a}.call(${c}, ${f})`:(0,Xe._)`${a}(${f})`}Ke.callValidateCode=yJ;var gJ=(0,Xe._)`new RegExp`;function vJ({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,Xe._)`${o.code==="new RegExp"?gJ:(0,lJ.useFunc)(e,o)}(${r}, ${n})`})}Ke.usePattern=vJ;function bJ(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,Xe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:uv.Type.Num},i),t.if((0,Xe.not)(i),a)})}}Ke.validateArray=bJ;function xJ(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,uv.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,Xe._)`${s} || ${a}`),e.mergeValidEvaluated(p,a)||t.if((0,Xe.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Ke.validateUnion=xJ});var nO=E(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.validateKeywordUsage=Nn.validSchemaType=Nn.funcKeywordCode=Nn.macroKeywordCode=void 0;var ar=ye(),Ci=lo(),SJ=Kr(),wJ=Bc();function _J(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=rO(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:ar.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}Nn.macroKeywordCode=_J;function $J(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;EJ(c,t);let l=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,p=rO(n,o,l),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)y(),t.modifying&&tO(e),b(()=>e.error());else{let x=t.async?h():m();t.modifying&&tO(e),b(()=>PJ(e,x))}}function h(){let x=n.let("ruleErrs",null);return n.try(()=>y((0,ar._)`await `),w=>n.assign(u,!1).if((0,ar._)`${w} instanceof ${c.ValidationError}`,()=>n.assign(x,(0,ar._)`${w}.errors`),()=>n.throw(w))),x}function m(){let x=(0,ar._)`${p}.errors`;return n.assign(x,null),y(ar.nil),x}function y(x=t.async?(0,ar._)`await `:ar.nil){let w=c.opts.passContext?Ci.default.this:Ci.default.self,S=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,ar._)`${x}${(0,SJ.callValidateCode)(e,p,w,S)}`,t.modifying)}function b(x){var w;n.if((0,ar.not)((w=t.valid)!==null&&w!==void 0?w:u),x)}}Nn.funcKeywordCode=$J;function tO(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,ar._)`${n.parentData}[${n.parentDataProperty}]`))}function PJ(e,t){let{gen:r}=e;r.if((0,ar._)`Array.isArray(${t})`,()=>{r.assign(Ci.default.vErrors,(0,ar._)`${Ci.default.vErrors} === null ? ${t} : ${Ci.default.vErrors}.concat(${t})`).assign(Ci.default.errors,(0,ar._)`${Ci.default.vErrors}.length`),(0,wJ.extendErrors)(e)},()=>e.error())}function EJ({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function rO(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,ar.stringify)(r)})}function AJ(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")}Nn.validSchemaType=AJ;function OJ({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)}}Nn.validateKeywordUsage=OJ});var iO=E(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.extendSubschemaMode=Lo.extendSubschemaData=Lo.getSubschema=void 0;var qn=ye(),oO=je();function TJ(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,qn._)`${e.schemaPath}${(0,qn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,qn._)`${e.schemaPath}${(0,qn.getProperty)(t)}${(0,qn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,oO.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')}Lo.getSubschema=TJ;function RJ(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,f=a.let("data",(0,qn._)`${t.data}${(0,qn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,qn.str)`${l}${(0,oO.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,qn._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(o!==void 0){let l=o instanceof qn.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]}}Lo.extendSubschemaData=RJ;function kJ(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}Lo.extendSubschemaMode=kJ});var Kc=E(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.getSchemaRefs=wr.resolveUrl=wr.normalizeId=wr._getFullPath=wr.getFullPath=wr.inlineRef=void 0;var IJ=je(),CJ=lc(),NJ=Mh(),qJ=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function jJ(e,t=!0){return typeof e=="boolean"?!0:t===!0?!mv(e):t?sO(e)<=t:!1}wr.inlineRef=jJ;var DJ=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function mv(e){for(let t in e){if(DJ.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(mv)||typeof r=="object"&&mv(r))return!0}return!1}function sO(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!qJ.has(r)&&(typeof e[r]=="object"&&(0,IJ.eachItem)(e[r],n=>t+=sO(n)),t===1/0))return 1/0}return t}function aO(e,t="",r){r!==!1&&(t=Qs(t));let n=e.parse(t);return cO(e,n)}wr.getFullPath=aO;function cO(e,t){return e.serialize(t).split("#")[0]+"#"}wr._getFullPath=cO;var MJ=/#\/?$/;function Qs(e){return e?e.replace(MJ,""):""}wr.normalizeId=Qs;function LJ(e,t,r){return r=Qs(r),e.resolve(t,r)}wr.resolveUrl=LJ;var FJ=/^[a-z_][-a-z0-9._]*$/i;function UJ(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Qs(e[r]||t),i={"":o},s=aO(n,o,!1),a={},c=new Set;return NJ(e,{allKeys:!0},(u,f,h,m)=>{if(m===void 0)return;let y=s+f,b=i[m];typeof u[r]=="string"&&(b=x.call(this,u[r])),w.call(this,u.$anchor),w.call(this,u.$dynamicAnchor),i[f]=b;function x(S){let P=this.opts.uriResolver.resolve;if(S=Qs(b?P(b,S):S),c.has(S))throw p(S);c.add(S);let $=this.refs[S];return typeof $=="string"&&($=this.refs[$]),typeof $=="object"?l(u,$.schema,S):S!==Qs(y)&&(S[0]==="#"?(l(u,a[S],S),a[S]=u):this.refs[S]=y),S}function w(S){if(typeof S=="string"){if(!FJ.test(S))throw new Error(`invalid anchor "${S}"`);x.call(this,`#${S}`)}}}),a;function l(u,f,h){if(f!==void 0&&!CJ(u,f))throw p(h)}function p(u){return new Error(`reference "${u}" resolves to more than one schema`)}}wr.getSchemaRefs=UJ});var Yc=E(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.getData=Fo.KeywordCxt=Fo.validateFunctionCode=void 0;var fO=HA(),pO=Hc(),yv=av(),Nu=Hc(),zJ=XA(),Wc=nO(),hv=iO(),Y=ye(),oe=lo(),VJ=Kc(),uo=je(),Gc=Bc();function BJ(e){if(yO(e)&&(gO(e),hO(e))){GJ(e);return}mO(e,()=>(0,fO.topBoolOrEmptySchema)(e))}Fo.validateFunctionCode=BJ;function mO({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,Y._)`${oe.default.data}, ${oe.default.valCxt}`,n.$async,()=>{e.code((0,Y._)`"use strict"; ${lO(r,o)}`),KJ(e,o),e.code(i)}):e.func(t,(0,Y._)`${oe.default.data}, ${HJ(o)}`,n.$async,()=>e.code(lO(r,o)).code(i))}function HJ(e){return(0,Y._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${e.dynamicRef?(0,Y._)`, ${oe.default.dynamicAnchors}={}`:Y.nil}}={}`}function KJ(e,t){e.if(oe.default.valCxt,()=>{e.var(oe.default.instancePath,(0,Y._)`${oe.default.valCxt}.${oe.default.instancePath}`),e.var(oe.default.parentData,(0,Y._)`${oe.default.valCxt}.${oe.default.parentData}`),e.var(oe.default.parentDataProperty,(0,Y._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),e.var(oe.default.rootData,(0,Y._)`${oe.default.valCxt}.${oe.default.rootData}`),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,Y._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{e.var(oe.default.instancePath,(0,Y._)`""`),e.var(oe.default.parentData,(0,Y._)`undefined`),e.var(oe.default.parentDataProperty,(0,Y._)`undefined`),e.var(oe.default.rootData,oe.default.data),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,Y._)`{}`)})}function GJ(e){let{schema:t,opts:r,gen:n}=e;mO(e,()=>{r.$comment&&t.$comment&&bO(e),XJ(e),n.let(oe.default.vErrors,null),n.let(oe.default.errors,0),r.unevaluated&&WJ(e),vO(e),tX(e)})}function WJ(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Y._)`${r}.evaluated`),t.if((0,Y._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Y._)`${e.evaluated}.props`,(0,Y._)`undefined`)),t.if((0,Y._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Y._)`${e.evaluated}.items`,(0,Y._)`undefined`))}function lO(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Y._)`/*# sourceURL=${r} */`:Y.nil}function YJ(e,t){if(yO(e)&&(gO(e),hO(e))){QJ(e,t);return}(0,fO.boolOrEmptySchema)(e,t)}function hO({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 yO(e){return typeof e.schema!="boolean"}function QJ(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&bO(e),ZJ(e),eX(e);let i=n.const("_errs",oe.default.errors);vO(e,i),n.var(t,(0,Y._)`${i} === ${oe.default.errors}`)}function gO(e){(0,uo.checkUnknownRules)(e),JJ(e)}function vO(e,t){if(e.opts.jtd)return uO(e,[],!1,t);let r=(0,pO.getSchemaTypes)(e.schema),n=(0,pO.coerceAndCheckDataType)(e,r);uO(e,r,!n,t)}function JJ(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,uo.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function XJ(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,uo.checkStrictMode)(e,"default is ignored in the schema root")}function ZJ(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,VJ.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function eX(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function bO({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,Y._)`${oe.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,Y.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,Y._)`${oe.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function tX(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,Y._)`${oe.default.errors} === 0`,()=>t.return(oe.default.data),()=>t.throw((0,Y._)`new ${o}(${oe.default.vErrors})`)):(t.assign((0,Y._)`${n}.errors`,oe.default.vErrors),i.unevaluated&&rX(e),t.return((0,Y._)`${oe.default.errors} === 0`))}function rX({gen:e,evaluated:t,props:r,items:n}){r instanceof Y.Name&&e.assign((0,Y._)`${t}.props`,r),n instanceof Y.Name&&e.assign((0,Y._)`${t}.items`,n)}function uO(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,uo.schemaHasRulesButRef)(i,p))){o.block(()=>SO(e,"$ref",p.all.$ref.definition));return}c.jtd||nX(e,t),o.block(()=>{for(let f of p.rules)u(f);u(p.post)});function u(f){(0,yv.shouldUseGroup)(i,f)&&(f.type?(o.if((0,Nu.checkDataType)(f.type,s,c.strictNumbers)),dO(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,Nu.reportTypeError)(e)),o.endIf()):dO(e,f),a||o.if((0,Y._)`${oe.default.errors} === ${n||0}`))}}function dO(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,zJ.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,yv.shouldUseRule)(n,i)&&SO(e,i.keyword,i.definition,t.type)})}function nX(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(oX(e,t),e.opts.allowUnionTypes||iX(e,t),sX(e,e.dataTypes))}function oX(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{xO(e.dataTypes,r)||gv(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),cX(e,t)}}function iX(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&gv(e,"use allowUnionTypes to allow union type keyword")}function sX(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,yv.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>aX(t,s))&&gv(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function aX(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function xO(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function cX(e,t){let r=[];for(let n of e.dataTypes)xO(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function gv(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,uo.checkStrictMode)(e,t,e.opts.strictTypes)}var qu=class{constructor(t,r,n){if((0,Wc.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,uo.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",wO(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Wc.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",oe.default.errors))}result(t,r,n){this.failResult((0,Y.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,Y.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,Y._)`${r} !== undefined && (${(0,Y.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?Gc.reportExtraError:Gc.reportError)(this,this.def.error,r)}$dataError(){(0,Gc.reportError)(this,this.def.$dataError||Gc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Gc.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=Y.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Y.nil,r=Y.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,Y.or)((0,Y._)`${o} === undefined`,r)),t!==Y.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Y.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,Y.or)(s(),a());function s(){if(n.length){if(!(r instanceof Y.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,Y._)`${(0,Nu.checkDataTypes)(c,r,i.opts.strictNumbers,Nu.DataType.Wrong)}`}return Y.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,Y._)`!${c}(${r})`}return Y.nil}}subschema(t,r){let n=(0,hv.getSubschema)(this.it,t);(0,hv.extendSubschemaData)(n,this.it,t),(0,hv.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return YJ(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=uo.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=uo.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,Y.Name)),!0}};Fo.KeywordCxt=qu;function SO(e,t,r,n){let o=new qu(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Wc.funcKeywordCode)(o,r):"macro"in r?(0,Wc.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Wc.funcKeywordCode)(o,r)}var pX=/^\/(?:[^~]|~0|~1)*$/,lX=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function wO(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return oe.default.rootData;if(e[0]==="/"){if(!pX.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=oe.default.rootData}else{let l=lX.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,Y._)`${i}${(0,Y.getProperty)((0,uo.unescapeJsonPointer)(l))}`,s=(0,Y._)`${s} && ${i}`);return s;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}Fo.getData=wO});var ju=E(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});var vv=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};bv.default=vv});var Qc=E(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});var xv=Kc(),Sv=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,xv.resolveUrl)(t,r,n),this.missingSchema=(0,xv.normalizeId)((0,xv.getFullPath)(t,this.missingRef))}};wv.default=Sv});var Mu=E(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.resolveSchema=Gr.getCompilingSchema=Gr.resolveRef=Gr.compileSchema=Gr.SchemaEnv=void 0;var mn=ye(),uX=ju(),Ni=lo(),hn=Kc(),_O=je(),dX=Yc(),Js=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,hn.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Gr.SchemaEnv=Js;function $v(e){let t=$O.call(this,e);if(t)return t;let r=(0,hn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new mn.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:uX.default,code:(0,mn._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:Ni.default.data,parentData:Ni.default.parentData,parentDataProperty:Ni.default.parentDataProperty,dataNames:[Ni.default.data],dataPathArr:[mn.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,mn.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:mn.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,mn._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,dX.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let u=s.toString();p=`${s.scopeRefs(Ni.default.scope)}return ${u}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let h=new Function(`${Ni.default.self}`,`${Ni.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:h}),h.errors=null,h.schema=e.schema,h.schemaEnv=e,e.$async&&(h.$async=!0),this.opts.code.source===!0&&(h.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:m,items:y}=l;h.evaluated={props:m instanceof mn.Name?void 0:m,items:y instanceof mn.Name?void 0:y,dynamicProps:m instanceof mn.Name,dynamicItems:y instanceof mn.Name},h.source&&(h.source.evaluated=(0,mn.stringify)(h.evaluated))}return e.validate=h,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)}}Gr.compileSchema=$v;function fX(e,t,r){var n;r=(0,hn.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=yX.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 Js({schema:s,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=mX.call(this,i)}Gr.resolveRef=fX;function mX(e){return(0,hn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:$v.call(this,e)}function $O(e){for(let t of this._compilations)if(hX(t,e))return t}Gr.getCompilingSchema=$O;function hX(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]||Du.call(this,e,t)}function Du(e,t){let r=this.opts.uriResolver.parse(t),n=(0,hn._getFullPath)(this.opts.uriResolver,r),o=(0,hn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return _v.call(this,r,e);let i=(0,hn.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Du.call(this,e,s);return typeof a?.schema!="object"?void 0:_v.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||$v.call(this,s),i===(0,hn.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(o=(0,hn.resolveUrl)(this.opts.uriResolver,o,l)),new Js({schema:a,schemaId:c,root:e,baseId:o})}return _v.call(this,r,s)}}Gr.resolveSchema=Du;var gX=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function _v(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,_O.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!gX.has(a)&&l&&(t=(0,hn.resolveUrl)(this.opts.uriResolver,t,l))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,_O.schemaHasRulesButRef)(r,this.RULES)){let a=(0,hn.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Du.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Js({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var PO=E((Zge,vX)=>{vX.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 AO=E(Pv=>{"use strict";Object.defineProperty(Pv,"__esModule",{value:!0});var EO=ay();EO.code='require("ajv/dist/runtime/uri").default';Pv.default=EO});var qO=E(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.CodeGen=Ft.Name=Ft.nil=Ft.stringify=Ft.str=Ft._=Ft.KeywordCxt=void 0;var bX=Yc();Object.defineProperty(Ft,"KeywordCxt",{enumerable:!0,get:function(){return bX.KeywordCxt}});var Xs=ye();Object.defineProperty(Ft,"_",{enumerable:!0,get:function(){return Xs._}});Object.defineProperty(Ft,"str",{enumerable:!0,get:function(){return Xs.str}});Object.defineProperty(Ft,"stringify",{enumerable:!0,get:function(){return Xs.stringify}});Object.defineProperty(Ft,"nil",{enumerable:!0,get:function(){return Xs.nil}});Object.defineProperty(Ft,"Name",{enumerable:!0,get:function(){return Xs.Name}});Object.defineProperty(Ft,"CodeGen",{enumerable:!0,get:function(){return Xs.CodeGen}});var xX=ju(),IO=Qc(),SX=sv(),Jc=Mu(),wX=ye(),Xc=Kc(),Lu=Hc(),Av=je(),OO=PO(),_X=AO(),CO=(e,t)=>new RegExp(e,t);CO.code="new RegExp";var $X=["removeAdditional","useDefaults","coerceTypes"],PX=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),EX={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."},AX={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},TO=200;function OX(e){var t,r,n,o,i,s,a,c,l,p,u,f,h,m,y,b,x,w,S,P,$,O,C,I,k;let T=e.strict,se=(t=e.code)===null||t===void 0?void 0:t.optimize,X=se===!0||se===void 0?1:se||0,he=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:CO,q=(o=e.uriResolver)!==null&&o!==void 0?o:_X.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:T)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:T)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:T)!==null&&p!==void 0?p:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:T)!==null&&f!==void 0?f:"log",strictRequired:(m=(h=e.strictRequired)!==null&&h!==void 0?h:T)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:X,regExp:he}:{optimize:X,regExp:he},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:TO,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:TO,meta:(x=e.meta)!==null&&x!==void 0?x:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(P=e.schemaId)!==null&&P!==void 0?P:"$id",addUsedSchema:($=e.addUsedSchema)!==null&&$!==void 0?$:!0,validateSchema:(O=e.validateSchema)!==null&&O!==void 0?O:!0,validateFormats:(C=e.validateFormats)!==null&&C!==void 0?C:!0,unicodeRegExp:(I=e.unicodeRegExp)!==null&&I!==void 0?I:!0,int32range:(k=e.int32range)!==null&&k!==void 0?k:!0,uriResolver:q}}var Zc=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,...OX(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new wX.ValueScope({scope:{},prefixes:PX,es5:r,lines:n}),this.logger=NX(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,SX.getRules)(),RO.call(this,EX,t,"NOT SUPPORTED"),RO.call(this,AX,t,"DEPRECATED","warn"),this._metaOpts=IX.call(this),t.formats&&RX.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&kX.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),TX.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=OO;n==="id"&&(o={...OO},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 f=this._addSchema(p,u);return f.validate||s.call(this,f)}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 IO.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,Xc.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=kO.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Jc.SchemaEnv({schema:{},schemaId:n});if(r=Jc.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=kO.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,Xc.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(jX.call(this,n,r),!r)return(0,Av.eachItem)(n,i=>Ev.call(this,i)),this;MX.call(this,r);let o={...r,type:(0,Lu.getJSONTypes)(r.type),schemaType:(0,Lu.getJSONTypes)(r.schemaType)};return(0,Av.eachItem)(n,o.type.length===0?i=>Ev.call(this,i,o):i=>o.type.forEach(s=>Ev.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]=NO(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,Xc.normalizeId)(s||n);let l=Xc.getSchemaRefs.call(this,t,n);return c=new Jc.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):Jc.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{Jc.compileSchema.call(this,t)}finally{this.opts=r}}};Zc.ValidationError=xX.default;Zc.MissingRefError=IO.default;Ft.default=Zc;function RO(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 kO(e){return e=(0,Xc.normalizeId)(e),this.schemas[e]||this.refs[e]}function TX(){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 RX(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function kX(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 IX(){let e={...this.opts};for(let t of $X)delete e[t];return e}var CX={log(){},warn(){},error(){}};function NX(e){if(e===!1)return CX;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 qX=/^[a-z_$][a-z0-9_$:-]*$/i;function jX(e,t){let{RULES:r}=this;if((0,Av.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!qX.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 Ev(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,Lu.getJSONTypes)(t.type),schemaType:(0,Lu.getJSONTypes)(t.schemaType)}};t.before?DX.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 DX(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 MX(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=NO(t)),e.validateSchema=this.compile(t,!0))}var LX={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function NO(e){return{anyOf:[e,LX]}}});var jO=E(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});var FX={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Ov.default=FX});var FO=E(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.callRef=qi.getValidate=void 0;var UX=Qc(),DO=Kr(),_r=ye(),Zs=lo(),MO=Mu(),Fu=je(),zX={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=MO.resolveRef.call(c,l,o,r);if(p===void 0)throw new UX.default(n.opts.uriResolver,o,r);if(p instanceof MO.SchemaEnv)return f(p);return h(p);function u(){if(i===l)return Uu(e,s,i,i.$async);let m=t.scopeValue("root",{ref:l});return Uu(e,(0,_r._)`${m}.validate`,l,l.$async)}function f(m){let y=LO(e,m);Uu(e,y,m,m.$async)}function h(m){let y=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,_r.stringify)(m)}:{ref:m}),b=t.name("valid"),x=e.subschema({schema:m,dataTypes:[],schemaPath:_r.nil,topSchemaRef:y,errSchemaPath:r},b);e.mergeEvaluated(x),e.ok(b)}}};function LO(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,_r._)`${r.scopeValue("wrapper",{ref:t})}.validate`}qi.getValidate=LO;function Uu(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,l=c.passContext?Zs.default.this:_r.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,_r._)`await ${(0,DO.callValidateCode)(e,t,l)}`),h(t),s||o.assign(m,!0)},y=>{o.if((0,_r._)`!(${y} instanceof ${i.ValidationError})`,()=>o.throw(y)),f(y),s||o.assign(m,!1)}),e.ok(m)}function u(){e.result((0,DO.callValidateCode)(e,t,l),()=>h(t),()=>f(t))}function f(m){let y=(0,_r._)`${m}.errors`;o.assign(Zs.default.vErrors,(0,_r._)`${Zs.default.vErrors} === null ? ${y} : ${Zs.default.vErrors}.concat(${y})`),o.assign(Zs.default.errors,(0,_r._)`${Zs.default.vErrors}.length`)}function h(m){var y;if(!i.opts.unevaluated)return;let b=(y=r?.validate)===null||y===void 0?void 0:y.evaluated;if(i.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(i.props=Fu.mergeEvaluated.props(o,b.props,i.props));else{let x=o.var("props",(0,_r._)`${m}.evaluated.props`);i.props=Fu.mergeEvaluated.props(o,x,i.props,_r.Name)}if(i.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(i.items=Fu.mergeEvaluated.items(o,b.items,i.items));else{let x=o.var("items",(0,_r._)`${m}.evaluated.items`);i.items=Fu.mergeEvaluated.items(o,x,i.items,_r.Name)}}}qi.callRef=Uu;qi.default=zX});var UO=E(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});var VX=jO(),BX=FO(),HX=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",VX.default,BX.default];Tv.default=HX});var zO=E(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var zu=ye(),Uo=zu.operators,Vu={maximum:{okStr:"<=",ok:Uo.LTE,fail:Uo.GT},minimum:{okStr:">=",ok:Uo.GTE,fail:Uo.LT},exclusiveMaximum:{okStr:"<",ok:Uo.LT,fail:Uo.GTE},exclusiveMinimum:{okStr:">",ok:Uo.GT,fail:Uo.LTE}},KX={message:({keyword:e,schemaCode:t})=>(0,zu.str)`must be ${Vu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,zu._)`{comparison: ${Vu[e].okStr}, limit: ${t}}`},GX={keyword:Object.keys(Vu),type:"number",schemaType:"number",$data:!0,error:KX,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,zu._)`${r} ${Vu[t].fail} ${n} || isNaN(${r})`)}};Rv.default=GX});var VO=E(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});var ep=ye(),WX={message:({schemaCode:e})=>(0,ep.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,ep._)`{multipleOf: ${e}}`},YX={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:WX,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,ep._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,ep._)`${s} !== parseInt(${s})`;e.fail$data((0,ep._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};kv.default=YX});var HO=E(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});function BO(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}Iv.default=BO;BO.code='require("ajv/dist/runtime/ucs2length").default'});var KO=E(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});var ji=ye(),QX=je(),JX=HO(),XX={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ji.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,ji._)`{limit: ${e}}`},ZX={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:XX,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?ji.operators.GT:ji.operators.LT,s=o.opts.unicode===!1?(0,ji._)`${r}.length`:(0,ji._)`${(0,QX.useFunc)(e.gen,JX.default)}(${r})`;e.fail$data((0,ji._)`${s} ${i} ${n}`)}};Cv.default=ZX});var GO=E(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});var eZ=Kr(),tZ=je(),ea=ye(),rZ={message:({schemaCode:e})=>(0,ea.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,ea._)`{pattern: ${e}}`},nZ={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:rZ,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,ea._)`new RegExp`:(0,tZ.useFunc)(t,c),p=t.let("valid");t.try(()=>t.assign(p,(0,ea._)`${l}(${i}, ${a}).test(${r})`),()=>t.assign(p,!1)),e.fail$data((0,ea._)`!${p}`)}else{let c=(0,eZ.usePattern)(e,o);e.fail$data((0,ea._)`!${c}.test(${r})`)}}};Nv.default=nZ});var WO=E(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});var tp=ye(),oZ={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,tp.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,tp._)`{limit: ${e}}`},iZ={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:oZ,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?tp.operators.GT:tp.operators.LT;e.fail$data((0,tp._)`Object.keys(${r}).length ${o} ${n}`)}};qv.default=iZ});var YO=E(jv=>{"use strict";Object.defineProperty(jv,"__esModule",{value:!0});var rp=Kr(),np=ye(),sZ=je(),aZ={message:({params:{missingProperty:e}})=>(0,np.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,np._)`{missingProperty: ${e}}`},cZ={keyword:"required",type:"object",schemaType:"array",$data:!0,error:aZ,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 h=e.parentSchema.properties,{definedProperties:m}=e.it;for(let y of r)if(h?.[y]===void 0&&!m.has(y)){let b=s.schemaEnv.baseId+s.errSchemaPath,x=`required property "${y}" is not defined at "${b}" (strictRequired)`;(0,sZ.checkStrictMode)(s,x,s.opts.strictRequired)}}function l(){if(c||i)e.block$data(np.nil,u);else for(let h of r)(0,rp.checkReportMissingProp)(e,h)}function p(){let h=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>f(h,m)),e.ok(m)}else t.if((0,rp.checkMissingProp)(e,r,h)),(0,rp.reportMissingProp)(e,h),t.else()}function u(){t.forOf("prop",n,h=>{e.setParams({missingProperty:h}),t.if((0,rp.noPropertyInData)(t,o,h,a.ownProperties),()=>e.error())})}function f(h,m){e.setParams({missingProperty:h}),t.forOf(h,n,()=>{t.assign(m,(0,rp.propertyInData)(t,o,h,a.ownProperties)),t.if((0,np.not)(m),()=>{e.error(),t.break()})},np.nil)}}};jv.default=cZ});var QO=E(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var op=ye(),pZ={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,op.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,op._)`{limit: ${e}}`},lZ={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:pZ,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?op.operators.GT:op.operators.LT;e.fail$data((0,op._)`${r}.length ${o} ${n}`)}};Dv.default=lZ});var Bu=E(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});var JO=lc();JO.code='require("ajv/dist/runtime/equal").default';Mv.default=JO});var XO=E(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});var Lv=Hc(),Ut=ye(),uZ=je(),dZ=Bu(),fZ={message:({params:{i:e,j:t}})=>(0,Ut.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ut._)`{i: ${e}, j: ${t}}`},mZ={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:fZ,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,Lv.getSchemaTypes)(i.items):[];e.block$data(c,p,(0,Ut._)`${s} === false`),e.ok(c);function p(){let m=t.let("i",(0,Ut._)`${r}.length`),y=t.let("j");e.setParams({i:m,j:y}),t.assign(c,!0),t.if((0,Ut._)`${m} > 1`,()=>(u()?f:h)(m,y))}function u(){return l.length>0&&!l.some(m=>m==="object"||m==="array")}function f(m,y){let b=t.name("item"),x=(0,Lv.checkDataTypes)(l,b,a.opts.strictNumbers,Lv.DataType.Wrong),w=t.const("indices",(0,Ut._)`{}`);t.for((0,Ut._)`;${m}--;`,()=>{t.let(b,(0,Ut._)`${r}[${m}]`),t.if(x,(0,Ut._)`continue`),l.length>1&&t.if((0,Ut._)`typeof ${b} == "string"`,(0,Ut._)`${b} += "_"`),t.if((0,Ut._)`typeof ${w}[${b}] == "number"`,()=>{t.assign(y,(0,Ut._)`${w}[${b}]`),e.error(),t.assign(c,!1).break()}).code((0,Ut._)`${w}[${b}] = ${m}`)})}function h(m,y){let b=(0,uZ.useFunc)(t,dZ.default),x=t.name("outer");t.label(x).for((0,Ut._)`;${m}--;`,()=>t.for((0,Ut._)`${y} = ${m}; ${y}--;`,()=>t.if((0,Ut._)`${b}(${r}[${m}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(x)})))}}};Fv.default=mZ});var ZO=E(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var Uv=ye(),hZ=je(),yZ=Bu(),gZ={message:"must be equal to constant",params:({schemaCode:e})=>(0,Uv._)`{allowedValue: ${e}}`},vZ={keyword:"const",$data:!0,error:gZ,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Uv._)`!${(0,hZ.useFunc)(t,yZ.default)}(${r}, ${o})`):e.fail((0,Uv._)`${i} !== ${r}`)}};zv.default=vZ});var eT=E(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});var ip=ye(),bZ=je(),xZ=Bu(),SZ={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,ip._)`{allowedValues: ${e}}`},wZ={keyword:"enum",schemaType:"array",$data:!0,error:SZ,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,bZ.useFunc)(t,xZ.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 h=t.const("vSchema",i);p=(0,ip.or)(...o.map((m,y)=>f(h,y)))}e.pass(p);function u(){t.assign(p,!1),t.forOf("v",i,h=>t.if((0,ip._)`${l()}(${r}, ${h})`,()=>t.assign(p,!0).break()))}function f(h,m){let y=o[m];return typeof y=="object"&&y!==null?(0,ip._)`${l()}(${r}, ${h}[${m}])`:(0,ip._)`${r} === ${y}`}}};Vv.default=wZ});var tT=E(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});var _Z=zO(),$Z=VO(),PZ=KO(),EZ=GO(),AZ=WO(),OZ=YO(),TZ=QO(),RZ=XO(),kZ=ZO(),IZ=eT(),CZ=[_Z.default,$Z.default,PZ.default,EZ.default,AZ.default,OZ.default,TZ.default,RZ.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},kZ.default,IZ.default];Bv.default=CZ});var Kv=E(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.validateAdditionalItems=void 0;var Di=ye(),Hv=je(),NZ={message:({params:{len:e}})=>(0,Di.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Di._)`{limit: ${e}}`},qZ={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:NZ,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Hv.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}rT(e,n)}};function rT(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Di._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Di._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Hv.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,Di._)`${a} <= ${t.length}`);r.if((0,Di.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,p=>{e.subschema({keyword:i,dataProp:p,dataPropType:Hv.Type.Num},l),s.allErrors||r.if((0,Di.not)(l),()=>r.break())})}}sp.validateAdditionalItems=rT;sp.default=qZ});var Gv=E(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.validateTuple=void 0;var nT=ye(),Hu=je(),jZ=Kr(),DZ={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return oT(e,"additionalItems",t);r.items=!0,!(0,Hu.alwaysValidSchema)(r,t)&&e.ok((0,jZ.validateArray)(e))}};function oT(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=Hu.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,nT._)`${i}.length`);r.forEach((u,f)=>{(0,Hu.alwaysValidSchema)(a,u)||(n.if((0,nT._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function p(u){let{opts:f,errSchemaPath:h}=a,m=r.length,y=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(f.strictTuples&&!y){let b=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${h}"`;(0,Hu.checkStrictMode)(a,b,f.strictTuples)}}}ap.validateTuple=oT;ap.default=DZ});var iT=E(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});var MZ=Gv(),LZ={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,MZ.validateTuple)(e,"items")};Wv.default=LZ});var aT=E(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});var sT=ye(),FZ=je(),UZ=Kr(),zZ=Kv(),VZ={message:({params:{len:e}})=>(0,sT.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,sT._)`{limit: ${e}}`},BZ={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:VZ,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,FZ.alwaysValidSchema)(n,t)&&(o?(0,zZ.validateAdditionalItems)(e,o):e.ok((0,UZ.validateArray)(e)))}};Yv.default=BZ});var cT=E(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});var Wr=ye(),Ku=je(),HZ={message:({params:{min:e,max:t}})=>t===void 0?(0,Wr.str)`must contain at least ${e} valid item(s)`:(0,Wr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Wr._)`{minContains: ${e}}`:(0,Wr._)`{minContains: ${e}, maxContains: ${t}}`},KZ={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:HZ,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,Wr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Ku.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Ku.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ku.alwaysValidSchema)(i,r)){let y=(0,Wr._)`${p} >= ${s}`;a!==void 0&&(y=(0,Wr._)`${y} && ${p} <= ${a}`),e.pass(y);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?h(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,Wr._)`${o}.length > 0`,f)):(t.let(u,!1),f()),e.result(u,()=>e.reset());function f(){let y=t.name("_valid"),b=t.let("count",0);h(y,()=>t.if(y,()=>m(b)))}function h(y,b){t.forRange("i",0,p,x=>{e.subschema({keyword:"contains",dataProp:x,dataPropType:Ku.Type.Num,compositeRule:!0},y),b()})}function m(y){t.code((0,Wr._)`${y}++`),a===void 0?t.if((0,Wr._)`${y} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,Wr._)`${y} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,Wr._)`${y} >= ${s}`,()=>t.assign(u,!0)))}}};Qv.default=KZ});var uT=E(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.validateSchemaDeps=jn.validatePropertyDeps=jn.error=void 0;var Jv=ye(),GZ=je(),cp=Kr();jn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Jv.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Jv._)`{property: ${e},
19
+ missingProperty: ${n},
20
+ depsCount: ${t},
21
+ deps: ${r}}`};var WZ={keyword:"dependencies",type:"object",schemaType:"object",error:jn.error,code(e){let[t,r]=YZ(e);pT(e,t),lT(e,r)}};function YZ({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 pT(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,cp.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,cp.checkReportMissingProp)(e,l)}):(r.if((0,Jv._)`${c} && (${(0,cp.checkMissingProp)(e,a,i)})`),(0,cp.reportMissingProp)(e,i),r.else())}}jn.validatePropertyDeps=pT;function lT(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,GZ.alwaysValidSchema)(i,t[a])||(r.if((0,cp.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))}jn.validateSchemaDeps=lT;jn.default=WZ});var fT=E(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});var dT=ye(),QZ=je(),JZ={message:"property name must be valid",params:({params:e})=>(0,dT._)`{propertyName: ${e.propertyName}}`},XZ={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:JZ,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,QZ.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,dT.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Xv.default=XZ});var eb=E(Zv=>{"use strict";Object.defineProperty(Zv,"__esModule",{value:!0});var Gu=Kr(),yn=ye(),ZZ=lo(),Wu=je(),eee={message:"must NOT have additional properties",params:({params:e})=>(0,yn._)`{additionalProperty: ${e.additionalProperty}}`},tee={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:eee,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,Wu.alwaysValidSchema)(s,r))return;let l=(0,Gu.allSchemaProperties)(n.properties),p=(0,Gu.allSchemaProperties)(n.patternProperties);u(),e.ok((0,yn._)`${i} === ${ZZ.default.errors}`);function u(){t.forIn("key",o,b=>{!l.length&&!p.length?m(b):t.if(f(b),()=>m(b))})}function f(b){let x;if(l.length>8){let w=(0,Wu.schemaRefOrVal)(s,n.properties,"properties");x=(0,Gu.isOwnProperty)(t,w,b)}else l.length?x=(0,yn.or)(...l.map(w=>(0,yn._)`${b} === ${w}`)):x=yn.nil;return p.length&&(x=(0,yn.or)(x,...p.map(w=>(0,yn._)`${(0,Gu.usePattern)(e,w)}.test(${b})`))),(0,yn.not)(x)}function h(b){t.code((0,yn._)`delete ${o}[${b}]`)}function m(b){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){h(b);return}if(r===!1){e.setParams({additionalProperty:b}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Wu.alwaysValidSchema)(s,r)){let x=t.name("valid");c.removeAdditional==="failing"?(y(b,x,!1),t.if((0,yn.not)(x),()=>{e.reset(),h(b)})):(y(b,x),a||t.if((0,yn.not)(x),()=>t.break()))}}function y(b,x,w){let S={keyword:"additionalProperties",dataProp:b,dataPropType:Wu.Type.Str};w===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,x)}}};Zv.default=tee});var yT=E(rb=>{"use strict";Object.defineProperty(rb,"__esModule",{value:!0});var ree=Yc(),mT=Kr(),tb=je(),hT=eb(),nee={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&&hT.default.code(new ree.KeywordCxt(i,hT.default,"additionalProperties"));let s=(0,mT.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=tb.mergeEvaluated.props(t,(0,tb.toHash)(s),i.props));let a=s.filter(u=>!(0,tb.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,mT.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)}}};rb.default=nee});var xT=E(nb=>{"use strict";Object.defineProperty(nb,"__esModule",{value:!0});var gT=Kr(),Yu=ye(),vT=je(),bT=je(),oee={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,gT.allSchemaProperties)(r),c=a.filter(y=>(0,vT.alwaysValidSchema)(i,r[y]));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 Yu.Name)&&(i.props=(0,bT.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let y of a)l&&h(y),i.allErrors?m(y):(t.var(p,!0),m(y),t.if(p))}function h(y){for(let b in l)new RegExp(y).test(b)&&(0,vT.checkStrictMode)(i,`property ${b} matches pattern ${y} (use allowMatchingProperties)`)}function m(y){t.forIn("key",n,b=>{t.if((0,Yu._)`${(0,gT.usePattern)(e,y)}.test(${b})`,()=>{let x=c.includes(y);x||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:b,dataPropType:bT.Type.Str},p),i.opts.unevaluated&&u!==!0?t.assign((0,Yu._)`${u}[${b}]`,!0):!x&&!i.allErrors&&t.if((0,Yu.not)(p),()=>t.break())})})}}};nb.default=oee});var ST=E(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});var iee=je(),see={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,iee.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"}};ob.default=see});var wT=E(ib=>{"use strict";Object.defineProperty(ib,"__esModule",{value:!0});var aee=Kr(),cee={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:aee.validateUnion,error:{message:"must match a schema in anyOf"}};ib.default=cee});var _T=E(sb=>{"use strict";Object.defineProperty(sb,"__esModule",{value:!0});var Qu=ye(),pee=je(),lee={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Qu._)`{passingSchemas: ${e.passing}}`},uee={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:lee,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 f;(0,pee.alwaysValidSchema)(o,p)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,Qu._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Qu._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,Qu.Name)})})}}};sb.default=uee});var $T=E(ab=>{"use strict";Object.defineProperty(ab,"__esModule",{value:!0});var dee=je(),fee={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,dee.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o);e.ok(o),e.mergeEvaluated(a)})}};ab.default=fee});var AT=E(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});var Ju=ye(),ET=je(),mee={message:({params:e})=>(0,Ju.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Ju._)`{failingKeyword: ${e.ifClause}}`},hee={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:mee,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ET.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=PT(n,"then"),i=PT(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,Ju.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 f=e.subschema({keyword:p},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,Ju._)`${p}`):e.setParams({ifClause:p})}}}};function PT(e,t){let r=e.schema[t];return r!==void 0&&!(0,ET.alwaysValidSchema)(e,r)}cb.default=hee});var OT=E(pb=>{"use strict";Object.defineProperty(pb,"__esModule",{value:!0});var yee=je(),gee={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,yee.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};pb.default=gee});var TT=E(lb=>{"use strict";Object.defineProperty(lb,"__esModule",{value:!0});var vee=Kv(),bee=iT(),xee=Gv(),See=aT(),wee=cT(),_ee=uT(),$ee=fT(),Pee=eb(),Eee=yT(),Aee=xT(),Oee=ST(),Tee=wT(),Ree=_T(),kee=$T(),Iee=AT(),Cee=OT();function Nee(e=!1){let t=[Oee.default,Tee.default,Ree.default,kee.default,Iee.default,Cee.default,$ee.default,Pee.default,_ee.default,Eee.default,Aee.default];return e?t.push(bee.default,See.default):t.push(vee.default,xee.default),t.push(wee.default),t}lb.default=Nee});var RT=E(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0});var mt=ye(),qee={message:({schemaCode:e})=>(0,mt.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,mt._)`{format: ${e}}`},jee={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:qee,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?f():h();function f(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),y=r.const("fDef",(0,mt._)`${m}[${s}]`),b=r.let("fType"),x=r.let("format");r.if((0,mt._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(b,(0,mt._)`${y}.type || "string"`).assign(x,(0,mt._)`${y}.validate`),()=>r.assign(b,(0,mt._)`"string"`).assign(x,y)),e.fail$data((0,mt.or)(w(),S()));function w(){return c.strictSchema===!1?mt.nil:(0,mt._)`${s} && !${x}`}function S(){let P=p.$async?(0,mt._)`(${y}.async ? await ${x}(${n}) : ${x}(${n}))`:(0,mt._)`${x}(${n})`,$=(0,mt._)`(typeof ${x} == "function" ? ${P} : ${x}.test(${n}))`;return(0,mt._)`${x} && ${x} !== true && ${b} === ${t} && !${$}`}}function h(){let m=u.formats[i];if(!m){w();return}if(m===!0)return;let[y,b,x]=S(m);y===t&&e.pass(P());function w(){if(c.strictSchema===!1){u.logger.warn($());return}throw new Error($());function $(){return`unknown format "${i}" ignored in schema at path "${l}"`}}function S($){let O=$ instanceof RegExp?(0,mt.regexpCode)($):c.code.formats?(0,mt._)`${c.code.formats}${(0,mt.getProperty)(i)}`:void 0,C=r.scopeValue("formats",{key:i,ref:$,code:O});return typeof $=="object"&&!($ instanceof RegExp)?[$.type||"string",$.validate,(0,mt._)`${C}.validate`]:["string",$,C]}function P(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!p.$async)throw new Error("async format in sync schema");return(0,mt._)`await ${x}(${n})`}return typeof b=="function"?(0,mt._)`${x}(${n})`:(0,mt._)`${x}.test(${n})`}}}};ub.default=jee});var kT=E(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});var Dee=RT(),Mee=[Dee.default];db.default=Mee});var IT=E(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.contentVocabulary=ta.metadataVocabulary=void 0;ta.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];ta.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var NT=E(fb=>{"use strict";Object.defineProperty(fb,"__esModule",{value:!0});var Lee=UO(),Fee=tT(),Uee=TT(),zee=kT(),CT=IT(),Vee=[Lee.default,Fee.default,(0,Uee.default)(),zee.default,CT.metadataVocabulary,CT.contentVocabulary];fb.default=Vee});var jT=E(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.DiscrError=void 0;var qT;(function(e){e.Tag="tag",e.Mapping="mapping"})(qT||(Xu.DiscrError=qT={}))});var MT=E(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0});var ra=ye(),mb=jT(),DT=Mu(),Bee=Qc(),Hee=je(),Kee={message:({params:{discrError:e,tagName:t}})=>e===mb.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,ra._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},Gee={keyword:"discriminator",type:"object",schemaType:"object",error:Kee,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,ra._)`${r}${(0,ra.getProperty)(a)}`);t.if((0,ra._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:mb.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function p(){let h=f();t.if(!1);for(let m in h)t.elseIf((0,ra._)`${l} === ${m}`),t.assign(c,u(h[m]));t.else(),e.error(!1,{discrError:mb.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function u(h){let m=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:h},m);return e.mergeEvaluated(y,ra.Name),m}function f(){var h;let m={},y=x(o),b=!0;for(let P=0;P<s.length;P++){let $=s[P];if($?.$ref&&!(0,Hee.schemaHasRulesButRef)($,i.self.RULES)){let C=$.$ref;if($=DT.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,C),$ instanceof DT.SchemaEnv&&($=$.schema),$===void 0)throw new Bee.default(i.opts.uriResolver,i.baseId,C)}let O=(h=$?.properties)===null||h===void 0?void 0:h[a];if(typeof O!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);b=b&&(y||x($)),w(O,P)}if(!b)throw new Error(`discriminator: "${a}" must be required`);return m;function x({required:P}){return Array.isArray(P)&&P.includes(a)}function w(P,$){if(P.const)S(P.const,$);else if(P.enum)for(let O of P.enum)S(O,$);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function S(P,$){if(typeof P!="string"||P in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[P]=$}}}};hb.default=Gee});var LT=E((Uve,Wee)=>{Wee.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 UT=E((Ze,yb)=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.MissingRefError=Ze.ValidationError=Ze.CodeGen=Ze.Name=Ze.nil=Ze.stringify=Ze.str=Ze._=Ze.KeywordCxt=Ze.Ajv=void 0;var Yee=qO(),Qee=NT(),Jee=MT(),FT=LT(),Xee=["/properties"],Zu="http://json-schema.org/draft-07/schema",na=class extends Yee.default{_addVocabularies(){super._addVocabularies(),Qee.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Jee.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(FT,Xee):FT;this.addMetaSchema(t,Zu,!1),this.refs["http://json-schema.org/schema"]=Zu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Zu)?Zu:void 0)}};Ze.Ajv=na;yb.exports=Ze=na;yb.exports.Ajv=na;Object.defineProperty(Ze,"__esModule",{value:!0});Ze.default=na;var Zee=Yc();Object.defineProperty(Ze,"KeywordCxt",{enumerable:!0,get:function(){return Zee.KeywordCxt}});var oa=ye();Object.defineProperty(Ze,"_",{enumerable:!0,get:function(){return oa._}});Object.defineProperty(Ze,"str",{enumerable:!0,get:function(){return oa.str}});Object.defineProperty(Ze,"stringify",{enumerable:!0,get:function(){return oa.stringify}});Object.defineProperty(Ze,"nil",{enumerable:!0,get:function(){return oa.nil}});Object.defineProperty(Ze,"Name",{enumerable:!0,get:function(){return oa.Name}});Object.defineProperty(Ze,"CodeGen",{enumerable:!0,get:function(){return oa.CodeGen}});var ete=ju();Object.defineProperty(Ze,"ValidationError",{enumerable:!0,get:function(){return ete.default}});var tte=Qc();Object.defineProperty(Ze,"MissingRefError",{enumerable:!0,get:function(){return tte.default}})});var zT=E(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.formatLimitDefinition=void 0;var rte=UT(),gn=ye(),zo=gn.operators,ed={formatMaximum:{okStr:"<=",ok:zo.LTE,fail:zo.GT},formatMinimum:{okStr:">=",ok:zo.GTE,fail:zo.LT},formatExclusiveMaximum:{okStr:"<",ok:zo.LT,fail:zo.GTE},formatExclusiveMinimum:{okStr:">",ok:zo.GT,fail:zo.LTE}},nte={message:({keyword:e,schemaCode:t})=>(0,gn.str)`should be ${ed[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,gn._)`{comparison: ${ed[e].okStr}, limit: ${t}}`};ia.formatLimitDefinition={keyword:Object.keys(ed),type:"string",schemaType:"string",$data:!0,error:nte,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 rte.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?l():p();function l(){let f=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),h=t.const("fmt",(0,gn._)`${f}[${c.schemaCode}]`);e.fail$data((0,gn.or)((0,gn._)`typeof ${h} != "object"`,(0,gn._)`${h} instanceof RegExp`,(0,gn._)`typeof ${h}.compare != "function"`,u(h)))}function p(){let f=c.schema,h=a.formats[f];if(!h||h===!0)return;if(typeof h!="object"||h instanceof RegExp||typeof h.compare!="function")throw new Error(`"${o}": format "${f}" does not define "compare" function`);let m=t.scopeValue("formats",{key:f,ref:h,code:s.code.formats?(0,gn._)`${s.code.formats}${(0,gn.getProperty)(f)}`:void 0});e.fail$data(u(m))}function u(f){return(0,gn._)`${f}.compare(${r}, ${n}) ${ed[o].fail} 0`}},dependencies:["format"]};var ote=e=>(e.addKeyword(ia.formatLimitDefinition),e);ia.default=ote});var KT=E((pp,HT)=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});var sa=TA(),ite=zT(),gb=ye(),VT=new gb.Name("fullFormats"),ste=new gb.Name("fastFormats"),vb=(e,t={keywords:!0})=>{if(Array.isArray(t))return BT(e,t,sa.fullFormats,VT),e;let[r,n]=t.mode==="fast"?[sa.fastFormats,ste]:[sa.fullFormats,VT],o=t.formats||sa.formatNames;return BT(e,o,r,n),t.keywords&&(0,ite.default)(e),e};vb.get=(e,t="full")=>{let n=(t==="fast"?sa.fastFormats:sa.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function BT(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,gb._)`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}HT.exports=pp=vb;Object.defineProperty(pp,"__esModule",{value:!0});pp.default=vb});var _b=E(aa=>{"use strict";aa.__esModule=!0;aa.distance=aa.closest=void 0;var fo=new Uint32Array(65536),mte=function(e,t){for(var r=e.length,n=t.length,o=1<<r-1,i=-1,s=0,a=r,c=r;c--;)fo[e.charCodeAt(c)]|=1<<c;for(c=0;c<n;c++){var l=fo[t.charCodeAt(c)],p=l|s;l|=(l&i)+i^i,s|=~(l|i),i&=l,s&o&&a++,i&o&&a--,s=s<<1|1,i=i<<1|~(p|s),s&=p}for(c=r;c--;)fo[e.charCodeAt(c)]=0;return a},hte=function(e,t){for(var r=t.length,n=e.length,o=[],i=[],s=Math.ceil(r/32),a=Math.ceil(n/32),c=0;c<s;c++)i[c]=-1,o[c]=0;for(var l=0;l<a-1;l++){for(var p=0,u=-1,f=l*32,h=Math.min(32,n)+f,m=f;m<h;m++)fo[e.charCodeAt(m)]|=1<<m;for(var c=0;c<r;c++){var y=fo[t.charCodeAt(c)],b=i[c/32|0]>>>c&1,x=o[c/32|0]>>>c&1,w=y|p,S=((y|x)&u)+u^u|y|x,P=p|~(S|u),$=u&S;P>>>31^b&&(i[c/32|0]^=1<<c),$>>>31^x&&(o[c/32|0]^=1<<c),P=P<<1|b,$=$<<1|x,u=$|~(w|P),p=P&w}for(var m=f;m<h;m++)fo[e.charCodeAt(m)]=0}for(var O=0,C=-1,I=l*32,k=Math.min(32,n-I)+I,m=I;m<k;m++)fo[e.charCodeAt(m)]|=1<<m;for(var T=n,c=0;c<r;c++){var y=fo[t.charCodeAt(c)],b=i[c/32|0]>>>c&1,x=o[c/32|0]>>>c&1,w=y|O,S=((y|x)&C)+C^C|y|x,P=O|~(S|C),$=C&S;T+=P>>>n-1&1,T-=$>>>n-1&1,P>>>31^b&&(i[c/32|0]^=1<<c),$>>>31^x&&(o[c/32|0]^=1<<c),P=P<<1|b,$=$<<1|x,C=$|~(w|P),O=P&w}for(var m=I;m<k;m++)fo[e.charCodeAt(m)]=0;return T},sR=function(e,t){if(e.length<t.length){var r=t;t=e,e=r}return t.length===0?e.length:e.length<=32?mte(e,t):hte(e,t)};aa.distance=sR;var yte=function(e,t){for(var r=1/0,n=0,o=0;o<t.length;o++){var i=sR(e,t[o]);i<r&&(r=i,n=o)}return t[n]};aa.closest=yte});var gp=E(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});var ha;(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"})(ha=Bn.Kind||(Bn.Kind={}));function $re(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:ha.MAPPING,parent:null,errors:[]};return n}Bn.newMapping=$re;function Pre(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:ha.ANCHOR_REF,parent:null}}Bn.newAnchorRef=Pre;function Ere(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:ha.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}Bn.newScalar=Ere;function A1(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:ha.SEQ,parent:null}}Bn.newItems=A1;function Are(){return A1()}Bn.newSeq=Are;function Ore(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:ha.MAP,parent:null}}Bn.newMap=Ore});var Vi=E(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});function O1(e){return typeof e>"u"||e===null}Xo.isNothing=O1;function Tre(e){return typeof e=="object"&&e!==null}Xo.isObject=Tre;function Rre(e){return Array.isArray(e)?e:O1(e)?[]:[e]}Xo.toArray=Rre;function kre(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}Xo.extend=kre;function Ire(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}Xo.repeat=Ire;function Cre(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Xo.isNegativeZero=Cre});var ya=E((bAe,T1)=>{"use strict";var Nre=(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})();T1.exports=Nre});var I1=E((xAe,k1)=>{"use strict";var R1=Vi(),qre=(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),R1.repeat(" ",t)+n+a+i+`
24
+ `+R1.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})();k1.exports=qre});var Vt=E(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});var C1=ya(),jre=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],Dre=["scalar","sequence","mapping"];function Mre(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var Lre=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(jre.indexOf(n)===-1)throw new C1('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=Mre(r.styleAliases||null),Dre.indexOf(this.kind)===-1)throw new C1('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();Vb.Type=Lre});var ga=E(Hb=>{"use strict";Object.defineProperty(Hb,"__esModule",{value:!0});var N1=Vi(),Ld=ya(),Fre=Vt();function Bb(e,t,r){var n=[];return e.include.forEach(function(o){r=Bb(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 Ure(){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 zre=(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 Ld("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Bb(this,"implicit",[]),this.compiledExplicit=Bb(this,"explicit",[]),this.compiledTypeMap=Ure(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 Ld("Wrong number of arguments for Schema.create function")}if(r=N1.toArray(r),n=N1.toArray(n),!r.every(function(o){return o instanceof e}))throw new Ld("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(o){return o instanceof Fre.Type}))throw new Ld("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();Hb.Schema=zre});var j1=E((_Ae,q1)=>{"use strict";var Vre=Vt();q1.exports=new Vre.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var M1=E(($Ae,D1)=>{"use strict";var Bre=Vt();D1.exports=new Bre.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var F1=E((PAe,L1)=>{"use strict";var Hre=Vt();L1.exports=new Hre.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var z1=E((EAe,U1)=>{"use strict";var Kre=ga();U1.exports=new Kre.Schema({explicit:[j1(),M1(),F1()]})});var B1=E((AAe,V1)=>{"use strict";var Gre=Vt();function Wre(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Yre(){return null}function Qre(e){return e===null}V1.exports=new Gre.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:Wre,construct:Yre,predicate:Qre,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var K1=E((OAe,H1)=>{"use strict";var Jre=Vt();function Xre(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 Zre(e){return e==="true"||e==="True"||e==="TRUE"}function ene(e){return Object.prototype.toString.call(e)==="[object Boolean]"}H1.exports=new Jre.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Xre,construct:Zre,predicate:ene,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 W1=E((TAe,G1)=>{"use strict";var tne=Vi(),rne=Vt();function nne(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function one(e){return 48<=e&&e<=55}function ine(e){return 48<=e&&e<=57}function sne(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(!nne(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(!one(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!ine(e.charCodeAt(r)))return!1;n=!0}return n?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function ane(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 cne(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!tne.isNegativeZero(e)}G1.exports=new rne.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:sne,construct:ane,predicate:cne,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 J1=E((RAe,Q1)=>{"use strict";var Y1=Vi(),pne=Vt(),lne=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 une(e){if(e===null)return!1;var t,r,n,o;return!!lne.test(e)}function dne(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 fne(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(Y1.isNegativeZero(e))return"-0.0";return e.toString(10)}function mne(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Y1.isNegativeZero(e))}Q1.exports=new pne.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:une,construct:dne,predicate:mne,represent:fne,defaultStyle:"lowercase"})});var Z1=E((kAe,X1)=>{"use strict";var hne=ga();X1.exports=new hne.Schema({include:[z1()],implicit:[B1(),K1(),W1(),J1()]})});var tI=E((IAe,eI)=>{"use strict";var yne=ga();eI.exports=new yne.Schema({include:[Z1()]})});var oI=E((CAe,nI)=>{"use strict";var gne=Vt(),rI=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 vne(e){if(e===null)return!1;var t,r,n,o,i,s,a,c=0,l=null,p,u,f;return t=rI.exec(e),t!==null}function bne(e){var t,r,n,o,i,s,a,c=0,l=null,p,u,f;if(t=rI.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)),f=new Date(Date.UTC(r,n,o,i,s,a,c)),l&&f.setTime(f.getTime()-l),f}function xne(e){return e.toISOString()}nI.exports=new gne.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:vne,construct:bne,instanceOf:Date,represent:xne})});var sI=E((NAe,iI)=>{"use strict";var Sne=Vt();function wne(e){return e==="<<"||e===null}iI.exports=new Sne.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:wne})});var cI=E((qAe,aI)=>{"use strict";var Fd=df("buffer").Buffer,_ne=Vt(),Kb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
26
+ \r`;function $ne(e){if(e===null)return!1;var t,r,n=0,o=0,i=e.length,s=Kb;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 Pne(e){var t,r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,s=Kb,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),Fd?new Fd(c):c}function Ene(e){var t="",r=0,n,o,i=e.length,s=Kb;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 Ane(e){return Fd&&Fd.isBuffer(e)}aI.exports=new _ne.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:$ne,construct:Pne,predicate:Ane,represent:Ene})});var lI=E((jAe,pI)=>{"use strict";var One=Vt(),Tne=Object.prototype.hasOwnProperty,Rne=Object.prototype.toString;function kne(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,Rne.call(o)!=="[object Object]")return!1;for(i in o)if(Tne.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 Ine(e){return e!==null?e:[]}pI.exports=new One.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:kne,construct:Ine})});var dI=E((DAe,uI)=>{"use strict";var Cne=Vt(),Gb=gp(),Nne=Object.prototype.toString;function qne(e){if(e===null)return!0;if(e.kind!=Gb.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],Nne.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function jne(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,o,i=e.items;for(o=Gb.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=Gb.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}uI.exports=new Cne.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:qne,construct:jne})});var mI=E((MAe,fI)=>{"use strict";var Dne=Vt(),Mne=gp();function Lne(e){return e===null?!0:e.kind==Mne.Kind.MAP}function Fne(e){return e!==null?e:{}}fI.exports=new Dne.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:Lne,construct:Fne})});var Ud=E((LAe,hI)=>{"use strict";var Une=ga(),zne=new Une.Schema({include:[tI()],implicit:[oI(),sI()],explicit:[cI(),lI(),dI(),mI()]});hI.exports=zne});var gI=E((FAe,yI)=>{"use strict";var Vne=Vt();function Bne(){return!0}function Hne(){}function Kne(){return""}function Gne(e){return typeof e>"u"}yI.exports=new Vne.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Bne,construct:Hne,predicate:Gne,represent:Kne})});var bI=E((UAe,vI)=>{"use strict";var Wne=Vt();function Yne(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 Qne(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 Jne(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Xne(e){return Object.prototype.toString.call(e)==="[object RegExp]"}vI.exports=new Wne.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Yne,construct:Qne,predicate:Xne,represent:Jne})});var Wb=E((zAe,wI)=>{"use strict";var xI=ga(),SI=new xI.Schema({include:[Ud()],explicit:[gI(),bI()]});xI.Schema.DEFAULT=SI;wI.exports=SI});var qI=E((Sa,bp)=>{"use strict";Object.defineProperty(Sa,"__esModule",{value:!0});var Rr=gp(),Zo=Vi(),t0=ya(),r0=I1(),EI=Ud(),Zne=Wb(),Bd=Object.prototype.hasOwnProperty,zd=1,AI=2,OI=3,Vd=4,Yb=1,eoe=2,_I=3,toe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,roe=/[\x85\u2028\u2029]/,noe=/[,\[\]\{\}]/,TI=/^(?:!|!!|![a-z\-]+!)$/i,RI=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function vn(e){return e===10||e===13}function Bi(e){return e===9||e===32}function $r(e){return e===9||e===32||e===10||e===13}function va(e){return e===44||e===91||e===93||e===123||e===125}function ooe(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function ioe(e){return e===120?2:e===117?4:e===85?8:0}function soe(e){return 48<=e&&e<=57?e-48:-1}function aoe(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 coe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Qb=new Array(256),Jb=new Array(256),kI=new Array(256),Xb=new Array(256);for(Jr=0;Jr<256;Jr++)Xb[Jr]=Jb[Jr]=aoe(Jr),Qb[Jr]=Jb[Jr]?1:0,kI[Jr]=1,Qb[Jr]||(Xb[Jr]="\\"+String.fromCharCode(Jr));var Jr,poe=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||Zne,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 n0(e,t,r){return r===void 0&&(r=!1),new t0(t,new r0(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function Zb(e,t,r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var i=loe(e,t);if(i){var s=r+t;if(!e.errorMap[s]){var a=new r0(e.filename,e.input,t,i.line,t-i.start);o&&(a.toLineEnd=!0);var c=new t0(r,a,n);e.errors.push(c)}}}function ne(e,t){var r=n0(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 e0(e,t){var r=n0(e,t);e.onWarning&&e.onWarning.call(null,r)}var $I={YAML:function(t,r,n){var o,i,s;t.version!==null&&ne(t,"duplication of %YAML directive"),n.length!==1&&ne(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&ne(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&ne(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&ne(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var o,i;n.length!==2&&ne(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],TI.test(o)||ne(t,"ill-formed tag handle (first argument) of the TAG directive"),Bd.call(t.tagMap,o)&&ne(t,'there is a previously declared suffix for "'+o+'" tag handle'),RI.test(i)||ne(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function ei(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||ne(e,"expected valid JSON character");else toe.test(a)&&ne(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function ba(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:Rr.Kind.MAP});var a=Rr.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)&&(Zb(e,a.key.startPosition,"duplicate key"),Zb(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=o?o.endPosition:n.endPosition+1,t}}function o0(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++):ne(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function loe(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 bt(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Bi(o);)o===9&&e.errors.push(n0(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(vn(o))for(o0(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&&e0(e,"deficient indentation"),n}function vp(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||$r(r)))}function i0(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=Zo.repeat(`
29
+ `,r-1))}function uoe(e,t,r){var n,o,i,s,a,c,l,p,u=e.kind,f=e.result,h,m=Rr.newScalar();if(m.plainScalar=!0,e.result=m,h=e.input.charCodeAt(e.position),$r(h)||va(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(o=e.input.charCodeAt(e.position+1),$r(o)||r&&va(o)))return!1;for(e.kind="scalar",i=s=e.position,a=!1;h!==0;){if(h===58){if(o=e.input.charCodeAt(e.position+1),$r(o)||r&&va(o))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),$r(n))break}else{if(e.position===e.lineStart&&vp(e)||r&&va(h))break;if(vn(h))if(c=e.line,l=e.lineStart,p=e.lineIndent,bt(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=p;break}}if(a&&(ei(e,i,s,!1),i0(e,m,e.line-c),i=s=e.position,a=!1),Bi(h)||(s=e.position+1),h=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return ei(e,i,s,!1),e.result.startPosition!=-1?(m.rawValue=e.input.substring(m.startPosition,m.endPosition),!0):(e.kind=u,e.result=f,!1)}function doe(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var i=Rr.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(ei(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 vn(r)?(ei(e,n,o,!0),i0(e,i,bt(e,!1,t)),n=o=e.position):e.position===e.lineStart&&vp(e)?ne(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position,i.endPosition=e.position);ne(e,"unexpected end of the stream within a single quoted scalar")}function foe(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=Rr.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 ei(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(ei(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),vn(c))bt(e,!1,t);else if(c<256&&(e.allowAnyEscape?kI[c]:Qb[c]))l.value+=e.allowAnyEscape?Xb[c]:Jb[c],e.position++;else if((s=ioe(c))>0){for(o=s,i=0;o>0;o--)c=e.input.charCodeAt(++e.position),(s=ooe(c))>=0?i=(i<<4)+s:ne(e,"expected hexadecimal character");l.value+=coe(i),e.position++}else ne(e,"unknown escape sequence");r=n=e.position}else vn(c)?(ei(e,r,n,!0),i0(e,l,bt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&vp(e)?ne(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ne(e,"unexpected end of the stream within a double quoted scalar")}function moe(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,c,l,p,u,f,h,m,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,u=!1,i=Rr.newItems(),i.startPosition=e.position;else if(y===123)c=125,u=!0,i=Rr.newMap(),i.startPosition=e.position;else return!1;for(e.anchor!==null&&(i.anchorId=e.anchor,e.anchorMap[e.anchor]=i),y=e.input.charCodeAt(++e.position);y!==0;){if(bt(e,!0,t),y=e.input.charCodeAt(e.position),y===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 b=e.position;ne(e,"missed comma between flow collection entries"),e.position=b+1}if(h=f=m=null,l=p=!1,y===63&&(a=e.input.charCodeAt(e.position+1),$r(a)&&(l=p=!0,e.position++,bt(e,!0,t))),n=e.line,xa(e,t,zd,!1,!0),h=e.tag,f=e.result,bt(e,!0,t),y=e.input.charCodeAt(e.position),(p||e.line===n)&&y===58&&(l=!0,y=e.input.charCodeAt(++e.position),bt(e,!0,t),xa(e,t,zd,!1,!0),m=e.result),u)ba(e,i,h,f,m);else if(l){var x=ba(e,null,h,f,m);x.parent=i,i.items.push(x)}else f&&(f.parent=i),i.items.push(f);i.endPosition=e.position+1,bt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(r=!0,y=e.input.charCodeAt(++e.position)):r=!1}ne(e,"unexpected end of the stream within a flow collection")}function hoe(e,t){var r,n,o=Yb,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=Rr.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)Yb===o?o=p===43?_I:eoe:ne(e,"repeat of a chomping mode identifier");else if((l=soe(p))>=0)l===0?ne(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?ne(e,"repeat of an indentation width identifier"):(s=t+l-1,i=!0);else break;if(Bi(p)){do p=e.input.charCodeAt(++e.position);while(Bi(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!vn(p)&&p!==0)}for(;p!==0;){for(o0(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),vn(p)){a++;continue}if(e.lineIndent<s){o===_I?u.value+=Zo.repeat(`
30
+ `,a):o===Yb&&i&&(u.value+=`
31
+ `);break}for(n?Bi(p)?(c=!0,u.value+=Zo.repeat(`
32
+ `,a+1)):c?(c=!1,u.value+=Zo.repeat(`
33
+ `,a+1)):a===0?i&&(u.value+=" "):u.value+=Zo.repeat(`
34
+ `,a):i&&(u.value+=Zo.repeat(`
35
+ `,a+1)),i=!0,a=0,r=e.position;!vn(p)&&p!==0;)p=e.input.charCodeAt(++e.position);ei(e,r,e.position,!1)}u.endPosition=e.position;for(var f=e.position-1,h=!1;;){var m=e.input[f];if(m=="\r"||m==`
36
+ `){h&&f--;break}if(m!=" "&&m!=" ")break;f--}return u.endPosition=f,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0}function PI(e,t){var r,n=e.tag,o=e.anchor,i=Rr.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),!$r(s)));){if(a=!0,e.position++,bt(e,!0,-1)&&e.lineIndent<=t){i.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,xa(e,t,OI,!1,!0),e.result&&(e.result.parent=i,i.items.push(e.result)),bt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)ne(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 yoe(e,t,r){var n,o,i,s=e.tag,a=e.anchor,c=Rr.newMap(),l=null,p=null,u=null,f=!1,h=!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)&&$r(n))m===63?(f&&(ba(e,c,l,p,null),l=p=u=null),h=!0,f=!0,o=!0):f?(f=!1,o=!0):ne(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,m=n;else if(xa(e,r,AI,!1,!0))if(e.line===i){for(m=e.input.charCodeAt(e.position);Bi(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),$r(m)||ne(e,"a whitespace character is expected after the key-value separator within a block mapping"),f&&(ba(e,c,l,p,null),l=p=u=null),h=!0,f=!1,o=!1,l=e.tag,p=e.result;else{if(e.position==e.lineStart&&vp(e))break;if(h)ne(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(h){for(ne(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),vn(m)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===i||e.lineIndent>t)&&(xa(e,t,Vd,!0,o)&&(f?p=e.result:u=e.result),f||(ba(e,c,l,p,u),l=p=u=null),bt(e,!0,-1),m=e.input.charCodeAt(e.position)),e.lineIndent>t&&m!==0)ne(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return f&&ba(e,c,l,p,null),h&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),h}function goe(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&&ne(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)):ne(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!$r(s);)s===33&&(n?ne(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),TI.test(o)||ne(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),noe.test(i)&&ne(e,"tag suffix cannot contain flow indicator characters")}return i&&!RI.test(i)&&ne(e,"tag name cannot contain such characters: "+i),r?e.tag=i:Bd.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:ne(e,'undeclared tag handle "'+o+'"'),!0}function voe(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ne(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!$r(r)&&!va(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ne(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function boe(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&&!$r(i)&&!va(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(ne(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)||(ne(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=Rr.newAnchorRef(r,t,e.position,e.anchorMap[r]),bt(e,!0,-1),!0}function xa(e,t,r,n,o){var i,s,a,c=1,l=!1,p=!1,u,f,h,m,y,b;e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=Vd===r||OI===r,n&&bt(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var x=e.position,w=e.position-e.lineStart;if(c===1)for(;goe(e)||voe(e);)bt(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||Vd===r)&&(zd===r||AI===r?m=t:m=t+1,y=e.position-e.lineStart,c===1?a&&(PI(e,y)||yoe(e,y,m))||moe(e,m)?p=!0:(s&&hoe(e,m)||doe(e,m)||foe(e,m)?p=!0:boe(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&ne(e,"alias node should not have any properties")):uoe(e,m,zd===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&&PI(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Rr.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,ne(e,"!include without value")),e.result.kind=Rr.Kind.INCLUDE_REF;else if(e.tag==="?")for(u=0,f=e.implicitTypes.length;u<f;u+=1){h=e.implicitTypes[u];var S=e.result.value;if(h.resolve(S)){e.result.valueObject=h.construct(e.result.value),e.tag=h.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else Bd.call(e.typeMap,e.tag)?(h=e.typeMap[e.tag],e.result!==null&&h.kind!==e.kind&&ne(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result)?(e.result=h.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):ne(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Zb(e,x,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||p}function xoe(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&&(bt(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&&!$r(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&ne(e,"directive name must not be less than one character in length");s!==0;){for(;Bi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!vn(s));break}if(vn(s))break;for(r=e.position;s!==0&&!$r(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&o0(e),Bd.call($I,n)?$I[n](e,n,o):(e0(e,'unknown document directive "'+n+'"'),e.position++)}if(bt(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,bt(e,!0,-1)):i&&ne(e,"directives end mark is expected"),xa(e,e.lineIndent-1,Vd,!1,!0),bt(e,!0,-1),e.checkLineBreaks&&roe.test(e.input.slice(t,e.position))&&e0(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&vp(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,bt(e,!0,-1));return}if(e.position<e.length-1)ne(e,"end of the stream or a document separator is expected");else return}function II(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 poe(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(xoe(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 s0(e,t,r){r===void 0&&(r={});var n=II(e,r),o,i;for(o=0,i=n.length;o<i;o+=1)t(n[o])}Sa.loadAll=s0;function a0(e,t){t===void 0&&(t={});var r=II(e,t),n,o;if(r.length!==0){if(r.length===1)return r[0];var i=new t0("expected a single document in the stream, but found more");return i.mark=new r0("","",0,0,0),i.mark.position=r[0].endPosition,r[0].errors.push(i),r[0]}}Sa.load=a0;function CI(e,t,r){r===void 0&&(r={}),s0(e,t,Zo.extend({schema:EI},r))}Sa.safeLoadAll=CI;function NI(e,t){return t===void 0&&(t={}),a0(e,Zo.extend({schema:EI},t))}Sa.safeLoad=NI;bp.exports.loadAll=s0;bp.exports.load=a0;bp.exports.safeLoadAll=CI;bp.exports.safeLoad=NI});var zI=E(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var xp=Vi(),f0=ya(),Soe=Wb(),woe=Ud(),m0=Object.prototype.toString,LI=Object.prototype.hasOwnProperty,_oe=9,Hi=10,$oe=13,c0=32,Poe=33,p0=34,Eoe=35,Aoe=37,Ooe=38,l0=39,Toe=42,Roe=44,koe=45,Ioe=58,Coe=62,Noe=63,qoe=64,joe=91,Doe=93,Moe=96,Loe=123,Foe=124,Uoe=125,It={};It[0]="\\0";It[7]="\\a";It[8]="\\b";It[9]="\\t";It[10]="\\n";It[11]="\\v";It[12]="\\f";It[13]="\\r";It[27]="\\e";It[34]='\\"';It[92]="\\\\";It[133]="\\N";It[160]="\\_";It[8232]="\\L";It[8233]="\\P";var zoe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Voe(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&&LI.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function Boe(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 f0("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+xp.repeat("0",n-t.length)+t}function Hoe(e){this.schema=e.schema||Soe,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=xp.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Voe(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 jI(e,t){for(var r=xp.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 u0(e,t){return`
41
+ `+xp.repeat(" ",e.indent*t)}function Koe(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 Hd(e){this.source=e,this.result="",this.checkpoint=0}Hd.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};Hd.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=It[e]||Boe(e),this.result+=t,this.checkpoint+=1,this};Hd.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function Goe(e,t,r){var n,o,i,s,a,c,l,p,u,f,h,m,y,b,x,w,S,P,$,O,C;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(zoe.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(n=!0,o=t.length?t.charCodeAt(0):0,i=c0===o||c0===t.charCodeAt(t.length-1),(koe===o||Noe===o||qoe===o||Moe===o)&&(n=!1),i?(n=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,l=new Hd(t),p=!1,u=0,f=0,h=e.indent*r,m=80,h<40?m-=h:m=40,b=0;b<t.length;b++){if(y=t.charCodeAt(b),n)if(!Yoe(y))n=!1;else continue;c&&y===l0&&(c=!1),x=It[y],w=FI(y),!(!x&&!w)&&(y!==Hi&&y!==p0&&y!==l0?(s=!1,a=!1):y===Hi&&(p=!0,c=!1,b>0&&(S=t.charCodeAt(b-1),S===c0&&(a=!1,s=!1)),s&&(P=b-u,u=b,P>f&&(f=P))),y!==p0&&(c=!1),l.takeUpTo(b),l.escapeChar())}if(n&&Koe(e,t)&&(n=!1),$="",(s||a)&&(O=0,t.charCodeAt(t.length-1)===Hi&&(O+=1,t.charCodeAt(t.length-2)===Hi&&(O+=1)),O===0?$="-":O===2&&($="+")),a&&f<m&&(s=!1),p||(a=!1),n)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)C=Woe(t,m),e.dump=">"+$+`
42
+ `+jI(C,h);else if(a)$||(t=t.replace(/\n$/,"")),e.dump="|"+$+`
43
+ `+jI(t,h);else if(l)l.finish(),e.dump='"'+l.result+'"';else throw new Error("Failed to dump scalar value")}function Woe(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+=DI(e.slice(n,o),t),n=o):(r&&(r+=`
47
+
48
+ `),r+=DI(e.slice(n,s),t),n=s+1);return i&&i[0]!==`
49
+ `&&(r+=i[0]),r}function DI(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 Yoe(e){return _oe!==e&&Hi!==e&&$oe!==e&&Roe!==e&&joe!==e&&Doe!==e&&Loe!==e&&Uoe!==e&&Eoe!==e&&Ooe!==e&&Toe!==e&&Poe!==e&&Foe!==e&&Coe!==e&&l0!==e&&p0!==e&&Aoe!==e&&Ioe!==e&&!It[e]&&!FI(e)}function FI(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function Qoe(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)Ki(e,t,r[i],!1,!1)&&(i!==0&&(n+=", "),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function Joe(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ki(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=u0(e,t)),o+="- "+e.dump);e.tag=i,e.dump=o||"[]"}function Xoe(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],Ki(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+": ",Ki(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=o,e.dump="{"+n+"}"}function Zoe(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,c,l,p,u,f;for(a=0,c=s.length;a<c;a+=1)f="",(!n||a!==0)&&(f+=u0(e,t)),l=s[a],p=r[l],Ki(e,t+1,l,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Hi===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=u0(e,t)),Ki(e,t+1,p,!0,u)&&(e.dump&&Hi===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,o+=f));e.tag=i,e.dump=o||"{}"}function MI(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,m0.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(LI.call(a.represent,c))n=a.represent[c](t,c);else throw new f0("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Ki(e,t,r,n,o){e.tag=null,e.dump=r,MI(e,r,!1)||MI(e,r,!0);var i=m0.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?(Zoe(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
53
+ `:"")+e.dump)):(Xoe(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object Array]")n&&e.dump.length!==0?(Joe(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
54
+ `:"")+e.dump)):(Qoe(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object String]")e.tag!=="?"&&Goe(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new f0("unacceptable kind of an object to dump "+i)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function eie(e,t){var r=[],n=[],o,i;for(d0(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function d0(e,t,r){var n=m0.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)d0(e[i],t,r);else for(o=Object.keys(e),i=0,s=o.length;i<s;i+=1)d0(e[o[i]],t,r)}function UI(e,t){t=t||{};var r=new Hoe(t);return eie(e,r),Ki(r,0,e,!0,!0)?r.dump+`
55
+ `:""}Kd.dump=UI;function tie(e,t){return UI(e,xp.extend({schema:woe},t))}Kd.safeDump=tie});var VI=E(ti=>{"use strict";Object.defineProperty(ti,"__esModule",{value:!0});function rie(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}ti.parseYamlBoolean=rie;function nie(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function oie(e){var t=nie(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}ti.parseYamlInteger=oie;function iie(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+'"'}ti.parseYamlFloat=iie;var yo;(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"})(yo=ti.ScalarType||(ti.ScalarType={}));function sie(e){if(e===void 0)return yo.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return yo.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return yo.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return yo.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 yo.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?yo.float:yo.string}ti.determineScalarType=sie});var KI=E(bn=>{"use strict";function BI(e){for(var t in e)bn.hasOwnProperty(t)||(bn[t]=e[t])}Object.defineProperty(bn,"__esModule",{value:!0});var Gd=qI();bn.load=Gd.load;bn.loadAll=Gd.loadAll;bn.safeLoad=Gd.safeLoad;bn.safeLoadAll=Gd.safeLoadAll;var HI=zI();bn.dump=HI.dump;bn.safeDump=HI.safeDump;bn.YAMLException=ya();BI(gp());BI(VI())});function A(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Pr(e){return A(e)&&Object.keys(e).length===0}function nt(e){return typeof e=="string"}var px=tn(hf(),1);function qq(e,t,r){return e.split(" ").map(n=>(0,px.default)(n,t,r)).join(" ")}function jq(e){return e.charAt(0).toUpperCase()+e.slice(1)}function z(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function V(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}var rn={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function Er(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=rn,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)):Nr(i)?(i={...i},n(i),i):i?.directResolveAs!==void 0?{...i,directResolveAs:o(i.directResolveAs)??void 0}:i}}function Nr(e){return typeof e?.name=="string"}import*as Yi from"node:path";function _t(e){return!!e}function Ar(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function B(e){return A(e)&&typeof e.$ref=="string"}function nn(e){return B(e)&&Object.keys(e).length>1}function Op(e){return A(e)&&typeof e.externalValue=="string"}var Ct=class e{source;pointer;constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,Ar(this.pointer,(Array.isArray(t)?t:[t]).map(qr).join("/")))}key(){return Object.assign(Object.create(e.prototype),this,{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function Tp(e){let t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function qr(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function xo(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Rp(r)}}function Rp(e){return e.split("/").map(Tp).filter(_t)}function lx(e){let t=e.split("/");return t[t.length-1]}function ux(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function So(e){return e.startsWith("file://")}function le(e){return e.startsWith("http://")||e.startsWith("https://")||So(e)||e.startsWith("data:")}function yf(e){return Yi.extname(e)?le(e)?e.substring(0,e.lastIndexOf("/")):Yi.dirname(e):e}function kp(e,t){return le(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:Yi.resolve(e,t)}function jr(e){return typeof e=="string"&&(e.startsWith("#")||le(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function dx(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function Ea(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})}function Aa(e,t){let r=new Set,n=e;for(;n&&!r.has(n);){if(n.type.name===t)return n;r.add(n),n=n.parent??n.referencedFrom}}function Gn(e){return(e.resolved??e).value}function fx(e){return(e.resolved??e).location}function ce(e,t){let r=e&&Gn(e);return A(r)?r[t]:void 0}function Qi(e){return typeof e.key=="number"?"item":!!e.parent&&Object.hasOwn(e.parent.type.properties,e.key)?"field":"entry"}function $t(e){return e.revision??e.base}function wn(e){return $t(e).type.name}function ae(e){let t=$t(e),r=Qi(t)==="entry"?t.key:t.resolved?.key??t.key;return String(r)}function gf(e){return!e.base?.resolved||!e.revision?.resolved?!1:nn(e.base.value)||nn(e.revision.value)}function _n(e){return!e.base||!e.revision||gf(e)?e:{base:e.base.resolved??e.base,revision:e.revision.resolved??e.revision}}function ri(e){if(!e.parent)return"#/";let t=$t(e),n=t===$t(_n(e.parent)).resolved?"$ref":qr(String(t.key));return Ar(ri(e.parent),n)}var Oa=["patch","minor","major"];function Dq(e){return Oa.indexOf(e)}function Ip(e){return Oa.findLast(t=>e.includes(t))}function mx(e){return e.kind==="added"&&!Mq(e.node)?"minor":"patch"}function Mq(e){let t=e.parent;return[e,t,t?.parent].some(r=>!!r&&wn(r)==="Components")}var Lq=/^[0-9][0-9Xx]{2}$/,Fq={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."},Uq={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."},zq={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"},Vq={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"},Bq={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."},Hq={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."},Kq={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."},Gq={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"},Wq={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."},Yq={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."},Qq={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."},Jq={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"},Xq={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},Zq={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"},ej={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"},tj={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"},rj={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."},nj={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."},oj={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},ij={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"},sj={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"},aj={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"},cj={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"},pj={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."},lj={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Lq.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"},uj={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."},dj={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."},vf="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",hx=z("Schema",{name:"AllOf",description:vf}),yx=z("Schema",{name:"AnyOf",description:vf}),gx=z("Schema",{name:"OneOf",description:vf}),fj={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:hx,anyOf:yx,oneOf:gx,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?z("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"},mj={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."},hj={properties:{},additionalProperties:"Schema"},yj={properties:{},additionalProperties:e=>typeof e=="string"&&jr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},gj={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."},vj={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"},bj={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."},xj={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."},Sj={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."},wj={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."},_j={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},$j={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-"},Pj={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"},dr={Root:Fq,Tag:Uq,TagList:z("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:z("TagGroup"),TagGroup:zq,ExternalDocs:Vq,Server:Bq,ServerList:z("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:Hq,ServerVariablesMap:V("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:Kq,SecurityRequirementList:z("SecurityRequirement"),Info:Gq,Contact:Yq,License:Qq,Paths:Jq,PathItem:Zq,Parameter:ej,ParameterList:z("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:tj,Callback:V("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:V("Callback"),RequestBody:nj,MediaTypesMap:oj,MediaType:ij,Example:sj,ExamplesMap:V("Example"),Encoding:aj,EncodingMap:V("Encoding"),EnumDescriptions:cj,Header:pj,HeadersMap:V("Header"),Responses:lj,Response:uj,Link:dj,Logo:Wq,Schema:fj,AllOf:hx,AnyOf:yx,OneOf:gx,Xml:mj,SchemaProperties:hj,DiscriminatorMapping:yj,Discriminator:gj,Components:vj,LinksMap:V("Link"),NamedSchemas:V("Schema"),NamedResponses:V("Response"),NamedParameters:V("Parameter"),NamedExamples:V("Example"),NamedRequestBodies:V("RequestBody"),NamedHeaders:V("Header"),NamedSecuritySchemes:V("SecurityScheme"),NamedLinks:V("Link"),NamedCallbacks:V("Callback"),ImplicitFlow:bj,PasswordFlow:xj,ClientCredentials:Sj,AuthorizationCode:wj,OAuth2Flows:_j,SecurityScheme:$j,XCodeSample:rj,XCodeSampleList:z("XCodeSample"),XUsePkce:Pj,WebhooksMap:Xq};var Ej={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."},Aj={...dr.License,properties:{...dr.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},Oj={...dr.Info,properties:{...dr.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Tj={...dr.Components,properties:{...dr.Components.properties,pathItems:"NamedPathItems"}},Rj={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."},kj={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:z("Schema",{name:"AllOf"}),anyOf:z("Schema",{name:"AnyOf"}),oneOf:z("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:V("Schema"),dependentRequired:"DependentRequired",prefixItems:z("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-"},vx={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Ij={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-"},Cj={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},we={...dr,Info:Oj,Root:Ej,Schema:kj,SchemaProperties:vx,PatternProperties:vx,License:Aj,Components:Tj,NamedPathItems:V("PathItem"),SecurityScheme:Ij,Operation:Rj,DependentRequired:Cj};var Nj={...we.Root,properties:{...we.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."}}},qj={...we.Tag,properties:{...we.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."},jj={...we.Server,properties:{...we.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."},Dj={...we.SecurityScheme,properties:{...we.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."},Mj={...we.OAuth2Flows,properties:{...we.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Lj={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:{type:"object",additionalProperties:{type:"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."},Fj={...dr.PathItem,properties:{...dr.PathItem.properties,query:"Operation",additionalOperations:V("Operation")}},Uj={...we.Parameter,properties:{...we.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"]}}},zj={...we.Response,properties:{...we.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Vj={...we.MediaType,properties:{...we.MediaType.properties,itemSchema:"Schema",prefixEncoding:z("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"}},Bj={...we.Discriminator,properties:{...we.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 jr(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Hj={extensionsPrefix:"x-",properties:{...we.Components.properties,mediaTypes:"NamedMediaTypes"}},Kj={...we.Example,properties:{...we.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."}}},Gj={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."},Wj={...we.Schema,properties:{...we.Schema.properties,xml:"Xml"}},Pt={...we,Root:Nj,Tag:qj,Server:jj,SecurityScheme:Dj,OAuth2Flows:Mj,DeviceAuthorization:Lj,PathItem:Fj,Parameter:Uj,Response:zj,MediaType:Vj,Discriminator:Bj,Example:Kj,Xml:Gj,Schema:Wj,Components:Hj,NamedMediaTypes:V("MediaTypesMap")};var Yj={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-"},Qj={properties:{},additionalProperties:"Parameter"},Jj={properties:{},additionalProperties:"SuccessActionObject"},Xj={properties:{},additionalProperties:"FailureActionObject"},Zj={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},eD=V("Schema"),tD={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."},rD={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},nD={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."},oD={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."},iD={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."},sD={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."},aD={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},cD={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."},pD=z("Workflow"),lD=z("Step"),uD={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:z("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."},dD={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_.-]+$."},fD={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:z("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."},mD={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."},hD={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."},yD={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."},gD={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."},vD={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},bD={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},xD={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:z("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."},SD={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},wD={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:z("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."},_D={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},pt={Root:Yj,Info:tD,SourceDescriptions:rD,OpenAPISourceDescription:nD,ArazzoSourceDescription:oD,Parameters:aD,Parameter:sD,ReusableObject:iD,Workflows:pD,Workflow:cD,Steps:lD,Step:uD,RequestBody:fD,Replacement:mD,ExtendedOperation:yD,ExtendedSecurityList:z("ExtendedSecurity"),ExtendedSecurity:hD,Outputs:dD,CriterionObject:gD,XPathCriterion:bD,JSONPathCriterion:vD,SuccessActionObject:xD,OnSuccessActionList:SD,FailureActionObject:wD,OnFailureActionList:_D,Schema:Pt.Schema,NamedSchemas:V("Schema"),ExternalDocs:Pt.ExternalDocs,DiscriminatorMapping:Pt.DiscriminatorMapping,Discriminator:Pt.Discriminator,DependentRequired:Pt.DependentRequired,SchemaProperties:Pt.SchemaProperties,PatternProperties:Pt.SchemaProperties,Components:Zj,NamedInputs:eD,NamedParameters:Qj,NamedSuccessActions:Jj,NamedFailureActions:Xj,Xml:Pt.Xml,SecurityScheme:Pt.SecurityScheme,OAuth2Flows:Pt.OAuth2Flows,ImplicitFlow:Pt.ImplicitFlow,PasswordFlow:Pt.PasswordFlow,ClientCredentials:Pt.ClientCredentials,AuthorizationCode:Pt.AuthorizationCode,DeviceAuthorization:Pt.DeviceAuthorization};var $D={...pt.Root,properties:{...pt.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."}}},PD={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},ED={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."},AD={...pt.Parameter,properties:{...pt.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, success action, or failure action 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.'}}},OD={...pt.Parameter,properties:{name:pt.Parameter.properties.name,value:pt.Parameter.properties.value},description:"Describes a single parameter of a success or failure action. The parameter is passed to the workflow that the action references with workflowId as an input."},TD={properties:{},items:e=>e?.reference?"ReusableObject":"ActionParameter"},RD={...pt.Step,properties:{...pt.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"]},kD={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},ID={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},CD={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},ND={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"]},qD=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",bf=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:qD(n)},jD={...pt.CriterionObject,properties:{...pt.CriterionObject.properties,type:bf(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},DD={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:bf(["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."},MD={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_.-]+$."},LD={...pt.Replacement,properties:{...pt.Replacement.properties,value:e=>A(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:bf(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},bx=e=>e?.parameters===void 0?["type","name"]:["type","name","workflowId"],FD={...pt.SuccessActionObject,properties:{...pt.SuccessActionObject.properties,parameters:"ActionParameters"},required:bx},UD={...pt.FailureActionObject,properties:{...pt.FailureActionObject.properties,parameters:"ActionParameters"},required:bx},xf={...pt,Root:$D,SourceDescriptions:PD,AsyncAPISourceDescription:ED,Parameter:AD,ActionParameter:OD,ActionParameters:TD,Step:RD,CriterionObject:jD,JSONPathExpression:kD,XPathExpression:ID,JSONPointerExpression:CD,ExpressionType:ND,SelectorObject:DD,Outputs:MD,Replacement:LD,SuccessActionObject:FD,FailureActionObject:UD};var zD={properties:{},description:"Protocol-specific information for an HTTP channel."},VD={properties:{},description:"Protocol-specific information for an HTTP server."},BD={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},HD={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."},KD={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},GD={properties:{},description:"Protocol-specific information for a WebSockets server."},WD={properties:{},description:"Protocol-specific information for a WebSockets message."},YD={properties:{},description:"Protocol-specific information for a WebSockets operation."},QD={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"}}},JD={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},XD={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},ZD={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},eM={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},tM={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},rM={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},nM={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},oM={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},iM={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."},sM={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."},aM={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."},cM={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},pM={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},lM={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."},uM={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},dM={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},fM={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},mM={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},hM={properties:{},description:"Protocol-specific information for an MQTT channel."},yM={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},gM={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."},vM={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."},bM={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."},xM={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},SM={properties:{sessionExpiryInterval:e=>A(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},wM={properties:{},description:"Protocol-specific information for an MQTT 5 message."},_M={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},$M={properties:{},description:"Protocol-specific information for a NATS channel."},PM={properties:{},description:"Protocol-specific information for a NATS server."},EM={properties:{},description:"Protocol-specific information for a NATS message."},AM={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},OM={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},TM={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},RM={properties:{jmsConnectionFactory:{type:"string"},properties:z("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},kM={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},IM={properties:{},description:"Protocol-specific information for a JMS operation."},CM={properties:{},description:"Protocol-specific information for a Solace channel."},NM={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},qM={properties:{},description:"Protocol-specific information for a Solace message."},jM={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"}}}},DM={properties:{bindingVersion:{type:"string"},destinations:z("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},MM={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."},LM={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},FM={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},UM={properties:{statements:z("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},zM={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},VM={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},BM={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."},HM={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."},KM={properties:{topic:"SnsIdentifier",consumers:z("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},GM={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},WM={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},YM={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},QM={properties:{statements:z("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},xx={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)."},JM={...xx,required:["name"],description:"Describes an SQS queue (operation-level definition)."},XM={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},ZM={properties:{queues:z("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},eL={properties:{},description:"Protocol-specific information for a STOMP channel."},tL={properties:{},description:"Protocol-specific information for a STOMP server."},rL={properties:{},description:"Protocol-specific information for a STOMP message."},nL={properties:{},description:"Protocol-specific information for a STOMP operation."},oL={properties:{},description:"Protocol-specific information for a Redis channel."},iL={properties:{},description:"Protocol-specific information for a Redis server."},sL={properties:{},description:"Protocol-specific information for a Redis message."},aL={properties:{},description:"Protocol-specific information for a Redis operation."},cL={properties:{},description:"Protocol-specific information for a Mercure channel."},pL={properties:{},description:"Protocol-specific information for a Mercure server."},lL={properties:{},description:"Protocol-specific information for a Mercure message."},uL={properties:{},description:"Protocol-specific information for a Mercure operation."},dL={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."},fL={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},mL={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},hL={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."},yL={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."},gL={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},vL={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."},bL={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."},xL={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},SL={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},wL={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},_L={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},$L={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."},PL={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},EL={properties:{},description:"Protocol-specific information for a ROS 2 channel."},AL={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."},OL={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."},TL={properties:{},description:"Protocol-specific information for a ROS 2 message."},RL={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."},kL={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."},IL={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."},CL={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."},Dr={HttpServerBinding:VD,HttpChannelBinding:zD,HttpMessageBinding:BD,HttpOperationBinding:HD,WsServerBinding:GD,WsChannelBinding:KD,WsMessageBinding:WD,WsOperationBinding:YD,KafkaServerBinding:XD,KafkaTopicConfiguration:QD,KafkaChannelBinding:JD,KafkaMessageBinding:ZD,KafkaOperationBinding:eM,AnypointmqServerBinding:rM,AnypointmqChannelBinding:tM,AnypointmqMessageBinding:nM,AnypointmqOperationBinding:oM,AmqpServerBinding:cM,AmqpChannelExchange:iM,AmqpChannelQueue:sM,AmqpChannelBinding:aM,AmqpMessageBinding:pM,AmqpOperationBinding:lM,Amqp1ServerBinding:dM,Amqp1ChannelBinding:uM,Amqp1MessageBinding:fM,Amqp1OperationBinding:mM,MqttServerBindingLastWill:yM,MqttServerBinding:gM,MqttChannelBinding:hM,MqttMessageBinding:vM,MqttOperationBinding:bM,Mqtt5ServerBinding:SM,Mqtt5ChannelBinding:xM,Mqtt5MessageBinding:wM,Mqtt5OperationBinding:_M,NatsServerBinding:PM,NatsChannelBinding:$M,NatsMessageBinding:EM,NatsOperationBinding:AM,JmsServerBindingProperty:TM,JmsServerBinding:RM,JmsChannelBinding:OM,JmsMessageBinding:kM,JmsOperationBinding:IM,SolaceServerBinding:NM,SolaceChannelBinding:CM,SolaceMessageBinding:qM,SolaceDestination:jM,SolaceOperationBinding:DM,StompServerBinding:tL,StompChannelBinding:eL,StompMessageBinding:rL,StompOperationBinding:nL,RedisServerBinding:iL,RedisChannelBinding:oL,RedisMessageBinding:sL,RedisOperationBinding:aL,MercureServerBinding:pL,MercureChannelBinding:cL,MercureMessageBinding:lL,MercureOperationBinding:uL,SnsIdentifier:MM,SnsOrdering:LM,SnsStatement:FM,SnsPolicy:UM,SnsChannelBinding:zM,SnsRedrivePolicy:VM,SnsDeliveryPolicy:BM,SnsConsumer:HM,SnsOperationBinding:KM,SqsIdentifier:GM,SqsRedrivePolicy:WM,SqsStatement:YM,SqsPolicy:QM,SqsQueue:xx,SqsOperationQueue:JM,SqsChannelBinding:XM,SqsOperationBinding:ZM,IbmmqServerBinding:dL,IbmmqChannelQueue:fL,IbmmqChannelTopic:mL,IbmmqChannelBinding:hL,IbmmqMessageBinding:yL,GooglepubsubMessageStoragePolicy:gL,GooglepubsubSchemaSettings:vL,GooglepubsubChannelBinding:bL,GooglepubsubSchema:xL,GooglepubsubMessageBinding:SL,PulsarServerBinding:wL,PulsarRetention:_L,PulsarChannelBinding:$L,ServerBindings:RL,ChannelBindings:kL,MessageBindings:CL,OperationBindings:IL},Sx={Ros2ServerBinding:PL,Ros2ChannelBinding:EL,Ros2OperationBinding:OL,Ros2QosPolicies:AL,Ros2MessageBinding:TL};var Ji={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:z("Schema"),anyOf:z("Schema"),oneOf:z("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?z("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"}},Xi={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Zi={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},es={properties:{},additionalProperties:e=>typeof e=="string"&&jr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},ts={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};var NL={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"]},qL={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."},jL={properties:{},additionalProperties:"Channel"},Sf={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."},wf={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."},DL={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."},ML={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."},_f={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},$f={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."},LL={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."},Pf={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."},Ef={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."},FL={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."},Af={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."},UL={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."},zL={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."},VL={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."},BL={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."},Of={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."},HL={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"}},KL={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."},GL={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."},WL={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."},YL={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."},Tf={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},QL={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."},Rf={...Dr,Root:NL,Tag:Sf,TagList:z("Tag"),ServerMap:_f,ExternalDocs:wf,Server:ML,ServerVariable:$f,ServerVariablesMap:V("ServerVariable"),SecurityRequirement:DL,SecurityRequirementList:z("SecurityRequirement"),Info:LL,Contact:Pf,License:Ef,ChannelMap:jL,Channel:qL,Parameter:FL,ParametersMap:V("Parameter"),Operation:BL,Schema:Ji,MessageExample:Of,SchemaProperties:Xi,DiscriminatorMapping:es,Discriminator:ts,Components:HL,NamedSchemas:V("Schema"),NamedMessages:V("Message"),NamedMessageTraits:V("MessageTrait"),NamedOperationTraits:V("OperationTrait"),NamedParameters:V("Parameter"),NamedSecuritySchemes:V("SecurityScheme"),NamedCorrelationIds:V("CorrelationId"),ImplicitFlow:KL,PasswordFlow:GL,ClientCredentials:WL,AuthorizationCode:YL,SecuritySchemeFlows:Tf,SecurityScheme:QL,Message:UL,OperationTrait:zL,OperationTraitList:z("OperationTrait"),MessageTrait:VL,MessageTraitList:z("MessageTrait"),MessageExampleList:z("MessageExample"),CorrelationId:Af,Dependencies:Zi};var JL={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."},XL={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."},ZL={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."},e2={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."},t2={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."},r2={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."},n2={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."},o2={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."},i2={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"]},s2={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."},a2={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."},c2={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."},p2={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."},l2={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."},u2={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."},d2={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."},f2={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."},m2={...Dr.ServerBindings,properties:{...Dr.ServerBindings.properties,ros2:"Ros2ServerBinding"}},h2={...Dr.ChannelBindings,properties:{...Dr.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},y2={...Dr.OperationBindings,properties:{...Dr.OperationBindings.properties,ros2:"Ros2OperationBinding"}},g2={...Dr.MessageBindings,properties:{...Dr.MessageBindings.properties,ros2:"Ros2MessageBinding"}},v2={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},b2={properties:{},additionalProperties:e=>A(e)&&"schema"in e?"MultiFormatSchema":"Schema"},kf={...Dr,...Sx,ServerBindings:m2,ChannelBindings:h2,OperationBindings:y2,MessageBindings:g2,CorrelationId:Af,SecuritySchemeFlows:Tf,ServerVariable:$f,Contact:Pf,License:Ef,MessageExample:Of,Tag:Sf,Dependencies:Zi,Schema:Ji,MultiFormatSchema:v2,Discriminator:ts,DiscriminatorMapping:es,SchemaProperties:Xi,ServerMap:_f,ExternalDocs:wf,Root:JL,Channel:XL,Parameter:t2,Info:e2,Server:ZL,MessageTrait:o2,Operation:i2,OperationReply:s2,OperationReplyAddress:a2,Components:c2,ImplicitFlow:p2,PasswordFlow:l2,ClientCredentials:u2,AuthorizationCode:d2,SecurityScheme:f2,Message:r2,OperationTrait:n2,ServerVariablesMap:V("ServerVariable"),NamedTags:V("Tag"),NamedExternalDocs:V("ExternalDocs"),NamedChannels:V("Channel"),ParametersMap:V("Parameter"),NamedOperations:V("Operation"),NamedOperationReplies:V("OperationReply"),NamedOperationRelyAddresses:V("OperationReplyAddress"),NamedSchemas:b2,NamedMessages:V("Message"),NamedMessageTraits:V("MessageTrait"),NamedOperationTraits:V("OperationTrait"),NamedParameters:V("Parameter"),NamedSecuritySchemes:V("SecurityScheme"),NamedCorrelationIds:V("CorrelationId"),ServerList:z("Server"),SecuritySchemeList:z("SecurityScheme"),MessageList:z("Message"),OperationTraitList:z("OperationTrait"),MessageTraitList:z("MessageTrait"),MessageExampleList:z("MessageExample"),TagList:z("Tag")};var x2=/^[0-9][0-9Xx]{2}$/,S2={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-"},w2={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-"},_2={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},$2={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},P2={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},E2={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},A2={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},O2={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-"},T2={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},R2={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},k2={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},I2={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-"},C2={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-"},N2={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>x2.test(t)?"Response":void 0},q2={properties:{description:{type:"string"},schema:"Schema",headers:V("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},j2={properties:{},additionalProperties:{isExample:!0}},D2={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-"},M2={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},L2={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},F2={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","file"]},items:e=>Array.isArray(e)?z("Schema"):"Schema",allOf:z("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-"},U2={properties:{},additionalProperties:{type:"string"}},z2={properties:{},additionalProperties:"Schema"},V2={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},B2={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},H2={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-"},K2={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},G2={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},If={Root:S2,Tag:M2,TagList:z("Tag"),TagGroups:z("TagGroup"),TagGroup:L2,ExternalDocs:k2,Example:G2,ExamplesMap:V("Example"),EnumDescriptions:U2,SecurityRequirement:K2,SecurityRequirementList:z("SecurityRequirement"),Info:w2,Contact:$2,License:P2,Logo:_2,Paths:E2,PathItem:A2,Parameter:I2,ParameterItems:C2,ParameterList:z("Parameter"),Operation:O2,Examples:j2,Header:D2,Responses:N2,Response:q2,Schema:F2,Xml:V2,SchemaProperties:z2,NamedSchemas:V("Schema"),NamedResponses:V("Response"),NamedParameters:V("Parameter"),NamedSecuritySchemes:V("SecurityScheme"),SecurityScheme:H2,Scopes:B2,XCodeSample:T2,XCodeSampleList:z("XCodeSample"),XServerList:z("XServer"),XServer:R2};var W2={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."},Y2={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."},Q2={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."},J2={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."},X2={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."},Z2={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."},eF={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."},tF={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."},rF={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."},nF={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."},oF={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."},iF={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."},sF={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."},aF={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."},cF={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."},Cf={Root:W2,Info:Y2,Contact:Q2,License:J2,Server:X2,ServerList:z("Server"),ServerVariable:Z2,ServerVariablesMap:V("ServerVariable"),Method:eF,MethodList:z("Method"),ContentDescriptor:tF,ContentDescriptorList:z("ContentDescriptor"),ExamplePairing:rF,ExamplePairingList:z("ExamplePairing"),Example:nF,ExampleList:z("Example"),Link:oF,LinkList:z("Link"),ErrorObject:iF,ErrorList:z("ErrorObject"),Components:sF,Tag:aF,TagList:z("Tag"),ExternalDocs:cF,Schema:Ji,SchemaProperties:Xi,Dependencies:Zi,DiscriminatorMapping:es,Discriminator:ts,NamedContentDescriptors:V("ContentDescriptor"),NamedSchemas:V("Schema"),NamedExamples:V("Example"),NamedLinks:V("Link"),NamedErrors:V("ErrorObject"),NamedExamplePairingObjects:V("ExamplePairing"),NamedTags:V("Tag")};function rs(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var pF={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."},$self:{type:"string",description:"A URI-reference for the Overlay document. It is also the base URI for resolving relative references within this 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",components:"Components"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},lF={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."},description:{type:"string",description:"A description of the Overlay. [CommonMark] syntax MAY be used for rich text representation."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},uF={properties:{},items:e=>B(e)?"ReusableAction":"Action"},wx={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:{},copy:{type:"string",description:"A JSONPath expression selecting a single node to copy into the target nodes. The copied value is merged with the target nodes like an `update` value."},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"},dF={properties:{actions:"ReusableActions"},extensionsPrefix:"x-",description:"A set of components to reuse across the Overlay document."},fF=V("ReusableAction"),mF={properties:{description:{type:"string",description:"A description of the reusable action. [CommonMark] syntax MAY be used for rich text representation."},fields:"ReusableActionFields"},extensionsPrefix:"x-",description:"A reusable action. An action in `actions` references it with `$ref` and supplies the `target`."},hF={properties:rs(wx.properties,["target"]),extensionsPrefix:"x-",description:"The fields of a reusable action: an action without a `target`."},Ta={Root:pF,Info:lF,Actions:uF,Action:wx,Components:dF,ReusableActions:fF,ReusableAction:mF,ReusableActionFields:hF};var ns=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Cp="a-zA-Z0-9\\.\\-_",yF={oas2:If,oas3_0:dr,oas3_1:we,oas3_2:Pt,async2:Rf,async3:kf,arazzo1:pt,arazzo1_1:xf,overlay1:Ta,openrpc1:Cf};function Wn(e){return e==="graphql"?{}:yF[e]}var Me=Symbol("NOT_RESOLVED");function Ht(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(r=>String(r)),representTagName:t.representTagName??(()=>e)}}function Qf(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,represent:t.represent??(n=>n),representTagName:t.representTagName??(()=>e)}}function Lp(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,represent:t.represent??(n=>n),representTagName:t.representTagName??(()=>e)}}var gF=Ht("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),vF=["","~","null","Null","NULL"],bF=Ht("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>vF.indexOf(e)!==-1?null:Me,identify:e=>e===null,represent:()=>"null"}),xF=Ht("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:Me,identify:e=>e===null,represent:()=>"null"}),SF=["","~","null","Null","NULL"],wF=Ht("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>SF.indexOf(e)!==-1?null:Me,identify:e=>e===null,represent:()=>"null"}),_F=["true","True","TRUE"],$F=["false","False","FALSE"],PF=Ht("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>_F.indexOf(e)!==-1?!0:$F.indexOf(e)!==-1?!1:Me,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),EF=["true"],AF=["false"],OF=Ht("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>EF.indexOf(e)!==-1?!0:AF.indexOf(e)!==-1?!1:Me,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),TF=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],RF=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],kF=Ht("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>TF.indexOf(e)!==-1?!0:RF.indexOf(e)!==-1?!1:Me,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),IF=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),CF=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function NF(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 qF(e,t){if(t){if(!CF.test(e))return Me}else if(!IF.test(e))return Me;let r=NF(e);return Number.isFinite(r)?r:Me}var Lx=Ht("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:qF,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),jF=new RegExp("^-?(?:0|[1-9][0-9]*)$"),DF=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function MF(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 LF(e,t){if(t){if(!DF.test(e))return Me}else if(!jF.test(e))return Me;let r=MF(e);return Number.isFinite(r)?r:Me}var FF=Ht("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:LF,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),UF=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 zF(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 VF(e){if(!UF.test(e))return Me;let t=zF(e);return Number.isFinite(t)?t:Me}var Ff=Ht("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:VF,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),BF=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),HF=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function KF(e){if(!BF.test(e))return Me;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)||HF.test(e)?n:Me}function GF(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 Fx=Ht("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:KF,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:GF}),WF=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),YF=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function QF(e,t){if(t){if(!YF.test(e))return Me;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:Me}if(!WF.test(e))return Me;let r=Number(e);return Number.isFinite(r)?r:Me}function JF(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 XF=Ht("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:QF,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:JF}),ZF=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))$"),eU=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function tU(e){if(!ZF.test(e))return Me;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)||eU.test(e)?n:Me}function rU(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 Uf=Ht("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:tU,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:rU}),Jf=Ht("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?"<<":Me,identify:()=>!1}),nU=/^[A-Za-z0-9+/]*={0,2}$/;function oU(e){let t=e.replace(/\s/g,"");if(t.length%4!==0||!nU.test(t))return Me;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 iU(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var Xf=Ht("tag:yaml.org,2002:binary",{resolve:oU,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:iU}),sU=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),aU=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 _x(e,t,r,n=0,o=0,i=0,s=0){let a=new Date(Date.UTC(e,t,r,n,o,i,s));return a.setUTCFullYear(e,t,r),a}function cU(e){let t=sU.exec(e);if(t===null&&(t=aU.exec(e)),t===null)return Me;let r=+t[1],n=+t[2]-1,o=+t[3];if(!t[4]){let p=_x(r,n,o);return p.getUTCFullYear()!==r||p.getUTCMonth()!==n||p.getUTCDate()!==o?Me:p}let i=+t[4],s=+t[5],a=+t[6],c=0;if(i>23||s>59||a>59)return Me;if(t[7]){let p=t[7].slice(0,3);for(;p.length<3;)p+="0";c=+p}let l=_x(r,n,o,i,s,a,c);if(l.getUTCFullYear()!==r||l.getUTCMonth()!==n||l.getUTCDate()!==o)return Me;if(t[9]){let p=+t[10],u=+(t[11]||0);if(p>23||u>59)return Me;let f=(p*60+u)*6e4;l.setTime(l.getTime()-(t[9]==="-"?-f:f))}return l}var pU=Ht("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:cU,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),lU=Qf("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function Fp(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function zf(e,t){let r={};for(let n of t)e[n]!==void 0&&(r[n]=e[n]);return r}var Zf=Qf("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(Fp(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,identify:()=>!1}),em=Qf("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]]]),"")},identify:()=>!1}),uU=Lp("tag:yaml.org,2002:map",{create:()=>({}),identify:Fp,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)=>{let r=String(t);return Object.prototype.hasOwnProperty.call(e,r)?e[r]:null}}),tm=Lp("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 dU(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function fU(){return{scalar:[],sequence:[],mapping:[]}}function mU(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 Up=class Ux{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){let r=mU(t),n=[],o=dU(),i=fU();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}lookupScalarTag(t){let r=this.exact.scalar[t];if(r)return r;for(let n of this.prefix.scalar)if(t.startsWith(n.tagName))return n}lookupSequenceTag(t){let r=this.exact.sequence[t];if(r)return r;for(let n of this.prefix.sequence)if(t.startsWith(n.tagName))return n}lookupMappingTag(t){let r=this.exact.mapping[t];if(r)return r;for(let n of this.prefix.mapping)if(t.startsWith(n.tagName))return n}resolveImplicitScalarTag(t){let r=this.implicitScalarByFirstChar.get(t.charAt(0))??this.implicitScalarAnyFirstChar;for(let o of r){let i=o.resolve(t,!1,o.tagName);if(i!==Me)return{value:i,tag:o}}let n=this.defaultScalarTag;return{value:n.resolve(t,!1,n.tagName),tag:n}}withTags(...t){let r=[];for(let n of t)r=r.concat(n);return new Ux([...this.tags,...r])}},rm=new Up([gF,lU,uU]),wae=new Up([...rm.tags,xF,OF,FF,XF]),nm=new Up([...rm.tags,bF,PF,Lx,Fx]),hU=new Up([...rm.tags,wF,kF,Ff,Uf,pU,Jf,Xf,Zf,em,tm]),yU=hU.withTags({...Ff,resolve:(e,t,r)=>{let n=Ff.resolve(e,t,r);return n===Me?Lx.resolve(e,t,r):n}},{...Uf,resolve:(e,t,r)=>{let n=Uf.resolve(e,t,r);return n===Me?Fx.resolve(e,t,r):n}}),_ae=Lp("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||Fp(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 $x(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 $ae=Lp("tag:yaml.org,2002:map",{create:()=>({}),identify:Fp,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=$x(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=$x(t);return r!==null&&Object.prototype.hasOwnProperty.call(e,r)},keys:e=>Object.keys(e),get:(e,t)=>{let r=String(t);return Object.prototype.hasOwnProperty.call(e,r)?e[r]:null}}),gU={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function Nf(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 qf(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function vU(e,t){if(!e.buffer)return null;let r={...gU,...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 f=1;f<=r.linesBefore&&!(a-f<0);f++){let h=Nf(e.buffer,o[a-f],i[a-f],e.position-(o[a]-o[a-f]),p);c=`${" ".repeat(r.indent)}${qf((e.line-f+1).toString(),l)} | ${h.str}
56
+ ${c}`}let u=Nf(e.buffer,o[a],i[a],e.position,p);c+=`${" ".repeat(r.indent)}${qf((e.line+1).toString(),l)} | ${u.str}
57
+ `,c+=`${"-".repeat(r.indent+l+3+u.pos)}^
58
+ `;for(let f=1;f<=r.linesAfter&&!(a+f>=i.length);f++){let h=Nf(e.buffer,o[a+f],i[a+f],e.position-(o[a]-o[a+f]),p);c+=`${" ".repeat(r.indent)}${qf((e.line+f+1).toString(),l)} | ${h.str}
59
+ `}return c.replace(/\n$/,"")}function Px(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 wo=class zx extends Error{reason;mark;constructor(t,r){super(),this.name="YAMLException",this.reason=t,this.mark=r,this.message=Px(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(t){return`${this.name}: ${Px(this,t)}`}static throwAt(t,r,n,o=""){let i=0,s=0;for(let c=0;c<r;c++){let l=t.charCodeAt(c);l===10?(i++,s=c+1):l===13&&(i++,t.charCodeAt(c+1)===10&&c++,s=c+1)}let a={name:o,buffer:t,position:r,line:i,column:r-s};throw a.snippet=vU(a),new zx(n,a)}},st={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Z={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},fr={BLOCK:1,FLOW:2},Or={CLIP:1,STRIP:2,KEEP:3},bU=-1;function Ex(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 Vx=new Array(256),Bx=new Array(256);for(let e=0;e<256;e++)Vx[e]=Ex(e)?1:0,Bx[e]=Ex(e);function xU(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function SU(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function wU(e){return e===120?2:e===117?4:8}function qp(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 om(e){return e===1?" ":`
63
+ `.repeat(e-1)}function _U(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=qp(e,o,r);n+=om(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,s)}function $U(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=qp(e,o,r);n+=om(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function PU(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=qp(e,o,r).position;else if(c<256&&Vx[c])n+=Bx[c],o++;else{let l=wU(c),p=0;for(;l>0;l--){o++;let u=SU(e.charCodeAt(o));p=(p<<4)+u}n+=xU(p),o++}i=s=o}else if(a===10||a===13){n+=e.slice(i,s);let c=qp(e,o,r);n+=om(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function Ax(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,f=!1;for(let h of c){let m=0;for(;m<s&&h.charCodeAt(m)===32;)m++;if(n<0||m>=h.length){u++;continue}let y=h.slice(s),b=y.charCodeAt(0);i?b===32||b===9?(f=!0,l+=`
67
+ `.repeat(p?1+u:u)):f?(f=!1,l+=`
68
+ `.repeat(u+1)):u===0?p&&(l+=" "):l+=`
69
+ `.repeat(u):l+=`
70
+ `.repeat(p?1+u:u),l+=y,p=!0,u=0}return o===Or.KEEP?l+=`
71
+ `.repeat(p?1+u:u):o!==Or.STRIP&&p&&(l+=`
72
+ `),l}function EU(e,t){if(t.valueStart===bU)return"";let{valueStart:r,valueEnd:n}=t;if(t.fast)return e.slice(r,n);switch(t.style){case Z.SINGLE_QUOTED:return $U(e,r,n);case Z.DOUBLE_QUOTED:return PU(e,r,n);case Z.LITERAL_BLOCK:return Ax(e,r,n,t.indent,t.chomping,!1);case Z.FOLDED_BLOCK:return Ax(e,r,n,t.indent,t.chomping,!0);default:return _U(e,r,n)}}var AU=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function jf(e){return encodeURI(e).replace(/!/g,"%21")}function Hx(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]??AU[n]??n;return decodeURIComponent(o)+decodeURIComponent(e.slice(n.length))}function Kx(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${jf(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${jf(t.slice(18))}`:`!<${jf(t)}>`}var os=-1,OU="tag:yaml.org,2002:merge",im={filename:"",schema:nm,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function TU(e){return"tagStart"in e&&e.tagStart!==os?e.tagStart:"anchorStart"in e&&e.anchorStart!==os?e.anchorStart:"valueStart"in e&&e.valueStart!==os?e.valueStart:"start"in e?e.start:0}function Nt(e,t){wo.throwAt(e.source,e.position,t,e.filename)}function Gx(e,t,r,n){try{return r.finalize(n)}catch(o){if(o instanceof wo)throw o;wo.throwAt(e.source,t,o instanceof Error?o.message:String(o),e.filename)}}function RU(e,t){let r=EU(e.source,t),n=t.tagStart===os?"":e.source.slice(t.tagStart,t.tagEnd),o=e.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:o};let i=Hx(n,e.tagHandlers),s=e.schema.lookupScalarTag(i);if(s){let c=s.resolve(r,!0,i);return c===Me&&Nt(e,`cannot resolve a node with !<${i}> explicit tag`),{value:c,tag:s}}let a=e.schema.lookupMappingTag(i)??e.schema.lookupSequenceTag(i);if(a){r!==""&&Nt(e,`cannot resolve a node with !<${i}> explicit tag`);let c=a.create(i);return{value:a.carrierIsResult?c:Gx(e,e.position,a,c),tag:a}}Nt(e,`unknown scalar tag !<${i}>`)}return t.style===Z.PLAIN?e.schema.resolveImplicitScalarTag(r):{value:o.resolve(r,!1,o.tagName),tag:o}}function Ox(e,t,r){let n=t.tagStart===os?"":e.source.slice(t.tagStart,t.tagEnd);return n===""||n==="!"?r:Hx(n,e.tagHandlers)}function Wx(e){return e.nodeKind==="mapping"}function Tx(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&Nt(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function Rx(e,t,r,n){Tx(e);for(let o of n.keys(r)){if(Tx(e),t.tag.has(t.value,o))continue;let i=t.tag.addPair(t.value,o,n.get(r,o));i&&Nt(e,i),t.overridable??=new Set,t.overridable.add(o)}}function kU(e,t,r,n){if(e.position=t.keyPosition,Wx(n))Rx(e,t,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&Nt(e,"abnormal merge sequence size");for(let o of r){let i=e.nodeTags.get(o);i||Nt(e,"cannot merge mappings; the provided source object is unacceptable"),Rx(e,t,o,i)}}else Nt(e,"cannot merge mappings; the provided source object is unacceptable")}function IU(e,t,r,n,o){if(e.position=t.keyPosition,t.keyIsMerge){kU(e,t,n,o);return}!e.json&&t.tag.has(t.value,r)&&!t.overridable?.has(r)&&Nt(e,"duplicated mapping key");let i=t.tag.addPair(t.value,r,n);i&&Nt(e,i),t.overridable?.delete(r)}function Df(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"){Wx(r)&&e.nodeTags.set(t,r);let o=n.tag.addItem(n.value,t,n.index++);o&&Nt(e,o)}else if(n.hasKey){let o=n.key;n.key=void 0,n.hasKey=!1,IU(e,n,o,t,r)}else n.key=t,n.keyPosition=e.position,n.hasKey=!0,n.keyIsMerge=r.tagName===OU}function Mf(e,t,r,n,o){if(t.anchorStart!==os){let i={value:r,tag:n,isValueFinal:o};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),i),i}return null}function CU(e,t){let r={...im,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags: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=TU(n),n.type){case st.DOCUMENT:r.anchors=new Map,r.nodeTags=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 st.SCALAR:{let{value:o,tag:i}=RU(r,n);Mf(r,n,o,i,!0),Df(r,o,i);break}case st.SEQUENCE:{let o=Ox(r,n,"tag:yaml.org,2002:seq"),i=r.schema.lookupSequenceTag(o);i||Nt(r,`unknown sequence tag !<${o}>`);let s=i.create(o),a=Mf(r,n,s,i,i.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:s,tag:i,anchor:a,index:0});break}case st.MAPPING:{let o=Ox(r,n,"tag:yaml.org,2002:map"),i=r.schema.lookupMappingTag(o);i||Nt(r,`unknown mapping tag !<${o}>`);let s=i.create(o),a=Mf(r,n,s,i,i.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:s,tag:i,anchor:a,key:void 0,keyPosition:r.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case st.ALIAS:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&Nt(r,`aliases exceeded maxAliases (${r.maxAliases})`);let o=r.source.slice(n.anchorStart,n.anchorEnd),i=r.anchors.get(o);i||Nt(r,`unidentified alias "${o}"`),i.isValueFinal||Nt(r,`recursive alias "${o}" is not supported for tag ${i.tag.tagName} because it uses finalize()`),Df(r,i.value,i.tag);break}case st.POP:{let o=r.frames.pop();if(o.kind==="mapping"&&o.hasKey&&(r.position=o.keyPosition,Nt(r,"incomplete mapping pair in event stream")),o.kind==="document")r.documents.push(o.value);else{let i=o.tag.carrierIsResult?o.value:Gx(r,o.position,o.tag,o.value);o.anchor&&(o.anchor.value=i,o.anchor.isValueFinal=!0),Df(r,i,o.tag)}break}}}return r.documents}var Ue=-1,Yx=Object.prototype.hasOwnProperty,cs=1,Qx=2,Jx=3,jp=4,NU=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,qU=/[,\[\]{}]/,Xx=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Vf=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,Zx=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,jU=new RegExp(`^(?:${Vf})*$`),DU=new RegExp(`^(?:${Zx})+$`),MU=new RegExp(`^(?:!(?:${Vf})*|${Zx}(?:${Vf})*)$`),sm={filename:"",maxDepth:100};function LU(e,t,r){e.events.push({type:st.DOCUMENT,explicitStart:t,explicitEnd:r,directives:e.directives})}function eS(e,t,r,n,o,i,s){e.events.push({type:st.SEQUENCE,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function tS(e,t,r,n,o,i,s){e.events.push({type:st.MAPPING,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function kx(e,t){e.events.splice(t.eventsLength,0,{type:st.MAPPING,start:t.position,anchorStart:Ue,anchorEnd:Ue,tagStart:Ue,tagEnd:Ue,style:fr.FLOW})}function us(e,t,r,n,o,i,s,a,c=Or.CLIP,l=-1,p=!1){e.events.push({type:st.SCALAR,valueStart:t,valueEnd:r,anchorStart:n,anchorEnd:o,tagStart:i,tagEnd:s,style:a,chomping:c,indent:l,fast:p})}function FU(e,t,r){e.events.push({type:st.ALIAS,anchorStart:t,anchorEnd:r})}function is(e){e.events.push({type:st.POP})}function tr(e){us(e,Ue,Ue,Ue,Ue,Ue,Ue,Z.PLAIN)}function Ix(){return{anchorStart:Ue,anchorEnd:Ue,tagStart:Ue,tagEnd:Ue}}function ss(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function as(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 J(e,t){wo.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function Ot(e){return e===10||e===13}function ds(e){return e===9||e===32}function on(e){return ds(e)||Ot(e)}function Yn(e){return e===0||on(e)}function oi(e){return e===44||e===91||e===93||e===123||e===125}function UU(e){return e>=48&&e<=57?e-48:-1}function zU(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function VU(e){return e===120?2:e===117?4:e===85?8:0}function BU(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 Dp(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 Bt(e,t){let r=0,n=e.input.charCodeAt(e.position),o=e.position===e.lineStart||on(e.input.charCodeAt(e.position-1));for(;n!==0;){for(;ds(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(!Ot(n)&&n!==0);if(!Ot(n))break;for(Dp(e),r++,o=!0,n=e.input.charCodeAt(e.position);n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return r}function ps(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||on(n)}return!1}function rS(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function am(e){if(e.position!==e.lineStart)return!1;if(ps(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=ss(e);rS(e),Bt(e,!0);let r=e.input.charCodeAt(e.position),n=e.position===e.lineStart&&(r===37||r===45&&ps(e));return as(e,t),n}function Cx(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Ot(t);)t=e.input.charCodeAt(++e.position)}function nS(e,t,r){NU.test(e.input.slice(t,r))&&J(e,"the stream contains non-printable characters")}function HU(e,t,r){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Ue&&J(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&&J(e,"unexpected end of the stream within a verbatim tag"),l=e.input.slice(c,e.position),e.position++}else{for(;a!==0&&!on(a)&&!(r&&oi(a));)a===33&&(i?J(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(c-1,e.position+1),Xx.test(s)||J(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),qU.test(l)&&J(e,"tag suffix cannot contain flow indicator characters")}return l&&!(o?jU.test(l):DU.test(l))&&J(e,`tag name cannot contain such characters: ${l}`),!o&&s!=="!"&&s!=="!!"&&!Yx.call(e.tagHandlers,s)&&J(e,`undeclared tag handle "${s}"`),t.tagStart=n,t.tagEnd=e.position,!0}function KU(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Ue&&J(e,"duplication of an anchor property"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!on(e.input.charCodeAt(e.position))&&!oi(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&J(e,"name of an anchor node must contain at least one character"),t.anchorStart=r,t.anchorEnd=e.position,!0}function GU(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Ue||t.tagStart!==Ue)&&J(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!on(e.input.charCodeAt(e.position))&&!oi(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&J(e,"name of an alias node must contain at least one character"),FU(e,r,e.position),!0}function Bf(e,t){Bt(e,!1),e.lineIndent<t&&J(e,"deficient indentation")}function WU(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++,us(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Z.SINGLE_QUOTED,Or.CLIP,-1,o),!0}Ot(i)?(o=!1,Bf(e,t)):e.position===e.lineStart&&ps(e)?J(e,"unexpected end of the document within a single quoted scalar"):i!==9&&i<32?J(e,"expected valid JSON character"):e.position++}J(e,"unexpected end of the stream within a single quoted scalar")}function YU(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++,us(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Z.DOUBLE_QUOTED,Or.CLIP,-1,o),!0}if(i===92){o=!1;let s=e.input.charCodeAt(++e.position);if(Ot(s))Bf(e,t);else if(BU(s))e.position++;else{let a=VU(s);for(a===0&&J(e,"unknown escape sequence");a-- >0;)e.position++,zU(e.input.charCodeAt(e.position))<0&&J(e,"expected hexadecimal character");e.position++}}else Ot(i)?(o=!1,Bf(e,t)):e.position===e.lineStart&&ps(e)?J(e,"unexpected end of the document within a double quoted scalar"):i!==9&&i<32?J(e,"expected valid JSON character"):e.position++}J(e,"unexpected end of the stream within a double quoted scalar")}function QU(e,t,r){let n=e.input.charCodeAt(e.position),o=Or.CLIP,i=-1,s=!1;if(n!==124&&n!==62)return!1;let a=n===124?Z.LITERAL_BLOCK:Z.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let h=e.input.charCodeAt(e.position),m=UU(h);if(h===43||h===45)o!==Or.CLIP&&J(e,"repeat of a chomping mode identifier"),o=h===43?Or.KEEP:Or.STRIP,e.position++;else if(m>=0)m===0&&J(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),s&&J(e,"repeat of an indentation width identifier"),i=t+m-1,s=!0,e.position++;else break}let c=!1;for(;ds(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&Cx(e),Ot(e.input.charCodeAt(e.position))?Dp(e):e.input.charCodeAt(e.position)!==0&&J(e,"a line break is expected");let l=s?i:-1,p=0,u=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let h=e.position,m=0;for(;e.input.charCodeAt(h+m)===32;)m++;let y=e.input.charCodeAt(h+m);if(y===0){l>=0?m>l&&(f=h+m):m>0&&(f=h+m);break}if(am(e))break;if(!s&&l===-1&&Ot(y)&&(p=Math.max(p,m)),!s&&l===-1&&!Ot(y)&&(y===9&&m<t&&(e.position=h+m,J(e,"tab characters must not be used in indentation")),m>=t&&m<p&&(e.position=h+m,J(e,"bad indentation of a mapping entry"))),l===-1&&y!==0&&!Ot(y)&&m<t){e.lineIndent=m,e.position=h+m;break}!s&&y!==0&&!Ot(y)&&l===-1&&(l=m);let b=l===-1?t+1:l;if(y!==0&&!Ot(y)&&m<b){e.lineIndent=m,e.position=h+m;break}Cx(e),f=e.position,Ot(e.input.charCodeAt(e.position))&&(Dp(e),f=e.position)}return nS(e,u,f),us(e,u,f,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,a,o,l),!0}function JU(e,t){let r=e.input.charCodeAt(e.position),n=t===cs;if(r===0||on(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||n&&oi(r))return!1;if(r===63||r===45){let o=e.input.charCodeAt(e.position+1);if(Yn(o)||n&&oi(o))return!1}return!0}function XU(e,t,r,n){if(!JU(e,r))return!1;let o=e.position,i=e.position,s=e.input.charCodeAt(e.position),a=r===cs,c=!1;for(;s!==0&&!am(e);){if(s===58){let l=e.input.charCodeAt(e.position+1);if(Yn(l)||a&&oi(l))break}else if(s===35){if(on(e.input.charCodeAt(e.position-1)))break}else{if(a&&oi(s))break;if(Ot(s)){let l=e.position,p=e.line,u=e.lineStart,f=e.lineIndent;if(Bt(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=f;break}}ds(s)||(i=e.position+1),s=e.input.charCodeAt(++e.position)}return i===o?!1:(nS(e,o,i),us(e,o,i,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Z.PLAIN,Or.CLIP,-1,!c),!0)}function Ra(e,t){let r=e.line;Bt(e,!0),(e.line>r&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&J(e,"deficient indentation")}function ZU(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?tS(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,fr.FLOW):eS(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,fr.FLOW),e.position++;e.input.charCodeAt(e.position)!==0;){Ra(e,t);let c=e.input.charCodeAt(e.position);if(c===a)return e.position++,is(e),!0;s?c===44&&J(e,"expected the node content, but found ','"):J(e,"missed comma between flow collection entries");let l=!1,p=!1;c===63&&on(e.input.charCodeAt(e.position+1))&&(l=p=!0,e.position+=1,Ra(e,t));let u=e.line,f=ss(e),h=ls(e,t,cs,!1,!0);Ra(e,t),c=e.input.charCodeAt(e.position),(o||p||e.line===u)&&c===58?(l=!0,e.position++,Ra(e,t),o||kx(e,f),h||tr(e),ls(e,t,cs,!1,!0)||tr(e),Ra(e,t),o||is(e)):o&&l?(h||tr(e),tr(e)):o?tr(e):l&&(kx(e,f),h||tr(e),tr(e),is(e)),c=e.input.charCodeAt(e.position),c===44?(s=!0,e.position++):s=!1}J(e,"unexpected end of the stream within a flow collection")}function Nx(e,t,r){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Yn(e.input.charCodeAt(e.position+1)))return!1;for(eS(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,fr.BLOCK);e.input.charCodeAt(e.position)===45&&Yn(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,J(e,"tab characters must not be used in indentation"));let n=e.line;e.position++;let o=Bt(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Yn(e.input.charCodeAt(e.position+1))&&J(e,"bad indentation of a sequence entry"),o&&e.lineIndent<=t?tr(e):ls(e,t,Jx,!1,!0),Bt(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&J(e,"bad indentation of a sequence entry"),e.line===n&&e.input.charCodeAt(e.position)===45&&Yn(e.input.charCodeAt(e.position+1))&&J(e,"bad indentation of a sequence entry")}return is(e),!0}function Lf(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,J(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)&&Yn(l))s||(tS(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,fr.BLOCK),s=!0),c===63?(o&&tr(e),i=!0,o=!0):(o||(tr(e),i=!0),o=!1),e.position+=1,a=!0;else{o&&(tr(e),o=!1);let u=ss(e);if(!ls(e,r,Qx,!1,!0))break;if(e.line===p){for(c=e.input.charCodeAt(e.position);ds(c);)c=e.input.charCodeAt(++e.position);if(c===58)c=e.input.charCodeAt(++e.position),Yn(c)||J(e,"a whitespace character is expected after the key-value separator within a block mapping"),s||(e.events.splice(u.eventsLength,0,{type:st.MAPPING,start:u.position,anchorStart:n.anchorStart,anchorEnd:n.anchorEnd,tagStart:n.tagStart,tagEnd:n.tagEnd,style:fr.BLOCK}),s=!0),i=!0,o=!1,a=!1;else if(i)J(e,"expected ':' after a mapping key");else return n.anchorStart!==Ue||n.tagStart!==Ue?(as(e,u),!1):!0}else if(i)J(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==Ue||n.tagStart!==Ue?(as(e,u),!1):!0}if(ls(e,t,jp,!0,a)&&(a=!1),o||a&&(tr(e),a=!1),Bt(e,!0),c=e.input.charCodeAt(e.position),(e.line===p||e.lineIndent>t)&&c!==0)J(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return i?(o&&tr(e),s&&is(e),!0):!1}function ls(e,t,r,n,o,i=!0){e.depth>=e.maxDepth&&J(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let s=1,a=!1,c=!1,l=null,p=Ix(),u=r===jp||r===Jx,f=u,h=u;if(n&&Bt(e,!0)&&(a=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1),s===1)for(;;){let m=e.input.charCodeAt(e.position),y=ss(e);if(a&&s!==1&&(m===33||m===38))break;if(a&&h&&(p.tagStart!==Ue||p.anchorStart!==Ue)&&(m===33||m===38)){let b=ss(e),x=t+1;if(Lf(e,e.position-e.lineStart,x,p)&&e.events[b.eventsLength]?.type===st.MAPPING)return e.depth--,!0;as(e,b)}if(a&&(m===33&&p.tagStart!==Ue||m===38&&p.anchorStart!==Ue)||!HU(e,p,r===cs)&&!KU(e,p))break;l===null&&(l=y),Bt(e,!0)?(a=!0,f=h,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1):f=!1}if(f&&(f=a||o),s===1||r===jp){let m=r===cs||r===Qx?t:t+1,y=e.position-e.lineStart;if(s===1)if(f&&(Nx(e,y,p)||Lf(e,y,m,p))||ZU(e,m,p))c=!0;else{let b=e.input.charCodeAt(e.position);if(l!==null&&i&&h&&!f&&b!==124&&b!==62){let x=ss(e),w=l.position-l.lineStart;as(e,l),Lf(e,w,m,Ix())&&e.events[x.eventsLength]?.type===st.MAPPING?c=!0:as(e,x)}!c&&(u&&QU(e,m,p)||WU(e,m,p)||YU(e,m,p)||GU(e,p)||XU(e,m,r,p))&&(c=!0)}else s===0&&(c=f&&Nx(e,y,p))}return u=u&&!c,!c&&(p.anchorStart!==Ue||p.tagStart!==Ue||u)&&(us(e,Ue,Ue,p.anchorStart,p.anchorEnd,p.tagStart,p.tagEnd,Z.PLAIN),c=!0),e.depth--,c||p.anchorStart!==Ue||p.tagStart!==Ue}function ez(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&&!on(e.input.charCodeAt(e.position));)e.position++;let r=e.input.slice(t,e.position),n=[];for(r.length===0&&J(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!Ot(e.input.charCodeAt(e.position));){for(;ds(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Ot(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let o=e.position;for(;e.input.charCodeAt(e.position)!==0&&!on(e.input.charCodeAt(e.position));)e.position++;n.push(e.input.slice(o,e.position))}if(Ot(e.input.charCodeAt(e.position))&&Dp(e),r==="YAML"){e.directives.some(i=>i.kind==="yaml")&&J(e,"duplication of %YAML directive"),n.length!==1&&J(e,"YAML directive accepts exactly one argument");let o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);o===null&&J(e,"ill-formed argument of the YAML directive"),parseInt(o[1],10)!==1&&J(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&J(e,"TAG directive accepts exactly two arguments");let[o,i]=n;Xx.test(o)||J(e,"ill-formed tag handle (first argument) of the TAG directive"),Yx.call(e.tagHandlers,o)&&J(e,`there is a previously declared suffix for "${o}" tag handle`),MU.test(i)||J(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 tz(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(Bt(e,!0);ez(e);)t=!0,Bt(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&&Yn(e.input.charCodeAt(e.position+3))){r=!0;let a=e.line;e.position+=3,Bt(e,!0),o=e.line>a}else t&&J(e,"directives end mark is expected");let i=e.events.length;if(!r&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&ps(e)){e.position+=3,Bt(e,!0);return}if(LU(e,r,!1),ls(e,e.lineIndent-1,jp,!1,o,o)||tr(e),Bt(e,!0),e.position===e.lineStart&&ps(e)&&(n=e.input.charCodeAt(e.position)===46,n)){let a=e.line;e.position+=3,Bt(e,!0),e.line===a&&e.position<e.length&&J(e,"end of the stream or a document separator is expected")}let s=e.events[i];s?.type===st.DOCUMENT&&(s.explicitEnd=n),is(e),!n&&e.position<e.length&&!am(e)&&J(e,"end of the stream or a document separator is expected")}function rz(e,t){let r=e.length,n={...sm,...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&&wo.throwAt(e,o,"null byte is not allowed in input",n.filename);n.position<n.length&&(rS(n),Bt(n,!0),!(n.position>=n.length));){let i=n.position;tz(n),n.position===i&&J(n,"can not read a document")}return n.events}var nz={...sm,...im};function oz(e,t={}){let r={...nz,...t},n=String(e),o=Object.keys(sm),i=Object.keys(im);return CU(rz(n,zf(r,o)),{...zf(r,i),source:n})}function oS(e,t,r){let n=null;typeof t=="function"?n=t:t!==null&&typeof t=="object"&&(r=t);let o=oz(e,r);if(n===null)return o;for(let i of o)n(i)}var ni=Symbol("INVALID");function iz(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 sz(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(t)){let s;return o.matchByTagPrefix?s=o.representTagName(t):s=o.tagName,{tag:o,tagName:s,implicitTag:i}}}return null}function Ia(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){let l=e.refs.get(t);if(l)return l.anchor===void 0&&(l.anchor=`ref_${e.refCounter++}`),{kind:"alias",anchor:l.anchor}}let r=sz(e,t);if(!r){if(t===void 0||e.skipInvalid)return ni;throw new wo(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:n,tagName:o,implicitTag:i}=r,s=i?o:Kx(o);if(n.nodeKind==="scalar")return{kind:"scalar",tag:s,tagged:!i,style:Z.PLAIN,value:n.represent(t)};if(n.nodeKind==="sequence"){let l=n.represent(t),p={kind:"sequence",tag:s,tagged:!i,style:fr.BLOCK,items:[]};e.noRefs||e.refs.set(t,p);for(let u=0,f=l.length;u<f;u+=1){let h=Ia(e,l[u]);h===ni&&l[u]===void 0&&(h=Ia(e,null)),h!==ni&&p.items.push(h)}return p}let a=n.represent(t),c={kind:"mapping",tag:s,tagged:!i,style:fr.BLOCK,items:[]};e.noRefs||e.refs.set(t,c);for(let[l,p]of a){let u=Ia(e,l);if(u===ni)continue;let f=Ia(e,p);f!==ni&&c.items.push({key:u,value:f})}return c}function az(e,t,r={}){let n=Ia({representTypes:iz(t),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:n===ni?null:n,directives:[]}]}var cz=Symbol("visit:break"),iS=Symbol("visit:skip");function Np(e,t,r){let n=t(e,r);if(n===cz)return!0;if(n===iS)return!1;let o=r.depth+1;switch(e.kind){case"sequence":for(let i of e.items)if(Np(i,t,{depth:o,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:i,value:s}of e.items)if(Np(i,t,{depth:o,parent:e,isKey:!0})||Np(s,t,{depth:o,parent:e,isKey:!1}))return!0;break}return!1}function qx(e,t){for(let r of e)if(r.contents&&Np(r.contents,t,{depth:0,parent:null,isKey:!1}))return}function zp(e,t){return(e&1<<t)!==0}var jx={applyQuoteFlowKeysOption:pz,doubleQuoteForInvisibles:lz,doubleQuoteWhitespaceOnly:uz,applyForceQuotesOption:dz,tryLongOrMultilineAsBlock:fz,quoteInvalidPlain:mz,fallbackToDoubleQuoted:hz};function sS(e){return e.presenterOptions.quoteStyle==="single"&&zp(e.allowedStylesMask,Z.SINGLE_QUOTED)?Z.SINGLE_QUOTED:Z.DOUBLE_QUOTED}function pz(e){e.presenterOptions.quoteFlowKeys&&(!e.isKey||!e.flowOnly||e.style!==Z.PLAIN||(e.style=Z.DOUBLE_QUOTED))}function lz(e){e.style===Z.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=Z.DOUBLE_QUOTED)}function uz(e){e.style===Z.PLAIN&&/^\s+$/.test(e.node.value)&&(e.style=Z.DOUBLE_QUOTED)}function dz(e){e.presenterOptions.forceQuotes&&(e.isKey||e.style!==Z.PLAIN||e.node.tag===e.presenterOptions.schema.defaultScalarTag.tagName&&(e.style=e.node.value.includes(`
73
+ `)?Z.DOUBLE_QUOTED:sS(e)))}function fz(e){if(e.style!==Z.PLAIN||e.isKey)return;let t=e.node.value,r=t.indexOf(`
74
+ `)!==-1;if(!zp(e.allowedStylesMask,Z.LITERAL_BLOCK)){r&&(e.style=Z.DOUBLE_QUOTED);return}let n=e.presenterOptions.lineWidth;if(n===-1){r&&(e.style=Z.LITERAL_BLOCK);return}let o=Math.max(Math.min(n,40),n-e.shiftOfContent),i=0,s=!1;for(;i<=t.length;){let a=t.length,c=t.indexOf(`
75
+ `,i);c!==-1&&(a=c);let l=t.slice(i,a);if(l.length>o&&l[0]!==" "&&/ [^ \t]/.test(l)&&(s=!0),c===-1)break;i=c+1}s?e.style=Z.FOLDED_BLOCK:r&&(e.style=Z.LITERAL_BLOCK)}function mz(e){e.style===Z.PLAIN&&!zp(e.allowedStylesMask,Z.PLAIN)&&(e.style=sS(e))}function hz(e){zp(e.allowedStylesMask,e.style)||(e.style=Z.DOUBLE_QUOTED)}function ka(e,t){return e|1<<t}var yz="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",gz="[\\n\\r]",vz="\\uFEFF",cm="[ \\t]",aS=`(?:(?!(?:${gz}|${vz}))${yz})`,Vp=`(?:(?!${cm})${aS})`,cS="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",pS="[-?:,\\[\\]{}#&*!|>'\"%@`]",bz="[,\\[\\]{}]",Hf=Vp,Kf=`(?:(?!${bz})${Vp})`,xz=`(?:(?:(?!${pS})${Vp})|[?:-](?=${Hf}))`,Sz=`(?:(?:(?!${pS})${Vp})|[?:-](?=${Kf}))`,lS=`(?:(?:(?![:#])${Hf})|:(?=${Hf}))#*`,uS=`(?:(?:(?![:#])${Kf})|:(?=${Kf}))#*`,dS=`(?:${cm}*${lS})*`,fS=`(?:${cm}*${uS})*`,mS=`${xz}#*${dS}`,hS=`${Sz}#*${fS}`,wz=mS,_z=hS,$z=`\\n+${lS}${dS}`,Pz=`\\n+${uS}${fS}`,Ez=`${mS}(?:${$z})*`,Az=`${hS}(?:${Pz})*`,Oz=new RegExp(`^(?:${Ez})$`,"u"),Tz=new RegExp(`^(?:${Az})$`,"u"),Rz=new RegExp(`^(?:${wz})$`,"u"),kz=new RegExp(`^(?:${_z})$`,"u"),Iz=new RegExp(`^(?:${cS})*$`,"u"),Cz=new RegExp(`^(?:${cS}|\\n)*$`,"u"),Nz=new RegExp(`^(?:${aS}|\\n)*$`,"u"),qz=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,pm=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function jz(e){let t=e.node.value;if(t!==""){if(!(e.isKey?e.flowOnly?kz:Rz:e.flowOnly?Tz:Oz).test(t)||e.shiftOfFirstLine===0&&qz.test(t))return!1;if(e.shiftOfContent===0){let n=t.indexOf(`
76
+ `);if(n!==-1){let o=t.slice(n+1);if(pm.test(o))return!1}}}let r=e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;return!(!e.node.tagged&&r!==e.node.tag||!e.node.tagged&&t==="="&&r===e.presenterOptions.schema.defaultScalarTag.tagName)}function Dz(e){let t=e.node.value;if(!(e.isKey?Iz:Cz).test(t)||/[ \t]\n|\n[ \t]/.test(t))return!1;if(!e.isKey&&e.shiftOfContent===0){let r=t.indexOf(`
77
+ `);if(r!==-1&&pm.test(t.slice(r+1)))return!1}return!0}function Mz(e){if(e.flowOnly||!Nz.test(e.node.value))return!1;let t=e.shiftOfContent-e.shiftOfParent;return!(t<1||t>9&&/^\n* /.test(e.node.value)||e.shiftOfContent===0&&pm.test(e.node.value))}function Lz(e){let t=ka(0,Z.DOUBLE_QUOTED);jz(e)&&(t=ka(t,Z.PLAIN)),Dz(e)&&(t=ka(t,Z.SINGLE_QUOTED)),Mz(e)&&(t=ka(ka(t,Z.LITERAL_BLOCK),Z.FOLDED_BLOCK)),e.allowedStylesMask=t}function Fz(e){switch(e.style){case Z.PLAIN:return Uz(e);case Z.SINGLE_QUOTED:return zz(e);case Z.LITERAL_BLOCK:return Vz(e);case Z.FOLDED_BLOCK:return Bz(e);case Z.DOUBLE_QUOTED:return Hz(e)}}function Uz(e){return yS(e.node.value,e.shiftOfContent)}function zz(e){return`'${yS(e.node.value,e.shiftOfContent).replace(/'/g,"''")}'`}function Vz(e){let t=e.node.value;return"|"+vS(t,e.shiftOfParent,e.shiftOfContent)+bS(gS(t,e.shiftOfContent))}function Bz(e){let t=e.node.value,r=e.presenterOptions.lineWidth,n=1/0;return r!==-1&&(n=Math.max(Math.min(r,40),r-e.shiftOfContent)),">"+vS(t,e.shiftOfParent,e.shiftOfContent)+bS(gS(Gz(t,n),e.shiftOfContent))}function Hz(e){return`"${Qz(e.node.value)}"`}function yS(e,t){let r=e.indexOf(`
78
+ `);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+=`
79
+ `.repeat(a+1)+n+c}return o}function gS(e,t){let r=" ".repeat(t),n=0,o="",i=e.length;for(;n<i;){let s,a=e.indexOf(`
80
+ `,n);a===-1?(s=e.slice(n),n=i):(s=e.slice(n,a+1),n=a+1),s.length&&s!==`
81
+ `&&(o+=r),o+=s}return o}function Kz(e){return/^\n* /.test(e)}function vS(e,t,r){let n=Kz(e)?String(r-t):"",o=e[e.length-1]===`
82
+ `;return`${n}${o&&(e[e.length-2]===`
83
+ `||e===`
84
+ `)?"+":o?"":"-"}
85
+ `}function bS(e){return e[e.length-1]===`
86
+ `?e.slice(0,-1):e}function Gf(e){return e===" "||e===" "}function Dx(e,t){if(e===""||Gf(e[0]))return e;let r=/ [^ \t]/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+=`
87
+ ${e.slice(o,i)}`,o=i+1),s=a;return c+=`
88
+ `,e.length-o>t&&s>o?c+=`${e.slice(o,s)}
89
+ ${e.slice(s+1)}`:c+=e.slice(o),c.slice(1)}function Gz(e,t){let r=/(\n+)([^\n]*)/g,n=e.indexOf(`
90
+ `);n===-1&&(n=e.length),r.lastIndex=n;let o=Dx(e.slice(0,n),t),i=e[0]===`
91
+ `||Gf(e[0]),s,a;for(;a=r.exec(e);){let c=a[1],l=a[2];s=l!==""&&Gf(l[0]),o+=c+(!i&&!s&&l!==""?`
92
+ `:"")+Dx(l,t),i=s}return o}var Wz=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function Yz(e){switch(e){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case`
93
+ `:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"\x85":return"\\N";case"\xA0":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}let t=e.charCodeAt(0),r=t.toString(16).toUpperCase();return t<=255?`\\x${"0".repeat(2-r.length)}${r}`:`\\u${"0".repeat(4-r.length)}${r}`}function Qz(e){return e.replace(Wz,Yz)}var Mp=10,lm={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(jx).map(e=>Reflect.get(jx,e)),tagBeforeAnchor:!1};function Jz(e){return e.tagged?e.tag:Kx(e.tag)}function Xz(e){let t={...lm,...e};return t.flowSkipColonSpace&&(t.quoteFlowKeys=!0),{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,openEnded:!1}}function Wf(e,t){return`
94
+ ${" ".repeat(e.indent*t)}`}function Zz(e,t,r,n,o,i){return{node:t,parent:r,level:n,isKey:o,flowOnly:i,shiftOfParent:n===0?-1:e.indent*(n-1),shiftOfContent:e.indent*Math.max(1,n),shiftOfFirstLine:n===0?0:e.indent*n,presenterOptions:e,allowedStylesMask:0,style:t.style}}function eV(e,t,r){let n="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Qn(e,t,r.items[i],r,{}).text;i>0&&(n+=`,${e.flowSkipCommaSpace?"":" "}`),n+=a}let o=e.flowBracketPadding&&r.items.length>0?" ":"";return`[${o}${n}${o}]`}function Mx(e,t,r,n){let o="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Qn(e,t+1,r.items[i],r,{block:!0,compact:e.seqInlineFirst,isblockseq:!0}).text;(!n||o!=="")&&(o+=Wf(e,t)),a===""||Mp===a.charCodeAt(0)?o+="-":o+="- ",o+=a}return o}function tV(e,t,r){let n="";for(let{key:i,value:s}of r.items){let a="";n!==""&&(a+=`,${e.flowSkipCommaSpace?"":" "}`);let c=Qn(e,t,i,r,{iskey:!0}),l=c.text,p=Qn(e,t,s,r,{}).text,u=e.flowSkipColonSpace||p===""?"":" ",f=i.kind==="scalar"&&c.noBody&&(i.tagged||i.anchor!==void 0),h=i.kind==="alias"||f?" ":"";a+=`${l}${h}:${u}${p}`,n+=a}let o=e.flowBracketPadding&&n!==""?" ":"";return`{${o}${n}${o}}`}function rV(e,t,r,n){let o="";for(let i=0,s=r.items.length;i<s;i+=1){let a="";(!n||o!=="")&&(a+=Wf(e,t));let{key:c,value:l}=r.items[i],p=(c.kind==="mapping"||c.kind==="sequence")&&c.style===fr.BLOCK&&c.items.length!==0||c.kind==="scalar"&&(c.style===Z.LITERAL_BLOCK||c.style===Z.FOLDED_BLOCK),u=p?Qn(e,t+1,c,r,{block:!0,compact:!0,isblockseq:!Yf(e,c,t+1)}):Qn(e,t+1,c,r,{block:!0,compact:!0,iskey:!0}),f=u.text,h=c.kind==="scalar"&&c.value.indexOf(`
95
+ `)!==-1,m=f.length>1024&&/^[\s\S]{1025}/u.test(f),y=p||h||m;y&&(f&&Mp===f.charCodeAt(0)?a+="?":a+="? "),a+=f,y&&(a+=Wf(e,t));let b=Qn(e,t+1,l,r,{block:!0,compact:y,isblockseq:y&&!Yf(e,l,t+1)}).text,x=c.kind==="scalar"&&u.noBody&&(c.tagged||c.anchor!==void 0),w=!y&&(c.kind==="alias"||x)?" ":"";b===""||Mp===b.charCodeAt(0)?a+=`${w}:`:a+=`${w}: `,a+=b,o+=a}return o}function Yf(e,t,r){return t.kind==="alias"?!0:t.tagged||t.anchor!==void 0||e.indent<2&&r>0}function Qn(e,t,r,n,o){if(r.kind==="alias")return e.openEnded=!1,{text:`*${r.anchor}`,noBody:!1};let{block:i=!1,iskey:s=!1,isblockseq:a=!1}=o,c=o.compact??!1,l=r.anchor!==void 0;Yf(e,r,t)&&(c=!1);let p,u=r.tagged,f=i&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===fr.BLOCK&&r.items.length!==0;if(r.kind==="mapping")f?p=rV(e,t,r,c):p=tV(e,t,r);else if(r.kind==="sequence")f?e.seqNoIndent&&!a&&t>0?p=Mx(e,t-1,r,c):p=Mx(e,t,r,c):p=eV(e,t,r);else{let y=Zz(e,r,n,t,s,!i);Lz(y);for(let b of e.scalarStyleRules)b(y);p=Fz(y),e.openEnded=(y.style===Z.LITERAL_BLOCK||y.style===Z.FOLDED_BLOCK)&&(r.value===`
96
+ `||r.value.endsWith(`
97
+
98
+ `)),u=r.tagged||p===""&&y.flowOnly&&n?.kind==="sequence"&&!l||y.style!==Z.PLAIN&&r.tag!==e.defaultScalarTagName}(r.kind==="mapping"||r.kind==="sequence")&&!f&&(e.openEnded=!1),f&&c&&t>0&&e.indent>2&&(p=`${" ".repeat(e.indent-2)}${p}`);let h=p==="",m=p;if(u||l){let y=[],b=u?Jz(r):null,x=l?`&${r.anchor}`:null;e.tagBeforeAnchor?(b!==null&&y.push(b),x!==null&&y.push(x)):(x!==null&&y.push(x),b!==null&&y.push(b));let w=p===""||p.charCodeAt(0)===Mp?"":" ";m=`${y.join(" ")}${w}${p}`}return{text:m,noBody:h}}function nV(e){return(e.kind==="sequence"||e.kind==="mapping")&&e.style===fr.BLOCK&&e.items.length!==0&&!e.tagged&&e.anchor===void 0}function oV(e){let t="";for(let r of e.directives){if(r.kind==="yaml"){t+=`%YAML ${r.version}
99
+ `;continue}let{handle:n,prefix:o}=r;t+=`%TAG ${n} ${o}
100
+ `}return t}function iV(e,t){let r=Xz(t),n="",o=!1;for(let i=0;i<e.length;i+=1){let s=e[i];r.openEnded=!1;let a=oV(s),c=a!=="",l=s.explicitStart||c||i>0&&!o;if(n+=a,s.contents===null)l&&(n+=`---
101
+ `);else if(l){let p=Qn(r,0,s.contents,null,{block:!0,compact:!0}).text,u=p===""?"":c||nV(s.contents)?`
102
+ `:" ";n+=`---${u}${p}
103
+ `}else n+=Qn(r,0,s.contents,null,{block:!0,compact:!0}).text+`
104
+ `;o=s.explicitEnd||r.openEnded,o&&(n+=`...
105
+ `)}return n}var sV={...lm,schema:yU,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function aV(e,t){let r=String(e),n=String(t);return r<n?-1:r>n?1:0}function xS(e,t={}){let r={...sV,...t},n=az(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&qx(n,(o,i)=>{if(!(i.depth<r.flowLevel))return(o.kind==="sequence"||o.kind==="mapping")&&(o.style=fr.FLOW),iS}),r.sortKeys){let o=r.sortKeys===!0?aV:r.sortKeys;qx(n,i=>{i.kind==="mapping"&&i.items.sort((s,a)=>o(s.key.kind==="scalar"?s.key.value:"",a.key.kind==="scalar"?a.key.value:""))})}return r.transform(n),iV(n,{...zf(r,Object.keys(lm)),schema:r.schema})}var Pae=st.DOCUMENT,Eae=st.SEQUENCE,Aae=st.MAPPING,Oae=st.SCALAR,Tae=st.ALIAS,Rae=st.POP,kae=Z.PLAIN,Iae=Z.SINGLE_QUOTED,Cae=Z.DOUBLE_QUOTED,Nae=Z.LITERAL_BLOCK,qae=Z.FOLDED_BLOCK,jae=fr.BLOCK,Dae=fr.FLOW,Mae=Or.CLIP,Lae=Or.STRIP,Fae=Or.KEEP;var cV=nm.withTags(Jf,Xf,Zf,em,tm),ii=(e,t)=>{let r=oS(e,{schema:cV,...t});if(r.length===0)return e.trim()===""?void 0:null;if(r.length>1)throw new wo("expected a single document in the stream, but found more");return r[0]},Bp=(e,t)=>xS(e,t);var pV=[".graphql",".gql"];function fs(e){let t=e.toLowerCase();return pV.some(r=>t.endsWith(r))}import*as Gp from"node:fs";import*as Wp from"node:path";import{fileURLToPath as KV}from"node:url";var lV=/\((\d+):(\d+)\)$/,$n=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(lV)||[];this.line=parseInt(n,10),this.col=parseInt(o,10)}};function ot(e,t){return e.hasOwnProperty(t)?e[t]:void 0}function Ca(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}function Jn(e,t){return e+"::"+t}function SS(){return new Promise(e=>{setTimeout(e)})}var GS=tn(KS(),1);var Tt=typeof window<"u"||typeof process>"u"||process?.platform==="browser",Ma=Tt?{}:process.env||{};async function Sm(e,t){let r={};for(let o of t.headers)HV(e,o.matches)&&(r[o.name]=o.envVariable!==void 0?Ma[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 HV(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),GS.default.isMatch(e,t)}var Pn=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}},La=class e extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function si(e,t){let r=new Pn(t,e);if(fs(t))return{source:r,parsed:e};try{return{source:r,parsed:ii(e,{filename:t})}}catch(n){throw new $n(n,r)}}var Kt=class{config;cache=new Map;overlayFiles=new Set;constructor(t={http:{headers:[]}}){this.config=t}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return le(r)?r:t&&le(t)?new URL(r,t).href:Wp.resolve(t?Wp.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(le(t)&&!So(t)){let{body:r,mimeType:n}=await Sm(t,this.config.http);return new Pn(t,r,n)}else{let r=So(t)?KV(t):t;if(Gp.lstatSync(r).isDirectory())throw new Error(`Expected a file but received a folder at ${r}.`);let n=await Gp.promises.readFile(r,"utf-8");return new Pn(t,n.replace(/\r\n/g,`
107
+ `))}}catch(r){throw r.message=r.message.replace(", lstat",""),new La(r)}}parseDocument(t,r=!1){if(fs(t.absoluteRef))return{source:t,parsed:t.body};let n=le(t.absoluteRef)?new URL(t.absoluteRef).pathname:t.absoluteRef;if(!Ca(n)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:ii(t.body,{filename:t.absoluteRef})}}catch(o){throw new $n(o,t)}}async resolveDocument(t,r,n=!1){let o=this.resolveExternalRef(t,r);if(So(o)&&t!==null&&le(t)&&!So(t)&&!this.overlayFiles.has(o))throw new La(new Error(`A remote document can't reference ${o}, which is a local file.`));let 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 WS(e,t){return{prev:e,node:t}}function GV(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var Kp={name:"unknown",properties:{}},WV={name:"scalar",properties:{}};async function Gt(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,f){let h=p.source.absoluteRef,m=new Map;y(l,f,h+u);function y(x,w,S){if(!A(x)&&!Array.isArray(x))return;let P=`${w.name}::${S}`;if(i.has(P))return;if(i.add(P),Array.isArray(x)){let C=w.items;if(C===void 0&&w!==Kp&&w!==rn)return;let I=typeof C=="function";for(let k=0;k<x.length;k++){let T=I?C(x[k],Ar(S,k)):C;if(T===void 0&&w!==Kp&&w!==rn)continue;let se=T?.directResolveAs?{$ref:x[k]}:x[k];T=T?.directResolveAs||T,y(se,Nr(T)?T:Kp,Ar(S,k))}return}let[$,O]=Object.entries(x).find(([C])=>C==="$anchor")||[];O&&m.set(`#${O}`,x);for(let C of Object.keys(x)){let I=x[C],k=ot(w.properties,C),T=w.extensionsPrefix!==void 0&&C.startsWith(w.extensionsPrefix);k===void 0&&!T&&(k=w.additionalProperties),typeof k=="function"&&(k=k(I,C)),T&&k===void 0&&(k=rn),k===void 0&&(k=Kp),!Nr(k)&&k?.directResolveAs&&(k=k.directResolveAs,I={$ref:I}),k&&k.name===void 0&&k.resolvable!==!1&&(k=WV),!(!Nr(k)||!(A(I)||Array.isArray(I)))&&y(I,k,Ar(S,qr(C)))}if(B(x)){let C=b(p,x,{prev:null,node:x}).then(I=>{if(I.resolved){c(I.node,I.document,I.nodePointer,w);for(let k of I.chain??[])c(k.node,k.document,k.location.pointer,w)}});s.push(C)}if(Op(x)){let C=b(p,{$ref:x.externalValue},{prev:null,node:x}).then(I=>{I.resolved&&c(I.node,I.document,I.nodePointer,w)});s.push(C)}}async function b(x,w,S){if(GV(S.prev,w))throw new Error("Self-referencing circular pointer");if(dx(w.$ref)){await SS();let X={resolved:!0,isRemote:!1,node:m.get(w.$ref),document:x,nodePointer:w.$ref},he=Jn(x.source.absoluteRef,w.$ref);return o.set(he,X),X}let{uri:P,pointer:$}=xo(w.$ref),O=P!==null&&r.resolveExternalRef(x.source.absoluteRef,P)!==x.source.absoluteRef,C;try{C=O?await r.resolveDocument(x.source.absoluteRef,P):x}catch(X){let he={resolved:!1,isRemote:O,document:void 0,error:X},q=Jn(x.source.absoluteRef,w.$ref);return o.set(q,he),he}let I={resolved:!0,document:C,isRemote:O,node:x.parsed,nodePointer:"#/"},k=C.parsed,T=$;for(let X of T)if(A(k)&&k[X]!==void 0)k=k[X],I.nodePointer=Ar(I.nodePointer,qr(X));else if(Array.isArray(k)&&k[+X]!==void 0)k=k[+X],I.nodePointer=Ar(I.nodePointer,qr(X));else if(B(k))if(I=await b(C,k,WS(S,k)),I.chain=void 0,C=I.document||C,A(I.node))k=I.node[X],I.nodePointer=Ar(I.nodePointer,qr(X));else if(Array.isArray(I.node))k=I.node[+X],I.nodePointer=Ar(I.nodePointer,qr(X));else{k=void 0;break}else{k=void 0;break}I.node=k,I.document=C;let se=Jn(x.source.absoluteRef,w.$ref);if(I.document&&B(k)){let X=nn(k)?{node:k,document:I.document,location:new Ct(I.document.source,I.nodePointer)}:void 0;I=await b(I.document,k,WS(S,k)),X&&I.resolved&&(I={...I,chain:[X,...I.chain??[]]})}return o.set(se,I),{...I}}}}var Em={};Cq(Em,{bgBlack:()=>gB,bgBlackBright:()=>CB,bgBlue:()=>SB,bgBlueBright:()=>DB,bgCyan:()=>_B,bgCyanBright:()=>LB,bgGreen:()=>bB,bgGreenBright:()=>qB,bgMagenta:()=>wB,bgMagentaBright:()=>MB,bgRed:()=>vB,bgRedBright:()=>NB,bgWhite:()=>$B,bgWhiteBright:()=>FB,bgYellow:()=>xB,bgYellowBright:()=>jB,black:()=>cB,blackBright:()=>PB,blue:()=>dB,blueBright:()=>TB,bold:()=>tB,cyan:()=>mB,cyanBright:()=>kB,dim:()=>rB,gray:()=>yB,green:()=>lB,greenBright:()=>AB,hidden:()=>sB,inverse:()=>iB,italic:()=>nB,magenta:()=>fB,magentaBright:()=>RB,options:()=>Pm,red:()=>pB,redBright:()=>EB,reset:()=>eB,strikethrough:()=>aB,underline:()=>oB,white:()=>hB,whiteBright:()=>IB,yellow:()=>uB,yellowBright:()=>OB});import*as _m from"tty";var _o=process.env,YV="NO_COLOR"in _o,QV="FORCE_COLOR"in _o,JV=process.platform==="win32",XV=_m&&_m.isatty(1)&&_o.TERM&&_o.TERM!=="dumb",ZV="CI"in _o&&("GITHUB_ACTIONS"in _o||"GITLAB_CI"in _o||"CIRCLECI"in _o),wm=!YV&&(QV||JV||XV||ZV),$m=(e,t,r,n)=>o=>wm?e+(~(o+="").indexOf(t,4)?o.replace(r,n):o)+t:o,ve=(e,t)=>$m(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),Pm=Object.defineProperty({},"enabled",{get:()=>wm,set:e=>wm=e}),eB=ve(0,0),tB=$m("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),rB=$m("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),nB=ve(3,23),oB=ve(4,24),iB=ve(7,27),sB=ve(8,28),aB=ve(9,29),cB=ve(30,39),pB=ve(31,39),lB=ve(32,39),uB=ve(33,39),dB=ve(34,39),fB=ve(35,39),mB=ve(36,39),hB=ve(37,39),yB=ve(90,39),gB=ve(40,49),vB=ve(41,49),bB=ve(42,49),xB=ve(43,49),SB=ve(44,49),wB=ve(45,49),_B=ve(46,49),$B=ve(47,49),PB=ve(90,39),EB=ve(91,39),AB=ve(92,39),OB=ve(93,39),TB=ve(94,39),RB=ve(95,39),kB=ve(96,39),IB=ve(97,39),CB=ve(100,49),NB=ve(101,49),qB=ve(102,49),jB=ve(103,49),DB=ve(104,49),MB=ve(105,49),LB=ve(106,49),FB=ve(107,49);function YS(e){return e}var Fa=Pm,ue=new Proxy(Em,{get(e,t){return Tt?YS:e[t]}}),Am=class{info(t){return Tt?console.info(t):process.stderr.write(t)}warn(t){return Tt?console.warn(t):process.stderr.write(ue.yellow(t))}error(t){return Tt?console.error(t):process.stderr.write(ue.red(t))}output(t){return Tt?console.log(t):process.stdout.write(t)}printNewLine(){Tt?console.log(`
108
+ `):process.stdout.write(`
109
+ `)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),o=Tt?n:ue.gray(n);return Tt?console.log(o):process.stdout.write(o)}indent(t,r){let n=Tt?" ":"\xA0";return t.split(`
110
+ `).map(o=>n.repeat(r)+o).join(`
111
+ `)}},de=new Am;var Yp=/^1\.[012]\.\d+(-.+)?$/;function Xn(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 Mr(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"&&Yp.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var UB={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function ht(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 h of Object.values(a.properties)){if(h===c){f(s,p);continue}A(h)&&h.name!==void 0&&u.add(h)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?f(s,p):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?f(s,p):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(rn);for(let h of Array.from(u.values()))n(s,h,c,l,p);function f(h,m){for(let y of m.slice(1))r[y.name]=r[y.name]||{enter:[],leave:[]},r[y.name].enter.push({...h,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 f=a[u]||o(a,UB[u]),h=r[u];if(!f)continue;let m,y,b,x=A(f);if(u==="ref"&&x&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?m=f:x&&(m=f.enter,y=f.leave,b=f.skip);let w=(m?1:0)+(y?1:0)+(b?1:0),S=x&&Object.keys(f).length>w,P={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(S&&i(s,f,P,l+1),c&&n(s,c.type,t[u],c),m||x){if(m&&typeof m!="function")throw new Error("DEV: should be function");h.enter.push({...s,visit:m||(()=>{}),skip:b,depth:l,context:P})}if(y){if(typeof y!="function")throw new Error("DEV: should be function");h.leave.push({...s,visit:y,depth:l,context:P})}}}}function Om(e,t){return{prev:e,value:t}}function Tm(e){return e?.prev??null}function zB(e){let t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function VB(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 yt(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:o,ctx:i}=e,s={},a=new Set,c=(b,x)=>`${b.name}::${x.absolutePointer}`,l=new Set,p={},u=n.any.enter,f=n.any.leave,h={},m={};for(let b of Object.keys(n))b==="any"||b==="ref"||(h[b]=u.concat(n[b]?.enter||[]),m[b]=(n[b]?.leave||[]).concat(f));y(t.parsed,r,new Ct(t.source,"#/"),void 0,"");function y(b,x,w,S,P){let $=(ie,tt=C.source.absoluteRef)=>{if(!B(ie))return{location:w,node:ie};let Ve=Jn(tt,ie.$ref),Ee=o.get(Ve);if(!Ee)return{location:void 0,node:void 0};let{resolved:er,node:lt,document:ct,nodePointer:te,error:lr,chain:K}=Ee;return{location:er?new Ct(ct.source,te):lr instanceof $n?new Ct(lr.source,""):void 0,node:lt,error:lr,chain:K}},O=w,C=w,I=B(b),{node:k,location:T,error:se,chain:X}=$(b),he=new Set,q=nn(b)&&a.has(c(x,w));if(nn(b)&&a.add(c(x,w)),I&&!q){let ie=n.ref.enter;for(let{visit:tt,ruleId:Ve,severity:Ee,message:er,context:lt}of ie)he.add(lt),tt(b,{report:te=>xt(Ve,Ee,er,te),resolve:$,rawNode:b,rawLocation:O,location:w,type:x,parent:S,key:P,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Te(Ve)},{node:k,location:T,error:se,chain:X}),T?.source.absoluteRef&&i.refTypes&&i.refTypes.set(T?.source.absoluteRef,x)}if(k!==void 0&&T&&x.name!=="scalar"){let ie=(K,D,pe,M)=>{let H=ot(x.properties,K),Ae=x.extensionsPrefix!==void 0&&K.startsWith(x.extensionsPrefix);H===void 0&&!Ae&&(H=x.additionalProperties),typeof H=="function"&&(H=H(D,K)),Ae&&!Nr(H)&&(H=rn),!Nr(H)&&H?.directResolveAs&&(H=H.directResolveAs,D={$ref:D}),H&&H.name===void 0&&H.resolvable!==!1&&(H={name:"scalar",properties:{}}),!(!Nr(H)||H.name==="scalar"&&!B(D))&&y(D,H,pe.child([K]),M,K)};C=T;let tt=A(k)||Array.isArray(k)?k:w.absolutePointer,Ve=s[x.name]?.has?.(tt),Ee=!1,er=h[x.name]||u.concat(n[x.name]?.enter||[]),lt=[],ct=`${C.absolutePointer}${C.pointer}`;for(let{context:K,visit:D,skip:pe,ruleId:M,severity:H,message:Ae}of er){if(l.has(ct))break;if(K.isSkippedLevel)K.parent.activatedOn&&!K.parent.activatedOn.value.nextLevelTypeActivated&&!K.seen.has(b)&&(K.seen.add(b),Ee=!0,lt.push(K));else if(K.parent&&K.parent.activatedOn&&K.parent.activatedOn.value.node===p[K.parent.type.name]&&K.activatedOn?.value.withParentNode!==K.parent.activatedOn.value.node&&K.parent.activatedOn.value.nextLevelTypeActivated?.value!==x||!K.parent&&!Ve){lt.push(K);let rt={node:k,location:T,nextLevelTypeActivated:null,withParentNode:K.parent?.activatedOn?.value.node,skipped:(K.parent?.activatedOn?.value.skipped||pe?.(k,P,{location:w,rawLocation:O,resolve:$,rawNode:b}))??!1};K.activatedOn=Om(K.activatedOn,rt);let Ne=K.parent;for(;Ne;)Ne.activatedOn.value.nextLevelTypeActivated=Om(Ne.activatedOn.value.nextLevelTypeActivated,x),Ne=Ne.parent;rt.skipped||(Ee=!0,he.add(K),j(D,k,b,K,M,H,Ae))}}let te=p[x.name];if(p[x.name]=k,Ee||!Ve){if(s[x.name]=s[x.name]||new Set,s[x.name].add(tt),Array.isArray(k)){let K=x.items;if(K!==void 0){let D=typeof K=="function";for(let pe=0;pe<k.length;pe++){let M=T.child([pe]),H=D?K(k[pe],M.absolutePointer):K,Ae=k[pe];H?.directResolveAs&&(H=H.directResolveAs,Ae={$ref:Ae}),Nr(H)&&y(Ae,H,M,k,pe)}}}else if(A(k)){let K=Object.keys(x.properties);x.additionalProperties?K.push(...Object.keys(k).filter(D=>!K.includes(D))):x.extensionsPrefix&&K.push(...Object.keys(k).filter(D=>D.startsWith(x.extensionsPrefix)&&!K.includes(D)));for(let D of K){let pe=k[D];pe!==void 0&&ie(D,pe,T,k)}}}if(I&&X?.length){let K=X[0];a.has(c(x,K.location))||y(K.node,x,K.location,void 0,P)}if(nn(b)&&!q)for(let K of Object.keys(b))K!=="$ref"&&b[K]!==k?.[K]&&ie(K,b[K],w,b);p[x.name]=te;let lr=m[x.name]||(n[x.name]?.leave||[]).concat(f);for(let K of lt.reverse())if(K.isSkippedLevel)K.seen.delete(k);else if(K.activatedOn=Tm(K.activatedOn),K.parent){let D=K.parent;for(;D;)D.activatedOn.value.nextLevelTypeActivated=Tm(D.activatedOn.value.nextLevelTypeActivated),D=D.parent}for(let{context:K,visit:D,ruleId:pe,severity:M,message:H}of lr)!K.isSkippedLevel&&he.has(K)&&j(D,k,b,K,pe,M,H)}if(C=w,I&&!q){let ie=n.ref.leave;for(let{visit:tt,ruleId:Ve,severity:Ee,context:er,message:lt}of ie)he.has(er)&&tt(b,{report:te=>xt(Ve,Ee,lt,te),resolve:$,rawNode:b,rawLocation:O,location:w,type:x,parent:S,key:P,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Te(Ve)},{node:k,location:T,error:se,chain:X})}function j(ie,tt,Ve,Ee,er,lt,ct){ie(tt,{report:lr=>xt(er,lt,ct,lr),resolve:$,rawNode:Ve,location:C,rawLocation:O,type:x,parent:S,key:P,parentLocations:VB(Ee),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{l.add(`${C.absolutePointer}${C.pointer}`)},getVisitorData:()=>Te(er)},zB(Ee),Ee)}function xt(ie,tt,Ve,Ee){let lt=(Ee.location?Array.isArray(Ee.location)?Ee.location:[Ee.location]:[{...C,reportOnKey:!1}]).map(te=>({...C,reportOnKey:!1,...te})),ct=Ee.forceSeverity||tt;ct!=="off"&&i.problems.push({ruleId:Ee.ruleId||ie,severity:ct,...Ee,message:Ve?Ve.replace("{{message}}",Ee.message):Ee.message,suggest:Ee.suggest||[],location:lt})}function Te(ie){return i.visitorsData[ie]=i.visitorsData[ie]||{},i.visitorsData[ie]}}}var $o=class extends Error{},Rm=class extends Error{};function BB(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function ai(e,t,r,n){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,ai.prototype),o.expected=t,o.found=r,o.location=n,o.name="SyntaxError",o}BB(ai,Error);function km(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,r+=r.repeat(t),e+r.slice(0,t))}ai.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r=null,n;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){r=e[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(o):o,s=this.location.source+":"+i.line+":"+i.column;if(r){var a=this.location.end,c=km("",i.line.toString().length," "),l=r[o.line-1],p=o.line===a.line?a.column:l.length+1,u=p-o.column||1;t+=`
112
+ --> `+s+`
113
+ `+c+` |
114
+ `+i.line+" | "+l+`
115
+ `+c+" | "+km("",o.column-1," ")+km("",u,"^")}else t+=`
116
+ at `+s}return t};ai.buildMessage=function(e,t){var r={literal:function(l){return'"'+o(l.text)+'"'},class:function(l){var p=l.parts.map(function(u){return Array.isArray(u)?i(u[0])+"-"+i(u[1]):i(u)});return"["+(l.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(l){return l.description}};function n(l){return l.charCodeAt(0).toString(16).toUpperCase()}function o(l){return l.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function i(l){return l.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function s(l){return r[l.type](l)}function a(l){var p=l.map(s),u,f;if(p.sort(),p.length>0){for(u=1,f=1;u<p.length;u++)p[u-1]!==p[u]&&(p[f]=p[u],f++);p.length=f}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function c(l){return l?'"'+o(l)+'"':"end of input"}return"Expected "+a(e)+" but "+c(t)+" found."};function QS(e,t){t=t!==void 0?t:{};var r={},n=t.grammarSource,o={jsonpath_query:rf},i=rf,s="$",a=".",c="..",l="[",p=",",u="]",f="*",h=":",m="?",y='"',b="'",x="0",w="-",S="||",P="\\",$="u",O="&&",C="d",I="(",k=")",T="!",se="==",X="!=",he="<=",q=">=",j="-0",xt="true",Te="false",ie="null",tt="@",Ve="e",Ee=/^[\t-\n\r ]/,er=/^[A-Z_a-z\x80-\uD7FF\uE000-\uFFFF]/,lt=/^[\uD800-\uDBFF]/,ct=/^[\uDC00-\uDFFF]/,te=/^[A-Za-z]/,lr=/^[0-9]/,K=/^[1-9]/,D=/^[ -!#-&(-[\]-\uD7FF\uE000-\uFFFF]/,pe=/^[\/\\bfnrt]/,M=/^[A-CE-F]/i,H=/^[0-7]/,Ae=/^[8-9]/,rt=/^[A-B]/i,Ne=/^[C-F]/i,kr=/^[A-F]/i,Ir=/^[<>]/,RC=/^[0-9_a-z]/,kC=/^[+\-]/,IC=/^[a-z]/,CC=ze("$",!1),NC=St([[" ",`
117
+ `],"\r"," "],!1,!1),Xd=ze(".",!1),qC=ze("..",!1),Zd=ze("[",!1),_p=ze(",",!1),ef=ze("]",!1),jC=ze("*",!1),DC=St([["A","Z"],"_",["a","z"],["\x80","\uD7FF"],["\uE000","\uFFFF"]],!1,!1),w0=St([["\uD800","\uDBFF"]],!1,!1),_0=St([["\uDC00","\uDFFF"]],!1,!1),$0=ze(":",!1),MC=ze("?",!1),LC=St([["A","Z"],["a","z"]],!1,!1),FC=St([["0","9"]],!1,!1),$p=ze('"',!1),Pp=ze("'",!1),UC=ze("0",!1),zC=ze("-",!1),VC=St([["1","9"]],!1,!1),P0=ze("||",!1),BC=St([[" ","!"],["#","&"],["(","["],["]","\uD7FF"],["\uE000","\uFFFF"]],!1,!1),E0=ze("\\",!1),HC=St(["/","\\","b","f","n","r","t"],!1,!1),A0=ze("u",!1),O0=ze("&&",!1),KC=St([["A","C"],["E","F"]],!1,!0),tf=ze("D",!0),GC=St([["0","7"]],!1,!1),WC=St([["8","9"]],!1,!1),YC=St([["A","B"]],!1,!0),QC=St([["C","F"]],!1,!0),T0=ze("(",!1),R0=ze(")",!1),JC=St([["A","F"]],!1,!0),XC=ze("!",!1),ZC=ze("==",!1),eN=ze("!=",!1),tN=ze("<=",!1),rN=ze(">=",!1),nN=St(["<",">"],!1,!1),oN=ze("-0",!1),iN=ze("true",!1),sN=ze("false",!1),aN=ze("null",!1),cN=ze("@",!1),pN=St([["0","9"],"_",["a","z"]],!1,!1),lN=ze("e",!0),uN=St(["+","-"],!1,!1),dN=St([["a","z"]],!1,!1),fN=function(d){return{type:"JsonPathQuery",segments:d}},k0=function(d){return d},mN=function(d){return d},hN=function(d){return{type:"ChildSegment",node:d}},yN=function(d){return{type:"DescendantSegment",node:d}},I0=function(d,g){return g},gN=function(d,g){return[d,...g]},vN=function(d){return{type:"BracketedSelection",selectors:d}},bN=function(){return{type:"WildcardSelector"}},xN=function(d){return{type:"MemberNameShorthand",value:d}},SN=function(d){return{type:"NameSelector",value:d}},wN=function(d,g,_){return _},_N=function(d,g,_){return{start:d,end:g,step:_}},$N=function(d){return{type:"SliceSelector",start:d.start===""?null:Number.parseInt(d.start.trim(),10),end:d.end===""?null:Number.parseInt(d.end.trim(),10),step:d.step===""||d.step===null?null:Number.parseInt(d.step.trim(),10)}},PN=function(d){return{type:"IndexSelector",value:Number.parseInt(d,10)}},EN=function(d){return{type:"FilterSelector",value:d}},AN=function(d){return d},ON=function(d){return d},TN=function(d){return d.join("")},RN=function(){return'"'},kN=function(d){switch(d){case"b":return"\b";case"f":return"\f";case"n":return`
118
+ `;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return d.slice(1)}},IN=function(){return"'"},CN=function(d){switch(d){case"b":return"\b";case"f":return"\f";case"n":return`
119
+ `;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return d.slice(1)}},C0=function(d,g){return g},NN=function(d,g){return g.length===0?d:{type:"LogicalOrExpr",left:d,right:g.length===1?g[0]:g.slice(1).reduce((_,R)=>({type:"LogicalOrExpr",left:_,right:R}),g[0])}},N0=function(d,g){return g},qN=function(d,g){return[d,...g]},jN=function(d){return d.length===1?d[0]:{type:"LogicalAndExpr",left:d[0],right:d.length===2?d[1]:d.slice(2).reduce((g,_)=>({type:"LogicalOrExpr",left:g,right:_}),d[1])}},DN=function(){return String.fromCharCode(Number.parseInt(oq(),16))},MN=function(d,g){return String.fromCharCode(Number.parseInt(d,16))+String.fromCharCode(Number.parseInt(g,16))},LN=function(d){return d},FN=function(d,g){return d!==null?{type:"LogicalNotExpr",expression:g}:g},UN=function(d,g,_){return{type:"ComparisonExpr",left:d,op:g,right:_}},zN=function(d,g){return d!==null?{type:"LogicalNotExpr",expression:{type:"TestExpr",expression:g}}:{type:"TestExpr",expression:g}},VN=function(d){return{type:"FilterQuery",value:d}},q0=function(d,g,_){return _},BN=function(d,g,_){return[g,..._]},HN=function(d,g){return{type:"FunctionExpr",name:d,arguments:g}},KN=function(d){return{type:"Literal",value:d}},GN=function(d){return{type:"RelQuery",segments:d}},WN=function(d){return Number(d)},YN=function(){return!0},QN=function(){return!1},JN=function(){return null},XN=function(d){return{type:"RelSingularQuery",segments:d}},ZN=function(d){return{type:"AbsSingularQuery",segments:d}},j0=function(d){return{type:"SingularQuerySegment",node:d}},eq=function(d){return d},tq=function(d){return d},rq=function(d){return d},nq=function(d){return{type:"IndexSelector",selector:d}},v=t.peg$currPos|0,G=v,Wi=[{line:1,column:1}],Zr=v,Ep=t.peg$maxFailExpected||[],F=t.peg$silentFails|0,_a;if(t.startRule){if(!(t.startRule in o))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');i=o[t.startRule]}function oq(){return e.substring(G,v)}function Yie(){return G}function Qie(){return{source:n,start:G,end:v}}function Jie(){return $a(G,v)}function Xie(d,g){throw g=g!==void 0?g:$a(G,v),M0([sq(d)],e.substring(G,v),g)}function Zie(d,g){throw g=g!==void 0?g:$a(G,v),aq(d,g)}function ze(d,g){return{type:"literal",text:d,ignoreCase:g}}function St(d,g,_){return{type:"class",parts:d,inverted:g,ignoreCase:_}}function ese(){return{type:"any"}}function iq(){return{type:"end"}}function sq(d){return{type:"other",description:d}}function D0(d){var g=Wi[d],_;if(g)return g;if(d>=Wi.length)_=Wi.length-1;else for(_=d;!Wi[--_];);for(g=Wi[_],g={line:g.line,column:g.column};_<d;)e.charCodeAt(_)===10?(g.line++,g.column=1):g.column++,_++;return Wi[d]=g,g}function $a(d,g,_){var R=D0(d),N=D0(g),U={source:n,start:{offset:d,line:R.line,column:R.column},end:{offset:g,line:N.line,column:N.column}};return _&&n&&typeof n.offset=="function"&&(U.start=n.offset(U.start),U.end=n.offset(U.end)),U}function L(d){v<Zr||(v>Zr&&(Zr=v,Ep=[]),Ep.push(d))}function aq(d,g){return new ai(d,null,null,g)}function M0(d,g,_){return new ai(ai.buildMessage(d,g),d,g,_)}function rf(){var d,g,_;return d=v,g=L0(),g!==r?(_=F0(),G=d,d=fN(_)):(v=d,d=r),d}function L0(){var d;return e.charCodeAt(v)===36?(d=s,v++):(d=r,F===0&&L(CC)),d}function F0(){var d,g,_,R;for(d=[],g=v,_=Re(),R=U0(),R!==r?(G=g,g=k0(R)):(v=g,g=r);g!==r;)d.push(g),g=v,_=Re(),R=U0(),R!==r?(G=g,g=k0(R)):(v=g,g=r);return d}function Re(){var d,g;for(d=[],g=z0();g!==r;)d.push(g),g=z0();return d}function U0(){var d;return d=cq(),d===r&&(d=pq()),d}function z0(){var d;return d=e.charAt(v),Ee.test(d)?v++:(d=r,F===0&&L(NC)),d}function cq(){var d,g,_,R;return d=v,g=V0(),g===r&&(g=v,e.charCodeAt(v)===46?(_=a,v++):(_=r,F===0&&L(Xd)),_!==r?(R=nf(),R===r&&(R=of()),R!==r?(G=g,g=mN(R)):(v=g,g=r)):(v=g,g=r)),g!==r&&(G=d,g=hN(g)),d=g,d}function pq(){var d,g,_;return d=v,e.substr(v,2)===c?(g=c,v+=2):(g=r,F===0&&L(qC)),g!==r?(_=V0(),_===r&&(_=nf(),_===r&&(_=of())),_!==r?(G=d,d=yN(_)):(v=d,d=r)):(v=d,d=r),d}function V0(){var d,g,_,R,N,U,Q,Se,it,Cr,ur;if(d=v,e.charCodeAt(v)===91?(g=l,v++):(g=r,F===0&&L(Zd)),g!==r){if(_=v,R=Re(),N=sf(),N!==r){for(U=[],Q=v,Se=Re(),e.charCodeAt(v)===44?(it=p,v++):(it=r,F===0&&L(_p)),it!==r?(Cr=Re(),ur=sf(),ur!==r?(G=Q,Q=I0(N,ur)):(v=Q,Q=r)):(v=Q,Q=r);Q!==r;)U.push(Q),Q=v,Se=Re(),e.charCodeAt(v)===44?(it=p,v++):(it=r,F===0&&L(_p)),it!==r?(Cr=Re(),ur=sf(),ur!==r?(G=Q,Q=I0(N,ur)):(v=Q,Q=r)):(v=Q,Q=r);G=_,_=gN(N,U)}else v=_,_=r;_!==r?(R=Re(),e.charCodeAt(v)===93?(N=u,v++):(N=r,F===0&&L(ef)),N!==r?(G=d,d=vN(_)):(v=d,d=r)):(v=d,d=r)}else v=d,d=r;return d}function nf(){var d,g;return d=v,e.charCodeAt(v)===42?(g=f,v++):(g=r,F===0&&L(jC)),g!==r&&(G=d,g=bN()),d=g,d}function of(){var d,g,_,R,N,U;if(d=v,g=v,_=v,R=B0(),R!==r){for(N=[],U=H0();U!==r;)N.push(U),U=H0();R=[R,N],_=R}else v=_,_=r;return _!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=xN(g)),d=g,d}function sf(){var d;return d=K0(),d===r&&(d=nf(),d===r&&(d=lq(),d===r&&(d=G0(),d===r&&(d=uq())))),d}function B0(){var d,g,_;return d=e.charAt(v),er.test(d)?v++:(d=r,F===0&&L(DC)),d===r&&(d=v,g=e.charAt(v),lt.test(g)?v++:(g=r,F===0&&L(w0)),g!==r?(_=e.charAt(v),ct.test(_)?v++:(_=r,F===0&&L(_0)),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function H0(){var d;return d=B0(),d===r&&(d=Kn()),d}function K0(){var d,g;return d=v,g=W0(),g!==r&&(G=d,g=SN(g)),d=g,d}function lq(){var d,g,_,R,N,U,Q,Se,it,Cr,ur,en;return d=v,g=v,_=v,R=v,N=Pa(),N!==r?(U=Re(),N=[N,U],R=N):(v=R,R=r),R===r&&(R=null),_=e.substring(_,v),e.charCodeAt(v)===58?(R=h,v++):(R=r,F===0&&L($0)),R!==r?(N=Re(),U=v,Q=v,Se=Pa(),Se!==r?(it=Re(),Se=[Se,it],Q=Se):(v=Q,Q=r),Q===r&&(Q=null),U=e.substring(U,v),Q=v,e.charCodeAt(v)===58?(Se=h,v++):(Se=r,F===0&&L($0)),Se!==r?(it=v,Cr=v,ur=Re(),en=Pa(),en===r&&(en=null),ur=[ur,en],Cr=ur,it=e.substring(it,v),G=Q,Q=wN(_,U,it)):(v=Q,Q=r),Q===r&&(Q=null),G=g,g=_N(_,U,Q)):(v=g,g=r),g!==r&&(G=d,g=$N(g)),d=g,d}function G0(){var d,g,_;return d=v,g=v,_=Pa(),_!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=PN(g)),d=g,d}function uq(){var d,g,_,R;return d=v,e.charCodeAt(v)===63?(g=m,v++):(g=r,F===0&&L(MC)),g!==r?(_=Re(),R=af(),R!==r?(G=d,d=EN(R)):(v=d,d=r)):(v=d,d=r),d}function tse(){var d;return d=e.charAt(v),te.test(d)?v++:(d=r,F===0&&L(LC)),d}function Kn(){var d;return d=e.charAt(v),lr.test(d)?v++:(d=r,F===0&&L(FC)),d}function W0(){var d,g,_,R,N;if(d=v,g=v,e.charCodeAt(v)===34?(_=y,v++):(_=r,F===0&&L($p)),_!==r){for(R=[],N=Y0();N!==r;)R.push(N),N=Y0();e.charCodeAt(v)===34?(N=y,v++):(N=r,F===0&&L($p)),N!==r?(G=g,g=AN(R)):(v=g,g=r)}else v=g,g=r;if(g===r)if(g=v,e.charCodeAt(v)===39?(_=b,v++):(_=r,F===0&&L(Pp)),_!==r){for(R=[],N=Q0();N!==r;)R.push(N),N=Q0();e.charCodeAt(v)===39?(N=b,v++):(N=r,F===0&&L(Pp)),N!==r?(G=g,g=ON(R)):(v=g,g=r)}else v=g,g=r;return g!==r&&(G=d,g=TN(g)),d=g,d}function Pa(){var d,g,_,R,N;if(e.charCodeAt(v)===48?(d=x,v++):(d=r,F===0&&L(UC)),d===r)if(d=v,e.charCodeAt(v)===45?(g=w,v++):(g=r,F===0&&L(zC)),g===r&&(g=null),_=dq(),_!==r){for(R=[],N=Kn();N!==r;)R.push(N),N=Kn();g=[g,_,R],d=g}else v=d,d=r;return d}function Y0(){var d,g,_;return d=v,g=J0(),g!==r?d=e.substring(d,v):d=g,d===r&&(e.charCodeAt(v)===39?(d=b,v++):(d=r,F===0&&L(Pp)),d===r&&(d=v,g=Ap(),g!==r?(e.charCodeAt(v)===34?(_=y,v++):(_=r,F===0&&L($p)),_!==r?(G=d,d=RN()):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,g=Ap(),g!==r?(_=X0(),_!==r?(G=d,d=kN(_)):(v=d,d=r)):(v=d,d=r)))),d}function Q0(){var d,g,_;return d=v,g=J0(),g!==r?d=e.substring(d,v):d=g,d===r&&(e.charCodeAt(v)===34?(d=y,v++):(d=r,F===0&&L($p)),d===r&&(d=v,g=Ap(),g!==r?(e.charCodeAt(v)===39?(_=b,v++):(_=r,F===0&&L(Pp)),_!==r?(G=d,d=IN()):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,g=Ap(),g!==r?(_=X0(),_!==r?(G=d,d=CN(_)):(v=d,d=r)):(v=d,d=r)))),d}function dq(){var d;return d=e.charAt(v),K.test(d)?v++:(d=r,F===0&&L(VC)),d}function af(){var d,g,_,R,N,U,Q,Se;if(d=v,g=cf(),g!==r){for(_=[],R=v,N=Re(),e.substr(v,2)===S?(U=S,v+=2):(U=r,F===0&&L(P0)),U!==r?(Q=Re(),Se=cf(),Se!==r?(G=R,R=C0(g,Se)):(v=R,R=r)):(v=R,R=r);R!==r;)_.push(R),R=v,N=Re(),e.substr(v,2)===S?(U=S,v+=2):(U=r,F===0&&L(P0)),U!==r?(Q=Re(),Se=cf(),Se!==r?(G=R,R=C0(g,Se)):(v=R,R=r)):(v=R,R=r);G=d,d=NN(g,_)}else v=d,d=r;return d}function J0(){var d,g,_;return d=e.charAt(v),D.test(d)?v++:(d=r,F===0&&L(BC)),d===r&&(d=v,g=e.charAt(v),lt.test(g)?v++:(g=r,F===0&&L(w0)),g!==r?(_=e.charAt(v),ct.test(_)?v++:(_=r,F===0&&L(_0)),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function Ap(){var d;return e.charCodeAt(v)===92?(d=P,v++):(d=r,F===0&&L(E0)),d}function X0(){var d,g,_;return d=e.charAt(v),pe.test(d)?v++:(d=r,F===0&&L(HC)),d===r&&(d=v,e.charCodeAt(v)===117?(g=$,v++):(g=r,F===0&&L(A0)),g!==r?(_=fq(),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function cf(){var d,g,_,R,N,U,Q,Se,it;if(d=v,g=v,_=pf(),_!==r){for(R=[],N=v,U=Re(),e.substr(v,2)===O?(Q=O,v+=2):(Q=r,F===0&&L(O0)),Q!==r?(Se=Re(),it=pf(),it!==r?(G=N,N=N0(_,it)):(v=N,N=r)):(v=N,N=r);N!==r;)R.push(N),N=v,U=Re(),e.substr(v,2)===O?(Q=O,v+=2):(Q=r,F===0&&L(O0)),Q!==r?(Se=Re(),it=pf(),it!==r?(G=N,N=N0(_,it)):(v=N,N=r)):(v=N,N=r);G=g,g=qN(_,R)}else v=g,g=r;return g!==r&&(G=d,g=jN(g)),d=g,d}function fq(){var d,g,_,R,N,U,Q;return d=v,g=v,_=mq(),_!==r&&(G=g,_=DN()),g=_,g===r&&(g=v,_=v,R=hq(),R!==r?_=e.substring(_,v):_=R,_!==r?(e.charCodeAt(v)===92?(R=P,v++):(R=r,F===0&&L(E0)),R!==r?(e.charCodeAt(v)===117?(N=$,v++):(N=r,F===0&&L(A0)),N!==r?(U=v,Q=yq(),Q!==r?U=e.substring(U,v):U=Q,U!==r?(G=g,g=MN(_,U)):(v=g,g=r)):(v=g,g=r)):(v=g,g=r)):(v=g,g=r)),g!==r&&(G=d,g=LN(g)),d=g,d}function pf(){var d;return d=gq(),d===r&&(d=vq(),d===r&&(d=bq())),d}function mq(){var d,g,_,R,N,U;if(d=v,g=Kn(),g===r&&(g=e.charAt(v),M.test(g)?v++:(g=r,F===0&&L(KC))),g!==r){for(_=v,R=[],N=vo();N!==r;)R.push(N),R.length>=3?N=r:N=vo();R.length<3?(v=_,_=r):_=R,_!==r?(g=[g,_],d=g):(v=d,d=r)}else v=d,d=r;if(d===r)if(d=v,g=e.charAt(v),g.toLowerCase()===C?v++:(g=r,F===0&&L(tf)),g!==r)if(_=e.charAt(v),H.test(_)?v++:(_=r,F===0&&L(GC)),_!==r){for(R=v,N=[],U=vo();U!==r;)N.push(U),N.length>=2?U=r:U=vo();N.length<2?(v=R,R=r):R=N,R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function hq(){var d,g,_,R,N,U;if(d=v,g=e.charAt(v),g.toLowerCase()===C?v++:(g=r,F===0&&L(tf)),g!==r)if(_=e.charAt(v),Ae.test(_)?v++:(_=r,F===0&&L(WC)),_===r&&(_=e.charAt(v),rt.test(_)?v++:(_=r,F===0&&L(YC))),_!==r){for(R=v,N=[],U=vo();U!==r;)N.push(U),N.length>=2?U=r:U=vo();N.length<2?(v=R,R=r):R=N,R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function yq(){var d,g,_,R,N,U;if(d=v,g=e.charAt(v),g.toLowerCase()===C?v++:(g=r,F===0&&L(tf)),g!==r)if(_=e.charAt(v),Ne.test(_)?v++:(_=r,F===0&&L(QC)),_!==r){for(R=v,N=[],U=vo();U!==r;)N.push(U),N.length>=2?U=r:U=vo();N.length<2?(v=R,R=r):R=N,R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function gq(){var d,g,_,R,N,U,Q;return d=v,g=v,_=Z0(),_!==r?(R=Re(),_=[_,R],g=_):(v=g,g=r),g===r&&(g=null),e.charCodeAt(v)===40?(_=I,v++):(_=r,F===0&&L(T0)),_!==r?(R=Re(),N=af(),N!==r?(U=Re(),e.charCodeAt(v)===41?(Q=k,v++):(Q=r,F===0&&L(R0)),Q!==r?(G=d,d=FN(g,N)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}function vq(){var d,g,_,R,N,U;return d=v,g=ex(),g!==r?(_=Re(),R=xq(),R!==r?(N=Re(),U=ex(),U!==r?(G=d,d=UN(g,R,U)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}function bq(){var d,g,_,R;return d=v,g=v,_=Z0(),_!==r?(R=Re(),_=[_,R],g=_):(v=g,g=r),g===r&&(g=null),_=tx(),_===r&&(_=lf()),_!==r?(G=d,d=zN(g,_)):(v=d,d=r),d}function vo(){var d;return d=Kn(),d===r&&(d=e.charAt(v),kr.test(d)?v++:(d=r,F===0&&L(JC))),d}function Z0(){var d;return e.charCodeAt(v)===33?(d=T,v++):(d=r,F===0&&L(XC)),d}function ex(){var d;return d=rx(),d===r&&(d=Sq(),d===r&&(d=lf())),d}function xq(){var d;return e.substr(v,2)===se?(d=se,v+=2):(d=r,F===0&&L(ZC)),d===r&&(e.substr(v,2)===X?(d=X,v+=2):(d=r,F===0&&L(eN)),d===r&&(e.substr(v,2)===he?(d=he,v+=2):(d=r,F===0&&L(tN)),d===r&&(e.substr(v,2)===q?(d=q,v+=2):(d=r,F===0&&L(rN)),d===r&&(d=e.charAt(v),Ir.test(d)?v++:(d=r,F===0&&L(nN)))))),d}function tx(){var d,g;return d=v,g=wq(),g===r&&(g=rf()),g!==r&&(G=d,g=VN(g)),d=g,d}function lf(){var d,g,_,R,N,U,Q,Se,it,Cr,ur,en;if(d=v,g=_q(),g!==r)if(e.charCodeAt(v)===40?(_=I,v++):(_=r,F===0&&L(T0)),_!==r){if(R=Re(),N=v,U=uf(),U!==r){for(Q=[],Se=v,it=Re(),e.charCodeAt(v)===44?(Cr=p,v++):(Cr=r,F===0&&L(_p)),Cr!==r?(ur=Re(),en=uf(),en!==r?(G=Se,Se=q0(g,U,en)):(v=Se,Se=r)):(v=Se,Se=r);Se!==r;)Q.push(Se),Se=v,it=Re(),e.charCodeAt(v)===44?(Cr=p,v++):(Cr=r,F===0&&L(_p)),Cr!==r?(ur=Re(),en=uf(),en!==r?(G=Se,Se=q0(g,U,en)):(v=Se,Se=r)):(v=Se,Se=r);G=N,N=BN(g,U,Q)}else v=N,N=r;N===r&&(N=null),U=Re(),e.charCodeAt(v)===41?(Q=k,v++):(Q=r,F===0&&L(R0)),Q!==r?(G=d,d=HN(g,N)):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function rx(){var d,g;return d=v,g=$q(),g===r&&(g=W0(),g===r&&(g=Pq(),g===r&&(g=Eq(),g===r&&(g=Aq())))),g!==r&&(G=d,g=KN(g)),d=g,d}function Sq(){var d;return d=Oq(),d===r&&(d=Tq()),d}function wq(){var d,g,_;return d=v,g=nx(),g!==r?(_=F0(),_!==r?(G=d,d=GN(_)):(v=d,d=r)):(v=d,d=r),d}function _q(){var d,g,_,R,N;if(d=v,g=v,_=Iq(),_!==r){for(R=[],N=ox();N!==r;)R.push(N),N=ox();_=[_,R],g=_}else v=g,g=r;return g!==r?d=e.substring(d,v):d=g,d}function uf(){var d;return d=rx(),d===r&&(d=tx(),d===r&&(d=lf(),d===r&&(d=af()))),d}function $q(){var d,g,_,R,N,U;return d=v,g=v,_=v,R=Pa(),R===r&&(e.substr(v,2)===j?(R=j,v+=2):(R=r,F===0&&L(oN))),R!==r?(N=Rq(),N===r&&(N=null),U=kq(),U===r&&(U=null),R=[R,N,U],_=R):(v=_,_=r),_!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=WN(g)),d=g,d}function Pq(){var d,g;return d=v,e.substr(v,4)===xt?(g=xt,v+=4):(g=r,F===0&&L(iN)),g!==r&&(G=d,g=YN()),d=g,d}function Eq(){var d,g;return d=v,e.substr(v,5)===Te?(g=Te,v+=5):(g=r,F===0&&L(sN)),g!==r&&(G=d,g=QN()),d=g,d}function Aq(){var d,g;return d=v,e.substr(v,4)===ie?(g=ie,v+=4):(g=r,F===0&&L(aN)),g!==r&&(G=d,g=JN()),d=g,d}function Oq(){var d,g,_;return d=v,g=nx(),g!==r?(_=ix(),G=d,d=XN(_)):(v=d,d=r),d}function Tq(){var d,g,_;return d=v,g=L0(),g!==r?(_=ix(),G=d,d=ZN(_)):(v=d,d=r),d}function nx(){var d;return e.charCodeAt(v)===64?(d=tt,v++):(d=r,F===0&&L(cN)),d}function ox(){var d;return d=e.charAt(v),RC.test(d)?v++:(d=r,F===0&&L(pN)),d}function Rq(){var d,g,_,R;if(d=v,e.charCodeAt(v)===46?(g=a,v++):(g=r,F===0&&L(Xd)),g!==r){if(_=[],R=Kn(),R!==r)for(;R!==r;)_.push(R),R=Kn();else _=r;_!==r?(g=[g,_],d=g):(v=d,d=r)}else v=d,d=r;return d}function kq(){var d,g,_,R,N;if(d=v,g=e.charAt(v),g.toLowerCase()===Ve?v++:(g=r,F===0&&L(lN)),g!==r){if(_=e.charAt(v),kC.test(_)?v++:(_=r,F===0&&L(uN)),_===r&&(_=null),R=[],N=Kn(),N!==r)for(;N!==r;)R.push(N),N=Kn();else R=r;R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;return d}function ix(){var d,g,_,R,N;for(d=v,g=[],_=v,R=Re(),N=sx(),N===r&&(N=ax()),N!==r?(G=_,_=j0(N)):(v=_,_=r);_!==r;)g.push(_),_=v,R=Re(),N=sx(),N===r&&(N=ax()),N!==r?(G=_,_=j0(N)):(v=_,_=r);return G=d,g=eq(g),d=g,d}function Iq(){var d;return d=e.charAt(v),IC.test(d)?v++:(d=r,F===0&&L(dN)),d}function sx(){var d,g,_,R;return d=v,e.charCodeAt(v)===91?(g=l,v++):(g=r,F===0&&L(Zd)),g!==r?(_=K0(),_!==r?(e.charCodeAt(v)===93?(R=u,v++):(R=r,F===0&&L(ef)),R!==r?(G=d,d=tq(_)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,e.charCodeAt(v)===46?(g=a,v++):(g=r,F===0&&L(Xd)),g!==r?(_=of(),_!==r?(G=d,d=rq(_)):(v=d,d=r)):(v=d,d=r)),d}function ax(){var d,g,_,R;return d=v,e.charCodeAt(v)===91?(g=l,v++):(g=r,F===0&&L(Zd)),g!==r?(_=G0(),_!==r?(e.charCodeAt(v)===93?(R=u,v++):(R=r,F===0&&L(ef)),R!==r?(G=d,d=nq(_)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}if(_a=i(),t.peg$library)return{peg$result:_a,peg$currPos:v,peg$FAILED:r,peg$maxFailExpected:Ep,peg$maxFailPos:Zr};if(_a!==r&&v===e.length)return _a;throw _a!==r&&v<e.length&&L(iq()),M0(Ep,Zr<e.length?e.charAt(Zr):null,Zr<e.length?$a(Zr,Zr+1):$a(Zr,Zr))}function Qp(e){return QS(e)}var hs=class{head=null;tail=null;size=0;push(t){let r={value:t,next:null};this.tail!==null&&(this.tail.next=r),this.tail=r,this.head===null&&(this.head=r),this.size++}pop(){if(this.head===null)return;let t=this.head.value;return this.head=this.head.next,this.head===null&&(this.tail=null),this.size--,t}};function Zn(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var ys=e=>Array.isArray(e.value),gs=e=>Zn(e.value);var JS=new WeakSet,dt=e=>typeof e=="object"&&e!==null&&JS.has(e),XS=e=>{switch(typeof e){case"string":case"number":case"boolean":return!0;case"object":return e===null||Zn(e)||Im(e);default:return!1}},Im=e=>Array.isArray(e)&&!dt(e),Jp=()=>{let e=[];return JS.add(e),e},Lr=Symbol("Nothing");var ZS={declaration:function(t,r){return dt(r)?r.length:0},definition:{parameters:["NodesType"],returnType:"ValueType"}};function HB(e){let t=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>=0&&n<=55295||n>=57344&&n<=1114111)&&t++}return t}var ew={declaration:function(t,r){return typeof r=="string"?HB(r):Array.isArray(r)?r.length:Zn(r)?Object.keys(r).length:Lr},definition:{parameters:["ValueType"],returnType:"ValueType"}};function tw(e){return e===92}function KB(e,t){let r=!1,n=t;for(;n<e.length;){let o=e.charCodeAt(n);if(n++,tw(o)){r=!0;continue}if(o===93){if(!r)break;r=!1}}return n}function GB(e){let t=e;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);tw(n)?r++:n===91?r=KB(e,r):n===46&&(t=`${e.slice(0,r)}[^
120
+ \r]${e.slice(r+1)}`)}return t}function Ua({cache:e},t){let r=e.get("regexps")??{};if(e.has("regexps")||e.set("regexps",r),Object.hasOwn(r,t))return r[t];try{let n=RegExp(GB(t),"u");return r[t]=n,n}catch{return r[t]=null,null}}var rw={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Ua(t,`^${n}$`)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}};var nw={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Ua(t,n)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}};var ow={declaration:function(t,r){return r.length===1?r[0]:Lr},definition:{parameters:["NodesType"],returnType:"ValueType"}};var Cm=[];function Rt(e,t){return e===Cm?Cm:typeof t=="number"?[...e,t]:[...e,QB(t)]}function iw(e){return e?[]:Cm}var WB=/[\u0000-\u001f'\\]/g;function YB(e){let t=e.charCodeAt(0);switch(t){case 8:return"\\b";case 12:return"\\f";case 10:return"\\n";case 13:return"\\r";case 9:return"\\t";case 39:return"\\'";case 92:return"\\\\";default:return`\\u${t.toString(16).padStart(4,"0")}`}}function QB(e){return e.replace(WB,YB)}function sw(e){let t="$";for(let r of e)typeof r=="number"?t+=`[${r}]`:t+=`['${r}']`;return t}function hr(e){throw new TypeError(`Unexpected node type: ${e.type}`)}function rr(e){throw new TypeError(`Unexpected comparison operator: ${e}`)}function Xp(e,t){throw new Error(t)}function ci(e){switch(typeof e){case"object":if(e===null)return"null";if(dt(e))return"NodeList";if(Im(e))return"array";if(Zn(e))return"object";throw new TypeError(`Unknown type: ${e}`);case"string":return"string";case"number":return"number";case"boolean":return"boolean";default:if(e===Lr)return"Nothing";throw new TypeError(`Unknown type: ${e}`)}}function JB(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!En(e[r],t[r]))return!1;return!0}function XB(e,t){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o of r)if(!Object.hasOwn(t,o)||!En(e[o],t[o]))return!1;return!0}function En(e,t){if(ci(e)!==ci(t))return!1;switch(ci(e)){case"string":case"number":case"boolean":case"null":return e===t;case"object":return XB(e,t);case"array":case"NodeList":return JB(e,t);default:return!1}}function Zp(e,t,r){switch(r){case"==":case">=":case"<=":return!dt(e)&&!dt(t)&&En(e,t);case"<":case">":return!1;case"!=":return!Zp(e,t,"==");default:rr(r)}}function el(e,t,r){switch(r){case"==":case"<=":case">=":return dt(e)&&(dt(t)&&En(e,t)||t===Lr);case"<":case">":return!1;case"!=":return!el(e,t,"==");default:rr(r)}}function tl(e,t,r){switch(r){case"==":case"<=":case">=":return t===Lr||dt(t)&&t.length===0;case"<":case">":return!1;case"!=":return!tl(e,t,"==");default:rr(r)}}function eo(e,t,r){switch(r){case"==":return e===t;case"<":return typeof t=="number"&&e<t;case"!=":return!eo(e,t,"==");case"<=":return eo(e,t,"<")||eo(e,t,"==");case">":return typeof t=="number"&&eo(t,e,"<");case">=":return typeof t=="number"&&eo(t,e,"<")||eo(e,t,"==");default:rr(r)}}function Nm(e,t,r){switch(r){case"==":case"<=":case">=":return En(e,t);case"<":case">":return!1;case"!=":return!En(e,t);default:rr(r)}}function rl(e,t,r){switch(r){case"==":case"<=":case">=":return e===t;case"<":case">":return!1;case"!=":return!rl(e,t,"==");default:rr(r)}}function pi(e,t,r){if(typeof e!="string"||typeof t!="string")return!1;switch(r){case"==":return e===t;case"<":{let n=0;for(;e.length>n&&t.length>n;){let o=e.charCodeAt(n),i=t.charCodeAt(n);if(o===i){n++;continue}return e.charCodeAt(n)<t.charCodeAt(n)}return e.length<t.length}default:rr(r)}}function aw(e,t,r){switch(r){case"==":case"<":return pi(e,t,r);case"!=":return!pi(e,t,"==");case"<=":return pi(e,t,"<")||pi(e,t,"==");case">":return pi(t,e,"<");case">=":return pi(t,e,"<")||pi(e,t,"==");default:rr(r)}}function qm(e,t,r){let n=dt(e)&&e.length===1?e[0]:e,o=ci(n),i=dt(t)&&t.length===1?t[0]:t;switch(o){case"string":return aw(n,i,r);case"number":return eo(n,i,r);case"boolean":case"null":return rl(n,i,r);case"object":return Nm(n,i,r);case"array":return Zp(n,i,r);case"Nothing":return tl(n,i,r);case"NodeList":return el(n,i,r);default:Xp(o,"Unknown type")}}function za(e,t,r){let n=Jp();switch(r.value.type){case"RelQuery":Po(e,t.root,t.value,r.value,o=>{n.push(o)});break;case"JsonPathQuery":Po(e,t.root,t.root,r.value,o=>{n.push(o)});break;default:hr(r.value)}return n}function jm(e,t,r){switch(r.expression.type){case"FilterQuery":return za(e,t,r.expression).length>0;case"FunctionExpr":return li(e,t,r.expression)===!0;default:hr(r.expression)}}function An(e,t,r){switch(r.type){case"LogicalNotExpr":return!An(e,t,r.expression);case"LogicalAndExpr":return An(e,t,r.left)&&An(e,t,r.right);case"LogicalOrExpr":return An(e,t,r.left)||An(e,t,r.right);case"TestExpr":return jm(e,t,r);case"ComparisonExpr":return Va(e,t,r);default:hr(r)}}function Dm(e,t,r){switch(r.type){case"FunctionExpr":return li(e,t,r);case"FilterQuery":return za(e,t,r);case"LogicalNotExpr":case"LogicalAndExpr":case"LogicalOrExpr":case"TestExpr":return An(e,t,r);case"Literal":return r.value;default:hr(r)}}function ZB(e){return dt(e)?e.length===1?e[0]:Lr:e}function li(e,t,r){if(!e3(e.functions,r.name))return!1;let n=e.functions[r.name];if(n.definition.parameters.length!==r.arguments.length)return!1;let o=[];for(let i=0;i<r.arguments.length;i++){let s=Dm(e,t,r.arguments[i]),a=n.definition.parameters[i];switch(a){case"ValueType":if(!dt(s)&&!XS(s))return!1;o.push(ZB(s));break;case"NodesType":if(!dt(s))return!1;o.push(s);break;case"LogicalType":if(typeof s=="boolean")o.push(s);else if(dt(s))o.push(s.length>0);else return!1;break;default:Xp(a,"Unknown function argument type")}}return n.declaration(e,...o)}function e3(e,t){return Object.hasOwn(e,t)}function nl(e,t,r){switch(r.type){case"Literal":return r.value;case"RelSingularQuery":case"AbsSingularQuery":{let n=r.type==="RelSingularQuery"?t.value:t.root;if(r.segments.length===0)return n;let o=Jp();return Po(e,t.root,n,r,i=>{o.push(i)}),o}case"FunctionExpr":return li(e,t,r);default:hr(r)}}function Va(e,t,r){let n=nl(e,t,r.left),o=nl(e,t,r.right);return qm(n,o,r.op)}function ol(e,t,r){if(r.value.type==="ComparisonExpr"){if(!Va(e,t,r.value))return}else if(!An(e,t,r.value))return;e.stack.push({root:t.root,path:t.path,value:t.value,index:t.index+1})}function t3(e,t){return e<0?t+e:e}function Ba(e,t,r){let n=t3(r.value,t.value.length);n>=0&&n<t.value.length&&e.stack.push({root:t.root,path:Rt(t.path,n),value:t.value[n],index:t.index+1})}function Ha(e,{root:t,path:r,value:n,index:o},i){Object.hasOwn(n,i.value)&&e.stack.push({root:t,path:Rt(r,i.value),value:n[i.value],index:o+1})}function il(e,t){return e>=0?e:t+e}function r3(e,t,r,n){let o=il(e,n),i=il(t,n);if(r>=0){let c=Math.min(Math.max(o,0),n),l=Math.min(Math.max(i,0),n);return[c,l]}let s=Math.min(Math.max(o,-1),n-1);return[Math.min(Math.max(i,-1),n-1),s]}function Mm(e,{root:t,path:r,value:n,index:o},i){let s=i.step??1,a=s>=0?0:n.length-1,c=s>=0?n.length:-n.length-1,l=i.start===null?a:il(i.start,n.length),p=i.end===null?c:il(i.end,n.length),[u,f]=r3(l,p,s,n.length);if(s>0){let h=u;for(;h<f;)e.stack.push({root:t,path:Rt(r,h),value:n[h],index:o+1}),h+=s}else if(s<0){let h=f;for(;u<h;)e.stack.push({root:t,path:Rt(r,h),value:n[h],index:o+1}),h+=s}}function Ka(e,{root:t,path:r,value:n,index:o}){if(Array.isArray(n))for(let i=0;i<n.length;i++)e.stack.push({root:t,path:Rt(r,i),value:n[i],index:o+1});else if(Zn(n))for(let i of Object.keys(n))e.stack.push({root:t,path:Rt(r,i),value:n[i],index:o+1})}function Lm(e,t,r){for(let n of r.selectors)switch(n.type){case"NameSelector":gs(t)&&Ha(e,t,n);break;case"SliceSelector":ys(t)&&Mm(e,t,n);break;case"IndexSelector":{ys(t)&&Ba(e,t,n);break}case"WildcardSelector":Ka(e,t);break;case"FilterSelector":{ys(t)?n3(e,t,n):gs(t)&&o3(e,t,n);break}default:hr(n)}}function n3(e,{root:t,path:r,value:n,index:o},i){for(let s=0;s<n.length;s++)ol(e,{root:t,path:Rt(r,s),value:n[s],index:o},i)}function o3(e,{root:t,path:r,value:n,index:o},i){for(let s of Object.keys(n))ol(e,{root:t,path:Rt(r,s),value:n[s],index:o},i)}function Fm(e,{root:t,path:r,value:n,index:o},i){Object.hasOwn(n,i.value)&&e.stack.push({root:t,path:Rt(r,i.value),value:n[i.value],index:o+1})}function cw(e,t,r){switch(r.type){case"BracketedSelection":return Lm(e,t,r);case"WildcardSelector":return Ka(e,t);case"MemberNameShorthand":gs(t)&&Fm(e,t,r);break;case"NameSelector":gs(t)&&Ha(e,t,r);break;case"IndexSelector":ys(t)&&Ba(e,t,r);break;default:hr(r)}}function Po(e,t,r,n,o){let i=new hs;i.push({root:t,path:iw(e.capturePaths),value:r,index:0});let s={cache:e.cache,capturePaths:!1,functions:e.functions,regexp:e.regexp,stack:i};for(;i.size>0;){let a=i.pop();if(a.index===n.segments.length){o(a.value,a.path);continue}let{path:c,value:l,index:p}=a,u=n.segments[p];if(cw(s,a,u.node),u.type==="DescendantSegment"){if(Array.isArray(l))for(let f=0;f<l.length;f++)i.push({root:t,path:Rt(c,f),value:l[f],index:p});else if(l!==null&&typeof l=="object")for(let f of Object.keys(l))i.push({root:t,path:Rt(c,f),value:l[f],index:p})}}}function sl(e,t,r,n){let o={cache:new Map,capturePaths:r.capturePaths,functions:{count:ZS,search:nw,value:ow,match:rw,length:ew},regexp:"i-regexp",stack:new hs};Po(o,e,e,Qp(t),n)}var i3={capturePaths:!0};function pue(e,t){let r=[];return sl(e,t,{capturePaths:!1},n=>{r.push(n)}),r}function pw(e,t){let r=[];return sl(e,t,i3,(n,o)=>{r.push(sw(o))}),r}import*as pl from"node:path";import{pathToFileURL as s3}from"node:url";function Ga(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}var lw="#/components/actions/";function uw(e,t,r){let n=Er(Ta),o={problems:[],specVersion:"overlay1",visitorsData:{}},i=new Set,{$self:s,components:a}=t.parsed,c=typeof s=="string"?r.resolveExternalRef(t.source.absoluteRef,s):t.source.absoluteRef,l=(u,f,h)=>{let m=S=>{let P=u[S];if(typeof P!="string"){h({message:`The \`${S}\` field must be a JSONPath expression.`,location:f.child([S])});return}try{return a3(e.parsed,P)}catch($){h({message:`Invalid JSONPath expression: ${$.message}`,location:f.child([S])});return}},y=m("target");if(!y)return;if(u.remove===!0){if(y.some(({keys:S})=>S.length===0)){h({message:"Cannot remove the root of the document.",location:f.child(["target"])});return}p3(e.parsed,y,i);return}if(u.update!==void 0&&u.copy!==void 0){h({message:"An action can't have both `update` and `copy`.",location:f});return}let b,x;if(u.copy===void 0)b=structuredClone(u.update),x="update",Um(b,S=>{let P=r.resolveExternalRef(c,S),$=e.source.absoluteRef;if(le(P))return P;if(le($)){let O=s3(P).href;return r.overlayFiles.add(O),O}return Ga(pl.relative(pl.dirname($),P))});else{let S=m("copy");if(!S)return;if(S.length!==1){h({message:`The copy expression must select exactly one node, but it selected ${S.length}.`,location:f.child(["copy"])});return}b=zm(e.parsed,S[0].keys),x="copy"}if(b===void 0)return;if(new Set(y.map(({keys:S})=>{let P=zm(e.parsed,S);return Array.isArray(P)?"array":A(P)?"object":"primitive"})).size>1){h({message:"The target must select only objects, only arrays, or only primitive values.",location:f.child(["target"])});return}for(let S of y){let P=c3(e.parsed,S,b,i);if(P){h({message:P,location:f.child([x])});return}}},p={Root({actions:u},{report:f,location:h}){if(!Array.isArray(u)){f({message:"The overlay must have a list of `actions`.",location:h.child(["actions"])});return}u.forEach((m,y)=>{let b=h.child(["actions",y]);if(!A(m)){f({message:"An action must be an object.",location:b});return}if(!B(m)){l(m,b,f);return}let{$ref:x,target:w,description:S,...P}=m,$=Object.keys(P).find(C=>!C.startsWith("x-"));if($){f({message:`Property \`${$}\` is not expected here because it is defined alongside \`$ref\`.`,location:b.child([$]).key()});return}let O=x.startsWith(lw)?ot(a?.actions??{},Tp(x.slice(lw.length))):void 0;if(!O){f({message:`Can't find the reusable action \`${x}\`.`,location:b.child(["$ref"])});return}l({...O.fields,target:w},b,f)})}};return yt({document:t,rootType:n.Root,normalizedVisitors:ht([{severity:"error",ruleId:"overlay",visitor:p}],n),resolvedRefMap:new Map,ctx:o}),o.problems}function Um(e,t){if(Array.isArray(e))for(let r of e)Um(r,t);else if(A(e))for(let[r,n]of Object.entries(e))if(r==="$ref"&&typeof n=="string"){let[o,...i]=n.split("#");o!==""&&(e.$ref=[t(o),...i].join("#"))}else Um(n,t)}function a3(e,t){return[...new Set(pw(e,t))].map(r=>({jsonPath:r,keys:Qp(r).segments.flatMap(({node:n})=>n.type==="BracketedSelection"?n.selectors.flatMap(o=>o.type==="NameSelector"||o.type==="IndexSelector"?[o.value]:[]):[])}))}function c3(e,{jsonPath:t,keys:r},n,o){let i=zm(e,r);if(cl(i)){if(!cl(n))return Vm(n,i,t);al(e,r.slice(0,-1),o)[r[r.length-1]]=n;return}let s=al(e,r,o);if(Array.isArray(s)){s.push(...Array.isArray(n)?structuredClone(n):[structuredClone(n)]);return}return A(n)?dw(s,n,t,o):Vm(n,s,t)}function dw(e,t,r,n){for(let[o,i]of Object.entries(t)){let s=e[o];if(!Object.hasOwn(e,o))e[o]=structuredClone(i);else if(A(s)&&A(i)){let a=dw(al(e,[o],n),i,`${r}['${o}']`,n);if(a)return a}else if(Array.isArray(s)&&Array.isArray(i))e[o]=[...s,...structuredClone(i)];else if(cl(s)&&cl(i))e[o]=i;else return Vm(i,s,`${r}['${o}']`)}}function p3(e,t,r){let n=t.map(({keys:i})=>({parent:al(e,i.slice(0,-1),r),key:i[i.length-1]})),o=i=>typeof i=="number"?i:-1;n.sort((i,s)=>o(s.key)-o(i.key));for(let{parent:i,key:s}of n)Array.isArray(i)?i.splice(s,1):delete i[s]}function zm(e,t){return t.reduce((r,n)=>r[n],e)}function al(e,t,r){let n=e;for(let o of t){if(!r.has(n[o])){let i=Object.assign(Array.isArray(n[o])?[]:{},n[o]);r.add(i),n[o]=i}n=n[o]}return n}function cl(e){return!A(e)&&!Array.isArray(e)}function Vm(e,t,r){let n=o=>o===null?"null":Array.isArray(o)?"array":typeof o;return`Cannot apply ${n(e)} to ${n(t)} at ${r}.`}var Et=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},ref:{leave(t,{report:r,location:n},o){o.node===void 0&&vs(o,r,n)}},DiscriminatorMapping(t,{report:r,location:n}){for(let o of Object.keys(t)){let i=t[o];jr(i)||e.includes(i)||r({message:`Discriminator mapping value '${i}' does not point to an existing schema component.`,location:n.child(o),reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}}}};function vs(e,t,r){let n=e.error;n instanceof $n&&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"})}function fw(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function ll(e){let t=A(e)&&nt(e.title)?e.title.trim():"",r=fw(t).replace(new RegExp(`[^${Cp}]`,"g"),"-");return{title:t,name:r}}function At(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--&&At(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)||!At(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function ui(e){return e.chain?.[0]??{node:e.node,location:e.location}}function Bm(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 mw({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,l=new Map,p=Bm("Schema",e),u={ref:{leave(w,S,P){if(!P.location||P.node===void 0){vs(P,S.report,S.location);return}let $=ui(P);if($.location.source===r.source&&$.location.source===S.location.source&&S.type.name!=="scalar"&&!t){xo(w.$ref).uri!==null&&w.$ref!==$.location.pointer&&(w.$ref=$.location.pointer);return}if(o&&le(w.$ref)&&!So(w.$ref))return;let O=Bm(S.type.name,e);O?t?(h(O,$,S),Ea(w,$,S)):(w.$ref=h(O,$,S),f(w,P,S)):Ea(w,$,S)}},Example:{leave(w,S){if(Op(w)&&w.value===void 0){let P=S.resolve({$ref:w.externalValue});if(!P.location||P.node===void 0){vs(P,S.report,S.location);return}if(o&&le(w.externalValue))return;w.value=S.resolve({$ref:w.externalValue}).node,delete w.externalValue}}},Root:{enter(w,S){c=S.location,e==="oas3"?a=w.components=w.components||{}:e==="oas2"?a=w:e==="async2"?a=w.components=w.components||{}:e==="async3"?a=w.components=w.components||{}:e==="arazzo1"?a=w.components=w.components||{}:e==="openrpc1"&&(a=w.components=w.components||{})}}};e==="oas3"&&(u.Discriminator={leave(w,S){if(typeof w.defaultMapping!="string"||!jr(w.defaultMapping))return;let P=S.resolve({$ref:w.defaultMapping});if(!P.location||P.node===void 0){vs(P,S.report,S.location.child("defaultMapping"));return}w.defaultMapping=h(p,ui(P),S)},DiscriminatorMapping:{leave(w,S){for(let P of Object.keys(w)){let $=w[P];if(!jr($))continue;let O=S.resolve({$ref:$});if(!O.location||O.node===void 0){vs(O,S.report,S.location.child(P));return}w[P]=h(p,ui(O),S)}}}});function f(w,S,P){let $={resolved:!0,isRemote:!1,node:S.node,chain:S.chain,document:r,nodePointer:w.$ref};n.set(Jn(P.location.source.absoluteRef,w.$ref),$),n.set(Jn(r.source.absoluteRef,w.$ref),$)}function h(w,S,P){a[w]=a[w]||{};let $=x(S,w,P);return a[w][$]=S.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${w}/${$}`:`#/${w}/${$}`}function m(w,S,P){if(B(w)){let $=P.resolve(w,c.absolutePointer);if(($.location&&ui($).location)?.absolutePointer===S.location.absolutePointer)return!0}return At(w,S.node)}function y(w,S,P){let{title:$,name:O}=ll(w.node),C=w.location.child("title");return $===""?{key:O,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:w.location,forceSeverity:"error"}}:S[O]&&!m(S[O],w,P)?{key:O,problem:{message:`Title "${$}" maps to component name \`${O}\`, already used by another schema. Rename one of the titles.`,location:C,from:l.get(O),forceSeverity:i}}:{key:O}}function b(w,S,P){let $=lx(w.location.pointer)||ux(w.location.source.absoluteRef),O=$;for(let C=2;S[O]&&!m(S[O],w,P);C++)O=`${$}-${C}`;return{name:O,prevName:$}}function x(w,S,P){let $=a[S];if(s==="title"&&S===p){let{key:I,problem:k}=y(w,$,P);if(!k)return l.set(I,w.location.child("title")),I;let{name:T}=b(w,$,P);return $[T]||(P.report(k),l.set(T,w.location)),T}let{name:O,prevName:C}=b(w,$,P);return!$[O]&&C!==O&&P.report({message:`Two schemas are referenced with the same name but different content. Renamed ${C} to ${O}.`,location:P.location,forceSeverity:i}),O}return u}var l3=["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]=xo(o).pointer;if(!(!i||!s)&&l3.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(f=>f!==a&&!i.has(f))&&p&&(i.add(a),delete o[p][l],e.delete(a),Pr(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})}}}};function hw(e,t){return t in e}function yw(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=xo(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(f=>f!==s&&!o.has(f))||p)&&l&&n.components&&hw(n.components,l)){o.add(s);let f=n.components[l];delete f[c],e.delete(s),Pr(f)&&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=yw(n.$ref);if(!a)return;let c=yw(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),Pr(n.components)&&delete n.components}},NamedSchemas:{Schema(n,o){let i=n.allOf?.some(s=>B(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})}}}};async function Hm(e){let{document:t,config:r,types:n,externalRefResolver:o,dereference:i=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:l="basename",overlays:p=[]}=e,u=Mr(t.parsed),f=Xn(u),h=r.getRulesForSpecVersion(f),m=Er(r.extendTypes(n,u),r),y=bo(h,r,"preprocessors",u),b=bo(h,r,"decorators",u),x={problems:[],specVersion:u,config:r,refTypes:new Map,visitorsData:{}},w=await Gt({rootDocument:t,rootType:m.Root,externalRefResolver:o});y.length>0&&(yt({document:t,rootType:m.Root,normalizedVisitors:ht(y,m),resolvedRefMap:w,ctx:x}),w=await Gt({rootDocument:t,rootType:m.Root,externalRefResolver:o}));let S=($,O)=>({severity:"error",ruleId:"bundler",visitor:mw({version:f,dereference:O,rootDocument:t,resolvedRefMap:$,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:l})}),P=b.filter($=>$.ruleId!=="remove-unused-components");if(yt({document:t,rootType:m.Root,normalizedVisitors:ht(p.length>0?[S(w,!1)]:[S(w,i),...P],m),resolvedRefMap:w,ctx:x}),p.length>0){for(let I of p){let k=await o.resolveDocument(null,I,!0).catch(se=>{throw new $o(`Failed to load overlay at ${I}: ${se.message}`)});if(k instanceof Error)throw k;let T=A(k.parsed)?k.parsed.overlay:void 0;if(typeof T!="string"||!Yp.test(T))throw new $o(`${I} is not an Overlay 1.0, 1.1, or 1.2 document.`);x.problems.push(...uw(t,k,o))}let $=await Gt({rootDocument:t,rootType:m.Root,externalRefResolver:o}),O={...x,problems:[]};yt({document:t,rootType:m.Root,normalizedVisitors:ht([S($,i),...P],m),resolvedRefMap:$,ctx:O});let C=new Set(x.problems.map(({ruleId:I,message:k})=>`${I}:${k}`));x.problems.push(...O.problems.filter(({ruleId:I,message:k})=>!C.has(`${I}:${k}`)))}if(s||r.getDecoratorSettings("remove-unused-components",u).severity!=="off"){let $=await Gt({rootDocument:t,rootType:m.Root,externalRefResolver:o}),O=ht([{severity:"error",ruleId:"remove-unused-components",visitor:f==="oas2"?ul({}):dl({})}],m);yt({document:t,rootType:m.Root,normalizedVisitors:O,resolvedRefMap:$,ctx:x})}return{bundle:t,problems:x.problems.map($=>r.addProblemToIgnore($)),fileDependencies:o.getFiles(),rootType:m.Root,refTypes:x.refTypes,visitorsData:x.visitorsData}}var bs="redocly.yaml",gw={extends:["recommended","diff-recommended"]},Wa=".redocly.lint-ignore.yaml",vw=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
121
+ # See https://redocly.com/docs/cli/ for more information.
122
+ `,fl="configBundler",ml="pluginsCollector",bw=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];var Mw={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Ya={type:"object",properties:Mw,additionalProperties:!1},u3={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Sl={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:{...Mw,like:Ya,dislike:Ya,satisfied:Ya,neutral:Ya,dissatisfied:Ya},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:u3},additionalProperties:!1}},additionalProperties:!1},d3={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},Ym={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},xw={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Sl,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Ym,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:d3,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},ke={type:"string",uiHint:"color"},Fr={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 f3={rules:Fr,oas2Rules:Fr,oas3_0Rules:Fr,oas3_1Rules:Fr,oas3_2Rules:Fr,async2Rules:Fr,async3Rules:Fr,arazzo1Rules:Fr,arazzo1_1Rules:Fr,overlay1Rules:Fr,openrpc1Rules:Fr,graphqlRules:Fr};var sn={nodeTypeName:void 0,type:"object",additionalProperties:!0},m3={preprocessors:sn,oas2Preprocessors:sn,oas3_0Preprocessors:sn,oas3_1Preprocessors:sn,oas3_2Preprocessors:sn,async2Preprocessors:sn,async3Preprocessors:sn,arazzo1Preprocessors:sn,arazzo1_1Preprocessors:sn,overlay1Preprocessors:sn,openrpc1Preprocessors:sn},an={nodeTypeName:void 0,type:"object",additionalProperties:!0};var h3={decorators:an,oas2Decorators:an,oas3_0Decorators:an,oas3_1Decorators:an,oas3_2Decorators:an,async2Decorators:an,async3Decorators:an,arazzo1Decorators:an,arazzo1_1Decorators:an,overlay1Decorators:an,openrpc1Decorators:an},y3={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"},wl={...f3,...h3,...m3,extends:y3},Qa={nodeTypeName:void 0,type:"object",additionalProperties:{type:"string",enum:["off","patch","minor","major"]},description:"The diff configuration blocks set the semver impact of each diff rule: `off`, `patch`, `minor`, or `major`.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/diff"},g3={diff:Qa,oas3_0Diff:Qa,oas3_1Diff:Qa,oas3_2Diff:Qa,async3Diff:Qa},v3={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"]},b3={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"}}},Sw={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},x3={type:"object",properties:{beforeInfo:{type:"array",items:Sw},end:{type:"array",items:Sw}}},di={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},hl={type:"object",properties:{backgroundColor:ke,borderColor:ke,color:ke,tabTextColor:ke}},S3={type:"object",properties:_l(di.properties,["light","dark"])},w3={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"}}},_3={type:"object",properties:{error:hl,info:hl,redirect:hl,success:hl}},$3={type:"object",properties:Ss(di.properties,["dark"])},P3={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},E3={type:"object",properties:{accent:di,border:S3,error:di,http:w3,primary:di,responses:_3,secondary:$3,success:di,text:P3,tonalOffset:{type:"number"},warning:di}},yl={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},A3={type:"object",properties:{small:yl,medium:yl,large:yl,xlarge:yl}},On={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},O3={type:"object",properties:{...Ss(On.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:A3}},ww={type:"object",properties:_l(On.properties,["fontSize","lineHeight"])},T3={type:"object",properties:{medium:ww,small:ww}},R3={type:"object",properties:{...Ss(On.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:ke,sizes:T3}},k3={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},I3={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:ke}},_w={type:"object",properties:{fullWidth:{type:"boolean"}}},C3={type:"object",properties:{buttons:O3,httpBadges:R3,layoutControls:k3,panels:I3,tryItButton:_w,tryItSendButton:_w}},bl={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},N3={type:"object",properties:{maxWidth:bl}},q3={type:"object",properties:{maxWidth:bl,middlePanelMaxWidth:bl}},j3={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:N3,"three-panel":q3}},$w={type:"object",properties:{backgroundColor:ke,border:{type:"string"}}},D3={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:ke,caretSize:{type:"string"},constraints:$w,defaultDetailsWidth:{type:"string"},examples:$w,labelsTextSize:{type:"string"},linesColor:ke,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:ke,typeNameColor:ke,typeTitleColor:ke}},Lw={type:"object",properties:{subItemsColor:ke,textTransform:{type:"string"},fontWeight:{type:"string"}}},M3={type:"object",properties:_l(Lw.properties,["textTransform"])},L3={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},F3={type:"object",properties:{...Ss(On.properties,["fontWeight","lineHeight"]),activeBgColor:ke,activeTextColor:ke,backgroundColor:ke,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:ke,caretSize:{type:"string"},groupItems:Lw,level1items:M3,rightLineColor:ke,separatorLabelColor:ke,showAtBreakpoint:{type:"string"},spacing:L3,textColor:ke,width:{type:"string"}}},gl={type:"object",properties:{...On.properties,color:ke,transform:{type:"string"}}},U3={type:"object",properties:{...On.properties,backgroundColor:ke,color:ke,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},z3={type:"object",properties:Ss(On.properties,["fontSize"])},V3={type:"object",properties:{color:ke,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},B3={type:"object",properties:{code:U3,fieldName:On,..._l(On.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:gl,heading2:gl,heading3:gl,headings:z3,lineHeight:{type:"string"},links:V3,optimizeSpeed:{type:"boolean"},rightPanelHeading:gl,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},H3={type:"object",properties:{color:ke,...Ss(On.properties,["fontWeight"])}},K3={type:"object",properties:{backgroundColor:ke,borderRadius:{type:"string"},tokens:H3}},G3={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},W3={type:"object",properties:{backgroundColor:ke,color:ke}},Pw={type:"object",properties:{custom:{type:"string"}}},Y3={type:"object",properties:{DownloadButton:Pw,NextSectionButton:Pw}},Q3={type:"object",properties:{backgroundColor:ke,panelBackgroundColor:ke,panelControlsBackgroundColor:ke,showAtBreakpoint:{type:"string"},textColor:ke,width:{type:"string"}}},J3={type:"object",properties:{borderRadius:{type:"string"}}},X3={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Z3={type:"object",properties:{breakpoints:bl,codeBlock:K3,colors:E3,components:C3,layout:j3,logo:G3,fab:W3,overrides:Y3,rightPanel:Q3,schema:D3,shape:J3,sidebar:F3,spacing:X3,typography:B3,links:{type:"object",properties:{color:ke}},codeSample:{type:"object",properties:{backgroundColor:ke}}}},eH={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:v3}},required:["languages"]},tH={type:"object",properties:{theme:Z3,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:eH,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:b3,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:x3,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 _l(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function Ss(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Fw=e=>e,jt=Fw({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),kt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Ew={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"},consent:{type:"string",enum:["analytics","marketing"]}},required:["src"],additionalProperties:!0},Km={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},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}}},Qm={type:"array",items:{...Km,properties:{...Km.properties,items:{type:"array",items:Km}}}},rH={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},nH={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},oH={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}},iH={type:"object",properties:{facets:oH,...kt.properties},additionalProperties:!1},sH={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},aH={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},cH={type:"object",properties:{items:Qm,...kt.properties},additionalProperties:!1},pH={type:"object",additionalProperties:rH},lH={type:"object",properties:{items:Qm,copyrightText:{type:"string",uiHint:"textarea"},logo:kt,...kt.properties},additionalProperties:!1},uH={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...kt.properties},additionalProperties:!1},dH={type:"object",properties:{head:{type:"array",items:Ew},body:{type:"array",items:Ew}},additionalProperties:!1},fH={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}},mH={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:nH,filters:iH,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:sH},...kt.properties},additionalProperties:!1},hH={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string",uiHint:"textarea"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},yH={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...kt.properties},additionalProperties:!1},gH={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},vH={type:"object",properties:{...kt.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","grok","docs-mcp-claude","docs-mcp-vscode","docs-mcp-cursor","copy-mcp-url"]}}},additionalProperties:!1},bH={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...kt.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...kt.properties},additionalProperties:!1},actions:vH},additionalProperties:!1},xH={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...kt.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...kt.properties},additionalProperties:!1},expand:{type:"object",properties:{...kt.properties},additionalProperties:!1},collapse:{type:"object",properties:{...kt.properties},additionalProperties:!1}},additionalProperties:!1},SH={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"},...kt.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...kt.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...kt.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},wH={...xw,properties:{...xw.properties,...tH.properties}},_H={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},$H={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"]},PH={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},EH={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},AH={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"]},OH={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},TH={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"]},Uw={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"]},RH={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:Uw}},additionalProperties:!1,required:["trackingId"]},kH={type:"object",properties:{adobe:_H,amplitude:$H,fullstory:PH,heap:EH,rudderstack:AH,segment:OH,gtm:TH,ga:RH}},IH={type:"object",properties:{mode:{type:"string",enum:["auto","opt-in","opt-out","none","onetrust","cookiebot","trustarc","tcf"]},privacyPolicyUrl:{type:"string"},expires:{type:"number"},settingsLink:{type:"string",enum:["auto","footer","none"]}},additionalProperties:!1},CH={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"},...kt.properties},additionalProperties:!1},NH={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},qH={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},jH={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"}}}},DH={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:jH},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Qm,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Aw={type:"object",patternProperties:{".*":DH}},Ow={nodeTypeName:jt.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:jt.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:jt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:jt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...wl},additionalProperties:!1}},targets:{nodeTypeName:jt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:jt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:jt.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:jt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}};var MH=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(MH||{}),LH=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(LH||{});var FH=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(FH||{});var zw="^[a-z0-9]+(?:-[a-z0-9]+)*$",ude=new RegExp(zw);var UH=63,dde=`Unique ID cannot exceed ${UH} characters`,Vw="redocly",Bw=[Vw,"corporate","guest"],fde=`Unique ID cannot be a reserved word (${Bw.join(", ")})`,Tw=["REDOCLY","CORPORATE","GUEST"],zH={type:"object",properties:{downloadUrls:Ym,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:Sl,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},VH={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},BH={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},HH={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},to={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:BH},excludes:{type:"array",items:VH},filters:{type:"array",items:HH},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},KH={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},GH={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:KH},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},WH={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:GH,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},YH={type:"object",additionalProperties:WH},QH={type:"object",properties:{show:{type:"boolean"},entityTypes:YH,catalogs:{type:"object",properties:{all:to,services:to,domains:to,teams:to,users:to,apiDescriptions:to,dataSchemas:to,apiOperations:to},additionalProperties:to}},additionalProperties:!1},xs={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},JH={type:"object",properties:{name:{type:"string"},items:xs,queries:xs,mutations:xs,subscriptions:xs,types:xs,directives:xs},required:["name"],additionalProperties:!1},XH={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:JH},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},ZH={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},e9={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},t9={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:ZH,license:e9},additionalProperties:!1},r9={type:"object",properties:{url:{type:"string",format:"uri",pattern:"^https?://"},description:{type:"string"}},required:["url"],additionalProperties:!1},n9={type:"object",properties:{menu:{type:"object",properties:{...XH.properties},additionalProperties:!1},downloadUrls:Ym,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:ke}},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:Sl,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:t9,hideReplay:{type:"boolean"},servers:{type:"array",items:r9},corsProxyUrl:{type:"string"}},additionalProperties:!1},Rw={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Jm={type:"string",enum:["and","or"]},Gm={type:"object",properties:{field:{type:"string"},operator:Rw,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Rw,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},o9={type:"object",properties:{operator:Jm,conditions:{type:"array",items:Gm}},required:["operator","conditions"],additionalProperties:!1},kw={type:"array",items:{oneOf:[Gm,{type:"object",properties:{operator:Jm,conditions:{type:"array",items:{oneOf:[Gm,o9]}}},required:["operator","conditions"],additionalProperties:!1}]}},Hw={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},i9={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:Hw},required:["subject","assertions"],additionalProperties:!1}},s9={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:Hw,where:i9,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},a9={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},s9]}},c9={type:"object",properties:{name:{type:"string"},extends:wl.extends,rules:a9},required:["name"],additionalProperties:!1},Iw={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},p9={oneOf:[Iw,{type:"array",items:Iw}]},l9={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[kw,{type:"object",properties:{operator:Jm,conditions:kw},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:c9,minItems:1},trigger:p9},required:["name","key","entities","levels"],additionalProperties:!1},u9={type:"array",items:l9},qt={logo:aH,navbar:cH,products:pH,footer:lH,sidebar:uH,scripts:dH,links:fH,feedback:Sl,search:mH,aiAssistant:hH,colorMode:yH,palette:gH,navigation:bH,codeSnippet:xH,markdown:SH,openapi:wH,graphql:n9,asyncapi:zH,analytics:kH,consent:IH,userMenu:CH,versionPicker:NH,breadcrumbs:qH,catalog:Aw,entitiesCatalog:QH,catalogClassic:Aw,scorecard:Ow,scorecardClassic:Ow,scorecards:u9},d9={type:"object",properties:{imports:{type:"array",items:{type:"string"}},...qt},additionalProperties:!0},f9={type:"object",additionalProperties:{type:"string"}},m9={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},vl={type:"string",enum:["error","warn","off"]},h9={type:"object",additionalProperties:!1,properties:{schemaCheck:vl,statusCodeCheck:vl,contentTypeCheck:vl,successCriteriaCheck:vl}},y9={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},g9={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},v9={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},b9={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},x9={type:"object",properties:{provider:{type:"string",minLength:1},repository:{type:"string",minLength:1},branch:{type:"string",minLength:1},path:{type:"string"}},required:["provider","repository"],additionalProperties:!1},S9={oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:x9}]},Xm={rules:{type:"string"},sourceRepositories:S9},w9={type:"object",properties:{event:{type:"string",enum:["feedback"]}},required:["event"],additionalProperties:!1},Kw={type:"object",properties:{event:{type:"string",enum:["schedule"]},cron:{type:"string",pattern:"^[0-5]?\\d\\s+\\S+\\s+\\S+\\s+\\S+\\s+\\S+$"}},required:["event","cron"],additionalProperties:!1},_9={type:"object",properties:{name:{type:"string",enum:["feedback"]},enabled:{type:"boolean"},trigger:{oneOf:[w9,Kw]},...Xm},required:["name"],additionalProperties:!1},$9={type:"object",properties:{name:{type:"string",enum:["discovery"]},enabled:{type:"boolean"},trigger:Kw,...Xm},required:["name"],additionalProperties:!1},P9={type:"object",properties:{name:{type:"string",enum:["supportConversations","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},E9={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},...Xm,specialists:{type:"array",items:{type:"object",properties:{name:{type:"string",enum:["config","apiDescription","owasp","docs"]},enabled:{type:"boolean"}},required:["name","enabled"],additionalProperties:!1}}},required:["name"],additionalProperties:!1},A9={type:"object",properties:{enabled:{type:"boolean"},defaultReviewers:{type:"array",items:{type:"string",minLength:1}},rules:{type:"object",properties:{custom:{type:"string"},style:{type:"string"}},additionalProperties:!1},duties:{type:"array",items:{oneOf:[_9,$9,P9,E9]}},mcpServers:b9},additionalProperties:!1},O9={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:[y9,g9]},inputs:f9,servers:m9,severity:h9,slo:v9},required:["path","trigger","agent"],additionalProperties:!1}},agent:A9},additionalProperties:!1},Gw={type:"string",enum:["off","info","warn","error"]},Ja={type:"array",items:{type:"string"}},T9={type:"object",properties:{severity:Gw,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Ja,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Ja,excludes:Ja,exceptions:{type:"object",properties:{files:Ja,lines:Ja},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},R9={oneOf:[Gw,T9]},Cw={type:"object",additionalProperties:R9},k9={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},I9={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:k9}},additionalProperties:!1},C9={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:I9},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},N9={oneOf:[{type:"boolean"},C9]},q9={type:"object",properties:{rules:Cw,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:N9,apiDescriptions:{type:"object",properties:{rules:Cw},additionalProperties:!1}},additionalProperties:!1},Nw=["GET","HEAD","OPTIONS","POST","PUT","PATCH","DELETE","QUERY","TRACE"],j9={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},D9={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:j9,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},M9={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"]},L9={oneOf:[D9,M9],discriminator:{propertyName:"type"}},F9={type:"object",additionalProperties:L9},Ww={oneOf:[{type:"array",items:{type:"string",enum:Tw},uniqueItems:!0},{type:"string",enum:Tw}]},qw={type:"string",pattern:zw,not:{enum:Bw.filter(e=>e!==Vw)}},Yw={oneOf:[{type:"array",items:qw,uniqueItems:!0},qw]},Qw={type:"boolean"},Jw={type:"string",pattern:"^https?://.*"},Xw={type:"string",pattern:"^https?://.*"},U9={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:jt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},z9={type:"object",additionalProperties:U9,nodeTypeName:jt.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"},V9={type:"string",enum:["info","success","warning","error"]},Be={type:"object",uiHint:"list",additionalProperties:{type:"string"}},B9={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:V9,rbac:Be,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},H9={type:"array",items:B9},Zw={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:Be,openapi:qt.openapi,graphql:qt.graphql,asyncapi:qt.asyncapi,theme:{type:"object",properties:{openapi:qt.openapi,graphql:qt.graphql},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...wl},required:["root"]},K9={type:"object",additionalProperties:!0},G9={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},W9={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string",uiHint:"textarea"},details:{type:"object",properties:{path:{type:"string",uiHint:"file"},content:{type:"string",uiHint:"textarea"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string",uiHint:"file"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string",uiHint:"file"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},Y9={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},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:W9},additionalProperties:!1},Q9={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},J9={type:"object",properties:{catalogs:{type:"object",properties:{all:Be,services:Be,domains:Be,teams:Be,users:Be,apiDescriptions:Be,dataSchemas:Be,apiOperations:Be},additionalProperties:Be},entitiesTypes:{type:"object",properties:{service:Be,domain:Be,team:Be,user:Be,apiDescription:Be,apiOperation:Be,dataSchema:Be},additionalProperties:Be},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Be},additionalProperties:!1}},entities:{type:"object",properties:{"**":Be},additionalProperties:Be}},additionalProperties:!1},e_={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Be,cms:Be,reunite:Be,features:{type:"object",properties:{aiSearch:Be,mcp:Be},additionalProperties:!1},content:{type:"object",properties:{"**":Be},additionalProperties:Be},entitiesCatalog:J9},additionalProperties:Be},X9={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Z9={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},eK={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[X9,Z9]}},additionalProperties:!1,required:["type","apiBaseUrl"]},tK={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},rK={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Wm={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:[tK,rK],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},nK={...Wm,properties:{...Wm.properties,type:{type:"string",const:"APIGEE_EDGE"}}},oK={type:"object",oneOf:[Wm,nK,eK],discriminator:{propertyName:"type"}},iK={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:oK}}},jw={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"},showMissingTranslationNotice:{type:"boolean"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},sK={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},aK={type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1},apiCalls:{type:"object",properties:{hide:{type:"boolean"},allowedHttpMethods:{type:"array",items:{type:"string",enum:Nw}},excludeFiles:{type:"array",items:{type:"string"}},excludeOperations:{type:"array",items:{type:"object",properties:{file:{type:"string"},method:{type:"string",enum:Nw},path:{type:"string"}},required:["file","path"],additionalProperties:!1}}},additionalProperties:!1}},additionalProperties:!1},cK={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},pK={type:"object",properties:{requiresLogin:Qw,logoutReturnUrl:Jw,residency:Xw,sso:Ww,idps:Yw,rbac:e_},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},xl={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:z9,seo:Y9,rbac:e_,apiFunctions:Q9,requiresLogin:Qw,responseHeaders:{type:"object",additionalProperties:{type:"array",items:sK}},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",uiHint:"list",additionalProperties:Zw},...wl,...g3,ssoDirect:F9,sso:Ww,idps:Yw,residency:Xw,logoutReturnUrl:Jw,access:pK,developerOnboarding:iK,removeAttribution:{type:"boolean"},i18n:jw,l10n:jw,metadata:K9,metadataGlobs:G9,ignore:{type:"array",items:{type:"string"}},theme:d9,reunite:O9,...qt,mcp:aK,skills:cK,recheck:q9,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:H9},not:{required:["sso","idps"]},additionalProperties:!0},lK={...xl,additionalProperties:!1},ws={$id:"root-redocly-config",...xl,properties:{plugins:{type:"array",items:{type:"string"}},...xl.properties,env:{type:"object",additionalProperties:lK}},additionalProperties:!1},Dw={type:"object",properties:{logo:qt.logo,navbar:qt.navbar,footer:qt.footer,sidebar:qt.sidebar,search:qt.search,codeSnippet:qt.codeSnippet,breadcrumbs:qt.breadcrumbs,openapi:qt.openapi,feedback:qt.feedback,palette:qt.palette,mockServer:xl.properties.mockServer,analytics:{type:"object",properties:{ga:Uw}}},additionalProperties:!0},mde={$id:"product-config-override",type:"object",properties:{...Dw.properties,apis:{type:"object",additionalProperties:Zw},theme:Dw},additionalProperties:!1},uK=["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"],gt=Fw({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"}),dK={type:"object",nodeTypeName:gt.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},fK={type:"object",nodeTypeName:gt.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},mK={type:"object",nodeTypeName:gt.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},hK={type:"object",nodeTypeName:gt.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},yK={type:"object",properties:{},nodeTypeName:gt.EntityMetadata,additionalProperties:!0},gK={type:"object",nodeTypeName:gt.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},vK={type:"object",nodeTypeName:gt.EntitySlackContact,properties:{channels:{type:"array",items:gK}},required:["channels"],additionalProperties:!1},bK={type:"object",nodeTypeName:gt.EntityContact,properties:{slack:vK},additionalProperties:!1},xK={type:"object",nodeTypeName:gt.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},SK={type:"object",nodeTypeName:gt.EntityRelation,properties:{type:{type:"string",enum:uK},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Eo={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:bK,links:{type:"array",nodeTypeName:gt.EntityLinkList,items:xK},relations:{type:"array",nodeTypeName:gt.EntityRelationList,items:SK},metadata:yK},hde={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Eo,type:{type:"string",const:"user"},metadata:dK},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:gt.UserEntity},{type:"object",nodeTypeName:gt.ApiOperationEntity,properties:{...Eo,type:{type:"string",const:"api-operation"},metadata:mK},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:gt.DataSchemaEntity,properties:{...Eo,type:{type:"string",const:"data-schema"},metadata:hK},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:gt.ApiDescriptionEntity,properties:{...Eo,type:{type:"string",const:"api-description"},metadata:fK},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:gt.ServiceEntity,properties:{...Eo,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:gt.DomainEntity,properties:{...Eo,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:gt.TeamEntity,properties:{...Eo,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},yde={type:"object",nodeTypeName:gt.Entity,properties:{...Eo},required:["key","title","type"],additionalProperties:!1},wK=/{{\s*process\.env\.([A-Z0-9_]+)\s*(?:\|\|?\s*(?:"([^"]*)"|'([^']*)')\s*)?}}/i,gde=new RegExp(wK.source,"gi");import F6 from"node:path";var t_=()=>({Channel(e,{report:t}){if(e.kind!=="modified"||e.property!=="address")return;let r=`\`address\` of channel \`${ae(e.node)}\``,{value:n}=e.base,{value:o}=e.revision;t(n===void 0?{message:`${r} was set to '${o}'.`}:o===void 0?{message:`${r} was removed.`}:{message:`${r} changed from '${n}' to '${o}'.`})}});function at(e){if(!e)return"";let t=$t(_n(e)).parent?.type.name;return t==="SchemaProperties"||t==="NamedSchemas"?` of \`${ae(e)}\``:""}function $l(e,t){let r=new Map,n=_n(e);for(let o of[n.base,n.revision]){let i=o?.children.find(s=>s.type.name==="SchemaProperties");for(let s of i?.children??[])r.set(String(s.key),s)}return[...r.keys()].filter(o=>ce(r.get(o),t)===!0)}function _s(e){return e.parent!==null&&wn(e.parent)==="Root"}var r_=()=>({Channel(e,{report:t}){e.kind==="removed"&&t({message:`Channel \`${ae(e.node)}\` was removed.`})},NamedChannels(e,{report:t}){e.kind==="removed"&&_s(e.node)&&t({message:"All channels were removed."})}});function cn(e,t){if(!Array.isArray(e))return[];let r=Array.isArray(t)?t:[];return e.filter(n=>!r.includes(n))}var n_=()=>({Schema(e,{report:t,getDirections:r}){if(e.kind!=="modified"||e.property!=="enum"||!r().includes("response"))return;let{value:n}=e.base,{value:o}=e.revision;if(n===void 0)return;if(o===void 0){t({message:`Enum${at(e.node)} was removed.`});return}let i=cn(o,n);if(!i.length)return;let s=i.map(a=>`'${a}'`).join(", ");t({message:`Enum${at(e.node)} gained values: ${s}.`})}});var o_=()=>({Schema(e,{report:t,getDirections:r}){if(e.kind!=="modified"||e.property!=="enum"||!r().includes("request"))return;let{value:n}=e.base,{value:o}=e.revision;if(o===void 0)return;if(n===void 0){let c=(Array.isArray(o)?o:[]).map(l=>`'${l}'`).join(", ");t({message:`Enum${at(e.node)} was set to ${c}.`});return}let i=cn(n,o);if(!i.length)return;let s=i.map(a=>`'${a}'`).join(", ");t({message:`Enum${at(e.node)} lost values: ${s}.`})}});var i_=()=>({MediaType(e,{report:t,getDirections:r}){r().length!==0&&(e.kind==="removed"&&t({message:`Media type \`${ae(e.node)}\` was removed.`}),e.kind==="modified"&&e.property==="key"&&t({message:`Media type \`${e.base.value}\` became \`${e.revision.value}\`.`}))},MediaTypesMap(e,{report:t,getDirections:r}){e.kind==="removed"&&r().length>0&&t({message:"All media types were removed."})}});var s_=()=>({Message(e,{report:t}){if(e.kind!=="modified"||e.property!=="contentType")return;let r=`\`contentType\` of message \`${ae(e.node)}\``,{value:n}=e.base,{value:o}=e.revision;t(n===void 0?{message:`${r} was set to '${o}'.`}:o===void 0?{message:`${r} was removed.`}:{message:`${r} changed from '${n}' to '${o}'.`})}});var a_=()=>({Message(e,{report:t}){e.kind==="removed"&&t({message:`Message \`${ae(e.node)}\` was removed.`})},Channel:{NamedMessages(e,{report:t}){e.kind==="removed"&&t({message:`All messages of channel \`${ae(e.node.parent)}\` were removed.`})}}});var c_=()=>({Operation(e,{report:t}){if(e.kind!=="modified"||e.property!=="action")return;let r=`\`action\` of operation \`${ae(e.node)}\``,{value:n}=e.base,{value:o}=e.revision;t(n===void 0?{message:`${r} was set to '${o}'.`}:o===void 0?{message:`${r} was removed.`}:{message:`${r} changed from '${n}' to '${o}'.`})}});var Zm=(e,{report:t})=>{if(e.kind!=="modified"||e.property!=="operationId")return;let{value:r}=e.base,{value:n}=e.revision;if(r===void 0)return;let i=`\`operationId\` of operation \`${ae(e.node).toUpperCase()} ${ae(e.node.parent)}\``;t(n===void 0?{message:`${i} was removed.`}:{message:`${i} changed from '${r}' to '${n}'.`})},p_=()=>({Paths:{PathItem:{Operation:Zm}},WebhooksMap:{PathItem:{Operation:Zm}},CallbacksMap:{Callback:{PathItem:{Operation:Zm}}}});var eh=(e,{report:t})=>{if(e.kind!=="removed")return;let r=ae(e.node).toUpperCase();t({message:`Operation \`${r} ${ae(e.node.parent)}\` was removed.`})},th=()=>({Paths:{PathItem:{Operation:eh}},WebhooksMap:{PathItem:{Operation:eh}},CallbacksMap:{Callback:{PathItem:{Operation:eh}}},NamedOperations:{Operation(e,{report:t}){e.kind==="removed"&&t({message:`Operation \`${ae(e.node)}\` was removed.`})}},Root:{NamedOperations(e,{report:t}){e.kind==="removed"&&_s(e.node)&&t({message:"All operations were removed."})}}});var u_=()=>({Parameter(e,{report:t,getDirections:r}){if(!r().includes("request"))return;let n=$t(e.node),o=`\`${ce(n,"name")}\` ${ce(n,"in")} parameter`;e.kind==="added"&&ce(n,"required")===!0&&t({message:`Required ${o} was added.`,location:l_(n)}),e.kind==="modified"&&e.property==="required"&&e.revision.value===!0&&t({message:`${o} became required.`})},ParameterList(e,{report:t,getDirections:r}){if(!(e.kind!=="added"||!r().includes("request")))for(let n of $t(e.node).children){if(ce(n,"required")!==!0)continue;let o=`\`${ce(n,"name")}\` ${ce(n,"in")} parameter`;t({message:`Required ${o} was added.`,location:l_(n)})}}});function l_(e){return fx(e).child(["required"])}var d_=()=>({Parameter(e,{report:t,getDirections:r}){if(!r().includes("request"))return;if(e.kind==="removed"){let c=$t(e.node),l=`\`${ce(c,"name")}\` ${ce(c,"in")} parameter`;t({message:`${l} was removed.`})}if(e.kind!=="modified")return;let n=ce(e.node.base,"name"),o=ce(e.node.base,"in"),{value:i}=e.base,{value:s}=e.revision;e.property==="in"&&t({message:`\`${n}\` ${i} parameter is now a ${s} parameter.`});let a=o==="header"&&String(i).toLowerCase()===String(s).toLowerCase();e.property==="name"&&o!=="path"&&!a&&t({message:`\`${i}\` ${o} parameter was renamed to \`${s}\`.`})},ParameterList(e,{report:t,getDirections:r}){e.kind==="removed"&&r().includes("request")&&t({message:"All parameters were removed."})}});var _K=new Set(["style","explode","allowReserved","allowEmptyValue"]),f_=()=>({Parameter(e,{report:t,getDirections:r}){if(e.kind!=="modified"||!_K.has(e.property)||!r().includes("request"))return;let n=$t(e.node),o=`\`${ce(n,"name")}\` ${ce(n,"in")} parameter`,i=`\`${e.property}\` of ${o}`,{value:s}=e.base,{value:a}=e.revision;t(s===void 0?{message:`${i} was set to '${a}'.`}:a===void 0?{message:`${i} was removed.`}:{message:`${i} changed from '${s}' to '${a}'.`})}});var m_=e=>String(e).replace(/\{[^}]+\}/g,"{}"),h_=()=>({Paths:{PathItem(e,{report:t}){if(e.kind==="removed"&&t({message:`Path \`${ae(e.node)}\` was removed.`}),e.kind!=="modified"||e.property!=="key")return;let{value:r}=e.base,{value:n}=e.revision;m_(r)!==m_(n)&&t({message:`Path \`${r}\` was renamed to \`${n}\`.`})}},Root:{Paths(e,{report:t}){e.kind==="removed"&&t({message:"All paths were removed."})},WebhooksMap(e,{report:t}){e.kind==="removed"&&t({message:"All webhooks were removed."})}},WebhooksMap:{PathItem(e,{report:t}){e.kind==="removed"&&t({message:`Webhook \`${ae(e.node)}\` was removed.`})}},Operation:{CallbacksMap(e,{report:t}){e.kind==="removed"&&t({message:"All callbacks were removed."})},Callback(e,{report:t}){e.kind==="removed"&&t({message:`Callback \`${ae(e.node)}\` was removed.`})}},CallbacksMap:{Callback:{PathItem(e,{report:t}){if(e.kind!=="removed")return;let r=ae(e.node.parent);t({message:`Callback \`${r}\` no longer calls \`${ae(e.node)}\`.`})}}}});var g_=()=>({SchemaProperties:{Schema(e,{report:t,getDirections:r}){let n=e.node.parent?.parent,o=r();if(!y_(n,o))return;let i=at(n);if(e.kind==="removed"&&t({message:`Property \`${ae(e.node)}\`${i} was removed.`}),e.kind==="modified"&&e.property==="key"){let{value:s}=e.base,{value:a}=e.revision;t({message:`Property \`${s}\`${i} was renamed to \`${a}\`.`})}}},Schema:{SchemaProperties(e,{report:t,getDirections:r}){let n=e.node.parent,o=r();e.kind==="removed"&&y_(n,o)&&t({message:`All properties${at(n)} were removed.`})}}});function y_(e,t){return t.includes("response")?!0:t.includes("request")?ce(e?.revision,"additionalProperties")===!1||ce(e?.revision,"unevaluatedProperties")===!1:!1}var v_=()=>({RequestBody(e,{report:t,getDirections:r}){e.kind!=="modified"||e.property!=="required"||r().includes("request")&&e.revision.value===!0&&t({message:"Request body became required."})}});var b_=()=>({RequestBody(e,{report:t,getDirections:r}){e.kind==="removed"&&r().includes("request")&&t({message:"Request body was removed."})}});var x_=()=>({Schema(e,{report:t,getDirections:r}){if(e.kind!=="modified"||e.property!=="required"||!r().includes("request"))return;let n=$l(e.node,"readOnly"),o=cn(e.revision.value,e.base.value).filter(s=>!n.includes(String(s)));if(!o.length)return;let i=o.map(s=>`\`${s}\``).join(", ");t({message:`Properties${at(e.node)} became required: ${i}.`})}});var S_=()=>({Schema(e,{report:t,getDirections:r}){if(e.kind!=="modified"||e.property!=="required"||!r().includes("response"))return;let n=$l(e.node,"writeOnly"),o=cn(e.base.value,e.revision.value).filter(s=>!n.includes(String(s)));if(!o.length)return;let i=o.map(s=>`\`${s}\``).join(", ");t({message:`Properties${at(e.node)} are no longer required: ${i}.`})}});var w_=()=>({Response:{Header(e,{report:t,getDirections:r}){if(!r().includes("response")||(e.kind==="removed"&&t({message:`Response header \`${ae(e.node)}\` was removed.`}),e.kind!=="modified"||e.property!=="key"))return;let{value:n}=e.base,{value:o}=e.revision;String(n).toLowerCase()!==String(o).toLowerCase()&&t({message:`Response header \`${n}\` was renamed to \`${o}\`.`})},HeadersMap(e,{report:t,getDirections:r}){e.kind==="removed"&&r().includes("response")&&t({message:`All headers of response \`${ae(e.node.parent)}\` were removed.`})}}});var __=()=>({Responses:{Response(e,{report:t}){e.kind==="removed"&&t({message:`Response \`${ae(e.node)}\` was removed.`}),e.kind==="modified"&&e.property==="key"&&t({message:`Response \`${e.base.value}\` became \`${e.revision.value}\`.`})}}});function rh(e){return(t,{report:r,getDirections:n})=>{if(t.kind==="modified")return;let o=t.kind==="removed",i=e==="allOf"?!o:o;if(!n().includes(i?"request":"response"))return;let s=at(t.node.parent?.parent);r({message:`\`${e}\` subschema${s} was ${o?"removed":"added"}.`})}}var nh=(e,{report:t,getDirections:r})=>{if(e.kind==="modified")return;let n=e.kind==="added";if(!r().includes(n?"request":"response"))return;let o=at(e.node.parent);t({message:`\`${ae(e.node)}\`${o} was ${n?"added":"removed"}.`})},$_=()=>({Schema:{AllOf:nh,AnyOf:nh,OneOf:nh},AllOf:{Schema:rh("allOf")},AnyOf:{Schema:rh("anyOf")},OneOf:{Schema:rh("oneOf")}});var P_=new Set(["minLength","minItems","minProperties"]),$K=new Set(["maxLength","maxItems","maxProperties"]),E_=new Set(["multipleOf","pattern","format","const","contentEncoding","contentMediaType"]),Xa={uniqueItems:!0,additionalProperties:!1,unevaluatedItems:!1,unevaluatedProperties:!1,items:!1},PK=new Set(["not","then","else","contains","propertyNames","items","additionalProperties","unevaluatedItems","unevaluatedProperties","prefixItems","dependentSchemas","dependentRequired"]),EK={name:"Lower bound",inclusive:"minimum",exclusive:"exclusiveMinimum",operator:">",sign:1},AK={name:"Upper bound",inclusive:"maximum",exclusive:"exclusiveMaximum",operator:"<",sign:-1};function oh(e,t){return e!=="more"&&t.includes("request")||e!=="fewer"&&t.includes("response")}function OK(e,t,r){if(Object.hasOwn(Xa,e)){let n=t===Xa[e],o=r===Xa[e];return n===o?void 0:o?"fewer":"more"}if(!(!P_.has(e)&&!$K.has(e)&&!E_.has(e)))return t===void 0?"fewer":r===void 0?"more":typeof t!="number"||typeof r!="number"||E_.has(e)?"unknown":P_.has(e)===r>t?"fewer":"more"}function T_(e,t,r){return e.value!==t.value?(e.value-t.value)*r.sign:Number(e.exclusive)-Number(t.exclusive)}function A_(e,t){let r=ce(e,t.inclusive),n=ce(e,t.exclusive);if(typeof n=="number"){let o={value:n,exclusive:!0};if(typeof r!="number")return o;let i={value:r,exclusive:!1};return T_(i,o,t)>0?i:o}if(typeof r=="number")return{value:r,exclusive:n===!0}}function TK(e,t,r){return e?t?T_(t,e,r):-1:1}function O_(e,t){return e&&`${t.operator}${e.exclusive?"":"="} ${e.value}`}var Pl=(e,{report:t,getDirections:r})=>{let n=$t(e.node),o=String(n.key);if(e.kind==="modified"||Qi(n)!=="field"||!PK.has(o))return;let i=e.kind==="added",s=e.node.parent,a=i?s?.base:s?.revision;Object.hasOwn(Xa,o)&&ce(a,o)===Xa[o]||oh(i?"fewer":"more",r())&&t({message:`\`${o}\`${at(s)} was ${i?"added":"removed"}.`})};function RK(e,{report:t,getDirections:r}){let{value:n}=e.base,{value:o}=e.revision,i=OK(e.property,n,o);if(!i||!oh(i,r()))return;let s=`\`${e.property}\`${at(e.node)}`;t(n===void 0?{message:`${s} was set to '${o}'.`}:o===void 0?{message:`${s} was removed.`}:{message:`${s} changed from '${n}' to '${o}'.`})}function kK(e,t,{report:r,getDirections:n}){let{base:o,revision:i}=e.node,s=!At(ce(o,t.inclusive),ce(i,t.inclusive));if(e.property===t.exclusive&&s)return;let a=A_(o,t),c=A_(i,t);if(!a&&!c)return;let l=TK(a,c,t);if(l===0||!oh(l>0?"fewer":"more",n()))return;let p=`${t.name}${at(e.node)}`,u=O_(a,t),f=O_(c,t);r(u===void 0?{message:`${p} was set to '${f}'.`}:f===void 0?{message:`${p} was removed.`}:{message:`${p} changed from '${u}' to '${f}'.`})}var R_=()=>({Schema(e,t){if(e.kind!=="modified")return Pl(e,t);let r=[EK,AK].find(({inclusive:n,exclusive:o})=>e.property===n||e.property===o);r?kK(e,r,t):RK(e,t)},SchemaList:Pl,SchemaMap:Pl,DependentRequired:Pl});var IK={integer:"number"};function k_(e,t){let n=(Array.isArray(e)?e:e===void 0?[]:[e]).filter(i=>typeof i=="string");return t===!0&&n.length>0&&!n.includes("null")?[...n,"null"]:n}function I_(e,t){return e.filter(r=>{let n=IK[r];return!t.includes(r)&&(n===void 0||!t.includes(n))})}var C_=()=>({Schema(e,{report:t,getDirections:r}){if(e.kind!=="modified")return;let{base:n,revision:o}=e.node,i=!At(ce(n,"type"),ce(o,"type"));if(e.property!=="type"&&(e.property!=="nullable"||i))return;let s=k_(ce(n,"type"),ce(n,"nullable")),a=k_(ce(o,"type"),ce(o,"nullable")),c=a.length>0&&(!s.length||I_(s,a).length>0),l=s.length>0&&(!a.length||I_(a,s).length>0),p=`from '${s.join(" | ")||"any"}' to '${a.join(" | ")||"any"}'`;r().includes("request")&&c&&t({message:`Type${at(e.node)} narrowed ${p}.`}),r().includes("response")&&l&&t({message:`Type${at(e.node)} widened ${p}.`})}});function ih(e,t){return!Array.isArray(t)||t.length===0?!0:t.some(r=>A(r)&&Object.entries(r).every(([n,o])=>n in e&&cn(o,e[n]).length===0))}var N_=()=>({SecurityRequirementList(e,{report:t}){e.kind==="added"&&!ih({},e.revision.value)&&t({message:"Authentication became required."})},SecurityRequirement(e,{report:t}){let r=e.node.parent,n=r?.revision&&Gn(r.revision);if(e.kind==="added"){let s=r?.base&&Gn(r.base);Array.isArray(s)&&s.length===0&&!ih({},n)&&t({message:"Authentication became required."});return}let o=e.node.base&&Gn(e.node.base);if(!A(o)||ih(o,n))return;let i=Object.keys(o).join(" + ");if(e.kind==="removed")t({message:`Security requirement \`${i}\` is no longer accepted.`});else if(e.base.value===void 0)t({message:`Security requirement \`${i}\` now requires \`${e.property}\`.`});else{let s=cn(e.revision.value,e.base.value);if(!s.length)return;let a=s.map(c=>`'${c}'`).join(", ");t({message:`Security scheme \`${e.property}\` requires new scopes: ${a}.`})}}});var CK=new Set(["type","scheme","in","name","bearerFormat","openIdConnectUrl"]),q_=()=>({SecurityScheme(e,{report:t}){if(e.kind==="removed"&&t({message:`Security scheme \`${ae(e.node)}\` was removed.`}),e.kind!=="modified"||!CK.has(e.property)||ce(e.node.base,"type")!==ce(e.node.revision,"type")&&e.property!=="type")return;let n=`\`${e.property}\` of security scheme \`${ae(e.node)}\``,{value:o}=e.base,{value:i}=e.revision;t(o===void 0?{message:`${n} was set to '${i}'.`}:i===void 0?{message:`${n} was removed.`}:{message:`${n} changed from '${o}' to '${i}'.`})}});var NK=new Set(["host","pathname","protocol"]),j_=(e,{report:t})=>{e.kind==="removed"&&_s(e.node)&&t({message:"All servers were removed."})},sh=()=>({Server(e,{report:t}){if(e.kind==="removed"){let o=ce($t(e.node),"url"),i=typeof o=="string"?o:ae(e.node);t({message:`Server \`${i}\` was removed.`})}if(e.kind!=="modified")return;let{value:r}=e.base,{value:n}=e.revision;if(e.property==="url"&&t({message:`Server \`${r}\` became \`${n}\`.`}),NK.has(e.property)){let o=`\`${e.property}\` of server \`${ae(e.node)}\``;t(r===void 0?{message:`${o} was set to '${n}'.`}:n===void 0?{message:`${o} was removed.`}:{message:`${o} changed from '${r}' to '${n}'.`})}},ServerMap:j_,ServerList:j_});var D_={"schema-type-changed":C_,"enum-values-removed":o_,"enum-values-added":n_,"required-properties-added":x_,"required-properties-removed":S_,"property-removed":g_,"schema-constraint-changed":R_},qK={"operation-removed":th,"operation-id-changed":p_,"path-removed":h_,"parameter-removed":d_,"parameter-became-required":u_,"parameter-serialization-changed":f_,"request-body-removed":b_,"request-body-became-required":v_,"response-removed":__,"response-header-removed":w_,"media-type-removed":i_,"security-requirement-changed":N_,"security-scheme-changed":q_,"server-removed":sh,...D_,"schema-combinator-changed":$_},jK={"channel-removed":r_,"channel-address-changed":t_,"message-removed":a_,"message-content-type-changed":s_,"operation-removed":th,"operation-action-changed":c_,"server-removed":sh,...D_},El={oas3:qK,async3:jK};function M_(e){return Object.hasOwn(El,e)}var L_=[...new Set(Object.values(El).flatMap(e=>Object.keys(e)))];var F_=["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"];function Za(e){return e.includes("/")}var JE=tn(Pg(),1);var Eg;function M6(){return Eg||(Eg=new JE.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),Eg}function QE(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>M6().validate(o,r));return n===-1&&(n=0),t[n]}}function Us(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 L6(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=Us(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 QE(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>Us(e+"_"+i,o,r));return QE(t.oneOf,n)}return t}function L6(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]=Us(n+"."+c,l,r);let i;A(t.additionalProperties)&&(i=Us(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=Us(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(f=>c[f]!==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 Ag(e,t){let r={},n=Us(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var U6=["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"],z6=["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"],V6=["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"],B6=["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"],H6=["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"],K6=["info-contact","spec-ref-siblings"],G6=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],W6=["no-unused-types","type-description"],Y6=["struct","no-unresolved-refs"],Q6=[...U6,...z6,...V6,...B6,...H6,...K6,...G6,...W6,...Y6],J6=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],X6=["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"],XE=[...X6,...J6],ZE={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!le(e)&&!F6.extname(e)?{type:"string"}:{...Ic,directResolveAs:{name:"ConfigGovernance",...Ic}},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",diff:"DiffRules",oas3_0Diff:"DiffRules",oas3_1Diff:"DiffRules",oas3_2Diff:"DiffRules",async3Diff:"DiffRules"},Ic={properties:ZE},Z6=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...Ic.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),e8={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"},t8=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...rs(Ic.properties,["plugins","diff","oas3_0Diff","oas3_1Diff","oas3_2Diff","async3Diff"]),client:"Client",clientOutput:{type:"string"}}}),r8={properties:{headers:{type:"array",items:{type:"string"}}}},n8={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"},telemetry:{enum:["on","off"]},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:V("ClientGeneratorOptions"),pagination:"ClientPagination"}},o8={properties:{},additionalProperties:{}},eA={properties:{style:{enum:["cursor","offset","page","link","body-link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},nextLink:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},i8={properties:{...eA.properties,exclude:{type:"array",items:{type:"string"}},operations:V("ClientPaginationRule")}},s8={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(Q6.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(Za(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},a8={properties:{},description:"The `diff` block sets the semver impact of each diff rule: `off`, `patch`, `minor`, or `major`.",additionalProperties:(e,t)=>L_.includes(t)||Za(t)?{enum:["off",...Oa]}:void 0},c8={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"},p8={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"},l8={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(XE.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(Za(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},u8={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},d8={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},f8={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(XE.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(Za(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},m8={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"},h8={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 y8(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 g8(e){return{...e[jt.ScorecardClassicLevel],properties:{...e[jt.ScorecardClassicLevel]?.properties,...ZE}}}var v8={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"},b8={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"},x8={properties:{subject:"Subject",assertions:"Assertions",where:z("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 lu(e,t){let r=ns.flatMap(o=>{let i=Wn(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=Ag("rootRedoclyConfigSchema",e);return{...S8,ConfigRoot:Z6(n),ConfigApisProperties:t8(n),Subject:y8([...r,...F_]),...n,[jt.ScorecardClassicLevel]:g8(n)}}var S8={ConfigurableRule:x8,ConfigApis:e8,ConfigGovernance:Ic,ConfigHTTP:r8,Client:n8,ClientGeneratorOptions:o8,ClientPagination:i8,ClientPaginationRule:eA,Where:b8,BuiltinRule:c8,CustomRule:p8,BuiltinDecorator:u8,CustomDecorator:d8,BuiltinPreprocessor:m8,CustomPreprocessor:h8,Schema:we.Schema,SchemaProperties:we.SchemaProperties,PatternProperties:we.PatternProperties,NamedSchemas:we.NamedSchemas,DependentRequired:we.DependentRequired,Discriminator:we.Discriminator,DiscriminatorMapping:we.DiscriminatorMapping,ExternalDocs:we.ExternalDocs,Xml:we.Xml,Rules:s8,Decorators:l8,Preprocessors:f8,Assertions:v8,DiffRules:a8},{theme:yye,...w8}=ws.properties,_8={...ws,properties:w8},tA=lu(_8),Co=Er(tA);import wre from"node:path";import*as Fb from"node:fs";import xre from"node:module";import*as pr from"node:path";import*as w1 from"node:url";function uu(e){return!nt(e)}var rA={};var nA={};var oA={};function du(e){return Array.isArray(e)&&e.length===0}function fu(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(B(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(B(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&&(Pr(e)||du(e))&&delete n[o]}function No(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=iA(t),e=iA(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function iA(e){return Array.isArray(e)?e:[e]}var $8="any",mu=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||$8;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=B(a[p])?c.resolve(a[p]).node:a[p];if(A(u)){let f=u[e];No(f,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];No(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]&&!No(s?.[e],t,o);return{any:{enter:(s,a)=>{fu(s,a,i)}}}};var P8="any",hu=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||P8;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=B(a[p])?c.resolve(a[p]).node:a[p];if(A(u)){let f=u[e];No(f,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];No(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>No(s?.[e],t,o);return{any:{enter:(s,a)=>{fu(s,a,i)}}}};import*as yu from"node:fs";import*as gu from"node:path";function Og(e){let t=yu.readFileSync(e,"utf-8");return ii(t)}function ao(e,t){return le(e)||t===void 0?e:gu.resolve(gu.dirname(t),e)}function zs(e){return yu.readFileSync(e,"utf-8")}var vu=({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=zs(ao(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
123
+ ${i.message}`,location:n.child("description")})}}}});var bu=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 xu=({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=zs(ao(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
124
+ ${s.message}`,location:n.child("operationId").key()})}}}});var E8="x-internal",Su=({internalFlagProperty:e=E8})=>{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(B(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(B(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&&(Pr(n)||du(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 wu=({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=zs(ao(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
125
+ ${i.message}`})}}}});var sA={"operation-description-override":xu,"tag-description-override":wu,"info-description-override":vu,"info-override":bu,"remove-x-internal":Su,"filter-in":mu,"filter-out":hu,"remove-unused-components":ul};var cA=({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=aA(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:Og(ao(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=aA(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:Og(ao(a,r.config?.configPath))}}),t.requestBody=i}}}}});function aA(e,t){if(!B(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}var pA={"operation-description-override":xu,"tag-description-override":wu,"info-description-override":vu,"info-override":bu,"remove-x-internal":Su,"filter-in":mu,"filter-out":hu,"media-type-examples-override":cA,"remove-unused-components":dl};var lA={};var uA={};var dA=()=>({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"})}}});function Cc(e){return e?Object.keys(e):[]}function Ai(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}function Nc(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function fA(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 WT=tn(Pg(),1),YT=tn(SA(),1),QT=tn(KT(),1);var ate=["title","description","example","examples","default","deprecated"];function GT(e){return e==="draft4"?"id":"$id"}function cte(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var Dn=class{instances={};sharedValidators=new Map;validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:l}=n,p=cte(l),u=this.getValidator(r,o,s,a,p);if(!u)return{valid:!0,errors:[]};let f={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,f),errors:(u.errors||[]).map(m)};function m(y){let b=y.message,x=y.keyword==="enum"?y.params.allowedValues:void 0;x&&(b+=` ${x.map(P=>`"${P}"`).join(", ")}`),y.keyword==="type"&&(b=`type ${b}`);let w=y.instancePath.substring(i.length+1),S=w.substring(w.lastIndexOf("/")+1);if(S&&(b=`\`${S}\` property ${b}`),y.keyword==="additionalProperties"||y.keyword==="unevaluatedProperties"){let P=y.params.additionalProperty||y.params.unevaluatedProperty;b=`${b} \`${P}\``,y.instancePath+="/"+qr(P)}return{...y,message:b,suggest:x}}}getAjv(t,r){if(!this.instances[r]){let n=GT(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 WT.default(o):new YT.default(o),(0,QT.default)(this.instances[r])}return this.instances[r]}getValidator(t,r,n,o,i){let s=this.getAjv(n,i);if(B(t)&&!nn(t)){let p=n(t,r.source.absoluteRef);p.location&&A(p.node)&&(t=p.node,r=p.location)}let a=A(t)?pte(t,i):void 0;if(a){let p=this.sharedValidators.get(a);if(p)return p;s.setDefaultUnevaluatedProperties(o);let u=s.compile(t);return this.sharedValidators.set(a,u),u}let c=encodeURI(r.absolutePointer),l=GT(i);return s.getSchema(c)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[l]:c,...t},c)),s.getSchema(c)}};function pte(e,t){let r={...e};for(let o of ate)delete r[o];let n=JSON.stringify(r);if(!n.includes('"$ref"'))return`${t}:${n}`}var td=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),rd=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),JT=new WeakMap,lte=new Ct(new Pn("assertion",""),"#/schema"),Mn={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||A(e))return[];let o=Array.isArray(e)?e:[e],i=Ai(t);return o.map(s=>!i?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:nt(e)?r:A(n)?r.child(s).key():r.key()}).filter(_t)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||A(e))return[];let o=Array.isArray(e)?e:[e],i=Ai(t);return o.map(s=>i?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:nt(e)?r:A(n)?r.child(s).key():r.key()}).filter(_t)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||A(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`${JSON.stringify(o)} should be one of the predefined values`,location:nt(e)?r:r.child(o).key()}).filter(_t),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(_t),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(_t)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||A(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`${JSON.stringify(o)} is disallowed`,location:nt(e)?r:r.child(o).key()}).filter(_t),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`${JSON.stringify(n)} should be equal ${JSON.stringify(t)}`,location:nt(e)?r:r.child(n).key()}).filter(_t):e!==t?[{message:`${JSON.stringify(e)} should be equal ${JSON.stringify(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:`${JSON.stringify(i)} should use ${t}`,location:nt(e)?r:r.child(i).key()}).filter(_t)},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"||fA(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})=>Nc(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(Nc(e,t)>0?Nc(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>Nc(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=Ai(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=JT.get(t);i||(i=new Dn,JT.set(t,i));let s=B(n)&&o(n)?.location||r,a;try{({errors:a}=i.validate(e,t,{schemaLoc:lte,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?Ar(s.pointer,c.instancePath.slice(1)):s.pointer,p=new Ct(s.source,l),u=c.keyword==="additionalProperties"||c.keyword==="unevaluatedProperties";return{message:c.message,location:u?p.key():p}})}};function XT(e){return(t,r,n)=>e.call(null,t,r,n)}var bb={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function ZT(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&Ai(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(_t)}function tR(e){let t=Cc(Mn).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:td.has(o),runsOnValues:rd.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 rR({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function nR(e,t,r){let n=rR(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push(eR({assert:i,ctx:r,assertionProperty:s}));else o.push(eR({assert:i,ctx:r}));return o.flat()}function oR(e,t){let r=ZT(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(!nt(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=ZT(l.subject),u=tR(l),f=(m,y,b)=>!p.every(x=>x(y))||!!nR(l,u,{...b,node:m}).length,h={...(p.length||u.length)&&{skip:f}};l.subject.type===e.subject.type&&c===a.length-1?o[e.subject.type]={enter:t,...h.skip&&{skip:h.skip}||n&&{skip:(m,y,b)=>!!(h.skip?.(m,y,b)||n?.(m,y))}}:i=i[l.subject?.type]=h}return i[e.subject.type]=o[e.subject.type],s}function iR(e,t){return(r,n)=>{let o=rR(t),i=`${ue.blue(e)} failed because the ${ue.blue(t.subject.type)} ${ue.blue(o.join(", "))} didn't meet the assertions: ${bb.problems}`.replace(/ +/g," "),s=nR(t,tR(t),{...n,node:r});if(s.length)for(let a of ute(s)){let c=t.message||i,p={problems:xb(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:Sb(n.location.source.absoluteRef)};n.report({message:wb(c,p),location:dte(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function ute(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 dte(e){return e.length?e[0].location:void 0}function xb(e){return e.length===1?e[0].message??"":e.map(t=>`
126
+ - ${t.message??""}`).join("")}function Sb(e){return le(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function wb(e,t){let r=e;for(let n of Object.keys(bb)){let o=bb[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function eR({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=B(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return Mn[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return Mn[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var cr=e=>{let t=[],r=Object.values(e).filter(n=>A(n));for(let[n,o]of r.entries()){if(!nt(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=iR(o.assertionId,o),s=oR(o,i);t.push(s)}return t};function fte(e){return A(e)||Array.isArray(e)}var Ln=()=>({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=fte(s);(a?o.some(l=>At(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 aR=tn(_b(),1);function Mi(e){return Array.isArray(e)&&e.length>0}var Li=(e,t,r)=>{if(B(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}},$b=(e,t,r,n,o)=>!!(e.properties&&ot(e.properties,t)!==void 0||e.allOf?.some(i=>mo(i,t,r,n,o))||Mi(e.anyOf)&&e.anyOf.every(i=>mo(i,t,r,new Set(n),o))||Mi(e.oneOf)&&e.oneOf.every(i=>mo(i,t,r,new Set(n),o))),mo=(e,t,r,n=new Set,o)=>{if(B(e)&&$b(e,t,r,n,o))return!0;let{schema:i,location:s,chain:a}=Li(e,r,o);if(!i)return!1;if(!n.has(i)&&(n.add(i),$b(i,t,r,n,s)))return!0;for(let c of a??[])if(!(!A(c.node)||n.has(c.node))&&(n.add(c.node),$b(c.node,t,r,n,c.location)))return!0;return!1};function Fi(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function ca(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function nd(e,t,r){if(ca(e))return!0;if(!Array.isArray(e?.traits))return!1;for(let n of e.traits){let o=B(n)?t(n,r).node:n;if(ca(o))return!0}return!1}function lp(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 Ui(e,t){return`${e} object should contain \`${t}\` field.`}function gte(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function cR(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Yr({fieldName:e,value:t,ctx:r,reference:n}){A(t)&&(t[e]===void 0?r.report({message:Ui(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:cR(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function pR({fieldNames:e,value:t,ctx:r,reference:n}){if(A(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:gte(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:cR(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function zi(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,aR.distance)(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 od(e){if(A(e)){if(wt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(wt(e.value))return{value:e.value,field:"value"}}}function Vo({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:f}=i;try{let{valid:h,errors:m}=s.validate(e,t,{schemaLoc:p.child("schema"),instancePath:o.pointer,resolve:l,allowAdditionalProperties:a,ajvContext:c,specVersion:f});if(!h)for(let y of m)u({message:`Example value must conform to the schema: ${y.message}.`,location:{...new Ct(o.source,y.instancePath),reportOnKey:y.keyword==="unevaluatedProperties"||y.keyword==="additionalProperties"},from:p,suggest:y.suggest,reference:n})}catch(h){if(h.message==="discriminator: requires oneOf or anyOf composite keyword")return;u({message:`Example validation errored: ${h.message}.`,location:p.child("schema"),from:p,reference:n})}}var vte=10;function Pb(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>vte?`\`${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:zi(t,e)})}}function up({responseCodes:e,codeRange:t,report:r,reference:n,disallowDefault:o=!1}){let i=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(a=>!o&&t==="2XX"&&a==="default"||i.test(a))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function dp(e,t){return t?e.name.toLowerCase():e.name}var Fn=()=>({Schema(e,{report:t,location:r}){if(!A(e)||!e.type)return;let n=Array.isArray(e.type)?e.type:[e.type],o=i=>n.some(s=>lp(i,s,e.nullable));if(Array.isArray(e.enum))for(let[i,s]of e.enum.entries())o(s)||t({message:Array.isArray(e.type)?`Enum value \`${s}\` must be of allowed types: \`${e.type}\`.`:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Fi(s)}".`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"});"const"in e&&!o(e.const)&&t({message:`The \`const\` value must be of the same type as the \`type\` field: expected "${n.join('" or "')}" but received "${Fi(e.const)}".`,location:r.child(["const"]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}});var Bo=()=>({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 Un=()=>{let e=[],t=new Set,r=(n,o,i)=>{if(Mi(n.required))for(let[s,a]of n.required.entries())mo(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),!Mi(n.required))return;let i=(c,l)=>{let p=u=>Li(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())!mo(n,l,o)&&!mo(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 zn=()=>({Schema(e,{report:t,location:r}){typeof e.type=="string"&&(e.type!=="array"&&e.items&&t({message:`Schema type mismatch: '${e.type}' type should not contain 'items' field.`,location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type!=="object"&&e.properties&&t({message:`Schema type mismatch: '${e.type}' type should not contain 'properties' field.`,location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}))}});var Vn=()=>({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 zt=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=Fi(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!==rn&&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 h of p||[])e.hasOwnProperty(h)||t({message:`The field \`${h}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});let u=r.allowed?.(e);if(u&&A(e))for(let h in e)u.includes(h)||r.extensionsPrefix&&h.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(h)||t({message:`The field \`${h}\` is not allowed here.`,from:l,location:n.child([h]).key()});let f=r.requiredOneOf||null;if(f){let h=!1;for(let m of f||[])e.hasOwnProperty(m)&&(h=!0);h||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(let h of Object.keys(e)){let m=n.child([h]),y=e[h],b=ot(r.properties,h);if(b===void 0&&(b=r.additionalProperties),typeof b=="function"&&(b=b(y,h)),Nr(b))continue;let x=b,w=Fi(y);if(x===void 0){if(h.startsWith("x-"))continue;t({message:`Property \`${h}\` is not expected here.`,suggest:zi(h,Object.keys(r.properties)),from:l,location:m.key()});continue}if(x!==null){if(x.resolvable!==!1&&B(y)&&(y=s(y).node),x.items&&x.items?.enum&&Array.isArray(y))for(let S=0;S<y.length;S++)Pb(x.items?.enum,y[S],h,l,{report:t,location:n.child([h,S])},x.items?.documentationLink);if(x.enum)Pb(x.enum,y,h,l,{report:t,location:n.child([h])},x.documentationLink);else if(x.type&&!lp(y,x.type,!1))t({message:`Expected type \`${x.type}\` but got \`${w}\`.`,from:l,location:m}),a();else if(w==="array"&&x.items?.type){let S=x.items?.type;for(let P=0;P<y.length;P++){let $=y[P];lp($,S,!1)||t({message:`Expected type \`${S}\` but got \`${Fi($)}\`.`,from:l,location:m.child([P])})}}typeof x.minimum=="number"&&x.minimum>e[h]&&t({message:`The value of the ${h} field must be greater than or equal to ${x.minimum}`,from:l,location:n.child([h])})}}}});var lR=()=>({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 uR=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=ot(o,"scheme"),s=ot(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 dR=()=>({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 fR=()=>{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 bte={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function mR(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,a=o?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){de.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let c=bte[a];if(c)for(let l of c)(!i||!(l in i))&&t({message:`The \`${l}\` 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 hR=()=>({Step:{enter(e,t){mR(e?.["x-security"],t)}},Workflow:{enter(e,t){mR(e?.["x-security"],t)}}});var yR=()=>({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 gR=()=>{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,f;for(;(f=u.exec(s))!==null;){let[h,m,y]=f,b=p.get(m);b?b.includes(y)||a({message:`Output key "${y}" is not defined in workflow "${m}". Available outputs: [ ${b.join(", ")} ].`,location:c.child(l)}):a({message:`Workflow "${m}" referenced in runtime expression "${h}" 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,f;for(;(f=u.exec(s))!==null;){let[h,m,y]=f,b=p.get(m);b?b.includes(y)||a({message:`Output key "${y}" is not defined in step "${m}". Available outputs: [ ${b.join(", ")} ].`,location:c.child(l)}):a({message:`Step "${m}" referenced in runtime expression "${h}" 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)})}},ActionParameters:{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 vR=()=>{function e(t,{report:r,location:n}){if(!t)return;let o=new Set;for(let i of t)o.has(i?.name)&&r({message:"The parameter `name` must be unique amongst listed parameters.",location:n.child([t.indexOf(i)])}),o.has(i?.reference)&&r({message:"The parameter `reference` must be unique amongst listed parameters.",location:n.child([t.indexOf(i)])}),o.add(i?.name??i?.reference)}return{Parameters:{enter:e},ActionParameters:{enter:e}}};var bR=()=>{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 xR=()=>{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 SR=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var xte=["x-operation","operationId","operationPath","channelPath","workflowId"],wR=()=>({Step:{enter(e,{report:t,location:r}){let n=xte.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 _R=()=>({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 PR=()=>({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 ER=()=>{let e=new Set,t=new Set;return{SourceDescriptions:{enter(r){for(let n of r)e.add(n.name)}},Workflows:{enter(r){for(let n of r)t.add(n.workflowId)}},Workflow:{leave(r,{report:n,location:o}){if(!r.dependsOn)return;let i=new Set;for(let s of r.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];e.has(a)||n({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:o.child(["dependsOn",r.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!t.has(s)&&n({message:`Workflow ${s} must be defined in workflows.`,location:o.child(["dependsOn",r.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),i.has(s)&&n({message:"Every workflow in dependsOn must be unique.",location:o.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),i.add(s)}}}}};var AR=()=>{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 OR={assertions:cr,"criteria-unique":yR,"no-criteria-xpath":lR,"no-duplicated-enum-values":Ln,"no-unsafe-markdown":Vn,"no-enum-type-mismatch":Fn,"no-mixed-number-range-constraints":Bo,"no-required-schema-properties-undefined":Un,"no-schema-type-mismatch":zn,"no-unresolved-refs":Et,"no-x-security-both-scheme-and-scheme-name":uR,"no-x-security-scheme-name-without-openapi":dR,"outputs-defined":gR,"parameters-unique":vR,"requestBody-replacements-unique":bR,"sourceDescription-name-unique":xR,"sourceDescription-type":dA,"sourceDescriptions-not-empty":SR,"spec-step-mutually-exclusive-fields":wR,"step-onFailure-unique":_R,"step-onSuccess-unique":$R,"stepId-unique":PR,struct:zt,"workflow-dependsOn":ER,"workflowId-unique":AR,"x-security-scheme-name-reference":fR,"x-security-scheme-required-values":hR},TR={};var Qr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Ui("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var Ho=()=>{let e;return{Root:{enter(t){e=Mr(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?pR({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Yr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var Ko=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=dp(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}};var Go=()=>({Root:{PathItem:{Operation(e,t){Yr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function Ste(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=B(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=B(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var pa=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:zi(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"?Ste(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 Wo=()=>({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 Yo=()=>({Tag(e,t){Yr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Qo=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)dp(t.tags[o],e)>dp(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 RR=()=>({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 kR=()=>({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 IR="https://redocly.com/docs/cli/rules/async/security-defined",CR=()=>{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:IR});let a=[...t.keys()];for(let{location:c,channelServers:l}of r){let p=l??a;p.length>0&&p.every(f=>t.get(f))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:IR})}}},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(),ca(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}){nd(i,a)||r.push({location:s,channelServers:n})}}}};var NR={struct:zt,"no-unresolved-refs":Et,assertions:cr,"info-contact":Qr,"info-license-strict":Ho,"operation-operationId":Go,"security-defined":CR,"channels-kebab-case":RR,"no-channel-trailing-slash":kR,"tag-description":Yo,"tags-alphabetical":Qo,"no-duplicated-enum-values":Ln,"no-unsafe-markdown":Vn,"no-duplicated-tag-names":Ko,"no-required-schema-properties-undefined":Un,"no-enum-type-mismatch":Fn,"no-mixed-number-range-constraints":Bo,"no-schema-type-mismatch":zn,"security-scopes-defined":pa,"spec-ref-siblings":Wo},qR={};var jR=()=>({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 DR=()=>({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 MR="#/components/securitySchemes/",wte="#/components/",Eb="https://redocly.com/docs/cli/rules/async/security-defined";function _te(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function $te(e){if(!e.startsWith(MR))return!1;let t=e.slice(MR.length);return t!==""&&!t.includes("/")}var LR=()=>{let e=[],t,r,n,o,i,s=(a,c,l)=>{let p=a.channel,u=B(p)?c(p,l):void 0,h=(B(p)?u?.node:p)?.servers,m,y;return h&&h.length>0?(m=h,y=u?.location?.source.absoluteRef??l):(m=t?Object.values(t):[],y=r),m.length===0?!1:m.every(b=>{let x=B(b)?c(b,y).node:b;return ca(x)})};return{Root:{enter(a,{location:c,resolve:l}){let p=a?.servers;if(B(p)){let f=l(p);t=f.node??void 0,r=f.location?.source.absoluteRef}else t=p,r=void 0;let u=a?.operations;if(B(u)){let f=l(u);n=f.node??void 0,o=f.location?.source.absoluteRef,i=f.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(wte))&&!$te(p.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:p.location.key(),reference:Eb});continue}p.resolved||c({message:`There is no \`${p.name}\` security scheme defined.`,location:p.location.key(),reference:Eb})}if(n&&i){let p=i;for(let[u,f]of Object.entries(n)){let h,m;if(B(f)){let y=l(f,o);h=y.node,m=y.location?.source.absoluteRef}else h=f,m=o;h&&(nd(h,l,m)||s(h,l,m)||c({message:"Every operation should have security defined on it.",location:p.child([u]).key(),reference:Eb}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:l}){if(a)for(let p=0;p<a.length;p++){let u=a[p];if(!B(u))continue;let f=c.child([p]),h=l(u),m=_te(u.$ref),y=m.split("/").pop()??u.$ref;e.push({location:f,name:y,refPointer:m,resolved:h.node!=null,local:u.$ref.startsWith("#")})}}}}};function Pte(e,t,r){if(!e.flows)return[];let{node:n,location:o}=B(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=B(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var FR=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=B(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"?Pte(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:zi(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var UR={struct:zt,"no-unresolved-refs":Et,assertions:cr,"info-contact":Qr,"info-license-strict":Ho,"operation-operationId":Go,"security-defined":LR,"channels-kebab-case":jR,"no-channel-trailing-slash":DR,"tag-description":Yo,"tags-alphabetical":Qo,"no-duplicated-enum-values":Ln,"no-unsafe-markdown":Vn,"no-duplicated-tag-names":Ko,"no-required-schema-properties-undefined":Un,"no-enum-type-mismatch":Fn,"no-mixed-number-range-constraints":Bo,"no-schema-type-mismatch":zn,"security-scopes-defined":FR,"spec-ref-siblings":Wo},zR={};function BR(e){return Cc(Mn).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:td.has(t),runsOnValues:rd.has(t)}))}var HR=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=BR(n),s=Ete(n);r.push({[o]:(a,c)=>{Ate(a,c,s)&&Ote(a,c,n,i)}})}return r};function Ete(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!nt(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:BR(t)}}):[]}function Ate(e,t,r){let n=r,o=r.at(-1);if(o&&o.kind===e.kind){if(!VR(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&&VR(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function VR(e,t,r){let{value:n}=KR(e,t.definition.subject.property),o=new Ct(r.source,"#/");return t.assertsToApply.every(i=>Mn[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function Ote(e,t,r,n){let o=GR(r.subject.property),{value:i,locNode:s}=KR(e,r.subject.property),a=new Ct(t.source,"#/"),c=n.flatMap(p=>Mn[p.name](i,p.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let l=`${ue.blue(r.assertionId)} failed because the ${ue.blue(r.subject.type)} ${ue.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:wb(r.message??l,{problems:xb(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:Sb(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Ab(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 KR(e,t){let r=GR(t);if(r===void 0)return Ab(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>Ab(i).value),locNode:e};let o=Ab(n);return{value:o.value,locNode:Tte(o.locNode)?o.locNode:e}}function Tte(e){return A(e)&&"kind"in e}function GR(e){return Array.isArray(e)?e[0]:e}var Rte=["Query","Mutation","Subscription"];function kte(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var WR=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=p=>t.add(kte(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 f of u.arguments??[])o(f.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 f of Rte)e.has(f)&&r.add(f);if(r.size!==0)for(let[f,h]of e)t.has(f)||r.has(f)||u.report({message:`Type \`${f}\` is declared but never used.`,node:h})}}}};var la=tn(Nq(),1),YR=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,la.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){Ite(n,t);return}for(let n of(0,la.validateSchema)(r))QR(n,t)}}});function Ite(e,t){if(e instanceof la.GraphQLError)QR(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function QR(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 JR=()=>{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 XR={struct:YR,assertions:HR,"no-unused-types":WR,"type-description":JR};var ua=()=>({Info(e,{report:t}){e.license||t({message:Ui("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var id=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let o of Object.keys(e)){let i=Cte(o),s=`${i.segments.length}:${i.variableCount}`,a=n.get(s);a||(a=[],n.set(s,a));let c;for(let l of a)if(Nte(l,i)){c=l;break}c&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${c.path}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),a.push(i)}}});function Cte(e){let t=e.split("/"),r=[],n=0;for(let o of t){let i=/^{.+?}$/.test(o);r.push(i),i&&n++}return{path:e,segments:t,isVariable:r,variableCount:n}}function Nte(e,t){for(let r=0;r<e.segments.length;r++)if(!(e.isVariable[r]||t.isVariable[r])&&e.segments[r]!==t.segments[r])return!1;return!0}function sd(e){return e.startsWith("{")&&e.endsWith("}")}function ZR(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(_t).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 qte=["get","head","post","put","patch","delete","options","trace"],ad=({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||sd(c))continue;let l=p=>e?ZR(c).has(p):c.toLocaleLowerCase().includes(p);for(let p of qte)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 cd=()=>({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 pd=e=>{let t=new Dn;return{Parameter:{leave(r,n){if(wt(r.example)&&Vo({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=od(i);s&&Vo({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 ld=e=>{let t=new Dn;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)Vo({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(wt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Vo({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 ud=()=>({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 dd=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){let o=Object.keys(r||{});up({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}},WebhooksMap:{Responses(r,{report:n}){if(!e)return;let o=Object.keys(r||{});up({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}});var fd=({validateWebhooks:e,excludedMethods:t=[]})=>{let r=new Set(t.map(o=>o.toLowerCase())),n={skip:(o,i)=>r.has(String(i).toLowerCase()),Responses(o,{report:i}){up({responseCodes:Object.keys(o||{}),codeRange:"4XX",report:i,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}};return{Paths:{Operation:n,Callback:{Operation:n}},WebhooksMap:{skip:()=>!e,Operation:n,Callback:{Operation:n}}}};var md=()=>({Operation(e,t){Yr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var hd=()=>{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 jte=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,yd=()=>({Operation(e,{report:t,location:r}){e.operationId&&!jte.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 gd=()=>{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.
127
+ 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 vd=()=>({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 bd=()=>({Operation(e,t){Yr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var xd=()=>{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 Sd=()=>({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 wd=()=>({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 Dte=["get","head","post","put","patch","delete","options","query","trace"],_d=e=>{let t=e&&e.order||Dte;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 $d=()=>({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 Mte=/\{([a-zA-Z0-9_.-]+)\}+/g,Lte=2,da=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){ek(e,n)},leave(){Fte(e)},Parameter(r,{report:n,location:o,rawLocation:i}){tk({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:rk(e,new Set)}}},ek=(e,t)=>{e.current={path:t,templateParams:Ute(t),definedParams:new Set}},Fte=e=>{e.current=null},tk=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),nk({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},rk=(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>=Lte)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,ek(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:l}){tk({parameter:s,pathContext:e,report:a,location:c,rawLocation:l})},get Operation(){return rk(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||Vte({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}){zte(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),nk({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},Ute=e=>new Set(Array.from(e.matchAll(Mte)).map(t=>t[1])),zte=(e,t)=>{A(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},nk=({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"})}},Vte=({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 ok=tn(hf(),1);var Pd=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)||!sd(l)&&ok.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 Ed=()=>({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 Ad=()=>{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 ho(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var Od=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[ho(i)]||t[ho(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 ik=["string","integer","number","boolean","null"],Td=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(ot(e,i)).node;!s||!Bte(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 Bte(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>ik.includes(t)):ik.includes(e.type)}var Rd=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 kd=()=>{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)&&B(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 sk=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 fa({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 Jo({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 ak=({allowedValues:e})=>({Root(t,r){fa({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){fa({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var ck=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[ho(r)]||t[ho(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 pk=({allowedValues:e})=>({Root(t,r){fa({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){fa({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var lk={struct:zt,"no-invalid-schema-examples":ld,"no-invalid-parameter-examples":pd,"info-contact":Qr,"info-license":ua,"info-license-strict":Ho,"tag-description":Yo,"tags-alphabetical":Qo,"paths-kebab-case":Ed,"no-enum-type-mismatch":Fn,"boolean-parameter-prefixes":sk,"no-path-trailing-slash":ud,"operation-2xx-response":dd,"operation-4xx-response":fd,assertions:cr,"operation-operationId-unique":hd,"operation-parameters-unique":gd,"path-parameters-defined":da,"operation-tag-defined":xd,"path-declaration-must-exist":wd,"operation-operationId-url-safe":yd,"operation-operationId":Go,"operation-summary":bd,"operation-description":md,"path-not-include-query":$d,"path-params-defined":da,"parameter-description":Sd,"operation-singular-tag":vd,"security-defined":Rd,"security-scopes-defined":pa,"no-unresolved-refs":Et,"no-identical-paths":cd,"no-ambiguous-paths":id,"path-http-verbs-order":_d,"no-http-verbs-in-paths":ad,"request-mime-type":ak,"response-mime-type":pk,"path-segment-plural":Pd,"response-contains-header":Od,"response-contains-property":ck,"scalar-property-missing-example":Td,"required-string-property-missing-min-length":Ad,"spec-strict-refs":kd,"spec-ref-siblings":Wo,"no-required-schema-properties-undefined":Un,"no-schema-type-mismatch":zn,"no-duplicated-enum-values":Ln,"no-unsafe-markdown":Vn,"no-duplicated-tag-names":Ko},uk={};var dk=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=B(t.schema)?r.resolve(t.schema).node:t.schema;n&&Hte(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 Hte(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 fk=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 ma="Schema",Ob="Parameter",Tb="Response",Rb="RequestBody",Kte={[ma]:"schemas",[Ob]:"parameters",[Tb]:"responses",[Rb]:"requestBodies"},mk=e=>{let t=new Map,r=new Map,n=e.strategy==="title",o,i=[];e.schemas!=="off"&&i.push(ma),e.parameters!=="off"&&i.push(Ob),e.responses!=="off"&&i.push(Tb),e.requestBodies!=="off"&&i.push(Rb);let s={ref:{leave(u,{type:f,resolve:h,location:m}){let y=f.name;if(i.includes(y)){let b=h(u);if(!b.location)return;let x=ui(b);if(p(y,x.location,m)){let{title:w,name:S}=ll(x.node);if(w){c(y,S,x.location,x.location.child("title"));return}r.set(x.location.absolutePointer.toString(),x.location),l(y,x.location);return}l(y,b.location)}}},Root:{enter(u,{location:f}){o=f.source.absoluteRef},leave(u,f){t.forEach((h,m,y)=>{if(h.size>1){let b=Yte(m),x=Gte(b.typeName),w=x?e[x]:null;for(let[S,P]of h){let $=Array.from(h.keys()).filter(C=>C!==S).map(C=>`- ${C}`).join(`
128
+ `),O={message:`Component '${x}/${b.componentName}' is not unique. It is also defined at:
129
+ ${$}`,location:P,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};w&&(O.forceSeverity=w),f.report(O)}}});for(let h of r.values()){let m={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:h,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&(m.forceSeverity=e.schemas),f.report(m)}}}};return e.schemas!="off"&&(s.NamedSchemas={Schema(u,{location:f,key:h,parentLocations:m}){if(p(ma,f)){c(ma,String(h),m.NamedSchemas.child(h));return}l(ma,f)}}),e.responses!="off"&&(s.NamedResponses={Response(u,{location:f}){l(Tb,f)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(u,{location:f}){l(Ob,f)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(u,{location:f}){l(Rb,f)}}),s;function a(u){let f=u.split("/").slice(-1)[0];return Ca(f)?f.slice(0,f.lastIndexOf(".")):f}function c(u,f,h,m=h){let y=Wte(u,f),b=t.get(y)??new Map,x=h.absolutePointer.toString();b.has(x)||b.set(x,m),t.set(y,b)}function l(u,f){let h=a(f.absolutePointer.toString());c(u,h,f)}function p(u,f,h=f){return n&&u===ma&&(f.source.absoluteRef!==o||h.source.absoluteRef!==o)}};function Gte(e){return Kte[e]??null}function Wte(e,t){return`${e}/${t}`}function Yte(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var hk=()=>({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 yk=()=>({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 Qte=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"]),Sk=()=>({AllOf(e,t){let r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!Jte(e[0],t.resolve))&&kb(e,"allOf",t),Ib(e,"allOf",t),Cb(e,"allOf",t))},AnyOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let n=A(r.discriminator);e.length<2&&!n&&kb(e,"anyOf",t),Ib(e,"anyOf",t),Cb(e,"anyOf",t),n&&gk(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&&kb(e,"oneOf",t),Ib(e,"oneOf",t),Cb(e,"oneOf",t),o&&gk(e,"oneOf",t),Cd(r)&&Xte(e,t),Zte(e,o?n:void 0,t)}});function kb(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 Jte(e,t){return A(fp(e,t)?.schema.discriminator)}function Ib(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 gk(e,t,r){for(let[n,o]of e.entries())B(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 Cb(e,t,r){for(let n=1;n<e.length;n++){let o=e.findIndex(i=>At(i,e[n]));o<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${o+1}.`,location:r.location.child([n])})}}function Xte(e,t){e.some(n=>{let o=fp(n,t.resolve);return o?Cd(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 Zte(e,t,r){let{resolve:n,report:o,location:i}=r,s=r.specVersion!=="oas3_2",a=e.map(c=>fp(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||At(e[c],e[p]))continue;let f=ere(l,u,n,t,s);f&&o({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${vk(e[c],c)} and ${vk(e[p],p)}. ${f}`,location:i.key()})}}}function vk(e,t){return B(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function ere(e,t,r,n,o){let i=e.schema,s=t.schema;if(Id(i)||Id(s)||wk(i,s))return null;if(Cd(i)&&Cd(s))return"Both schemas accept `null`.";let a=hp(i),c=hp(s);if(a&&c){let p=a.filter(u=>c.some(f=>At(u,f)));return`Both schemas allow the values ${JSON.stringify(p)}.`}if(n)return o?tre(i,s,n):null;let l=rre(e,t,r);if(l)return l;if(!i.properties&&!s.properties){let p=$k(i,s);if(p?.length)return`Both schemas accept ${p.map(u=>`\`${u}\``).join(", ")}.`}return null}function tre(e,t,r){let{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:wt(ot(e.properties??{},n))&&wt(ot(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 rre(e,t,r){let n=nre(e,t);if(!n||bk(e.schema,n.leftProperties,n.rightRequired)||bk(t.schema,n.rightProperties,n.leftRequired)||ore(n)||n.sharedNames.length===0)return null;let o=ire(n,r);if(!o)return null;let{optionalDistinguishingNames:i,ambiguousNames:s}=o;if(i.length>0){let a=s.length>0?` Other shared properties: ${Nb(s)}.`:"";return`Add ${Nb(i)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${a}`}return s.length>0?`Both schemas define ${Nb(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function nre(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=>ot(n,o))}}function ore({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){let o=[...r].some(s=>!ot(t,s)&&!n.has(s)),i=[...n].some(s=>!ot(e,s)&&!r.has(s));return o&&i}function ire({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),f=fp(ot(r,p),a,e),h=fp(ot(n,p),a,t);if(!(!f||!h)&&!(Id(f.schema)||Id(h.schema))){if(wk(f.schema,h.schema)){if(u)return null;c.push(p);continue}l.push(p)}}return{optionalDistinguishingNames:c,ambiguousNames:l}}function bk(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!ot(t,n))}function wk(e,t){let r=hp(e),n=hp(t);return r&&n?!r.some(o=>n.some(i=>At(o,i))):$k(e,t)?.length===0}function fp(e,t,r){if(B(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 Id(e){return Object.keys(e).some(t=>!Qte.has(t)&&!t.startsWith("x-"))}function _k(e){return"nullable"in e&&e.nullable===!0}function mp(e){let t=e.type;if(t===void 0)return;let r=new Set(Array.isArray(t)?t:[t]);return _k(e)&&r.add("null"),r}function $k(e,t){let r=mp(e),n=mp(t);if(!r||!n)return;let o=[...r].filter(i=>n.has(i));return o.length===0&&sre(e,t)?["integer"]:o}function sre(e,t){let r=mp(e),n=mp(t);return r?.has("integer")&&n?.has("number")?xk(t):r?.has("number")&&n?.has("integer")?xk(e):!1}function xk(e){let t=hp(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function Cd(e){return _k(e)||mp(e)?.has("null")===!0}function hp(e){if(e.enum)return e.enum;let t="const"in e?e.const:void 0;return wt(t)?[t]:void 0}function Nb(e){return e.map(t=>`\`${t}\``).join(", ")}var Pk=e=>{let t=new Dn,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(wt(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,f){if(B(p)){let m=c(p);if(!m.location)return;u=m.location,p=m.node}let h=p;if(f){let m=od(p);if(!m)return;h=m.value,u=u.child(m.field)}Vo({example:h,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 Ek=()=>({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 Ak=()=>({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 Tk=()=>({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=Ok(o);i&&n.push(...i)}else{let o=Ok(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 Ok(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 Rk=()=>({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 kk=()=>{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=>B(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 Ik=()=>({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 qb="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",Ck=()=>({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:qb})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Yr({fieldName:"schema",value:e,ctx:t,reference:qb}),!e.schema)return;let{schema:r,location:n}=Li(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(let o of["type","title"])mo(e.schema,o,t)||t.report({message:Ui("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:qb})}}}});var Nk=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Jo({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){Jo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Jo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var qk=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[ho(r)]||t[ho(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 jk=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Jo({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){Jo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Jo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var Dk=()=>{let e=`^[${Cp}]+$`;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 Mk=()=>{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=Li(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 Lk=()=>({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 Fk=()=>({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 Uk=()=>{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 zk(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function Vk(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 Bk(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 Hk=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,Vk(zk(n.parameters||[]),o)},Parameter(n,o){Bk(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+zk(n.parameters||[]);Vk(i,o)},Parameter(n,o){Bk(n,o.location,t,o)}}}}};var Kk=()=>({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 Gk={struct:zt,"info-contact":Qr,"info-license":ua,"info-license-strict":Ho,"operation-2xx-response":dd,"operation-4xx-response":fd,"operation-4xx-problem-details-rfc7807":Ck,assertions:cr,"operation-operationId-unique":hd,"operation-parameters-unique":gd,"operation-tag-defined":xd,"no-example-value-and-externalValue":yk,"no-mixed-number-range-constraints":Bo,"no-enum-type-mismatch":Fn,"no-path-trailing-slash":ud,"no-empty-servers":hk,"path-declaration-must-exist":wd,"operation-operationId-url-safe":yd,"operation-operationId":Go,"operation-summary":bd,"tags-alphabetical":Qo,"no-server-example.com":Ek,"no-server-trailing-slash":Ak,"tag-description":Yo,"operation-description":md,"no-unused-components":kk,"path-not-include-query":$d,"path-parameters-defined":da,"path-params-defined":da,"parameter-description":Sd,"operation-singular-tag":vd,"security-defined":Rd,"security-scopes-defined":pa,"no-unresolved-refs":Et,"paths-kebab-case":Ed,"boolean-parameter-prefixes":fk,"path-http-verbs-order":_d,"no-illogical-composition-keywords":Sk,"no-invalid-media-type-examples":Pk,"no-identical-paths":cd,"no-ambiguous-paths":id,"no-undefined-server-variable":Rk,"no-server-variables-empty-enum":Tk,"no-http-verbs-in-paths":ad,"request-mime-type":Nk,"response-mime-type":jk,"path-segment-plural":Pd,"no-invalid-schema-examples":ld,"no-invalid-parameter-examples":pd,"response-contains-header":Od,"response-contains-property":qk,"scalar-property-missing-example":Td,"spec-components-invalid-map-name":Dk,"required-string-property-missing-min-length":Ad,"spec-strict-refs":kd,"component-name-unique":mk,"array-parameter-serialization":dk,"no-required-schema-properties-undefined":Un,"no-schema-type-mismatch":zn,"no-duplicated-enum-values":Ln,"no-unsafe-markdown":Vn,"no-duplicated-tag-names":Ko,"nullable-type-sibling":Ik,"spec-no-invalid-tag-parents":Uk,"spec-no-invalid-encoding-combinations":Fk,"spec-discriminator-defaultMapping":Mk,"spec-example-values":Lk,"spec-querystring-parameters":Hk,"spec-ref-siblings":Kk},Wk={};var Yk=()=>{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 Qk=()=>({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 Jk=()=>({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 Xk={struct:zt,"no-unresolved-refs":Et,assertions:cr,"info-license":ua,"no-unused-components":Yk,"info-contact":Qr,"spec-no-duplicated-method-params":Qk,"spec-no-required-params-after-optional":Jk,"spec-ref-siblings":Wo},Zk={};var are=["$ref","target","description"],e1=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name==="ReusableAction"){for(let o of Object.keys(e))are.includes(o)||o.startsWith("x-")||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"});Object.hasOwn(e,"target")||t({message:"The field `target` must be present next to `$ref`.",location:r.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}}});var t1={"info-contact":Qr,struct:zt,"no-unresolved-refs":Et,"spec-ref-siblings":e1,assertions:cr},r1={};var cre={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","spec-ref-siblings":"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"}},n1=cre;var jb={"enum-values-added":"major","enum-values-removed":"major","media-type-removed":"major","operation-id-changed":"major","operation-removed":"major","parameter-became-required":"major","parameter-removed":"major","parameter-serialization-changed":"major","path-removed":"major","property-removed":"major","request-body-became-required":"major","request-body-removed":"major","required-properties-added":"major","required-properties-removed":"major","response-header-removed":"major","response-removed":"major","schema-combinator-changed":"major","schema-constraint-changed":"major","schema-type-changed":"major","security-requirement-changed":"major","security-scheme-changed":"major","server-removed":"major"},pre={"channel-address-changed":"major","channel-removed":"major","enum-values-added":"major","enum-values-removed":"major","message-content-type-changed":"major","message-removed":"major","operation-action-changed":"major","operation-removed":"major","property-removed":"major","required-properties-added":"major","required-properties-removed":"major","schema-constraint-changed":"major","schema-type-changed":"major","server-removed":"major"},lre={oas3_0Diff:jb,oas3_1Diff:jb,oas3_2Diff:jb,async3Diff:pre},o1=lre;var ure={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","spec-ref-siblings":"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"}},i1=ure;var dre={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","spec-ref-siblings":"error"},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"}},s1=dre;var fre={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","spec-ref-siblings":"warn"},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"}},a1=fre;var mre={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","spec-ref-siblings":"error"},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"}},c1=mre;var hre={recommended:a1,"recommended-strict":s1,minimal:i1,all:n1,spec:c1,"diff-recommended":o1},Db={id:"",rules:{oas3:Gk,oas2:lk,async2:NR,async3:UR,arazzo1:OR,overlay1:t1,openrpc1:Xk,graphql:XR},preprocessors:{oas3:Wk,oas2:uk,async2:qR,async3:zR,arazzo1:TR,overlay1:r1,openrpc1:Zk},decorators:{oas3:pA,oas2:sA,async2:nA,async3:oA,arazzo1:rA,overlay1:uA,openrpc1:lA},diff:El,configs:hre};function Nd(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}import*as p1 from"node:url";var Mb=new Map,yre="v",gre=0;function l1(e){return Mb.has(e)}function u1(e){return Mb.get(e)}function d1(e,t){Mb.set(e,t)}async function f1(e){let t=p1.pathToFileURL(e);return t.searchParams.set(yre,String(gre)),import(t.href)}var yp="recheck";function m1(e){return e.startsWith(`${yp}/`)}function vre(e,t){let r=typeof e=="string"&&A(t)?{severity:e}:e;if(!A(r))return t;if(typeof t=="string")return{...r,severity:t};if(!A(t))return t;let n={...r,...t};return A(r.assertions)&&A(t.assertions)&&(n.assertions={...r.assertions,...t.assertions}),n}function bre(e,t){let r=A(e)?{...e}:{};if(A(t))for(let[n,o]of Object.entries(t))r[n]=vre(r[n],o);return r}function h1(e,t){if(!A(e)||t==null)return e;if(!A(t))return t;let{rules:r,...n}=t;return{...e,...n,rules:bre(e.rules,r)}}var ge=(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 Oe(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 y1(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function et(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function qd(e){let t={rules:{}},r={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:{},recheck:t,diff:{},oas3_0Diff:{},oas3_1Diff:{},oas3_2Diff:{},async3Diff:{}};for(let n of e){if(A(n)&&"extends"in n&&n.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
130
+ ${JSON.stringify(n,null,2)}`);ge(r.rules,n.rules),ge(r.oas2Rules,n.oas2Rules),Oe(r.oas2Rules,n.rules),ge(r.oas3_0Rules,n.oas3_0Rules),Oe(r.oas3_0Rules,n.rules),ge(r.oas3_1Rules,n.oas3_1Rules),Oe(r.oas3_1Rules,n.rules),ge(r.oas3_2Rules,n.oas3_2Rules),Oe(r.oas3_2Rules,n.rules),ge(r.async2Rules,n.async2Rules),Oe(r.async2Rules,n.rules),ge(r.async3Rules,n.async3Rules),Oe(r.async3Rules,n.rules),ge(r.arazzo1Rules,n.arazzo1Rules),Oe(r.arazzo1Rules,n.rules),ge(r.arazzo1_1Rules,n.arazzo1_1Rules),Oe(r.arazzo1_1Rules,n.rules),ge(r.overlay1Rules,n.overlay1Rules),Oe(r.overlay1Rules,n.rules),ge(r.openrpc1Rules,n.openrpc1Rules),Oe(r.openrpc1Rules,n.rules),ge(r.graphqlRules,n.graphqlRules),Oe(r.graphqlRules,n.rules),ge(r.preprocessors,n.preprocessors),ge(r.oas2Preprocessors,n.oas2Preprocessors),Oe(r.oas2Preprocessors,n.preprocessors),ge(r.oas3_0Preprocessors,n.oas3_0Preprocessors),Oe(r.oas3_0Preprocessors,n.preprocessors),ge(r.oas3_1Preprocessors,n.oas3_1Preprocessors),Oe(r.oas3_1Preprocessors,n.preprocessors),ge(r.oas3_2Preprocessors,n.oas3_2Preprocessors),Oe(r.oas3_2Preprocessors,n.preprocessors),ge(r.async2Preprocessors,n.async2Preprocessors),Oe(r.async2Preprocessors,n.preprocessors),ge(r.async3Preprocessors,n.async3Preprocessors),Oe(r.async3Preprocessors,n.preprocessors),ge(r.arazzo1Preprocessors,n.arazzo1Preprocessors),Oe(r.arazzo1Preprocessors,n.preprocessors),ge(r.arazzo1_1Preprocessors,n.arazzo1_1Preprocessors),Oe(r.arazzo1_1Preprocessors,n.preprocessors),ge(r.overlay1Preprocessors,n.overlay1Preprocessors),Oe(r.overlay1Preprocessors,n.preprocessors),ge(r.openrpc1Preprocessors,n.openrpc1Preprocessors),Oe(r.openrpc1Preprocessors,n.preprocessors),ge(r.decorators,n.decorators),ge(r.oas2Decorators,n.oas2Decorators),Oe(r.oas2Decorators,n.decorators),ge(r.oas3_0Decorators,n.oas3_0Decorators),Oe(r.oas3_0Decorators,n.decorators),ge(r.oas3_1Decorators,n.oas3_1Decorators),Oe(r.oas3_1Decorators,n.decorators),ge(r.oas3_2Decorators,n.oas3_2Decorators),Oe(r.oas3_2Decorators,n.decorators),ge(r.async2Decorators,n.async2Decorators),Oe(r.async2Decorators,n.decorators),ge(r.async3Decorators,n.async3Decorators),Oe(r.async3Decorators,n.decorators),ge(r.arazzo1Decorators,n.arazzo1Decorators),Oe(r.arazzo1Decorators,n.decorators),ge(r.arazzo1_1Decorators,n.arazzo1_1Decorators),Oe(r.arazzo1_1Decorators,n.decorators),ge(r.overlay1Decorators,n.overlay1Decorators),Oe(r.overlay1Decorators,n.decorators),ge(r.openrpc1Decorators,n.openrpc1Decorators),Oe(r.openrpc1Decorators,n.decorators),t=h1(t,n.recheck),ge(r.diff,n.diff),ge(r.oas3_0Diff,n.oas3_0Diff),Oe(r.oas3_0Diff,n.diff),ge(r.oas3_1Diff,n.oas3_1Diff),Oe(r.oas3_1Diff,n.diff),ge(r.oas3_2Diff,n.oas3_2Diff),Oe(r.oas3_2Diff,n.diff),ge(r.async3Diff,n.async3Diff),Oe(r.async3Diff,n.diff)}return r.recheck=t,r}function g1(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Lb(e){return A(e)&&"id"in e}function v1(e){return typeof e=="function"}async function Ub({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:o,plugins:i=[]}){let s=e===void 0?gw:e.parsed;if(n!==void 0&&A(s)&&(s.extends=n),A(s)&&(s?.extends?.some(uu)||s?.scorecardClassic?.levels?.some(m=>m?.extends?.some(uu))||s?.scorecard?.levels?.some(m=>m?.extends?.some(uu))))throw new Error("Configuration format not detected in extends: values must be strings.");let a=e??{source:new Pn(t??"",JSON.stringify(s)),parsed:s},c=await Gt({rootDocument:a,rootType:Co.ConfigRoot,externalRefResolver:r??new Kt(Nd(s?.resolve))}),l=[],p,u="";Tt?p=[...(s?.plugins||[]).filter(y=>!nt(y)),Db,...i]:(u=pr.dirname(t??""),l=x1(a,c,u),p=[...await _1(l.map(y=>b1(y)?y.absolutePath:y),u,o),Db,...i]);let f=S1(a,g1(c),p,o);f.apis&&!o&&(f.apis=Object.fromEntries(Object.entries(f.apis).map(([m,y])=>{let b=qd([f,y]);return[m,{...y,...b}]})));let h=l.length?l.map(m=>b1(m)&&m.isModule?m.rawPath:m.absolutePath&&pr.relative(u,m.absolutePath)).filter(wt):void 0;return{resolvedConfig:{...f,plugins:h},resolvedRefMap:c,plugins:p}}function Sre(e){for(let t of bw){let r=pr.resolve(e,t);if(Fb.existsSync(r))return t}}function b1(e){return"isModule"in e}var jd=(e,t,r)=>{if(!nt(e))return e;let n=pr.resolve(pr.dirname(t),e);if(Fb.existsSync(n))return{absolutePath:n,rawPath:e,isModule:!1};try{return{absolutePath:xre.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?pr.dirname(w1.fileURLToPath(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function _1(e,t,r=!1){if(!e)return[];let n=async c=>{if(!nt(c))return c;try{let l=pr.isAbsolute(c)?c:jd(c,pr.join(t,bs),t).absolutePath;if(!l1(l)){let p=await f1(l),u=p.default||p,f={contentDir:t},h=Array.isArray(u)?u:[u];for(let b of h)b?.id&&Lb(b)&&de.info(`Deprecated plugin format detected: ${b.id}
131
+ `);let m=Lb(u)?u:v1(u)?await u(f):await u?.default?.(f),y=Array.isArray(m)?m:[m];m&&d1(l,y.map(b=>({...b,path:c,absolutePath:l})))}return u1(l)}catch(l){throw new Error(`Failed to load plugin "${c}": ${l.message}
132
+
133
+ ${l.stack}`)}},o=new Map,i=Sre(t);i&&e.push(i);let s=new Set;if(r){let c=[];for(let l of e){if(!nt(l)){c.push(l);continue}let p=pr.isAbsolute(l)?l:jd(l,pr.join(t,bs),t).absolutePath;s.has(p)||(s.add(p),c.push({absolutePath:p}))}return c}return(await Promise.all(e.map(async c=>{if(nt(c)){if(le(c))throw new Error(ue.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 f=u.id;if(typeof f!="string")throw new Error(ue.red(`Plugin must define \`id\` property in ${ue.blue(c.toString())}.`));if(f===yp)throw new Error(`Plugin id "${f}" is reserved for Recheck presets.`);let h=u.absolutePath??c.toString(),m=o.get(f);if(m){if(h!==m)throw new Error(ue.red(`Plugin "id" must be unique. Plugin ${ue.blue(h)} uses id "${ue.blue(f)}" already seen in ${ue.blue(h)}`));return}o.set(f,h);let y={id:f,...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}.`);y.rules={},u.rules.oas3&&(y.rules.oas3=et(u.rules.oas3,f)),u.rules.oas2&&(y.rules.oas2=et(u.rules.oas2,f)),u.rules.async2&&(y.rules.async2=et(u.rules.async2,f)),u.rules.async3&&(y.rules.async3=et(u.rules.async3,f)),u.rules.arazzo1&&(y.rules.arazzo1=et(u.rules.arazzo1,f)),u.rules.overlay1&&(y.rules.overlay1=et(u.rules.overlay1,f)),u.rules.openrpc1&&(y.rules.openrpc1=et(u.rules.openrpc1,f)),u.rules.graphql&&(y.rules.graphql=et(u.rules.graphql,f))}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}.`);y.preprocessors={},u.preprocessors.oas3&&(y.preprocessors.oas3=et(u.preprocessors.oas3,f)),u.preprocessors.oas2&&(y.preprocessors.oas2=et(u.preprocessors.oas2,f)),u.preprocessors.async2&&(y.preprocessors.async2=et(u.preprocessors.async2,f)),u.preprocessors.async3&&(y.preprocessors.async3=et(u.preprocessors.async3,f)),u.preprocessors.arazzo1&&(y.preprocessors.arazzo1=et(u.preprocessors.arazzo1,f)),u.preprocessors.overlay1&&(y.preprocessors.overlay1=et(u.preprocessors.overlay1,f)),u.preprocessors.openrpc1&&(y.preprocessors.openrpc1=et(u.preprocessors.openrpc1,f))}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}.`);y.decorators={},u.decorators.oas3&&(y.decorators.oas3=et(u.decorators.oas3,f)),u.decorators.oas2&&(y.decorators.oas2=et(u.decorators.oas2,f)),u.decorators.async2&&(y.decorators.async2=et(u.decorators.async2,f)),u.decorators.async3&&(y.decorators.async3=et(u.decorators.async3,f)),u.decorators.arazzo1&&(y.decorators.arazzo1=et(u.decorators.arazzo1,f)),u.decorators.overlay1&&(y.decorators.overlay1=et(u.decorators.overlay1,f)),u.decorators.openrpc1&&(y.decorators.openrpc1=et(u.decorators.openrpc1,f))}if(u.assertions&&(y.assertions=u.assertions),u.diff){if(!u.diff.oas3&&!u.diff.async3)throw new Error(`Plugin diff rules must have \`oas3\` or \`async3\` rules "${c}.`);y.diff={},u.diff.oas3&&(y.diff.oas3=et(u.diff.oas3,f)),u.diff.async3&&(y.diff.async3=et(u.diff.async3,f))}return{...u,...y}}))).filter(wt)}))).filter(wt).flat()}function $1(e,t){let{pluginId:r,configName:n}=y1(e),o=t.find(s=>s.id===r);if(!o)throw new Error(`Invalid config ${ue.red(e)}: plugin ${r} is not included.`);let i=o.configs?.[n];if(!i)throw new Error(r?`Invalid config ${ue.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${ue.red(e)}: there is no such built-in config.`);return i}function zb({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=r.some(i=>i.id===yp),o=(e.extends||[]).filter(_t).map(i=>{if(!le(i)&&!wre.extname(i))return m1(i)&&!n?null:$1(i,r);let s=t.resolve({$ref:i});return s.location&&s.node!==void 0?s.node:null}).filter(_t);return qd([...o.map(i=>zb({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function Dd(e,t){if(A(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>jd(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var P1=ht([{severity:"error",ruleId:ml,visitor:{ref:{},ConfigGovernance:{leave(e,t){Dd(e,t)}},ConfigApisProperties:{leave(e,t){Dd(e,t)}},[jt.ScorecardClassicLevel]:{leave(e,t){Dd(e,t)}},ConfigRoot:{leave(e,t){Dd(e,t)}}}}],Co);function Md(e,t){if(A(e)&&e.extends){let{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;let o=zb({node:e,ctx:t,plugins:r});Object.assign(e,o),delete e.extends}}var E1=ht([{severity:"error",ruleId:fl,visitor:{ref:{leave(e,t,r){Ea(e,r,t)}},ConfigGovernance:{leave(e,t){Md(e,t)}},ConfigApisProperties:{leave(e,t){Md(e,t)}},[jt.ScorecardClassicLevel]:{leave(e,t){Md(e,t)}},ConfigRoot:{leave(e,t){Md(e,t)}}}}],Co);function x1(e,t,r){let n={plugins:[],rootConfigDir:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ml]:n}};return yt({document:e,rootType:Co.ConfigRoot,normalizedVisitors:P1,resolvedRefMap:t,ctx:o}),n.plugins}function S1(e,t,r,n=!1){let o={plugins:r,skipPluginEval:n},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[fl]:o}};return yt({document:e,rootType:Co.ConfigRoot,normalizedVisitors:E1,resolvedRefMap:t,ctx:i}),e.parsed??{}}async function _re(e){let{ref:t,doc:r,externalRefResolver:n=new Kt(e.config.resolve),base:o=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
134
+ `);let i=r===void 0?await n.resolveDocument(o,t,!0):r;if(i instanceof Error)throw i;return e.collectSpecData?.(i),Hm({document:i,...e,externalRefResolver:n,types:Wn(Mr(i.parsed))})}import*as Sn from"node:path";var Gi=tn(KI(),1);var aie=150,cie=3;function Yd(e,t){Fa.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-cie+1,0);c<2&&(c=0);let l=[],p=0;for(let f=s;f<=a&&!(c>0&&f>=a-c);f++){let h=i[f-1]||"";h!==""&&(p=Wd(h));let m=f===s?r.col-1:p,y=f===a?n.col-1:h.length;l.push([`${f}`,u(h,m,y,ue.red)]),t||l.push(["",GI(h,m,y)])}return c>0&&(l.push(["\u2026",`${h0(p)}${ue.gray(`< ${c} more lines >`)}`]),l.push([`${a}`,u(i[a-1],-1,n.col-1,ue.red)]),t||l.push(["",GI(i[a-1],-1,n.col-1)])),pie([[`${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(f,h=-1,m=1/0,y=ue.gray){return!t||!f?f:(h===-1&&(h=Wd(f)),m=Math.min(m,f.length),f.substr(0,h)+y(f.substring(h,m))+f.substr(m))}}function pie(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:Wd(i)));return t.map(([o,i])=>ue.gray(uie(r,o)+" |")+(i?" "+lie(i.substring(n)):"")).join(`
135
+ `)}function lie(e,t=aie){let r=e.length-t;if(r>0){let n=ue.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function GI(e,t=-1,r=1/0){return t===-1&&(t=Wd(e)),r=Math.min(r,e.length),h0(t)+"^".repeat(Math.max(r-t,1))}function h0(e){return" ".repeat(e)}function uie(e,t){return h0(e-t.length)+t}function Wd(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function Hn(e){if(e.pointer===void 0)return e;let{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(Gi.safeLoad),i=QI(o,r,!!n);return{...e,pointer:void 0,...fie(t,i?.startPosition??1,i?.endPosition??1)}}var WI=new WeakMap;function die(e){let t=WI.get(e);if(!t){t=[0];for(let r=0;r<e.body.length;r++)e.body[r]===`
136
+ `&&t.push(r+1);WI.set(e,t)}return t}function YI(e,t,r){let n=0,o=t.length-1;for(;n<o;){let a=Math.floor((n+o+1)/2);t[a]<=r?n=a:o=a-1}let i=t[n],s=0;return n>0&&e.body[i]==="\r"&&r>i&&(s=1),{line:n+1,col:r-i+1-s}}function fie(e,t,r){if(t===r)return{start:{line:1,col:1},end:{line:1,col:1}};let n=die(e),o=YI(e,n,t),i=YI(e,n,r-1);return{start:o,end:{line:i.line,col:i.col+1}}}function QI(e,t,r){let n=Rp(t.substr(2));if(e===void 0)return;let o=e;for(let i of n)if(o.kind===Gi.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===Gi.Kind.SEQ){let s=o.items[parseInt(i,10)];if(!s)break;o=s}if(r){let i=o.parent;return!i||i.kind===Gi.Kind.SEQ?o:i.kind===Gi.Kind.MAPPING?i.key:o}else return o}var mie={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},JI={warn:e=>ue.bgYellow(ue.black(e)),error:ue.bgRed},XI={warn:ue.yellow,error:ue.red},wa={warn:"Warning",error:"Error"},hie={error:"critical",warn:"minor"},yie=+(Ma.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function Qd(e){return e==="error"?1:2}function ZI(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 gie(e,t){let{maxProblems:r=100,cwd:n=Tt?"":process.cwd(),format:o="codeframe",color:i=Fa.enabled,totals:s=ZI(e),version:a="2.0",command:c}=t;Fa.enabled=i;let l=e.length;e=e.filter(S=>!S.ignored);let p=l-e.length;if(e=e.sort((S,P)=>Qd(S.severity)-Qd(P.severity)).slice(0,r),!l&&o!=="json"&&o!=="junit")return;switch(o){case"json":f();break;case"codeframe":for(let S=0;S<e.length;S++){let P=e[S];c==="bundle"||c==="check-config"||c==="split"||c==="diff"?de.info(`${m(P,S)}
137
+ `):de.output(`${m(P,S)}
138
+ `)}break;case"stylish":{let S=y0(e);for(let[P,{ruleIdPad:$,locationPad:O,fileProblems:C}]of Object.entries(S)){de.output(`${ue.blue(le(P)?P:Sn.relative(n,P))}:
139
+ `);for(let I=0;I<C.length;I++){let k=C[I];de.output(`${y(k,O,$)}
140
+ `)}de.output(`
141
+ `)}break}case"markdown":{let S=y0(e);for(let[P,{fileProblems:$}]of Object.entries(S)){de.output(`## Lint: ${le(P)?P:Sn.relative(n,P)}
142
+
143
+ `),de.output(`| Severity | Location | Problem | Message |
144
+ `),de.output(`|---|---|---|---|
145
+ `);for(let O=0;O<$.length;O++){let C=$[O];de.output(`${b(C)}
146
+ `)}de.output(`
147
+ `),s.errors>0?de.output(`Validation failed
148
+ Errors: ${s.errors}
149
+ `):de.output(`Validation successful
150
+ `),s.warnings>0&&de.output(`Warnings: ${s.warnings}
151
+ `),de.output(`
152
+ `)}break}case"checkstyle":{let S=y0(e);de.output(`<?xml version="1.0" encoding="UTF-8"?>
153
+ `),de.output(`<checkstyle version="4.3">
154
+ `);for(let[P,{fileProblems:$}]of Object.entries(S))de.output(`<file name="${xn(le(P)?P:Sn.relative(n,P))}">
155
+ `),$.forEach(x),de.output(`</file>
156
+ `);de.output(`</checkstyle>
157
+ `);break}case"junit":{let S=e.filter(O=>O.severity==="error").length,P=e.filter(O=>O.severity==="warn").length,$={};for(let O of e){let C=O.location[0].source.absoluteRef;$[C]||($[C]=[]),$[C].push(O)}de.output(`<?xml version="1.0" encoding="UTF-8"?>
158
+ `),de.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${S}" failures="${P}" skipped="0">
159
+ `);for(let[O,C]of Object.entries($)){let I=le(O)?O:Sn.relative(n,O),k=C.filter(se=>se.severity==="error").length,T=C.filter(se=>se.severity==="warn").length;de.output(`<testsuite name="${xn(I)}" tests="${C.length}" errors="${k}" failures="${T}">
160
+ `),C.forEach(se=>w(se,I)),de.output(`</testsuite>
161
+ `)}de.output(`</testsuites>
162
+ `);break}case"codeclimate":u();break;case"summary":vie(e);break;case"github-actions":xie(e,n)}l-p>r&&de.info(`< ... ${l-r} more problems hidden > ${ue.gray("increase with `--max-problems N`")}
163
+ `);function u(){let S=e.map(P=>{let $=P.location[0],O=Hn($);return{description:P.message,location:{path:le($.source.absoluteRef)?$.source.absoluteRef:Sn.relative(n,$.source.absoluteRef),lines:{begin:O.start.line}},severity:hie[P.severity],fingerprint:`${P.ruleId}${P.location.length>0?"-"+P.location[0].pointer:""}`}});de.output(JSON.stringify(S,null,2))}function f(){let S={totals:s,version:a,problems:e.map(P=>{let $={...P,location:P.location.map(O=>{let{start:C,end:I}=Hn(O);return{...O,start:C,end:I,source:{ref:le(O.source.absoluteRef)?O.source.absoluteRef:Sn.relative(n,O.source.absoluteRef)}}}),from:P.from?{...P.from,source:{ref:le(P.from?.source.absoluteRef)?P.from?.source.absoluteRef:Sn.relative(n,P.from?.source.absoluteRef||n)}}:void 0};if(Ma.FORMAT_JSON_WITH_CODEFRAMES){let O=P.location[0],C=Hn(O);$.codeframe=Yd(C,i)}return $})};de.output(JSON.stringify(S,null,2))}function h(S){let{severity:P}=S;if(!JI[P])throw new Error(mie.INVALID_SEVERITY_LEVEL);return JI[P]}function m(S,P){let $=h(S),O=S.location[0],C=le(O.source.absoluteRef)?O.source.absoluteRef:Sn.relative(n,O.source.absoluteRef),I=Hn(O),k=O.pointer?ue.gray(`at ${O.pointer}`):"",T=`${C}:${I.start.line}:${I.start.col}`;return`[${P+1}] ${$(T)} ${k}
164
+
165
+ ${S.message}
166
+
167
+ `+eC(S)+Yd(I,i)+`
168
+
169
+ `+bie(n,S.from)+`${wa[S.severity]} was generated by the ${ue.blue(S.ruleId)} rule.
170
+
171
+ `+(S.reference?`Reference: ${ue.blue(S.reference)}
172
+
173
+ `:"")}function y(S,P,$){let O=XI[S.severity];if(!wa[S.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let C=O(wa[S.severity].toLowerCase().padEnd(7)),{start:I}=S.location[0];return` ${`${I.line}:${I.col}`.padEnd(P)} ${C} ${S.ruleId.padEnd($)} ${S.message}`}function b(S){if(!wa[S.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let P=wa[S.severity].toLowerCase(),{start:$}=S.location[0];return`| ${P} | line ${`${$.line}:${$.col}`} | [${S.ruleId}](https://redocly.com/docs/cli/rules/${S.ruleId}/) | ${S.message.replaceAll(`
174
+ `,"<br>")} |`}function x(S){let{line:P,col:$}=S.location[0].start,O=S.severity=="warn"?"warning":"error",C=xn(S.message),I=xn(S.ruleId);de.output(`<error line="${P}" column="${$}" severity="${O}" message="${C}" source="${I}" />
175
+ `)}function w(S,P){let $=S.location[0],{start:O}=Hn($),C=S.severity==="error"?"error":"failure",I=xn(S.ruleId),k=xn(S.message),T=[`Rule: ${I}`,`Severity: ${xn(S.severity)}`,`File: ${xn(P)}`,`Line: ${O.line}`,`Column: ${O.col}`];$.pointer&&T.push(`Pointer: ${xn($.pointer)}`),T.push(`Message: ${k}`),de.output(`<testcase classname="${I}" name="${I}" file="${xn(P)}" line="${O.line}">
176
+ `),de.output(`<${C} message="${k}" type="${I}">${T.join(`
177
+ `)}</${C}>
178
+ `),de.output(`</testcase>
179
+ `)}}function vie(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])=>Qd(n.severity)-Qd(o.severity)||o.count-n.count);for(let[n,o]of r){let i=XI[o.severity],s=i(wa[o.severity].toLowerCase().padEnd(7));de.output(`${s} ${n}: ${o.count}
180
+ `)}de.output(`
181
+ `)}function bie(e,t){if(!t)return"";let r=Sn.relative(e,t.source.absoluteRef),n=Hn(t),o=`${r}:${n.start.line}:${n.start.col}`,i=t.pointer?ue.gray(`at ${t.pointer}`):"";return`referenced from ${ue.blue(o)} ${i}
182
+
183
+ `}function eC(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
184
+
185
+ `:`Did you mean:
186
+ - ${e.suggest.slice(0,yie).join(`
187
+ - `)}
188
+
189
+ `}var y0=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(Hn)};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 xn(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 xie(e,t){for(let s of e)for(let a of s.location.map(Hn)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}let l=eC(s),p=s.reference?`Reference: ${s.reference}
190
+
191
+ `:"",u=s.message+(l!==""||p!==""?`
192
+
193
+ `:"")+l+p,f={title:s.ruleId,file:le(a.source.absoluteRef)?a.source.absoluteRef:Sn.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};de.output(`::${c} ${r(f)}::${o(u)}
194
+ `)}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:dOe,...Sie}=ws.properties,wie={...ws,properties:Sie};async function tC(e){let{ref:t,externalRefResolver:r=new Kt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Jd({document:n,...e,externalRefResolver:r})}async function _ie(e){let{source:t,absoluteRef:r,externalRefResolver:n=new Kt(e.config.resolve)}=e,o=si(t,r||"/");return Jd({document:o,...e,externalRefResolver:n})}async function Jd(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(fs(t.source.absoluteRef)){let{lintGraphqlDocument:h}=await import("./2X2KHSF3.js");return h({document:t,config:o})}let i=Mr(t.parsed),s=o.getRulesForSpecVersion(Xn(i)),a=Er(o.extendTypes(r??Wn(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},l=bo(s,o,"preprocessors",i),p=bo(s,o,"rules",i),u=await Gt({rootDocument:t,rootType:a.Root,externalRefResolver:n});l.length>0&&(yt({document:t,rootType:a.Root,normalizedVisitors:ht(l,a),resolvedRefMap:u,ctx:c}),u=await Gt({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let f=ht(p,a);return yt({document:t,rootType:a.Root,normalizedVisitors:f,resolvedRefMap:u,ctx:c}),c.problems.map(h=>o.addProblemToIgnore(h))}async function $ie(e){let{severity:t,externalRefResolver:r=new Kt,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=Er(e.externalConfigTypes||lu(wie,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:zt({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Et({severity:"error"})}],a=ht(s,i),c=n.resolvedRefMap||await Gt({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return yt({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}function rC(e){let{document:t,types:r,resolvedRefMap:n,ctx:o}=e,i=new Map,s=new Map,a=(p,{type:u,key:f,location:h},m)=>{let y={type:u,key:f,location:h,value:p,parent:m??null,children:[]};m?.children.push(y),i.set(p,y);for(let b of s.get(p)??[])b.resolved=y;return y},l=[{severity:"warn",ruleId:"node-tree",visitor:{any:{enter(p,u){if(!(A(p)||Array.isArray(p))||i.has(p))return;let h=i.get(u.rawNode);h?a(p,u).referencedFrom=h:a(p,u,i.get(u.parent))},leave(p){let u=i.get(p);if(u)for(let[f,h]of Object.entries(u.value)){let m=i.get(h);!m||m.parent||(m.parent=u,m.key=Array.isArray(u.value)?Number(f):f,u.children.push(m))}}},ref(p,u,f){if(i.has(p))return;let h=a(p,u,i.get(u.parent)),m=f.chain?.[0]?.node??f.node,y=i.get(m);y?h.resolved=y:s.set(m,[...s.get(m)??[],h])}}},{severity:"error",ruleId:"no-unresolved-refs",visitor:Et({})}];return yt({document:t,rootType:r.Root,normalizedVisitors:ht(l,r),resolvedRefMap:n,ctx:o}),i.get(t.parsed)}function g0(e){return e===null||typeof e=="string"||typeof e=="number"||typeof e=="boolean"}function nC(e){return Array.isArray(e)&&e.every(g0)}function v0(e){return e.kind==="removed"?e.base:e.revision}function aC(e){let{base:t,revision:r}=_n(e);if(!t)return[{path:ri(e),node:e,kind:"added",revision:iC($t(e))}];if(!r)return[{path:ri(e),node:e,kind:"removed",base:iC(t)}];let n=[],o,i=oC(t),s=oC(r);for(let a of Object.keys({...i,...s}))At(i[a],s[a])||(o??=ri(e),n.push({path:o,node:e,kind:"modified",property:a,base:sC(t,a,i[a]),revision:sC(r,a,s[a])}));return n}function oC(e){let t={},r=new Set(e.children.map(n=>n.key));if(A(e.value))for(let[n,o]of Object.entries(e.value))r.has(n)||n==="$ref"&&e.resolved||(g0(o)||nC(o))&&(t[n]=o);return t}function iC(e){return{location:e.location,value:Gn(e)}}function sC(e,t,r){return{location:A(e.value)&&t in e.value?e.location.child([t]):e.location,value:r}}var pC=tn(_b(),1);var Pie=.5;function lC(e,t){let r=[],n=new Set(t),o=[],i=cC([...e,...t],a=>a.value);for(let a of e){let c=Eie(a,n,i);c?(n.delete(c),r.push({base:a,revision:c})):o.push(a)}let s=cC([...o,...n],Gn);for(let a of o){let c=Aie(a,n,s);c&&n.delete(c),r.push({base:a,revision:c})}for(let a of n)r.push({revision:a});return r}function cC(e,t){return new Map(e.map(r=>[r,typeof r.key=="string"?r.key:b0(t(r))]))}function Eie(e,t,r){for(let n of t)if(n.type.name===e.type.name&&r.get(n)===r.get(e))return n}function Aie(e,t,r){let n,o=0;for(let i of t){if(i.type.name!==e.type.name)continue;let s=Oie(e,i,r);s>=Pie&&s>o&&(n=i,o=s)}return n}function Oie(e,t,r){if(Qi(e)==="field")return e.key===t.key?1:0;let n=r.get(e),o=r.get(t),i=Math.max(n.length,o.length);return i===0?1:1-(0,pC.distance)(n,o)/i}function b0(e){return Array.isArray(e)?`[${e.map(b0).join(",")}]`:A(e)?`{${Object.keys(e).sort().map(r=>`${JSON.stringify(r)}:${b0(e[r])}`).join(",")}}`:JSON.stringify(e)??"null"}function uC(e,t){let r=[],n=new Map;function o(i){let s=_n(i);if(s.base&&s.revision){let a=`${s.base.location.absolutePointer}|${s.revision.location.absolutePointer}`,c=n.get(a);if(c){c.referencedBy.push(i);return}n.set(a,i)}if(r.push(...aC(i)),!(!s.base||!s.revision)){for(let a of lC(s.base.children,s.revision.children)){let c={...a,parent:i,referencedBy:[]};a.base&&a.revision&&typeof a.base.key=="string"&&a.base.key!==a.revision.key&&r.push({path:ri(c),node:c,kind:"modified",property:"key",base:{location:a.base.location,value:a.base.key},revision:{location:a.revision.location,value:a.revision.key}}),o(c)}gf(s)&&o({base:s.base.resolved,revision:s.revision.resolved,parent:i,referencedBy:[]})}}return o({base:e,revision:t,parent:null,referencedBy:[]}),r}var Tie=["request","response"];function hC(e){let t=yC(e.revision?"revision":"base",e,new Set);return Tie.filter(r=>t.includes(r))}function yC(e,t,r){if(r.has(t))return[];r.add(t);let n=dC(_n(t)[e])??dC(t[e]);return n?[n]:[t.parent,...t.referencedBy].flatMap(o=>o?yC(e,o,r):[])}function dC(e){switch(e.type.name){case"RequestBody":case"ParameterList":return fC(e,"request");case"Responses":return fC(e,"response");case"Schema":return ce(e,"readOnly")===!0?"response":ce(e,"writeOnly")===!0?"request":void 0;case"Operation":return mC(ce(e,"action"));case"OperationReply":{let t=mC(ce(Aa(e,"Operation"),"action"));return t&&gC(t)}default:return}}function fC(e,t){return Aa(e,"Components")?void 0:Aa(e,"CallbacksMap")??Aa(e,"WebhooksMap")?gC(t):t}function mC(e){if(e==="receive")return"request";if(e==="send")return"response"}function gC(e){return e==="request"?"response":"request"}var Rie=new Set(["enter","leave","skip"]);function vC(e,t,r=[]){return Object.entries(e).flatMap(([n,o])=>{if(Rie.has(n)||n==="any"&&r.length>0)throw new Error(`Diff rule '${t}' uses '${n}' where diff visitors do not have it.`);return typeof o!="function"?vC(o,t,[...r,n]):[{typePath:n==="any"?[]:[...r,n],visit:o}]})}function kie(e,t){let r=t;for(let n=e.length-1;n>=0;n--){if(r===void 0||wn(r)!==e[n])return!1;n>0&&(r=Iie(r.parent,[e[n-1],e[n]]))}return!0}function Iie(e,t){for(let r=e;r;r=r.parent)if(t.includes(wn(r)))return r}function bC(e,t,r){let n=t.flatMap(({ruleId:o,impact:i,visitor:s})=>vC(s,o).map(a=>({ruleId:o,impact:i,...a})));return e.map(o=>Cie(o,n,r))}function Cie(e,t,r){let n,o=()=>n??=hC(e.node),i=v0(e).location,s=[];for(let{ruleId:c,impact:l,typePath:p,visit:u}of t){if(!kie(p,e.node))continue;u(e,{report:h=>{s.push({ruleId:c,impact:l,message:h.message,location:h.location??i})},location:i,getDirections:o,specVersion:r})}let a=Ip(s.map(c=>c.impact));return{...e,verdicts:s,impact:a??mx(e)}}async function Nie(e){let{base:t,revision:r,config:n,externalRefResolver:o=new Kt(n.resolve)}=e,i=Mr(t.parsed),s=Mr(r.parsed),a=Xn(s);if(Xn(i)!==a)throw new $o(`Cannot compare ${i} with ${s}.`);let[c,l]=await Promise.all([xC(t,i,n,o),xC(r,s,n,o)]),p=cx(n.getDiffRulesForSpecVersion(a),n,s),u=bC(uC(c.root,l.root),p,s);return{files:{base:t.source.absoluteRef,revision:r.source.absoluteRef},specVersions:{base:i,revision:s},infoVersions:{base:SC(t),revision:SC(r)},summary:qie(u),bump:jie(u),changes:u,problems:[...c.problems.map(f=>({...f,severity:"warn"})),...l.problems]}}async function xC(e,t,r,n){let o=r.getRulesForSpecVersion(Xn(t)),i=Er(r.extendTypes(Wn(t),t),r),s={problems:[],specVersion:t,config:r,visitorsData:{}},a=bo(o,r,"decorators",t),c=await Gt({rootDocument:e,rootType:i.Root,externalRefResolver:n});return a.length>0&&(yt({document:e,rootType:i.Root,normalizedVisitors:ht(a,i),resolvedRefMap:c,ctx:s}),c=await Gt({rootDocument:e,rootType:i.Root,externalRefResolver:n})),{root:rC({document:e,types:i,resolvedRefMap:c,ctx:s}),problems:s.problems.map(l=>r.addProblemToIgnore(l))}}function SC({parsed:e}){let t=A(e)&&A(e.info)?e.info.version:void 0;return typeof t=="string"?t:void 0}function qie(e){let t={major:0,minor:0,patch:0};for(let r of e)t[r.impact]++;return t}function jie(e){return Ip(e.flatMap(t=>t.kind==="modified"&&t.property==="version"&&wn(t.node)==="Info"?[]:[t.impact]))}import*as Die from"node:fs";import*as x0 from"node:path";function Mie(e){return(x0.extname(e)===".yaml"||x0.extname(e)===".yml")&&!!Die?.existsSync?.(e)}function Lie(e){return A(e)&&!Pr(e)}async function Fie(e){return new Promise(t=>setTimeout(t,e))}function Xr(e,t){if(B(t.parent))return;let r=t.key.toString(),n=e.counts??={};n[r]=(n[r]??0)+1}function S0(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 Uie=e=>({SpecExtension:{enter(t,r){Xr(e.xExtensions,r)}},XCodeSampleList:{enter(t,r){Xr(e.xExtensions,r)}},ExamplesMap:{enter(t,r){r.key.toString()==="x-examples"&&Xr(e.xExtensions,r)}},EnumDescriptions:{enter(t,r){Xr(e.xExtensions,r)}},TagGroups:{enter(t,r){Xr(e.xExtensions,r)}},Logo:{enter(t,r){Xr(e.xExtensions,r)}},XServerList:{enter(t,r){Xr(e.xExtensions,r)}},XUsePkce:{enter(t,r){Xr(e.xExtensions,r)}},Operation:{enter(t,r){r.key.toString()==="x-query"&&Xr(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"&&Xr(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(){S0(e)}}}),zie=e=>({SpecExtension:{enter(t,r){Xr(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(){S0(e)}}}),Vie=e=>({SpecExtension:{enter(t,r){Xr(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(){S0(e)}}});import*as $C from"node:fs";import*as go from"node:path";function _C(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){wC(t,s);for(let a of s.where||[])wC(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function wC(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}.`);Mn[r]=XT(i.assertions[o])}}var Sp=class e{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;recheck;diff;_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=Nd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>_C({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({...rs(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.recheck=t.recheck??{rules:{}},this.diff={oas3_0:{...t.diff,...t.oas3_0Diff},oas3_1:{...t.diff,...t.oas3_1Diff},oas3_2:{...t.diff,...t.oas3_2Diff},async3:{...t.diff,...t.async3Diff}},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?go.dirname(this.configPath):process.cwd(),n=le(t)?t:go.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?go.dirname(this.configPath):process.cwd(),r=go.join(t,Wa),n={};for(let o of Object.keys(this.ignore)){let i=le(o)?o:Ga(go.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}$C.writeFileSync(r,vw+Bp(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}}getDiffRulesForSpecVersion(t){return M_(t)?this.plugins.map(r=>r.diff?.[t]).filter(wt):[]}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}}}getDiffImpact(t,r){return this.diff[r]?.[t]||"off"}skipRules(t){for(let r of t||[])for(let n of ns)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 ns)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of ns)this.decorators[n][r]&&(this.decorators[n][r]="off")}skipDiffRules(t){for(let r of t||[])for(let n of Object.values(this.diff))n[r]&&(n[r]="off")}};import*as wp from"node:fs";import*as PC from"node:path";function Bie(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=le(n)?n:kp(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 EC(e,t){let r=e?yf(e):Tt?"":process.cwd(),n=r?kp(r,Wa):Wa;if(wp?.existsSync&&!le(n)&&!wp.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:Bie(o.parsed||{},r)}async function Hie(e={}){let{configPath:t=AC(),customExtends:r,externalRefResolver:n,skipPluginEval:o,plugins:i}=e,s=n??new Kt,a=t?await s.resolveDocument(null,t,!0):void 0;if(a instanceof Error)throw a;let{resolvedConfig:c,resolvedRefMap:l,plugins:p}=await Ub({rawConfigDocument:a?TC(a):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o,plugins:i}),u=await EC(t,s);return new Sp(c,{configPath:t,document:a,resolvedRefMap:l,plugins:p,ignore:u})}function AC(e){if(!wp?.existsSync)return;let t=e?PC.resolve(e,bs):bs;return wp.existsSync(t)?t:void 0}async function OC(e,{configPath:t,externalRefResolver:r,ignore:n,plugins:o}={}){let s=si(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(s.parsed=e);let{resolvedConfig:a,resolvedRefMap:c,plugins:l}=await Ub({rawConfigDocument:TC(s),configPath:t,externalRefResolver:r,plugins:o});return new Sp(a,{configPath:t,document:s,resolvedRefMap:c,plugins:l,ignore:n})}function TC(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}}export{Mie as a,At as b,A as c,Pr as d,Mi as e,Lie as f,nt as g,_t as h,Cc as i,Fie as j,qq as k,jq as l,Tt as m,Ga as n,Ai as o,Er as p,B as q,Tp as r,qr as s,Rp as t,le as u,jr as v,wn as w,ae as x,Oa as y,Dq as z,Wn as A,re as B,ks as C,mc as D,Is as E,uy as F,EP as G,Cy as H,eg as I,gg as J,qE as K,Sg as L,Pg as M,Uie as N,zie as O,Vie as P,ii as Q,Bp as R,$n as S,fs as T,Ca as U,Pn as V,La as W,Kt as X,Gt as Y,UT as Z,KT as _,tB as $,rB as aa,pB as ba,lB as ca,uB as da,dB as ea,fB as fa,mB as ga,hB as ha,yB as ia,Em as ja,de as ka,Xn as la,Mr as ma,ht as na,yt as oa,pue as pa,$o as qa,Rm as ra,Hm as sa,_re as ta,Hie as ua,OC as va,Hn as wa,ZI as xa,gie as ya,xn as za,tC as Aa,_ie as Ba,Jd as Ca,$ie as Da,v0 as Ea,Nie as Fa};
195
+ /*! Bundled license information:
196
+
197
+ js-yaml/dist/js-yaml.mjs:
198
+ (*! js-yaml 5.4.3 https://github.com/nodeca/js-yaml @license MIT *)
199
+ */