@redocly/cli 2.41.2 → 2.43.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.
- package/README.md +15 -0
- package/THIRD_PARTY_NOTICES +3 -2
- package/lib/chunks/32XCOMOR.js +7 -0
- package/lib/chunks/3BCHPW6T.js +22 -0
- package/lib/chunks/3VZLNQK3.js +47 -0
- package/lib/chunks/4VF6MPJJ.js +11 -0
- package/lib/chunks/55GMSQDD.js +7 -0
- package/lib/chunks/5E3VKU5T.js +7 -0
- package/lib/chunks/AE6JGTY4.js +7 -0
- package/lib/chunks/C35TOMVY.js +8 -0
- package/lib/chunks/D5T6ETPZ.js +8 -0
- package/lib/chunks/DNOXLF53.js +8 -0
- package/lib/chunks/E36IFTLX.js +59 -0
- package/lib/chunks/ECZUPR2N.js +7 -0
- package/lib/chunks/EU6GURJZ.js +7 -0
- package/lib/chunks/HXYO6QS2.js +3132 -0
- package/lib/chunks/IW4HG6VD.js +19 -0
- package/lib/chunks/KIVPQZDC.js +31 -0
- package/lib/chunks/KLY5RV3W.js +7 -0
- package/lib/chunks/KM7RL6C4.js +2317 -0
- package/lib/chunks/L3YH7RCT.js +8 -0
- package/lib/chunks/NEWT5A6S.js +159 -0
- package/lib/chunks/NGPG6D6W.js +7 -0
- package/lib/chunks/O6MCQRCP.js +59 -0
- package/lib/chunks/O6PRCLSV.js +13 -0
- package/lib/chunks/OFAMJNQ6.js +7 -0
- package/lib/chunks/P26PQ2RU.js +7 -0
- package/lib/chunks/PFD7KGH7.js +93 -0
- package/lib/chunks/QFG7TTKG.js +22 -0
- package/lib/chunks/RFWIIJFG.js +7 -0
- package/lib/chunks/RS5PUOTT.js +18 -0
- package/lib/chunks/TMQJQANP.js +7 -0
- package/lib/chunks/UPPWQBGX.js +7 -0
- package/lib/chunks/UXH3ZSSV.js +9 -0
- package/lib/chunks/UYZXI3NO.js +7 -0
- package/lib/chunks/WNTLDT6L.js +184 -0
- package/lib/chunks/WZXA5XPB.js +7 -0
- package/lib/chunks/X6IKW6K4.js +7 -0
- package/lib/index.js +226 -13885
- package/package.json +1 -1
- package/lib/chunks/3CX2Z7JI.js +0 -496
- package/lib/chunks/3UUTQVCJ.js +0 -3614
- package/lib/chunks/4FB5ZIPP.js +0 -1133
- package/lib/chunks/5ILQMFXK.js +0 -59
- package/lib/chunks/7F5O43EU.js +0 -1756
- package/lib/chunks/7IX44JLO.js +0 -16
- package/lib/chunks/7MOL2QVN.js +0 -92635
- package/lib/chunks/A3VFVVHD.js +0 -25
- package/lib/chunks/A6JSOHCP.js +0 -41
- package/lib/chunks/AIT3U3JT.js +0 -22
- package/lib/chunks/ASYQPOQY.js +0 -681
- package/lib/chunks/BVP23YP7.js +0 -13374
- package/lib/chunks/FO6BDVGE.js +0 -25
- package/lib/chunks/GFU5KGSW.js +0 -92
- package/lib/chunks/ICPYP2LP.js +0 -401
- package/lib/chunks/KPMZLKQG.js +0 -79
- package/lib/chunks/KRMBH6JF.js +0 -17902
- package/lib/chunks/NLIKC7UP.js +0 -528
- package/lib/chunks/NW3XJZXQ.js +0 -175
- package/lib/chunks/P6UGG7F6.js +0 -414
- package/lib/chunks/RRC5IDC3.js +0 -2416
- package/lib/chunks/T6UZU3XM.js +0 -17
- package/lib/chunks/TS33ZDKX.js +0 -35
- package/lib/chunks/UUU33DK3.js +0 -125
- package/lib/chunks/VUDTNFRL.js +0 -42
- package/lib/chunks/VXIQEZPR.js +0 -2564
- package/lib/chunks/W7G5WVPB.js +0 -44
- package/lib/chunks/XB6C62FW.js +0 -18497
- package/lib/chunks/XHPY6UJF.js +0 -1638
- package/lib/chunks/Y6DTFCLS.js +0 -15
- package/lib/chunks/Z2664VV5.js +0 -39331
- package/lib/chunks/Z2I5YXYN.js +0 -20272
- package/lib/chunks/ZK3QRKL5.js +0 -129
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
+
const require = __createRequire(import.meta.url);
|
|
5
|
+
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
+
var __dirname = __pathDirname(__filename);
|
|
7
|
+
import{a as Lt,b as Mo,c as XT}from"./NEWT5A6S.js";import{a as Gl,c as x,d as JT,e as Tr}from"./RFWIIJFG.js";var Bu=x((Fu,Vu)=>{(function(e,t){typeof Gl=="function"&&typeof Fu=="object"&&typeof Vu=="object"?Vu.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(Fu,function(){var e=[],t=[],r={},n={},o={};function i(d){return typeof d=="string"?new RegExp("^"+d+"$","i"):d}function s(d,f){return d===f?f:d===d.toLowerCase()?f.toLowerCase():d===d.toUpperCase()?f.toUpperCase():d[0]===d[0].toUpperCase()?f.charAt(0).toUpperCase()+f.substr(1).toLowerCase():f.toLowerCase()}function a(d,f){return d.replace(/\$(\d{1,2})/g,function(h,y){return f[y]||""})}function c(d,f){return d.replace(f[0],function(h,y){var g=a(f[1],arguments);return s(h===""?d[y-1]:h,g)})}function p(d,f,h){if(!d.length||r.hasOwnProperty(d))return f;for(var y=h.length;y--;){var g=h[y];if(g[0].test(f))return c(f,g)}return f}function l(d,f,h){return function(y){var g=y.toLowerCase();return f.hasOwnProperty(g)?s(y,g):d.hasOwnProperty(g)?s(y,d[g]):p(g,y,h)}}function u(d,f,h,y){return function(g){var v=g.toLowerCase();return f.hasOwnProperty(v)?!0:d.hasOwnProperty(v)?!1:p(v,v,h)===v}}function m(d,f,h){var y=f===1?m.singular(d):m.plural(d);return(h?f+" ":"")+y}return m.plural=l(o,n,e),m.isPlural=u(o,n,e),m.singular=l(n,o,t),m.isSingular=u(n,o,t),m.addPluralRule=function(d,f){e.push([i(d),f])},m.addSingularRule=function(d,f){t.push([i(d),f])},m.addUncountableRule=function(d){if(typeof d=="string"){r[d.toLowerCase()]=!0;return}m.addPluralRule(d,"$0"),m.addSingularRule(d,"$0")},m.addIrregularRule=function(d,f){f=f.toLowerCase(),d=d.toLowerCase(),o[d]=f,n[f]=d},[["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(d){return m.addIrregularRule(d[0],d[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(d){return m.addPluralRule(d[0],d[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(d){return m.addSingularRule(d[0],d[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(m.addUncountableRule),m})});var bs=x((YJ,Ab)=>{"use strict";var _b="[^\\\\/]",wk="(?=.)",Pb="[^/]",Hu="(?:\\/|$)",Eb="(?:^|\\/)",Ku=`\\.{1,2}${Hu}`,_k="(?!\\.)",Pk=`(?!${Eb}${Ku})`,Ek=`(?!\\.{0,1}${Hu})`,$k=`(?!${Ku})`,Ak="[^.\\/]",Tk=`${Pb}*?`,Rk="/",$b={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:wk,QMARK:Pb,END_ANCHOR:Hu,DOTS_SLASH:Ku,NO_DOT:_k,NO_DOTS:Pk,NO_DOT_SLASH:Ek,NO_DOTS_SLASH:$k,QMARK_NO_DOT:Ak,STAR:Tk,START_ANCHOR:Eb,SEP:Rk},Ok={...$b,SLASH_LITERAL:"[\\\\/]",QMARK:_b,STAR:`${_b}*?`,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:"\\"},kk={__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"};Ab.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:kk,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?Ok:$b}}});var vs=x(At=>{"use strict";var{REGEX_BACKSLASH:Ik,REGEX_REMOVE_BACKSLASH:Ck,REGEX_SPECIAL_CHARS:qk,REGEX_SPECIAL_CHARS_GLOBAL:Nk}=bs();At.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);At.hasRegexChars=e=>qk.test(e);At.isRegexChar=e=>e.length===1&&At.hasRegexChars(e);At.escapeRegex=e=>e.replace(Nk,"\\$1");At.toPosixSlashes=e=>e.replace(Ik,"/");At.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};At.removeBackslashes=e=>e.replace(Ck,t=>t==="\\"?"":t);At.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?At.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};At.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};At.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};At.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var Nb=x((QJ,qb)=>{"use strict";var Tb=vs(),{CHAR_ASTERISK:Gu,CHAR_AT:jk,CHAR_BACKWARD_SLASH:xs,CHAR_COMMA:Mk,CHAR_DOT:Yu,CHAR_EXCLAMATION_MARK:Wu,CHAR_FORWARD_SLASH:Cb,CHAR_LEFT_CURLY_BRACE:Qu,CHAR_LEFT_PARENTHESES:Ju,CHAR_LEFT_SQUARE_BRACKET:Dk,CHAR_PLUS:Lk,CHAR_QUESTION_MARK:Rb,CHAR_RIGHT_CURLY_BRACE:Uk,CHAR_RIGHT_PARENTHESES:Ob,CHAR_RIGHT_SQUARE_BRACKET:zk}=bs(),kb=e=>e===Cb||e===xs,Ib=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Fk=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],c=e,p=-1,l=0,u=0,m=!1,d=!1,f=!1,h=!1,y=!1,g=!1,v=!1,b=!1,S=!1,w=!1,_=0,T,A,R={value:"",depth:0,isGlob:!1},P=()=>p>=n,J=()=>c.charCodeAt(p+1),H=()=>(T=A,c.charCodeAt(++p));for(;p<n;){A=H();let X;if(A===xs){v=R.backslashes=!0,A=H(),A===Qu&&(g=!0);continue}if(g===!0||A===Qu){for(_++;P()!==!0&&(A=H());){if(A===xs){v=R.backslashes=!0,H();continue}if(A===Qu){_++;continue}if(g!==!0&&A===Yu&&(A=H())===Yu){if(m=R.isBrace=!0,f=R.isGlob=!0,w=!0,o===!0)continue;break}if(g!==!0&&A===Mk){if(m=R.isBrace=!0,f=R.isGlob=!0,w=!0,o===!0)continue;break}if(A===Uk&&(_--,_===0)){g=!1,m=R.isBrace=!0,w=!0;break}}if(o===!0)continue;break}if(A===Cb){if(i.push(p),s.push(R),R={value:"",depth:0,isGlob:!1},w===!0)continue;if(T===Yu&&p===l+1){l+=2;continue}u=p+1;continue}if(r.noext!==!0&&(A===Lk||A===jk||A===Gu||A===Rb||A===Wu)===!0&&J()===Ju){if(f=R.isGlob=!0,h=R.isExtglob=!0,w=!0,A===Wu&&p===l&&(S=!0),o===!0){for(;P()!==!0&&(A=H());){if(A===xs){v=R.backslashes=!0,A=H();continue}if(A===Ob){f=R.isGlob=!0,w=!0;break}}continue}break}if(A===Gu){if(T===Gu&&(y=R.isGlobstar=!0),f=R.isGlob=!0,w=!0,o===!0)continue;break}if(A===Rb){if(f=R.isGlob=!0,w=!0,o===!0)continue;break}if(A===Dk){for(;P()!==!0&&(X=H());){if(X===xs){v=R.backslashes=!0,H();continue}if(X===zk){d=R.isBracket=!0,f=R.isGlob=!0,w=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&A===Wu&&p===l){b=R.negated=!0,l++;continue}if(r.noparen!==!0&&A===Ju){if(f=R.isGlob=!0,o===!0){for(;P()!==!0&&(A=H());){if(A===Ju){v=R.backslashes=!0,A=H();continue}if(A===Ob){w=!0;break}}continue}break}if(f===!0){if(w=!0,o===!0)continue;break}}r.noext===!0&&(h=!1,f=!1);let U=c,E="",$="";l>0&&(E=c.slice(0,l),c=c.slice(l),u-=l),U&&f===!0&&u>0?(U=c.slice(0,u),$=c.slice(u)):f===!0?(U="",$=c):U=c,U&&U!==""&&U!=="/"&&U!==c&&kb(U.charCodeAt(U.length-1))&&(U=U.slice(0,-1)),r.unescape===!0&&($&&($=Tb.removeBackslashes($)),U&&v===!0&&(U=Tb.removeBackslashes(U)));let oe={prefix:E,input:e,start:l,base:U,glob:$,isBrace:m,isBracket:d,isGlob:f,isExtglob:h,isGlobstar:y,negated:b,negatedExtglob:S};if(r.tokens===!0&&(oe.maxDepth=0,kb(A)||s.push(R),oe.tokens=s),r.parts===!0||r.tokens===!0){let X;for(let le=0;le<i.length;le++){let N=X?X+1:l,L=i[le],ve=e.slice(N,L);r.tokens&&(le===0&&l!==0?(s[le].isPrefix=!0,s[le].value=E):s[le].value=ve,Ib(s[le]),oe.maxDepth+=s[le].depth),(le!==0||ve!=="")&&a.push(ve),X=L}if(X&&X+1<e.length){let le=e.slice(X+1);a.push(le),r.tokens&&(s[s.length-1].value=le,Ib(s[s.length-1]),oe.maxDepth+=s[s.length-1].depth)}oe.slashes=i,oe.parts=a}return oe};qb.exports=Fk});var Ub=x((JJ,Lb)=>{"use strict";var Ss=bs(),zt=vs(),{MAX_LENGTH:ic,POSIX_REGEX_SOURCE:Vk,REGEX_NON_SPECIAL_CHARS:Bk,REGEX_SPECIAL_CHARS_BACKREF:Hk,REPLACEMENTS:jb}=Ss,Kk=(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=>zt.escapeRegex(o)).join("..")}return r},Go=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Mb=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},Gk=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},Db=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(Gk(t))return t.replace(/\\(.)/g,"$1")},Yk=e=>{let t=e.map(Db).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},Xu=(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}}}}},Wk=e=>{let t=0,r=[];for(;t<e.length;){let o=Xu(e.slice(t),!1);if(!o||o.type!=="*")return;let i=Mb(o.body).map(a=>a.trim());if(i.length!==1)return;let s=Db(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?zt.escapeRegex(r[0]):`[${r.map(o=>zt.escapeRegex(o)).join("")}]`}*`},Qk=e=>{let t=0,r=e.trim(),n=Xu(r);for(;n;)t++,r=n.body.trim(),n=Xu(r);return t},Jk=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:Ss.DEFAULT_MAX_EXTGLOB_RECURSION,n=Mb(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||Yk(n)))return{risky:!0};for(let o of n){let i=Wk(o);if(i)return{risky:!0,safeOutput:i};if(Qk(o)>r)return{risky:!0}}return{risky:!1}},Zu=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=jb[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(ic,r.maxLength):ic,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=Ss.globChars(r.windows),p=Ss.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:u,SLASH_LITERAL:m,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOT_SLASH:y,NO_DOTS_SLASH:g,QMARK:v,QMARK_NO_DOT:b,STAR:S,START_ANCHOR:w}=c,_=I=>`(${a}(?:(?!${w}${I.dot?f:l}).)*?)`,T=r.dot?"":h,A=r.dot?v:b,R=r.bash===!0?_(r):S;r.capture&&(R=`(${R})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let P={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=zt.removePrefix(e,P),o=e.length;let J=[],H=[],U=[],E=i,$,oe=()=>P.index===o-1,X=P.peek=(I=1)=>e[P.index+I],le=P.advance=()=>e[++P.index]||"",N=()=>e.slice(P.index+1),L=(I="",Me=0)=>{P.consumed+=I,P.index+=Me},ve=I=>{P.output+=I.output!=null?I.output:I.value,L(I.value)},Kt=()=>{let I=1;for(;X()==="!"&&(X(2)!=="("||X(3)==="?");)le(),P.start++,I++;return I%2===0?!1:(P.negated=!0,P.start++,!0)},ue=I=>{P[I]++,U.push(I)},Et=I=>{P[I]--,U.pop()},Z=I=>{if(E.type==="globstar"){let Me=P.braces>0&&(I.type==="comma"||I.type==="brace"),k=I.extglob===!0||J.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!Me&&!k&&(P.output=P.output.slice(0,-E.output.length),E.type="star",E.value="*",E.output=R,P.output+=E.output)}if(J.length&&I.type!=="paren"&&(J[J.length-1].inner+=I.value),(I.value||I.output)&&ve(I),E&&E.type==="text"&&I.type==="text"){E.output=(E.output||E.value)+I.value,E.value+=I.value;return}I.prev=E,s.push(I),E=I},Er=(I,Me)=>{let k={...p[Me],conditions:1,inner:""};k.prev=E,k.parens=P.parens,k.output=P.output,k.startIndex=P.index,k.tokensIndex=s.length;let ce=(r.capture?"(":"")+k.open;ue("parens"),Z({type:I,value:Me,output:P.output?"":d}),Z({type:"paren",extglob:!0,value:le(),output:ce}),J.push(k)},QT=I=>{let Me=e.slice(I.startIndex,P.index+1),k=e.slice(I.startIndex+2,P.index),ce=Jk(k,r);if((I.type==="plus"||I.type==="star")&&ce.risky){let ke=ce.safeOutput?(I.output?"":d)+(r.capture?`(${ce.safeOutput})`:ce.safeOutput):void 0,$r=s[I.tokensIndex];$r.type="text",$r.value=Me,$r.output=ke||zt.escapeRegex(Me);for(let Ar=I.tokensIndex+1;Ar<s.length;Ar++)s[Ar].value="",s[Ar].output="",delete s[Ar].suffix;P.output=I.output+$r.output,P.backtrack=!0,Z({type:"paren",extglob:!0,value:$,output:""}),Et("parens");return}let Ie=I.close+(r.capture?")":""),Ke;if(I.type==="negate"){let ke=R;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(ke=_(r)),(ke!==R||oe()||/^\)+$/.test(N()))&&(Ie=I.close=`)$))${ke}`),I.inner.includes("*")&&(Ke=N())&&/^\.[^\\/.]+$/.test(Ke)){let $r=Zu(Ke,{...t,fastpaths:!1}).output;Ie=I.close=`)${$r})${ke})`}I.prev.type==="bos"&&(P.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:$,output:Ie}),Et("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let I=!1,Me=e.replace(Hk,(k,ce,Ie,Ke,ke,$r)=>Ke==="\\"?(I=!0,k):Ke==="?"?ce?ce+Ke+(ke?v.repeat(ke.length):""):$r===0?A+(ke?v.repeat(ke.length):""):v.repeat(Ie.length):Ke==="."?l.repeat(Ie.length):Ke==="*"?ce?ce+Ke+(ke?R:""):R:ce?k:`\\${k}`);return I===!0&&(r.unescape===!0?Me=Me.replace(/\\/g,""):Me=Me.replace(/\\+/g,k=>k.length%2===0?"\\\\":k?"\\":"")),Me===e&&r.contains===!0?(P.output=e,P):(P.output=zt.wrapOutput(Me,P,t),P)}for(;!oe();){if($=le(),$==="\0")continue;if($==="\\"){let k=X();if(k==="/"&&r.bash!==!0||k==="."||k===";")continue;if(!k){$+="\\",Z({type:"text",value:$});continue}let ce=/^\\+/.exec(N()),Ie=0;if(ce&&ce[0].length>2&&(Ie=ce[0].length,P.index+=Ie,Ie%2!==0&&($+="\\")),r.unescape===!0?$=le():$+=le(),P.brackets===0){Z({type:"text",value:$});continue}}if(P.brackets>0&&($!=="]"||E.value==="["||E.value==="[^")){if(r.posix!==!1&&$===":"){let k=E.value.slice(1);if(k.includes("[")&&(E.posix=!0,k.includes(":"))){let ce=E.value.lastIndexOf("["),Ie=E.value.slice(0,ce),Ke=E.value.slice(ce+2),ke=Vk[Ke];if(ke){E.value=Ie+ke,P.backtrack=!0,le(),!i.output&&s.indexOf(E)===1&&(i.output=d);continue}}}($==="["&&X()!==":"||$==="-"&&X()==="]")&&($=`\\${$}`),$==="]"&&(E.value==="["||E.value==="[^")&&($=`\\${$}`),r.posix===!0&&$==="!"&&E.value==="["&&($="^"),E.value+=$,ve({value:$});continue}if(P.quotes===1&&$!=='"'){$=zt.escapeRegex($),E.value+=$,ve({value:$});continue}if($==='"'){P.quotes=P.quotes===1?0:1,r.keepQuotes===!0&&Z({type:"text",value:$});continue}if($==="("){ue("parens"),Z({type:"paren",value:$});continue}if($===")"){if(P.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Go("opening","("));let k=J[J.length-1];if(k&&P.parens===k.parens+1){QT(J.pop());continue}Z({type:"paren",value:$,output:P.parens?")":"\\)"}),Et("parens");continue}if($==="["){if(r.nobracket===!0||!N().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Go("closing","]"));$=`\\${$}`}else ue("brackets");Z({type:"bracket",value:$});continue}if($==="]"){if(r.nobracket===!0||E&&E.type==="bracket"&&E.value.length===1){Z({type:"text",value:$,output:`\\${$}`});continue}if(P.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Go("opening","["));Z({type:"text",value:$,output:`\\${$}`});continue}Et("brackets");let k=E.value.slice(1);if(E.posix!==!0&&k[0]==="^"&&!k.includes("/")&&($=`/${$}`),E.value+=$,ve({value:$}),r.literalBrackets===!1||zt.hasRegexChars(k))continue;let ce=zt.escapeRegex(E.value);if(P.output=P.output.slice(0,-E.value.length),r.literalBrackets===!0){P.output+=ce,E.value=ce;continue}E.value=`(${a}${ce}|${E.value})`,P.output+=E.value;continue}if($==="{"&&r.nobrace!==!0){ue("braces");let k={type:"brace",value:$,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};H.push(k),Z(k);continue}if($==="}"){let k=H[H.length-1];if(r.nobrace===!0||!k){Z({type:"text",value:$,output:$});continue}let ce=")";if(k.dots===!0){let Ie=s.slice(),Ke=[];for(let ke=Ie.length-1;ke>=0&&(s.pop(),Ie[ke].type!=="brace");ke--)Ie[ke].type!=="dots"&&Ke.unshift(Ie[ke].value);ce=Kk(Ke,r),P.backtrack=!0}if(k.comma!==!0&&k.dots!==!0){let Ie=P.output.slice(0,k.outputIndex),Ke=P.tokens.slice(k.tokensIndex);k.value=k.output="\\{",$=ce="\\}",P.output=Ie;for(let ke of Ke)P.output+=ke.output||ke.value}Z({type:"brace",value:$,output:ce}),Et("braces"),H.pop();continue}if($==="|"){J.length>0&&J[J.length-1].conditions++,Z({type:"text",value:$});continue}if($===","){let k=$,ce=H[H.length-1];ce&&U[U.length-1]==="braces"&&(ce.comma=!0,k="|"),Z({type:"comma",value:$,output:k});continue}if($==="/"){if(E.type==="dot"&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",s.pop(),E=i;continue}Z({type:"slash",value:$,output:m});continue}if($==="."){if(P.braces>0&&E.type==="dot"){E.value==="."&&(E.output=l);let k=H[H.length-1];E.type="dots",E.output+=$,E.value+=$,k.dots=!0;continue}if(P.braces+P.parens===0&&E.type!=="bos"&&E.type!=="slash"){Z({type:"text",value:$,output:l});continue}Z({type:"dot",value:$,output:l});continue}if($==="?"){if(!(E&&E.value==="(")&&r.noextglob!==!0&&X()==="("&&X(2)!=="?"){Er("qmark",$);continue}if(E&&E.type==="paren"){let ce=X(),Ie=$;(E.value==="("&&!/[!=<:]/.test(ce)||ce==="<"&&!/<([!=]|\w+>)/.test(N()))&&(Ie=`\\${$}`),Z({type:"text",value:$,output:Ie});continue}if(r.dot!==!0&&(E.type==="slash"||E.type==="bos")){Z({type:"qmark",value:$,output:b});continue}Z({type:"qmark",value:$,output:v});continue}if($==="!"){if(r.noextglob!==!0&&X()==="("&&(X(2)!=="?"||!/[!=<:]/.test(X(3)))){Er("negate",$);continue}if(r.nonegate!==!0&&P.index===0){Kt();continue}}if($==="+"){if(r.noextglob!==!0&&X()==="("&&X(2)!=="?"){Er("plus",$);continue}if(E&&E.value==="("||r.regex===!1){Z({type:"plus",value:$,output:u});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.type==="brace")||P.parens>0){Z({type:"plus",value:$});continue}Z({type:"plus",value:u});continue}if($==="@"){if(r.noextglob!==!0&&X()==="("&&X(2)!=="?"){Z({type:"at",extglob:!0,value:$,output:""});continue}Z({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);let k=Bk.exec(N());k&&($+=k[0],P.index+=k[0].length),Z({type:"text",value:$});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=$,E.output=R,P.backtrack=!0,P.globstar=!0,L($);continue}let I=N();if(r.noextglob!==!0&&/^\([^?]/.test(I)){Er("star",$);continue}if(E.type==="star"){if(r.noglobstar===!0){L($);continue}let k=E.prev,ce=k.prev,Ie=k.type==="slash"||k.type==="bos",Ke=ce&&(ce.type==="star"||ce.type==="globstar");if(r.bash===!0&&(!Ie||I[0]&&I[0]!=="/")){Z({type:"star",value:$,output:""});continue}let ke=P.braces>0&&(k.type==="comma"||k.type==="brace"),$r=J.length&&(k.type==="pipe"||k.type==="paren");if(!Ie&&k.type!=="paren"&&!ke&&!$r){Z({type:"star",value:$,output:""});continue}for(;I.slice(0,3)==="/**";){let Ar=e[P.index+4];if(Ar&&Ar!=="/")break;I=I.slice(3),L("/**",3)}if(k.type==="bos"&&oe()){E.type="globstar",E.value+=$,E.output=_(r),P.output=E.output,P.globstar=!0,L($);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&!Ke&&oe()){P.output=P.output.slice(0,-(k.output+E.output).length),k.output=`(?:${k.output}`,E.type="globstar",E.output=_(r)+(r.strictSlashes?")":"|$)"),E.value+=$,P.globstar=!0,P.output+=k.output+E.output,L($);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&I[0]==="/"){let Ar=I[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(k.output+E.output).length),k.output=`(?:${k.output}`,E.type="globstar",E.output=`${_(r)}${m}|${m}${Ar})`,E.value+=$,P.output+=k.output+E.output,P.globstar=!0,L($+le()),Z({type:"slash",value:"/",output:""});continue}if(k.type==="bos"&&I[0]==="/"){E.type="globstar",E.value+=$,E.output=`(?:^|${m}|${_(r)}${m})`,P.output=E.output,P.globstar=!0,L($+le()),Z({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-E.output.length),E.type="globstar",E.output=_(r),E.value+=$,P.output+=E.output,P.globstar=!0,L($);continue}let Me={type:"star",value:$,output:R};if(r.bash===!0){Me.output=".*?",(E.type==="bos"||E.type==="slash")&&(Me.output=T+Me.output),Z(Me);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&r.regex===!0){Me.output=$,Z(Me);continue}(P.index===P.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(P.output+=y,E.output+=y):r.dot===!0?(P.output+=g,E.output+=g):(P.output+=T,E.output+=T),X()!=="*"&&(P.output+=d,E.output+=d)),Z(Me)}for(;P.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Go("closing","]"));P.output=zt.escapeLast(P.output,"["),Et("brackets")}for(;P.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Go("closing",")"));P.output=zt.escapeLast(P.output,"("),Et("parens")}for(;P.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Go("closing","}"));P.output=zt.escapeLast(P.output,"{"),Et("braces")}if(r.strictSlashes!==!0&&(E.type==="star"||E.type==="bracket")&&Z({type:"maybe_slash",value:"",output:`${m}?`}),P.backtrack===!0){P.output="";for(let I of P.tokens)P.output+=I.output!=null?I.output:I.value,I.suffix&&(P.output+=I.suffix)}return P};Zu.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(ic,r.maxLength):ic,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=jb[e]||e;let{DOT_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:p,NO_DOTS:l,NO_DOTS_SLASH:u,STAR:m,START_ANCHOR:d}=Ss.globChars(r.windows),f=r.dot?l:p,h=r.dot?u:p,y=r.capture?"":"?:",g={negated:!1,prefix:""},v=r.bash===!0?".*?":m;r.capture&&(v=`(${v})`);let b=T=>T.noglobstar===!0?v:`(${y}(?:(?!${d}${T.dot?c:i}).)*?)`,S=T=>{switch(T){case"*":return`${f}${a}${v}`;case".*":return`${i}${a}${v}`;case"*.*":return`${f}${v}${i}${a}${v}`;case"*/*":return`${f}${v}${s}${a}${h}${v}`;case"**":return f+b(r);case"**/*":return`(?:${f}${b(r)}${s})?${h}${a}${v}`;case"**/*.*":return`(?:${f}${b(r)}${s})?${h}${v}${i}${a}${v}`;case"**/.*":return`(?:${f}${b(r)}${s})?${i}${a}${v}`;default:{let A=/^(.*?)\.(\w+)$/.exec(T);if(!A)return;let R=S(A[1]);return R?R+i+A[2]:void 0}}},w=zt.removePrefix(e,g),_=S(w);return _&&r.strictSlashes!==!0&&(_+=`${s}?`),_};Lb.exports=Zu});var Vb=x((XJ,Fb)=>{"use strict";var Xk=Nb(),ed=Ub(),zb=vs(),Zk=bs(),eI=e=>e&&typeof e=="object"&&!Array.isArray(e),Ue=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(m=>Ue(m,t,r));return m=>{for(let d of l){let f=d(m);if(f)return f}return!1}}let n=eI(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?Ue.compileRe(e,t):Ue.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(o.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};c=Ue(o.ignore,l,r)}let p=(l,u=!1)=>{let{isMatch:m,match:d,output:f}=Ue.test(l,s,t,{glob:e,posix:i}),h={glob:e,state:a,regex:s,posix:i,input:l,output:f,match:d,isMatch:m};return typeof o.onResult=="function"&&o.onResult(h),m===!1?(h.isMatch=!1,u?h:!1):c(l)?(typeof o.onIgnore=="function"&&o.onIgnore(h),h.isMatch=!1,u?h:!1):(typeof o.onMatch=="function"&&o.onMatch(h),u?h:!0)};return r&&(p.state=a),p};Ue.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?zb.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=Ue.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Ue.matchBase=(e,t,r)=>(t instanceof RegExp?t:Ue.makeRe(t,r)).test(zb.basename(e));Ue.isMatch=(e,t,r)=>Ue(t,r)(e);Ue.parse=(e,t)=>Array.isArray(e)?e.map(r=>Ue.parse(r,t)):ed(e,{...t,fastpaths:!1});Ue.scan=(e,t)=>Xk(e,t);Ue.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=Ue.toRegex(a,t);return n===!0&&(c.state=e),c};Ue.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=ed.fastpaths(e,t)),o.output||(o=ed(e,t)),Ue.compileRe(o,t,r,n)};Ue.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/$^/}};Ue.constants=Zk;Fb.exports=Ue});var Gb=x((ZJ,Kb)=>{"use strict";var Bb=Vb(),tI=vs();function Hb(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:tI.isWindows()}),Bb(e,t,r)}Object.assign(Hb,Bb);Kb.exports=Hb});var $s=x(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.regexpCode=xe.getEsmExportName=xe.getProperty=xe.safeStringify=xe.stringify=xe.strConcat=xe.addCodeArg=xe.str=xe._=xe.nil=xe._Code=xe.Name=xe.IDENTIFIER=xe._CodeOrName=void 0;var Ps=class{};xe._CodeOrName=Ps;xe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var io=class extends Ps{constructor(t){if(super(),!xe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};xe.Name=io;var Wt=class extends Ps{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 io&&(r[n.str]=(r[n.str]||0)+1),r),{})}};xe._Code=Wt;xe.nil=new Wt("");function Gv(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Ad(r,t[n]),r.push(e[++n]);return new Wt(r)}xe._=Gv;var $d=new Wt("+");function Yv(e,...t){let r=[Es(e[0])],n=0;for(;n<t.length;)r.push($d),Ad(r,t[n]),r.push($d,Es(e[++n]));return JL(r),new Wt(r)}xe.str=Yv;function Ad(e,t){t instanceof Wt?e.push(...t._items):t instanceof io?e.push(t):e.push(e2(t))}xe.addCodeArg=Ad;function JL(e){let t=1;for(;t<e.length-1;){if(e[t]===$d){let r=XL(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function XL(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof io||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 io))return`"${e}${t.slice(1)}`}function ZL(e,t){return t.emptyStr()?e:e.emptyStr()?t:Yv`${e}${t}`}xe.strConcat=ZL;function e2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Es(Array.isArray(e)?e.join(","):e)}function t2(e){return new Wt(Es(e))}xe.stringify=t2;function Es(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}xe.safeStringify=Es;function r2(e){return typeof e=="string"&&xe.IDENTIFIER.test(e)?new Wt(`.${e}`):Gv`[${e}]`}xe.getProperty=r2;function n2(e){if(typeof e=="string"&&xe.IDENTIFIER.test(e))return new Wt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}xe.getEsmExportName=n2;function o2(e){return new Wt(e.toString())}xe.regexpCode=o2});var Od=x(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.ValueScope=Ot.ValueScopeName=Ot.Scope=Ot.varKinds=Ot.UsedValueState=void 0;var Rt=$s(),Td=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},wc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(wc||(Ot.UsedValueState=wc={}));Ot.varKinds={const:new Rt.Name("const"),let:new Rt.Name("let"),var:new Rt.Name("var")};var _c=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Rt.Name?t:this.name(t)}name(t){return new Rt.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}}};Ot.Scope=_c;var Pc=class extends Rt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Rt._)`.${new Rt.Name(r)}[${n}]`}};Ot.ValueScopeName=Pc;var i2=(0,Rt._)`\n`,Rd=class extends _c{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?i2:Rt.nil}}get(){return this._scope}name(t){return new Pc(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 l=a.get(s);if(l)return l}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),p=c.length;return c[p]=r.ref,o.setValue(r,{property:i,itemIndex:p}),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,Rt._)`${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=Rt.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(p=>{if(c.has(p))return;c.set(p,wc.Started);let l=r(p);if(l){let u=this.opts.es5?Ot.varKinds.var:Ot.varKinds.const;i=(0,Rt._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,Rt._)`${i}${l}${this.opts._n}`;else throw new Td(p);c.set(p,wc.Completed)})}return i}};Ot.ValueScope=Rd});var V=x(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.or=re.and=re.not=re.CodeGen=re.operators=re.varKinds=re.ValueScopeName=re.ValueScope=re.Scope=re.Name=re.regexpCode=re.stringify=re.getProperty=re.nil=re.strConcat=re.str=re._=void 0;var de=$s(),dr=Od(),vn=$s();Object.defineProperty(re,"_",{enumerable:!0,get:function(){return vn._}});Object.defineProperty(re,"str",{enumerable:!0,get:function(){return vn.str}});Object.defineProperty(re,"strConcat",{enumerable:!0,get:function(){return vn.strConcat}});Object.defineProperty(re,"nil",{enumerable:!0,get:function(){return vn.nil}});Object.defineProperty(re,"getProperty",{enumerable:!0,get:function(){return vn.getProperty}});Object.defineProperty(re,"stringify",{enumerable:!0,get:function(){return vn.stringify}});Object.defineProperty(re,"regexpCode",{enumerable:!0,get:function(){return vn.regexpCode}});Object.defineProperty(re,"Name",{enumerable:!0,get:function(){return vn.Name}});var Tc=Od();Object.defineProperty(re,"Scope",{enumerable:!0,get:function(){return Tc.Scope}});Object.defineProperty(re,"ValueScope",{enumerable:!0,get:function(){return Tc.ValueScope}});Object.defineProperty(re,"ValueScopeName",{enumerable:!0,get:function(){return Tc.ValueScopeName}});Object.defineProperty(re,"varKinds",{enumerable:!0,get:function(){return Tc.varKinds}});re.operators={GT:new de._Code(">"),GTE:new de._Code(">="),LT:new de._Code("<"),LTE:new de._Code("<="),EQ:new de._Code("==="),NEQ:new de._Code("!=="),NOT:new de._Code("!"),OR:new de._Code("||"),AND:new de._Code("&&"),ADD:new de._Code("+")};var Xr=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},kd=class extends Xr{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?dr.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=oi(this.rhs,t,r)),this}get names(){return this.rhs instanceof de._CodeOrName?this.rhs.names:{}}},Ec=class extends Xr{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 de.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=oi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof de.Name?{}:{...this.lhs.names};return Ac(t,this.rhs)}},Id=class extends Ec{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Cd=class extends Xr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},qd=class extends Xr{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Nd=class extends Xr{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},jd=class extends Xr{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=oi(this.code,t,r),this}get names(){return this.code instanceof de._CodeOrName?this.code.names:{}}},As=class extends Xr{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)||(s2(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>co(t,r.names),{})}},Zr=class extends As{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Md=class extends As{},ni=class extends Zr{};ni.kind="else";var so=class e extends Zr{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 ni(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Wv(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=oi(this.condition,t,r),this}get names(){let t=super.names;return Ac(t,this.condition),this.else&&co(t,this.else.names),t}};so.kind="if";var ao=class extends Zr{};ao.kind="for";var Dd=class extends ao{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=oi(this.iteration,t,r),this}get names(){return co(super.names,this.iteration.names)}},Ld=class extends ao{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?dr.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=Ac(super.names,this.from);return Ac(t,this.to)}},$c=class extends ao{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=oi(this.iterable,t,r),this}get names(){return co(super.names,this.iterable.names)}},Ts=class extends Zr{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)}};Ts.kind="func";var Rs=class extends As{render(t){return"return "+super.render(t)}};Rs.kind="return";var Ud=class extends Zr{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&&co(t,this.catch.names),this.finally&&co(t,this.finally.names),t}},Os=class extends Zr{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Os.kind="catch";var ks=class extends Zr{render(t){return"finally"+super.render(t)}};ks.kind="finally";var zd=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
8
|
+
`:""},this._extScope=t,this._scope=new dr.Scope({parent:t}),this._nodes=[new Md]}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 kd(t,i,n)),i}const(t,r,n){return this._def(dr.varKinds.const,t,r,n)}let(t,r,n){return this._def(dr.varKinds.let,t,r,n)}var(t,r,n){return this._def(dr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ec(t,r,n))}add(t,r){return this._leafNode(new Id(t,re.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==de.nil&&this._leafNode(new jd(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,de.addCodeArg)(r,o));return r.push("}"),new de._Code(r)}if(t,r,n){if(this._blockNode(new so(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 so(t))}else(){return this._elseNode(new ni)}endIf(){return this._endBlockNode(so,ni)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Dd(t),r)}forRange(t,r,n,o,i=this.opts.es5?dr.varKinds.var:dr.varKinds.let){let s=this._scope.toName(t);return this._for(new Ld(i,s,r,n),()=>o(s))}forOf(t,r,n,o=dr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof de.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,de._)`${s}.length`,a=>{this.var(i,(0,de._)`${s}[${a}]`),n(i)})}return this._for(new $c("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?dr.varKinds.var:dr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,de._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new $c("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(ao)}label(t){return this._leafNode(new Cd(t))}break(t){return this._leafNode(new qd(t))}return(t){let r=new Rs;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Rs)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Ud;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Os(i),r(i)}return n&&(this._currNode=o.finally=new ks,this.code(n)),this._endBlockNode(Os,ks)}throw(t){return this._leafNode(new Nd(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=de.nil,n,o){return this._blockNode(new Ts(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Ts)}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 so))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};re.CodeGen=zd;function co(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Ac(e,t){return t instanceof de._CodeOrName?co(e,t.names):e}function oi(e,t,r){if(e instanceof de.Name)return n(e);if(!o(e))return e;return new de._Code(e._items.reduce((i,s)=>(s instanceof de.Name&&(s=n(s)),s instanceof de._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 de._Code&&i._items.some(s=>s instanceof de.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function s2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Wv(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,de._)`!${Fd(e)}`}re.not=Wv;var a2=Qv(re.operators.AND);function c2(...e){return e.reduce(a2)}re.and=c2;var p2=Qv(re.operators.OR);function l2(...e){return e.reduce(p2)}re.or=l2;function Qv(e){return(t,r)=>t===de.nil?r:r===de.nil?t:(0,de._)`${Fd(t)} ${e} ${Fd(r)}`}function Fd(e){return e instanceof de.Name?e:(0,de._)`(${e})`}});var se=x(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.checkStrictMode=ie.getErrorPath=ie.Type=ie.useFunc=ie.setEvaluated=ie.evaluatedPropsToName=ie.mergeEvaluated=ie.eachItem=ie.unescapeJsonPointer=ie.escapeJsonPointer=ie.escapeFragment=ie.unescapeFragment=ie.schemaRefOrVal=ie.schemaHasRulesButRef=ie.schemaHasRules=ie.checkUnknownRules=ie.alwaysValidSchema=ie.toHash=void 0;var Te=V(),u2=$s();function d2(e){let t={};for(let r of e)t[r]=!0;return t}ie.toHash=d2;function f2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Zv(e,t),!e0(t,e.self.RULES.all))}ie.alwaysValidSchema=f2;function Zv(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]||n0(e,`unknown keyword: "${i}"`)}ie.checkUnknownRules=Zv;function e0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ie.schemaHasRules=e0;function m2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ie.schemaHasRulesButRef=m2;function h2({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Te._)`${r}`}return(0,Te._)`${e}${t}${(0,Te.getProperty)(n)}`}ie.schemaRefOrVal=h2;function y2(e){return t0(decodeURIComponent(e))}ie.unescapeFragment=y2;function g2(e){return encodeURIComponent(Bd(e))}ie.escapeFragment=g2;function Bd(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ie.escapeJsonPointer=Bd;function t0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ie.unescapeJsonPointer=t0;function b2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ie.eachItem=b2;function Jv({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Te.Name?(i instanceof Te.Name?e(o,i,s):t(o,i,s),s):i instanceof Te.Name?(t(o,s,i),i):r(i,s);return a===Te.Name&&!(c instanceof Te.Name)?n(o,c):c}}ie.mergeEvaluated={props:Jv({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Te._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Te._)`${r} || {}`).code((0,Te._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Te._)`${r} || {}`),Hd(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:r0}),items:Jv({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Te._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Te._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function r0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Te._)`{}`);return t!==void 0&&Hd(e,r,t),r}ie.evaluatedPropsToName=r0;function Hd(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Te._)`${t}${(0,Te.getProperty)(n)}`,!0))}ie.setEvaluated=Hd;var Xv={};function v2(e,t){return e.scopeValue("func",{ref:t,code:Xv[t.code]||(Xv[t.code]=new u2._Code(t.code))})}ie.useFunc=v2;var Vd;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Vd||(ie.Type=Vd={}));function x2(e,t,r){if(e instanceof Te.Name){let n=t===Vd.Num;return r?n?(0,Te._)`"[" + ${e} + "]"`:(0,Te._)`"['" + ${e} + "']"`:n?(0,Te._)`"/" + ${e}`:(0,Te._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Te.getProperty)(e).toString():"/"+Bd(e)}ie.getErrorPath=x2;function n0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ie.checkStrictMode=n0});var bt=x(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});var tt=V(),S2={data:new tt.Name("data"),valCxt:new tt.Name("valCxt"),instancePath:new tt.Name("instancePath"),parentData:new tt.Name("parentData"),parentDataProperty:new tt.Name("parentDataProperty"),rootData:new tt.Name("rootData"),dynamicAnchors:new tt.Name("dynamicAnchors"),isAllOfVariant:new tt.Name("isAllOfVariant"),vErrors:new tt.Name("vErrors"),errors:new tt.Name("errors"),this:new tt.Name("this"),self:new tt.Name("self"),scope:new tt.Name("scope"),json:new tt.Name("json"),jsonPos:new tt.Name("jsonPos"),jsonLen:new tt.Name("jsonLen"),jsonPart:new tt.Name("jsonPart")};Kd.default=S2});var Is=x(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.extendErrors=ut.resetErrorsCount=ut.reportExtraError=ut.reportError=ut.keyword$DataError=ut.keywordError=void 0;var ye=V(),Rc=se(),vt=bt();ut.keywordError={message:({keyword:e})=>(0,ye.str)`must pass "${e}" keyword validation`};ut.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ye.str)`"${e}" keyword must be ${t} ($data)`:(0,ye.str)`"${e}" keyword is invalid ($data)`};function w2(e,t=ut.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=s0(e,t,r);n??(s||a)?o0(i,c):i0(o,(0,ye._)`[${c}]`)}ut.reportError=w2;function _2(e,t=ut.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=s0(e,t,r);o0(o,a),i||s||i0(n,vt.default.vErrors)}ut.reportExtraError=_2;function P2(e,t){e.assign(vt.default.errors,t),e.if((0,ye._)`${vt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ye._)`${vt.default.vErrors}.length`,t),()=>e.assign(vt.default.vErrors,null)))}ut.resetErrorsCount=P2;function E2({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,vt.default.errors,a=>{e.const(s,(0,ye._)`${vt.default.vErrors}[${a}]`),e.if((0,ye._)`${s}.instancePath === undefined`,()=>e.assign((0,ye._)`${s}.instancePath`,(0,ye.strConcat)(vt.default.instancePath,i.errorPath))),e.assign((0,ye._)`${s}.schemaPath`,(0,ye.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,ye._)`${s}.schema`,r),e.assign((0,ye._)`${s}.data`,n))})}ut.extendErrors=E2;function o0(e,t){let r=e.const("err",t);e.if((0,ye._)`${vt.default.vErrors} === null`,()=>e.assign(vt.default.vErrors,(0,ye._)`[${r}]`),(0,ye._)`${vt.default.vErrors}.push(${r})`),e.code((0,ye._)`${vt.default.errors}++`)}function i0(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,ye._)`new ${e.ValidationError}(${t})`):(r.assign((0,ye._)`${n}.errors`,t),r.return(!1))}var po={keyword:new ye.Name("keyword"),schemaPath:new ye.Name("schemaPath"),params:new ye.Name("params"),propertyName:new ye.Name("propertyName"),message:new ye.Name("message"),schema:new ye.Name("schema"),parentSchema:new ye.Name("parentSchema")};function s0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ye._)`{}`:$2(e,t,r)}function $2(e,t,r={}){let{gen:n,it:o}=e,i=[A2(o,r),T2(e,r)];return R2(e,t,i),n.object(...i)}function A2({errorPath:e},{instancePath:t}){let r=t?(0,ye.str)`${e}${(0,Rc.getErrorPath)(t,Rc.Type.Str)}`:e;return[vt.default.instancePath,(0,ye.strConcat)(vt.default.instancePath,r)]}function T2({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,ye.str)`${t}/${e}`;return r&&(o=(0,ye.str)`${o}${(0,Rc.getErrorPath)(r,Rc.Type.Str)}`),[po.schemaPath,o]}function R2(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:p,topSchemaRef:l,schemaPath:u}=a;n.push([po.keyword,o],[po.params,typeof t=="function"?t(e):t||(0,ye._)`{}`]),c.messages&&n.push([po.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([po.schema,s],[po.parentSchema,(0,ye._)`${l}${u}`],[vt.default.data,i]),p&&n.push([po.propertyName,p])}});var c0=x(ii=>{"use strict";Object.defineProperty(ii,"__esModule",{value:!0});ii.boolOrEmptySchema=ii.topBoolOrEmptySchema=void 0;var O2=Is(),k2=V(),I2=bt(),C2={message:"boolean schema is false"};function q2(e){let{gen:t,schema:r,validateName:n}=e;r===!1?a0(e,!1):typeof r=="object"&&r.$async===!0?t.return(I2.default.data):(t.assign((0,k2._)`${n}.errors`,null),t.return(!0))}ii.topBoolOrEmptySchema=q2;function N2(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),a0(e)):r.var(t,!0)}ii.boolOrEmptySchema=N2;function a0(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,O2.reportError)(o,C2,void 0,t)}});var Gd=x(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.getRules=si.isJSONType=void 0;var j2=["string","number","integer","boolean","null","object","array"],M2=new Set(j2);function D2(e){return typeof e=="string"&&M2.has(e)}si.isJSONType=D2;function L2(){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:{}}}si.getRules=L2});var Yd=x(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.shouldUseRule=xn.shouldUseGroup=xn.schemaHasRulesForType=void 0;function U2({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&p0(e,n)}xn.schemaHasRulesForType=U2;function p0(e,t){return t.rules.some(r=>l0(e,r))}xn.shouldUseGroup=p0;function l0(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))}xn.shouldUseRule=l0});var Cs=x(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.reportTypeError=dt.checkDataTypes=dt.checkDataType=dt.coerceAndCheckDataType=dt.getJSONTypes=dt.getSchemaTypes=dt.DataType=void 0;var z2=Gd(),F2=Yd(),V2=Is(),W=V(),u0=se(),ai;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(ai||(dt.DataType=ai={}));function B2(e){let t=d0(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}dt.getSchemaTypes=B2;function d0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(z2.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}dt.getJSONTypes=d0;function H2(e,t){let{gen:r,data:n,opts:o}=e,i=K2(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,F2.schemaHasRulesForType)(e,t[0]));if(s){let a=Qd(t,n,o.strictNumbers,ai.Wrong);r.if(a,()=>{i.length?G2(e,t,i):Jd(e)})}return s}dt.coerceAndCheckDataType=H2;var f0=new Set(["string","number","integer","boolean","null"]);function K2(e,t){return t?e.filter(r=>f0.has(r)||t==="array"&&r==="array"):[]}function G2(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,W._)`typeof ${o}`),a=n.let("coerced",(0,W._)`undefined`);i.coerceTypes==="array"&&n.if((0,W._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,W._)`${o}[0]`).assign(s,(0,W._)`typeof ${o}`).if(Qd(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,W._)`${a} !== undefined`);for(let p of r)(f0.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),Jd(e),n.endIf(),n.if((0,W._)`${a} !== undefined`,()=>{n.assign(o,a),Y2(e,a)});function c(p){switch(p){case"string":n.elseIf((0,W._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,W._)`"" + ${o}`).elseIf((0,W._)`${o} === null`).assign(a,(0,W._)`""`);return;case"number":n.elseIf((0,W._)`${s} == "boolean" || ${o} === null
|
|
9
|
+
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,W._)`+${o}`);return;case"integer":n.elseIf((0,W._)`${s} === "boolean" || ${o} === null
|
|
10
|
+
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,W._)`+${o}`);return;case"boolean":n.elseIf((0,W._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,W._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,W._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,W._)`${s} === "string" || ${s} === "number"
|
|
11
|
+
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,W._)`[${o}]`)}}}function Y2({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,W._)`${t} !== undefined`,()=>e.assign((0,W._)`${t}[${r}]`,n))}function Wd(e,t,r,n=ai.Correct){let o=n===ai.Correct?W.operators.EQ:W.operators.NEQ,i;switch(e){case"null":return(0,W._)`${t} ${o} null`;case"array":i=(0,W._)`Array.isArray(${t})`;break;case"object":i=(0,W._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,W._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,W._)`typeof ${t} ${o} ${e}`}return n===ai.Correct?i:(0,W.not)(i);function s(a=W.nil){return(0,W.and)((0,W._)`typeof ${t} == "number"`,a,r?(0,W._)`isFinite(${t})`:W.nil)}}dt.checkDataType=Wd;function Qd(e,t,r,n){if(e.length===1)return Wd(e[0],t,r,n);let o,i=(0,u0.toHash)(e);if(i.array&&i.object){let s=(0,W._)`typeof ${t} != "object"`;o=i.null?s:(0,W._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=W.nil;i.number&&delete i.integer;for(let s in i)o=(0,W.and)(o,Wd(s,t,r,n));return o}dt.checkDataTypes=Qd;var W2={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,W._)`{type: ${e}}`:(0,W._)`{type: ${t}}`};function Jd(e){let t=Q2(e);(0,V2.reportError)(t,W2)}dt.reportTypeError=Jd;function Q2(e){let{gen:t,data:r,schema:n}=e,o=(0,u0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var h0=x(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.assignDefaults=void 0;var ci=V(),J2=se();function X2(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)m0(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>m0(e,i,o.default))}Oc.assignDefaults=X2;function m0(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,ci._)`${i}${(0,ci.getProperty)(t)}`;if(o){(0,J2.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,ci._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,ci._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,ci._)`${a} = ${(0,ci.stringify)(r)}`)}});var Zd=x(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.getSkipCondition=void 0;var kc=V(),Xd=bt();function Z2(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,kc._)`typeof ${Xd.default.this} == "object" && ${Xd.default.this} && ${Xd.default.this}.apiContext`;return o&&s.push((0,kc._)`${a} === "request"`),i&&s.push((0,kc._)`${a} === "response"`),(0,kc.or)(...s)}Ic.getSkipCondition=Z2});var Qt=x($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.validateUnion=$e.validateArray=$e.usePattern=$e.callValidateCode=$e.schemaProperties=$e.allSchemaProperties=$e.noPropertyInData=$e.propertyInData=$e.isOwnProperty=$e.hasPropFunc=$e.reportMissingProp=$e.checkMissingProp=$e.checkReportMissingProp=void 0;var Re=V(),ef=se(),en=bt(),eU=se(),tU=Zd();function rU(e,t){let{gen:r,data:n,it:o}=e;r.if(rf(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Re._)`${t}`},!0),e.error()})}$e.checkReportMissingProp=rU;function nU({gen:e,data:t,it:{opts:r},parentSchema:n},o,i){return(0,Re.or)(...o.map(s=>{var a;return(0,Re.and)((0,Re.not)((a=(0,tU.getSkipCondition)(n,s))!==null&&a!==void 0?a:(0,Re._)`false`),rf(e,t,s,r.ownProperties),(0,Re._)`${i} = ${s}`)}))}$e.checkMissingProp=nU;function oU(e,t){e.setParams({missingProperty:t},!0),e.error()}$e.reportMissingProp=oU;function y0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Re._)`Object.prototype.hasOwnProperty`})}$e.hasPropFunc=y0;function tf(e,t,r){return(0,Re._)`${y0(e)}.call(${t}, ${r})`}$e.isOwnProperty=tf;function iU(e,t,r,n){let o=(0,Re._)`${t}${(0,Re.getProperty)(r)} !== undefined`;return n?(0,Re._)`${o} && ${tf(e,t,r)}`:o}$e.propertyInData=iU;function rf(e,t,r,n){let o=(0,Re._)`${t}${(0,Re.getProperty)(r)} === undefined`;return n?(0,Re.or)(o,(0,Re.not)(tf(e,t,r))):o}$e.noPropertyInData=rf;function g0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}$e.allSchemaProperties=g0;function sU(e,t){return g0(t).filter(r=>!(0,ef.alwaysValidSchema)(e,t[r]))}$e.schemaProperties=sU;function aU({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,Re._)`${e}, ${t}, ${n}${o}`:t,u=[[en.default.instancePath,(0,Re.strConcat)(en.default.instancePath,i)],[en.default.parentData,s.parentData],[en.default.parentDataProperty,s.parentDataProperty],[en.default.rootData,en.default.rootData],[en.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&u.push([en.default.dynamicAnchors,en.default.dynamicAnchors]);let m=(0,Re._)`${l}, ${r.object(...u)}`;return c!==Re.nil?(0,Re._)`${a}.call(${c}, ${m})`:(0,Re._)`${a}(${m})`}$e.callValidateCode=aU;var cU=(0,Re._)`new RegExp`;function pU({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,Re._)`${o.code==="new RegExp"?cU:(0,eU.useFunc)(e,o)}(${r}, ${n})`})}$e.usePattern=pU;function lU(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,Re._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:ef.Type.Num},i),t.if((0,Re.not)(i),a)})}}$e.validateArray=lU;function uU(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(p=>(0,ef.alwaysValidSchema)(i,p))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((p,l)=>{let u=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,Re._)`${a} || ${c}`),e.mergeValidEvaluated(u,c)||t.if((0,Re.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}$e.validateUnion=uU});var x0=x(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.validateKeywordUsage=Cr.validSchemaType=Cr.funcKeywordCode=Cr.macroKeywordCode=void 0;var xt=V(),lo=bt(),dU=Qt(),fU=Is();function mU(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=v0(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:xt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}Cr.macroKeywordCode=mU;function hU(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;gU(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=v0(n,o,p),u=n.let("valid");e.block$data(u,m),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function m(){if(t.errors===!1)h(),t.modifying&&b0(e),y(()=>e.error());else{let g=t.async?d():f();t.modifying&&b0(e),y(()=>yU(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,xt._)`await `),v=>n.assign(u,!1).if((0,xt._)`${v} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,xt._)`${v}.errors`),()=>n.throw(v))),g}function f(){let g=(0,xt._)`${l}.errors`;return n.assign(g,null),h(xt.nil),g}function h(g=t.async?(0,xt._)`await `:xt.nil){let v=c.opts.passContext?lo.default.this:lo.default.self,b=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,xt._)`${g}${(0,dU.callValidateCode)(e,l,v,b)}`,t.modifying)}function y(g){var v;n.if((0,xt.not)((v=t.valid)!==null&&v!==void 0?v:u),g)}}Cr.funcKeywordCode=hU;function b0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,xt._)`${n.parentData}[${n.parentDataProperty}]`))}function yU(e,t){let{gen:r}=e;r.if((0,xt._)`Array.isArray(${t})`,()=>{r.assign(lo.default.vErrors,(0,xt._)`${lo.default.vErrors} === null ? ${t} : ${lo.default.vErrors}.concat(${t})`).assign(lo.default.errors,(0,xt._)`${lo.default.vErrors}.length`),(0,fU.extendErrors)(e)},()=>e.error())}function gU({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function v0(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,xt.stringify)(r)})}function bU(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")}Cr.validSchemaType=bU;function vU({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)}}Cr.validateKeywordUsage=vU});var w0=x(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.extendSubschemaMode=Sn.extendSubschemaData=Sn.getSubschema=void 0;var qr=V(),S0=se();function xU(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,qr._)`${e.schemaPath}${(0,qr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,qr._)`${e.schemaPath}${(0,qr.getProperty)(t)}${(0,qr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,S0.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')}Sn.getSubschema=xU;function SU(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:p,dataPathArr:l,opts:u}=t,m=a.let("data",(0,qr._)`${t.data}${(0,qr.getProperty)(r)}`,!0);c(m),e.errorPath=(0,qr.str)`${p}${(0,S0.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,qr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof qr.Name?o:a.let("data",o,!0);c(p),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}Sn.extendSubschemaData=SU;function wU(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}Sn.extendSubschemaMode=wU});var qs=x((A8,_0)=>{"use strict";_0.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 nf=x((T8,P0)=>{"use strict";var wn=P0.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(){};Cc(t,n,o,e,"",e)};wn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};wn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};wn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};wn.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 Cc(e,t,r,n,o,i,s,a,c,p){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,i,s,a,c,p);for(var l in n){var u=n[l];if(Array.isArray(u)){if(l in wn.arrayKeywords)for(var m=0;m<u.length;m++)Cc(e,t,r,u[m],o+"/"+l+"/"+m,i,o,l,n,m)}else if(l in wn.propsKeywords){if(u&&typeof u=="object")for(var d in u)Cc(e,t,r,u[d],o+"/"+l+"/"+_U(d),i,o,l,n,d)}else(l in wn.keywords||e.allKeys&&!(l in wn.skipKeywords))&&Cc(e,t,r,u,o+"/"+l,i,o,l,n)}r(n,o,i,s,a,c,p)}}function _U(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ns=x(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.getSchemaRefs=kt.resolveUrl=kt.normalizeId=kt._getFullPath=kt.getFullPath=kt.inlineRef=void 0;var PU=se(),EU=qs(),$U=nf(),AU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function TU(e,t=!0){return typeof e=="boolean"?!0:t===!0?!of(e):t?E0(e)<=t:!1}kt.inlineRef=TU;var RU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function of(e){for(let t in e){if(RU.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(of)||typeof r=="object"&&of(r))return!0}return!1}function E0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!AU.has(r)&&(typeof e[r]=="object"&&(0,PU.eachItem)(e[r],n=>t+=E0(n)),t===1/0))return 1/0}return t}function $0(e,t="",r){r!==!1&&(t=pi(t));let n=e.parse(t);return A0(e,n)}kt.getFullPath=$0;function A0(e,t){return e.serialize(t).split("#")[0]+"#"}kt._getFullPath=A0;var OU=/#\/?$/;function pi(e){return e?e.replace(OU,""):""}kt.normalizeId=pi;function kU(e,t,r){return r=pi(r),e.resolve(t,r)}kt.resolveUrl=kU;var IU=/^[a-z_][-a-z0-9._]*$/i;function CU(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=pi(e[r]||t),i={"":o},s=$0(n,o,!1),a={},c=new Set;return $U(e,{allKeys:!0},(u,m,d,f)=>{if(f===void 0)return;let h=s+m,y=i[f];typeof u[r]=="string"&&(y=g.call(this,u[r])),v.call(this,u.$anchor),v.call(this,u.$dynamicAnchor),i[m]=y;function g(b){let S=this.opts.uriResolver.resolve;if(b=pi(y?S(y,b):b),c.has(b))throw l(b);c.add(b);let w=this.refs[b];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?p(u,w.schema,b):b!==pi(h)&&(b[0]==="#"?(p(u,a[b],b),a[b]=u):this.refs[b]=h),b}function v(b){if(typeof b=="string"){if(!IU.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function p(u,m,d){if(m!==void 0&&!EU(u,m))throw l(d)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}kt.getSchemaRefs=CU});var li=x(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.getData=_n.KeywordCxt=_n.validateFunctionCode=void 0;var I0=c0(),T0=Cs(),af=Yd(),qc=Cs(),qU=h0(),Ms=x0(),sf=w0(),j=V(),z=bt(),NU=Ns(),tn=se(),js=Is();function jU(e){if(N0(e)&&(j0(e),q0(e))){LU(e);return}C0(e,()=>(0,I0.topBoolOrEmptySchema)(e))}_n.validateFunctionCode=jU;function C0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,j._)`${z.default.data}, ${z.default.valCxt}`,n.$async,()=>{e.code((0,j._)`"use strict"; ${R0(r,o)}`),DU(e,o),e.code(i)}):e.func(t,(0,j._)`${z.default.data}, ${MU(o)}`,n.$async,()=>e.code(R0(r,o)).code(i))}function MU(e){return(0,j._)`{${z.default.instancePath}="", ${z.default.parentData}, ${z.default.parentDataProperty}, ${z.default.rootData}=${z.default.data}${e.dynamicRef?(0,j._)`, ${z.default.dynamicAnchors}={}`:j.nil}, ${z.default.isAllOfVariant} = 0}={}`}function DU(e,t){e.if(z.default.valCxt,()=>{e.var(z.default.instancePath,(0,j._)`${z.default.valCxt}.${z.default.instancePath}`),e.var(z.default.parentData,(0,j._)`${z.default.valCxt}.${z.default.parentData}`),e.var(z.default.parentDataProperty,(0,j._)`${z.default.valCxt}.${z.default.parentDataProperty}`),e.var(z.default.rootData,(0,j._)`${z.default.valCxt}.${z.default.rootData}`),e.var(z.default.isAllOfVariant,(0,j._)`${z.default.valCxt}.${z.default.isAllOfVariant}`),t.dynamicRef&&e.var(z.default.dynamicAnchors,(0,j._)`${z.default.valCxt}.${z.default.dynamicAnchors}`)},()=>{e.var(z.default.instancePath,(0,j._)`""`),e.var(z.default.parentData,(0,j._)`undefined`),e.var(z.default.parentDataProperty,(0,j._)`undefined`),e.var(z.default.rootData,z.default.data),e.var(z.default.isAllOfVariant,(0,j._)`0`),t.dynamicRef&&e.var(z.default.dynamicAnchors,(0,j._)`{}`)})}function LU(e){let{schema:t,opts:r,gen:n}=e;C0(e,()=>{r.$comment&&t.$comment&&D0(e),BU(e),n.let(z.default.vErrors,null),n.let(z.default.errors,0),r.unevaluated&&UU(e),M0(e),GU(e)})}function UU(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,j._)`${r}.evaluated`),t.if((0,j._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,j._)`${e.evaluated}.props`,(0,j._)`undefined`)),t.if((0,j._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,j._)`${e.evaluated}.items`,(0,j._)`undefined`))}function R0(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,j._)`/*# sourceURL=${r} */`:j.nil}function zU(e,t){if(N0(e)&&(j0(e),q0(e))){FU(e,t);return}(0,I0.boolOrEmptySchema)(e,t)}function q0({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 N0(e){return typeof e.schema!="boolean"}function FU(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&D0(e),HU(e),KU(e);let i=n.const("_errs",z.default.errors);M0(e,i),n.var(t,(0,j._)`${i} === ${z.default.errors}`)}function j0(e){(0,tn.checkUnknownRules)(e),VU(e)}function M0(e,t){if(e.opts.jtd)return O0(e,[],!1,t);let r=(0,T0.getSchemaTypes)(e.schema),n=(0,T0.coerceAndCheckDataType)(e,r);O0(e,r,!n,t)}function VU(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,tn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function BU(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,tn.checkStrictMode)(e,"default is ignored in the schema root")}function HU(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,NU.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function KU(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function D0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,j._)`${z.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,j.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,j._)`${z.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function GU(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,j._)`${z.default.errors} === 0`,()=>t.return(z.default.data),()=>t.throw((0,j._)`new ${o}(${z.default.vErrors})`)):(t.assign((0,j._)`${n}.errors`,z.default.vErrors),i.unevaluated&&YU(e),t.return((0,j._)`${z.default.errors} === 0`))}function YU({gen:e,evaluated:t,props:r,items:n}){r instanceof j.Name&&e.assign((0,j._)`${t}.props`,r),n instanceof j.Name&&e.assign((0,j._)`${t}.items`,n)}function O0(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:p}=e,{RULES:l}=p;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,tn.schemaHasRulesButRef)(i,l))){o.block(()=>U0(e,"$ref",l.all.$ref.definition));return}c.jtd||WU(e,t),o.block(()=>{for(let m of l.rules)u(m);u(l.post)});function u(m){(0,af.shouldUseGroup)(i,m)&&(m.type?(o.if((0,qc.checkDataType)(m.type,s,c.strictNumbers)),k0(e,m),t.length===1&&t[0]===m.type&&r&&(o.else(),(0,qc.reportTypeError)(e)),o.endIf()):k0(e,m),a||o.if((0,j._)`${z.default.errors} === ${n||0}`))}}function k0(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,qU.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,af.shouldUseRule)(n,s)||i(n,s))&&U0(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 WU(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(QU(e,t),e.opts.allowUnionTypes||JU(e,t),XU(e,e.dataTypes))}function QU(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{L0(e.dataTypes,r)||cf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),ez(e,t)}}function JU(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&cf(e,"use allowUnionTypes to allow union type keyword")}function XU(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,af.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>ZU(t,s))&&cf(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function ZU(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function L0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function ez(e,t){let r=[];for(let n of e.dataTypes)L0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function cf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,tn.checkStrictMode)(e,t,e.opts.strictTypes)}var Nc=class{constructor(t,r,n){if((0,Ms.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,tn.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",z0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ms.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",z.default.errors))}result(t,r,n){this.failResult((0,j.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,j.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,j._)`${r} !== undefined && (${(0,j.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?js.reportExtraError:js.reportError)(this,this.def.error,r)}$dataError(){(0,js.reportError)(this,this.def.$dataError||js.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,js.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=j.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=j.nil,r=j.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,j.or)((0,j._)`${o} === undefined`,r)),t!==j.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==j.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,j.or)(s(),a());function s(){if(n.length){if(!(r instanceof j.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,j._)`${(0,qc.checkDataTypes)(c,r,i.opts.strictNumbers,qc.DataType.Wrong)}`}return j.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,j._)`!${c}(${r})`}return j.nil}}subschema(t,r,n){let o=(0,sf.getSubschema)(this.it,t);(0,sf.extendSubschemaData)(o,this.it,t),(0,sf.extendSubschemaMode)(o,t);let i={...this.it,...o,items:void 0,props:void 0,isAllOfVariant:n};return zU(i,r),i}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=tn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=tn.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,j.Name)),!0}};_n.KeywordCxt=Nc;function U0(e,t,r,n){let o=new Nc(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Ms.funcKeywordCode)(o,r):"macro"in r?(0,Ms.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Ms.funcKeywordCode)(o,r)}var tz=/^\/(?:[^~]|~0|~1)*$/,rz=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function z0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return z.default.rootData;if(e[0]==="/"){if(!tz.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=z.default.rootData}else{let p=rz.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+p[1];if(o=p[2],o==="#"){if(l>=t)throw new Error(c("property/index",l));return n[t-l]}if(l>t)throw new Error(c("data",l));if(i=r[t-l],!o)return i}let s=i,a=o.split("/");for(let p of a)p&&(i=(0,j._)`${i}${(0,j.getProperty)((0,tn.unescapeJsonPointer)(p))}`,s=(0,j._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}_n.getData=z0});var Ds=x(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var pf=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};lf.default=pf});var ui=x(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});var uf=Ns(),df=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,uf.resolveUrl)(t,r,n),this.missingSchema=(0,uf.normalizeId)((0,uf.getFullPath)(t,this.missingRef))}};ff.default=df});var Ls=x(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.resolveSchema=Jt.getCompilingSchema=Jt.resolveRef=Jt.compileSchema=Jt.SchemaEnv=void 0;var fr=V(),nz=Ds(),uo=bt(),mr=Ns(),F0=se(),oz=li(),di=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,mr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Jt.SchemaEnv=di;function hf(e){let t=B0.call(this,e);if(t)return t;let r=(0,mr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new fr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:nz.default,code:(0,fr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:uo.default.data,parentData:uo.default.parentData,parentDataProperty:uo.default.parentDataProperty,dataNames:[uo.default.data],dataPathArr:[fr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,fr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:fr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,fr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,oz.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(uo.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${uo.default.self}`,`${uo.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=p;d.evaluated={props:f instanceof fr.Name?void 0:f,items:h instanceof fr.Name?void 0:h,dynamicProps:f instanceof fr.Name,dynamicItems:h instanceof fr.Name},d.source&&(d.source.evaluated=(0,fr.stringify)(d.evaluated))}return e.validate=d,e}catch(u){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),u}finally{this._compilations.delete(e)}}Jt.compileSchema=hf;function iz(e,t,r){var n;let o=(0,mr.resolveUrl)(this.opts.uriResolver,t,r),i=e.refs[o];if(i)return i;let s=V0.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 di({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=V0.call(this,e,o))}if(s!==void 0)return e.refs[o]=sz.call(this,s)}Jt.resolveRef=iz;function sz(e){return(0,mr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:hf.call(this,e)}function B0(e){for(let t of this._compilations)if(az(t,e))return t}Jt.getCompilingSchema=B0;function az(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function V0(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||jc.call(this,e,t)}function jc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,mr._getFullPath)(this.opts.uriResolver,r),o=(0,mr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return mf.call(this,r,e);let i=(0,mr.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=jc.call(this,e,s);return typeof a?.schema!="object"?void 0:mf.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||hf.call(this,s),i===(0,mr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,mr.resolveUrl)(this.opts.uriResolver,o,p)),new di({schema:a,schemaId:c,root:e,baseId:o})}return mf.call(this,r,s)}}Jt.resolveSchema=jc;var cz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function mf(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,F0.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!cz.has(a)&&p&&(t=(0,mr.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,F0.schemaHasRulesButRef)(r,this.RULES)){let a=(0,mr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=jc.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new di({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var H0=x((q8,pz)=>{pz.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 bf=x((N8,J0)=>{"use strict";var lz=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),G0=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),yf=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Y0=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),uz=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function gf(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 dz=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function K0(e){return e.length=0,!0}function fz(e,t,r){if(e.length){let n=gf(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function mz(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],i=!1,s=!1,a=fz;for(let c=0;c<e.length;c++){let p=e[c];if(!(p==="["||p==="]"))if(p===":"){if(i===!0&&(s=!0),!a(o,n,r))break;if(++t>7){r.error=!0;break}c>0&&e[c-1]===":"&&(i=!0),n.push(":");continue}else if(p==="%"){if(!a(o,n,r))break;a=K0}else{o.push(p);continue}}return o.length&&(a===K0?r.zone=o.join(""):s?n.push(o.join("")):n.push(gf(o))),r.address=n.join(""),r}function W0(e){if(hz(e,":")<2)return{host:e,isIPV6:!1};let t=mz(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function hz(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function yz(e){let t=e,r=[],n=-1,o=0;for(;o=t.length;){if(o===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(o===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(o===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}var gz={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},bz=/[@/?#:]/g,vz=/[@/?#]/g;function Q0(e,t){let r=t?vz:bz;return r.lastIndex=0,e.replace(r,n=>gz[n])}function xz(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(yf(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));t&&Y0(s)?r+=s:r+="%"+i,n+=2;continue}}r+=e[n]}return r}function Sz(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(yf(n)){let o=n.toUpperCase(),i=String.fromCharCode(parseInt(o,16));i!=="."&&Y0(i)?t+=i:t+="%"+o,r+=2;continue}}uz(e[r])?t+=e[r]:t+=escape(e[r])}return t}function wz(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(yf(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function _z(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!G0(r)){let n=W0(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=Q0(r,!1)}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}J0.exports={nonSimpleDomain:dz,recomposeAuthority:_z,reescapeHostDelimiters:Q0,normalizePercentEncoding:xz,normalizePathEncoding:Sz,escapePreservingEscapes:wz,removeDotSegments:yz,isIPv4:G0,isUUID:lz,normalizeIPv6:W0,stringArrayToHexStripped:gf}});var rx=x((j8,tx)=>{"use strict";var{isUUID:Pz}=bf(),Ez=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,$z=["http","https","ws","wss","urn","urn:uuid"];function Az(e){return $z.indexOf(e)!==-1}function vf(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 X0(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Z0(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 Tz(e){return e.secure=vf(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function Rz(e){if((e.port===(vf(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function Oz(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Ez);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=xf(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function kz(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=xf(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 Iz(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Pz(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function Cz(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var ex={scheme:"http",domainHost:!0,parse:X0,serialize:Z0},qz={scheme:"https",domainHost:ex.domainHost,parse:X0,serialize:Z0},Mc={scheme:"ws",domainHost:!0,parse:Tz,serialize:Rz},Nz={scheme:"wss",domainHost:Mc.domainHost,parse:Mc.parse,serialize:Mc.serialize},jz={scheme:"urn",parse:Oz,serialize:kz,skipNormalize:!0},Mz={scheme:"urn:uuid",parse:Iz,serialize:Cz,skipNormalize:!0},Dc={http:ex,https:qz,ws:Mc,wss:Nz,urn:jz,"urn:uuid":Mz};Object.setPrototypeOf(Dc,null);function xf(e){return e&&(Dc[e]||Dc[e.toLowerCase()])||void 0}tx.exports={wsIsSecure:vf,SCHEMES:Dc,isValidSchemeName:Az,getSchemeHandler:xf}});var wf=x((M8,Lc)=>{"use strict";var{normalizeIPv6:Dz,removeDotSegments:Us,recomposeAuthority:Lz,normalizePercentEncoding:Uz,normalizePathEncoding:zz,escapePreservingEscapes:Fz,reescapeHostDelimiters:Vz,isIPv4:Bz,nonSimpleDomain:Hz}=bf(),{SCHEMES:Kz,getSchemeHandler:ox}=rx();function Gz(e,t){return typeof e=="string"?e=Zz(e,t):typeof e=="object"&&(e=fi(fo(e,t),t)),e}function Yz(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},o=ix(fi(e,n),fi(t,n),n,!0);return n.skipEscape=!0,fo(o,n)}function ix(e,t,r,n){let o={};return n||(e=fi(fo(e,r),r),t=fi(fo(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=Us(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Us(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=Us(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=Us(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function Wz(e,t,r){let n=nx(e,r),o=nx(t,r);return n!==void 0&&o!==void 0&&n.toLowerCase()===o.toLowerCase()}function fo(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[],i=ox(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=Uz(r.path):(r.path=Fz(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let s=Lz(r);if(s!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(s),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(a=Us(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var Qz=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,Jz=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/;function Xz(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 sx(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1,i=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let s=e.match(Jz);s!==null&&s[1].indexOf("\\")!==-1&&(n.error="URI authority must not contain a literal backslash.",o=!0);let a=e.match(Qz);if(a){n.scheme=a[1],n.userinfo=a[3],n.host=a[4],n.port=parseInt(a[5],10),n.path=a[6]||"",n.query=a[7],n.fragment=a[8],isNaN(n.port)&&(n.port=a[5]);let c=Xz(n,a);if(c!==void 0&&(n.error=n.error||c,o=!0),n.host)if(Bz(n.host)===!1){let u=Dz(n.host);n.host=u.host.toLowerCase(),i=u.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let p=ox(r.scheme||n.scheme);if(!r.unicodeSupport&&(!p||!p.unicodeSupport)&&n.host&&(r.domainHost||p&&p.domainHost)&&i===!1&&Hz(n.host))try{n.host=new URL("http://"+n.host).hostname}catch(l){n.error=n.error||"Host's domain name can not be converted to ASCII: "+l}if((!p||p&&!p.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=Vz(unescape(n.host),i))),n.path&&(n.path=zz(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}p&&p.parse&&p.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o}}function fi(e,t){return sx(e,t).parsed}function Zz(e,t){return ax(e,t).normalized}function ax(e,t){let{parsed:r,malformedAuthorityOrPort:n}=sx(e,t);return{normalized:n?e:fo(r,t),malformedAuthorityOrPort:n}}function nx(e,t){if(typeof e=="string"){let{normalized:r,malformedAuthorityOrPort:n}=ax(e,t);return n?void 0:r}if(typeof e=="object")return fo(e,t)}var Sf={SCHEMES:Kz,normalize:Gz,resolve:Yz,resolveComponent:ix,equal:Wz,serialize:fo,parse:fi};Lc.exports=Sf;Lc.exports.default=Sf;Lc.exports.fastUri=Sf});var px=x(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});var cx=wf();cx.code='require("ajv/dist/runtime/uri").default';_f.default=cx});var $f=x(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.CodeGen=rt.Name=rt.nil=rt.stringify=rt.str=rt._=rt.KeywordCxt=void 0;var eF=li();Object.defineProperty(rt,"KeywordCxt",{enumerable:!0,get:function(){return eF.KeywordCxt}});var mi=V();Object.defineProperty(rt,"_",{enumerable:!0,get:function(){return mi._}});Object.defineProperty(rt,"str",{enumerable:!0,get:function(){return mi.str}});Object.defineProperty(rt,"stringify",{enumerable:!0,get:function(){return mi.stringify}});Object.defineProperty(rt,"nil",{enumerable:!0,get:function(){return mi.nil}});Object.defineProperty(rt,"Name",{enumerable:!0,get:function(){return mi.Name}});Object.defineProperty(rt,"CodeGen",{enumerable:!0,get:function(){return mi.CodeGen}});var tF=Ds(),mx=ui(),rF=Gd(),zs=Ls(),nF=V(),Fs=Ns(),Uc=Cs(),Ef=se(),lx=H0(),oF=px(),hx=(e,t)=>new RegExp(e,t);hx.code="new RegExp";var iF=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],sF=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),aF={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."},cF={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},ux=200;function pF(e){var t,r,n,o,i,s,a,c,p,l,u,m,d,f,h,y,g,v,b,S,w,_,T,A,R;let P=e.strict,J=(t=e.code)===null||t===void 0?void 0:t.optimize,H=J===!0||J===void 0?1:J||0,U=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:hx,E=(o=e.uriResolver)!==null&&o!==void 0?o:oF.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:P)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:P)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:P)!==null&&l!==void 0?l:"log",strictTuples:(m=(u=e.strictTuples)!==null&&u!==void 0?u:P)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:P)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:H,regExp:U}:{optimize:H,regExp:U},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:ux,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:ux,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(S=e.schemaId)!==null&&S!==void 0?S:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(_=e.validateSchema)!==null&&_!==void 0?_:!0,validateFormats:(T=e.validateFormats)!==null&&T!==void 0?T:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(R=e.int32range)!==null&&R!==void 0?R:!0,uriResolver:E}}var Vs=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...pF(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new nF.ValueScope({scope:{},prefixes:sF,es5:r,lines:n}),this.logger=hF(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,rF.getRules)(),dx.call(this,aF,t,"NOT SUPPORTED"),dx.call(this,cF,t,"DEPRECATED","warn"),this._metaOpts=fF.call(this),t.formats&&uF.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&dF.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),lF.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=lx;n==="id"&&(o={...lx},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(l,u){await i.call(this,l.$schema);let m=this._addSchema(l,u);return m.validate||s.call(this,m)}async function i(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function s(l){try{return this._compileSchemaEnv(l)}catch(u){if(!(u instanceof mx.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,l)}}function a({missingSchema:l,missingRef:u}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${u} cannot be resolved`)}async function c(l){let u=await p.call(this,l);this.refs[l]||await i.call(this,u.$schema),this.refs[l]||this.addSchema(u,l,r)}async function p(l){let u=this._loading[l];if(u)return u;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}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,Fs.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=fx.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new zs.SchemaEnv({schema:{},schemaId:n});if(r=zs.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=fx.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,Fs.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(gF.call(this,n,r),!r)return(0,Ef.eachItem)(n,i=>Pf.call(this,i)),this;vF.call(this,r);let o={...r,type:(0,Uc.getJSONTypes)(r.type),schemaType:(0,Uc.getJSONTypes)(r.schemaType)};return(0,Ef.eachItem)(n,o.type.length===0?i=>Pf.call(this,i,o):i=>o.type.forEach(s=>Pf.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:p}=c.definition,l=s[a];p&&l&&(s[a]=yx(l))}}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,Fs.normalizeId)(s||n);let p=Fs.getSchemaRefs.call(this,t,n);return c=new zs.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:p}),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):zs.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{zs.compileSchema.call(this,t)}finally{this.opts=r}}};Vs.ValidationError=tF.default;Vs.MissingRefError=mx.default;rt.default=Vs;function dx(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function fx(e){return e=(0,Fs.normalizeId)(e),this.schemas[e]||this.refs[e]}function lF(){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 uF(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function dF(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 fF(){let e={...this.opts};for(let t of iF)delete e[t];return e}var mF={log(){},warn(){},error(){}};function hF(e){if(e===!1)return mF;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 yF=/^[a-z_$][a-z0-9_$:-]*$/i;function gF(e,t){let{RULES:r}=this;if((0,Ef.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!yF.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 Pf(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,Uc.getJSONTypes)(t.type),schemaType:(0,Uc.getJSONTypes)(t.schemaType)}};t.before?bF.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 bF(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 vF(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=yx(t)),e.validateSchema=this.compile(t,!0))}var xF={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function yx(e){return{anyOf:[e,xF]}}});var gx=x(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});var SF={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Af.default=SF});var Bs=x(mo=>{"use strict";Object.defineProperty(mo,"__esModule",{value:!0});mo.callRef=mo.getValidate=void 0;var wF=ui(),bx=Qt(),Be=V(),hi=bt(),vx=Ls(),zc=se(),_F={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:p}=i;if((r==="#"||r==="#/")&&o===p.baseId)return u();let l=vx.resolveRef.call(c,p,o,r);if(l===void 0)throw new wF.default(n.opts.uriResolver,o,r);if(l instanceof vx.SchemaEnv)return m(l);return d(l);function u(){if(i===p)return Fc(e,s,i,i.$async);let f=t.scopeValue("root",{ref:p});return Fc(e,(0,Be._)`${f}.validate`,p,p.$async)}function m(f){let h=xx(e,f);Fc(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,Be.stringify)(f)}:{ref:f}),y=t.name("valid"),g=e.subschema({schema:f,dataTypes:[],schemaPath:Be.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(g),e.ok(y)}}};function xx(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Be._)`${r.scopeValue("wrapper",{ref:t})}.validate`}mo.getValidate=xx;function Fc(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?hi.default.this:Be.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=o.let("valid");o.try(()=>{o.code((0,Be._)`await ${(0,bx.callValidateCode)(e,t,p)}`),d(t),s||o.assign(f,!0)},h=>{o.if((0,Be._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),m(h),s||o.assign(f,!1)}),e.ok(f)}function u(){let f=o.name("visitedNodes");o.code((0,Be._)`const ${f} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),o.if((0,Be._)`!${f}.has(${e.data})`,()=>{o.code((0,Be._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${f})`),o.code((0,Be._)`const dataNode = ${e.data}`),o.code((0,Be._)`if (typeof dataNode === "object" && dataNode !== null) ${f}.add(dataNode)`);let h=e.result((0,bx.callValidateCode)(e,t,p),()=>d(t),()=>m(t));return o.code((0,Be._)`${f}.delete(dataNode)`),h})}function m(f){let h=(0,Be._)`${f}.errors`;o.assign(hi.default.vErrors,(0,Be._)`${hi.default.vErrors} === null ? ${h} : ${hi.default.vErrors}.concat(${h})`),o.assign(hi.default.errors,(0,Be._)`${hi.default.vErrors}.length`)}function d(f){var h;if(!i.opts.unevaluated)return;let y=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(i.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(i.props=zc.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,Be._)`${f}.evaluated.props`);i.props=zc.mergeEvaluated.props(o,g,i.props,Be.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=zc.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,Be._)`${f}.evaluated.items`);i.items=zc.mergeEvaluated.items(o,g,i.items,Be.Name)}}}mo.callRef=Fc;mo.default=_F});var Sx=x(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});var PF=gx(),EF=Bs(),$F=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",PF.default,EF.default];Tf.default=$F});var wx=x(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var Vc=V(),Pn=Vc.operators,Bc={maximum:{okStr:"<=",ok:Pn.LTE,fail:Pn.GT},minimum:{okStr:">=",ok:Pn.GTE,fail:Pn.LT},exclusiveMaximum:{okStr:"<",ok:Pn.LT,fail:Pn.GTE},exclusiveMinimum:{okStr:">",ok:Pn.GT,fail:Pn.LTE}},AF={message:({keyword:e,schemaCode:t})=>(0,Vc.str)`must be ${Bc[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Vc._)`{comparison: ${Bc[e].okStr}, limit: ${t}}`},TF={keyword:Object.keys(Bc),type:"number",schemaType:"number",$data:!0,error:AF,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Vc._)`${r} ${Bc[t].fail} ${n} || isNaN(${r})`)}};Rf.default=TF});var _x=x(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});var Hs=V(),RF={message:({schemaCode:e})=>(0,Hs.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Hs._)`{multipleOf: ${e}}`},OF={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:RF,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Hs._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Hs._)`${s} !== parseInt(${s})`;e.fail$data((0,Hs._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};Of.default=OF});var Ex=x(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});function Px(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}kf.default=Px;Px.code='require("ajv/dist/runtime/ucs2length").default'});var $x=x(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});var ho=V(),kF=se(),IF=Ex(),CF={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,ho.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,ho._)`{limit: ${e}}`},qF={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:CF,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?ho.operators.GT:ho.operators.LT,s=o.opts.unicode===!1?(0,ho._)`${r}.length`:(0,ho._)`${(0,kF.useFunc)(e.gen,IF.default)}(${r})`;e.fail$data((0,ho._)`${s} ${i} ${n}`)}};If.default=qF});var Ax=x(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var NF=Qt(),jF=se(),yi=V(),MF={message:({schemaCode:e})=>(0,yi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,yi._)`{pattern: ${e}}`},DF={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:MF,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,p=c.code==="new RegExp"?(0,yi._)`new RegExp`:(0,jF.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,yi._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,yi._)`!${l}`)}else{let c=(0,NF.usePattern)(e,o);e.fail$data((0,yi._)`!${c}.test(${r})`)}}};Cf.default=DF});var Tx=x(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var Ks=V(),LF={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ks.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ks._)`{limit: ${e}}`},UF={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:LF,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Ks.operators.GT:Ks.operators.LT;e.fail$data((0,Ks._)`Object.keys(${r}).length ${o} ${n}`)}};qf.default=UF});var Rx=x(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var Gs=Qt(),zF=Zd(),yo=V(),FF=se(),VF={message:({params:{missingProperty:e}})=>(0,yo.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,yo._)`{missingProperty: ${e}}`},BF={keyword:"required",type:"object",schemaType:"array",$data:!0,error:VF,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?p():l(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if(d?.[h]===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,FF.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){var d;if(c||i)e.block$data(yo.nil,u);else for(let f of r){let h=(d=(0,zF.getSkipCondition)(e.parentSchema,f))!==null&&d!==void 0?d:(0,yo._)`false`;t.if((0,yo.not)(h),()=>(0,Gs.checkReportMissingProp)(e,f))}}function l(){let d=t.let("missing");if(c||i){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,Gs.checkMissingProp)(e,r,d)),(0,Gs.reportMissingProp)(e,d),t.else()}function u(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Gs.noPropertyInData)(t,o,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,Gs.propertyInData)(t,o,d,a.ownProperties)),t.if((0,yo.not)(f),()=>{e.error(),t.break()})},yo.nil)}}};Nf.default=BF});var kx=x(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var jf=V(),Ox=bt(),HF={message:()=>(0,jf.str)`must NOT be present in request context`},KF={keyword:"readOnly",schemaType:"boolean",error:HF,code(e){if(e.schema!==!0)return;let t=(0,jf._)`(${Ox.default.this} && ${Ox.default.this}.apiContext)`;e.fail((0,jf._)`${t} === "request"`)}};Mf.default=KF});var Cx=x(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var Df=V(),Ix=bt(),GF={message:()=>(0,Df.str)`must NOT be present in response context`},YF={keyword:"writeOnly",schemaType:"boolean",error:GF,code(e){if(e.schema!==!0)return;let t=(0,Df._)`(${Ix.default.this} && ${Ix.default.this}.apiContext)`;e.fail((0,Df._)`${t} === "response"`)}};Lf.default=YF});var qx=x(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var Ys=V(),WF={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ys.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ys._)`{limit: ${e}}`},QF={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:WF,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Ys.operators.GT:Ys.operators.LT;e.fail$data((0,Ys._)`${r}.length ${o} ${n}`)}};Uf.default=QF});var Hc=x(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var Nx=qs();Nx.code='require("ajv/dist/runtime/equal").default';zf.default=Nx});var jx=x(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var Ff=Cs(),nt=V(),JF=se(),XF=Hc(),ZF={message:({params:{i:e,j:t}})=>(0,nt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,nt._)`{i: ${e}, j: ${t}}`},eV={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:ZF,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"),p=i.items?(0,Ff.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,nt._)`${s} === false`),e.ok(c);function l(){let f=t.let("i",(0,nt._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,nt._)`${f} > 1`,()=>(u()?m:d)(f,h))}function u(){return p.length>0&&!p.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),g=(0,Ff.checkDataTypes)(p,y,a.opts.strictNumbers,Ff.DataType.Wrong),v=t.const("indices",(0,nt._)`{}`);t.for((0,nt._)`;${f}--;`,()=>{t.let(y,(0,nt._)`${r}[${f}]`),t.if(g,(0,nt._)`continue`),p.length>1&&t.if((0,nt._)`typeof ${y} == "string"`,(0,nt._)`${y} += "_"`),t.if((0,nt._)`typeof ${v}[${y}] == "number"`,()=>{t.assign(h,(0,nt._)`${v}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,nt._)`${v}[${y}] = ${f}`)})}function d(f,h){let y=(0,JF.useFunc)(t,XF.default),g=t.name("outer");t.label(g).for((0,nt._)`;${f}--;`,()=>t.for((0,nt._)`${h} = ${f}; ${h}--;`,()=>t.if((0,nt._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};Vf.default=eV});var Mx=x(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var Bf=V(),tV=se(),rV=Hc(),nV={message:"must be equal to constant",params:({schemaCode:e})=>(0,Bf._)`{allowedValue: ${e}}`},oV={keyword:"const",$data:!0,error:nV,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Bf._)`!${(0,tV.useFunc)(t,rV.default)}(${r}, ${o})`):e.fail((0,Bf._)`${i} !== ${r}`)}};Hf.default=oV});var Dx=x(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var Ws=V(),iV=se(),sV=Hc(),aV={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ws._)`{allowedValues: ${e}}`},cV={keyword:"enum",schemaType:"array",$data:!0,error:aV,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,p=()=>c??(c=(0,iV.useFunc)(t,sV.default)),l;if(a||n)l=t.let("valid"),e.block$data(l,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let d=t.const("vSchema",i);l=(0,Ws.or)(...o.map((f,h)=>m(d,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,d=>t.if((0,Ws._)`${p()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}function m(d,f){let h=o[f];return typeof h=="object"&&h!==null?(0,Ws._)`${p()}(${r}, ${d}[${f}])`:(0,Ws._)`${r} === ${h}`}}};Kf.default=cV});var Yf=x(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var pV=wx(),lV=_x(),uV=$x(),dV=Ax(),fV=Tx(),mV=Rx(),hV=kx(),yV=Cx(),gV=qx(),bV=jx(),vV=Mx(),xV=Dx(),SV=[pV.default,lV.default,uV.default,dV.default,fV.default,mV.default,hV.default,yV.default,gV.default,bV.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},vV.default,xV.default];Gf.default=SV});var Qf=x(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});Qs.validateAdditionalItems=void 0;var go=V(),Wf=se(),wV={message:({params:{len:e}})=>(0,go.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,go._)`{limit: ${e}}`},_V={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:wV,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Wf.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Lx(e,n)}};function Lx(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,go._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,go._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Wf.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,go._)`${a} <= ${t.length}`);r.if((0,go.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:Wf.Type.Num},p),s.allErrors||r.if((0,go.not)(p),()=>r.break())})}}Qs.validateAdditionalItems=Lx;Qs.default=_V});var Jf=x(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.validateTuple=void 0;var Ux=V(),Kc=se(),PV=Qt(),EV={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return zx(e,"additionalItems",t);r.items=!0,!(0,Kc.alwaysValidSchema)(r,t)&&e.ok((0,PV.validateArray)(e))}};function zx(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Kc.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,Ux._)`${i}.length`);r.forEach((u,m)=>{(0,Kc.alwaysValidSchema)(a,u)||(n.if((0,Ux._)`${p} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function l(u){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===u.minItems&&(f===u.maxItems||u[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Kc.checkStrictMode)(a,y,m.strictTuples)}}}Js.validateTuple=zx;Js.default=EV});var Fx=x(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var $V=Jf(),AV={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,$V.validateTuple)(e,"items")};Xf.default=AV});var Bx=x(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var Vx=V(),TV=se(),RV=Qt(),OV=Qf(),kV={message:({params:{len:e}})=>(0,Vx.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Vx._)`{limit: ${e}}`},IV={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:kV,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,TV.alwaysValidSchema)(n,t)&&(o?(0,OV.validateAdditionalItems)(e,o):e.ok((0,RV.validateArray)(e)))}};Zf.default=IV});var Hx=x(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var Xt=V(),Gc=se(),CV={message:({params:{min:e,max:t}})=>t===void 0?(0,Xt.str)`must contain at least ${e} valid item(s)`:(0,Xt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Xt._)`{minContains: ${e}}`:(0,Xt._)`{minContains: ${e}, maxContains: ${t}}`},qV={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:CV,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:p}=n;i.opts.next?(s=c===void 0?1:c,a=p):s=1;let l=t.const("len",(0,Xt._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Gc.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Gc.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Gc.alwaysValidSchema)(i,r)){let h=(0,Xt._)`${l} >= ${s}`;a!==void 0&&(h=(0,Xt._)`${h} && ${l} <= ${a}`),e.pass(h);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?d(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,Xt._)`${o}.length > 0`,m)):(t.let(u,!1),m()),e.result(u,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Gc.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,Xt._)`${h}++`),a===void 0?t.if((0,Xt._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,Xt._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,Xt._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};em.default=qV});var Yc=x(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.validateSchemaDeps=Nr.validatePropertyDeps=Nr.error=void 0;var tm=V(),NV=se(),Xs=Qt();Nr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,tm.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,tm._)`{property: ${e},
|
|
12
|
+
missingProperty: ${n},
|
|
13
|
+
depsCount: ${t},
|
|
14
|
+
deps: ${r}}`};var jV={keyword:"dependencies",type:"object",schemaType:"object",error:Nr.error,code(e){let[t,r]=MV(e);Kx(e,t),Gx(e,r)}};function MV({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 Kx(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,Xs.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let p of a)(0,Xs.checkReportMissingProp)(e,p)}):(r.if((0,tm._)`${c} && (${(0,Xs.checkMissingProp)(e,a,i)})`),(0,Xs.reportMissingProp)(e,i),r.else())}}Nr.validatePropertyDeps=Kx;function Gx(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,NV.alwaysValidSchema)(i,t[a])||(r.if((0,Xs.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))}Nr.validateSchemaDeps=Gx;Nr.default=jV});var Wx=x(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var Yx=V(),DV=se(),LV={message:"property name must be valid",params:({params:e})=>(0,Yx._)`{propertyName: ${e.propertyName}}`},UV={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:LV,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,DV.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,Yx.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};rm.default=UV});var om=x(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});var Wc=Qt(),hr=V(),zV=bt(),Qc=se(),FV={message:"must NOT have additional properties",params:({params:e})=>(0,hr._)`{additionalProperty: ${e.additionalProperty}}`},VV={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:FV,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,Qc.alwaysValidSchema)(i,s))return;let p=(0,Wc.allSchemaProperties)(r.properties),l=(0,Wc.allSchemaProperties)(r.patternProperties);u(),e.ok((0,hr._)`${o} === ${zV.default.errors}`);function u(){t.forIn("key",n,y=>{!p.length&&!l.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let g;if(p.length>8){let v=(0,Qc.schemaRefOrVal)(i,r.properties,"properties");g=(0,Wc.isOwnProperty)(t,v,y)}else p.length?g=(0,hr.or)(...p.map(v=>(0,hr._)`${y} === ${v}`)):g=hr.nil;return l.length&&(g=(0,hr.or)(g,...l.map(v=>(0,hr._)`${(0,Wc.usePattern)(e,v)}.test(${y})`))),(0,hr.not)(g)}function d(y){t.code((0,hr._)`delete ${n}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){d(y);return}if(s===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,Qc.alwaysValidSchema)(i,s)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,hr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,hr.not)(g),()=>t.break()))}}function h(y,g,v){let b={keyword:"additionalProperties",dataProp:y,dataPropType:Qc.Type.Str};v===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,g)}}};nm.default=VV});var Xx=x(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var BV=li(),Qx=Qt(),im=se(),Jx=om(),HV={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)&&Jx.default.code(new BV.KeywordCxt(i,Jx.default,"additionalProperties"));let s=(0,Qx.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=im.mergeEvaluated.props(t,(0,im.toHash)(s),i.props));let a=s.filter(u=>!(0,im.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)p(u)?l(u):(t.if((0,Qx.propertyInData)(t,o,u,i.opts.ownProperties)),l(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function p(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function l(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};sm.default=HV});var rS=x(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});var Zx=Qt(),Jc=V(),eS=se(),tS=se(),KV={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,Zx.allSchemaProperties)(r),c=a.filter(h=>(0,eS.alwaysValidSchema)(i,r[h]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let p=s.strictSchema&&!s.allowMatchingProperties&&o.properties,l=t.name("valid");i.props!==!0&&!(i.props instanceof Jc.Name)&&(i.props=(0,tS.evaluatedPropsToName)(t,i.props));let{props:u}=i;m();function m(){for(let h of a)p&&d(h),i.allErrors?f(h):(t.var(l,!0),f(h),t.if(l))}function d(h){for(let y in p)new RegExp(h).test(y)&&(0,eS.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,Jc._)`${(0,Zx.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:tS.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,Jc._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,Jc.not)(l),()=>t.break())})})}}};am.default=KV});var nS=x(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});var GV=se(),YV={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,GV.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"}};cm.default=YV});var oS=x(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var WV=Qt(),QV={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:WV.validateUnion,error:{message:"must match a schema in anyOf"}};pm.default=QV});var iS=x(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var Xc=V(),JV=se(),XV={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Xc._)`{passingSchemas: ${e.passing}}`},ZV={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:XV,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(p),e.result(s,()=>e.reset(),()=>e.error(!0));function p(){i.forEach((l,u)=>{let m;(0,JV.alwaysValidSchema)(o,l)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,Xc._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Xc._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),m&&e.mergeEvaluated(m,Xc.Name)})})}}};lm.default=ZV});var sS=x(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});var e3=se(),t3={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,e3.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o,!0);e.ok(o),e.mergeEvaluated(a)})}};um.default=t3});var pS=x(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var Zc=V(),cS=se(),r3={message:({params:e})=>(0,Zc.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Zc._)`{failingKeyword: ${e.ifClause}}`},n3={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:r3,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,cS.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=aS(n,"then"),i=aS(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,p("then",l),p("else",l))}else o?t.if(a,p("then")):t.if((0,Zc.not)(a),p("else"));e.pass(s,()=>e.error(!0));function c(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function p(l,u){return()=>{let m=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(m,s),u?t.assign(u,(0,Zc._)`${l}`):e.setParams({ifClause:l})}}}};function aS(e,t){let r=e.schema[t];return r!==void 0&&!(0,cS.alwaysValidSchema)(e,r)}dm.default=n3});var lS=x(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var o3=se(),i3={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,o3.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};fm.default=i3});var hm=x(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});var s3=Qf(),a3=Fx(),c3=Jf(),p3=Bx(),l3=Hx(),u3=Yc(),d3=Wx(),f3=om(),m3=Xx(),h3=rS(),y3=nS(),g3=oS(),b3=iS(),v3=sS(),x3=pS(),S3=lS();function w3(e=!1){let t=[y3.default,g3.default,b3.default,v3.default,x3.default,S3.default,d3.default,f3.default,u3.default,m3.default,h3.default];return e?t.push(a3.default,p3.default):t.push(s3.default,c3.default),t.push(l3.default),t}mm.default=w3});var gm=x(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.dynamicAnchor=void 0;var ym=V(),_3=bt(),uS=Ls(),P3=Bs(),E3={keyword:"$dynamicAnchor",schemaType:"string",code:e=>dS(e,e.schema)};function dS(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,ym._)`${_3.default.dynamicAnchors}${(0,ym.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:$3(e);r.if((0,ym._)`!${o}`,()=>r.assign(o,i))}Zs.dynamicAnchor=dS;function $3(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:i,localRefs:s,meta:a}=t.root,{schemaId:c}=n.opts,p=new uS.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:s,meta:a});return uS.compileSchema.call(n,p),(0,P3.getValidate)(e,p)}Zs.default=E3});var bm=x(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.dynamicRef=void 0;var fS=V(),A3=bt(),mS=Bs(),T3={keyword:"$dynamicRef",schemaType:"string",code:e=>hS(e,e.schema)};function hS(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 p=r.let("_v",(0,fS._)`${A3.default.dynamicAnchors}${(0,fS.getProperty)(i)}`);r.if(p,a(p,c),a(o.validateName,c))}else a(o.validateName,c)()}function a(c,p){return p?()=>r.block(()=>{(0,mS.callRef)(e,c),r.let(p,!0)}):()=>(0,mS.callRef)(e,c)}}ea.dynamicRef=hS;ea.default=T3});var yS=x(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});var R3=gm(),O3=se(),k3={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,R3.dynamicAnchor)(e,""):(0,O3.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};vm.default=k3});var gS=x(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var I3=bm(),C3={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,I3.dynamicRef)(e,e.schema)};xm.default=C3});var bS=x(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});var q3=gm(),N3=bm(),j3=yS(),M3=gS(),D3=[q3.default,N3.default,j3.default,M3.default];Sm.default=D3});var xS=x(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var vS=Yc(),L3={keyword:"dependentRequired",type:"object",schemaType:"object",error:vS.error,code:e=>(0,vS.validatePropertyDeps)(e)};wm.default=L3});var SS=x(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var U3=Yc(),z3={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,U3.validateSchemaDeps)(e)};_m.default=z3});var wS=x(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var F3=se(),V3={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,F3.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Pm.default=V3});var _S=x(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var B3=xS(),H3=SS(),K3=wS(),G3=[B3.default,H3.default,K3.default];Em.default=G3});var $S=x($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});var rn=V(),PS=se(),ES=bt(),Y3={message:"must NOT have unevaluated properties",params:({params:e})=>(0,rn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},W3={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Y3,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 rn.Name)t.if((0,rn._)`${c} !== true`,()=>t.forIn("key",n,m=>t.if(l(c,m),()=>p(m))));else if(c!==!0){let m=()=>t.forIn("key",n,d=>c===void 0?p(d):t.if(u(c,d),()=>p(d)));s&&i.errorPath.emptyStr()&&!i.compositeRule?t.if((0,rn._)`${ES.default.isAllOfVariant} === 0`,m):(!i.compositeRule||e.schema!==void 0)&&m()}s||(i.props=!0),e.ok((0,rn._)`${o} === ${ES.default.errors}`);function p(m){if(r===!1){e.setParams({unevaluatedProperty:m}),e.error(),a||t.break();return}if(!(0,PS.alwaysValidSchema)(i,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:m,dataPropType:PS.Type.Str},d),a||t.if((0,rn.not)(d),()=>t.break())}}function l(m,d){return(0,rn._)`!${m} || !${m}[${d}]`}function u(m,d){let f=[];for(let h in m)m[h]===!0&&f.push((0,rn._)`${d} !== ${h}`);return(0,rn.and)(...f)}}};$m.default=W3});var TS=x(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var bo=V(),AS=se(),Q3={message:({params:{len:e}})=>(0,bo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,bo._)`{limit: ${e}}`},J3={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:Q3,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,bo._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,bo._)`${s} > ${i}`);else if(typeof r=="object"&&!(0,AS.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,bo._)`${s} <= ${i}`);t.if((0,bo.not)(c),()=>a(c,i)),e.ok(c)}o.items=!0;function a(c,p){t.forRange("i",p,s,l=>{e.subschema({keyword:"unevaluatedItems",dataProp:l,dataPropType:AS.Type.Num},c),o.allErrors||t.if((0,bo.not)(c),()=>t.break())})}}};Am.default=J3});var Rm=x(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var X3=$S(),Z3=TS(),eB=[X3.default,Z3.default];Tm.default=eB});var RS=x(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var Fe=V(),tB={message:({schemaCode:e})=>(0,Fe.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Fe._)`{format: ${e}}`},rB={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:tB,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:p,schemaEnv:l,self:u}=a;if(!c.validateFormats)return;o?m():d();function m(){let f=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Fe._)`${f}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Fe._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Fe._)`${h}.type || "string"`).assign(g,(0,Fe._)`${h}.validate`),()=>r.assign(y,(0,Fe._)`"string"`).assign(g,h)),e.fail$data((0,Fe.or)(v(),b()));function v(){return c.strictSchema===!1?Fe.nil:(0,Fe._)`${s} && !${g}`}function b(){let S=l.$async?(0,Fe._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Fe._)`${g}(${n})`,w=(0,Fe._)`(typeof ${g} == "function" ? ${S} : ${g}.test(${n}))`;return(0,Fe._)`${g} && ${g} !== true && ${y} === ${t} && !${w}`}}function d(){let f=u.formats[i];if(!f){v();return}if(f===!0)return;let[h,y,g]=b(f);h===t&&e.pass(S());function v(){if(c.strictSchema===!1){u.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function b(w){let _=w instanceof RegExp?(0,Fe.regexpCode)(w):c.code.formats?(0,Fe._)`${c.code.formats}${(0,Fe.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:w,code:_});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Fe._)`${T}.validate`]:["string",w,T]}function S(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Fe._)`await ${g}(${n})`}return typeof y=="function"?(0,Fe._)`${g}(${n})`:(0,Fe._)`${g}.test(${n})`}}}};Om.default=rB});var Im=x(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var nB=RS(),oB=[nB.default];km.default=oB});var OS=x(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.contentVocabulary=gi.metadataVocabulary=void 0;gi.metadataVocabulary=["title","description","default","deprecated","examples"];gi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var IS=x(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});var iB=Sx(),sB=Yf(),aB=hm(),cB=bS(),pB=_S(),lB=Rm(),uB=Im(),kS=OS(),dB=[cB.default,iB.default,sB.default,(0,aB.default)(!0),uB.default,kS.metadataVocabulary,kS.contentVocabulary,pB.default,lB.default];Cm.default=dB});var qS=x(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.DiscrError=void 0;var CS;(function(e){e.Tag="tag",e.Mapping="mapping"})(CS||(ep.DiscrError=CS={}))});var jm=x(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});var bi=V(),qm=qS(),NS=Ls(),fB=ui(),mB=se(),hB={message:({params:{discrError:e,tagName:t}})=>e===qm.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf or anyOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,bi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function yB(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 gB={keyword:"discriminator",type:"object",schemaType:"object",error:hB,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],p=t.let("valid",!1),l=t.const("tag",(0,bi._)`${r}${(0,bi.getProperty)(a)}`);t.if((0,bi._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:qm.DiscrError.Tag,tag:l,tagName:a})),e.ok(p);function u(){let f=d();t.if(!1);for(let h in f)t.elseIf((0,bi._)`${l} === ${h}`),t.assign(p,m(f[h]));t.else(),e.error(!1,{discrError:qm.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function m(f){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:f},h);return e.mergeEvaluated(y,bi.Name),h}function d(){var f;let h={},y=v(o),g=!0;for(let w=0;w<c.length;w++){let _=c[w],T=_?.$ref;if(T&&n.mapping){let{mapping:R}=n,P=Object.keys(R).filter(J=>R[J]===_.$ref);if(P.length){for(let J of P)S(J,w);continue}}if(T&&!(0,mB.schemaHasRulesButRef)(_,i.self.RULES)&&(_=NS.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,T),_ instanceof NS.SchemaEnv&&(_=_.schema),_===void 0))throw new fB.default(i.opts.uriResolver,i.baseId,T);let A=(f=_?.properties)===null||f===void 0?void 0:f[a];if(!A&&_?.allOf&&(A=yB(_,a)),typeof A!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);g=g&&(y||v(_)),b(A,w)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return h;function v(w){if(Array.isArray(w.required)&&w.required.includes(a))return!0;if(w.allOf&&Array.isArray(w.allOf))for(let _ of w.allOf){let T=_;if(Array.isArray(T.required)&&T.required.includes(a))return!0}return!1}function b(w,_){if(w.const)S(w.const,_);else if(w.enum)for(let T of w.enum)S(T,_);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function S(w,_){if(typeof w!="string"||w in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[w]=_}}}};Nm.default=gB});var jS=x((LX,bB)=>{bB.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 MS=x((UX,vB)=>{vB.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 DS=x((zX,xB)=>{xB.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 LS=x((FX,SB)=>{SB.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 US=x((VX,wB)=>{wB.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 zS=x((BX,_B)=>{_B.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 FS=x((HX,PB)=>{PB.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 VS=x((KX,EB)=>{EB.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 BS=x(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});var $B=jS(),AB=MS(),TB=DS(),RB=LS(),OB=US(),kB=zS(),IB=FS(),CB=VS(),qB=["/properties"];function NB(e){return[$B,AB,TB,RB,OB,t(this,kB),IB,t(this,CB)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,qB):n}}Mm.default=NB});var Um=x((Ce,Lm)=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.MissingRefError=Ce.ValidationError=Ce.CodeGen=Ce.Name=Ce.nil=Ce.stringify=Ce.str=Ce._=Ce.KeywordCxt=Ce.Ajv2020=void 0;var jB=$f(),MB=IS(),DB=jm(),LB=BS(),Dm="https://json-schema.org/draft/2020-12/schema",vi=class extends jB.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),MB.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(DB.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(LB.default.call(this,t),this.refs["http://json-schema.org/schema"]=Dm)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Dm)?Dm:void 0)}};Ce.Ajv2020=vi;Lm.exports=Ce=vi;Lm.exports.Ajv2020=vi;Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=vi;var UB=li();Object.defineProperty(Ce,"KeywordCxt",{enumerable:!0,get:function(){return UB.KeywordCxt}});var xi=V();Object.defineProperty(Ce,"_",{enumerable:!0,get:function(){return xi._}});Object.defineProperty(Ce,"str",{enumerable:!0,get:function(){return xi.str}});Object.defineProperty(Ce,"stringify",{enumerable:!0,get:function(){return xi.stringify}});Object.defineProperty(Ce,"nil",{enumerable:!0,get:function(){return xi.nil}});Object.defineProperty(Ce,"Name",{enumerable:!0,get:function(){return xi.Name}});Object.defineProperty(Ce,"CodeGen",{enumerable:!0,get:function(){return xi.CodeGen}});var zB=Ds();Object.defineProperty(Ce,"ValidationError",{enumerable:!0,get:function(){return zB.default}});var FB=ui();Object.defineProperty(Ce,"MissingRefError",{enumerable:!0,get:function(){return FB.default}})});var $w=x((ate,Ew)=>{"use strict";Ew.exports=(function(){function e(t,r,n,o,i){return t<r||n<r?t>n?n+1:t+1:o===i?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var o=t.length,i=r.length;o>0&&t.charCodeAt(o-1)===r.charCodeAt(i-1);)o--,i--;for(var s=0;s<o&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(o-=s,i-=s,o===0||i<3)return i;var a=0,c,p,l,u,m,d,f,h,y,g,v,b,S=[];for(c=0;c<o;c++)S.push(c+1),S.push(t.charCodeAt(s+c));for(var w=S.length-1;a<i-3;)for(y=r.charCodeAt(s+(p=a)),g=r.charCodeAt(s+(l=a+1)),v=r.charCodeAt(s+(u=a+2)),b=r.charCodeAt(s+(m=a+3)),d=a+=4,c=0;c<w;c+=2)f=S[c],h=S[c+1],p=e(f,p,l,y,h),l=e(p,l,u,g,h),u=e(l,u,m,v,h),d=e(u,m,d,b,h),S[c]=d,m=u,u=l,l=p,p=f;for(;a<i;)for(y=r.charCodeAt(s+(p=a)),d=++a,c=0;c<w;c+=2)f=S[c],S[c]=d=e(f,p,d,y,S[c+1]),p=f;return d}})()});var g_=x(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var Ep=V(),qn=Ep.operators,Wm={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:qn.LTE,fail:qn.GT},{okStr:"<",ok:qn.LT,fail:qn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:qn.GTE,fail:qn.LT},{okStr:">",ok:qn.GT,fail:qn.LTE}]}},Z9={message:e=>(0,Ep.str)`must be ${Qm(e).okStr} ${e.schemaCode}`,params:e=>(0,Ep._)`{comparison: ${Qm(e).okStr}, limit: ${e.schemaCode}}`},eH={keyword:Object.keys(Wm),type:"number",schemaType:"number",$data:!0,error:Z9,code(e){let{data:t,schemaCode:r}=e;e.fail$data((0,Ep._)`${t} ${Qm(e).fail} ${r} || isNaN(${t})`)}};function Qm(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Wm[r].exclusive]?1:0;return Wm[r].ops[n]}Jm.default=eH});var v_=x(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var b_={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},tH={keyword:Object.keys(b_),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=b_[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};Xm.default=tH});var x_=x(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var rH=Bs(),nH=hm(),oH=Rm(),iH=Im(),sH=Yf(),aH=g_(),cH=v_(),pH=["title","description","default"],lH=["$schema","id","$defs",{keyword:"$comment"},"definitions",rH.default],uH=[...sH.default.slice(1),aH.default,cH.default],dH=[lH,uH,(0,nH.default)(),iH.default,pH,oH.default];Zm.default=dH});var S_=x((ioe,fH)=>{fH.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 P_=x((qe,__)=>{"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.Ajv=void 0;var mH=$f(),hH=x_(),yH=jm(),w_=S_(),gH=["/properties"],$p="http://json-schema.org/draft-04/schema",ca=class extends mH.default{constructor(t={}){super({...t,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),hH.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(yH.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(w_,gH):w_;this.addMetaSchema(t,$p,!1),this.refs["http://json-schema.org/schema"]=$p}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($p)?$p:void 0)}};qe.Ajv=ca;__.exports=qe=ca;Object.defineProperty(qe,"__esModule",{value:!0});qe.default=ca;var bH=li();Object.defineProperty(qe,"KeywordCxt",{enumerable:!0,get:function(){return bH.KeywordCxt}});var ki=V();Object.defineProperty(qe,"_",{enumerable:!0,get:function(){return ki._}});Object.defineProperty(qe,"str",{enumerable:!0,get:function(){return ki.str}});Object.defineProperty(qe,"stringify",{enumerable:!0,get:function(){return ki.stringify}});Object.defineProperty(qe,"nil",{enumerable:!0,get:function(){return ki.nil}});Object.defineProperty(qe,"Name",{enumerable:!0,get:function(){return ki.Name}});Object.defineProperty(qe,"CodeGen",{enumerable:!0,get:function(){return ki.CodeGen}});var vH=Ds();Object.defineProperty(qe,"ValidationError",{enumerable:!0,get:function(){return vH.default}});var xH=ui();Object.defineProperty(qe,"MissingRefError",{enumerable:!0,get:function(){return xH.default}})});var I_=x(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.formatNames=Fr.fastFormats=Fr.fullFormats=void 0;function zr(e,t){return{validate:e,compare:t}}Fr.fullFormats={date:zr(T_,nh),time:zr(th(!0),oh),"date-time":zr(E_(!0),O_),"iso-time":zr(th(),R_),"iso-date-time":zr(E_(),k_),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:$H,"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:CH,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:AH,int32:{type:"number",validate:OH},int64:{type:"number",validate:kH},float:{type:"number",validate:A_},double:{type:"number",validate:A_},password:!0,binary:!0};Fr.fastFormats={...Fr.fullFormats,date:zr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,nh),time:zr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,oh),"date-time":zr(/^\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,O_),"iso-time":zr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,R_),"iso-date-time":zr(/^\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,k_),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};Fr.formatNames=Object.keys(Fr.fullFormats);function SH(e){return e%4===0&&(e%100!==0||e%400===0)}var wH=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,_H=[0,31,28,31,30,31,30,31,31,30,31,30,31];function T_(e){let t=wH.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&&SH(r)?29:_H[n])}function nh(e,t){if(e&&t)return e>t?1:e<t?-1:0}var eh=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function th(e){return function(r){let n=eh.exec(r);if(!n)return!1;let o=+n[1],i=+n[2],s=+n[3],a=n[4],c=n[5]==="-"?-1:1,p=+(n[6]||0),l=+(n[7]||0);if(p>23||l>59||e&&!a)return!1;if(o<=23&&i<=59&&s<60)return!0;let u=i-l*c,m=o-p*c-(u<0?1:0);return(m===23||m===-1)&&(u===59||u===-1)&&s<61}}function oh(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 R_(e,t){if(!(e&&t))return;let r=eh.exec(e),n=eh.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 rh=/t|\s/i;function E_(e){let t=th(e);return function(n){let o=n.split(rh);return o.length===2&&T_(o[0])&&t(o[1])}}function O_(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function k_(e,t){if(!(e&&t))return;let[r,n]=e.split(rh),[o,i]=t.split(rh),s=nh(r,o);if(s!==void 0)return s||oh(n,i)}var PH=/\/|:/,EH=/^(?:[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 $H(e){return PH.test(e)&&EH.test(e)}var $_=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function AH(e){return $_.lastIndex=0,$_.test(e)}var TH=-(2**31),RH=2**31-1;function OH(e){return Number.isInteger(e)&&e<=RH&&e>=TH}function kH(e){return Number.isInteger(e)}function A_(){return!0}var IH=/[^\\]\\Z/;function CH(e){if(IH.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ua=x(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var pa=class{};Se._CodeOrName=pa;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var So=class extends pa{constructor(t){if(super(),!Se.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}}};Se.Name=So;var er=class extends pa{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 So&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Se._Code=er;Se.nil=new er("");function C_(e,...t){let r=[e[0]],n=0;for(;n<t.length;)sh(r,t[n]),r.push(e[++n]);return new er(r)}Se._=C_;var ih=new er("+");function q_(e,...t){let r=[la(e[0])],n=0;for(;n<t.length;)r.push(ih),sh(r,t[n]),r.push(ih,la(e[++n]));return qH(r),new er(r)}Se.str=q_;function sh(e,t){t instanceof er?e.push(...t._items):t instanceof So?e.push(t):e.push(MH(t))}Se.addCodeArg=sh;function qH(e){let t=1;for(;t<e.length-1;){if(e[t]===ih){let r=NH(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function NH(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof So||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 So))return`"${e}${t.slice(1)}`}function jH(e,t){return t.emptyStr()?e:e.emptyStr()?t:q_`${e}${t}`}Se.strConcat=jH;function MH(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:la(Array.isArray(e)?e.join(","):e)}function DH(e){return new er(la(e))}Se.stringify=DH;function la(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Se.safeStringify=la;function LH(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new er(`.${e}`):C_`[${e}]`}Se.getProperty=LH;function UH(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new er(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Se.getEsmExportName=UH;function zH(e){return new er(e.toString())}Se.regexpCode=zH});var ph=x(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.ValueScope=qt.ValueScopeName=qt.Scope=qt.varKinds=qt.UsedValueState=void 0;var Ct=ua(),ah=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Ap;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ap||(qt.UsedValueState=Ap={}));qt.varKinds={const:new Ct.Name("const"),let:new Ct.Name("let"),var:new Ct.Name("var")};var Tp=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Ct.Name?t:this.name(t)}name(t){return new Ct.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};qt.Scope=Tp;var Rp=class extends Ct.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Ct._)`.${new Ct.Name(r)}[${n}]`}};qt.ValueScopeName=Rp;var FH=(0,Ct._)`\n`,ch=class extends Tp{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?FH:Ct.nil}}get(){return this._scope}name(t){return new Rp(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 l=a.get(s);if(l)return l}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),p=c.length;return c[p]=r.ref,o.setValue(r,{property:i,itemIndex:p}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Ct._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Ct.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(p=>{if(c.has(p))return;c.set(p,Ap.Started);let l=r(p);if(l){let u=this.opts.es5?qt.varKinds.var:qt.varKinds.const;i=(0,Ct._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,Ct._)`${i}${l}${this.opts._n}`;else throw new ah(p);c.set(p,Ap.Completed)})}return i}};qt.ValueScope=ch});var ee=x(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.or=ne.and=ne.not=ne.CodeGen=ne.operators=ne.varKinds=ne.ValueScopeName=ne.ValueScope=ne.Scope=ne.Name=ne.regexpCode=ne.stringify=ne.getProperty=ne.nil=ne.strConcat=ne.str=ne._=void 0;var fe=ua(),yr=ph(),Nn=ua();Object.defineProperty(ne,"_",{enumerable:!0,get:function(){return Nn._}});Object.defineProperty(ne,"str",{enumerable:!0,get:function(){return Nn.str}});Object.defineProperty(ne,"strConcat",{enumerable:!0,get:function(){return Nn.strConcat}});Object.defineProperty(ne,"nil",{enumerable:!0,get:function(){return Nn.nil}});Object.defineProperty(ne,"getProperty",{enumerable:!0,get:function(){return Nn.getProperty}});Object.defineProperty(ne,"stringify",{enumerable:!0,get:function(){return Nn.stringify}});Object.defineProperty(ne,"regexpCode",{enumerable:!0,get:function(){return Nn.regexpCode}});Object.defineProperty(ne,"Name",{enumerable:!0,get:function(){return Nn.Name}});var Cp=ph();Object.defineProperty(ne,"Scope",{enumerable:!0,get:function(){return Cp.Scope}});Object.defineProperty(ne,"ValueScope",{enumerable:!0,get:function(){return Cp.ValueScope}});Object.defineProperty(ne,"ValueScopeName",{enumerable:!0,get:function(){return Cp.ValueScopeName}});Object.defineProperty(ne,"varKinds",{enumerable:!0,get:function(){return Cp.varKinds}});ne.operators={GT:new fe._Code(">"),GTE:new fe._Code(">="),LT:new fe._Code("<"),LTE:new fe._Code("<="),EQ:new fe._Code("==="),NEQ:new fe._Code("!=="),NOT:new fe._Code("!"),OR:new fe._Code("||"),AND:new fe._Code("&&"),ADD:new fe._Code("+")};var an=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},lh=class extends an{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?yr.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=Ci(this.rhs,t,r)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},Op=class extends an{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 fe.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Ci(this.rhs,t,r),this}get names(){let t=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return Ip(t,this.rhs)}},uh=class extends Op{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},dh=class extends an{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},fh=class extends an{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},mh=class extends an{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},hh=class extends an{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=Ci(this.code,t,r),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},da=class extends an{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)||(VH(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Po(t,r.names),{})}},cn=class extends da{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},yh=class extends da{},Ii=class extends cn{};Ii.kind="else";var wo=class e extends cn{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 Ii(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(N_(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=Ci(this.condition,t,r),this}get names(){let t=super.names;return Ip(t,this.condition),this.else&&Po(t,this.else.names),t}};wo.kind="if";var _o=class extends cn{};_o.kind="for";var gh=class extends _o{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=Ci(this.iteration,t,r),this}get names(){return Po(super.names,this.iteration.names)}},bh=class extends _o{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?yr.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=Ip(super.names,this.from);return Ip(t,this.to)}},kp=class extends _o{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=Ci(this.iterable,t,r),this}get names(){return Po(super.names,this.iterable.names)}},fa=class extends cn{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)}};fa.kind="func";var ma=class extends da{render(t){return"return "+super.render(t)}};ma.kind="return";var vh=class extends cn{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&&Po(t,this.catch.names),this.finally&&Po(t,this.finally.names),t}},ha=class extends cn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};ha.kind="catch";var ya=class extends cn{render(t){return"finally"+super.render(t)}};ya.kind="finally";var xh=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
15
|
+
`:""},this._extScope=t,this._scope=new yr.Scope({parent:t}),this._nodes=[new yh]}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 lh(t,i,n)),i}const(t,r,n){return this._def(yr.varKinds.const,t,r,n)}let(t,r,n){return this._def(yr.varKinds.let,t,r,n)}var(t,r,n){return this._def(yr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Op(t,r,n))}add(t,r){return this._leafNode(new uh(t,ne.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==fe.nil&&this._leafNode(new hh(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,fe.addCodeArg)(r,o));return r.push("}"),new fe._Code(r)}if(t,r,n){if(this._blockNode(new wo(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 wo(t))}else(){return this._elseNode(new Ii)}endIf(){return this._endBlockNode(wo,Ii)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new gh(t),r)}forRange(t,r,n,o,i=this.opts.es5?yr.varKinds.var:yr.varKinds.let){let s=this._scope.toName(t);return this._for(new bh(i,s,r,n),()=>o(s))}forOf(t,r,n,o=yr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof fe.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,fe._)`${s}.length`,a=>{this.var(i,(0,fe._)`${s}[${a}]`),n(i)})}return this._for(new kp("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?yr.varKinds.var:yr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,fe._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new kp("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(_o)}label(t){return this._leafNode(new dh(t))}break(t){return this._leafNode(new fh(t))}return(t){let r=new ma;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ma)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new vh;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new ha(i),r(i)}return n&&(this._currNode=o.finally=new ya,this.code(n)),this._endBlockNode(ha,ya)}throw(t){return this._leafNode(new mh(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=fe.nil,n,o){return this._blockNode(new fa(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(fa)}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 wo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ne.CodeGen=xh;function Po(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Ip(e,t){return t instanceof fe._CodeOrName?Po(e,t.names):e}function Ci(e,t,r){if(e instanceof fe.Name)return n(e);if(!o(e))return e;return new fe._Code(e._items.reduce((i,s)=>(s instanceof fe.Name&&(s=n(s)),s instanceof fe._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 fe._Code&&i._items.some(s=>s instanceof fe.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function VH(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function N_(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,fe._)`!${Sh(e)}`}ne.not=N_;var BH=j_(ne.operators.AND);function HH(...e){return e.reduce(BH)}ne.and=HH;var KH=j_(ne.operators.OR);function GH(...e){return e.reduce(KH)}ne.or=GH;function j_(e){return(t,r)=>t===fe.nil?r:r===fe.nil?t:(0,fe._)`${Sh(t)} ${e} ${Sh(r)}`}function Sh(e){return e instanceof fe.Name?e:(0,fe._)`(${e})`}});var ge=x(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.checkStrictMode=ae.getErrorPath=ae.Type=ae.useFunc=ae.setEvaluated=ae.evaluatedPropsToName=ae.mergeEvaluated=ae.eachItem=ae.unescapeJsonPointer=ae.escapeJsonPointer=ae.escapeFragment=ae.unescapeFragment=ae.schemaRefOrVal=ae.schemaHasRulesButRef=ae.schemaHasRules=ae.checkUnknownRules=ae.alwaysValidSchema=ae.toHash=void 0;var Oe=ee(),YH=ua();function WH(e){let t={};for(let r of e)t[r]=!0;return t}ae.toHash=WH;function QH(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(L_(e,t),!U_(t,e.self.RULES.all))}ae.alwaysValidSchema=QH;function L_(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]||V_(e,`unknown keyword: "${i}"`)}ae.checkUnknownRules=L_;function U_(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ae.schemaHasRules=U_;function JH(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ae.schemaHasRulesButRef=JH;function XH({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Oe._)`${r}`}return(0,Oe._)`${e}${t}${(0,Oe.getProperty)(n)}`}ae.schemaRefOrVal=XH;function ZH(e){return z_(decodeURIComponent(e))}ae.unescapeFragment=ZH;function eK(e){return encodeURIComponent(_h(e))}ae.escapeFragment=eK;function _h(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ae.escapeJsonPointer=_h;function z_(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ae.unescapeJsonPointer=z_;function tK(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ae.eachItem=tK;function M_({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Oe.Name?(i instanceof Oe.Name?e(o,i,s):t(o,i,s),s):i instanceof Oe.Name?(t(o,s,i),i):r(i,s);return a===Oe.Name&&!(c instanceof Oe.Name)?n(o,c):c}}ae.mergeEvaluated={props:M_({mergeNames:(e,t,r)=>e.if((0,Oe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Oe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Oe._)`${r} || {}`).code((0,Oe._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Oe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Oe._)`${r} || {}`),Ph(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:F_}),items:M_({mergeNames:(e,t,r)=>e.if((0,Oe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Oe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Oe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Oe._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function F_(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Oe._)`{}`);return t!==void 0&&Ph(e,r,t),r}ae.evaluatedPropsToName=F_;function Ph(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Oe._)`${t}${(0,Oe.getProperty)(n)}`,!0))}ae.setEvaluated=Ph;var D_={};function rK(e,t){return e.scopeValue("func",{ref:t,code:D_[t.code]||(D_[t.code]=new YH._Code(t.code))})}ae.useFunc=rK;var wh;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(wh||(ae.Type=wh={}));function nK(e,t,r){if(e instanceof Oe.Name){let n=t===wh.Num;return r?n?(0,Oe._)`"[" + ${e} + "]"`:(0,Oe._)`"['" + ${e} + "']"`:n?(0,Oe._)`"/" + ${e}`:(0,Oe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Oe.getProperty)(e).toString():"/"+_h(e)}ae.getErrorPath=nK;function V_(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ae.checkStrictMode=V_});var pn=x(Eh=>{"use strict";Object.defineProperty(Eh,"__esModule",{value:!0});var ft=ee(),oK={data:new ft.Name("data"),valCxt:new ft.Name("valCxt"),instancePath:new ft.Name("instancePath"),parentData:new ft.Name("parentData"),parentDataProperty:new ft.Name("parentDataProperty"),rootData:new ft.Name("rootData"),dynamicAnchors:new ft.Name("dynamicAnchors"),vErrors:new ft.Name("vErrors"),errors:new ft.Name("errors"),this:new ft.Name("this"),self:new ft.Name("self"),scope:new ft.Name("scope"),json:new ft.Name("json"),jsonPos:new ft.Name("jsonPos"),jsonLen:new ft.Name("jsonLen"),jsonPart:new ft.Name("jsonPart")};Eh.default=oK});var ga=x(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.extendErrors=mt.resetErrorsCount=mt.reportExtraError=mt.reportError=mt.keyword$DataError=mt.keywordError=void 0;var be=ee(),qp=ge(),wt=pn();mt.keywordError={message:({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`};mt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`};function iK(e,t=mt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=K_(e,t,r);n??(s||a)?B_(i,c):H_(o,(0,be._)`[${c}]`)}mt.reportError=iK;function sK(e,t=mt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=K_(e,t,r);B_(o,a),i||s||H_(n,wt.default.vErrors)}mt.reportExtraError=sK;function aK(e,t){e.assign(wt.default.errors,t),e.if((0,be._)`${wt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${wt.default.vErrors}.length`,t),()=>e.assign(wt.default.vErrors,null)))}mt.resetErrorsCount=aK;function cK({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",o,wt.default.errors,a=>{e.const(s,(0,be._)`${wt.default.vErrors}[${a}]`),e.if((0,be._)`${s}.instancePath === undefined`,()=>e.assign((0,be._)`${s}.instancePath`,(0,be.strConcat)(wt.default.instancePath,i.errorPath))),e.assign((0,be._)`${s}.schemaPath`,(0,be.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,be._)`${s}.schema`,r),e.assign((0,be._)`${s}.data`,n))})}mt.extendErrors=cK;function B_(e,t){let r=e.const("err",t);e.if((0,be._)`${wt.default.vErrors} === null`,()=>e.assign(wt.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${wt.default.vErrors}.push(${r})`),e.code((0,be._)`${wt.default.errors}++`)}function H_(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}var Eo={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function K_(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:pK(e,t,r)}function pK(e,t,r={}){let{gen:n,it:o}=e,i=[lK(o,r),uK(e,r)];return dK(e,t,i),n.object(...i)}function lK({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,qp.getErrorPath)(t,qp.Type.Str)}`:e;return[wt.default.instancePath,(0,be.strConcat)(wt.default.instancePath,r)]}function uK({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,be.str)`${t}/${e}`;return r&&(o=(0,be.str)`${o}${(0,qp.getErrorPath)(r,qp.Type.Str)}`),[Eo.schemaPath,o]}function dK(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:p,topSchemaRef:l,schemaPath:u}=a;n.push([Eo.keyword,o],[Eo.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),c.messages&&n.push([Eo.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Eo.schema,s],[Eo.parentSchema,(0,be._)`${l}${u}`],[wt.default.data,i]),p&&n.push([Eo.propertyName,p])}});var Y_=x(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.boolOrEmptySchema=qi.topBoolOrEmptySchema=void 0;var fK=ga(),mK=ee(),hK=pn(),yK={message:"boolean schema is false"};function gK(e){let{gen:t,schema:r,validateName:n}=e;r===!1?G_(e,!1):typeof r=="object"&&r.$async===!0?t.return(hK.default.data):(t.assign((0,mK._)`${n}.errors`,null),t.return(!0))}qi.topBoolOrEmptySchema=gK;function bK(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),G_(e)):r.var(t,!0)}qi.boolOrEmptySchema=bK;function G_(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,fK.reportError)(o,yK,void 0,t)}});var $h=x(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.getRules=Ni.isJSONType=void 0;var vK=["string","number","integer","boolean","null","object","array"],xK=new Set(vK);function SK(e){return typeof e=="string"&&xK.has(e)}Ni.isJSONType=SK;function wK(){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:{}}}Ni.getRules=wK});var Ah=x(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.shouldUseRule=jn.shouldUseGroup=jn.schemaHasRulesForType=void 0;function _K({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&W_(e,n)}jn.schemaHasRulesForType=_K;function W_(e,t){return t.rules.some(r=>Q_(e,r))}jn.shouldUseGroup=W_;function Q_(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))}jn.shouldUseRule=Q_});var ba=x(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.reportTypeError=ht.checkDataTypes=ht.checkDataType=ht.coerceAndCheckDataType=ht.getJSONTypes=ht.getSchemaTypes=ht.DataType=void 0;var PK=$h(),EK=Ah(),$K=ga(),Q=ee(),J_=ge(),ji;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(ji||(ht.DataType=ji={}));function AK(e){let t=X_(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}ht.getSchemaTypes=AK;function X_(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(PK.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}ht.getJSONTypes=X_;function TK(e,t){let{gen:r,data:n,opts:o}=e,i=RK(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,EK.schemaHasRulesForType)(e,t[0]));if(s){let a=Rh(t,n,o.strictNumbers,ji.Wrong);r.if(a,()=>{i.length?OK(e,t,i):Oh(e)})}return s}ht.coerceAndCheckDataType=TK;var Z_=new Set(["string","number","integer","boolean","null"]);function RK(e,t){return t?e.filter(r=>Z_.has(r)||t==="array"&&r==="array"):[]}function OK(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,Q._)`typeof ${o}`),a=n.let("coerced",(0,Q._)`undefined`);i.coerceTypes==="array"&&n.if((0,Q._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,Q._)`${o}[0]`).assign(s,(0,Q._)`typeof ${o}`).if(Rh(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,Q._)`${a} !== undefined`);for(let p of r)(Z_.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),Oh(e),n.endIf(),n.if((0,Q._)`${a} !== undefined`,()=>{n.assign(o,a),kK(e,a)});function c(p){switch(p){case"string":n.elseIf((0,Q._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,Q._)`"" + ${o}`).elseIf((0,Q._)`${o} === null`).assign(a,(0,Q._)`""`);return;case"number":n.elseIf((0,Q._)`${s} == "boolean" || ${o} === null
|
|
16
|
+
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,Q._)`+${o}`);return;case"integer":n.elseIf((0,Q._)`${s} === "boolean" || ${o} === null
|
|
17
|
+
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,Q._)`+${o}`);return;case"boolean":n.elseIf((0,Q._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,Q._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Q._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Q._)`${s} === "string" || ${s} === "number"
|
|
18
|
+
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,Q._)`[${o}]`)}}}function kK({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,Q._)`${t} !== undefined`,()=>e.assign((0,Q._)`${t}[${r}]`,n))}function Th(e,t,r,n=ji.Correct){let o=n===ji.Correct?Q.operators.EQ:Q.operators.NEQ,i;switch(e){case"null":return(0,Q._)`${t} ${o} null`;case"array":i=(0,Q._)`Array.isArray(${t})`;break;case"object":i=(0,Q._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,Q._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,Q._)`typeof ${t} ${o} ${e}`}return n===ji.Correct?i:(0,Q.not)(i);function s(a=Q.nil){return(0,Q.and)((0,Q._)`typeof ${t} == "number"`,a,r?(0,Q._)`isFinite(${t})`:Q.nil)}}ht.checkDataType=Th;function Rh(e,t,r,n){if(e.length===1)return Th(e[0],t,r,n);let o,i=(0,J_.toHash)(e);if(i.array&&i.object){let s=(0,Q._)`typeof ${t} != "object"`;o=i.null?s:(0,Q._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=Q.nil;i.number&&delete i.integer;for(let s in i)o=(0,Q.and)(o,Th(s,t,r,n));return o}ht.checkDataTypes=Rh;var IK={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,Q._)`{type: ${e}}`:(0,Q._)`{type: ${t}}`};function Oh(e){let t=CK(e);(0,$K.reportError)(t,IK)}ht.reportTypeError=Oh;function CK(e){let{gen:t,data:r,schema:n}=e,o=(0,J_.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var tP=x(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.assignDefaults=void 0;var Mi=ee(),qK=ge();function NK(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)eP(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>eP(e,i,o.default))}Np.assignDefaults=NK;function eP(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Mi._)`${i}${(0,Mi.getProperty)(t)}`;if(o){(0,qK.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Mi._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Mi._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Mi._)`${a} = ${(0,Mi.stringify)(r)}`)}});var tr=x(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.validateUnion=Ae.validateArray=Ae.usePattern=Ae.callValidateCode=Ae.schemaProperties=Ae.allSchemaProperties=Ae.noPropertyInData=Ae.propertyInData=Ae.isOwnProperty=Ae.hasPropFunc=Ae.reportMissingProp=Ae.checkMissingProp=Ae.checkReportMissingProp=void 0;var Ne=ee(),kh=ge(),Mn=pn(),jK=ge();function MK(e,t){let{gen:r,data:n,it:o}=e;r.if(Ch(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ne._)`${t}`},!0),e.error()})}Ae.checkReportMissingProp=MK;function DK({gen:e,data:t,it:{opts:r}},n,o){return(0,Ne.or)(...n.map(i=>(0,Ne.and)(Ch(e,t,i,r.ownProperties),(0,Ne._)`${o} = ${i}`)))}Ae.checkMissingProp=DK;function LK(e,t){e.setParams({missingProperty:t},!0),e.error()}Ae.reportMissingProp=LK;function rP(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ae.hasPropFunc=rP;function Ih(e,t,r){return(0,Ne._)`${rP(e)}.call(${t}, ${r})`}Ae.isOwnProperty=Ih;function UK(e,t,r,n){let o=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} !== undefined`;return n?(0,Ne._)`${o} && ${Ih(e,t,r)}`:o}Ae.propertyInData=UK;function Ch(e,t,r,n){let o=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} === undefined`;return n?(0,Ne.or)(o,(0,Ne.not)(Ih(e,t,r))):o}Ae.noPropertyInData=Ch;function nP(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ae.allSchemaProperties=nP;function zK(e,t){return nP(t).filter(r=>!(0,kh.alwaysValidSchema)(e,t[r]))}Ae.schemaProperties=zK;function FK({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,Ne._)`${e}, ${t}, ${n}${o}`:t,u=[[Mn.default.instancePath,(0,Ne.strConcat)(Mn.default.instancePath,i)],[Mn.default.parentData,s.parentData],[Mn.default.parentDataProperty,s.parentDataProperty],[Mn.default.rootData,Mn.default.rootData]];s.opts.dynamicRef&&u.push([Mn.default.dynamicAnchors,Mn.default.dynamicAnchors]);let m=(0,Ne._)`${l}, ${r.object(...u)}`;return c!==Ne.nil?(0,Ne._)`${a}.call(${c}, ${m})`:(0,Ne._)`${a}(${m})`}Ae.callValidateCode=FK;var VK=(0,Ne._)`new RegExp`;function BK({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,Ne._)`${o.code==="new RegExp"?VK:(0,jK.useFunc)(e,o)}(${r}, ${n})`})}Ae.usePattern=BK;function HK(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,Ne._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:kh.Type.Num},i),t.if((0,Ne.not)(i),a)})}}Ae.validateArray=HK;function KK(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,kh.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,p)=>{let l=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},a);t.assign(s,(0,Ne._)`${s} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,Ne.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Ae.validateUnion=KK});var sP=x(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.validateKeywordUsage=Vr.validSchemaType=Vr.funcKeywordCode=Vr.macroKeywordCode=void 0;var _t=ee(),$o=pn(),GK=tr(),YK=ga();function WK(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=iP(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:_t.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}Vr.macroKeywordCode=WK;function QK(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;XK(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=iP(n,o,p),u=n.let("valid");e.block$data(u,m),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function m(){if(t.errors===!1)h(),t.modifying&&oP(e),y(()=>e.error());else{let g=t.async?d():f();t.modifying&&oP(e),y(()=>JK(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,_t._)`await `),v=>n.assign(u,!1).if((0,_t._)`${v} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,_t._)`${v}.errors`),()=>n.throw(v))),g}function f(){let g=(0,_t._)`${l}.errors`;return n.assign(g,null),h(_t.nil),g}function h(g=t.async?(0,_t._)`await `:_t.nil){let v=c.opts.passContext?$o.default.this:$o.default.self,b=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,_t._)`${g}${(0,GK.callValidateCode)(e,l,v,b)}`,t.modifying)}function y(g){var v;n.if((0,_t.not)((v=t.valid)!==null&&v!==void 0?v:u),g)}}Vr.funcKeywordCode=QK;function oP(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,_t._)`${n.parentData}[${n.parentDataProperty}]`))}function JK(e,t){let{gen:r}=e;r.if((0,_t._)`Array.isArray(${t})`,()=>{r.assign($o.default.vErrors,(0,_t._)`${$o.default.vErrors} === null ? ${t} : ${$o.default.vErrors}.concat(${t})`).assign($o.default.errors,(0,_t._)`${$o.default.vErrors}.length`),(0,YK.extendErrors)(e)},()=>e.error())}function XK({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function iP(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,_t.stringify)(r)})}function ZK(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")}Vr.validSchemaType=ZK;function e4({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let s=o.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Vr.validateKeywordUsage=e4});var cP=x(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.extendSubschemaMode=Dn.extendSubschemaData=Dn.getSubschema=void 0;var Br=ee(),aP=ge();function t4(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,Br._)`${e.schemaPath}${(0,Br.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Br._)`${e.schemaPath}${(0,Br.getProperty)(t)}${(0,Br.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,aP.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')}Dn.getSubschema=t4;function r4(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:p,dataPathArr:l,opts:u}=t,m=a.let("data",(0,Br._)`${t.data}${(0,Br.getProperty)(r)}`,!0);c(m),e.errorPath=(0,Br.str)`${p}${(0,aP.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Br._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof Br.Name?o:a.let("data",o,!0);c(p),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}Dn.extendSubschemaData=r4;function n4(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}Dn.extendSubschemaMode=n4});var va=x(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getSchemaRefs=Nt.resolveUrl=Nt.normalizeId=Nt._getFullPath=Nt.getFullPath=Nt.inlineRef=void 0;var o4=ge(),i4=qs(),s4=nf(),a4=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function c4(e,t=!0){return typeof e=="boolean"?!0:t===!0?!qh(e):t?pP(e)<=t:!1}Nt.inlineRef=c4;var p4=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function qh(e){for(let t in e){if(p4.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(qh)||typeof r=="object"&&qh(r))return!0}return!1}function pP(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!a4.has(r)&&(typeof e[r]=="object"&&(0,o4.eachItem)(e[r],n=>t+=pP(n)),t===1/0))return 1/0}return t}function lP(e,t="",r){r!==!1&&(t=Di(t));let n=e.parse(t);return uP(e,n)}Nt.getFullPath=lP;function uP(e,t){return e.serialize(t).split("#")[0]+"#"}Nt._getFullPath=uP;var l4=/#\/?$/;function Di(e){return e?e.replace(l4,""):""}Nt.normalizeId=Di;function u4(e,t,r){return r=Di(r),e.resolve(t,r)}Nt.resolveUrl=u4;var d4=/^[a-z_][-a-z0-9._]*$/i;function f4(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Di(e[r]||t),i={"":o},s=lP(n,o,!1),a={},c=new Set;return s4(e,{allKeys:!0},(u,m,d,f)=>{if(f===void 0)return;let h=s+m,y=i[f];typeof u[r]=="string"&&(y=g.call(this,u[r])),v.call(this,u.$anchor),v.call(this,u.$dynamicAnchor),i[m]=y;function g(b){let S=this.opts.uriResolver.resolve;if(b=Di(y?S(y,b):b),c.has(b))throw l(b);c.add(b);let w=this.refs[b];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?p(u,w.schema,b):b!==Di(h)&&(b[0]==="#"?(p(u,a[b],b),a[b]=u):this.refs[b]=h),b}function v(b){if(typeof b=="string"){if(!d4.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function p(u,m,d){if(m!==void 0&&!i4(u,m))throw l(d)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}Nt.getSchemaRefs=f4});var wa=x(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getData=Ln.KeywordCxt=Ln.validateFunctionCode=void 0;var yP=Y_(),dP=ba(),jh=Ah(),jp=ba(),m4=tP(),Sa=sP(),Nh=cP(),M=ee(),K=pn(),h4=va(),ln=ge(),xa=ga();function y4(e){if(vP(e)&&(xP(e),bP(e))){v4(e);return}gP(e,()=>(0,yP.topBoolOrEmptySchema)(e))}Ln.validateFunctionCode=y4;function gP({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,M._)`${K.default.data}, ${K.default.valCxt}`,n.$async,()=>{e.code((0,M._)`"use strict"; ${fP(r,o)}`),b4(e,o),e.code(i)}):e.func(t,(0,M._)`${K.default.data}, ${g4(o)}`,n.$async,()=>e.code(fP(r,o)).code(i))}function g4(e){return(0,M._)`{${K.default.instancePath}="", ${K.default.parentData}, ${K.default.parentDataProperty}, ${K.default.rootData}=${K.default.data}${e.dynamicRef?(0,M._)`, ${K.default.dynamicAnchors}={}`:M.nil}}={}`}function b4(e,t){e.if(K.default.valCxt,()=>{e.var(K.default.instancePath,(0,M._)`${K.default.valCxt}.${K.default.instancePath}`),e.var(K.default.parentData,(0,M._)`${K.default.valCxt}.${K.default.parentData}`),e.var(K.default.parentDataProperty,(0,M._)`${K.default.valCxt}.${K.default.parentDataProperty}`),e.var(K.default.rootData,(0,M._)`${K.default.valCxt}.${K.default.rootData}`),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,M._)`${K.default.valCxt}.${K.default.dynamicAnchors}`)},()=>{e.var(K.default.instancePath,(0,M._)`""`),e.var(K.default.parentData,(0,M._)`undefined`),e.var(K.default.parentDataProperty,(0,M._)`undefined`),e.var(K.default.rootData,K.default.data),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,M._)`{}`)})}function v4(e){let{schema:t,opts:r,gen:n}=e;gP(e,()=>{r.$comment&&t.$comment&&wP(e),P4(e),n.let(K.default.vErrors,null),n.let(K.default.errors,0),r.unevaluated&&x4(e),SP(e),A4(e)})}function x4(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,M._)`${r}.evaluated`),t.if((0,M._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,M._)`${e.evaluated}.props`,(0,M._)`undefined`)),t.if((0,M._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,M._)`${e.evaluated}.items`,(0,M._)`undefined`))}function fP(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,M._)`/*# sourceURL=${r} */`:M.nil}function S4(e,t){if(vP(e)&&(xP(e),bP(e))){w4(e,t);return}(0,yP.boolOrEmptySchema)(e,t)}function bP({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 vP(e){return typeof e.schema!="boolean"}function w4(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&wP(e),E4(e),$4(e);let i=n.const("_errs",K.default.errors);SP(e,i),n.var(t,(0,M._)`${i} === ${K.default.errors}`)}function xP(e){(0,ln.checkUnknownRules)(e),_4(e)}function SP(e,t){if(e.opts.jtd)return mP(e,[],!1,t);let r=(0,dP.getSchemaTypes)(e.schema),n=(0,dP.coerceAndCheckDataType)(e,r);mP(e,r,!n,t)}function _4(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,ln.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function P4(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,ln.checkStrictMode)(e,"default is ignored in the schema root")}function E4(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,h4.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function $4(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function wP({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,M._)`${K.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,M.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,M._)`${K.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function A4(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,M._)`${K.default.errors} === 0`,()=>t.return(K.default.data),()=>t.throw((0,M._)`new ${o}(${K.default.vErrors})`)):(t.assign((0,M._)`${n}.errors`,K.default.vErrors),i.unevaluated&&T4(e),t.return((0,M._)`${K.default.errors} === 0`))}function T4({gen:e,evaluated:t,props:r,items:n}){r instanceof M.Name&&e.assign((0,M._)`${t}.props`,r),n instanceof M.Name&&e.assign((0,M._)`${t}.items`,n)}function mP(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:p}=e,{RULES:l}=p;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,ln.schemaHasRulesButRef)(i,l))){o.block(()=>PP(e,"$ref",l.all.$ref.definition));return}c.jtd||R4(e,t),o.block(()=>{for(let m of l.rules)u(m);u(l.post)});function u(m){(0,jh.shouldUseGroup)(i,m)&&(m.type?(o.if((0,jp.checkDataType)(m.type,s,c.strictNumbers)),hP(e,m),t.length===1&&t[0]===m.type&&r&&(o.else(),(0,jp.reportTypeError)(e)),o.endIf()):hP(e,m),a||o.if((0,M._)`${K.default.errors} === ${n||0}`))}}function hP(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,m4.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,jh.shouldUseRule)(n,i)&&PP(e,i.keyword,i.definition,t.type)})}function R4(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(O4(e,t),e.opts.allowUnionTypes||k4(e,t),I4(e,e.dataTypes))}function O4(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{_P(e.dataTypes,r)||Mh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),q4(e,t)}}function k4(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Mh(e,"use allowUnionTypes to allow union type keyword")}function I4(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,jh.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>C4(t,s))&&Mh(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function C4(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function _P(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function q4(e,t){let r=[];for(let n of e.dataTypes)_P(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Mh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,ln.checkStrictMode)(e,t,e.opts.strictTypes)}var Mp=class{constructor(t,r,n){if((0,Sa.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,ln.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",EP(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Sa.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",K.default.errors))}result(t,r,n){this.failResult((0,M.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,M.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,M._)`${r} !== undefined && (${(0,M.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?xa.reportExtraError:xa.reportError)(this,this.def.error,r)}$dataError(){(0,xa.reportError)(this,this.def.$dataError||xa.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,xa.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=M.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=M.nil,r=M.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,M.or)((0,M._)`${o} === undefined`,r)),t!==M.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==M.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,M.or)(s(),a());function s(){if(n.length){if(!(r instanceof M.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,M._)`${(0,jp.checkDataTypes)(c,r,i.opts.strictNumbers,jp.DataType.Wrong)}`}return M.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,M._)`!${c}(${r})`}return M.nil}}subschema(t,r){let n=(0,Nh.getSubschema)(this.it,t);(0,Nh.extendSubschemaData)(n,this.it,t),(0,Nh.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return S4(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=ln.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=ln.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,M.Name)),!0}};Ln.KeywordCxt=Mp;function PP(e,t,r,n){let o=new Mp(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Sa.funcKeywordCode)(o,r):"macro"in r?(0,Sa.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Sa.funcKeywordCode)(o,r)}var N4=/^\/(?:[^~]|~0|~1)*$/,j4=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function EP(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return K.default.rootData;if(e[0]==="/"){if(!N4.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=K.default.rootData}else{let p=j4.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+p[1];if(o=p[2],o==="#"){if(l>=t)throw new Error(c("property/index",l));return n[t-l]}if(l>t)throw new Error(c("data",l));if(i=r[t-l],!o)return i}let s=i,a=o.split("/");for(let p of a)p&&(i=(0,M._)`${i}${(0,M.getProperty)((0,ln.unescapeJsonPointer)(p))}`,s=(0,M._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}Ln.getData=EP});var Dp=x(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});var Dh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Lh.default=Dh});var _a=x(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var Uh=va(),zh=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Uh.resolveUrl)(t,r,n),this.missingSchema=(0,Uh.normalizeId)((0,Uh.getFullPath)(t,this.missingRef))}};Fh.default=zh});var Up=x(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.resolveSchema=rr.getCompilingSchema=rr.resolveRef=rr.compileSchema=rr.SchemaEnv=void 0;var gr=ee(),M4=Dp(),Ao=pn(),br=va(),$P=ge(),D4=wa(),Li=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,br.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};rr.SchemaEnv=Li;function Bh(e){let t=AP.call(this,e);if(t)return t;let r=(0,br.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new gr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:M4.default,code:(0,gr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:Ao.default.data,parentData:Ao.default.parentData,parentDataProperty:Ao.default.parentDataProperty,dataNames:[Ao.default.data],dataPathArr:[gr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,gr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:gr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,gr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,D4.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`${s.scopeRefs(Ao.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${Ao.default.self}`,`${Ao.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=p;d.evaluated={props:f instanceof gr.Name?void 0:f,items:h instanceof gr.Name?void 0:h,dynamicProps:f instanceof gr.Name,dynamicItems:h instanceof gr.Name},d.source&&(d.source.evaluated=(0,gr.stringify)(d.evaluated))}return e.validate=d,e}catch(u){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),u}finally{this._compilations.delete(e)}}rr.compileSchema=Bh;function L4(e,t,r){var n;r=(0,br.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=F4.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 Li({schema:s,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=U4.call(this,i)}rr.resolveRef=L4;function U4(e){return(0,br.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Bh.call(this,e)}function AP(e){for(let t of this._compilations)if(z4(t,e))return t}rr.getCompilingSchema=AP;function z4(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function F4(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Lp.call(this,e,t)}function Lp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,br._getFullPath)(this.opts.uriResolver,r),o=(0,br.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Vh.call(this,r,e);let i=(0,br.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Lp.call(this,e,s);return typeof a?.schema!="object"?void 0:Vh.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||Bh.call(this,s),i===(0,br.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,br.resolveUrl)(this.opts.uriResolver,o,p)),new Li({schema:a,schemaId:c,root:e,baseId:o})}return Vh.call(this,r,s)}}rr.resolveSchema=Lp;var V4=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Vh(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,$P.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!V4.has(a)&&p&&(t=(0,br.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,$P.schemaHasRulesButRef)(r,this.RULES)){let a=(0,br.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Lp.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Li({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var TP=x(($oe,B4)=>{B4.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 OP=x(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var RP=wf();RP.code='require("ajv/dist/runtime/uri").default';Hh.default=RP});var DP=x(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.CodeGen=st.Name=st.nil=st.stringify=st.str=st._=st.KeywordCxt=void 0;var H4=wa();Object.defineProperty(st,"KeywordCxt",{enumerable:!0,get:function(){return H4.KeywordCxt}});var Ui=ee();Object.defineProperty(st,"_",{enumerable:!0,get:function(){return Ui._}});Object.defineProperty(st,"str",{enumerable:!0,get:function(){return Ui.str}});Object.defineProperty(st,"stringify",{enumerable:!0,get:function(){return Ui.stringify}});Object.defineProperty(st,"nil",{enumerable:!0,get:function(){return Ui.nil}});Object.defineProperty(st,"Name",{enumerable:!0,get:function(){return Ui.Name}});Object.defineProperty(st,"CodeGen",{enumerable:!0,get:function(){return Ui.CodeGen}});var K4=Dp(),NP=_a(),G4=$h(),Pa=Up(),Y4=ee(),Ea=va(),zp=ba(),Gh=ge(),kP=TP(),W4=OP(),jP=(e,t)=>new RegExp(e,t);jP.code="new RegExp";var Q4=["removeAdditional","useDefaults","coerceTypes"],J4=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),X4={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."},Z4={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},IP=200;function eG(e){var t,r,n,o,i,s,a,c,p,l,u,m,d,f,h,y,g,v,b,S,w,_,T,A,R;let P=e.strict,J=(t=e.code)===null||t===void 0?void 0:t.optimize,H=J===!0||J===void 0?1:J||0,U=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:jP,E=(o=e.uriResolver)!==null&&o!==void 0?o:W4.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:P)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:P)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:P)!==null&&l!==void 0?l:"log",strictTuples:(m=(u=e.strictTuples)!==null&&u!==void 0?u:P)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:P)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:H,regExp:U}:{optimize:H,regExp:U},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:IP,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:IP,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(S=e.schemaId)!==null&&S!==void 0?S:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(_=e.validateSchema)!==null&&_!==void 0?_:!0,validateFormats:(T=e.validateFormats)!==null&&T!==void 0?T:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(R=e.int32range)!==null&&R!==void 0?R:!0,uriResolver:E}}var $a=class{constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...eG(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new Y4.ValueScope({scope:{},prefixes:J4,es5:r,lines:n}),this.logger=sG(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,G4.getRules)(),CP.call(this,X4,t,"NOT SUPPORTED"),CP.call(this,Z4,t,"DEPRECATED","warn"),this._metaOpts=oG.call(this),t.formats&&rG.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&nG.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),tG.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=kP;n==="id"&&(o={...kP},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(l,u){await i.call(this,l.$schema);let m=this._addSchema(l,u);return m.validate||s.call(this,m)}async function i(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function s(l){try{return this._compileSchemaEnv(l)}catch(u){if(!(u instanceof NP.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,l)}}function a({missingSchema:l,missingRef:u}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${u} cannot be resolved`)}async function c(l){let u=await p.call(this,l);this.refs[l]||await i.call(this,u.$schema),this.refs[l]||this.addSchema(u,l,r)}async function p(l){let u=this._loading[l];if(u)return u;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}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,Ea.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=qP.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Pa.SchemaEnv({schema:{},schemaId:n});if(r=Pa.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=qP.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,Ea.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(cG.call(this,n,r),!r)return(0,Gh.eachItem)(n,i=>Kh.call(this,i)),this;lG.call(this,r);let o={...r,type:(0,zp.getJSONTypes)(r.type),schemaType:(0,zp.getJSONTypes)(r.schemaType)};return(0,Gh.eachItem)(n,o.type.length===0?i=>Kh.call(this,i,o):i=>o.type.forEach(s=>Kh.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:p}=c.definition,l=s[a];p&&l&&(s[a]=MP(l))}}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,Ea.normalizeId)(s||n);let p=Ea.getSchemaRefs.call(this,t,n);return c=new Pa.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:p}),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):Pa.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{Pa.compileSchema.call(this,t)}finally{this.opts=r}}};$a.ValidationError=K4.default;$a.MissingRefError=NP.default;st.default=$a;function CP(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 qP(e){return e=(0,Ea.normalizeId)(e),this.schemas[e]||this.refs[e]}function tG(){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 rG(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function nG(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 oG(){let e={...this.opts};for(let t of Q4)delete e[t];return e}var iG={log(){},warn(){},error(){}};function sG(e){if(e===!1)return iG;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 aG=/^[a-z_$][a-z0-9_$:-]*$/i;function cG(e,t){let{RULES:r}=this;if((0,Gh.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!aG.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 Kh(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,zp.getJSONTypes)(t.type),schemaType:(0,zp.getJSONTypes)(t.schemaType)}};t.before?pG.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 pG(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 lG(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=MP(t)),e.validateSchema=this.compile(t,!0))}var uG={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function MP(e){return{anyOf:[e,uG]}}});var LP=x(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var dG={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Yh.default=dG});var VP=x(To=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.callRef=To.getValidate=void 0;var fG=_a(),UP=tr(),jt=ee(),zi=pn(),zP=Up(),Fp=ge(),mG={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:p}=i;if((r==="#"||r==="#/")&&o===p.baseId)return u();let l=zP.resolveRef.call(c,p,o,r);if(l===void 0)throw new fG.default(n.opts.uriResolver,o,r);if(l instanceof zP.SchemaEnv)return m(l);return d(l);function u(){if(i===p)return Vp(e,s,i,i.$async);let f=t.scopeValue("root",{ref:p});return Vp(e,(0,jt._)`${f}.validate`,p,p.$async)}function m(f){let h=FP(e,f);Vp(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,jt.stringify)(f)}:{ref:f}),y=t.name("valid"),g=e.subschema({schema:f,dataTypes:[],schemaPath:jt.nil,topSchemaRef:h,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function FP(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,jt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}To.getValidate=FP;function Vp(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?zi.default.this:jt.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=o.let("valid");o.try(()=>{o.code((0,jt._)`await ${(0,UP.callValidateCode)(e,t,p)}`),d(t),s||o.assign(f,!0)},h=>{o.if((0,jt._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),m(h),s||o.assign(f,!1)}),e.ok(f)}function u(){e.result((0,UP.callValidateCode)(e,t,p),()=>d(t),()=>m(t))}function m(f){let h=(0,jt._)`${f}.errors`;o.assign(zi.default.vErrors,(0,jt._)`${zi.default.vErrors} === null ? ${h} : ${zi.default.vErrors}.concat(${h})`),o.assign(zi.default.errors,(0,jt._)`${zi.default.vErrors}.length`)}function d(f){var h;if(!i.opts.unevaluated)return;let y=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(i.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(i.props=Fp.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,jt._)`${f}.evaluated.props`);i.props=Fp.mergeEvaluated.props(o,g,i.props,jt.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=Fp.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,jt._)`${f}.evaluated.items`);i.items=Fp.mergeEvaluated.items(o,g,i.items,jt.Name)}}}To.callRef=Vp;To.default=mG});var BP=x(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});var hG=LP(),yG=VP(),gG=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",hG.default,yG.default];Wh.default=gG});var HP=x(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var Bp=ee(),Un=Bp.operators,Hp={maximum:{okStr:"<=",ok:Un.LTE,fail:Un.GT},minimum:{okStr:">=",ok:Un.GTE,fail:Un.LT},exclusiveMaximum:{okStr:"<",ok:Un.LT,fail:Un.GTE},exclusiveMinimum:{okStr:">",ok:Un.GT,fail:Un.LTE}},bG={message:({keyword:e,schemaCode:t})=>(0,Bp.str)`must be ${Hp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Bp._)`{comparison: ${Hp[e].okStr}, limit: ${t}}`},vG={keyword:Object.keys(Hp),type:"number",schemaType:"number",$data:!0,error:bG,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Bp._)`${r} ${Hp[t].fail} ${n} || isNaN(${r})`)}};Qh.default=vG});var KP=x(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});var Aa=ee(),xG={message:({schemaCode:e})=>(0,Aa.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Aa._)`{multipleOf: ${e}}`},SG={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:xG,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Aa._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Aa._)`${s} !== parseInt(${s})`;e.fail$data((0,Aa._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};Jh.default=SG});var YP=x(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});function GP(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}Xh.default=GP;GP.code='require("ajv/dist/runtime/ucs2length").default'});var WP=x(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var Ro=ee(),wG=ge(),_G=YP(),PG={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ro.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Ro._)`{limit: ${e}}`},EG={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:PG,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?Ro.operators.GT:Ro.operators.LT,s=o.opts.unicode===!1?(0,Ro._)`${r}.length`:(0,Ro._)`${(0,wG.useFunc)(e.gen,_G.default)}(${r})`;e.fail$data((0,Ro._)`${s} ${i} ${n}`)}};Zh.default=EG});var QP=x(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var $G=tr(),AG=ge(),Fi=ee(),TG={message:({schemaCode:e})=>(0,Fi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Fi._)`{pattern: ${e}}`},RG={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:TG,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,p=c.code==="new RegExp"?(0,Fi._)`new RegExp`:(0,AG.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,Fi._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Fi._)`!${l}`)}else{let c=(0,$G.usePattern)(e,o);e.fail$data((0,Fi._)`!${c}.test(${r})`)}}};ey.default=RG});var JP=x(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var Ta=ee(),OG={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Ta.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ta._)`{limit: ${e}}`},kG={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:OG,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Ta.operators.GT:Ta.operators.LT;e.fail$data((0,Ta._)`Object.keys(${r}).length ${o} ${n}`)}};ty.default=kG});var XP=x(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var Ra=tr(),Oa=ee(),IG=ge(),CG={message:({params:{missingProperty:e}})=>(0,Oa.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Oa._)`{missingProperty: ${e}}`},qG={keyword:"required",type:"object",schemaType:"array",$data:!0,error:CG,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?p():l(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if(d?.[h]===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,IG.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){if(c||i)e.block$data(Oa.nil,u);else for(let d of r)(0,Ra.checkReportMissingProp)(e,d)}function l(){let d=t.let("missing");if(c||i){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,Ra.checkMissingProp)(e,r,d)),(0,Ra.reportMissingProp)(e,d),t.else()}function u(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Ra.noPropertyInData)(t,o,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,Ra.propertyInData)(t,o,d,a.ownProperties)),t.if((0,Oa.not)(f),()=>{e.error(),t.break()})},Oa.nil)}}};ry.default=qG});var ZP=x(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var ka=ee(),NG={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,ka.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,ka._)`{limit: ${e}}`},jG={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:NG,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?ka.operators.GT:ka.operators.LT;e.fail$data((0,ka._)`${r}.length ${o} ${n}`)}};ny.default=jG});var Kp=x(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var eE=qs();eE.code='require("ajv/dist/runtime/equal").default';oy.default=eE});var tE=x(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var iy=ba(),at=ee(),MG=ge(),DG=Kp(),LG={message:({params:{i:e,j:t}})=>(0,at.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,at._)`{i: ${e}, j: ${t}}`},UG={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:LG,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"),p=i.items?(0,iy.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,at._)`${s} === false`),e.ok(c);function l(){let f=t.let("i",(0,at._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,at._)`${f} > 1`,()=>(u()?m:d)(f,h))}function u(){return p.length>0&&!p.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),g=(0,iy.checkDataTypes)(p,y,a.opts.strictNumbers,iy.DataType.Wrong),v=t.const("indices",(0,at._)`{}`);t.for((0,at._)`;${f}--;`,()=>{t.let(y,(0,at._)`${r}[${f}]`),t.if(g,(0,at._)`continue`),p.length>1&&t.if((0,at._)`typeof ${y} == "string"`,(0,at._)`${y} += "_"`),t.if((0,at._)`typeof ${v}[${y}] == "number"`,()=>{t.assign(h,(0,at._)`${v}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,at._)`${v}[${y}] = ${f}`)})}function d(f,h){let y=(0,MG.useFunc)(t,DG.default),g=t.name("outer");t.label(g).for((0,at._)`;${f}--;`,()=>t.for((0,at._)`${h} = ${f}; ${h}--;`,()=>t.if((0,at._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};sy.default=UG});var rE=x(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var ay=ee(),zG=ge(),FG=Kp(),VG={message:"must be equal to constant",params:({schemaCode:e})=>(0,ay._)`{allowedValue: ${e}}`},BG={keyword:"const",$data:!0,error:VG,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,ay._)`!${(0,zG.useFunc)(t,FG.default)}(${r}, ${o})`):e.fail((0,ay._)`${i} !== ${r}`)}};cy.default=BG});var nE=x(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var Ia=ee(),HG=ge(),KG=Kp(),GG={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ia._)`{allowedValues: ${e}}`},YG={keyword:"enum",schemaType:"array",$data:!0,error:GG,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,p=()=>c??(c=(0,HG.useFunc)(t,KG.default)),l;if(a||n)l=t.let("valid"),e.block$data(l,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let d=t.const("vSchema",i);l=(0,Ia.or)(...o.map((f,h)=>m(d,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,d=>t.if((0,Ia._)`${p()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}function m(d,f){let h=o[f];return typeof h=="object"&&h!==null?(0,Ia._)`${p()}(${r}, ${d}[${f}])`:(0,Ia._)`${r} === ${h}`}}};py.default=YG});var oE=x(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var WG=HP(),QG=KP(),JG=WP(),XG=QP(),ZG=JP(),e5=XP(),t5=ZP(),r5=tE(),n5=rE(),o5=nE(),i5=[WG.default,QG.default,JG.default,XG.default,ZG.default,e5.default,t5.default,r5.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},n5.default,o5.default];ly.default=i5});var dy=x(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});Ca.validateAdditionalItems=void 0;var Oo=ee(),uy=ge(),s5={message:({params:{len:e}})=>(0,Oo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Oo._)`{limit: ${e}}`},a5={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:s5,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,uy.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}iE(e,n)}};function iE(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Oo._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Oo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,uy.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,Oo._)`${a} <= ${t.length}`);r.if((0,Oo.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:uy.Type.Num},p),s.allErrors||r.if((0,Oo.not)(p),()=>r.break())})}}Ca.validateAdditionalItems=iE;Ca.default=a5});var fy=x(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.validateTuple=void 0;var sE=ee(),Gp=ge(),c5=tr(),p5={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return aE(e,"additionalItems",t);r.items=!0,!(0,Gp.alwaysValidSchema)(r,t)&&e.ok((0,c5.validateArray)(e))}};function aE(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Gp.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,sE._)`${i}.length`);r.forEach((u,m)=>{(0,Gp.alwaysValidSchema)(a,u)||(n.if((0,sE._)`${p} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function l(u){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===u.minItems&&(f===u.maxItems||u[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Gp.checkStrictMode)(a,y,m.strictTuples)}}}qa.validateTuple=aE;qa.default=p5});var cE=x(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var l5=fy(),u5={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,l5.validateTuple)(e,"items")};my.default=u5});var lE=x(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var pE=ee(),d5=ge(),f5=tr(),m5=dy(),h5={message:({params:{len:e}})=>(0,pE.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,pE._)`{limit: ${e}}`},y5={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:h5,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,d5.alwaysValidSchema)(n,t)&&(o?(0,m5.validateAdditionalItems)(e,o):e.ok((0,f5.validateArray)(e)))}};hy.default=y5});var uE=x(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var nr=ee(),Yp=ge(),g5={message:({params:{min:e,max:t}})=>t===void 0?(0,nr.str)`must contain at least ${e} valid item(s)`:(0,nr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,nr._)`{minContains: ${e}}`:(0,nr._)`{minContains: ${e}, maxContains: ${t}}`},b5={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:g5,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:p}=n;i.opts.next?(s=c===void 0?1:c,a=p):s=1;let l=t.const("len",(0,nr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Yp.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Yp.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Yp.alwaysValidSchema)(i,r)){let h=(0,nr._)`${l} >= ${s}`;a!==void 0&&(h=(0,nr._)`${h} && ${l} <= ${a}`),e.pass(h);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?d(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,nr._)`${o}.length > 0`,m)):(t.let(u,!1),m()),e.result(u,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Yp.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,nr._)`${h}++`),a===void 0?t.if((0,nr._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,nr._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,nr._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};yy.default=b5});var mE=x(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.validateSchemaDeps=Hr.validatePropertyDeps=Hr.error=void 0;var gy=ee(),v5=ge(),Na=tr();Hr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,gy.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,gy._)`{property: ${e},
|
|
19
|
+
missingProperty: ${n},
|
|
20
|
+
depsCount: ${t},
|
|
21
|
+
deps: ${r}}`};var x5={keyword:"dependencies",type:"object",schemaType:"object",error:Hr.error,code(e){let[t,r]=S5(e);dE(e,t),fE(e,r)}};function S5({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 dE(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,Na.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let p of a)(0,Na.checkReportMissingProp)(e,p)}):(r.if((0,gy._)`${c} && (${(0,Na.checkMissingProp)(e,a,i)})`),(0,Na.reportMissingProp)(e,i),r.else())}}Hr.validatePropertyDeps=dE;function fE(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,v5.alwaysValidSchema)(i,t[a])||(r.if((0,Na.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))}Hr.validateSchemaDeps=fE;Hr.default=x5});var yE=x(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var hE=ee(),w5=ge(),_5={message:"property name must be valid",params:({params:e})=>(0,hE._)`{propertyName: ${e.propertyName}}`},P5={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:_5,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,w5.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,hE.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};by.default=P5});var xy=x(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var Wp=tr(),vr=ee(),E5=pn(),Qp=ge(),$5={message:"must NOT have additional properties",params:({params:e})=>(0,vr._)`{additionalProperty: ${e.additionalProperty}}`},A5={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$5,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,Qp.alwaysValidSchema)(s,r))return;let p=(0,Wp.allSchemaProperties)(n.properties),l=(0,Wp.allSchemaProperties)(n.patternProperties);u(),e.ok((0,vr._)`${i} === ${E5.default.errors}`);function u(){t.forIn("key",o,y=>{!p.length&&!l.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let g;if(p.length>8){let v=(0,Qp.schemaRefOrVal)(s,n.properties,"properties");g=(0,Wp.isOwnProperty)(t,v,y)}else p.length?g=(0,vr.or)(...p.map(v=>(0,vr._)`${y} === ${v}`)):g=vr.nil;return l.length&&(g=(0,vr.or)(g,...l.map(v=>(0,vr._)`${(0,Wp.usePattern)(e,v)}.test(${y})`))),(0,vr.not)(g)}function d(y){t.code((0,vr._)`delete ${o}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Qp.alwaysValidSchema)(s,r)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,vr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,vr.not)(g),()=>t.break()))}}function h(y,g,v){let b={keyword:"additionalProperties",dataProp:y,dataPropType:Qp.Type.Str};v===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,g)}}};vy.default=A5});var vE=x(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var T5=wa(),gE=tr(),Sy=ge(),bE=xy(),R5={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&&bE.default.code(new T5.KeywordCxt(i,bE.default,"additionalProperties"));let s=(0,gE.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Sy.mergeEvaluated.props(t,(0,Sy.toHash)(s),i.props));let a=s.filter(u=>!(0,Sy.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)p(u)?l(u):(t.if((0,gE.propertyInData)(t,o,u,i.opts.ownProperties)),l(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function p(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function l(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};wy.default=R5});var _E=x(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var xE=tr(),Jp=ee(),SE=ge(),wE=ge(),O5={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,xE.allSchemaProperties)(r),c=a.filter(h=>(0,SE.alwaysValidSchema)(i,r[h]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let p=s.strictSchema&&!s.allowMatchingProperties&&o.properties,l=t.name("valid");i.props!==!0&&!(i.props instanceof Jp.Name)&&(i.props=(0,wE.evaluatedPropsToName)(t,i.props));let{props:u}=i;m();function m(){for(let h of a)p&&d(h),i.allErrors?f(h):(t.var(l,!0),f(h),t.if(l))}function d(h){for(let y in p)new RegExp(h).test(y)&&(0,SE.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,Jp._)`${(0,xE.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:wE.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,Jp._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,Jp.not)(l),()=>t.break())})})}}};_y.default=O5});var PE=x(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var k5=ge(),I5={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,k5.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"}};Py.default=I5});var EE=x(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var C5=tr(),q5={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:C5.validateUnion,error:{message:"must match a schema in anyOf"}};Ey.default=q5});var $E=x($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var Xp=ee(),N5=ge(),j5={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Xp._)`{passingSchemas: ${e.passing}}`},M5={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:j5,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(p),e.result(s,()=>e.reset(),()=>e.error(!0));function p(){i.forEach((l,u)=>{let m;(0,N5.alwaysValidSchema)(o,l)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,Xp._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Xp._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),m&&e.mergeEvaluated(m,Xp.Name)})})}}};$y.default=M5});var AE=x(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var D5=ge(),L5={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,D5.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o);e.ok(o),e.mergeEvaluated(a)})}};Ay.default=L5});var OE=x(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var Zp=ee(),RE=ge(),U5={message:({params:e})=>(0,Zp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Zp._)`{failingKeyword: ${e.ifClause}}`},z5={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:U5,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,RE.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=TE(n,"then"),i=TE(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,p("then",l),p("else",l))}else o?t.if(a,p("then")):t.if((0,Zp.not)(a),p("else"));e.pass(s,()=>e.error(!0));function c(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function p(l,u){return()=>{let m=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(m,s),u?t.assign(u,(0,Zp._)`${l}`):e.setParams({ifClause:l})}}}};function TE(e,t){let r=e.schema[t];return r!==void 0&&!(0,RE.alwaysValidSchema)(e,r)}Ty.default=z5});var kE=x(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var F5=ge(),V5={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,F5.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ry.default=V5});var IE=x(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var B5=dy(),H5=cE(),K5=fy(),G5=lE(),Y5=uE(),W5=mE(),Q5=yE(),J5=xy(),X5=vE(),Z5=_E(),eY=PE(),tY=EE(),rY=$E(),nY=AE(),oY=OE(),iY=kE();function sY(e=!1){let t=[eY.default,tY.default,rY.default,nY.default,oY.default,iY.default,Q5.default,J5.default,W5.default,X5.default,Z5.default];return e?t.push(H5.default,G5.default):t.push(B5.default,K5.default),t.push(Y5.default),t}Oy.default=sY});var CE=x(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Ve=ee(),aY={message:({schemaCode:e})=>(0,Ve.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ve._)`{format: ${e}}`},cY={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:aY,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:p,schemaEnv:l,self:u}=a;if(!c.validateFormats)return;o?m():d();function m(){let f=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Ve._)`${f}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Ve._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Ve._)`${h}.type || "string"`).assign(g,(0,Ve._)`${h}.validate`),()=>r.assign(y,(0,Ve._)`"string"`).assign(g,h)),e.fail$data((0,Ve.or)(v(),b()));function v(){return c.strictSchema===!1?Ve.nil:(0,Ve._)`${s} && !${g}`}function b(){let S=l.$async?(0,Ve._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Ve._)`${g}(${n})`,w=(0,Ve._)`(typeof ${g} == "function" ? ${S} : ${g}.test(${n}))`;return(0,Ve._)`${g} && ${g} !== true && ${y} === ${t} && !${w}`}}function d(){let f=u.formats[i];if(!f){v();return}if(f===!0)return;let[h,y,g]=b(f);h===t&&e.pass(S());function v(){if(c.strictSchema===!1){u.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function b(w){let _=w instanceof RegExp?(0,Ve.regexpCode)(w):c.code.formats?(0,Ve._)`${c.code.formats}${(0,Ve.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:w,code:_});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Ve._)`${T}.validate`]:["string",w,T]}function S(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Ve._)`await ${g}(${n})`}return typeof y=="function"?(0,Ve._)`${g}(${n})`:(0,Ve._)`${g}.test(${n})`}}}};ky.default=cY});var qE=x(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var pY=CE(),lY=[pY.default];Iy.default=lY});var NE=x(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});Vi.contentVocabulary=Vi.metadataVocabulary=void 0;Vi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Vi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var ME=x(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var uY=BP(),dY=oE(),fY=IE(),mY=qE(),jE=NE(),hY=[uY.default,dY.default,(0,fY.default)(),mY.default,jE.metadataVocabulary,jE.contentVocabulary];Cy.default=hY});var LE=x(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.DiscrError=void 0;var DE;(function(e){e.Tag="tag",e.Mapping="mapping"})(DE||(el.DiscrError=DE={}))});var zE=x(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var Bi=ee(),qy=LE(),UE=Up(),yY=_a(),gY=ge(),bY={message:({params:{discrError:e,tagName:t}})=>e===qy.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Bi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},vY={keyword:"discriminator",type:"object",schemaType:"object",error:bY,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),p=t.const("tag",(0,Bi._)`${r}${(0,Bi.getProperty)(a)}`);t.if((0,Bi._)`typeof ${p} == "string"`,()=>l(),()=>e.error(!1,{discrError:qy.DiscrError.Tag,tag:p,tagName:a})),e.ok(c);function l(){let d=m();t.if(!1);for(let f in d)t.elseIf((0,Bi._)`${p} === ${f}`),t.assign(c,u(d[f]));t.else(),e.error(!1,{discrError:qy.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function u(d){let f=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:d},f);return e.mergeEvaluated(h,Bi.Name),f}function m(){var d;let f={},h=g(o),y=!0;for(let S=0;S<s.length;S++){let w=s[S];if(w?.$ref&&!(0,gY.schemaHasRulesButRef)(w,i.self.RULES)){let T=w.$ref;if(w=UE.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,T),w instanceof UE.SchemaEnv&&(w=w.schema),w===void 0)throw new yY.default(i.opts.uriResolver,i.baseId,T)}let _=(d=w?.properties)===null||d===void 0?void 0:d[a];if(typeof _!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||g(w)),v(_,S)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return f;function g({required:S}){return Array.isArray(S)&&S.includes(a)}function v(S,w){if(S.const)b(S.const,w);else if(S.enum)for(let _ of S.enum)b(_,w);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function b(S,w){if(typeof S!="string"||S in f)throw new Error(`discriminator: "${a}" values must be unique strings`);f[S]=w}}}};Ny.default=vY});var FE=x((mie,xY)=>{xY.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 BE=x((je,jy)=>{"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 SY=DP(),wY=ME(),_Y=zE(),VE=FE(),PY=["/properties"],tl="http://json-schema.org/draft-07/schema",Hi=class extends SY.default{_addVocabularies(){super._addVocabularies(),wY.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(_Y.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(VE,PY):VE;this.addMetaSchema(t,tl,!1),this.refs["http://json-schema.org/schema"]=tl}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(tl)?tl:void 0)}};je.Ajv=Hi;jy.exports=je=Hi;jy.exports.Ajv=Hi;Object.defineProperty(je,"__esModule",{value:!0});je.default=Hi;var EY=wa();Object.defineProperty(je,"KeywordCxt",{enumerable:!0,get:function(){return EY.KeywordCxt}});var Ki=ee();Object.defineProperty(je,"_",{enumerable:!0,get:function(){return Ki._}});Object.defineProperty(je,"str",{enumerable:!0,get:function(){return Ki.str}});Object.defineProperty(je,"stringify",{enumerable:!0,get:function(){return Ki.stringify}});Object.defineProperty(je,"nil",{enumerable:!0,get:function(){return Ki.nil}});Object.defineProperty(je,"Name",{enumerable:!0,get:function(){return Ki.Name}});Object.defineProperty(je,"CodeGen",{enumerable:!0,get:function(){return Ki.CodeGen}});var $Y=Dp();Object.defineProperty(je,"ValidationError",{enumerable:!0,get:function(){return $Y.default}});var AY=_a();Object.defineProperty(je,"MissingRefError",{enumerable:!0,get:function(){return AY.default}})});var HE=x(Gi=>{"use strict";Object.defineProperty(Gi,"__esModule",{value:!0});Gi.formatLimitDefinition=void 0;var TY=BE(),xr=ee(),zn=xr.operators,rl={formatMaximum:{okStr:"<=",ok:zn.LTE,fail:zn.GT},formatMinimum:{okStr:">=",ok:zn.GTE,fail:zn.LT},formatExclusiveMaximum:{okStr:"<",ok:zn.LT,fail:zn.GTE},formatExclusiveMinimum:{okStr:">",ok:zn.GT,fail:zn.LTE}},RY={message:({keyword:e,schemaCode:t})=>(0,xr.str)`should be ${rl[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,xr._)`{comparison: ${rl[e].okStr}, limit: ${t}}`};Gi.formatLimitDefinition={keyword:Object.keys(rl),type:"string",schemaType:"string",$data:!0,error:RY,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 TY.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?p():l();function p(){let m=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=t.const("fmt",(0,xr._)`${m}[${c.schemaCode}]`);e.fail$data((0,xr.or)((0,xr._)`typeof ${d} != "object"`,(0,xr._)`${d} instanceof RegExp`,(0,xr._)`typeof ${d}.compare != "function"`,u(d)))}function l(){let m=c.schema,d=a.formats[m];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${o}": format "${m}" does not define "compare" function`);let f=t.scopeValue("formats",{key:m,ref:d,code:s.code.formats?(0,xr._)`${s.code.formats}${(0,xr.getProperty)(m)}`:void 0});e.fail$data(u(f))}function u(m){return(0,xr._)`${m}.compare(${r}, ${n}) ${rl[o].fail} 0`}},dependencies:["format"]};var OY=e=>(e.addKeyword(Gi.formatLimitDefinition),e);Gi.default=OY});var WE=x((ja,YE)=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var Yi=I_(),kY=HE(),My=ee(),KE=new My.Name("fullFormats"),IY=new My.Name("fastFormats"),Dy=(e,t={keywords:!0})=>{if(Array.isArray(t))return GE(e,t,Yi.fullFormats,KE),e;let[r,n]=t.mode==="fast"?[Yi.fastFormats,IY]:[Yi.fullFormats,KE],o=t.formats||Yi.formatNames;return GE(e,o,r,n),t.keywords&&(0,kY.default)(e),e};Dy.get=(e,t="full")=>{let n=(t==="fast"?Yi.fastFormats:Yi.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function GE(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,My._)`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}YE.exports=ja=Dy;Object.defineProperty(ja,"__esModule",{value:!0});ja.default=Dy});var Ua=x(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});var Xi;(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"})(Xi=Kr.Kind||(Kr.Kind={}));function yW(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:Xi.MAPPING,parent:null,errors:[]};return n}Kr.newMapping=yW;function gW(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:Xi.ANCHOR_REF,parent:null}}Kr.newAnchorRef=gW;function bW(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:Xi.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}Kr.newScalar=bW;function _A(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:Xi.SEQ,parent:null}}Kr.newItems=_A;function vW(){return _A()}Kr.newSeq=vW;function xW(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:Xi.MAP,parent:null}}Kr.newMap=xW});var Io=x(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});function PA(e){return typeof e>"u"||e===null}Kn.isNothing=PA;function SW(e){return typeof e=="object"&&e!==null}Kn.isObject=SW;function wW(e){return Array.isArray(e)?e:PA(e)?[]:[e]}Kn.toArray=wW;function _W(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}Kn.extend=_W;function PW(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}Kn.repeat=PW;function EW(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Kn.isNegativeZero=EW});var Zi=x((Wue,EA)=>{"use strict";var $W=(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})();EA.exports=$W});var TA=x((Que,AA)=>{"use strict";var $A=Io(),AW=(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),$A.repeat(" ",t)+n+a+i+`
|
|
24
|
+
`+$A.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})();AA.exports=AW});var ct=x(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var RA=Zi(),TW=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],RW=["scalar","sequence","mapping"];function OW(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var kW=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(TW.indexOf(n)===-1)throw new RA('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=OW(r.styleAliases||null),RW.indexOf(this.kind)===-1)throw new RA('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();eg.Type=kW});var es=x(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});var OA=Io(),ql=Zi(),IW=ct();function tg(e,t,r){var n=[];return e.include.forEach(function(o){r=tg(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 CW(){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 qW=(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 ql("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=tg(this,"implicit",[]),this.compiledExplicit=tg(this,"explicit",[]),this.compiledTypeMap=CW(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 ql("Wrong number of arguments for Schema.create function")}if(r=OA.toArray(r),n=OA.toArray(n),!r.every(function(o){return o instanceof e}))throw new ql("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(o){return o instanceof IW.Type}))throw new ql("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();rg.Schema=qW});var IA=x((Zue,kA)=>{"use strict";var NW=ct();kA.exports=new NW.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var qA=x((ede,CA)=>{"use strict";var jW=ct();CA.exports=new jW.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var jA=x((tde,NA)=>{"use strict";var MW=ct();NA.exports=new MW.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var DA=x((rde,MA)=>{"use strict";var DW=es();MA.exports=new DW.Schema({explicit:[IA(),qA(),jA()]})});var UA=x((nde,LA)=>{"use strict";var LW=ct();function UW(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function zW(){return null}function FW(e){return e===null}LA.exports=new LW.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:UW,construct:zW,predicate:FW,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var FA=x((ode,zA)=>{"use strict";var VW=ct();function BW(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 HW(e){return e==="true"||e==="True"||e==="TRUE"}function KW(e){return Object.prototype.toString.call(e)==="[object Boolean]"}zA.exports=new VW.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:BW,construct:HW,predicate:KW,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 BA=x((ide,VA)=>{"use strict";var GW=Io(),YW=ct();function WW(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function QW(e){return 48<=e&&e<=55}function JW(e){return 48<=e&&e<=57}function XW(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(!WW(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(!QW(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!JW(e.charCodeAt(r)))return!1;n=!0}return n?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function ZW(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 eQ(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!GW.isNegativeZero(e)}VA.exports=new YW.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:XW,construct:ZW,predicate:eQ,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 GA=x((sde,KA)=>{"use strict";var HA=Io(),tQ=ct(),rQ=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 nQ(e){if(e===null)return!1;var t,r,n,o;return!!rQ.test(e)}function oQ(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 iQ(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(HA.isNegativeZero(e))return"-0.0";return e.toString(10)}function sQ(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||HA.isNegativeZero(e))}KA.exports=new tQ.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:nQ,construct:oQ,predicate:sQ,represent:iQ,defaultStyle:"lowercase"})});var WA=x((ade,YA)=>{"use strict";var aQ=es();YA.exports=new aQ.Schema({include:[DA()],implicit:[UA(),FA(),BA(),GA()]})});var JA=x((cde,QA)=>{"use strict";var cQ=es();QA.exports=new cQ.Schema({include:[WA()]})});var eT=x((pde,ZA)=>{"use strict";var pQ=ct(),XA=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 lQ(e){if(e===null)return!1;var t,r,n,o,i,s,a,c=0,p=null,l,u,m;return t=XA.exec(e),t!==null}function uQ(e){var t,r,n,o,i,s,a,c=0,p=null,l,u,m;if(t=XA.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]&&(l=+t[10],u=+(t[11]||0),p=(l*60+u)*6e4,t[9]==="-"&&(p=-p)),m=new Date(Date.UTC(r,n,o,i,s,a,c)),p&&m.setTime(m.getTime()-p),m}function dQ(e){return e.toISOString()}ZA.exports=new pQ.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:lQ,construct:uQ,instanceOf:Date,represent:dQ})});var rT=x((lde,tT)=>{"use strict";var fQ=ct();function mQ(e){return e==="<<"||e===null}tT.exports=new fQ.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:mQ})});var oT=x((ude,nT)=>{"use strict";var Nl=Gl("buffer").Buffer,hQ=ct(),ng=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
26
|
+
\r`;function yQ(e){if(e===null)return!1;var t,r,n=0,o=0,i=e.length,s=ng;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 gQ(e){var t,r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,s=ng,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),Nl?new Nl(c):c}function bQ(e){var t="",r=0,n,o,i=e.length,s=ng;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 vQ(e){return Nl&&Nl.isBuffer(e)}nT.exports=new hQ.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:yQ,construct:gQ,predicate:vQ,represent:bQ})});var sT=x((dde,iT)=>{"use strict";var xQ=ct(),SQ=Object.prototype.hasOwnProperty,wQ=Object.prototype.toString;function _Q(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,wQ.call(o)!=="[object Object]")return!1;for(i in o)if(SQ.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 PQ(e){return e!==null?e:[]}iT.exports=new xQ.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:_Q,construct:PQ})});var cT=x((fde,aT)=>{"use strict";var EQ=ct(),og=Ua(),$Q=Object.prototype.toString;function AQ(e){if(e===null)return!0;if(e.kind!=og.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],$Q.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function TQ(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,o,i=e.items;for(o=og.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=og.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}aT.exports=new EQ.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:AQ,construct:TQ})});var lT=x((mde,pT)=>{"use strict";var RQ=ct(),OQ=Ua();function kQ(e){return e===null?!0:e.kind==OQ.Kind.MAP}function IQ(e){return e!==null?e:{}}pT.exports=new RQ.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:kQ,construct:IQ})});var jl=x((hde,uT)=>{"use strict";var CQ=es(),qQ=new CQ.Schema({include:[JA()],implicit:[eT(),rT()],explicit:[oT(),sT(),cT(),lT()]});uT.exports=qQ});var fT=x((yde,dT)=>{"use strict";var NQ=ct();function jQ(){return!0}function MQ(){}function DQ(){return""}function LQ(e){return typeof e>"u"}dT.exports=new NQ.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:jQ,construct:MQ,predicate:LQ,represent:DQ})});var hT=x((gde,mT)=>{"use strict";var UQ=ct();function zQ(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 FQ(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 VQ(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function BQ(e){return Object.prototype.toString.call(e)==="[object RegExp]"}mT.exports=new UQ.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:zQ,construct:FQ,predicate:BQ,represent:VQ})});var ig=x((bde,bT)=>{"use strict";var yT=es(),gT=new yT.Schema({include:[jl()],explicit:[fT(),hT()]});yT.Schema.DEFAULT=gT;bT.exports=gT});var kT=x((os,Fa)=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var Ht=Ua(),Gn=Io(),dg=Zi(),fg=TA(),wT=jl(),HQ=ig(),Ll=Object.prototype.hasOwnProperty,Ml=1,_T=2,PT=3,Dl=4,sg=1,KQ=2,vT=3,GQ=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,YQ=/[\x85\u2028\u2029]/,WQ=/[,\[\]\{\}]/,ET=/^(?:!|!!|![a-z\-]+!)$/i,$T=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Sr(e){return e===10||e===13}function Co(e){return e===9||e===32}function Dt(e){return e===9||e===32||e===10||e===13}function ts(e){return e===44||e===91||e===93||e===123||e===125}function QQ(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function JQ(e){return e===120?2:e===117?4:e===85?8:0}function XQ(e){return 48<=e&&e<=57?e-48:-1}function ZQ(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 e6(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var ag=new Array(256),cg=new Array(256),AT=new Array(256),pg=new Array(256);for(ir=0;ir<256;ir++)pg[ir]=cg[ir]=ZQ(ir),ag[ir]=cg[ir]?1:0,AT[ir]=1,ag[ir]||(pg[ir]="\\"+String.fromCharCode(ir));var ir,t6=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||HQ,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 mg(e,t,r){return r===void 0&&(r=!1),new dg(t,new fg(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function lg(e,t,r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var i=r6(e,t);if(i){var s=r+t;if(!e.errorMap[s]){var a=new fg(e.filename,e.input,t,i.line,t-i.start);o&&(a.toLineEnd=!0);var c=new dg(r,a,n);e.errors.push(c)}}}function B(e,t){var r=mg(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 ug(e,t){var r=mg(e,t);e.onWarning&&e.onWarning.call(null,r)}var xT={YAML:function(t,r,n){var o,i,s;t.version!==null&&B(t,"duplication of %YAML directive"),n.length!==1&&B(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&B(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&B(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&B(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var o,i;n.length!==2&&B(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],ET.test(o)||B(t,"ill-formed tag handle (first argument) of the TAG directive"),Ll.call(t.tagMap,o)&&B(t,'there is a previously declared suffix for "'+o+'" tag handle'),$T.test(i)||B(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function Yn(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||B(e,"expected valid JSON character");else GQ.test(a)&&B(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function rs(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:Ht.Kind.MAP});var a=Ht.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)&&(lg(e,a.key.startPosition,"duplicate key"),lg(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=o?o.endPosition:n.endPosition+1,t}}function hg(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++):B(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function r6(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 He(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Co(o);)o===9&&e.errors.push(mg(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(Sr(o))for(hg(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&&ug(e,"deficient indentation"),n}function za(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||Dt(r)))}function yg(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=Gn.repeat(`
|
|
29
|
+
`,r-1))}function n6(e,t,r){var n,o,i,s,a,c,p,l,u=e.kind,m=e.result,d,f=Ht.newScalar();if(f.plainScalar=!0,e.result=f,d=e.input.charCodeAt(e.position),Dt(d)||ts(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(o=e.input.charCodeAt(e.position+1),Dt(o)||r&&ts(o)))return!1;for(e.kind="scalar",i=s=e.position,a=!1;d!==0;){if(d===58){if(o=e.input.charCodeAt(e.position+1),Dt(o)||r&&ts(o))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),Dt(n))break}else{if(e.position===e.lineStart&&za(e)||r&&ts(d))break;if(Sr(d))if(c=e.line,p=e.lineStart,l=e.lineIndent,He(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=p,e.lineIndent=l;break}}if(a&&(Yn(e,i,s,!1),yg(e,f,e.line-c),i=s=e.position,a=!1),Co(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Yn(e,i,s,!1),e.result.startPosition!=-1?(f.rawValue=e.input.substring(f.startPosition,f.endPosition),!0):(e.kind=u,e.result=m,!1)}function o6(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var i=Ht.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(Yn(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 Sr(r)?(Yn(e,n,o,!0),yg(e,i,He(e,!1,t)),n=o=e.position):e.position===e.lineStart&&za(e)?B(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position,i.endPosition=e.position);B(e,"unexpected end of the stream within a single quoted scalar")}function i6(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 p=Ht.newScalar();for(p.doubleQuoted=!0,e.result=p,p.startPosition=e.position,e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Yn(e,r,e.position,!0),e.position++,p.endPosition=e.position,p.rawValue=e.input.substring(p.startPosition,p.endPosition),!0;if(c===92){if(Yn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Sr(c))He(e,!1,t);else if(c<256&&(e.allowAnyEscape?AT[c]:ag[c]))p.value+=e.allowAnyEscape?pg[c]:cg[c],e.position++;else if((s=JQ(c))>0){for(o=s,i=0;o>0;o--)c=e.input.charCodeAt(++e.position),(s=QQ(c))>=0?i=(i<<4)+s:B(e,"expected hexadecimal character");p.value+=e6(i),e.position++}else B(e,"unknown escape sequence");r=n=e.position}else Sr(c)?(Yn(e,r,n,!0),yg(e,p,He(e,!1,t)),r=n=e.position):e.position===e.lineStart&&za(e)?B(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}B(e,"unexpected end of the stream within a double quoted scalar")}function s6(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,c,p,l,u,m,d,f,h;if(h=e.input.charCodeAt(e.position),h===91)c=93,u=!1,i=Ht.newItems(),i.startPosition=e.position;else if(h===123)c=125,u=!0,i=Ht.newMap(),i.startPosition=e.position;else return!1;for(e.anchor!==null&&(i.anchorId=e.anchor,e.anchorMap[e.anchor]=i),h=e.input.charCodeAt(++e.position);h!==0;){if(He(e,!0,t),h=e.input.charCodeAt(e.position),h===c)return e.position++,e.tag=o,e.anchor=s,e.kind=u?"mapping":"sequence",e.result=i,i.endPosition=e.position,!0;if(!r){var y=e.position;B(e,"missed comma between flow collection entries"),e.position=y+1}if(d=m=f=null,p=l=!1,h===63&&(a=e.input.charCodeAt(e.position+1),Dt(a)&&(p=l=!0,e.position++,He(e,!0,t))),n=e.line,ns(e,t,Ml,!1,!0),d=e.tag,m=e.result,He(e,!0,t),h=e.input.charCodeAt(e.position),(l||e.line===n)&&h===58&&(p=!0,h=e.input.charCodeAt(++e.position),He(e,!0,t),ns(e,t,Ml,!1,!0),f=e.result),u)rs(e,i,d,m,f);else if(p){var g=rs(e,null,d,m,f);g.parent=i,i.items.push(g)}else m&&(m.parent=i),i.items.push(m);i.endPosition=e.position+1,He(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}B(e,"unexpected end of the stream within a flow collection")}function a6(e,t){var r,n,o=sg,i=!1,s=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;var u=Ht.newScalar();for(e.kind="scalar",e.result=u,u.startPosition=e.position;l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)sg===o?o=l===43?vT:KQ:B(e,"repeat of a chomping mode identifier");else if((p=XQ(l))>=0)p===0?B(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?B(e,"repeat of an indentation width identifier"):(s=t+p-1,i=!0);else break;if(Co(l)){do l=e.input.charCodeAt(++e.position);while(Co(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Sr(l)&&l!==0)}for(;l!==0;){for(hg(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),Sr(l)){a++;continue}if(e.lineIndent<s){o===vT?u.value+=Gn.repeat(`
|
|
30
|
+
`,a):o===sg&&i&&(u.value+=`
|
|
31
|
+
`);break}for(n?Co(l)?(c=!0,u.value+=Gn.repeat(`
|
|
32
|
+
`,a+1)):c?(c=!1,u.value+=Gn.repeat(`
|
|
33
|
+
`,a+1)):a===0?i&&(u.value+=" "):u.value+=Gn.repeat(`
|
|
34
|
+
`,a):i&&(u.value+=Gn.repeat(`
|
|
35
|
+
`,a+1)),i=!0,a=0,r=e.position;!Sr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Yn(e,r,e.position,!1)}u.endPosition=e.position;for(var m=e.position-1,d=!1;;){var f=e.input[m];if(f=="\r"||f==`
|
|
36
|
+
`){d&&m--;break}if(f!=" "&&f!=" ")break;m--}return u.endPosition=m,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0}function ST(e,t){var r,n=e.tag,o=e.anchor,i=Ht.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),!Dt(s)));){if(a=!0,e.position++,He(e,!0,-1)&&e.lineIndent<=t){i.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,ns(e,t,PT,!1,!0),e.result&&(e.result.parent=i,i.items.push(e.result)),He(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)B(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 c6(e,t,r){var n,o,i,s=e.tag,a=e.anchor,c=Ht.newMap(),p=null,l=null,u=null,m=!1,d=!1,f;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),f=e.input.charCodeAt(e.position);f!==0;){if(n=e.input.charCodeAt(e.position+1),i=e.line,(f===63||f===58)&&Dt(n))f===63?(m&&(rs(e,c,p,l,null),p=l=u=null),d=!0,m=!0,o=!0):m?(m=!1,o=!0):B(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,f=n;else if(ns(e,r,_T,!1,!0))if(e.line===i){for(f=e.input.charCodeAt(e.position);Co(f);)f=e.input.charCodeAt(++e.position);if(f===58)f=e.input.charCodeAt(++e.position),Dt(f)||B(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(rs(e,c,p,l,null),p=l=u=null),d=!0,m=!1,o=!1,p=e.tag,l=e.result;else{if(e.position==e.lineStart&&za(e))break;if(d)B(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(d){for(B(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(f=e.input.charCodeAt(--e.position),Sr(f)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===i||e.lineIndent>t)&&(ns(e,t,Dl,!0,o)&&(m?l=e.result:u=e.result),m||(rs(e,c,p,l,u),p=l=u=null),He(e,!0,-1),f=e.input.charCodeAt(e.position)),e.lineIndent>t&&f!==0)B(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&rs(e,c,p,l,null),d&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),d}function p6(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&&B(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)):B(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Dt(s);)s===33&&(n?B(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),ET.test(o)||B(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),WQ.test(i)&&B(e,"tag suffix cannot contain flow indicator characters")}return i&&!$T.test(i)&&B(e,"tag name cannot contain such characters: "+i),r?e.tag=i:Ll.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:B(e,'undeclared tag handle "'+o+'"'),!0}function l6(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&B(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Dt(r)&&!ts(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&B(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function u6(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&&!Dt(i)&&!ts(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(B(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)||(B(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=Ht.newAnchorRef(r,t,e.position,e.anchorMap[r]),He(e,!0,-1),!0}function ns(e,t,r,n,o){var i,s,a,c=1,p=!1,l=!1,u,m,d,f,h,y;e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=Dl===r||PT===r,n&&He(e,!0,-1)&&(p=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var g=e.position,v=e.position-e.lineStart;if(c===1)for(;p6(e)||l6(e);)He(e,!0,-1)?(p=!0,a=i,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=p||o),(c===1||Dl===r)&&(Ml===r||_T===r?f=t:f=t+1,h=e.position-e.lineStart,c===1?a&&(ST(e,h)||c6(e,h,f))||s6(e,f)?l=!0:(s&&a6(e,f)||o6(e,f)||i6(e,f)?l=!0:u6(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&B(e,"alias node should not have any properties")):n6(e,f,Ml===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(l=a&&ST(e,h))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Ht.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,B(e,"!include without value")),e.result.kind=Ht.Kind.INCLUDE_REF;else if(e.tag==="?")for(u=0,m=e.implicitTypes.length;u<m;u+=1){d=e.implicitTypes[u];var b=e.result.value;if(d.resolve(b)){e.result.valueObject=d.construct(e.result.value),e.tag=d.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else Ll.call(e.typeMap,e.tag)?(d=e.typeMap[e.tag],e.result!==null&&d.kind!==e.kind&&B(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):B(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):lg(e,g,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||l}function d6(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&&(He(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&&!Dt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&B(e,"directive name must not be less than one character in length");s!==0;){for(;Co(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Sr(s));break}if(Sr(s))break;for(r=e.position;s!==0&&!Dt(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&hg(e),Ll.call(xT,n)?xT[n](e,n,o):(ug(e,'unknown document directive "'+n+'"'),e.position++)}if(He(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,He(e,!0,-1)):i&&B(e,"directives end mark is expected"),ns(e,e.lineIndent-1,Dl,!1,!0),He(e,!0,-1),e.checkLineBreaks&&YQ.test(e.input.slice(t,e.position))&&ug(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&za(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,He(e,!0,-1));return}if(e.position<e.length-1)B(e,"end of the stream or a document separator is expected");else return}function TT(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 t6(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(d6(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,p=s;c<p.length;c++){var l=p[c];l.errors=n.errors,l.startPosition>l.endPosition&&(l.startPosition=l.endPosition)}return s}function gg(e,t,r){r===void 0&&(r={});var n=TT(e,r),o,i;for(o=0,i=n.length;o<i;o+=1)t(n[o])}os.loadAll=gg;function bg(e,t){t===void 0&&(t={});var r=TT(e,t),n,o;if(r.length!==0){if(r.length===1)return r[0];var i=new dg("expected a single document in the stream, but found more");return i.mark=new fg("","",0,0,0),i.mark.position=r[0].endPosition,r[0].errors.push(i),r[0]}}os.load=bg;function RT(e,t,r){r===void 0&&(r={}),gg(e,t,Gn.extend({schema:wT},r))}os.safeLoadAll=RT;function OT(e,t){return t===void 0&&(t={}),bg(e,Gn.extend({schema:wT},t))}os.safeLoad=OT;Fa.exports.loadAll=gg;Fa.exports.load=bg;Fa.exports.safeLoadAll=RT;Fa.exports.safeLoad=OT});var DT=x(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});var Va=Io(),Pg=Zi(),f6=ig(),m6=jl(),Eg=Object.prototype.toString,NT=Object.prototype.hasOwnProperty,h6=9,qo=10,y6=13,vg=32,g6=33,xg=34,b6=35,v6=37,x6=38,Sg=39,S6=42,w6=44,_6=45,P6=58,E6=62,$6=63,A6=64,T6=91,R6=93,O6=96,k6=123,I6=124,C6=125,Ze={};Ze[0]="\\0";Ze[7]="\\a";Ze[8]="\\b";Ze[9]="\\t";Ze[10]="\\n";Ze[11]="\\v";Ze[12]="\\f";Ze[13]="\\r";Ze[27]="\\e";Ze[34]='\\"';Ze[92]="\\\\";Ze[133]="\\N";Ze[160]="\\_";Ze[8232]="\\L";Ze[8233]="\\P";var q6=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function N6(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&&NT.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function j6(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 Pg("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Va.repeat("0",n-t.length)+t}function M6(e){this.schema=e.schema||f6,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Va.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=N6(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 IT(e,t){for(var r=Va.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 wg(e,t){return`
|
|
41
|
+
`+Va.repeat(" ",e.indent*t)}function D6(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 Ul(e){this.source=e,this.result="",this.checkpoint=0}Ul.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};Ul.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Ze[e]||j6(e),this.result+=t,this.checkpoint+=1,this};Ul.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function L6(e,t,r){var n,o,i,s,a,c,p,l,u,m,d,f,h,y,g,v,b,S,w,_,T;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(q6.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(n=!0,o=t.length?t.charCodeAt(0):0,i=vg===o||vg===t.charCodeAt(t.length-1),(_6===o||$6===o||A6===o||O6===o)&&(n=!1),i?(n=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,p=new Ul(t),l=!1,u=0,m=0,d=e.indent*r,f=80,d<40?f-=d:f=40,y=0;y<t.length;y++){if(h=t.charCodeAt(y),n)if(!z6(h))n=!1;else continue;c&&h===Sg&&(c=!1),g=Ze[h],v=jT(h),!(!g&&!v)&&(h!==qo&&h!==xg&&h!==Sg?(s=!1,a=!1):h===qo&&(l=!0,c=!1,y>0&&(b=t.charCodeAt(y-1),b===vg&&(a=!1,s=!1)),s&&(S=y-u,u=y,S>m&&(m=S))),h!==xg&&(c=!1),p.takeUpTo(y),p.escapeChar())}if(n&&D6(e,t)&&(n=!1),w="",(s||a)&&(_=0,t.charCodeAt(t.length-1)===qo&&(_+=1,t.charCodeAt(t.length-2)===qo&&(_+=1)),_===0?w="-":_===2&&(w="+")),a&&m<f&&(s=!1),l||(a=!1),n)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)T=U6(t,f),e.dump=">"+w+`
|
|
42
|
+
`+IT(T,d);else if(a)w||(t=t.replace(/\n$/,"")),e.dump="|"+w+`
|
|
43
|
+
`+IT(t,d);else if(p)p.finish(),e.dump='"'+p.result+'"';else throw new Error("Failed to dump scalar value")}function U6(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+=CT(e.slice(n,o),t),n=o):(r&&(r+=`
|
|
47
|
+
|
|
48
|
+
`),r+=CT(e.slice(n,s),t),n=s+1);return i&&i[0]!==`
|
|
49
|
+
`&&(r+=i[0]),r}function CT(e,t){if(e==="")return e;for(var r=/[^\s] [^\s]/g,n="",o=0,i=0,s=r.exec(e),a,c,p;s;)a=s.index,a-i>t&&(o!==i?c=o:c=a,n&&(n+=`
|
|
50
|
+
`),p=e.slice(i,c),n+=p,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 z6(e){return h6!==e&&qo!==e&&y6!==e&&w6!==e&&T6!==e&&R6!==e&&k6!==e&&C6!==e&&b6!==e&&x6!==e&&S6!==e&&g6!==e&&I6!==e&&E6!==e&&Sg!==e&&xg!==e&&v6!==e&&P6!==e&&!Ze[e]&&!jT(e)}function jT(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function F6(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)No(e,t,r[i],!1,!1)&&(i!==0&&(n+=", "),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function V6(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)No(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=wg(e,t)),o+="- "+e.dump);e.tag=i,e.dump=o||"[]"}function B6(e,t,r){var n="",o=e.tag,i=Object.keys(r),s,a,c,p,l;for(s=0,a=i.length;s<a;s+=1)l="",s!==0&&(l+=", "),c=i[s],p=r[c],No(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+": ",No(e,t,p,!1,!1)&&(l+=e.dump,n+=l));e.tag=o,e.dump="{"+n+"}"}function H6(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,c,p,l,u,m;for(a=0,c=s.length;a<c;a+=1)m="",(!n||a!==0)&&(m+=wg(e,t)),p=s[a],l=r[p],No(e,t+1,p,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&qo===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,u&&(m+=wg(e,t)),No(e,t+1,l,!0,u)&&(e.dump&&qo===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,o+=m));e.tag=i,e.dump=o||"{}"}function qT(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,Eg.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(NT.call(a.represent,c))n=a.represent[c](t,c);else throw new Pg("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function No(e,t,r,n,o){e.tag=null,e.dump=r,qT(e,r,!1)||qT(e,r,!0);var i=Eg.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?(H6(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
53
|
+
`:"")+e.dump)):(B6(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object Array]")n&&e.dump.length!==0?(V6(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
54
|
+
`:"")+e.dump)):(F6(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object String]")e.tag!=="?"&&L6(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Pg("unacceptable kind of an object to dump "+i)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function K6(e,t){var r=[],n=[],o,i;for(_g(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function _g(e,t,r){var n=Eg.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)_g(e[i],t,r);else for(o=Object.keys(e),i=0,s=o.length;i<s;i+=1)_g(e[o[i]],t,r)}function MT(e,t){t=t||{};var r=new M6(t);return K6(e,r),No(r,0,e,!0,!0)?r.dump+`
|
|
55
|
+
`:""}zl.dump=MT;function G6(e,t){return MT(e,Va.extend({schema:m6},t))}zl.safeDump=G6});var LT=x(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});function Y6(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}Wn.parseYamlBoolean=Y6;function W6(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Q6(e){var t=W6(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}Wn.parseYamlInteger=Q6;function J6(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+'"'}Wn.parseYamlFloat=J6;var dn;(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"})(dn=Wn.ScalarType||(Wn.ScalarType={}));function X6(e){if(e===void 0)return dn.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return dn.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return dn.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return dn.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 dn.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?dn.float:dn.string}Wn.determineScalarType=X6});var FT=x(wr=>{"use strict";function UT(e){for(var t in e)wr.hasOwnProperty(t)||(wr[t]=e[t])}Object.defineProperty(wr,"__esModule",{value:!0});var Fl=kT();wr.load=Fl.load;wr.loadAll=Fl.loadAll;wr.safeLoad=Fl.safeLoad;wr.safeLoadAll=Fl.safeLoadAll;var zT=DT();wr.dump=zT.dump;wr.safeDump=zT.safeDump;wr.YAMLException=Zi();UT(Ua());UT(LT())});import*as Do from"node:path";function O(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ge(e){return!!e}function Gr(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function F(e){return O(e)&&typeof e.$ref=="string"}function Ba(e){return O(e)&&typeof e.externalValue=="string"}var sr=class e{source;pointer;constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,Gr(this.pointer,(Array.isArray(t)?t:[t]).map(Rr).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function Rg(e){let t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Rr(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function mn(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Yl(r)}}function Yl(e){return e.split("/").map(Rg).filter(Ge)}function Og(e){let t=e.split("/");return t[t.length-1]}function kg(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function pe(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function Wl(e){return Do.extname(e)?pe(e)?e.substring(0,e.lastIndexOf("/")):Do.dirname(e):e}function Ha(e,t){return pe(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:Do.resolve(e,t)}function Or(e){return typeof e=="string"&&(e.startsWith("#")||pe(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function Ig(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function ss(e,t,r){if(!O(t.node))r.parent[r.key]=t.node;else{delete e.$ref;let n=Object.assign({},t.node,e);Object.assign(e,n)}}var he=Symbol("NOT_RESOLVED"),bu=Symbol("MERGE_KEY");function pt(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify??null,represent:t.represent??(r=>String(r)),representTagName:t.representTagName??null}}function vu(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify??null,represent:t.represent??(n=>n),representTagName:t.representTagName??null}}function Za(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify??null,represent:t.represent??(n=>n),representTagName:t.representTagName??null}}var ZT=pt("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),eR=["","~","null","Null","NULL"],tR=pt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>eR.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),rR=pt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:he,identify:e=>e===null,represent:()=>"null"}),nR=["","~","null","Null","NULL"],oR=pt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>nR.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),iR=["true","True","TRUE"],sR=["false","False","FALSE"],aR=pt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>iR.indexOf(e)!==-1?!0:sR.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),cR=["true"],pR=["false"],lR=pt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>cR.indexOf(e)!==-1?!0:pR.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),uR=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],dR=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],fR=pt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>uR.indexOf(e)!==-1?!0:dR.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),mR=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),hR=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function yR(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 gR(e,t){if(t){if(!hR.test(e))return he}else if(!mR.test(e))return he;let r=yR(e);return Number.isFinite(r)?r:he}var Jg=pt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:gR,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),bR=new RegExp("^-?(?:0|[1-9][0-9]*)$"),vR=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function xR(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 SR(e,t){if(t){if(!vR.test(e))return he}else if(!bR.test(e))return he;let r=xR(e);return Number.isFinite(r)?r:he}var wR=pt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:SR,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),_R=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 PR(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 ER(e){if(!_R.test(e))return he;let t=PR(e);return Number.isFinite(t)?t:he}var ru=pt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:ER,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),$R=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),AR=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function TR(e){if(!$R.test(e))return he;let t=e.toLowerCase(),r=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let n=r*parseFloat(t);return Number.isFinite(n)||AR.test(e)?n:he}function RR(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 Xg=pt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:TR,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:RR}),OR=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),kR=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function IR(e,t){if(t){if(!kR.test(e))return he;let n=e.toLowerCase(),o=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return o===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let i=o*parseFloat(n);return Number.isFinite(i)?i:he}if(!OR.test(e))return he;let r=Number(e);return Number.isFinite(r)?r:he}function CR(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 qR=pt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:IR,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:CR}),NR=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))$"),jR=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function MR(e){if(!NR.test(e))return he;let t=e.toLowerCase().replace(/_/g,""),r=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let n=0;if(t.includes(":")){for(let o of t.split(":"))n=n*60+Number(o);n*=r}else n=r*parseFloat(t);return Number.isFinite(n)||jR.test(e)?n:he}function DR(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 nu=pt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:MR,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:DR}),xu=pt("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?bu:he}),LR=/^[A-Za-z0-9+/]*={0,2}$/;function UR(e){let t=e.replace(/\s/g,"");if(t.length%4!==0||!LR.test(t))return he;let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function zR(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var Su=pt("tag:yaml.org,2002:binary",{resolve:UR,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:zR}),FR=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),VR=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 BR(e){let t=FR.exec(e);if(t===null&&(t=VR.exec(e)),t===null)return he;let r=+t[1],n=+t[2]-1,o=+t[3];if(!t[4]){let l=new Date(Date.UTC(r,n,o));return l.getUTCFullYear()!==r||l.getUTCMonth()!==n||l.getUTCDate()!==o?he:l}let i=+t[4],s=+t[5],a=+t[6],c=0;if(i>23||s>59||a>59)return he;if(t[7]){let l=t[7].slice(0,3);for(;l.length<3;)l+="0";c=+l}let p=new Date(Date.UTC(r,n,o,i,s,a,c));if(p.getUTCFullYear()!==r||p.getUTCMonth()!==n||p.getUTCDate()!==o)return he;if(t[9]){let l=+t[10],u=+(t[11]||0);if(l>23||u>59)return he;let m=(l*60+u)*6e4;p.setTime(p.getTime()-(t[9]==="-"?-m:m))}return p}var HR=pt("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:BR,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),KR=vu("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function ec(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ou(e,t){let r={};for(let n of t)e[n]!==void 0&&(r[n]=e[n]);return r}var wu=vu("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(ec(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}),_u=vu("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]]]),"")}}),GR=Za("tag:yaml.org,2002:map",{create:()=>({}),identify:ec,represent:e=>{let t=new Map;for(let r of Object.keys(e))t.set(r,e[r]);return t},addPair:(e,t,r)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";let n=String(t);return n==="__proto__"?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),Pu=Za("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 YR(){return{scalar:{},sequence:{},mapping:{}}}function WR(){return{scalar:[],sequence:[],mapping:[]}}function QR(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 tc=class Zg{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){let r=QR(t),n=[],o=YR(),i=WR();for(let l of r){if(l.nodeKind==="scalar"&&l.implicit){if(l.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");n.push(l)}switch(l.nodeKind){case"scalar":l.matchByTagPrefix?i.scalar.push(l):o.scalar[l.tagName]=l;break;case"sequence":l.matchByTagPrefix?i.sequence.push(l):o.sequence[l.tagName]=l;break;case"mapping":l.matchByTagPrefix?i.mapping.push(l):o.mapping[l.tagName]=l;break}}let s=n.filter(l=>l.implicitFirstChars===null),a=new Set;for(let l of n)if(l.implicitFirstChars!==null)for(let u of l.implicitFirstChars)a.add(u);let c=new Map;for(let l of a)c.set(l,n.filter(u=>u.implicitFirstChars===null||u.implicitFirstChars.indexOf(l)!==-1));let p=o.scalar["tag:yaml.org,2002:str"];if(!p)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=p,this.defaultSequenceTag=o.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=o.mapping["tag:yaml.org,2002:map"],this.exact=o,this.prefix=i}withTags(...t){let r=[];for(let n of t)r=r.concat(n);return new Zg([...this.tags,...r])}},Eu=new tc([ZT,KR,GR]),wJ=new tc([...Eu.tags,rR,lR,wR,qR]),$u=new tc([...Eu.tags,tR,aR,Jg,Xg]),JR=new tc([...Eu.tags,oR,fR,ru,nu,HR,xu,Su,wu,_u,Pu]),_J=Za("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||ec(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 Cg(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 PJ=Za("tag:yaml.org,2002:map",{create:()=>({}),identify:ec,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=Cg(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=Cg(t);return r!==null&&Object.prototype.hasOwnProperty.call(e,r)},keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),XR={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function Ql(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 Jl(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function ZR(e,t){if(!e.buffer)return null;let r={...XR,...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="",p=Math.min(e.line+r.linesAfter,i.length).toString().length,l=r.maxLength-(r.indent+p+3);for(let m=1;m<=r.linesBefore&&!(a-m<0);m++){let d=Ql(e.buffer,o[a-m],i[a-m],e.position-(o[a]-o[a-m]),l);c=`${" ".repeat(r.indent)}${Jl((e.line-m+1).toString(),p)} | ${d.str}
|
|
56
|
+
${c}`}let u=Ql(e.buffer,o[a],i[a],e.position,l);c+=`${" ".repeat(r.indent)}${Jl((e.line+1).toString(),p)} | ${u.str}
|
|
57
|
+
`,c+=`${"-".repeat(r.indent+p+3+u.pos)}^
|
|
58
|
+
`;for(let m=1;m<=r.linesAfter&&!(a+m>=i.length);m++){let d=Ql(e.buffer,o[a+m],i[a+m],e.position-(o[a]-o[a+m]),l);c+=`${" ".repeat(r.indent)}${Jl((e.line+m+1).toString(),p)} | ${d.str}
|
|
59
|
+
`}return c.replace(/\n$/,"")}function qg(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 ms=class extends Error{reason;mark;constructor(e,t){super(),this.name="YAMLException",this.reason=e,this.mark=t,this.message=qg(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${qg(this,e)}`}};function rc(e,t,r,n=""){let o=0,i=0;for(let a=0;a<t;a++){let c=e.charCodeAt(a);c===10?(o++,i=a+1):c===13&&(o++,e.charCodeAt(a+1)===10&&a++,i=a+1)}let s={name:n,buffer:e,position:t,line:o,column:t-i};throw s.snippet=ZR(s),new ms(r,s)}var eO=-1;function Ng(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 eb=new Array(256),tb=new Array(256);for(let e=0;e<256;e++)eb[e]=Ng(e)?1:0,tb[e]=Ng(e);function tO(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function rO(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function nO(e){return e===120?2:e===117?4:8}function Qa(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 Au(e){return e===1?" ":`
|
|
63
|
+
`.repeat(e-1)}function oO(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=Qa(e,o,r);n+=Au(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,s)}function iO(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=Qa(e,o,r);n+=Au(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function sO(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=Qa(e,o,r).position;else if(c<256&&eb[c])n+=tb[c],o++;else{let p=nO(c),l=0;for(;p>0;p--){o++;let u=rO(e.charCodeAt(o));l=(l<<4)+u}n+=tO(l),o++}i=s=o}else if(a===10||a===13){n+=e.slice(i,s);let c=Qa(e,o,r);n+=Au(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function jg(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
|
+
`),p="",l=!1,u=0,m=!1;for(let d of c){let f=0;for(;f<s&&d.charCodeAt(f)===32;)f++;if(n<0||f>=d.length){u++;continue}let h=d.slice(s),y=h.charCodeAt(0);i?y===32||y===9?(m=!0,p+=`
|
|
67
|
+
`.repeat(l?1+u:u)):m?(m=!1,p+=`
|
|
68
|
+
`.repeat(u+1)):u===0?l&&(p+=" "):p+=`
|
|
69
|
+
`.repeat(u):p+=`
|
|
70
|
+
`.repeat(l?1+u:u),p+=h,l=!0,u=0}return o===3?p+=`
|
|
71
|
+
`.repeat(l?1+u:u):o!==2&&l&&(p+=`
|
|
72
|
+
`),p}function aO(e,t){if(t.valueStart===eO)return"";let{valueStart:r,valueEnd:n}=t;if(t.fast)return e.slice(r,n);switch(t.style){case 2:return iO(e,r,n);case 3:return sO(e,r,n);case 4:return jg(e,r,n,t.indent,t.chomping,!1);case 5:return jg(e,r,n,t.indent,t.chomping,!0);default:return oO(e,r,n)}}var cO={"!":"!","!!":"tag:yaml.org,2002:"};function Xl(e){return encodeURI(e).replace(/!/g,"%21")}function rb(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]??cO[n]??n;return decodeURIComponent(o)+decodeURIComponent(e.slice(n.length))}function nb(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${Xl(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${Xl(t.slice(18))}`:`!<${Xl(t)}>`}var Lo=-1,Tu={filename:"",schema:$u,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function pO(e){return"tagStart"in e&&e.tagStart!==Lo?e.tagStart:"anchorStart"in e&&e.anchorStart!==Lo?e.anchorStart:"valueStart"in e&&e.valueStart!==Lo?e.valueStart:"start"in e?e.start:0}function $t(e,t){rc(e.source,e.position,t,e.filename)}function ob(e,t,r,n){try{return r.finalize(n)}catch(o){if(o instanceof ms)throw o;rc(e.source,t,o instanceof Error?o.message:String(o),e.filename)}}function Ya(e,t,r){let n=e[r];if(n)return n;for(let o of t)if(r.startsWith(o.tagName))return o}function lO(e,t,r,n,o){let i=Ya(t,r,n);if(i)return i;$t(e,`unknown ${o} tag !<${n}>`)}function uO(e,t){let r=aO(e.source,t),n=t.tagStart===Lo?"":e.source.slice(t.tagStart,t.tagEnd),o=e.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:o};let i=rb(n,e.tagHandlers),s=Ya(e.schema.exact.scalar,e.schema.prefix.scalar,i);if(s){let c=s.resolve(r,!0,i);return c===he&&$t(e,`cannot resolve a node with !<${i}> explicit tag`),{value:c,tag:s}}let a=Ya(e.schema.exact.mapping,e.schema.prefix.mapping,i)??Ya(e.schema.exact.sequence,e.schema.prefix.sequence,i);if(a){r!==""&&$t(e,`cannot resolve a node with !<${i}> explicit tag`);let c=a.create(i);return{value:a.carrierIsResult?c:ob(e,e.position,a,c),tag:a}}$t(e,`unknown scalar tag !<${i}>`)}if(t.style===1){let i=e.schema.implicitScalarByFirstChar.get(r.charAt(0))??e.schema.implicitScalarAnyFirstChar;for(let s of i){let a=s.resolve(r,!1,s.tagName);if(a!==he)return{value:a,tag:s}}}return{value:o.resolve(r,!1,o.tagName),tag:o}}function Mg(e,t,r,n,o,i){let s=t.tagStart===Lo?"":e.source.slice(t.tagStart,t.tagEnd),a=s===""||s==="!"?o:rb(s,e.tagHandlers);return{tagName:a,tag:lO(e,r,n,a,i)}}function ib(e){return e.nodeKind==="mapping"}function Dg(e,t,r,n){for(let o of n.keys(r)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&$t(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`),t.tag.has(t.value,o))continue;let i=t.tag.addPair(t.value,o,n.get(r,o));i&&$t(e,i),(t.overridable??=new Set).add(o)}}function dO(e,t,r,n){if(e.position=t.keyPosition,ib(n))Dg(e,t,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let o of r)Dg(e,t,o,t.tag);else $t(e,"cannot merge mappings; the provided source object is unacceptable")}function fO(e,t,r,n,o){if(e.position=t.keyPosition,r===bu){dO(e,t,n,o);return}!e.json&&t.tag.has(t.value,r)&&!t.overridable?.has(r)&&$t(e,"duplicated mapping key");let i=t.tag.addPair(t.value,r,n);i&&$t(e,i),t.overridable?.delete(r)}function Zl(e,t,r){let n=e.frames[e.frames.length-1];if(n.kind==="document")n.value=t,n.hasValue=!0;else if(n.kind==="sequence"){n.merge&&(ib(r)||$t(e,"cannot merge mappings; the provided source object is unacceptable"));let o=n.tag.addItem(n.value,t,n.index++);o&&$t(e,o)}else if(n.hasKey){let o=n.key;n.key=void 0,n.hasKey=!1,fO(e,n,o,t,r)}else n.key=t,n.keyPosition=e.position,n.hasKey=!0}function eu(e,t,r,n,o){if(t.anchorStart!==Lo){let i={value:r,tag:n,isValueFinal:o};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),i),i}return null}function mO(e,t){let r={...Tu,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=pO(n),n.type){case 1:r.anchors=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let o of n.directives)o.kind==="tag"&&(r.tagHandlers[o.handle]=o.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case 4:{let{value:o,tag:i}=uO(r,n);eu(r,n,o,i,!0),Zl(r,o,i);break}case 2:{let o=Mg(r,n,r.schema.exact.sequence,r.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),i=o.tag.create(o.tagName),s=eu(r,n,i,o.tag,o.tag.carrierIsResult),a=r.frames[r.frames.length-1],c=a!==void 0&&a.kind==="mapping"&&a.hasKey&&a.key===bu;r.frames.push({kind:"sequence",position:r.position,value:i,tag:o.tag,anchor:s,index:0,merge:c});break}case 3:{let o=Mg(r,n,r.schema.exact.mapping,r.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),i=o.tag.create(o.tagName),s=eu(r,n,i,o.tag,o.tag.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:i,tag:o.tag,anchor:s,key:void 0,keyPosition:r.position,hasKey:!1,overridable:null});break}case 5:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&$t(r,`aliases exceeded maxAliases (${r.maxAliases})`);let o=r.source.slice(n.anchorStart,n.anchorEnd),i=r.anchors.get(o);i||$t(r,`unidentified alias "${o}"`),i.isValueFinal||$t(r,`recursive alias "${o}" is not supported for tag ${i.tag.tagName} because it uses finalize()`),Zl(r,i.value,i.tag);break}case 6:{let o=r.frames.pop();if(o.kind==="document")r.documents.push(o.value);else{let i=o.tag.carrierIsResult?o.value:ob(r,o.position,o.tag,o.value);o.anchor&&(o.anchor.value=i,o.anchor.isValueFinal=!0),Zl(r,i,o.tag)}break}}}return r.documents}var we=-1,sb=Object.prototype.hasOwnProperty,Vo=1,iu=2,ab=3,Ja=4,hO=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yO=/[,\[\]{}]/,cb=/^(?:!|!!|![0-9A-Za-z-]+!)$/,su=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,pb=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,gO=new RegExp(`^(?:${su})*$`),bO=new RegExp(`^(?:${pb})+$`),vO=new RegExp(`^(?:!(?:${su})*|${pb}(?:${su})*)$`),Ru={filename:"",maxDepth:100};function xO(e,t,r){e.events.push({type:1,explicitStart:t,explicitEnd:r,directives:e.directives})}function lb(e,t,r,n,o,i,s){e.events.push({type:2,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function au(e,t,r,n,o,i,s){e.events.push({type:3,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function Lg(e,t){e.events.splice(t.eventsLength,0,{type:3,start:t.position,anchorStart:we,anchorEnd:we,tagStart:we,tagEnd:we,style:2})}function Ho(e,t,r,n,o,i,s,a,c=1,p=-1,l=!1){e.events.push({type:4,valueStart:t,valueEnd:r,anchorStart:n,anchorEnd:o,tagStart:i,tagEnd:s,style:a,chomping:c,indent:p,fast:l})}function SO(e,t,r){e.events.push({type:5,anchorStart:t,anchorEnd:r})}function Uo(e){e.events.push({type:6})}function yt(e){Ho(e,we,we,we,we,we,we,1)}function Ug(){return{anchorStart:we,anchorEnd:we,tagStart:we,tagEnd:we}}function ps(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function zo(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 D(e,t){rc(e.input.slice(0,e.length),e.position,t,e.filename)}function Qe(e){return e===10||e===13}function Xn(e){return e===9||e===32}function ar(e){return Xn(e)||Qe(e)}function Yr(e){return e===0||ar(e)}function Zn(e){return e===44||e===91||e===93||e===123||e===125}function wO(e){return e>=48&&e<=57?e-48:-1}function _O(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function PO(e){return e===120?2:e===117?4:e===85?8:0}function EO(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 Xa(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 gt(e,t){let r=0,n=e.input.charCodeAt(e.position),o=e.position===e.lineStart||ar(e.input.charCodeAt(e.position-1));for(;n!==0;){for(;Xn(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(!Qe(n)&&n!==0);if(!Qe(n))break;for(Xa(e),r++,o=!0,n=e.input.charCodeAt(e.position);n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return r}function yn(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||ar(n)}return!1}function zg(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Qe(t);)t=e.input.charCodeAt(++e.position)}function ub(e,t,r){hO.test(e.input.slice(t,r))&&D(e,"the stream contains non-printable characters")}function $O(e,t,r){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==we&&D(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,p;if(o){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&D(e,"unexpected end of the stream within a verbatim tag"),p=e.input.slice(c,e.position),e.position++}else{for(;a!==0&&!ar(a)&&!(r&&Zn(a));)a===33&&(i?D(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(c-1,e.position+1),cb.test(s)||D(e,"named tag handle cannot contain such characters"),i=!0,c=e.position+1)),a=e.input.charCodeAt(++e.position);p=e.input.slice(c,e.position),yO.test(p)&&D(e,"tag suffix cannot contain flow indicator characters")}return p&&!(o?gO.test(p):bO.test(p))&&D(e,`tag name cannot contain such characters: ${p}`),!o&&s!=="!"&&s!=="!!"&&!sb.call(e.tagHandlers,s)&&D(e,`undeclared tag handle "${s}"`),t.tagStart=n,t.tagEnd=e.position,!0}function AO(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==we&&D(e,"duplication of an anchor property"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!ar(e.input.charCodeAt(e.position))&&!Zn(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&D(e,"name of an anchor node must contain at least one character"),t.anchorStart=r,t.anchorEnd=e.position,!0}function TO(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==we||t.tagStart!==we)&&D(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!ar(e.input.charCodeAt(e.position))&&!Zn(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&D(e,"name of an alias node must contain at least one character"),SO(e,r,e.position),!0}function cu(e,t){gt(e,!1),e.lineIndent<t&&D(e,"deficient indentation")}function RO(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++,Ho(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2,1,-1,o),!0}Qe(i)?(o=!1,cu(e,t)):e.position===e.lineStart&&yn(e)?D(e,"unexpected end of the document within a single quoted scalar"):i!==9&&i<32?D(e,"expected valid JSON character"):e.position++}D(e,"unexpected end of the stream within a single quoted scalar")}function OO(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++,Ho(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,3,1,-1,o),!0}if(i===92){o=!1;let s=e.input.charCodeAt(++e.position);if(Qe(s))cu(e,t);else if(EO(s))e.position++;else{let a=PO(s);for(a===0&&D(e,"unknown escape sequence");a-- >0;)e.position++,_O(e.input.charCodeAt(e.position))<0&&D(e,"expected hexadecimal character");e.position++}}else Qe(i)?(o=!1,cu(e,t)):e.position===e.lineStart&&yn(e)?D(e,"unexpected end of the document within a double quoted scalar"):i!==9&&i<32?D(e,"expected valid JSON character"):e.position++}D(e,"unexpected end of the stream within a double quoted scalar")}function kO(e,t,r){let n=e.input.charCodeAt(e.position),o=1,i=-1,s=!1;if(n!==124&&n!==62)return!1;let a=n===124?4:5;for(e.position++;e.input.charCodeAt(e.position)!==0;){let d=e.input.charCodeAt(e.position),f=wO(d);if(d===43||d===45)o!==1&&D(e,"repeat of a chomping mode identifier"),o=d===43?3:2,e.position++;else if(f>=0)f===0&&D(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),s&&D(e,"repeat of an indentation width identifier"),i=t+f-1,s=!0,e.position++;else break}let c=!1;for(;Xn(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&zg(e),Qe(e.input.charCodeAt(e.position))?Xa(e):e.input.charCodeAt(e.position)!==0&&D(e,"a line break is expected");let p=s?i:-1,l=0,u=e.position,m=e.position;for(;e.input.charCodeAt(e.position)!==0;){let d=e.position,f=0;for(;e.input.charCodeAt(d+f)===32;)f++;let h=e.input.charCodeAt(d+f);if(h===0){p>=0?f>p&&(m=d+f):f>0&&(m=d+f);break}if(d===e.lineStart&&yn(e,d))break;if(!s&&p===-1&&Qe(h)&&(l=Math.max(l,f)),!s&&p===-1&&!Qe(h)&&(h===9&&f<t&&(e.position=d+f,D(e,"tab characters must not be used in indentation")),f<l&&(e.position=d+f,D(e,"bad indentation of a mapping entry"))),p===-1&&h!==0&&!Qe(h)&&f<t){e.lineIndent=f,e.position=d+f;break}!s&&h!==0&&!Qe(h)&&p===-1&&(p=f);let y=p===-1?t+1:p;if(h!==0&&!Qe(h)&&f<y){e.lineIndent=f,e.position=d+f;break}zg(e),m=e.position,Qe(e.input.charCodeAt(e.position))&&(Xa(e),m=e.position)}return ub(e,u,m),Ho(e,u,m,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,a,o,p),!0}function IO(e,t){let r=e.input.charCodeAt(e.position),n=t===Vo;if(r===0||ar(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||n&&Zn(r))return!1;if(r===63||r===45){let o=e.input.charCodeAt(e.position+1);if(Yr(o)||n&&Zn(o))return!1}return!0}function CO(e,t,r,n){if(!IO(e,r))return!1;let o=e.position,i=e.position,s=e.input.charCodeAt(e.position),a=r===Vo,c=!1;for(;s!==0&&!(e.position===e.lineStart&&yn(e));){if(s===58){let p=e.input.charCodeAt(e.position+1);if(Yr(p)||a&&Zn(p))break}else if(s===35){if(ar(e.input.charCodeAt(e.position-1)))break}else{if(a&&Zn(s))break;if(Qe(s)){let p=e.position,l=e.line,u=e.lineStart,m=e.lineIndent;if(gt(e,!1),e.lineIndent>=t){c=!0,s=e.input.charCodeAt(e.position);continue}e.position=p,e.line=l,e.lineStart=u,e.lineIndent=m;break}}Xn(s)||(i=e.position+1),s=e.input.charCodeAt(++e.position)}return i===o?!1:(ub(e,o,i),Ho(e,o,i,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1,1,-1,!c),!0)}function as(e,t){let r=e.line;gt(e,!0),(e.line>r&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&D(e,"deficient indentation")}function qO(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?au(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2):lb(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){as(e,t);let c=e.input.charCodeAt(e.position);if(c===a)return e.position++,Uo(e),!0;s?c===44&&D(e,"expected the node content, but found ','"):D(e,"missed comma between flow collection entries");let p=!1,l=!1;c===63&&ar(e.input.charCodeAt(e.position+1))&&(p=l=!0,e.position+=1,as(e,t));let u=e.line,m=ps(e),d=Jn(e,t,Vo,!1,!0);as(e,t),c=e.input.charCodeAt(e.position),(o||l||e.line===u)&&c===58?(p=!0,e.position++,as(e,t),o||Lg(e,m),d||yt(e),Jn(e,t,Vo,!1,!0)||yt(e),as(e,t),o||Uo(e)):o&&p?(d||yt(e),yt(e)):o?yt(e):p&&(Lg(e,m),d||yt(e),yt(e),Uo(e)),c=e.input.charCodeAt(e.position),c===44?(s=!0,e.position++):s=!1}D(e,"unexpected end of the stream within a flow collection")}function Fg(e,t,r){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Yr(e.input.charCodeAt(e.position+1)))return!1;for(lb(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1);e.input.charCodeAt(e.position)===45&&Yr(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,D(e,"tab characters must not be used in indentation"));let n=e.line;e.position++;let o=gt(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Yr(e.input.charCodeAt(e.position+1))&&D(e,"bad indentation of a sequence entry"),o&&e.lineIndent<=t?yt(e):Jn(e,t,ab,!1,!0),gt(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&D(e,"bad indentation of a sequence entry"),e.line===n&&e.input.charCodeAt(e.position)===45&&Yr(e.input.charCodeAt(e.position+1))&&D(e,"bad indentation of a sequence entry")}return Uo(e),!0}function tu(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,D(e,"tab characters must not be used in indentation"));let p=e.input.charCodeAt(e.position+1),l=e.line;if((c===63||c===58)&&Yr(p))s||(au(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0),c===63?(o&&yt(e),i=!0,o=!0):(o||(yt(e),i=!0),o=!1),e.position+=1,a=!0;else{o&&(yt(e),o=!1);let u=ps(e);if(!Jn(e,r,iu,!1,!0))break;if(e.line===l){for(c=e.input.charCodeAt(e.position);Xn(c);)c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),Yr(c)||D(e,"a whitespace character is expected after the key-value separator within a block mapping"),!s){for(zo(e,u),au(e,u.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0,Jn(e,r,iu,!1,!0),c=e.input.charCodeAt(e.position);Xn(c);)c=e.input.charCodeAt(++e.position);e.position++}i=!0,o=!1,a=!1}else if(i)D(e,"expected ':' after a mapping key");else return n.anchorStart!==we||n.tagStart!==we?(zo(e,u),!1):!0}else if(i)D(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==we||n.tagStart!==we?(zo(e,u),!1):!0}if(Jn(e,t,Ja,!0,a)&&(a=!1),o||a&&(yt(e),a=!1),gt(e,!0),c=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&c!==0)D(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return i?(o&&yt(e),s&&Uo(e),!0):!1}function Jn(e,t,r,n,o,i=!0){e.depth>=e.maxDepth&&D(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let s=1,a=!1,c=!1,p=null,l=Ug(),u=r===Ja||r===ab,m=u,d=u;if(n&>(e,!0)&&(a=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1),e.position===e.lineStart&&yn(e))return e.depth--,!1;if(s===1)for(;;){let f=e.input.charCodeAt(e.position),h=ps(e);if(a&&s!==1&&(f===33||f===38))break;if(a&&d&&(l.tagStart!==we||l.anchorStart!==we)&&(f===33||f===38)){let y=ps(e),g=t+1;if(tu(e,e.position-e.lineStart,g,l)&&e.events[y.eventsLength]?.type===3)return e.depth--,!0;zo(e,y)}if(a&&(f===33&&l.tagStart!==we||f===38&&l.anchorStart!==we)||!$O(e,l,r===Vo)&&!AO(e,l))break;p===null&&(p=h),gt(e,!0)?(a=!0,m=d,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1):m=!1}if(m&&(m=a||o),s===1||r===Ja){let f=r===Vo||r===iu?t:t+1,h=e.position-e.lineStart;if(s===1)if(m&&(Fg(e,h,l)||tu(e,h,f,l))||qO(e,f,l))c=!0;else{let y=e.input.charCodeAt(e.position);if(p!==null&&i&&d&&!m&&y!==124&&y!==62){let g=ps(e),v=p.position-p.lineStart;zo(e,p),tu(e,v,f,Ug())&&e.events[g.eventsLength]?.type===3?c=!0:zo(e,g)}!c&&(u&&kO(e,f,l)||RO(e,f,l)||OO(e,f,l)||TO(e,l)||CO(e,f,r,l))&&(c=!0)}else s===0&&(c=m&&Fg(e,h,l))}return u=u&&!c,!c&&(l.anchorStart!==we||l.tagStart!==we||u)&&(Ho(e,we,we,l.anchorStart,l.anchorEnd,l.tagStart,l.tagEnd,1),c=!0),e.depth--,c||l.anchorStart!==we||l.tagStart!==we}function NO(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&&!ar(e.input.charCodeAt(e.position));)e.position++;let r=e.input.slice(t,e.position),n=[];for(r.length===0&&D(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!Qe(e.input.charCodeAt(e.position));){for(;Xn(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Qe(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let o=e.position;for(;e.input.charCodeAt(e.position)!==0&&!ar(e.input.charCodeAt(e.position));)e.position++;n.push(e.input.slice(o,e.position))}if(Qe(e.input.charCodeAt(e.position))&&Xa(e),r==="YAML"){e.directives.some(i=>i.kind==="yaml")&&D(e,"duplication of %YAML directive"),n.length!==1&&D(e,"YAML directive accepts exactly one argument");let o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);o===null&&D(e,"ill-formed argument of the YAML directive"),parseInt(o[1],10)!==1&&D(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&D(e,"TAG directive accepts exactly two arguments");let[o,i]=n;cb.test(o)||D(e,"ill-formed tag handle (first argument) of the TAG directive"),sb.call(e.tagHandlers,o)&&D(e,`there is a previously declared suffix for "${o}" tag handle`),vO.test(i)||D(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 jO(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(gt(e,!0);NO(e);)t=!0,gt(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&&Yr(e.input.charCodeAt(e.position+3))){r=!0;let a=e.line;e.position+=3,gt(e,!0),o=e.line>a}else t&&D(e,"directives end mark is expected");let i=e.events.length;if(!r&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&yn(e)){e.position+=3,gt(e,!0);return}if(xO(e,r,!1),Jn(e,e.lineIndent-1,Ja,!1,o,o)||yt(e),gt(e,!0),e.position===e.lineStart&&yn(e)&&(n=e.input.charCodeAt(e.position)===46,n)){let a=e.line;e.position+=3,gt(e,!0),e.line===a&&e.position<e.length&&D(e,"end of the stream or a document separator is expected")}let s=e.events[i];s?.type===1&&(s.explicitEnd=n),Uo(e),!n&&e.position<e.length&&!(e.position===e.lineStart&&yn(e))&&D(e,"end of the stream or a document separator is expected")}function MO(e,t){let r=e.length,n={...Ru,...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&&rc(e,o,"null byte is not allowed in input",n.filename),n.input.charCodeAt(n.position)===65279&&n.position++;n.position<n.length&&(gt(n,!0),!(n.position>=n.length));){let i=n.position;jO(n),n.position===i&&D(n,"can not read a document")}return n.events}var DO={...Ru,...Tu};function LO(e,t={}){let r={...DO,...t},n=String(e),o=Object.keys(Ru),i=Object.keys(Tu);return mO(MO(n,ou(r,o)),{...ou(r,i),source:n})}function db(e,t,r){let n=null;typeof t=="function"?n=t:t!==null&&typeof t=="object"&&(r=t);let o=LO(e,r);if(n===null)return o;for(let i of o)n(i)}var Ka=class{tagged=!1;flow=!1;singleQuoted=!1;doubleQuoted=!1;literal=!1;folded=!1},Qn=Symbol("INVALID");function UO(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 zO(e,t){for(let r=0,n=e.representTypes.length;r<n;r+=1){let{tag:o,implicitTag:i}=e.representTypes[r];if(o.identify&&o.identify(t)){let s;return o.matchByTagPrefix&&o.representTagName?s=o.representTagName(t):s=o.tagName,{tag:o,tagName:s,implicitTag:i}}}return null}function cs(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",tag:"",style:new Ka,anchor:l.anchor}}let r=zO(e,t);if(!r){if(t===void 0||e.skipInvalid)return Qn;throw new ms(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:n,tagName:o,implicitTag:i}=r,s=i?o:nb(o);if(n.nodeKind==="scalar"){let l=new Ka;return l.tagged=!i,{kind:"scalar",tag:s,style:l,value:n.represent(t)}}if(n.nodeKind==="sequence"){let l=n.represent(t),u=new Ka;u.tagged=!i;let m={kind:"sequence",tag:s,style:u,items:[]};e.noRefs||e.refs.set(t,m);for(let d=0,f=l.length;d<f;d+=1){let h=cs(e,l[d]);h===Qn&&l[d]===void 0&&(h=cs(e,null)),h!==Qn&&m.items.push(h)}return m}let a=n.represent(t),c=new Ka;c.tagged=!i;let p={kind:"mapping",tag:s,style:c,items:[]};e.noRefs||e.refs.set(t,p);for(let[l,u]of a){let m=cs(e,l);if(m===Qn)continue;let d=cs(e,u);d!==Qn&&p.items.push({key:m,value:d})}return p}function FO(e,t,r={}){let n=cs({representTypes:UO(t),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:n===Qn?null:n,directives:[]}]}var VO=Symbol("visit:break"),fb=Symbol("visit:skip");function Wa(e,t,r){let n=t(e,r);if(n===VO)return!0;if(n===fb)return!1;let o=r.depth+1;switch(e.kind){case"sequence":for(let i of e.items)if(Wa(i,t,{depth:o,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:i,value:s}of e.items)if(Wa(i,t,{depth:o,parent:e,isKey:!0})||Wa(s,t,{depth:o,parent:e,isKey:!1}))return!0;break}return!1}function BO(e,t){for(let r of e)if(r.contents&&Wa(r.contents,t,{depth:0,parent:null,isKey:!1}))return}var Ou=65279,HO=9,eo=10,mb=13,KO=32,GO=33,hb=34,pu=35,YO=37,WO=38,yb=39,QO=42,lu=44,ku=45,us=58,JO=61,XO=62,gb=63,ZO=64,uu=91,du=93,e1=96,fu=123,t1=124,mu=125,lt={};lt[0]="\\0";lt[7]="\\a";lt[8]="\\b";lt[9]="\\t";lt[10]="\\n";lt[11]="\\v";lt[12]="\\f";lt[13]="\\r";lt[27]="\\e";lt[34]='\\"';lt[92]="\\\\";lt[133]="\\N";lt[160]="\\_";lt[8232]="\\L";lt[8233]="\\P";var Iu={indent:2,seqNoIndent:!1,seqInlineFirst:!0,sortKeys:!1,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,tagBeforeAnchor:!1};function r1(e){return e.style.tagged?e.tag:nb(e.tag)}function n1(e){let t={...Iu,...e};return{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,implicitResolvers:t.schema.implicitScalarTags}}function o1(e){let t=e.toString(16).toUpperCase(),r=e<=255?"x":"u",n=e<=255?2:4;return`\\${r}${"0".repeat(n-t.length)}${t}`}function Vg(e,t){let r=" ".repeat(t),n=0,o="",i=e.length;for(;n<i;){let s,a=e.indexOf(`
|
|
73
|
+
`,n);a===-1?(s=e.slice(n),n=i):(s=e.slice(n,a+1),n=a+1),s.length&&s!==`
|
|
74
|
+
`&&(o+=r),o+=s}return o}function hu(e,t){return`
|
|
75
|
+
${" ".repeat(e.indent*t)}`}function i1(e,t){let r=e.indent*Math.max(1,t);return{indent:r,blockIndent:t===0?e.indent+1:e.indent,lineWidth:e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r)}}function Bg(e,t){for(let r=0,n=e.implicitResolvers.length;r<n;r+=1){let o=e.implicitResolvers[r];if(o.resolve(t,!1,o.tagName)!==he)return o.tagName}return e.defaultScalarTagName}function Bo(e){return e===KO||e===HO}function s1(e){let t=e.charCodeAt(0);if(t!==ku&&t!==46||e.charCodeAt(1)!==t||e.charCodeAt(2)!==t)return!1;if(e.length===3)return!0;let r=e.charCodeAt(3);return Bo(r)||r===mb||r===eo}function ds(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==Ou||e>=65536&&e<=1114111}function Hg(e){return ds(e)&&e!==Ou&&e!==mb&&e!==eo}function yu(e,t,r){let n=Hg(e),o=n&&!Bo(e);return(r?n:n&&e!==lu&&e!==uu&&e!==du&&e!==fu&&e!==mu)&&e!==pu&&!(t===us&&!o)||Hg(t)&&!Bo(t)&&e===pu||t===us&&o&&(r||e!==lu&&e!==uu&&e!==du&&e!==fu&&e!==mu)}function a1(e){return ds(e)&&e!==Ou&&!Bo(e)&&e!==ku&&e!==gb&&e!==us&&e!==lu&&e!==uu&&e!==du&&e!==fu&&e!==mu&&e!==pu&&e!==WO&&e!==QO&&e!==GO&&e!==t1&&e!==JO&&e!==XO&&e!==yb&&e!==hb&&e!==YO&&e!==ZO&&e!==e1}function c1(e,t){let r=Fo(e,0);if(a1(r))return!0;if(e.length>1&&(r===ku||r===gb||r===us)){let n=Fo(e,1);return!Bo(n)&&yu(n,r,t)}return!1}function p1(e){return!Bo(e)&&e!==us}function Fo(e,t){let r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function bb(e){return/^\n* /.test(e)}var fs=1,ls=2,Cu=3,qu=4,hn=5;function l1(e,t,r,n,o,i){let{blockIndent:s,lineWidth:a}=r,c,p=0,l=-1,u=!1,m=!1,d=a!==-1,f=-1,h=!s1(t)&&c1(t,i)&&p1(Fo(t,t.length-1));if(n||o)for(c=0;c<t.length;p>=65536?c+=2:c++){if(p=Fo(t,c),!ds(p))return hn;h=h&&yu(p,l,i),l=p}else{for(c=0;c<t.length;p>=65536?c+=2:c++){if(p=Fo(t,c),p===eo)u=!0,d&&(m=m||c-f-1>a&&t[f+1]!==" ",f=c);else if(!ds(p))return hn;h=h&&yu(p,l,i),l=p}m=m||d&&c-f-1>a&&t[f+1]!==" "}return!u&&!m?h&&!o?fs:e.quoteStyle==="double"?hn:ls:s>9&&bb(t)?hn:m?qu:Cu}function u1(e,t,r){let{indent:n,blockIndent:o,lineWidth:i}=r;switch(t){case fs:return Gg(e,n);case ls:return`'${Gg(e,n).replace(/'/g,"''")}'`;case Cu:return"|"+Kg(e,o)+Yg(Vg(e,n));case qu:return">"+Kg(e,o)+Yg(Vg(f1(e,i),n));case hn:return`"${m1(e)}"`}}function d1(e,t,r,n,o){let i=n||!o;if(t.style.singleQuoted)return ls;if(t.style.doubleQuoted)return hn;if(!i){if(t.style.literal)return Cu;if(t.style.folded)return qu}let s=t.value;if(s.length===0)return t.style.tagged||Bg(e,s)===t.tag?fs:e.quoteStyle==="double"?hn:ls;let a=l1(e,s,r,i,e.forceQuotes&&!n,o);return a===fs&&!t.style.tagged&&Bg(e,s)!==t.tag?e.quoteStyle==="double"?hn:ls:a}function Kg(e,t){let r=bb(e)?String(t):"",n=e[e.length-1]===`
|
|
76
|
+
`;return`${r}${n&&(e[e.length-2]===`
|
|
77
|
+
`||e===`
|
|
78
|
+
`)?"+":n?"":"-"}
|
|
79
|
+
`}function Gg(e,t){let r=e.indexOf(`
|
|
80
|
+
`);if(r===-1)return e;let n=" ".repeat(t),o=e.slice(0,r),i=/(\n+)([^\n]*)/g;i.lastIndex=r;let s;for(;s=i.exec(e);){let a=s[1].length,c=s[2];o+=`
|
|
81
|
+
`.repeat(a+1)+n+c}return o}function Yg(e){return e[e.length-1]===`
|
|
82
|
+
`?e.slice(0,-1):e}function f1(e,t){let r=/(\n+)([^\n]*)/g,n=e.indexOf(`
|
|
83
|
+
`);n===-1&&(n=e.length),r.lastIndex=n;let o=Wg(e.slice(0,n),t),i=e[0]===`
|
|
84
|
+
`||e[0]===" ",s,a;for(;a=r.exec(e);){let c=a[1],p=a[2];s=p[0]===" ",o+=c+(!i&&!s&&p!==""?`
|
|
85
|
+
`:"")+Wg(p,t),i=s}return o}function Wg(e,t){if(e===""||e[0]===" ")return e;let r=/ [^ ]/g,n,o=0,i,s=0,a=0,c="";for(;n=r.exec(e);)a=n.index,a-o>t&&(i=s>o?s:a,c+=`
|
|
86
|
+
${e.slice(o,i)}`,o=i+1),s=a;return c+=`
|
|
87
|
+
`,e.length-o>t&&s>o?c+=`${e.slice(o,s)}
|
|
88
|
+
${e.slice(s+1)}`:c+=e.slice(o),c.slice(1)}function m1(e){let t="",r=0;for(let n=0;n<e.length;r>=65536?n+=2:n++){r=Fo(e,n);let o=lt[r];if(o){t+=o;continue}if(ds(r)){t+=e[n],r>=65536&&(t+=e[n+1]);continue}t+=o1(r)}return t}function h1(e,t,r){let n="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Wr(e,t,r.items[i],{});n!==""&&(n+=`,${e.flowSkipCommaSpace?"":" "}`),n+=a}let o=e.flowBracketPadding&&n!==""?" ":"";return`[${o}${n}${o}]`}function Qg(e,t,r,n){let o="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Wr(e,t+1,r.items[i],{block:!0,compact:e.seqInlineFirst,isblockseq:!0});(!n||o!=="")&&(o+=hu(e,t)),a===""||eo===a.charCodeAt(0)?o+="-":o+="- ",o+=a}return o}function y1(e,t,r){let n="",o=vb(e,r.items);for(let{key:s,value:a}of o){let c="";n!==""&&(c+=`,${e.flowSkipCommaSpace?"":" "}`);let p=Wr(e,t,s,{iskey:!0}),l=p.length>1024;l?c+="? ":e.quoteFlowKeys&&(c+='"');let u=Wr(e,t,a,{}),m=e.flowSkipColonSpace||u===""?"":" ";c+=`${p}${e.quoteFlowKeys&&!l?'"':""}:${m}${u}`,n+=c}let i=e.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}function Ga(e){return e.kind==="scalar"?e.value:e}function vb(e,t){if(!e.sortKeys)return t;let r=t.slice();if(e.sortKeys===!0)r.sort((n,o)=>{let i=Ga(n.key),s=Ga(o.key);return i<s?-1:i>s?1:0});else{let n=e.sortKeys;r.sort((o,i)=>n(Ga(o.key),Ga(i.key)))}return r}function g1(e,t,r,n){let o="",i=vb(e,r.items);for(let s=0,a=i.length;s<a;s+=1){let c="";(!n||o!=="")&&(c+=hu(e,t));let{key:p,value:l}=i[s],u=(p.kind==="mapping"||p.kind==="sequence")&&!p.style.flow&&p.items.length!==0||p.kind==="scalar"&&(p.style.literal||p.style.folded),m=u?Wr(e,t+1,p,{block:!0,compact:!0,isblockseq:!gu(e,p,t+1)}):Wr(e,t+1,p,{block:!0,compact:!0,iskey:!0}),d=p.kind==="scalar"&&p.value.indexOf(`
|
|
89
|
+
`)!==-1,f=u||d||m.length>1024;f&&(m&&eo===m.charCodeAt(0)?c+="?":c+="? "),c+=m,f&&(c+=hu(e,t));let h=Wr(e,t+1,l,{block:!0,compact:f,isblockseq:f&&!gu(e,l,t+1)}),y=p.kind==="scalar"&&p.value===""&&m!==""&&m.charCodeAt(m.length-1)!==yb&&m.charCodeAt(m.length-1)!==hb,g=!f&&(p.kind==="alias"||y)?" ":"";h===""||eo===h.charCodeAt(0)?c+=`${g}:`:c+=`${g}: `,c+=h,o+=c}return o}function gu(e,t,r){return t.style.tagged||t.anchor!==void 0||e.indent<2&&r>0}function Wr(e,t,r,n){if(r.kind==="alias")return`*${r.anchor}`;let{block:o=!1,iskey:i=!1,isblockseq:s=!1}=n,a=n.compact??!1,c=r.anchor!==void 0;gu(e,r,t)&&(a=!1);let p,l=r.style.tagged,u=o&&(r.kind==="mapping"||r.kind==="sequence")&&!r.style.flow&&r.items.length!==0;if(r.kind==="mapping")u?p=g1(e,t,r,a):p=y1(e,t,r);else if(r.kind==="sequence")u?e.seqNoIndent&&!s&&t>0?p=Qg(e,t-1,r,a):p=Qg(e,t,r,a):p=h1(e,t,r);else{let m=i1(e,t),d=d1(e,r,m,i,o);p=u1(r.value,d,m),l=r.style.tagged||d!==fs&&r.tag!==e.defaultScalarTagName}if(u&&a&&t>0&&e.indent>2&&(p=`${" ".repeat(e.indent-2)}${p}`),l||c){let m=[],d=l?r1(r):null,f=c?`&${r.anchor}`:null;e.tagBeforeAnchor?(d!==null&&m.push(d),f!==null&&m.push(f)):(f!==null&&m.push(f),d!==null&&m.push(d));let h=p===""||p.charCodeAt(0)===eo?"":" ";p=`${m.join(" ")}${h}${p}`}return p}function b1(e){return(e.kind==="sequence"||e.kind==="mapping")&&!e.style.flow&&e.items.length!==0&&!e.style.tagged&&e.anchor===void 0}function v1(e){let t=e;for(;(t.kind==="sequence"||t.kind==="mapping")&&!t.style.flow&&t.items.length!==0;)t=t.kind==="sequence"?t.items[t.items.length-1]:t.items[t.items.length-1].value;if(t.kind!=="scalar"||!(t.style.literal||t.style.folded))return!1;let{value:r}=t;return r.endsWith(`
|
|
90
|
+
|
|
91
|
+
`)||r===`
|
|
92
|
+
`}function x1(e){let t="";for(let r of e.directives){if(r.kind==="yaml"){t+=`%YAML ${r.version}
|
|
93
|
+
`;continue}let{handle:n,prefix:o}=r;t+=`%TAG ${n} ${o}
|
|
94
|
+
`}return t}function S1(e,t){let r=n1(t),n="",o=!1;for(let i=0;i<e.length;i+=1){let s=e[i],a=x1(s),c=a!=="",p=s.explicitStart||c||i>0&&!o;if(n+=a,s.contents===null)p&&(n+=`---
|
|
95
|
+
`);else if(p){let l=Wr(r,0,s.contents,{block:!0,compact:!0}),u=l===""?"":c||b1(s.contents)?`
|
|
96
|
+
`:" ";n+=`---${u}${l}
|
|
97
|
+
`}else n+=Wr(r,0,s.contents,{block:!0,compact:!0})+`
|
|
98
|
+
`;o=s.explicitEnd||s.contents!==null&&v1(s.contents),o&&(n+=`...
|
|
99
|
+
`)}return n}var w1=JR.withTags({...ru,resolve:(e,t,r)=>{let n=ru.resolve(e,t,r);return n===he?Jg.resolve(e,t,r):n}},{...nu,resolve:(e,t,r)=>{let n=nu.resolve(e,t,r);return n===he?Xg.resolve(e,t,r):n}}),_1={...Iu,schema:w1,skipInvalid:!1,noRefs:!1,flowLevel:-1,transform:()=>{}};function xb(e,t={}){let r={..._1,...t},n=FO(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});return r.flowLevel>=0&&BO(n,(o,i)=>{if(!(i.depth<r.flowLevel))return o.style.flow=!0,fb}),r.transform(n),S1(n,{...ou(r,Object.keys(Iu)),schema:r.schema})}var P1=$u.withTags(xu,Su,wu,_u,Pu),to=(e,t)=>{let r=db(e,{schema:P1,...t});if(r.length===0)return e.trim()===""?void 0:null;if(r.length>1)throw new ms("expected a single document in the stream, but found more");return r[0]},nc=(e,t)=>xb(e,t);var Lu={};JT(Lu,{bgBlack:()=>G1,bgBlackBright:()=>pk,bgBlue:()=>J1,bgBlueBright:()=>fk,bgCyan:()=>Z1,bgCyanBright:()=>hk,bgGreen:()=>W1,bgGreenBright:()=>uk,bgMagenta:()=>X1,bgMagentaBright:()=>mk,bgRed:()=>Y1,bgRedBright:()=>lk,bgWhite:()=>ek,bgWhiteBright:()=>yk,bgYellow:()=>Q1,bgYellowBright:()=>dk,black:()=>D1,blackBright:()=>tk,blue:()=>F1,blueBright:()=>ik,bold:()=>k1,cyan:()=>B1,cyanBright:()=>ak,dim:()=>I1,gray:()=>K1,green:()=>U1,greenBright:()=>nk,hidden:()=>j1,inverse:()=>N1,italic:()=>C1,magenta:()=>V1,magentaBright:()=>sk,options:()=>Du,red:()=>L1,redBright:()=>rk,reset:()=>O1,strikethrough:()=>M1,underline:()=>q1,white:()=>H1,whiteBright:()=>ck,yellow:()=>z1,yellowBright:()=>ok});import*as ju from"tty";var gn=process.env,E1="NO_COLOR"in gn,$1="FORCE_COLOR"in gn,A1=process.platform==="win32",T1=ju&&ju.isatty(1)&&gn.TERM&&gn.TERM!=="dumb",R1="CI"in gn&&("GITHUB_ACTIONS"in gn||"GITLAB_CI"in gn||"CIRCLECI"in gn),Nu=!E1&&($1||A1||T1||R1),Mu=(e,t,r,n)=>o=>Nu?e+(~(o+="").indexOf(t,4)?o.replace(r,n):o)+t:o,te=(e,t)=>Mu(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),Du=Object.defineProperty({},"enabled",{get:()=>Nu,set:e=>Nu=e}),O1=te(0,0),k1=Mu("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),I1=Mu("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),C1=te(3,23),q1=te(4,24),N1=te(7,27),j1=te(8,28),M1=te(9,29),D1=te(30,39),L1=te(31,39),U1=te(32,39),z1=te(33,39),F1=te(34,39),V1=te(35,39),B1=te(36,39),H1=te(37,39),K1=te(90,39),G1=te(40,49),Y1=te(41,49),W1=te(42,49),Q1=te(43,49),J1=te(44,49),X1=te(45,49),Z1=te(46,49),ek=te(47,49),tk=te(90,39),rk=te(91,39),nk=te(92,39),ok=te(93,39),ik=te(94,39),sk=te(95,39),ak=te(96,39),ck=te(97,39),pk=te(100,49),lk=te(101,49),uk=te(102,49),dk=te(103,49),fk=te(104,49),mk=te(105,49),hk=te(106,49),yk=te(107,49);var Je=typeof window<"u"||typeof process>"u"||process?.platform==="browser",hs=Je?{}:process.env||{};function Sb(e){return e}var ys=Du,G=new Proxy(Lu,{get(e,t){return Je?Sb:e[t]}}),Uu=class{info(t){return Je?console.info(t):process.stderr.write(t)}warn(t){return Je?console.warn(t):process.stderr.write(G.yellow(t))}error(t){return Je?console.error(t):process.stderr.write(G.red(t))}output(t){return Je?console.log(t):process.stdout.write(t)}printNewLine(){Je?console.log(`
|
|
100
|
+
`):process.stdout.write(`
|
|
101
|
+
`)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),o=Je?n:G.gray(n);return Je?console.log(o):process.stdout.write(o)}indent(t,r){let n=Je?" ":"\xA0";return t.split(`
|
|
102
|
+
`).map(o=>n.repeat(r)+o).join(`
|
|
103
|
+
`)}},Y=new Uu;import*as gk from"node:fs";import*as zu from"node:path";function bk(e){return(zu.extname(e)===".yaml"||zu.extname(e)===".yml")&&!!gk?.existsSync?.(e)}function Ko(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--&&Ko(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)||!Ko(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Ut(e){return O(e)&&Object.keys(e).length===0}function oc(e){return Array.isArray(e)&&e.length>0}function vk(e){return O(e)&&!Ut(e)}function De(e){return typeof e=="string"}function gs(e){return e?Object.keys(e):[]}async function xk(e){return new Promise(t=>setTimeout(t,e))}var wb=Tr(Bu(),1);function Sk(e,t,r){return e.split(" ").map(n=>(0,wb.default)(n,t,r)).join(" ")}var Yb=Tr(Gb(),1);async function td(e,t){let r={};for(let o of t.headers)rI(e,o.matches)&&(r[o.name]=o.envVariable!==void 0?hs[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 rI(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),Yb.default.isMatch(e,t)}function rd(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function ro(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}function C(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function q(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}var cr={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function Qr(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=cr,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)):pr(i)?(i={...i},n(i),i):i?.directResolveAs!==void 0?{...i,directResolveAs:o(i.directResolveAs)??void 0}:i}}function pr(e){return typeof e?.name=="string"}var nI=/^[0-9][0-9Xx]{2}$/,oI={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-"},iI={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-"},sI={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},aI={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},cI={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},pI={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},lI={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},uI={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-"},dI={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},fI={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},mI={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},hI={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-"},yI={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-"},gI={properties:{default:"Response"},additionalProperties:(e,t)=>nI.test(t)?"Response":void 0},bI={properties:{description:{type:"string"},schema:"Schema",headers:q("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},vI={properties:{},additionalProperties:{isExample:!0}},xI={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 O(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},SI={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},wI={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},_I={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?C("Schema"):"Schema",allOf:C("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},PI={properties:{},additionalProperties:{type:"string"}},EI={properties:{},additionalProperties:"Schema"},$I={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},AI={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:{type:"object",additionalProperties:{type:"string"}},"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-"},TI={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},RI={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},nd={Root:oI,Tag:SI,TagList:C("Tag"),TagGroups:C("TagGroup"),TagGroup:wI,ExternalDocs:mI,Example:RI,ExamplesMap:q("Example"),EnumDescriptions:PI,SecurityRequirement:TI,SecurityRequirementList:C("SecurityRequirement"),Info:iI,Contact:aI,License:cI,Logo:sI,Paths:pI,PathItem:lI,Parameter:hI,ParameterItems:yI,ParameterList:C("Parameter"),Operation:uI,Examples:vI,Header:xI,Responses:gI,Response:bI,Schema:_I,Xml:$I,SchemaProperties:EI,NamedSchemas:q("Schema"),NamedResponses:q("Response"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),SecurityScheme:AI,XCodeSample:dI,XCodeSampleList:C("XCodeSample"),XServerList:C("XServer"),XServer:fI};var OI=/^[0-9][0-9Xx]{2}$/,kI={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."},II={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."},CI={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"},qI={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"},NI={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."},jI={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."},MI={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."},DI={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"},LI={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."},UI={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."},zI={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."},FI={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"},VI={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},BI={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"},HI={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"},KI={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"},GI={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."},YI={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."},WI={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},QI={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"},JI={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"},XI={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"},ZI={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"},eC={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."},tC={properties:{default:"Response"},additionalProperties:(e,t)=>OI.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"},rC={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."},nC={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."},oC={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:C("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),anyOf:C("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),oneOf:C("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?C("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string",description:"CommonMark syntax MAY be used for rich text representation."},format:{type:"string",description:"See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats."},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-",description:"The schema defining the content of the request, response, or parameter.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/schemas"},iC={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."},sC={properties:{},additionalProperties:"Schema"},aC={properties:{},additionalProperties:e=>typeof e=="string"&&Or(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},cC={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."},pC={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"},lC={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."},uC={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."},dC={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."},fC={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."},mC={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},hC={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-"},yC={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"},Tt={Root:kI,Tag:II,TagList:C("Tag",{documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/tags",description:"A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique."}),TagGroups:C("TagGroup"),TagGroup:CI,ExternalDocs:qI,Server:NI,ServerList:C("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:jI,ServerVariablesMap:q("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:MI,SecurityRequirementList:C("SecurityRequirement"),Info:DI,Contact:UI,License:zI,Paths:FI,PathItem:BI,Parameter:HI,ParameterList:C("Parameter",{description:"A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object\u2019s components/parameters."}),Operation:KI,Callback:q("PathItem",{description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:q("Callback"),RequestBody:YI,MediaTypesMap:WI,MediaType:QI,Example:JI,ExamplesMap:q("Example"),Encoding:XI,EncodingMap:q("Encoding"),EnumDescriptions:ZI,Header:eC,HeadersMap:q("Header"),Responses:tC,Response:rC,Link:nC,Logo:LI,Schema:oC,Xml:iC,SchemaProperties:sC,DiscriminatorMapping:aC,Discriminator:cC,Components:pC,LinksMap:q("Link"),NamedSchemas:q("Schema"),NamedResponses:q("Response"),NamedParameters:q("Parameter"),NamedExamples:q("Example"),NamedRequestBodies:q("RequestBody"),NamedHeaders:q("Header"),NamedSecuritySchemes:q("SecurityScheme"),NamedLinks:q("Link"),NamedCallbacks:q("Callback"),ImplicitFlow:lC,PasswordFlow:uC,ClientCredentials:dC,AuthorizationCode:fC,OAuth2Flows:mC,SecurityScheme:hC,XCodeSample:GI,XCodeSampleList:C("XCodeSample"),XUsePkce:yC,WebhooksMap:VI};var gC={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."},bC={...Tt.License,properties:{...Tt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},vC={...Tt.Info,properties:{...Tt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},xC={...Tt.Components,properties:{...Tt.Components.properties,pathItems:"NamedPathItems"}},SC={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."},wC={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:C("Schema"),anyOf:C("Schema"),oneOf:C("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:q("Schema"),dependentRequired:"DependentRequired",prefixItems:C("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},Wb={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},_C={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-"},PC={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Ee={...Tt,Info:vC,Root:gC,Schema:wC,SchemaProperties:Wb,PatternProperties:Wb,License:bC,Components:xC,NamedPathItems:q("PathItem"),SecurityScheme:_C,Operation:SC,DependentRequired:PC};var EC={...Ee.Root,properties:{...Ee.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."}}},$C={...Ee.Tag,properties:{...Ee.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."},AC={...Ee.Server,properties:{...Ee.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."},TC={...Ee.SecurityScheme,properties:{...Ee.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."},RC={...Ee.OAuth2Flows,properties:{...Ee.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},OC={properties:{deviceAuthorizationUrl:{type:"string",description:"REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},tokenUrl:{type:"string",description:"REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},refreshUrl:{type:"string",description:"The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},scopes:q("string",{description:"REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."})},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Device Authorization flow."},kC={...Tt.PathItem,properties:{...Tt.PathItem.properties,query:"Operation",additionalOperations:q("Operation")}},IC={...Ee.Parameter,properties:{...Ee.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"]}}},CC={...Ee.Response,properties:{...Ee.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},qC={...Ee.MediaType,properties:{...Ee.MediaType.properties,itemSchema:"Schema",prefixEncoding:C("Encoding",{description:"A map between a property name and its encoding information, as defined under Encoding By Name. The encoding field SHALL only apply when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. This field MUST NOT be present if prefixEncoding or itemEncoding are present."}),itemEncoding:"Encoding"}},NC={...Ee.Discriminator,properties:{...Ee.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 Or(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},jC={properties:{...Ee.Components.properties,mediaTypes:"NamedMediaTypes"}},MC={...Ee.Example,properties:{...Ee.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."}}},DC={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."},LC={...Ee.Schema,properties:{...Ee.Schema.properties,xml:"Xml"}},Ye={...Ee,Root:EC,Tag:$C,Server:AC,SecurityScheme:TC,OAuth2Flows:RC,DeviceAuthorization:OC,PathItem:kC,Parameter:IC,Response:CC,MediaType:qC,Discriminator:NC,Example:MC,Xml:DC,Schema:LC,Components:jC,NamedMediaTypes:q("MediaTypesMap")};var UC={properties:{},description:"Protocol-specific information for an HTTP channel."},zC={properties:{},description:"Protocol-specific information for an HTTP server."},FC={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},VC={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."},BC={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},HC={properties:{},description:"Protocol-specific information for a WebSockets server."},KC={properties:{},description:"Protocol-specific information for a WebSockets message."},GC={properties:{},description:"Protocol-specific information for a WebSockets operation."},YC={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"}}},WC={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},QC={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},JC={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},XC={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},ZC={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},eq={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},tq={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},rq={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},nq={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."},oq={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."},iq={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."},sq={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},aq={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},cq={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."},pq={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},lq={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},uq={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},dq={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},fq={properties:{},description:"Protocol-specific information for an MQTT channel."},mq={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},hq={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>O(e)?"Schema":{type:"integer"},maximumPacketSize:e=>O(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},yq={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>O(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},gq={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>O(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},bq={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},vq={properties:{sessionExpiryInterval:e=>O(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},xq={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Sq={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},wq={properties:{},description:"Protocol-specific information for a NATS channel."},_q={properties:{},description:"Protocol-specific information for a NATS server."},Pq={properties:{},description:"Protocol-specific information for a NATS message."},Eq={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},$q={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Aq={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Tq={properties:{jmsConnectionFactory:{type:"string"},properties:C("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Rq={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Oq={properties:{},description:"Protocol-specific information for a JMS operation."},kq={properties:{},description:"Protocol-specific information for a Solace channel."},Iq={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Cq={properties:{},description:"Protocol-specific information for a Solace message."},qq={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"}}}},Nq={properties:{bindingVersion:{type:"string"},destinations:C("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},jq={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."},Mq={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},Dq={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},Lq={properties:{statements:C("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},Uq={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},zq={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},Fq={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."},Vq={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."},Bq={properties:{topic:"SnsIdentifier",consumers:C("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},Hq={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},Kq={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},Gq={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},Yq={properties:{statements:C("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},Qb={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)."},Wq={...Qb,required:["name"],description:"Describes an SQS queue (operation-level definition)."},Qq={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},Jq={properties:{queues:C("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},Xq={properties:{},description:"Protocol-specific information for a STOMP channel."},Zq={properties:{},description:"Protocol-specific information for a STOMP server."},eN={properties:{},description:"Protocol-specific information for a STOMP message."},tN={properties:{},description:"Protocol-specific information for a STOMP operation."},rN={properties:{},description:"Protocol-specific information for a Redis channel."},nN={properties:{},description:"Protocol-specific information for a Redis server."},oN={properties:{},description:"Protocol-specific information for a Redis message."},iN={properties:{},description:"Protocol-specific information for a Redis operation."},sN={properties:{},description:"Protocol-specific information for a Mercure channel."},aN={properties:{},description:"Protocol-specific information for a Mercure server."},cN={properties:{},description:"Protocol-specific information for a Mercure message."},pN={properties:{},description:"Protocol-specific information for a Mercure operation."},lN={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."},uN={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},dN={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},fN={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."},mN={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."},hN={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},yN={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."},gN={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."},bN={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},vN={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},xN={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},SN={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},wN={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."},_N={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},PN={properties:{},description:"Protocol-specific information for a ROS 2 channel."},EN={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."},$N={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."},AN={properties:{},description:"Protocol-specific information for a ROS 2 message."},TN={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."},RN={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."},ON={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."},kN={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."},Gt={HttpServerBinding:zC,HttpChannelBinding:UC,HttpMessageBinding:FC,HttpOperationBinding:VC,WsServerBinding:HC,WsChannelBinding:BC,WsMessageBinding:KC,WsOperationBinding:GC,KafkaServerBinding:QC,KafkaTopicConfiguration:YC,KafkaChannelBinding:WC,KafkaMessageBinding:JC,KafkaOperationBinding:XC,AnypointmqServerBinding:eq,AnypointmqChannelBinding:ZC,AnypointmqMessageBinding:tq,AnypointmqOperationBinding:rq,AmqpServerBinding:sq,AmqpChannelExchange:nq,AmqpChannelQueue:oq,AmqpChannelBinding:iq,AmqpMessageBinding:aq,AmqpOperationBinding:cq,Amqp1ServerBinding:lq,Amqp1ChannelBinding:pq,Amqp1MessageBinding:uq,Amqp1OperationBinding:dq,MqttServerBindingLastWill:mq,MqttServerBinding:hq,MqttChannelBinding:fq,MqttMessageBinding:yq,MqttOperationBinding:gq,Mqtt5ServerBinding:vq,Mqtt5ChannelBinding:bq,Mqtt5MessageBinding:xq,Mqtt5OperationBinding:Sq,NatsServerBinding:_q,NatsChannelBinding:wq,NatsMessageBinding:Pq,NatsOperationBinding:Eq,JmsServerBindingProperty:Aq,JmsServerBinding:Tq,JmsChannelBinding:$q,JmsMessageBinding:Rq,JmsOperationBinding:Oq,SolaceServerBinding:Iq,SolaceChannelBinding:kq,SolaceMessageBinding:Cq,SolaceDestination:qq,SolaceOperationBinding:Nq,StompServerBinding:Zq,StompChannelBinding:Xq,StompMessageBinding:eN,StompOperationBinding:tN,RedisServerBinding:nN,RedisChannelBinding:rN,RedisMessageBinding:oN,RedisOperationBinding:iN,MercureServerBinding:aN,MercureChannelBinding:sN,MercureMessageBinding:cN,MercureOperationBinding:pN,SnsIdentifier:jq,SnsOrdering:Mq,SnsStatement:Dq,SnsPolicy:Lq,SnsChannelBinding:Uq,SnsRedrivePolicy:zq,SnsDeliveryPolicy:Fq,SnsConsumer:Vq,SnsOperationBinding:Bq,SqsIdentifier:Hq,SqsRedrivePolicy:Kq,SqsStatement:Gq,SqsPolicy:Yq,SqsQueue:Qb,SqsOperationQueue:Wq,SqsChannelBinding:Qq,SqsOperationBinding:Jq,IbmmqServerBinding:lN,IbmmqChannelQueue:uN,IbmmqChannelTopic:dN,IbmmqChannelBinding:fN,IbmmqMessageBinding:mN,GooglepubsubMessageStoragePolicy:hN,GooglepubsubSchemaSettings:yN,GooglepubsubChannelBinding:gN,GooglepubsubSchema:bN,GooglepubsubMessageBinding:vN,PulsarServerBinding:xN,PulsarRetention:SN,PulsarChannelBinding:wN,ServerBindings:TN,ChannelBindings:RN,MessageBindings:kN,OperationBindings:ON},Jb={Ros2ServerBinding:_N,Ros2ChannelBinding:PN,Ros2OperationBinding:$N,Ros2QosPolicies:EN,Ros2MessageBinding:AN};var Yo={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:C("Schema"),anyOf:C("Schema"),oneOf:C("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?C("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},Wo={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Qo={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Jo={properties:{},additionalProperties:e=>typeof e=="string"&&Or(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Xo={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};var IN={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"]},CN={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."},qN={properties:{},additionalProperties:"Channel"},od={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."},id={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."},NN={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."},jN={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."},sd={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},ad={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."},MN={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."},cd={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."},pd={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."},DN={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."},ld={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."},LN={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."},UN={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."},zN={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."},FN={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."},ud={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."},VN={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"}},BN={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},HN={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},KN={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},GN={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."},dd={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},YN={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."},fd={...Gt,Root:IN,Tag:od,TagList:C("Tag"),ServerMap:sd,ExternalDocs:id,Server:jN,ServerVariable:ad,ServerVariablesMap:q("ServerVariable"),SecurityRequirement:NN,SecurityRequirementList:C("SecurityRequirement"),Info:MN,Contact:cd,License:pd,ChannelMap:qN,Channel:CN,Parameter:DN,ParametersMap:q("Parameter"),Operation:FN,Schema:Yo,MessageExample:ud,SchemaProperties:Wo,DiscriminatorMapping:Jo,Discriminator:Xo,Components:VN,NamedSchemas:q("Schema"),NamedMessages:q("Message"),NamedMessageTraits:q("MessageTrait"),NamedOperationTraits:q("OperationTrait"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),NamedCorrelationIds:q("CorrelationId"),ImplicitFlow:BN,PasswordFlow:HN,ClientCredentials:KN,AuthorizationCode:GN,SecuritySchemeFlows:dd,SecurityScheme:YN,Message:LN,OperationTrait:UN,OperationTraitList:C("OperationTrait"),MessageTrait:zN,MessageTraitList:C("MessageTrait"),MessageExampleList:C("MessageExample"),CorrelationId:ld,Dependencies:Qo};var WN={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."},QN={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."},JN={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."},XN={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."},ZN={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."},ej={properties:{headers:"Schema",payload:e=>e&&e?.schemaFormat?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"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"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},tj={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."},rj={properties:{headers:e=>typeof e=="function"||O(e)?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"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"},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."},nj={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"]},oj={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."},ij={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."},sj={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."},aj={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},cj={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."},pj={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},lj={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."},uj={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."},dj={...Gt.ServerBindings,properties:{...Gt.ServerBindings.properties,ros2:"Ros2ServerBinding"}},fj={...Gt.ChannelBindings,properties:{...Gt.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},mj={...Gt.OperationBindings,properties:{...Gt.OperationBindings.properties,ros2:"Ros2OperationBinding"}},hj={...Gt.MessageBindings,properties:{...Gt.MessageBindings.properties,ros2:"Ros2MessageBinding"}},md={...Gt,...Jb,ServerBindings:dj,ChannelBindings:fj,OperationBindings:mj,MessageBindings:hj,CorrelationId:ld,SecuritySchemeFlows:dd,ServerVariable:ad,Contact:cd,License:pd,MessageExample:ud,Tag:od,Dependencies:Qo,Schema:Yo,Discriminator:Xo,DiscriminatorMapping:Jo,SchemaProperties:Wo,ServerMap:sd,ExternalDocs:id,Root:WN,Channel:QN,Parameter:ZN,Info:XN,Server:JN,MessageTrait:rj,Operation:nj,OperationReply:oj,OperationReplyAddress:ij,Components:sj,ImplicitFlow:aj,PasswordFlow:cj,ClientCredentials:pj,AuthorizationCode:lj,SecurityScheme:uj,Message:ej,OperationTrait:tj,ServerVariablesMap:q("ServerVariable"),NamedTags:q("Tag"),NamedExternalDocs:q("ExternalDocs"),NamedChannels:q("Channel"),ParametersMap:q("Parameter"),NamedOperations:q("Operation"),NamedOperationReplies:q("OperationReply"),NamedOperationRelyAddresses:q("OperationReplyAddress"),NamedSchemas:q("Schema"),NamedMessages:q("Message"),NamedMessageTraits:q("MessageTrait"),NamedOperationTraits:q("OperationTrait"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),NamedCorrelationIds:q("CorrelationId"),ServerList:C("Server"),SecuritySchemeList:C("SecurityScheme"),MessageList:C("Message"),OperationTraitList:C("OperationTrait"),MessageTraitList:C("MessageTrait"),MessageExampleList:C("MessageExample"),TagList:C("Tag")};var 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-"},gj={properties:{},additionalProperties:"Parameter"},bj={properties:{},additionalProperties:"SuccessActionObject"},vj={properties:{},additionalProperties:"FailureActionObject"},xj={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},Sj=q("Schema"),wj={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."},_j={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},Pj={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."},Ej={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."},$j={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."},Aj={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."},Tj={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Rj={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."},Oj=C("Workflow"),kj=C("Step"),Ij={properties:{stepId:{type:"string",description:"REQUIRED. Unique string to represent the step. The stepId MUST be unique amongst all steps described in the workflow. The stepId value is case-sensitive. Tools and libraries MAY use the stepId to uniquely identify a workflow step, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},description:{type:"string",description:"A description of the step. CommonMark syntax MAY be used for rich text representation."},operationId:{type:"string",description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions. The referenced operation will be invoked by this workflow step. If multiple (non arazzo type) sourceDescriptions are defined, then the operationId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<operationId>) to avoid ambiguity or potential clashes. This field is mutually exclusive of the operationPath and workflowId fields respectively."},operationPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an operation. This field is mutually exclusive of the operationId and workflowId fields respectively. The operation being referenced MUST be described within one of the sourceDescriptions descriptions. A Runtime Expression syntax MUST be used to identify the source description document. If the referenced operation has an operationId defined then the operationId SHOULD be preferred over the operationPath."},workflowId:{type:"string",description:"The workflowId referencing an existing workflow within the Arazzo Description. If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. The field is mutually exclusive of the operationId and operationPath fields respectively."},parameters:"Parameters",successCriteria:C("CriterionObject",{description:"A list of assertions to determine the success of the step. Each assertion is described using a Criterion Object. All assertions MUST be satisfied for the step to be deemed successful."}),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-",description:"Describes a single workflow step which MAY be a call to an API operation (OpenAPI Operation Object) or another Workflow Object."},Cj={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_.-]+$."},qj={properties:{contentType:{type:"string",description:"The Content-Type for the request content. If omitted then refer to Content-Type specified at the targeted operation to understand serialization requirements."},payload:{},replacements:C("Replacement",{description:"A list of locations and values to set within a payload."})},required:["payload"],extensionsPrefix:"x-",description:"A single request body describing the Content-Type and request body content to be passed by a step to an operation."},Nj={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."},jj={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."},Mj={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."},Dj={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."},Lj={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},Uj={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},zj={properties:{name:{type:"string",description:"REQUIRED. The name of the success action. Names are case sensitive."},type:{type:"string",enum:["goto","end"],description:'REQUIRED. The type of action to take. Possible values are "end" or "goto".'},stepId:{type:"string",description:'The stepId to transfer to upon success of the step. This field is only relevant when the type field value is "goto". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId.'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon success of the step. This field is only relevant when the type field value is "goto". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId.'},criteria:C("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object. All criteria assertions MUST be satisfied for the action to be executed."})},required:["type","name"],description:"A single success action which describes an action to take upon success of a workflow step."},Fj={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},Vj={properties:{name:{type:"string",description:"REQUIRED. The name of the failure action. Names are case sensitive."},type:{type:"string",enum:["goto","retry","end"],description:'REQUIRED. The type of action to take. Possible values are "end", "retry", or "goto".'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId. When used with "retry", context transfers back upon completion of the specified workflow.'},stepId:{type:"string",description:'The stepId to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId. When used with "retry", context transfers back upon completion of the specified step.'},retryAfter:{type:"number",minimum:0,description:'A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. Note: if an HTTP Retry-After response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the type field value is "retry".'},retryLimit:{type:"number",minimum:0,description:'A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step. If not specified then a single retry SHALL be attempted. This field only applies when the type field value is "retry". The retryLimit MUST be exhausted prior to executing subsequent failure actions.'},criteria:C("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object."})},required:["type","name"],description:"A single failure action which describes an action to take upon failure of a workflow step."},Bj={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},We={Root:yj,Info:wj,SourceDescriptions:_j,OpenAPISourceDescription:Pj,ArazzoSourceDescription:Ej,Parameters:Tj,Parameter:Aj,ReusableObject:$j,Workflows:Oj,Workflow:Rj,Steps:kj,Step:Ij,RequestBody:qj,Replacement:Nj,ExtendedOperation:Mj,ExtendedSecurityList:C("ExtendedSecurity"),ExtendedSecurity:jj,Outputs:Cj,CriterionObject:Dj,XPathCriterion:Uj,JSONPathCriterion:Lj,SuccessActionObject:zj,OnSuccessActionList:Fj,FailureActionObject:Vj,OnFailureActionList:Bj,Schema:Ye.Schema,NamedSchemas:q("Schema"),ExternalDocs:Ye.ExternalDocs,DiscriminatorMapping:Ye.DiscriminatorMapping,Discriminator:Ye.Discriminator,DependentRequired:Ye.DependentRequired,SchemaProperties:Ye.SchemaProperties,PatternProperties:Ye.SchemaProperties,Components:xj,NamedInputs:Sj,NamedParameters:gj,NamedSuccessActions:bj,NamedFailureActions:vj,Xml:Ye.Xml,SecurityScheme:Ye.SecurityScheme,OAuth2Flows:Ye.OAuth2Flows,ImplicitFlow:Ye.ImplicitFlow,PasswordFlow:Ye.PasswordFlow,ClientCredentials:Ye.ClientCredentials,AuthorizationCode:Ye.AuthorizationCode,DeviceAuthorization:Ye.DeviceAuthorization};var Hj={...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."}}},Kj={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},Gj={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."},Yj={...We.Parameter,properties:{...We.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},Wj={...We.Step,properties:{...We.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"]},Qj={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},Jj={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},Xj={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},Zj={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"]},eM=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",hd=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:eM(n)},tM={...We.CriterionObject,properties:{...We.CriterionObject.properties,type:hd(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},rM={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:hd(["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."},nM={properties:{},additionalProperties:e=>O(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_.-]+$."},oM={...We.Replacement,properties:{...We.Replacement.properties,value:e=>O(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:hd(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},iM={...We.SuccessActionObject,properties:{...We.SuccessActionObject.properties,parameters:"Parameters"}},sM={...We.FailureActionObject,properties:{...We.FailureActionObject.properties,parameters:"Parameters"}},yd={...We,Root:Hj,SourceDescriptions:Kj,AsyncAPISourceDescription:Gj,Parameter:Yj,Step:Wj,CriterionObject:tM,JSONPathExpression:Qj,XPathExpression:Jj,JSONPointerExpression:Xj,ExpressionType:Zj,SelectorObject:rM,Outputs:nM,Replacement:oM,SuccessActionObject:iM,FailureActionObject:sM};var aM={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},cM={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},pM=C("Action"),lM={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},gd={Root:aM,Info:cM,Actions:pM,Action:lM};var uM={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."},dM={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."},fM={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."},mM={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."},hM={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."},yM={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."},gM={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."},bM={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."},vM={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."},xM={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."},SM={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."},wM={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."},_M={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."},PM={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."},EM={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."},bd={Root:uM,Info:dM,Contact:fM,License:mM,Server:hM,ServerList:C("Server"),ServerVariable:yM,ServerVariablesMap:q("ServerVariable"),Method:gM,MethodList:C("Method"),ContentDescriptor:bM,ContentDescriptorList:C("ContentDescriptor"),ExamplePairing:vM,ExamplePairingList:C("ExamplePairing"),Example:xM,ExampleList:C("Example"),Link:SM,LinkList:C("Link"),ErrorObject:wM,ErrorList:C("ErrorObject"),Components:_M,Tag:PM,TagList:C("Tag"),ExternalDocs:EM,Schema:Yo,SchemaProperties:Wo,Dependencies:Qo,DiscriminatorMapping:Jo,Discriminator:Xo,NamedContentDescriptors:q("ContentDescriptor"),NamedSchemas:q("Schema"),NamedExamples:q("Example"),NamedLinks:q("Link"),NamedErrors:q("ErrorObject"),NamedExamplePairingObjects:q("ExamplePairing"),NamedTags:q("Tag")};var uv={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},ws={type:"object",properties:uv,additionalProperties:!1},$M={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},_s={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:{...uv,like:ws,dislike:ws,satisfied:ws,neutral:ws,dissatisfied:ws},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:$M},additionalProperties:!1}},additionalProperties:!1},AM={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},wd={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},lc={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:_s,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:wd,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:AM,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Zo={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},TM={type:"object",properties:{name:{type:"string"},items:Zo,queries:Zo,mutations:Zo,subscriptions:Zo,types:Zo,directives:Zo},required:["name"],additionalProperties:!1},RM={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:TM},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},OM={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},kM={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},IM={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:OM,license:kM},additionalProperties:!1},uc={type:"object",properties:{menu:{type:"object",properties:{...RM.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:wd,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:_s,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},info:IM},additionalProperties:!1},CM={type:"object",properties:{downloadUrls:wd,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:_s,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},qM={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"]},NM={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"}}},Xb={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},jM={type:"object",properties:{beforeInfo:{type:"array",items:Xb},end:{type:"array",items:Xb}}},no={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},sc={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},MM={type:"object",properties:gc(no.properties,["light","dark"])},DM={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"}}},LM={type:"object",properties:{error:sc,info:sc,redirect:sc,success:sc}},UM={type:"object",properties:ei(no.properties,["dark"])},zM={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},FM={type:"object",properties:{accent:no,border:MM,error:no,http:DM,primary:no,responses:LM,secondary:UM,success:no,text:zM,tonalOffset:{type:"number"},warning:no}},ac={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},VM={type:"object",properties:{small:ac,medium:ac,large:ac,xlarge:ac}},Ir={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},BM={type:"object",properties:{...ei(Ir.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:VM}},Zb={type:"object",properties:gc(Ir.properties,["fontSize","lineHeight"])},HM={type:"object",properties:{medium:Zb,small:Zb}},KM={type:"object",properties:{...ei(Ir.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:HM}},GM={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},YM={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},ev={type:"object",properties:{fullWidth:{type:"boolean"}}},WM={type:"object",properties:{buttons:BM,httpBadges:KM,layoutControls:GM,panels:YM,tryItButton:ev,tryItSendButton:ev}},dc={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},QM={type:"object",properties:{maxWidth:dc}},JM={type:"object",properties:{maxWidth:dc,middlePanelMaxWidth:dc}},XM={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:QM,"three-panel":JM}},tv={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},ZM={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:tv,defaultDetailsWidth:{type:"string"},examples:tv,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},dv={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},eD={type:"object",properties:gc(dv.properties,["textTransform"])},tD={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},rD={type:"object",properties:{...ei(Ir.properties,["fontWeight","lineHeight"]),activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:dv,level1items:eD,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:tD,textColor:{type:"string"},width:{type:"string"}}},cc={type:"object",properties:{...Ir.properties,color:{type:"string"},transform:{type:"string"}}},nD={type:"object",properties:{...Ir.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},oD={type:"object",properties:ei(Ir.properties,["fontSize"])},iD={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},sD={type:"object",properties:{code:nD,fieldName:Ir,...gc(Ir.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:cc,heading2:cc,heading3:cc,headings:oD,lineHeight:{type:"string"},links:iD,optimizeSpeed:{type:"boolean"},rightPanelHeading:cc,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},aD={type:"object",properties:{color:{type:"string"},...ei(Ir.properties,["fontWeight"])}},cD={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:aD}},pD={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},lD={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},rv={type:"object",properties:{custom:{type:"string"}}},uD={type:"object",properties:{DownloadButton:rv,NextSectionButton:rv}},dD={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},fD={type:"object",properties:{borderRadius:{type:"string"}}},mD={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},hD={type:"object",properties:{breakpoints:dc,codeBlock:cD,colors:FM,components:WM,layout:XM,logo:pD,fab:lD,overrides:uD,rightPanel:dD,schema:ZM,shape:fD,sidebar:rD,spacing:mD,typography:sD,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},yD={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:qM}},required:["languages"]},fv={type:"object",properties:{theme:hD,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:yD,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:NM,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:jM,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 gc(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function ei(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Yt={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 gD={rules:Yt,oas2Rules:Yt,oas3_0Rules:Yt,oas3_1Rules:Yt,oas3_2Rules:Yt,async2Rules:Yt,async3Rules:Yt,arazzo1Rules:Yt,arazzo1_1Rules:Yt,overlay1Rules:Yt,openrpc1Rules:Yt,graphqlRules:Yt};var lr={nodeTypeName:void 0,type:"object",additionalProperties:!0},bD={preprocessors:lr,oas2Preprocessors:lr,oas3_0Preprocessors:lr,oas3_1Preprocessors:lr,oas3_2Preprocessors:lr,async2Preprocessors:lr,async3Preprocessors:lr,arazzo1Preprocessors:lr,arazzo1_1Preprocessors:lr,overlay1Preprocessors:lr,openrpc1Preprocessors:lr},ur={nodeTypeName:void 0,type:"object",additionalProperties:!0};var vD={decorators:ur,oas2Decorators:ur,oas3_0Decorators:ur,oas3_1Decorators:ur,oas3_2Decorators:ur,async2Decorators:ur,async3Decorators:ur,arazzo1Decorators:ur,arazzo1_1Decorators:ur,overlay1Decorators:ur,openrpc1Decorators:ur},xD={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"},bc={...gD,...vD,...bD,extends:xD},mv=e=>e,et=mv({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Xe={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},nv={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},vd={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean"},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},_d={type:"array",items:{...vd,properties:{...vd.properties,items:{type:"array",items:vd}}}},SD={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},wD={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},_D={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}},PD={type:"object",properties:{facets:_D,...Xe.properties},additionalProperties:!1},ED={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},hv={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},yv={type:"object",properties:{items:_d,...Xe.properties},additionalProperties:!1},gv={type:"object",additionalProperties:SD},bv={type:"object",properties:{items:_d,copyrightText:{type:"string"},logo:Xe,...Xe.properties},additionalProperties:!1},vv={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Xe.properties},additionalProperties:!1},xv={type:"object",properties:{head:{type:"array",items:nv},body:{type:"array",items:nv}},additionalProperties:!1},Sv={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}},wv={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:wD,filters:PD,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:ED},...Xe.properties},additionalProperties:!1},_v={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Pv={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Xe.properties},additionalProperties:!1},Pd={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},$D={type:"object",properties:{...Xe.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Ev={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Xe.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Xe.properties},additionalProperties:!1},actions:$D},additionalProperties:!1},$v={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Xe.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Xe.properties},additionalProperties:!1},expand:{type:"object",properties:{...Xe.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Xe.properties},additionalProperties:!1}},additionalProperties:!1},Av={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"},...Xe.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Xe.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Xe.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},fc={...lc,properties:{...lc.properties,...fv.properties}},K7={...lc,properties:{...lc.properties,...fv.properties}},AD={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},TD={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"]},RD={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},OD={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},kD={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"]},ID={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},CD={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"]},Tv={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"]},qD={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:Tv}},additionalProperties:!1,required:["trackingId"]},Rv={type:"object",properties:{adobe:AD,amplitude:TD,fullstory:RD,heap:OD,rudderstack:kD,segment:ID,gtm:CD,ga:qD}},Ov={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"},...Xe.properties},additionalProperties:!1},kv={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Iv={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},ND={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"}}}},jD={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:ND},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:_d,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},mc={type:"object",patternProperties:{".*":jD}},hc={nodeTypeName:et.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:et.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:et.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:et.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...bc},additionalProperties:!1}},targets:{nodeTypeName:et.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:et.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:et.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:et.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},MD={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},DD={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},LD={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},Jr={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:DD},excludes:{type:"array",items:MD},filters:{type:"array",items:LD},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},UD={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},zD={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:UD},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},FD={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:zD,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},VD={type:"object",additionalProperties:FD},Cv={type:"object",properties:{show:{type:"boolean"},entityTypes:VD,catalogs:{type:"object",properties:{all:Jr,services:Jr,domains:Jr,teams:Jr,users:Jr,apiDescriptions:Jr,dataSchemas:Jr,apiOperations:Jr},additionalProperties:Jr}},additionalProperties:!1},ov={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Ed={type:"string",enum:["and","or"]},xd={type:"object",properties:{field:{type:"string"},operator:ov,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:ov,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},BD={type:"object",properties:{operator:Ed,conditions:{type:"array",items:xd}},required:["operator","conditions"],additionalProperties:!1},iv={type:"array",items:{oneOf:[xd,{type:"object",properties:{operator:Ed,conditions:{type:"array",items:{oneOf:[xd,BD]}}},required:["operator","conditions"],additionalProperties:!1}]}},qv={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},HD={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:qv},required:["subject","assertions"],additionalProperties:!1}},KD={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:qv,where:HD,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},GD={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},KD]}},YD={type:"object",properties:{name:{type:"string"},extends:bc.extends,rules:GD},required:["name"],additionalProperties:!1},sv={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},WD={oneOf:[sv,{type:"array",items:sv}]},QD={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[iv,{type:"object",properties:{operator:Ed,conditions:iv},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:YD,minItems:1},trigger:WD},required:["name","key","entities","levels"],additionalProperties:!1},Nv={type:"array",items:QD},kr={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:hv,navbar:yv,products:gv,footer:bv,sidebar:vv,scripts:xv,links:Sv,feedback:_s,search:wv,aiAssistant:_v,colorMode:Pv,palette:Pd,navigation:Ev,codeSnippet:$v,markdown:Av,openapi:fc,asyncapi:CM,graphql:uc,analytics:Rv,userMenu:Ov,versionPicker:kv,breadcrumbs:Iv,catalog:mc,entitiesCatalog:Cv,catalogClassic:mc,scorecard:hc,scorecardClassic:hc,scorecards:Nv},additionalProperties:!0};var JD=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(JD||{}),XD=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(XD||{});var ZD=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(ZD||{});var jv="^[a-z0-9]+(?:-[a-z0-9]+)*$",G7=new RegExp(jv);var eL=63,Y7=`Unique ID cannot exceed ${eL} characters`,Mv="redocly",Dv=[Mv,"corporate","guest"],W7=`Unique ID cannot be a reserved word (${Dv.join(", ")})`,av=["REDOCLY","CORPORATE","GUEST"],tL={type:"object",additionalProperties:{type:"string"}},rL={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},pc={type:"string",enum:["error","warn","off"]},nL={type:"object",additionalProperties:!1,properties:{schemaCheck:pc,statusCodeCheck:pc,contentTypeCheck:pc,successCriteriaCheck:pc}},oL={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},iL={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},sL={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},aL={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:[oL,iL]},inputs:tL,servers:rL,severity:nL,slo:sL},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},cL={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},pL={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:cL,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},lL={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"]},uL={oneOf:[pL,lL],discriminator:{propertyName:"type"}},dL={type:"object",additionalProperties:uL},Lv={oneOf:[{type:"array",items:{type:"string",enum:av},uniqueItems:!0},{type:"string",enum:av}]},cv={type:"string",pattern:jv,not:{enum:Dv.filter(e=>e!==Mv)}},Uv={oneOf:[{type:"array",items:cv,uniqueItems:!0},cv]},zv={type:"boolean"},Fv={type:"string",pattern:"^https?://.*"},Vv={type:"string",pattern:"^https?://.*"},fL={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:et.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},mL={type:"object",additionalProperties:fL,nodeTypeName:et.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"},hL={type:"string",enum:["info","success","warning","error"]},Pe={type:"object",additionalProperties:{type:"string"}},yL={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:hL,rbac:Pe,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},gL={type:"array",items:yL},Bv={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Pe,openapi:fc,graphql:uc,theme:{type:"object",properties:{openapi:fc,graphql:uc},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...bc},required:["root"]},bL={type:"object",additionalProperties:!0},vL={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},xL={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},SL={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:xL},additionalProperties:!1},wL={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},_L={type:"object",properties:{catalogs:{type:"object",properties:{all:Pe,services:Pe,domains:Pe,teams:Pe,users:Pe,apiDescriptions:Pe,dataSchemas:Pe,apiOperations:Pe},additionalProperties:Pe},entitiesTypes:{type:"object",properties:{service:Pe,domain:Pe,team:Pe,user:Pe,apiDescription:Pe,apiOperation:Pe,dataSchema:Pe},additionalProperties:Pe},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Pe},additionalProperties:!1}},entities:{type:"object",properties:{"**":Pe},additionalProperties:Pe}},additionalProperties:!1},Hv={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Pe,cms:Pe,reunite:Pe,features:{type:"object",properties:{aiSearch:Pe,mcp:Pe},additionalProperties:!1},content:{type:"object",properties:{"**":Pe},additionalProperties:Pe},entitiesCatalog:_L},additionalProperties:Pe},PL={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},EL={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},$L={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[PL,EL]}},additionalProperties:!1,required:["type","apiBaseUrl"]},AL={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},TL={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Sd={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:[AL,TL],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},RL={...Sd,properties:{...Sd.properties,type:{type:"string",const:"APIGEE_EDGE"}}},OL={type:"object",oneOf:[Sd,RL,$L],discriminator:{propertyName:"type"}},kL={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:OL}}},pv={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},IL={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},CL={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1},qL={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},NL={type:"object",properties:{requiresLogin:zv,logoutReturnUrl:Fv,residency:Vv,sso:Lv,idps:Uv,rbac:Hv},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},yc={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:mL,seo:SL,rbac:Hv,apiFunctions:wL,requiresLogin:zv,responseHeaders:{type:"object",additionalProperties:{type:"array",items:IL}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",additionalProperties:Bv},...bc,ssoDirect:dL,sso:Lv,idps:Uv,residency:Vv,logoutReturnUrl:Fv,access:NL,developerOnboarding:kL,removeAttribution:{type:"boolean"},i18n:pv,l10n:pv,metadata:bL,metadataGlobs:vL,ignore:{type:"array",items:{type:"string"}},theme:kr,reunite:aL,logo:hv,navbar:yv,products:gv,footer:bv,sidebar:vv,scripts:xv,links:Sv,feedback:_s,search:wv,aiAssistant:_v,colorMode:Pv,palette:Pd,navigation:Ev,codeSnippet:$v,markdown:Av,openapi:fc,graphql:uc,analytics:Rv,userMenu:Ov,versionPicker:kv,breadcrumbs:Iv,catalog:mc,entitiesCatalog:Cv,catalogClassic:mc,scorecard:hc,scorecardClassic:hc,scorecards:Nv,mcp:CL,skills:qL,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:gL},not:{required:["sso","idps"]},additionalProperties:!0},jL={...yc,additionalProperties:!1},ti={$id:"root-redocly-config",...yc,properties:{plugins:{type:"array",items:{type:"string"}},...yc.properties,env:{type:"object",additionalProperties:jL}},additionalProperties:!1},lv={type:"object",properties:{logo:kr.properties.logo,navbar:kr.properties.navbar,footer:kr.properties.footer,sidebar:kr.properties.sidebar,search:kr.properties.search,codeSnippet:kr.properties.codeSnippet,breadcrumbs:kr.properties.breadcrumbs,openapi:kr.properties.openapi,feedback:kr.properties.feedback,palette:Pd,mockServer:yc.properties.mockServer,analytics:{type:"object",properties:{ga:Tv}}},additionalProperties:!0},Q7={$id:"product-config-override",type:"object",properties:{...lv.properties,apis:{type:"object",additionalProperties:Bv},theme:lv},additionalProperties:!1},ML=["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"],ze=mv({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"}),DL={type:"object",nodeTypeName:ze.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},LL={type:"object",nodeTypeName:ze.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},UL={type:"object",nodeTypeName:ze.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},zL={type:"object",nodeTypeName:ze.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},FL={type:"object",properties:{},nodeTypeName:ze.EntityMetadata,additionalProperties:!0},VL={type:"object",nodeTypeName:ze.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},BL={type:"object",nodeTypeName:ze.EntitySlackContact,properties:{channels:{type:"array",items:VL}},required:["channels"],additionalProperties:!1},HL={type:"object",nodeTypeName:ze.EntityContact,properties:{slack:BL},additionalProperties:!1},KL={type:"object",nodeTypeName:ze.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},GL={type:"object",nodeTypeName:ze.EntityRelation,properties:{type:{type:"string",enum:ML},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},bn={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:HL,links:{type:"array",nodeTypeName:ze.EntityLinkList,items:KL},relations:{type:"array",nodeTypeName:ze.EntityRelationList,items:GL},metadata:FL},YL={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...bn,type:{type:"string",const:"user"},metadata:DL},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:ze.UserEntity},{type:"object",nodeTypeName:ze.ApiOperationEntity,properties:{...bn,type:{type:"string",const:"api-operation"},metadata:UL},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DataSchemaEntity,properties:{...bn,type:{type:"string",const:"data-schema"},metadata:zL},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ApiDescriptionEntity,properties:{...bn,type:{type:"string",const:"api-description"},metadata:LL},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ServiceEntity,properties:{...bn,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DomainEntity,properties:{...bn,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.TeamEntity,properties:{...bn,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},WL={type:"object",nodeTypeName:ze.Entity,properties:{...bn},required:["key","title","type"],additionalProperties:!1};import HB from"node:path";var Kv=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"];var ri=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],vc="a-zA-Z0-9\\.\\-_",QL={oas2:nd,oas3_0:Tt,oas3_1:Ee,oas3_2:Ye,async2:fd,async3:md,arazzo1:We,arazzo1_1:yd,overlay1:gd,openrpc1:bd};function oo(e){return e==="graphql"?{}:QL[e]}function xc(e){return e.includes("/")}function Sc(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var KS=Tr(Um(),1);var VB=new KS.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function HS(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>VB.validate(o,r));return n===-1&&(n=0),t[n]}}function Si(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(O(t.properties)||O(t.additionalProperties)||O(t.items)&&(O(t.items.properties)||O(t.items.additionalProperties)||t.items.oneOf))return BB(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 p=c.const,l=Si(p,s,r);return typeof l=="string"&&(o[p]=l),l});return(s,a)=>{if(O(s)){let c=s[n];if(typeof c=="string"){let p=o[c];if(p&&r[p])return p}}return HS(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>Si(e+"_"+i,o,r));return HS(t.oneOf,n)}return t}function BB(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,p]of Object.entries(t.properties||{}))o[c]=Si(n+"."+c,p,r);let i;O(t.additionalProperties)&&(i=Si(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;O(t.items)&&(O(t.items.properties)||O(t.items.additionalProperties)||t.items.oneOf)&&(s=Si(e+"_items",t.items,r));let a=t.required;return t.oneOf&&t.oneOf.every(c=>!!c.required)&&(a=c=>{let p=t.oneOf.map(u=>[...t.required||[],...u.required]),l=p.findIndex(u=>u.every(m=>c[m]!==void 0));return l===-1&&(l=0),p[l]}),r[n]={properties:o,additionalProperties:i,items:s,required:a,description:t.description,documentationLink:t.documentationLink},n}function zm(e,t){let r={},n=Si(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var KB=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","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"],GB=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-enum-type-mismatch","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-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"],YB=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-enum-type-mismatch","no-mixed-number-range-constraints","no-schema-type-mismatch","security-scopes-defined"],WB=["info-contact","info-license-strict","operation-operationId","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-enum-type-mismatch","no-mixed-number-range-constraints","no-schema-type-mismatch","security-scopes-defined"],QB=["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-enum-type-mismatch","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],JB=["info-contact"],XB=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional"],ZB=["no-unused-types","type-description"],e9=["struct","no-unresolved-refs"],t9=[...KB,...GB,...YB,...WB,...QB,...JB,...XB,...ZB,...e9],r9=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],n9=["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"],GS=[...n9,...r9],YS={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!pe(e)&&!HB.extname(e)?{type:"string"}:{...ta,directResolveAs:{name:"ConfigGovernance",...ta}},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"},ta={properties:YS},o9=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...ta.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),i9={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"},s9=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Sc(ta.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),a9={properties:{headers:{type:"array",items:{type:"string"}}}},c9={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","package"]},importExt:{enum:["js","ts"]},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},setup:{type:"string"},pagination:"ClientPagination"}},WS={properties:{style:{enum:["cursor","offset","page","link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},p9={properties:{...WS.properties,exclude:{type:"array",items:{type:"string"}},operations:q("ClientPaginationRule")}},l9={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(t9.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(xc(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},u9={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"},d9={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"},f9={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(GS.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(xc(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},m9={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},h9={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},y9={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(GS.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(xc(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},g9={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"},b9={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"},v9={properties:{properties:q("Schema")},additionalProperties:{}};function x9(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 S9(e){return{...e[et.ScorecardClassicLevel],properties:{...e[et.ScorecardClassicLevel]?.properties,...YS}}}var w9={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"},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"},_9={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"},P9={properties:{subject:"Subject",assertions:"Assertions",where:C("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function tp(e,t){let r=ri.flatMap(o=>{let i=oo(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=zm("rootRedoclyConfigSchema",e);return{...E9,ConfigRoot:o9(n),ConfigApisProperties:s9(n),Subject:x9([...r,...Kv]),...n,[et.ScorecardClassicLevel]:S9(n)}}var E9={ConfigurableRule:P9,ConfigApis:i9,ConfigGovernance:ta,ConfigHTTP:a9,Client:c9,ClientPagination:p9,ClientPaginationRule:WS,Where:_9,BuiltinRule:u9,CustomRule:d9,BuiltinDecorator:m9,CustomDecorator:h9,BuiltinPreprocessor:g9,CustomPreprocessor:b9,Schema:v9,Rules:l9,Decorators:f9,Preprocessors:y9,Assertions:w9},{theme:sZ,...$9}=ti.properties,A9={...ti,properties:$9},QS=tp(A9),En=Qr(QS);var T9=e=>({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:{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(){e.parameters.total=e.parameters.items.size,e.refs.total=e.refs.items.size,e.links.total=e.links.items.size,e.tags.total=e.tags.items.size}}}),R9=e=>({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){t.name&&e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e.parameters.total=e.parameters.items.size,e.refs.total=e.refs.items.size,e.tags.total=e.tags.items.size}}}),O9=e=>({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){t.name&&e.parameters.items.add(t.name)}}}},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(){e.parameters.total=e.parameters.items.size,e.refs.total=e.refs.items.size,e.tags.total=e.tags.items.size}}});import*as ow from"node:fs";import*as nn from"node:path";var wi="redocly.yaml",JS={extends:["recommended"]},ra=".redocly.lint-ignore.yaml",XS=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
104
|
+
# See https://redocly.com/docs/cli/ for more information.
|
|
105
|
+
`,rp="configBundler",np="pluginsCollector",ZS=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function op(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function na(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function ew(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],p=e[o-1][n];if(!c||!p)return!1;i=c,s=p}if(typeof i=="string"&&typeof s=="string"&&(i=i.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?i>=s:i<=s))return!1}return!0}var ip=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),sp=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains"]),jr={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||O(e))return[];let o=Array.isArray(e)?e:[e],i=ro(t);return o.map(s=>!i?.test(s)&&{message:`"${s}" should match a regex ${t}`,location:De(e)?r:O(n)?r.child(s).key():r.key()}).filter(Ge)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||O(e))return[];let o=Array.isArray(e)?e:[e],i=ro(t);return o.map(s=>i?.test(s)&&{message:`"${s}" should not match a regex ${t}`,location:De(e)?r:O(n)?r.child(s).key():r.key()}).filter(Ge)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||O(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`"${o}" should be one of the predefined values`,location:De(e)?r:r.child(o).key()}).filter(Ge),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(Ge),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||O(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(Ge)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||O(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`"${o}" is disallowed`,location:De(e)?r:r.child(o).key()}).filter(Ge),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`"${n}" should be equal ${t} `,location:De(e)?r:r.child(n).key()}).filter(Ge):e!==t?[{message:`${e} should be equal ${t}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{let n=typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0;return(t?!n:n)?[]:[{message:t?"Should not be empty":"Should be empty",location:r}]},minLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length>=t?[]:[{message:`Should have at least ${t} characters`,location:r}],maxLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length<=t?[]:[{message:`Should have at most ${t} characters`,location:r}],casing:(e,t,{baseLocation:r})=>{if(typeof e>"u"||O(e))return[];let n=Array.isArray(e)?e:[e],o={camelCase:/^[a-z][a-zA-Z0-9]*$/g,"kebab-case":/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/g,snake_case:/^([a-z][a-z0-9]*)(_[a-z0-9]+)*$/g,PascalCase:/^[A-Z][a-zA-Z0-9]+$/g,MACRO_CASE:/^([A-Z][A-Z0-9]*)(_[A-Z0-9]+)*$/g,"COBOL-CASE":/^([A-Z][A-Z0-9]*)(-[A-Z0-9]+)*$/g,flatcase:/^[a-z][a-z0-9]+$/g};return n.map(i=>!i.match(o[t])&&{message:`"${i}" should use ${t}`,location:De(e)?r:r.child(i).key()}).filter(Ge)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,o=t.property;return Array.isArray(e)&&e.length>0&&O(e[0])&&!o?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||ew(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})=>na(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(na(e,t)>0?na(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>na(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=ro(t);return o&&i?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:o?r:r.key()}]}};function tw(e){return(t,r,n)=>e.call(null,t,r,n)}function nw(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&O(i)){let s=i;if(t){rw(t,s);for(let a of s.where||[])rw(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function rw(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}.`);jr[r]=tw(i.assertions[o])}}var _i=class e{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=op(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>nw({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({...Sc(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!O(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?nn.dirname(this.configPath):process.cwd(),n=pe(t)?t:nn.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?nn.dirname(this.configPath):process.cwd(),r=nn.join(t,ra),n={};for(let o of Object.keys(this.ignore)){let i=pe(o)?o:rd(nn.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}ow.writeFileSync(r,XS+nc(n))}addIgnore(t){let r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;let o=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(o[t.ruleId]=o[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){let r=t.location[0];if(r.pointer===void 0)return t;let o=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],i=o&&o.has(r.pointer);return i?{...t,ignored:i}:t}extendTypes(t,r){let n=t;for(let o of this.plugins)if(o.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!o.typeExtension.oas3)continue;n=o.typeExtension.oas3(n,r);break;case"oas2":if(!o.typeExtension.oas2)continue;n=o.typeExtension.oas2(n,r);break;case"async2":if(!o.typeExtension.async2)continue;n=o.typeExtension.async2(n,r);break;case"async3":if(!o.typeExtension.async3)continue;n=o.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!o.typeExtension.arazzo1)continue;n=o.typeExtension.arazzo1(n,r);break;case"overlay1":if(!o.typeExtension.overlay1)continue;n=o.typeExtension.overlay1(n,r);break;case"openrpc1":if(!o.typeExtension.openrpc1)continue;n=o.typeExtension.openrpc1(n,r);break;case"graphql":break;default:throw new Error("Not implemented")}return n}getRuleSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.rules[r][t]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.preprocessors[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){let t=[],r=[],n=[];for(let o of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[o]).filter(i=>!this._usedRules.has(i))),r.push(...Object.keys(this.decorators[o]).filter(i=>!this._usedRules.has(i))),n.push(...Object.keys(this.preprocessors[o]).filter(i=>!this._usedRules.has(i)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas3&&r.push(n.preprocessors.oas3)),this.plugins.forEach(n=>n.rules?.oas3&&r.push(n.rules.oas3)),this.plugins.forEach(n=>n.decorators?.oas3&&r.push(n.decorators.oas3)),r}case"oas2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas2&&r.push(n.preprocessors.oas2)),this.plugins.forEach(n=>n.rules?.oas2&&r.push(n.rules.oas2)),this.plugins.forEach(n=>n.decorators?.oas2&&r.push(n.decorators.oas2)),r}case"async2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async2&&r.push(n.preprocessors.async2)),this.plugins.forEach(n=>n.rules?.async2&&r.push(n.rules.async2)),this.plugins.forEach(n=>n.decorators?.async2&&r.push(n.decorators.async2)),r}case"async3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async3&&r.push(n.preprocessors.async3)),this.plugins.forEach(n=>n.rules?.async3&&r.push(n.rules.async3)),this.plugins.forEach(n=>n.decorators?.async3&&r.push(n.decorators.async3)),r}case"arazzo1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1&&r.push(n.preprocessors.arazzo1)),this.plugins.forEach(n=>n.rules?.arazzo1&&r.push(n.rules.arazzo1)),this.plugins.forEach(n=>n.decorators?.arazzo1&&r.push(n.decorators.arazzo1)),r}case"arazzo1_1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1_1&&r.push(n.preprocessors.arazzo1_1)),this.plugins.forEach(n=>n.rules?.arazzo1_1&&r.push(n.rules.arazzo1_1)),this.plugins.forEach(n=>n.decorators?.arazzo1_1&&r.push(n.decorators.arazzo1_1)),r}case"overlay1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.overlay1&&r.push(n.preprocessors.overlay1)),this.plugins.forEach(n=>n.rules?.overlay1&&r.push(n.rules.overlay1)),this.plugins.forEach(n=>n.decorators?.overlay1&&r.push(n.decorators.overlay1)),r}case"openrpc1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.openrpc1&&r.push(n.preprocessors.openrpc1)),this.plugins.forEach(n=>n.rules?.openrpc1&&r.push(n.rules.openrpc1)),this.plugins.forEach(n=>n.decorators?.openrpc1&&r.push(n.decorators.openrpc1)),r}case"graphql":{let r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(let r of t||[])for(let n of ri)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 ri)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of ri)this.decorators[n][r]&&(this.decorators[n][r]="off")}};var iw={};var sw={};var aw={};function ap(e){return Array.isArray(e)&&e.length===0}function cp(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(F(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(O(e))for(let s of Object.keys(e)){if(F(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&&(Ut(e)||ap(e))&&delete n[o]}function $n(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=cw(t),e=cw(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function cw(e){return Array.isArray(e)?e:[e]}var k9="any",pp=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||k9;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 l of s){let u=F(a[l])?c.resolve(a[l]).node:a[l];if(O(u)){let m=u[e];$n(m,t,o)||delete a[l]}}s.some(l=>a[l])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];$n(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]&&!$n(s?.[e],t,o);return{any:{enter:(s,a)=>{cp(s,a,i)}}}};var I9="any",lp=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||I9;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 l of s){let u=F(a[l])?c.resolve(a[l]).node:a[l];if(O(u)){let m=u[e];$n(m,t,o)&&delete a[l]}}s.some(l=>a[l])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];$n(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>$n(s?.[e],t,o);return{any:{enter:(s,a)=>{cp(s,a,i)}}}};import*as up from"node:fs";import*as dp from"node:path";function Fm(e){let t=up.readFileSync(e,"utf-8");return to(t)}function on(e,t){return pe(e)||t===void 0?e:dp.resolve(dp.dirname(t),e)}function Pi(e){return up.readFileSync(e,"utf-8")}var fp=({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=Pi(on(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
|
|
106
|
+
${i.message}`,location:n.child("description")})}}}});var mp=e=>({Info:{leave(t){if(!O(e))throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});var hp=({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=Pi(on(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
|
|
107
|
+
${s.message}`,location:n.child("operationId").key()})}}}});var C9="x-internal",yp=({internalFlagProperty:e=C9})=>{function t(n,o,i){let{parent:s,key:a}=o,c=!1;if(Array.isArray(n))for(let p=0;p<n.length;p++){if(F(n[p])&&o.resolve(n[p]).node?.[e]){if(O(s.discriminator?.mapping))for(let u in s.discriminator.mapping)i?.[u]===n[p].$ref&&delete s.discriminator.mapping[u];n.splice(p,1),c=!0,p--}n[p]?.[e]&&(n.splice(p,1),c=!0,p--)}else if(O(n))for(let p of Object.keys(n)){if(F(n[p])){let l=o.resolve(n[p]);O(l.node)&&l.node?.[e]&&(delete n[p],c=!0)}O(n[p])&&n[p]?.[e]&&(delete n[p],c=!0)}c&&(Ut(n)||ap(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 gp=({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=Pi(on(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
108
|
+
${i.message}`})}}}});var q9=["definitions","parameters","responses","securityDefinitions"],bp=()=>{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]=mn(o).pointer;if(!(!i||!s)&&q9.includes(i))return`${i}/${s}`}function n(o,i=new Set){let s=i.size;for(let[a,{usedIn:c,name:p,componentType:l}]of e)!c.some(m=>m!==a&&!i.has(m))&&l&&(i.add(a),delete o[l][p],e.delete(a),Ut(o[l])&&delete o[l]);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 p=r(i.pointer)??i.pointer,l=e.get(c);l?l.usedIn.push(p):e.set(c,{usedIn:[p],name:a.toString()})}}},Root:{leave(o,i){let s=i.getVisitorData();s.removedCount=n(o)}},NamedSchemas:{Schema(o,{key:i}){o.allOf||t("definitions",i.toString())}},NamedParameters:{Parameter(o,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(o,{key:i}){t("responses",i.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{key:i}){t("securityDefinitions",i.toString())}},SecurityRequirement(o){for(let i of Object.keys(o)){let s=`securityDefinitions/${i}`,a=e.get(s);a?a.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:i})}}}};var pw={"operation-description-override":hp,"tag-description-override":gp,"info-description-override":fp,"info-override":mp,"remove-x-internal":yp,"filter-in":pp,"filter-out":lp,"remove-unused-components":bp};var uw=({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=lw(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:Fm(on(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=lw(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:Fm(on(a,r.config?.configPath))}}),t.requestBody=i}}}}});function lw(e,t){if(!F(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function dw(e,t){return t in e}function fw(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=mn(e).pointer;if(!(!r||!n))return`${r}/${n}`}var vp=()=>{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:p,referencesDiscriminator:l}]of e)if(!(a.some(m=>m!==s&&!o.has(m))||l)&&p&&n.components&&dw(n.components,p)){o.add(s);let m=n.components[p];delete m[c],e.delete(s),Ut(m)&&delete n.components[p]}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=fw(n.$ref);if(!a)return;let c=fw(o.pointer)??o.pointer,p=e.get(a);p?p.usedIn.push(c):e.set(a,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,o){let i=o.getVisitorData();i.removedCount=r(n),Ut(n.components)&&delete n.components}},NamedSchemas:{Schema(n,o){let i=n.allOf?.some(s=>F(s)&&o.resolve(s)?.node?.discriminator);t("schemas",o.key.toString(),i)}},NamedParameters:{Parameter(n,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(n,{key:o}){t("responses",o.toString())}},NamedExamples:{Example(n,{key:o}){t("examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{key:o}){t("requestBodies",o.toString())}},NamedHeaders:{Header(n,{key:o}){t("headers",o.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:o}){t("mediaTypes",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:o}){t("securitySchemes",o.toString())}},SecurityRequirement(n){for(let o of Object.keys(n)){let i=`securitySchemes/${o}`,s=e.get(i);s?s.usedIn.push("SecurityRequirement"):e.set(i,{usedIn:["SecurityRequirement"],name:o})}}}};var mw={"operation-description-override":hp,"tag-description-override":gp,"info-description-override":fp,"info-override":mp,"remove-x-internal":yp,"filter-in":pp,"filter-out":lp,"media-type-examples-override":uw,"remove-unused-components":vp};var hw={};var yw={};var gw=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;let o=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(let i of e)o.includes(i?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${o.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});var Vm={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function bw(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&ro(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(Ge)}function xw(e){let t=gs(jr).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:ip.has(o),runsOnValues:sp.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 Sw({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function ww(e,t,r){let n=Sw(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push(vw({assert:i,ctx:r,assertionProperty:s}));else o.push(vw({assert:i,ctx:r}));return o.flat()}function _w(e,t){let r=bw(e.subject),n=r.length?(c,p)=>!r.every(l=>l(p)):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 p=a[c];if(!De(p.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);let l=bw(p.subject),u=xw(p),m=(f,h,y)=>!l.every(g=>g(h))||!!ww(p,u,{...y,node:f}).length,d={...(l.length||u.length)&&{skip:m}};p.subject.type===e.subject.type&&c===a.length-1?o[e.subject.type]={enter:t,...d.skip&&{skip:d.skip}||n&&{skip:(f,h,y)=>!!(d.skip?.(f,h,y)||n?.(f,h))}}:i=i[p.subject?.type]=d}return i[e.subject.type]=o[e.subject.type],s}function Pw(e,t){return(r,n)=>{let o=Sw(t),i=`${G.blue(e)} failed because the ${G.blue(t.subject.type)} ${G.blue(o.join(", "))} didn't meet the assertions: ${Vm.problems}`.replace(/ +/g," "),s=ww(t,xw(t),{...n,node:r});if(s.length)for(let a of N9(s)){let c=t.message||i,l={problems:Bm(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:Hm(n.location.source.absoluteRef)};n.report({message:Km(c,l),location:j9(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function N9(e){let t={};for(let r of e){if(!r.location)continue;let n=r.location.pointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function j9(e){return e.length?e[0].location:void 0}function Bm(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
109
|
+
- ${t.message??""}`).join("")}function Hm(e){return pe(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function Km(e,t){let r=e;for(let n of Object.keys(Vm)){let o=Vm[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function vw({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=F(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return jr[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return jr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var St=e=>{let t=[],r=Object.values(e).filter(n=>O(n));for(let[n,o]of r.entries()){if(!De(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);let i=Pw(o.assertionId,o),s=_w(o,i);t.push(s)}return t};var Aw=Tr($w(),1);var oa=(e,t,r)=>{if(F(e)){let n=t.resolve(e,r);return n?{schema:n.node,location:n.location?.source.absoluteRef}:{schema:void 0,location:r}}return{schema:e,location:r}};function Ei(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function $i(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return O(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function ia(e,t){return`${e} object should contain \`${t}\` field.`}function M9(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function Tw(e,t){return`${e} object \`${t}\` must be non-empty string.`}function It({fieldName:e,value:t,ctx:r,reference:n}){O(t)&&(t[e]===void 0?r.report({message:ia(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:Tw(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function Rw({fieldNames:e,value:t,ctx:r,reference:n}){if(O(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:M9(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:Tw(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function vo(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,Aw.default)(e,t[n]);o<4&&r.push({distance:o,variant:t[n]})}return r.sort((n,o)=>n.distance-o.distance),r.map(n=>n.variant)}function xp(e){if(O(e)){if(Lt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(Lt(e.value))return{value:e.value,field:"value"}}}function An({example:e,schema:t,options:r,reference:n}){let{location:o,ctx:i,validator:s,allowAdditionalProperties:a,ajvContext:c}=r,{resolve:p,location:l,report:u,specVersion:m}=i;try{let{valid:d,errors:f}=s.validate(e,t,{schemaLoc:l.child("schema"),instancePath:o.pointer,resolve:p,allowAdditionalProperties:a,ajvContext:c,specVersion:m});if(!d)for(let h of f)u({message:`Example value must conform to the schema: ${h.message}.`,location:{...new sr(o.source,h.instancePath),reportOnKey:h.keyword==="unevaluatedProperties"||h.keyword==="additionalProperties"},from:l,suggest:h.suggest,reference:n})}catch(d){if(d.message==="discriminator: requires oneOf or anyOf composite keyword")return;u({message:`Example validation errored: ${d.message}.`,location:l.child("schema"),from:l,reference:n})}}var D9=10;function Gm(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>D9?`\`${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:vo(t,e)})}}function Ai({responseCodes:e,codeRange:t,report:r,reference:n}){let o=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(s=>t==="2XX"&&s==="default"||o.test(s))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function sa(e,t){return t?e.name.toLowerCase():e.name}var Mr=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){let n=e.enum.filter(o=>!$i(o,e.type,e.nullable));for(let o of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Ei(o)}".`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){let n={};for(let o of e.enum){n[o]=[];for(let i of e.type)$i(o,i,e.nullable)||n[o].push(i);n[o].length!==e.type.length&&delete n[o]}for(let o of Object.keys(n))t({message:`Enum value \`${o}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}});var Tn=()=>({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"})}});function Ft(e,t){return e.hasOwnProperty(t)?e[t]:void 0}var Dr=()=>{let e=[];return{Schema:{leave(t){e.pop()},enter(t,r){if(e.push(t),!t.required)return;let n=(a,c,p,l)=>{let{schema:u,location:m}=oa(a,r,l);return!u||p.has(u)?!1:(p.add(u),!!(u.properties&&Ft(u.properties,c)!==void 0||u.allOf?.some(d=>n(d,c,p,m))||oc(u.anyOf)&&u.anyOf.every(d=>n(d,c,new Set(p),m))||oc(u.oneOf)&&u.oneOf.every(d=>n(d,c,new Set(p),m))))},o=(a,c)=>{let p=l=>oa(l,r).schema===c;return!!(a.allOf?.some(p)||a.anyOf?.some(p)||a.oneOf?.some(p))},i=(a,c)=>{if(a<0)return;let p=e[a];return o(p,c)?i(a-1,p)??p:void 0},s=i(e.length-2,t);for(let[a,c]of t.required.entries())!n(t,c,new Set)&&!n(s,c,new Set)&&r.report({message:`Required property '${c}' is not defined.`,location:r.location.child(["required",a]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var Lr=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}});var L9=/\((\d+):(\d+)\)$/,Ur=class e extends Error{originalError;source;col;line;constructor(t,r){super(t.message.split(`
|
|
110
|
+
`)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,o]=this.message.match(L9)||[];this.line=parseInt(n,10),this.col=parseInt(o,10)}};var ot=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&xo(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(let o of Object.keys(e)){let i=r({$ref:e[o]});if(i.node!==void 0)return;xo(i,t,n.child(o))}}});function xo(e,t,r){let n=e.error;n instanceof Ur&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let o=e.error?.message;t({location:r,message:`Can't resolve $ref${o?": "+o:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}var it=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=Ei(e),p=o!==n?o:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:p}),a());return}else if(c!=="object"){r!==cr&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:p}),a();return}let l=typeof r.required=="function"?r.required(e,i):r.required;for(let d of l||[])e.hasOwnProperty(d)||t({message:`The field \`${d}\` must be present on this level.`,from:p,location:[{reportOnKey:!0}]});let u=r.allowed?.(e);if(u&&O(e))for(let d in e)u.includes(d)||r.extensionsPrefix&&d.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(d)||t({message:`The field \`${d}\` is not allowed here.`,from:p,location:n.child([d]).key()});let m=r.requiredOneOf||null;if(m){let d=!1;for(let f of m||[])e.hasOwnProperty(f)&&(d=!0);d||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:p,location:[{reportOnKey:!0}]})}for(let d of Object.keys(e)){let f=n.child([d]),h=e[d],y=Ft(r.properties,d);if(y===void 0&&(y=r.additionalProperties),typeof y=="function"&&(y=y(h,d)),pr(y))continue;let g=y,v=Ei(h);if(g===void 0){if(d.startsWith("x-"))continue;t({message:`Property \`${d}\` is not expected here.`,suggest:vo(d,Object.keys(r.properties)),from:p,location:f.key()});continue}if(g!==null){if(g.resolvable!==!1&&F(h)&&(h=s(h).node),g.items&&g.items?.enum&&Array.isArray(h))for(let b=0;b<h.length;b++)Gm(g.items?.enum,h[b],d,p,{report:t,location:n.child([d,b])},g.items?.documentationLink);if(g.enum)Gm(g.enum,h,d,p,{report:t,location:n.child([d])},g.documentationLink);else if(g.type&&!$i(h,g.type,!1))t({message:`Expected type \`${g.type}\` but got \`${v}\`.`,from:p,location:f}),a();else if(v==="array"&&g.items?.type){let b=g.items?.type;for(let S=0;S<h.length;S++){let w=h[S];$i(w,b,!1)||t({message:`Expected type \`${b}\` but got \`${Ei(w)}\`.`,from:p,location:f.child([S])})}}typeof g.minimum=="number"&&g.minimum>e[d]&&t({message:`The value of the ${d} field must be greater than or equal to ${g.minimum}`,from:p,location:n.child([d])})}}}});var Ow=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||O(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 kw=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=Ft(o,"scheme"),s=Ft(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 Iw=()=>({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 Cw=()=>{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 U9={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function qw(e,{report:t,location:r}){if(e)for(let n of e){if("schemeName"in n)continue;let{scheme:o,values:i}=n,s=o?.type==="http"?o.scheme:o?.type;if(s==="mutualTLS"){Y.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let a=U9[s];if(a)for(let c of a)(!i||!(c in i))&&t({message:`The \`${c}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}var Nw=()=>({Step:{enter(e,t){qw(e?.["x-security"],t)}},Workflow:{enter(e,t){qw(e?.["x-security"],t)}}});var jw=()=>({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 Mw=()=>{let e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:p,definedWorkflowOutputs:l}){let u=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,m;for(;(m=u.exec(s))!==null;){let[d,f,h]=m,y=l.get(f);y?y.includes(h)||a({message:`Output key "${h}" is not defined in workflow "${f}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Workflow "${f}" referenced in runtime expression "${d}" is not defined or has no outputs.`,location:c.child(p)})}}function o({value:s,report:a,location:c,path:p,definedStepOutputs:l}){let u=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,m;for(;(m=u.exec(s))!==null;){let[d,f,h]=m,y=l.get(f);y?y.includes(h)||a({message:`Output key "${h}" is not defined in step "${f}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Step "${f}" referenced in runtime expression "${d}" is not defined or has no outputs.`,location:c.child(p)})}}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(O(s)||Array.isArray(s))for(let[p,l]of Object.entries(s))i(l,a,[...c,p])}return{Step:{enter(s,{report:a,location:c}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:a,location:c}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,a){r.push(()=>{i(s,a)})}},RequestBody:{enter(s,a){r.push(()=>{i(s,a)})}},CriterionObject:{enter(s,a){r.push(()=>{i(s.condition,a)})}},Outputs:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedSecurity:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedOperation:{enter(s,a){r.push(()=>{i(s,a)})}},Root:{leave(){for(let s of r)s()}}}};var Dw=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.has(o?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.add(o?.name??o?.reference)}}});var Lw=()=>{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 Uw=()=>{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 zw=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var z9=["x-operation","operationId","operationPath","channelPath","workflowId"],Fw=()=>({Step:{enter(e,{report:t,location:r}){let n=z9.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 Vw=()=>({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 Bw=()=>({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 Hw=()=>({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 Kw=()=>{let e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(let o of n)t.add(o.name)}},Workflows:{enter(n){for(let o of n)r.add(o.workflowId)}},Workflow:{leave(n,{report:o,location:i}){if(n.dependsOn)for(let s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];t.has(a)||o({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&o({message:`Workflow ${s} must be defined in workflows.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(s)&&o({message:"Every workflow in dependsOn must be unique.",location:i.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(s)}}}}};var Gw=()=>{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 Yw={assertions:St,"criteria-unique":jw,"no-criteria-xpath":Ow,"no-enum-type-mismatch":Mr,"no-mixed-number-range-constraints":Tn,"no-required-schema-properties-undefined":Dr,"no-schema-type-mismatch":Lr,"no-unresolved-refs":ot,"no-x-security-both-scheme-and-scheme-name":kw,"no-x-security-scheme-name-without-openapi":Iw,"outputs-defined":Mw,"parameters-unique":Dw,"requestBody-replacements-unique":Lw,"sourceDescription-name-unique":Uw,"sourceDescription-type":gw,"sourceDescriptions-not-empty":zw,"spec-step-mutually-exclusive-fields":Fw,"step-onFailure-unique":Vw,"step-onSuccess-unique":Bw,"stepId-unique":Hw,struct:it,"workflow-dependsOn":Kw,"workflowId-unique":Gw,"x-security-scheme-name-reference":Cw,"x-security-scheme-required-values":Nw},Ww={};var Zt=()=>({Info(e,{report:t,location:r}){e.contact||t({message:ia("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var Qw=/^1\.0\.\d+(-.+)?$/;function aa(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 sn(e){if(!O(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"&&Qw.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var Rn=()=>{let e;return{Root:{enter(t){e=sn(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?Rw({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):It({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var On=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=sa(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}};var kn=()=>({Root:{PathItem:{Operation(e,t){It({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function F9(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=F(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=F(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var Ti=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 p=0;p<s.length;p++){let l=s[p];c.definedScopes.includes(l)||o({message:`The "${l}" scope is not defined in the "${i}" security scheme.`,location:a.child([p]),suggest:vo(l,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"?F9(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 In=()=>({Tag(e,t){It({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Cn=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)sa(t.tags[o],e)>sa(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 Jw=()=>({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 Xw=()=>({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 Zw={struct:it,"no-unresolved-refs":ot,assertions:St,"info-contact":Zt,"info-license-strict":Rn,"operation-operationId":kn,"channels-kebab-case":Jw,"no-channel-trailing-slash":Xw,"tag-description":In,"tags-alphabetical":Cn,"no-duplicated-tag-names":On,"no-required-schema-properties-undefined":Dr,"no-enum-type-mismatch":Mr,"no-mixed-number-range-constraints":Tn,"no-schema-type-mismatch":Lr,"security-scopes-defined":Ti},e_={};var t_=()=>({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 r_=()=>({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"})}});function V9(e,t,r){if(!e.flows)return[];let{node:n,location:o}=F(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=F(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var n_=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=F(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"?V9(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 p=a[c];s.includes(p)||n({message:`The "${p}" scope is not defined in the available scopes of the security scheme flows.`,location:i.child(["scopes",c]),suggest:vo(p,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var o_={struct:it,"no-unresolved-refs":ot,assertions:St,"info-contact":Zt,"info-license-strict":Rn,"operation-operationId":kn,"channels-kebab-case":t_,"no-channel-trailing-slash":r_,"tag-description":In,"tags-alphabetical":Cn,"no-duplicated-tag-names":On,"no-required-schema-properties-undefined":Dr,"no-enum-type-mismatch":Mr,"no-mixed-number-range-constraints":Tn,"no-schema-type-mismatch":Lr,"security-scopes-defined":n_},i_={};function a_(e){return gs(jr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:ip.has(t),runsOnValues:sp.has(t)}))}var c_=e=>{let t=Object.values(e).filter(O),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;let i=a_(n),s=B9(n);r.push({[o]:(a,c)=>{H9(a,c,s)&&K9(a,c,n,i)}})}return r};function B9(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!De(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);return{kind:t.subject.type,definition:t,assertsToApply:a_(t)}}):[]}function H9(e,t,r){let n=r,o=r.at(-1);if(o&&o.kind===e.kind){if(!s_(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&&s_(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function s_(e,t,r){let{value:n}=p_(e,t.definition.subject.property),o=new sr(r.source,"#/");return t.assertsToApply.every(i=>jr[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function K9(e,t,r,n){let o=l_(r.subject.property),{value:i,locNode:s}=p_(e,r.subject.property),a=new sr(t.source,"#/"),c=n.flatMap(l=>jr[l.name](i,l.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let p=`${G.blue(r.assertionId)} failed because the ${G.blue(r.subject.type)} ${G.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:Km(r.message??p,{problems:Bm(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:Hm(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Ym(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 p_(e,t){let r=l_(t);if(r===void 0)return Ym(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>Ym(i).value),locNode:e};let o=Ym(n);return{value:o.value,locNode:G9(o.locNode)?o.locNode:e}}function G9(e){return O(e)&&"kind"in e}function l_(e){return Array.isArray(e)?e[0]:e}var Y9=["Query","Mutation","Subscription"];function W9(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var u_=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=l=>t.add(W9(l)),i=l=>e.set(l.name.value,l.name),s=l=>{for(let u of l.interfaces??[])o(u);for(let u of l.fields??[]){o(u.type);for(let m of u.arguments??[])o(m.type)}},a=l=>{for(let u of l.types??[])o(u)},c=l=>{for(let u of l.fields??[])o(u.type)},p=l=>{for(let u of l.operationTypes??[])r.add(u.type.name.value)};return{SchemaDefinition:l=>{n=!0,p(l)},SchemaExtension:p,DirectiveDefinition:l=>{for(let u of l.arguments??[])o(u.type)},ObjectTypeDefinition:l=>{i(l),s(l)},ObjectTypeExtension:s,InterfaceTypeDefinition:l=>{i(l),s(l)},InterfaceTypeExtension:s,UnionTypeDefinition:l=>{i(l),a(l)},UnionTypeExtension:a,InputObjectTypeDefinition:l=>{i(l),c(l)},InputObjectTypeExtension:c,EnumTypeDefinition:i,ScalarTypeDefinition:i,Document:{leave:(l,u)=>{if(!n)for(let m of Y9)e.has(m)&&r.add(m);if(r.size!==0)for(let[m,d]of e)t.has(m)||r.has(m)||u.report({message:`Type \`${m}\` is declared but never used.`,node:d})}}}};var Ri=Tr(XT(),1),d_=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,Ri.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){Q9(n,t);return}for(let n of(0,Ri.validateSchema)(r))f_(n,t)}}});function Q9(e,t){if(e instanceof Ri.GraphQLError)f_(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function f_(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 m_=()=>{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 h_={struct:d_,assertions:c_,"no-unused-types":u_,"type-description":m_};var Oi=()=>({Info(e,{report:t}){e.license||t({message:ia("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var Sp=()=>({Paths(e,{report:t,location:r}){let n=[];for(let o of Object.keys(e)){let i=n.find(s=>J9(s,o));i&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${i}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(o)}}});function J9(e,t){let r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let o=0,i=0,s=!0;for(let a=0;a<r.length;a++){let c=r[a].match(/^{.+?}$/),p=n[a].match(/^{.+?}$/);if(c||p){c&&o++,p&&i++;continue}else r[a]!==n[a]&&(s=!1)}return s&&o===i}function wp(e){return e.startsWith("{")&&e.endsWith("}")}function y_(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(Ge).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 X9=["get","head","post","put","patch","delete","options","trace"],_p=({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||wp(c))continue;let p=l=>e?y_(c).has(l):c.toLocaleLowerCase().includes(l);for(let l of X9)p(l)&&o({message:`path \`${s}\` should not contain http verb ${l}`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}});var Pp=()=>({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 JE=Tr(Um(),1),XE=Tr(P_(),1),ZE=Tr(WE(),1);function QE(e){return e==="draft4"?"id":"$id"}function CY(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var Fn=class{instances={};validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:p}=n,l=CY(p),u=this.getValidator(r,o,s,a,l);if(!u)return{valid:!0,errors:[]};let m={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,m),errors:(u.errors||[]).map(f)};function f(h){let y=h.message,g=h.keyword==="enum"?h.params.allowedValues:void 0;g&&(y+=` ${g.map(S=>`"${S}"`).join(", ")}`),h.keyword==="type"&&(y=`type ${y}`);let v=h.instancePath.substring(i.length+1),b=v.substring(v.lastIndexOf("/")+1);if(b&&(y=`\`${b}\` property ${y}`),h.keyword==="additionalProperties"||h.keyword==="unevaluatedProperties"){let S=h.params.additionalProperty||h.params.unevaluatedProperty;y=`${y} \`${S}\``,h.instancePath+="/"+Rr(S)}return{...h,message:y,suggest:g}}}getAjv(t,r){if(!this.instances[r]){let n=QE(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]),p=t({$ref:s},c);return!p||!p.location?!1:{[n]:encodeURI(p.location.source.absoluteRef)+"#"+a,...p.node}}};this.instances[r]=r==="2020"?new JE.default(o):new XE.default(o),(0,ZE.default)(this.instances[r])}return this.instances[r]}getValidator(t,r,n,o,i){let s=this.getAjv(n,i),a=encodeURI(r.absolutePointer),c=QE(i);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}};var nl=e=>{let t=new Fn;return{Parameter:{leave(r,n){if(Lt(r.example)&&An({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"}),O(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=xp(i);s&&An({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 ol=e=>{let t=new Fn;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)An({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(Lt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;An({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 il=()=>({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 sl=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Ai({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Ai({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}});var al=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Ai({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Ai({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}});var cl=()=>({Operation(e,t){It({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var pl=()=>{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 qY=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,ll=()=>({Operation(e,{report:t,location:r}){e.operationId&&!qY.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 ul=()=>{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.
|
|
111
|
+
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 dl=()=>({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 fl=()=>({Operation(e,t){It({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var ml=()=>{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 hl=()=>({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 yl=()=>({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 NY=["get","head","post","put","patch","delete","options","query","trace"],gl=e=>{let t=e&&e.order||NY;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 bl=()=>({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 jY=/\{([a-zA-Z0-9_.-]+)\}+/g,MY=2,Wi=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){e$(e,n)},leave(){DY(e)},Parameter(r,{report:n,location:o,rawLocation:i}){t$({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:r$(e,new Set)}}},e$=(e,t)=>{e.current={path:t,templateParams:LY(t),definedParams:new Set}},DY=e=>{e.current=null},t$=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),n$({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},r$=(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>=MY)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,e$(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:p}){t$({parameter:s,pathContext:e,report:a,location:c,rawLocation:p})},get Operation(){return r$(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||zY({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}){UY(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),n$({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},LY=e=>new Set(Array.from(e.matchAll(jY)).map(t=>t[1])),UY=(e,t)=>{O(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},n$=({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"})}},zY=({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 o$=Tr(Bu(),1);var vl=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 p of c)r&&r.includes(p)||!wp(p)&&o$.default.isSingular(p)&&o({message:`path segment \`${p}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}};var xl=()=>({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 Sl=()=>{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 un(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var wl=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[un(i)]||t[un(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 i$=["string","integer","number","boolean","null"],_l=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(Ft(e,i)).node;!s||!FY(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 FY(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>i$.includes(t)):i$.includes(e.type)}var Pl=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 p of c.from)s({message:`There is no \`${a}\` security scheme defined.`,location:p.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),p=s.child([a]);c?c.from.push(p):t.set(a,{from:[p]})}},PathItem:{enter(i,{key:s}){o=s},Operation(i,{location:s,key:a}){let c=e.exceptions?.some(p=>p.path===o&&(!p.methods||p.methods?.some(l=>l.toLowerCase()===a)));!i?.security&&!c&&(n=!1,r.push(s))}}}};var El=()=>{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)&&F(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 s$=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 Qi({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 Vn({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 a$=({allowedValues:e})=>({Root(t,r){Qi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){Qi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var c$=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[un(r)]||t[un(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 p$=({allowedValues:e})=>({Root(t,r){Qi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){Qi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var l$={struct:it,"no-invalid-schema-examples":ol,"no-invalid-parameter-examples":nl,"info-contact":Zt,"info-license":Oi,"info-license-strict":Rn,"tag-description":In,"tags-alphabetical":Cn,"paths-kebab-case":xl,"no-enum-type-mismatch":Mr,"boolean-parameter-prefixes":s$,"no-path-trailing-slash":il,"operation-2xx-response":sl,"operation-4xx-response":al,assertions:St,"operation-operationId-unique":pl,"operation-parameters-unique":ul,"path-parameters-defined":Wi,"operation-tag-defined":ml,"path-declaration-must-exist":yl,"operation-operationId-url-safe":ll,"operation-operationId":kn,"operation-summary":fl,"operation-description":cl,"path-not-include-query":bl,"path-params-defined":Wi,"parameter-description":hl,"operation-singular-tag":dl,"security-defined":Pl,"security-scopes-defined":Ti,"no-unresolved-refs":ot,"no-identical-paths":Pp,"no-ambiguous-paths":Sp,"path-http-verbs-order":gl,"no-http-verbs-in-paths":_p,"request-mime-type":a$,"response-mime-type":p$,"path-segment-plural":vl,"response-contains-header":wl,"response-contains-property":c$,"scalar-property-missing-example":_l,"required-string-property-missing-min-length":Sl,"spec-strict-refs":El,"no-required-schema-properties-undefined":Dr,"no-schema-type-mismatch":Lr,"no-duplicated-tag-names":On},u$={};var d$=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=F(t.schema)?r.resolve(t.schema).node:t.schema;n&&VY(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 VY(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 f$=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"})}}}};function Ma(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}var Ly="Schema",Uy="Parameter",zy="Response",Fy="RequestBody",BY={[Ly]:"schemas",[Uy]:"parameters",[zy]:"responses",[Fy]:"requestBodies"},m$=e=>{let t=new Map,r=[];e.schemas!=="off"&&r.push(Ly),e.parameters!=="off"&&r.push(Uy),e.responses!=="off"&&r.push(zy),e.requestBodies!=="off"&&r.push(Fy);let n={ref:{leave(a,{type:c,resolve:p}){let l=c.name;if(r.includes(l)){let u=p(a);if(!u.location)return;s(l,u.location)}}},Root:{leave(a,c){t.forEach((p,l,u)=>{if(p.absolutePointers.size>1){let m=GY(l),d=HY(m.typeName),f=d?e[d]:null;for(let h of p.locations){let y=Array.from(p.absolutePointers).filter(v=>v!==h.absolutePointer.toString()).map(v=>`- ${v}`).join(`
|
|
112
|
+
`),g={message:`Component '${d}/${m.componentName}' is not unique. It is also defined at:
|
|
113
|
+
${y}`,location:h,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};f&&(g.forceSeverity=f),c.report(g)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(a,{location:c}){s(Ly,c)}}),e.responses!="off"&&(n.NamedResponses={Response(a,{location:c}){s(zy,c)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(a,{location:c}){s(Uy,c)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(a,{location:c}){s(Fy,c)}}),n;function o(a){let c=a.split("/").slice(-1)[0];return Ma(c)?c.slice(0,c.lastIndexOf(".")):c}function i(a,c,p){let l=KY(a,c),u=t.get(l)??{absolutePointers:new Set,locations:[]},m=p.absolutePointer.toString();u.absolutePointers.has(m)||(u.absolutePointers.add(m),u.locations.push(p)),t.set(l,u)}function s(a,c){let p=o(c.absolutePointer.toString());i(a,p,c)}};function HY(e){return BY[e]??null}function KY(e,t){return`${e}/${t}`}function GY(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var h$=()=>({Root(e,{report:t,location:r}){if(!e.hasOwnProperty("servers")){t({message:"Servers must be present.",location:r.child(["openapi"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"});return}(!Array.isArray(e.servers)||e.servers.length===0)&&t({message:"Servers must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"})}});var y$=()=>({Example(e,{report:t,location:r}){e.value&&e.externalValue&&t({message:"Example object can have either `value` or `externalValue` fields.",location:r.child(["value"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-example-value-and-externalValue"})}});var g$=e=>{let t=new Fn,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(Lt(i.example))p(i.example,a.child("example"));else if(O(i.examples))for(let l of Object.keys(i.examples))p(i.examples[l],a.child(["examples",l]),!0);function p(l,u,m){if(F(l)){let f=c(l);if(!f.location)return;u=f.location,l=f.node}let d=l;if(m){let f=xp(l);if(!f)return;d=f.value,u=u.child(f.field)}An({example:d,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 b$=()=>({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 v$=()=>({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 S$=()=>({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=x$(o);i&&n.push(...i)}else{let o=x$(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 x$(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 w$=()=>({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 _$=()=>{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 p=s(o);if(!p.location)return;e.set(p.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(p=>F(p)&&a(p)?.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 P$=()=>({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 E$=()=>({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:"https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807"})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){It({fieldName:"schema",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807"})},SchemaProperties(e,t){It({fieldName:"type",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807"}),It({fieldName:"title",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807"})}}}});var $$=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Vn({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){Vn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Vn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var A$=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[un(r)]||t[un(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 T$=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Vn({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){Vn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Vn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var R$=()=>{let e=`^[${vc}]+$`;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 O$=()=>{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 p=oa(a,r,c);return!!(!p.schema||i.has(p.schema)||(i.add(p.schema),p.schema.required?.includes(n)||p.schema.allOf?.some(l=>s(l,p.location))||p.schema.oneOf?.every(l=>s(l,p.location))||p.schema.anyOf?.every(l=>s(l,p.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 k$=()=>({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 I$=()=>({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 C$=()=>{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 q$(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function N$(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 j$(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 M$=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,N$(q$(n.parameters||[]),o)},Parameter(n,o){j$(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+q$(n.parameters||[]);N$(i,o)},Parameter(n,o){j$(n,o.location,t,o)}}}}};var D$={struct:it,"info-contact":Zt,"info-license":Oi,"info-license-strict":Rn,"operation-2xx-response":sl,"operation-4xx-response":al,"operation-4xx-problem-details-rfc7807":E$,assertions:St,"operation-operationId-unique":pl,"operation-parameters-unique":ul,"operation-tag-defined":ml,"no-example-value-and-externalValue":y$,"no-mixed-number-range-constraints":Tn,"no-enum-type-mismatch":Mr,"no-path-trailing-slash":il,"no-empty-servers":h$,"path-declaration-must-exist":yl,"operation-operationId-url-safe":ll,"operation-operationId":kn,"operation-summary":fl,"tags-alphabetical":Cn,"no-server-example.com":b$,"no-server-trailing-slash":v$,"tag-description":In,"operation-description":cl,"no-unused-components":_$,"path-not-include-query":bl,"path-parameters-defined":Wi,"path-params-defined":Wi,"parameter-description":hl,"operation-singular-tag":dl,"security-defined":Pl,"security-scopes-defined":Ti,"no-unresolved-refs":ot,"paths-kebab-case":xl,"boolean-parameter-prefixes":f$,"path-http-verbs-order":gl,"no-invalid-media-type-examples":g$,"no-identical-paths":Pp,"no-ambiguous-paths":Sp,"no-undefined-server-variable":w$,"no-server-variables-empty-enum":S$,"no-http-verbs-in-paths":_p,"request-mime-type":$$,"response-mime-type":T$,"path-segment-plural":vl,"no-invalid-schema-examples":ol,"no-invalid-parameter-examples":nl,"response-contains-header":wl,"response-contains-property":A$,"scalar-property-missing-example":_l,"spec-components-invalid-map-name":R$,"required-string-property-missing-min-length":Sl,"spec-strict-refs":El,"component-name-unique":m$,"array-parameter-serialization":d$,"no-required-schema-properties-undefined":Dr,"no-schema-type-mismatch":Lr,"no-duplicated-tag-names":On,"nullable-type-sibling":P$,"spec-no-invalid-tag-parents":C$,"spec-no-invalid-encoding-combinations":I$,"spec-discriminator-defaultMapping":O$,"spec-example-values":k$,"spec-querystring-parameters":M$},L$={};var U$=()=>{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 z$=()=>({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,p=c.name;p&&(o.has(p)&&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(p))})}}});var F$=()=>({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 V$={struct:it,"no-unresolved-refs":ot,assertions:St,"info-license":Oi,"no-unused-components":U$,"info-contact":Zt,"spec-no-duplicated-method-params":z$,"spec-no-required-params-after-optional":F$},B$={};var H$={"info-contact":Zt,struct:it,"no-unresolved-refs":ot,assertions:St},K$={};var YY={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"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","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-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-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-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-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-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-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-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-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-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-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-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-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-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","operation-operationId":"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"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","operation-operationId":"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"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"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-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"error"},openrpc1Rules:{"info-contact":"error","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},G$=YY;var WY={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-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","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-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-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-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-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-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-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-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-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-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-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","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-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-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-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","operation-operationId":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"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","operation-operationId":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","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-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},graphqlRules:{"no-unused-types":"off","type-description":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"}},Y$=WY;var QY={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-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","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-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-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-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-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-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-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-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-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-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-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"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-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-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-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","operation-operationId":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","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","operation-operationId":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"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-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},W$=QY;var JY={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-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","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-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-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-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-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-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-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-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-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-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-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","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-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-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-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","operation-operationId":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","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","operation-operationId":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","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-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-license":"warn","no-unused-components":"warn","info-contact":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},Q$=JY;var XY={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-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","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-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-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-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-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-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-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-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-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-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-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","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-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-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-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","operation-operationId":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"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","operation-operationId":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"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-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},J$=XY;var ZY={recommended:Q$,"recommended-strict":W$,minimal:Y$,all:G$,spec:J$},Vy={id:"",rules:{oas3:D$,oas2:l$,async2:Zw,async3:o_,arazzo1:Yw,overlay1:H$,openrpc1:V$,graphql:h_},preprocessors:{oas3:L$,oas2:u$,async2:e_,async3:i_,arazzo1:Ww,overlay1:K$,openrpc1:B$},decorators:{oas3:mw,oas2:pw,async2:sw,async3:aw,arazzo1:iw,overlay1:yw,openrpc1:hw},configs:ZY};import*as La from"node:fs";import*as bA from"node:path";import*as Al from"node:fs";import*as Tl from"node:path";var eW=[".graphql",".gql"];function Ji(e){let t=e.toLowerCase();return eW.some(r=>t.endsWith(r))}function Bn(e,t){return e+"::"+t}function X$(){return new Promise(e=>{setTimeout(e)})}var Hn=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}},$l=class e extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function ko(e,t){let r=new Hn(t,e);if(Ji(t))return{source:r,parsed:e};try{return{source:r,parsed:to(e,{filename:t})}}catch(n){throw new Ur(n,r)}}var Mt=class{config;cache=new Map;constructor(t={http:{headers:[]}}){this.config=t}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return pe(r)?r:t&&pe(t)?new URL(r,t).href:Tl.resolve(t?Tl.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(pe(t)){let{body:r,mimeType:n}=await td(t,this.config.http);return new Hn(t,r,n)}else{if(Al.lstatSync(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);let r=await Al.promises.readFile(t,"utf-8");return new Hn(t,r.replace(/\r\n/g,`
|
|
114
|
+
`))}}catch(r){throw r.message=r.message.replace(", lstat",""),new $l(r)}}parseDocument(t,r=!1){if(Ji(t.absoluteRef))return{source:t,parsed:t.body};if(!Ma(t.absoluteRef)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:to(t.body,{filename:t.absoluteRef})}}catch(n){throw new Ur(n,t)}}async resolveDocument(t,r,n=!1){let o=this.resolveExternalRef(t,r),i=this.cache.get(o);if(i)return i;let s=this.loadExternalRef(o).then(a=>this.parseDocument(a,n));return this.cache.set(o,s),s}};function Z$(e,t){return{prev:e,node:t}}function tW(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var Da={name:"unknown",properties:{}},rW={name:"scalar",properties:{}};async function or(e){let{rootDocument:t,externalRefResolver:r,rootType:n}=e,o=new Map,i=new Set,s=[];c(t.parsed,t,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return o;function c(p,l,u,m){let d=l.source.absoluteRef,f=new Map;h(p,m,d+u);function h(g,v,b){if(!O(g)&&!Array.isArray(g))return;let S=`${v.name}::${b}`;if(i.has(S))return;if(i.add(S),Array.isArray(g)){let T=v.items;if(T===void 0&&v!==Da&&v!==cr)return;let A=typeof T=="function";for(let R=0;R<g.length;R++){let P=A?T(g[R],Gr(b,R)):T;if(P===void 0&&v!==Da&&v!==cr)continue;let J=P?.directResolveAs?{$ref:g[R]}:g[R];P=P?.directResolveAs||P,h(J,pr(P)?P:Da,Gr(b,R))}return}let[w,_]=Object.entries(g).find(([T])=>T==="$anchor")||[];_&&f.set(`#${_}`,g);for(let T of Object.keys(g)){let A=g[T],R=Ft(v.properties,T);R===void 0&&(R=v.additionalProperties),typeof R=="function"&&(R=R(A,T)),R===void 0&&(R=Da),v.extensionsPrefix&&T.startsWith(v.extensionsPrefix)&&R===Da&&(R=cr),!pr(R)&&R?.directResolveAs&&(R=R.directResolveAs,A={$ref:A}),R&&R.name===void 0&&R.resolvable!==!1&&(R=rW),!(!pr(R)||!(O(A)||Array.isArray(A)))&&h(A,R,Gr(b,Rr(T)))}if(F(g)){let T=y(l,g,{prev:null,node:g}).then(A=>{A.resolved&&c(A.node,A.document,A.nodePointer,v)});s.push(T)}if(Ba(g)){let T=y(l,{$ref:g.externalValue},{prev:null,node:g}).then(A=>{A.resolved&&c(A.node,A.document,A.nodePointer,v)});s.push(T)}}async function y(g,v,b){if(tW(b.prev,v))throw new Error("Self-referencing circular pointer");if(Ig(v.$ref)){await X$();let H={resolved:!0,isRemote:!1,node:f.get(v.$ref),document:g,nodePointer:v.$ref},U=Bn(g.source.absoluteRef,v.$ref);return o.set(U,H),H}let{uri:S,pointer:w}=mn(v.$ref),_=S!==null&&r.resolveExternalRef(g.source.absoluteRef,S)!==g.source.absoluteRef,T;try{T=_?await r.resolveDocument(g.source.absoluteRef,S):g}catch(H){let U={resolved:!1,isRemote:_,document:void 0,error:H},E=Bn(g.source.absoluteRef,v.$ref);return o.set(E,U),U}let A={resolved:!0,document:T,isRemote:_,node:g.parsed,nodePointer:"#/"},R=T.parsed,P=w;for(let H of P)if(O(R)&&R[H]!==void 0)R=R[H],A.nodePointer=Gr(A.nodePointer,Rr(H));else if(Array.isArray(R)&&R[+H]!==void 0)R=R[+H],A.nodePointer=Gr(A.nodePointer,Rr(H));else if(F(R))if(A=await y(T,R,Z$(b,R)),T=A.document||T,O(A.node))R=A.node[H],A.nodePointer=Gr(A.nodePointer,Rr(H));else if(Array.isArray(A.node))R=A.node[+H],A.nodePointer=Gr(A.nodePointer,Rr(H));else{R=void 0;break}else{R=void 0;break}A.node=R,A.document=T;let J=Bn(g.source.absoluteRef,v.$ref);return A.document&&F(R)&&(A=await y(A.document,R,Z$(b,R))),o.set(J,A),{...A}}}}import*as Xy from"node:fs";import lW from"node:module";import*as Pt from"node:path";import*as yA from"node:url";var nW={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Vt(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:p}of e)i({ruleId:s,severity:a,message:c},p,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,p,l=[]){if(l.includes(a))return;l=[...l,a];let u=new Set;for(let d of Object.values(a.properties)){if(d===c){m(s,l);continue}O(d)&&d.name!==void 0&&u.add(d)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?m(s,l):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?m(s,l):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(cr);for(let d of Array.from(u.values()))n(s,d,c,p,l);function m(d,f){for(let h of f.slice(1))r[h.name]=r[h.name]||{enter:[],leave:[]},r[h.name].enter.push({...d,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:p}})}}function o(s,a){if(Array.isArray(a)){let c=a.find(p=>s[p])||void 0;return c&&s[c]}return s[a]}function i(s,a,c,p=0){let l=Object.keys(t);if(p===0)l.push("any"),l.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 l){let m=a[u]||o(a,nW[u]),d=r[u];if(!m)continue;let f,h,y,g=O(m);if(u==="ref"&&g&&m.skip)throw new Error("ref() visitor does not support skip");typeof m=="function"?f=m:g&&(f=m.enter,h=m.leave,y=m.skip);let v=(f?1:0)+(h?1:0)+(y?1:0),b=g&&Object.keys(m).length>v,S={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(b&&i(s,m,S,p+1),c&&n(s,c.type,t[u],c),f||g){if(f&&typeof f!="function")throw new Error("DEV: should be function");d.enter.push({...s,visit:f||(()=>{}),skip:y,depth:p,context:S})}if(h){if(typeof h!="function")throw new Error("DEV: should be function");d.leave.push({...s,visit:h,depth:p,context:S})}}}}import oW from"node:path";var me=(e,t)=>{if(t)for(let r of Object.keys(t))O(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function _e(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&(O(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function eA(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Le(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Rl(e){let t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(let r of e){if(O(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
115
|
+
${JSON.stringify(r,null,2)}`);me(t.rules,r.rules),me(t.oas2Rules,r.oas2Rules),_e(t.oas2Rules,r.rules),me(t.oas3_0Rules,r.oas3_0Rules),_e(t.oas3_0Rules,r.rules),me(t.oas3_1Rules,r.oas3_1Rules),_e(t.oas3_1Rules,r.rules),me(t.oas3_2Rules,r.oas3_2Rules),_e(t.oas3_2Rules,r.rules),me(t.async2Rules,r.async2Rules),_e(t.async2Rules,r.rules),me(t.async3Rules,r.async3Rules),_e(t.async3Rules,r.rules),me(t.arazzo1Rules,r.arazzo1Rules),_e(t.arazzo1Rules,r.rules),me(t.arazzo1_1Rules,r.arazzo1_1Rules),_e(t.arazzo1_1Rules,r.rules),me(t.overlay1Rules,r.overlay1Rules),_e(t.overlay1Rules,r.rules),me(t.openrpc1Rules,r.openrpc1Rules),_e(t.openrpc1Rules,r.rules),me(t.graphqlRules,r.graphqlRules),_e(t.graphqlRules,r.rules),me(t.preprocessors,r.preprocessors),me(t.oas2Preprocessors,r.oas2Preprocessors),_e(t.oas2Preprocessors,r.preprocessors),me(t.oas3_0Preprocessors,r.oas3_0Preprocessors),_e(t.oas3_0Preprocessors,r.preprocessors),me(t.oas3_1Preprocessors,r.oas3_1Preprocessors),_e(t.oas3_1Preprocessors,r.preprocessors),me(t.oas3_2Preprocessors,r.oas3_2Preprocessors),_e(t.oas3_2Preprocessors,r.preprocessors),me(t.async2Preprocessors,r.async2Preprocessors),_e(t.async2Preprocessors,r.preprocessors),me(t.async3Preprocessors,r.async3Preprocessors),_e(t.async3Preprocessors,r.preprocessors),me(t.arazzo1Preprocessors,r.arazzo1Preprocessors),_e(t.arazzo1Preprocessors,r.preprocessors),me(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),_e(t.arazzo1_1Preprocessors,r.preprocessors),me(t.overlay1Preprocessors,r.overlay1Preprocessors),_e(t.overlay1Preprocessors,r.preprocessors),me(t.openrpc1Preprocessors,r.openrpc1Preprocessors),_e(t.openrpc1Preprocessors,r.preprocessors),me(t.decorators,r.decorators),me(t.oas2Decorators,r.oas2Decorators),_e(t.oas2Decorators,r.decorators),me(t.oas3_0Decorators,r.oas3_0Decorators),_e(t.oas3_0Decorators,r.decorators),me(t.oas3_1Decorators,r.oas3_1Decorators),_e(t.oas3_1Decorators,r.decorators),me(t.oas3_2Decorators,r.oas3_2Decorators),_e(t.oas3_2Decorators,r.decorators),me(t.async2Decorators,r.async2Decorators),_e(t.async2Decorators,r.decorators),me(t.async3Decorators,r.async3Decorators),_e(t.async3Decorators,r.decorators),me(t.arazzo1Decorators,r.arazzo1Decorators),_e(t.arazzo1Decorators,r.decorators),me(t.arazzo1_1Decorators,r.arazzo1_1Decorators),_e(t.arazzo1_1Decorators,r.decorators),me(t.overlay1Decorators,r.overlay1Decorators),_e(t.overlay1Decorators,r.decorators),me(t.openrpc1Decorators,r.openrpc1Decorators),_e(t.openrpc1Decorators,r.decorators)}return t}var By=class extends Error{};function tA(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Hy(e){return O(e)&&"id"in e}function rA(e){return typeof e=="function"}function Ky({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=(e.extends||[]).filter(Ge).map(o=>{if(!pe(o)&&!oW.extname(o))return nA(o,r);let i=t.resolve({$ref:o});return i.location&&i.node!==void 0?i.node:null}).filter(Ge);return Rl([...n.map(o=>Ky({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function Ol(e,t){if(O(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>Il(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var oA=Vt([{severity:"error",ruleId:np,visitor:{ref:{},ConfigGovernance:{leave(e,t){Ol(e,t)}},ConfigApisProperties:{leave(e,t){Ol(e,t)}},[et.ScorecardClassicLevel]:{leave(e,t){Ol(e,t)}},ConfigRoot:{leave(e,t){Ol(e,t)}}}}],En);function kl(e,t){if(O(e)&&e.extends){let{plugins:r}=t.getVisitorData(),n=Ky({node:e,ctx:t,plugins:r});Object.assign(e,n),delete e.extends}}var iA=Vt([{severity:"error",ruleId:rp,visitor:{ref:{leave(e,t,r){ss(e,r,t)}},ConfigGovernance:{leave(e,t){kl(e,t)}},ConfigApisProperties:{leave(e,t){kl(e,t)}},[et.ScorecardClassicLevel]:{leave(e,t){kl(e,t)}},ConfigRoot:{leave(e,t){kl(e,t)}}}}],En);function Gy(e,t){return{prev:e,value:t}}function Yy(e){return e?.prev??null}function iW(e){let t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function sW(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 Bt(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:o,ctx:i}=e,s={},a=new Set,c=n.any.enter,p=n.any.leave,l={},u={};for(let d of Object.keys(n))d==="any"||d==="ref"||(l[d]=c.concat(n[d]?.enter||[]),u[d]=(n[d]?.leave||[]).concat(p));m(t.parsed,r,new sr(t.source,"#/"),void 0,"");function m(d,f,h,y,g){let v=(U,E=S.source.absoluteRef)=>{if(!F(U))return{location:h,node:U};let $=Bn(E,U.$ref),oe=o.get($);if(!oe)return{location:void 0,node:void 0};let{resolved:X,node:le,document:N,nodePointer:L,error:ve}=oe;return{location:X?new sr(N.source,L):ve instanceof Ur?new sr(ve.source,""):void 0,node:le,error:ve}},b=h,S=h,w=F(d),{node:_,location:T,error:A}=v(d),R=new Set;if(w){let U=n.ref.enter;for(let{visit:E,ruleId:$,severity:oe,message:X,context:le}of U)R.add(le),E(d,{report:L=>J($,oe,X,L),resolve:v,rawNode:d,rawLocation:b,location:h,type:f,parent:y,key:g,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>H($)},{node:_,location:T,error:A}),T?.source.absoluteRef&&i.refTypes&&i.refTypes.set(T?.source.absoluteRef,f)}if(_!==void 0&&T&&f.name!=="scalar"){S=T;let U=s[f.name]?.has?.(_),E=!1,$=l[f.name]||c.concat(n[f.name]?.enter||[]),oe=[],X=`${S.absolutePointer}${S.pointer}`;for(let{context:N,visit:L,skip:ve,ruleId:Kt,severity:ue,message:Et}of $){if(a.has(X))break;if(N.isSkippedLevel)N.parent.activatedOn&&!N.parent.activatedOn.value.nextLevelTypeActivated&&!N.seen.has(d)&&(N.seen.add(d),E=!0,oe.push(N));else if(N.parent&&N.parent.activatedOn&&N.activatedOn?.value.withParentNode!==N.parent.activatedOn.value.node&&N.parent.activatedOn.value.nextLevelTypeActivated?.value!==f||!N.parent&&!U){oe.push(N);let Z={node:_,location:T,nextLevelTypeActivated:null,withParentNode:N.parent?.activatedOn?.value.node,skipped:(N.parent?.activatedOn?.value.skipped||ve?.(_,g,{location:h,rawLocation:b,resolve:v,rawNode:d}))??!1};N.activatedOn=Gy(N.activatedOn,Z);let Er=N.parent;for(;Er;)Er.activatedOn.value.nextLevelTypeActivated=Gy(Er.activatedOn.value.nextLevelTypeActivated,f),Er=Er.parent;Z.skipped||(E=!0,R.add(N),P(L,_,d,N,Kt,ue,Et))}}if(E||!U){if(s[f.name]=s[f.name]||new Set,s[f.name].add(_),Array.isArray(_)){let N=f.items;if(N!==void 0){let L=typeof N=="function";for(let ve=0;ve<_.length;ve++){let Kt=T.child([ve]),ue=L?N(_[ve],Kt.absolutePointer):N,Et=_[ve];ue?.directResolveAs&&(ue=ue.directResolveAs,Et={$ref:Et}),pr(ue)&&m(Et,ue,Kt,_,ve)}}}else if(O(_)){let N=Object.keys(f.properties);f.additionalProperties?N.push(...Object.keys(_).filter(L=>!N.includes(L))):f.extensionsPrefix&&N.push(...Object.keys(_).filter(L=>L.startsWith(f.extensionsPrefix))),w&&N.push(...Object.keys(d).filter(L=>L!=="$ref"&&!N.includes(L)));for(let L of N){let ve=_[L],Kt=T;ve===void 0&&(ve=d[L],Kt=h);let ue=Ft(f.properties,L);if(ue===void 0&&(ue=f.additionalProperties),typeof ue=="function"&&(ue=ue(ve,L)),ue===void 0&&f.extensionsPrefix&&L.startsWith(f.extensionsPrefix)&&(ue=cr),!pr(ue)&&ue?.directResolveAs&&(ue=ue.directResolveAs,ve={$ref:ve}),ue&&ue.name===void 0&&ue.resolvable!==!1&&(ue={name:"scalar",properties:{}}),F(d[L])&&ue?.name==="scalar"){m(d[L],ue,h.child([L]),d,L);continue}!pr(ue)||ue.name==="scalar"&&!F(ve)||m(ve,ue,Kt.child([L]),_,L)}}}let le=u[f.name]||(n[f.name]?.leave||[]).concat(p);for(let N of oe.reverse())if(N.isSkippedLevel)N.seen.delete(_);else if(N.activatedOn=Yy(N.activatedOn),N.parent){let L=N.parent;for(;L;)L.activatedOn.value.nextLevelTypeActivated=Yy(L.activatedOn.value.nextLevelTypeActivated),L=L.parent}for(let{context:N,visit:L,ruleId:ve,severity:Kt,message:ue}of le)!N.isSkippedLevel&&R.has(N)&&P(L,_,d,N,ve,Kt,ue)}if(S=h,w){let U=n.ref.leave;for(let{visit:E,ruleId:$,severity:oe,context:X,message:le}of U)R.has(X)&&E(d,{report:L=>J($,oe,le,L),resolve:v,rawNode:d,rawLocation:b,location:h,type:f,parent:y,key:g,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>H($)},{node:_,location:T,error:A})}function P(U,E,$,oe,X,le,N){U(E,{report:ve=>J(X,le,N,ve),resolve:v,rawNode:$,location:S,rawLocation:b,type:f,parent:y,key:g,parentLocations:sW(oe),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{a.add(`${S.absolutePointer}${S.pointer}`)},getVisitorData:()=>H(X)},iW(oe),oe)}function J(U,E,$,oe){let le=(oe.location?Array.isArray(oe.location)?oe.location:[oe.location]:[{...S,reportOnKey:!1}]).map(L=>({...S,reportOnKey:!1,...L})),N=oe.forceSeverity||E;N!=="off"&&i.problems.push({ruleId:oe.ruleId||U,severity:N,...oe,message:$?$.replace("{{message}}",oe.message):oe.message,suggest:oe.suggest||[],location:le})}function H(U){return i.visitorsData[U]=i.visitorsData[U]||{},i.visitorsData[U]}}}function sA(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Wy(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 aA({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,p=new Map,l=Wy("Schema",e),u={ref:{leave(v,b,S){if(!S.location||S.node===void 0){xo(S,b.report,b.location);return}if(S.location.source===r.source&&S.location.source===b.location.source&&b.type.name!=="scalar"&&!t){mn(v.$ref).uri!==null&&v.$ref!==S.location.pointer&&(v.$ref=S.location.pointer);return}if(o&&pe(v.$ref))return;let w=Wy(b.type.name,e);w?t?(d(w,S,b),ss(v,S,b)):(v.$ref=d(w,S,b),m(v,S,b)):ss(v,S,b)}},Example:{leave(v,b){if(Ba(v)&&v.value===void 0){let S=b.resolve({$ref:v.externalValue});if(!S.location||S.node===void 0){xo(S,b.report,b.location);return}if(o&&pe(v.externalValue))return;v.value=b.resolve({$ref:v.externalValue}).node,delete v.externalValue}}},Root:{enter(v,b){c=b.location,e==="oas3"?a=v.components=v.components||{}:e==="oas2"?a=v:e==="async2"?a=v.components=v.components||{}:e==="async3"?a=v.components=v.components||{}:e==="arazzo1"?a=v.components=v.components||{}:e==="openrpc1"&&(a=v.components=v.components||{})}}};e==="oas3"&&(u.Discriminator={leave(v,b){if(typeof v.defaultMapping!="string"||!Or(v.defaultMapping))return;let S=b.resolve({$ref:v.defaultMapping});if(!S.location||S.node===void 0){xo(S,b.report,b.location.child("defaultMapping"));return}v.defaultMapping=d(l,S,b)},DiscriminatorMapping:{leave(v,b){for(let S of Object.keys(v)){let w=v[S];if(!Or(w))continue;let _=b.resolve({$ref:w});if(!_.location||_.node===void 0){xo(_,b.report,b.location.child(S));return}v[S]=d(l,_,b)}}}});function m(v,b,S){let w=Bn(S.location.source.absoluteRef,v.$ref);n.set(w,{document:r,isRemote:!1,node:b.node,nodePointer:v.$ref,resolved:!0})}function d(v,b,S){a[v]=a[v]||{};let w=g(b,v,S);return a[v][w]=b.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${v}/${w}`:`#/${v}/${w}`}function f(v,b,S){return F(v)&&S.resolve(v,c.absolutePointer).location?.absolutePointer===b.location.absolutePointer?!0:Ko(v,b.node)}function h(v,b,S){let{node:w}=v,_=O(w)&&De(w.title)?w.title.trim():"",T=sA(_).replace(new RegExp(`[^${vc}]`,"g"),"-"),A=v.location.child("title");return _===""?{key:T,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:v.location,forceSeverity:"error"}}:b[T]&&!f(b[T],v,S)?{key:T,problem:{message:`Title "${_}" maps to component name \`${T}\`, already used by another schema. Rename one of the titles.`,location:A,from:p.get(T),forceSeverity:i}}:{key:T}}function y(v,b,S){let w=Og(v.location.pointer)||kg(v.location.source.absoluteRef),_=w;for(let T=2;b[_]&&!f(b[_],v,S);T++)_=`${w}-${T}`;return{name:_,prevName:w}}function g(v,b,S){let w=a[b];if(s==="title"&&b===l){let{key:A,problem:R}=h(v,w,S);if(!R)return p.set(A,v.location.child("title")),A;let{name:P}=y(v,w,S);return w[P]||(S.report(R),p.set(P,v.location)),P}let{name:_,prevName:T}=y(v,w,S);return!w[_]&&T!==_&&S.report({message:`Two schemas are referenced with the same name but different content. Renamed ${T} to ${_}.`,location:S.location,forceSeverity:i}),_}return u}async function Qy(e){let{document:t,config:r,types:n,externalRefResolver:o,dereference:i=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:p="basename"}=e,l=sn(t.parsed),u=aa(l),m=r.getRulesForSpecVersion(u),d=Qr(r.extendTypes(n,l),r),f=Mo(m,r,"preprocessors",l),h=Mo(m,r,"decorators",l),y={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}},g=await or({rootDocument:t,rootType:d.Root,externalRefResolver:o});f.length>0&&(Bt({document:t,rootType:d.Root,normalizedVisitors:Vt(f,d),resolvedRefMap:g,ctx:y}),g=await or({rootDocument:t,rootType:d.Root,externalRefResolver:o}));let v=Vt([{severity:"error",ruleId:"bundler",visitor:aA({version:u,dereference:i,rootDocument:t,resolvedRefMap:g,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:p})},...h.filter(b=>b.ruleId!=="remove-unused-components")],d);if(Bt({document:t,rootType:d.Root,normalizedVisitors:v,resolvedRefMap:g,ctx:y}),s||r.getDecoratorSettings("remove-unused-components",l).severity!=="off"){let b=await or({rootDocument:t,rootType:d.Root,externalRefResolver:o}),S=Vt([{severity:"error",ruleId:"remove-unused-components",visitor:u==="oas2"?bp({}):vp({})}],d);Bt({document:t,rootType:d.Root,normalizedVisitors:S,resolvedRefMap:b,ctx:y})}return{bundle:t,problems:y.problems.map(b=>r.addProblemToIgnore(b)),fileDependencies:o.getFiles(),rootType:d.Root,refTypes:y.refTypes,visitorsData:y.visitorsData}}function cA(e,t,r){let n={plugins:[],rootConfigDir:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[np]:n}};return Bt({document:e,rootType:En.ConfigRoot,normalizedVisitors:oA,resolvedRefMap:t,ctx:o}),n.plugins}function pA(e,t,r){let n={plugins:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[rp]:n}};return Bt({document:e,rootType:En.ConfigRoot,normalizedVisitors:iA,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function aW(e){let{ref:t,doc:r,externalRefResolver:n=new Mt(e.config.resolve),base:o=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
116
|
+
`);let i=r===void 0?await n.resolveDocument(o,t,!0):r;if(i instanceof Error)throw i;return e.collectSpecData?.(i),Qy({document:i,...e,externalRefResolver:n,types:oo(sn(i.parsed))})}function Cl(e){return!De(e)}import*as lA from"node:url";var Jy=new Map,cW="v",pW=0;function uA(e){return Jy.has(e)}function dA(e){return Jy.get(e)}function fA(e,t){Jy.set(e,t)}async function mA(e){let t=lA.pathToFileURL(e);return t.searchParams.set(cW,String(pW)),import(t.href)}async function Zy({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:o}){let i=e===void 0?JS:e.parsed;if(n!==void 0&&O(i)&&(i.extends=n),O(i)&&(i?.extends?.some(Cl)||i?.scorecardClassic?.levels?.some(d=>d?.extends?.some(Cl))||i?.scorecard?.levels?.some(d=>d?.extends?.some(Cl))))throw new Error("Configuration format not detected in extends: values must be strings.");let s=e??{source:new Hn(t??"",JSON.stringify(i)),parsed:i},a=await or({rootDocument:s,rootType:En.ConfigRoot,externalRefResolver:r??new Mt(op(i?.resolve))}),c=[],p,l="";Je?p=[...(i?.plugins||[]).filter(f=>!De(f)),Vy]:(l=Pt.dirname(t??""),c=cA(s,a,l),p=[...await gA(c.map(f=>hA(f)?f.absolutePath:f),l,o),Vy]);let u=pA(s,tA(a),p);u.apis&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([d,f])=>{let h=Rl([u,f]);return[d,{...f,...h}]})));let m=c.length?c.map(d=>hA(d)&&d.isModule?d.rawPath:d.absolutePath&&Pt.relative(l,d.absolutePath)).filter(Lt):void 0;return{resolvedConfig:{...u,plugins:m},resolvedRefMap:a,plugins:p}}function uW(e){for(let t of ZS){let r=Pt.resolve(e,t);if(Xy.existsSync(r))return t}}function hA(e){return"isModule"in e}var Il=(e,t,r)=>{if(!De(e))return e;let n=Pt.resolve(Pt.dirname(t),e);if(Xy.existsSync(n))return{absolutePath:n,rawPath:e,isModule:!1};try{return{absolutePath:lW.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?Pt.dirname(yA.fileURLToPath(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function gA(e,t,r=!1){if(!e)return[];let n=async c=>{if(!De(c))return c;try{let p=Pt.isAbsolute(c)?c:Il(c,Pt.join(t,wi),t).absolutePath;if(!uA(p)){let l=await mA(p),u=l.default||l,m={contentDir:t},d=Array.isArray(u)?u:[u];for(let y of d)y?.id&&Hy(y)&&Y.info(`Deprecated plugin format detected: ${y.id}
|
|
117
|
+
`);let f=Hy(u)?u:rA(u)?await u(m):await u?.default?.(m),h=Array.isArray(f)?f:[f];f&&fA(p,h.map(y=>({...y,path:c,absolutePath:p})))}return dA(p)}catch(p){throw new Error(`Failed to load plugin "${c}": ${p.message}
|
|
118
|
+
|
|
119
|
+
${p.stack}`)}},o=new Map,i=uW(t);i&&e.push(i);let s=new Set;if(r){let c=[];for(let p of e){if(!De(p)){c.push(p);continue}let l=Pt.isAbsolute(p)?p:Il(p,Pt.join(t,wi),t).absolutePath;s.has(l)||(s.add(l),c.push({absolutePath:l}))}return c}return(await Promise.all(e.map(async c=>{if(De(c)){if(pe(c))throw new Error(G.red("We don't support remote plugins yet."));if(s.has(c))return;s.add(c)}let p=await n(c);if(!p)return;let l=Array.isArray(p)?p:[p];return(await Promise.all(l.map(async u=>{if(!u)return;let m=u.id;if(typeof m!="string")throw new Error(G.red(`Plugin must define \`id\` property in ${G.blue(c.toString())}.`));let d=u.absolutePath??c.toString(),f=o.get(m);if(f){if(d!==f)throw new Error(G.red(`Plugin "id" must be unique. Plugin ${G.blue(d)} uses id "${G.blue(m)}" already seen in ${G.blue(d)}`));return}o.set(m,d);let h={id:m,...u.configs?{configs:u.configs}:{},...u.typeExtension?{typeExtension:u.typeExtension}:{}};if(u.rules){if(!u.rules.oas3&&!u.rules.oas2&&!u.rules.async2&&!u.rules.async3&&!u.rules.arazzo1&&!u.rules.overlay1&&!u.rules.openrpc1&&!u.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);h.rules={},u.rules.oas3&&(h.rules.oas3=Le(u.rules.oas3,m)),u.rules.oas2&&(h.rules.oas2=Le(u.rules.oas2,m)),u.rules.async2&&(h.rules.async2=Le(u.rules.async2,m)),u.rules.async3&&(h.rules.async3=Le(u.rules.async3,m)),u.rules.arazzo1&&(h.rules.arazzo1=Le(u.rules.arazzo1,m)),u.rules.overlay1&&(h.rules.overlay1=Le(u.rules.overlay1,m)),u.rules.openrpc1&&(h.rules.openrpc1=Le(u.rules.openrpc1,m)),u.rules.graphql&&(h.rules.graphql=Le(u.rules.graphql,m))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1&&!u.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);h.preprocessors={},u.preprocessors.oas3&&(h.preprocessors.oas3=Le(u.preprocessors.oas3,m)),u.preprocessors.oas2&&(h.preprocessors.oas2=Le(u.preprocessors.oas2,m)),u.preprocessors.async2&&(h.preprocessors.async2=Le(u.preprocessors.async2,m)),u.preprocessors.async3&&(h.preprocessors.async3=Le(u.preprocessors.async3,m)),u.preprocessors.arazzo1&&(h.preprocessors.arazzo1=Le(u.preprocessors.arazzo1,m)),u.preprocessors.overlay1&&(h.preprocessors.overlay1=Le(u.preprocessors.overlay1,m)),u.preprocessors.openrpc1&&(h.preprocessors.openrpc1=Le(u.preprocessors.openrpc1,m))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1&&!u.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);h.decorators={},u.decorators.oas3&&(h.decorators.oas3=Le(u.decorators.oas3,m)),u.decorators.oas2&&(h.decorators.oas2=Le(u.decorators.oas2,m)),u.decorators.async2&&(h.decorators.async2=Le(u.decorators.async2,m)),u.decorators.async3&&(h.decorators.async3=Le(u.decorators.async3,m)),u.decorators.arazzo1&&(h.decorators.arazzo1=Le(u.decorators.arazzo1,m)),u.decorators.overlay1&&(h.decorators.overlay1=Le(u.decorators.overlay1,m)),u.decorators.openrpc1&&(h.decorators.openrpc1=Le(u.decorators.openrpc1,m))}return u.assertions&&(h.assertions=u.assertions),{...u,...h}}))).filter(Lt)}))).filter(Lt).flat()}function nA(e,t){let{pluginId:r,configName:n}=eA(e),o=t.find(s=>s.id===r);if(!o)throw new Error(`Invalid config ${G.red(e)}: plugin ${r} is not included.`);let i=o.configs?.[n];if(!i)throw new Error(r?`Invalid config ${G.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${G.red(e)}: there is no such built-in config.`);return i}function dW(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=pe(n)?n:Ha(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 vA(e,t){let r=e?Wl(e):Je?"":process.cwd(),n=r?Ha(r,ra):ra;if(La?.existsSync&&!pe(n)&&!La.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:dW(o.parsed||{},r)}async function fW(e={}){let{configPath:t=xA(),customExtends:r,externalRefResolver:n,skipPluginEval:o}=e,i=n??new Mt,s=t?await i.resolveDocument(null,t,!0):void 0;if(s instanceof Error)throw s;let{resolvedConfig:a,resolvedRefMap:c,plugins:p}=await Zy({rawConfigDocument:s?wA(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o}),l=await vA(t,i);return new _i(a,{configPath:t,document:s,resolvedRefMap:c,plugins:p,ignore:l})}function xA(e){if(!La?.existsSync)return;let t=e?bA.resolve(e,wi):wi;return La.existsSync(t)?t:void 0}async function SA(e,{configPath:t,externalRefResolver:r,ignore:n}={}){let i=ko(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(i.parsed=e);let{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await Zy({rawConfigDocument:wA(i),configPath:t,externalRefResolver:r});return new _i(s,{configPath:t,document:i,resolvedRefMap:a,plugins:c,ignore:n})}function wA(e){if(!e.parsed)return e;let{plugins:t,resolve:r,...n}=e.parsed,o={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:o}}var jo=Tr(FT(),1);var Z6=150,eJ=3;function Bl(e,t){ys.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-eJ+1,0);c<2&&(c=0);let p=[],l=0;for(let m=s;m<=a&&!(c>0&&m>=a-c);m++){let d=i[m-1]||"";d!==""&&(l=Vl(d));let f=m===s?r.col-1:l,h=m===a?n.col-1:d.length;p.push([`${m}`,u(d,f,h,G.red)]),t||p.push(["",VT(d,f,h)])}return c>0&&(p.push(["\u2026",`${$g(l)}${G.gray(`< ${c} more lines >`)}`]),p.push([`${a}`,u(i[a-1],-1,n.col-1,G.red)]),t||p.push(["",VT(i[a-1],-1,n.col-1)])),tJ([[`${s-2}`,u(i[s-1-2])],[`${s-1}`,u(i[s-1-1])],...p,[`${a+1}`,u(i[a-1+1])],[`${a+2}`,u(i[a-1+2])]]);function u(m,d=-1,f=1/0,h=G.gray){return!t||!m?m:(d===-1&&(d=Vl(m)),f=Math.min(f,m.length),m.substr(0,d)+h(m.substring(d,f))+m.substr(f))}}function tJ(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:Vl(i)));return t.map(([o,i])=>G.gray(nJ(r,o)+" |")+(i?" "+rJ(i.substring(n)):"")).join(`
|
|
120
|
+
`)}function rJ(e,t=Z6){let r=e.length-t;if(r>0){let n=G.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function VT(e,t=-1,r=1/0){return t===-1&&(t=Vl(e)),r=Math.min(r,e.length),$g(t)+"^".repeat(Math.max(r-t,1))}function $g(e){return" ".repeat(e)}function nJ(e,t){return $g(e-t.length)+t}function Vl(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function fn(e){if(e.pointer===void 0)return e;let{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(jo.safeLoad),i=BT(o,r,!!n);return{...e,pointer:void 0,...oJ(t.body,i?.startPosition??1,i?.endPosition??1)}}function oJ(e,t,r){let n=1,o=1,i={line:1,col:1};for(let a=0;a<r-1;a++){if(a===t-1&&(i={line:n,col:o+1}),e[a]===`
|
|
121
|
+
`){n++,o=1,a===t-1&&(i={line:n,col:o}),e[a+1]==="\r"&&a++;continue}o++}let s=t===r?{...i}:{line:n,col:o+1};return{start:i,end:s}}function BT(e,t,r){let n=Yl(t.substr(2));if(e===void 0)return;let o=e;for(let i of n)if(o.kind===jo.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===jo.Kind.SEQ){let s=o.items[parseInt(i,10)];if(!s)break;o=s}if(r){let i=o.parent;return!i||i.kind===jo.Kind.SEQ?o:i.kind===jo.Kind.MAPPING?i.key:o}else return o}import*as Pr from"node:path";var iJ={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},HT={warn:e=>G.bgYellow(G.black(e)),error:G.bgRed},KT={warn:G.yellow,error:G.red},is={warn:"Warning",error:"Error"},sJ={error:"critical",warn:"minor"},aJ=+(hs.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function Hl(e){return e==="error"?1:2}function GT(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 cJ(e,t){let{maxProblems:r=100,cwd:n=Je?"":process.cwd(),format:o="codeframe",color:i=ys.enabled,totals:s=GT(e),version:a="2.0",command:c}=t;ys.enabled=i;let p=e.length;e=e.filter(b=>!b.ignored);let l=p-e.length;if(e=e.sort((b,S)=>Hl(b.severity)-Hl(S.severity)).slice(0,r),!p&&o!=="json"&&o!=="junit")return;switch(o){case"json":m();break;case"codeframe":for(let b=0;b<e.length;b++){let S=e[b];c==="bundle"?Y.info(`${f(S,b)}
|
|
122
|
+
`):Y.output(`${f(S,b)}
|
|
123
|
+
`)}break;case"stylish":{let b=Ag(e);for(let[S,{ruleIdPad:w,locationPad:_,fileProblems:T}]of Object.entries(b)){Y.output(`${G.blue(pe(S)?S:Pr.relative(n,S))}:
|
|
124
|
+
`);for(let A=0;A<T.length;A++){let R=T[A];Y.output(`${h(R,_,w)}
|
|
125
|
+
`)}Y.output(`
|
|
126
|
+
`)}break}case"markdown":{let b=Ag(e);for(let[S,{fileProblems:w}]of Object.entries(b)){Y.output(`## Lint: ${pe(S)?S:Pr.relative(n,S)}
|
|
127
|
+
|
|
128
|
+
`),Y.output(`| Severity | Location | Problem | Message |
|
|
129
|
+
`),Y.output(`|---|---|---|---|
|
|
130
|
+
`);for(let _=0;_<w.length;_++){let T=w[_];Y.output(`${y(T)}
|
|
131
|
+
`)}Y.output(`
|
|
132
|
+
`),s.errors>0?Y.output(`Validation failed
|
|
133
|
+
Errors: ${s.errors}
|
|
134
|
+
`):Y.output(`Validation successful
|
|
135
|
+
`),s.warnings>0&&Y.output(`Warnings: ${s.warnings}
|
|
136
|
+
`),Y.output(`
|
|
137
|
+
`)}break}case"checkstyle":{let b=Ag(e);Y.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
138
|
+
`),Y.output(`<checkstyle version="4.3">
|
|
139
|
+
`);for(let[S,{fileProblems:w}]of Object.entries(b))Y.output(`<file name="${_r(pe(S)?S:Pr.relative(n,S))}">
|
|
140
|
+
`),w.forEach(g),Y.output(`</file>
|
|
141
|
+
`);Y.output(`</checkstyle>
|
|
142
|
+
`);break}case"junit":{let b=e.filter(_=>_.severity==="error").length,S=e.filter(_=>_.severity==="warn").length,w={};for(let _ of e){let T=_.location[0].source.absoluteRef;w[T]||(w[T]=[]),w[T].push(_)}Y.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
143
|
+
`),Y.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${b}" failures="${S}" skipped="0">
|
|
144
|
+
`);for(let[_,T]of Object.entries(w)){let A=pe(_)?_:Pr.relative(n,_),R=T.filter(J=>J.severity==="error").length,P=T.filter(J=>J.severity==="warn").length;Y.output(`<testsuite name="${_r(A)}" tests="${T.length}" errors="${R}" failures="${P}">
|
|
145
|
+
`),T.forEach(J=>v(J,A)),Y.output(`</testsuite>
|
|
146
|
+
`)}Y.output(`</testsuites>
|
|
147
|
+
`);break}case"codeclimate":u();break;case"summary":pJ(e);break;case"github-actions":uJ(e,n)}p-l>r&&Y.info(`< ... ${p-r} more problems hidden > ${G.gray("increase with `--max-problems N`")}
|
|
148
|
+
`);function u(){let b=e.map(S=>{let w=S.location[0],_=fn(w);return{description:S.message,location:{path:pe(w.source.absoluteRef)?w.source.absoluteRef:Pr.relative(n,w.source.absoluteRef),lines:{begin:_.start.line}},severity:sJ[S.severity],fingerprint:`${S.ruleId}${S.location.length>0?"-"+S.location[0].pointer:""}`}});Y.output(JSON.stringify(b,null,2))}function m(){let b={totals:s,version:a,problems:e.map(S=>{let w={...S,location:S.location.map(_=>({..._,source:{ref:pe(_.source.absoluteRef)?_.source.absoluteRef:Pr.relative(n,_.source.absoluteRef)}})),from:S.from?{...S.from,source:{ref:pe(S.from?.source.absoluteRef)?S.from?.source.absoluteRef:Pr.relative(n,S.from?.source.absoluteRef||n)}}:void 0};if(hs.FORMAT_JSON_WITH_CODEFRAMES){let _=S.location[0],T=fn(_);w.codeframe=Bl(T,i)}return w})};Y.output(JSON.stringify(b,null,2))}function d(b){let{severity:S}=b;if(!HT[S])throw new Error(iJ.INVALID_SEVERITY_LEVEL);return HT[S]}function f(b,S){let w=d(b),_=b.location[0],T=pe(_.source.absoluteRef)?_.source.absoluteRef:Pr.relative(n,_.source.absoluteRef),A=fn(_),R=_.pointer?G.gray(`at ${_.pointer}`):"",P=`${T}:${A.start.line}:${A.start.col}`;return`[${S+1}] ${w(P)} ${R}
|
|
149
|
+
|
|
150
|
+
${b.message}
|
|
151
|
+
|
|
152
|
+
`+YT(b)+Bl(A,i)+`
|
|
153
|
+
|
|
154
|
+
`+lJ(n,b.from)+`${is[b.severity]} was generated by the ${G.blue(b.ruleId)} rule.
|
|
155
|
+
|
|
156
|
+
`+(b.reference?`Reference: ${G.blue(b.reference)}
|
|
157
|
+
|
|
158
|
+
`:"")}function h(b,S,w){let _=KT[b.severity];if(!is[b.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let T=_(is[b.severity].toLowerCase().padEnd(7)),{start:A}=b.location[0];return` ${`${A.line}:${A.col}`.padEnd(S)} ${T} ${b.ruleId.padEnd(w)} ${b.message}`}function y(b){if(!is[b.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let S=is[b.severity].toLowerCase(),{start:w}=b.location[0];return`| ${S} | line ${`${w.line}:${w.col}`} | [${b.ruleId}](https://redocly.com/docs/cli/rules/${b.ruleId}/) | ${b.message.replaceAll(`
|
|
159
|
+
`,"<br>")} |`}function g(b){let{line:S,col:w}=b.location[0].start,_=b.severity=="warn"?"warning":"error",T=_r(b.message),A=_r(b.ruleId);Y.output(`<error line="${S}" column="${w}" severity="${_}" message="${T}" source="${A}" />
|
|
160
|
+
`)}function v(b,S){let w=b.location[0],{start:_}=fn(w),T=b.severity==="error"?"error":"failure",A=_r(b.ruleId),R=_r(b.message),P=[`Rule: ${A}`,`Severity: ${_r(b.severity)}`,`File: ${_r(S)}`,`Line: ${_.line}`,`Column: ${_.col}`];w.pointer&&P.push(`Pointer: ${_r(w.pointer)}`),P.push(`Message: ${R}`),Y.output(`<testcase classname="${A}" name="${A}" file="${_r(S)}" line="${_.line}">
|
|
161
|
+
`),Y.output(`<${T} message="${R}" type="${A}">${P.join(`
|
|
162
|
+
`)}</${T}>
|
|
163
|
+
`),Y.output(`</testcase>
|
|
164
|
+
`)}}function pJ(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])=>Hl(n.severity)-Hl(o.severity)||o.count-n.count);for(let[n,o]of r){let i=KT[o.severity],s=i(is[o.severity].toLowerCase().padEnd(7));Y.output(`${s} ${n}: ${o.count}
|
|
165
|
+
`)}Y.output(`
|
|
166
|
+
`)}function lJ(e,t){if(!t)return"";let r=Pr.relative(e,t.source.absoluteRef),n=fn(t),o=`${r}:${n.start.line}:${n.start.col}`,i=t.pointer?G.gray(`at ${t.pointer}`):"";return`referenced from ${G.blue(o)} ${i}
|
|
167
|
+
|
|
168
|
+
`}function YT(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
169
|
+
|
|
170
|
+
`:`Did you mean:
|
|
171
|
+
- ${e.suggest.slice(0,aJ).join(`
|
|
172
|
+
- `)}
|
|
173
|
+
|
|
174
|
+
`}var Ag=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(fn)};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 _r(e){return e.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"'":return"'";default:return`&#${t.charCodeAt(0)};`}})}function uJ(e,t){for(let s of e)for(let a of s.location.map(fn)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}let p=YT(s),l=s.reference?`Reference: ${s.reference}
|
|
175
|
+
|
|
176
|
+
`:"",u=s.message+(p!==""||l!==""?`
|
|
177
|
+
|
|
178
|
+
`:"")+p+l,m={title:s.ruleId,file:pe(a.source.absoluteRef)?a.source.absoluteRef:Pr.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};Y.output(`::${c} ${r(m)}::${o(u)}
|
|
179
|
+
`)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,c])=>`${a}=${i(c)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}var{theme:Fde,...dJ}=ti.properties,fJ={...ti,properties:dJ};async function WT(e){let{ref:t,externalRefResolver:r=new Mt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Kl({document:n,...e,externalRefResolver:r})}async function mJ(e){let{source:t,absoluteRef:r,externalRefResolver:n=new Mt(e.config.resolve)}=e,o=ko(t,r||"/");return Kl({document:o,...e,externalRefResolver:n})}async function Kl(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(Ji(t.source.absoluteRef)){let{lintGraphqlDocument:d}=await import("./UYZXI3NO.js");return d({document:t,config:o})}let i=sn(t.parsed),s=o.getRulesForSpecVersion(aa(i)),a=Qr(o.extendTypes(r??oo(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},p=Mo(s,o,"preprocessors",i),l=Mo(s,o,"rules",i),u=await or({rootDocument:t,rootType:a.Root,externalRefResolver:n});p.length>0&&(Bt({document:t,rootType:a.Root,normalizedVisitors:Vt(p,a),resolvedRefMap:u,ctx:c}),u=await or({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let m=Vt(l,a);return Bt({document:t,rootType:a.Root,normalizedVisitors:m,resolvedRefMap:u,ctx:c}),c.problems.map(d=>o.addProblemToIgnore(d))}async function hJ(e){let{severity:t,externalRefResolver:r=new Mt,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=Qr(e.externalConfigTypes||tp(fJ,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:it({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:ot({severity:"error"})}],a=Vt(s,i),c=n.resolvedRefMap||await or({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return Bt({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}var Tg=class extends Error{};export{bk as a,Ko as b,O as c,Ut as d,oc as e,vk as f,De as g,Ge as h,gs as i,xk as j,Bu as k,Sk as l,Je as m,rd as n,ro as o,Qr as p,F as q,Rg as r,pe as s,Or as t,oo as u,qs as v,nf as w,Um as x,T9 as y,R9 as z,O9 as A,to as B,nc as C,k1 as D,I1 as E,L1 as F,U1 as G,z1 as H,F1 as I,V1 as J,B1 as K,H1 as L,K1 as M,Lu as N,Y as O,Ur as P,aa as Q,sn as R,WE as S,Ma as T,Ji as U,$l as V,Mt as W,or as X,Vt as Y,By as Z,Bt as _,Qy as $,aW as aa,fW as ba,SA as ca,fn as da,GT as ea,cJ as fa,_r as ga,WT as ha,mJ as ia,Kl as ja,hJ as ka,Tg as la};
|
|
180
|
+
/*! Bundled license information:
|
|
181
|
+
|
|
182
|
+
js-yaml/dist/js-yaml.mjs:
|
|
183
|
+
(*! js-yaml 5.2.2 https://github.com/nodeca/js-yaml @license MIT *)
|
|
184
|
+
*/
|