@redocly/cli 2.57.0 → 2.58.1
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 +2 -0
- package/THIRD_PARTY_NOTICES +45 -23
- package/lib/chunks/{YEACSN2C.js → 263OU3EK.js} +1 -1
- package/lib/chunks/2CAHRLJ3.js +22 -0
- package/lib/chunks/{FDOONAMV.js → 4R5JMLPR.js} +1 -1
- package/lib/chunks/{GVJFU4AP.js → 4U5QHDPF.js} +1 -1
- package/lib/chunks/{MZWBJKK2.js → 4WEATF5W.js} +1 -1
- package/lib/chunks/{7EB22KXX.js → 4Y6NCJUT.js} +1 -1
- package/lib/chunks/{XYKNLM5G.js → 5TPCSTMC.js} +1 -1
- package/lib/chunks/{R2FG6TUX.js → 6MXKU6BN.js} +1 -1
- package/lib/chunks/{OR3KBRCI.js → 6NXEK35A.js} +1 -1
- package/lib/chunks/6VBDC3HP.js +13 -0
- package/lib/chunks/{J3DL5HGI.js → 7HGHXQBL.js} +1 -1
- package/lib/chunks/{GHOLYNZA.js → 7INWM6QM.js} +1 -1
- package/lib/chunks/{VBHLPG5Q.js → AW5K6TIG.js} +1 -1
- package/lib/chunks/{H5OX3UOD.js → B2Q7DOT4.js} +1 -1
- package/lib/chunks/{UXFJO2OQ.js → BNNOQCQA.js} +1 -1
- package/lib/chunks/{XTTR5PBC.js → BQBQIRKC.js} +1 -1
- package/lib/chunks/{CWEET26O.js → BWDHENL3.js} +1 -1
- package/lib/chunks/{P7A7BCIN.js → CMHJY4T2.js} +1 -1
- package/lib/chunks/{LUW2ZJJO.js → CTTC32GG.js} +1 -1
- package/lib/chunks/{LI6IH6DJ.js → DEZGXWTS.js} +1 -1
- package/lib/chunks/{F57WBWGV.js → DTH2KLMU.js} +2 -2
- package/lib/chunks/{VT3BHT6S.js → ENBAORPS.js} +3 -3
- package/lib/chunks/{VIPV4IEH.js → FYDETXDC.js} +1 -1
- package/lib/chunks/{YDVOCOBI.js → GACZ2YWU.js} +1 -1
- package/lib/chunks/H4NHEW6K.js +9 -0
- package/lib/chunks/H4VN2RX3.js +7 -0
- package/lib/chunks/{ZVXAH4QD.js → H67F6VQQ.js} +1 -1
- package/lib/chunks/{65AQJO4M.js → IBYLYDST.js} +2 -2
- package/lib/chunks/{AOCVSFC3.js → IXAUPJML.js} +1 -1
- package/lib/chunks/JD3HIQIK.js +193 -0
- package/lib/chunks/{VUU57INZ.js → JFQX5N4D.js} +1 -1
- package/lib/chunks/{664FDTDV.js → JIN2S34E.js} +1 -1
- package/lib/chunks/{5FVKAWNE.js → K3GO5B32.js} +1 -1
- package/lib/chunks/{S5PUZGYS.js → K4HCHGLF.js} +1 -1
- package/lib/chunks/{3QGJWJKQ.js → K4MJBKZB.js} +1 -1
- package/lib/chunks/{YMDFCK3F.js → KIUUH6YY.js} +1 -1
- package/lib/chunks/{4SXCDBB7.js → KMRFAGWI.js} +1 -1
- package/lib/chunks/{SRCGYHDN.js → KRKCMWGM.js} +1 -1
- package/lib/chunks/{MKS4O6F4.js → LHKIMOHX.js} +2 -2
- package/lib/chunks/LRFPMBTV.js +7 -0
- package/lib/chunks/{X5NXRMUW.js → M7T6N7AK.js} +1 -1
- package/lib/chunks/ML6MFXCA.js +7 -0
- package/lib/chunks/{VE7VT5PT.js → MSKEZAFV.js} +1 -1
- package/lib/chunks/{D7WNH6Z5.js → MULE7RHG.js} +1 -1
- package/lib/chunks/{WKCOTH3C.js → MVXFJBMU.js} +1 -1
- package/lib/chunks/NMS2HUB3.js +7 -0
- package/lib/chunks/{GEWI247R.js → NX3RWANU.js} +1 -1
- package/lib/chunks/{EDU3YBRA.js → PI42YPSD.js} +1 -1
- package/lib/chunks/{52MXI4PU.js → PJXZKT3O.js} +1 -1
- package/lib/chunks/{Y2AFRRAT.js → PY4MYMQT.js} +1 -1
- package/lib/chunks/{DMW5VJBT.js → PZF2WPD3.js} +1 -1
- package/lib/chunks/Q4ESEW3O.js +160 -0
- package/lib/chunks/{YOBULQYM.js → QK7R3ZTY.js} +1 -1
- package/lib/chunks/{ZFJHZEI3.js → R2IHROCG.js} +1 -1
- package/lib/chunks/{N2GTHB37.js → ROQ7FTVG.js} +1 -1
- package/lib/chunks/RVRYLTME.js +17 -0
- package/lib/chunks/{ZBOUASE7.js → RW4XUFPU.js} +1 -1
- package/lib/chunks/SQUNMRDS.js +9 -0
- package/lib/chunks/T2G7FRCU.js +23 -0
- package/lib/chunks/{4HG5PCQA.js → TDNSQRQT.js} +1 -1
- package/lib/chunks/{QDSAT32N.js → TGAC4ILD.js} +1 -1
- package/lib/chunks/{7XKYPQPI.js → URZNERQS.js} +1 -1
- package/lib/chunks/{F5V42ZYY.js → V2PTVECL.js} +1 -1
- package/lib/chunks/{4JBK2BSL.js → VJQJVOIN.js} +1 -1
- package/lib/chunks/{IDI3SURO.js → WDWS64N7.js} +1 -1
- package/lib/chunks/{NALRPITK.js → WSDNWUOV.js} +1 -1
- package/lib/chunks/{JMFIKCPX.js → WYZDPMVU.js} +1 -1
- package/lib/chunks/{5UDC2SWY.js → XTW63JDM.js} +1 -1
- package/lib/chunks/YURX7H3N.js +15 -0
- package/lib/chunks/{DT66L2TO.js → YZRKJF2V.js} +1 -1
- package/lib/chunks/Z7JI42WA.js +31 -0
- package/lib/chunks/ZIIE7LXR.js +34 -0
- package/lib/chunks/index.aff +205 -0
- package/lib/chunks/index.dic +49569 -0
- package/lib/eject-assets/generators/cli/docs.ts +1 -1
- package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
- package/lib/eject-assets/generators/cli/index.ts +2 -2
- package/lib/eject-assets/generators/cli/render.ts +1 -1
- package/lib/eject-assets/generators/go/client.ts +1 -1
- package/lib/eject-assets/generators/go/descriptor.ts +1 -1
- package/lib/eject-assets/generators/go/index.ts +2 -2
- package/lib/eject-assets/generators/go/models.ts +1 -1
- package/lib/eject-assets/generators/go/naming.ts +1 -1
- package/lib/eject-assets/generators/go/operations.ts +1 -1
- package/lib/eject-assets/generators/go/pagination.ts +1 -1
- package/lib/eject-assets/generators/go/types.ts +1 -1
- package/lib/eject-assets/generators/mock/faker.ts +1 -1
- package/lib/eject-assets/generators/mock/index.ts +2 -2
- package/lib/eject-assets/generators/mock/render.ts +1 -1
- package/lib/eject-assets/generators/mock/sample.ts +1 -1
- package/lib/eject-assets/generators/mock/values.ts +1 -1
- package/lib/eject-assets/generators/php/client.ts +1 -1
- package/lib/eject-assets/generators/php/descriptor.ts +1 -1
- package/lib/eject-assets/generators/php/index.ts +2 -2
- package/lib/eject-assets/generators/php/models.ts +1 -1
- package/lib/eject-assets/generators/php/naming.ts +1 -1
- package/lib/eject-assets/generators/php/operations.ts +1 -1
- package/lib/eject-assets/generators/php/pagination.ts +1 -1
- package/lib/eject-assets/generators/php/types.ts +1 -1
- package/lib/eject-assets/generators/python/client.ts +1 -1
- package/lib/eject-assets/generators/python/descriptor.ts +1 -1
- package/lib/eject-assets/generators/python/index.ts +2 -2
- package/lib/eject-assets/generators/python/models.ts +1 -1
- package/lib/eject-assets/generators/python/naming.ts +1 -1
- package/lib/eject-assets/generators/python/operations.ts +1 -1
- package/lib/eject-assets/generators/python/pagination.ts +1 -1
- package/lib/eject-assets/generators/python/types.ts +1 -1
- package/lib/eject-assets/generators/swr/index.ts +2 -2
- package/lib/eject-assets/generators/swr/render.ts +1 -1
- package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
- package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
- package/lib/eject-assets/generators/transformers/index.ts +2 -2
- package/lib/eject-assets/generators/transformers/render.ts +1 -1
- package/lib/eject-assets/generators/typescript/banner.ts +1 -1
- package/lib/eject-assets/generators/typescript/client.ts +1 -1
- package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
- package/lib/eject-assets/generators/typescript/index.ts +2 -2
- package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
- package/lib/eject-assets/generators/typescript/operations.ts +1 -1
- package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
- package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
- package/lib/eject-assets/generators/typescript/types.ts +1 -1
- package/lib/eject-assets/generators/zod/index.ts +2 -2
- package/lib/eject-assets/generators/zod/schemas.ts +1 -1
- package/lib/index.js +66 -61
- package/package.json +1 -1
- package/lib/chunks/2PGNW76R.js +0 -11
- package/lib/chunks/3I7XLHPY.js +0 -45
- package/lib/chunks/ARDTVDGR.js +0 -22
- package/lib/chunks/K2ENYHHD.js +0 -7
- package/lib/chunks/LJPUHAWE.js +0 -13
- package/lib/chunks/M4YE5ALG.js +0 -193
- package/lib/chunks/OM4VGI2Q.js +0 -9
- package/lib/chunks/VYHYEZI5.js +0 -7
- package/lib/chunks/YFI3NLJF.js +0 -9
- package/lib/chunks/YUNIBLZR.js +0 -30
package/lib/chunks/M4YE5ALG.js
DELETED
|
@@ -1,193 +0,0 @@
|
|
|
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 St,b as Ni,c as iq}from"./NEWT5A6S.js";import{a as Wd,c as $,d as oq,e as an}from"./RFWIIJFG.js";var Jd=$((Yd,Qd)=>{(function(e,t){typeof Wd=="function"&&typeof Yd=="object"&&typeof Qd=="object"?Qd.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(Yd,function(){var e=[],t=[],r={},n={},o={};function i(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function s(m,h){return m===h?h:m===m.toLowerCase()?h.toLowerCase():m===m.toUpperCase()?h.toUpperCase():m[0]===m[0].toUpperCase()?h.charAt(0).toUpperCase()+h.substr(1).toLowerCase():h.toLowerCase()}function a(m,h){return m.replace(/\$(\d{1,2})/g,function(y,b){return h[b]||""})}function c(m,h){return m.replace(h[0],function(y,b){var x=a(h[1],arguments);return s(y===""?m[b-1]:y,x)})}function p(m,h,y){if(!m.length||r.hasOwnProperty(m))return h;for(var b=y.length;b--;){var x=y[b];if(x[0].test(h))return c(h,x)}return h}function l(m,h,y){return function(b){var x=b.toLowerCase();return h.hasOwnProperty(x)?s(b,x):m.hasOwnProperty(x)?s(b,m[x]):p(x,b,y)}}function u(m,h,y,b){return function(x){var w=x.toLowerCase();return h.hasOwnProperty(w)?!0:m.hasOwnProperty(w)?!1:p(w,w,y)===w}}function f(m,h,y){var b=h===1?f.singular(m):f.plural(m);return(y?h+" ":"")+b}return f.plural=l(o,n,e),f.isPlural=u(o,n,e),f.singular=l(n,o,t),f.isSingular=u(n,o,t),f.addPluralRule=function(m,h){e.push([i(m),h])},f.addSingularRule=function(m,h){t.push([i(m),h])},f.addUncountableRule=function(m){if(typeof m=="string"){r[m.toLowerCase()]=!0;return}f.addPluralRule(m,"$0"),f.addSingularRule(m,"$0")},f.addIrregularRule=function(m,h){h=h.toLowerCase(),m=m.toLowerCase(),o[m]=h,n[h]=m},[["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(m){return f.addIrregularRule(m[0],m[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(m){return f.addPluralRule(m[0],m[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(m){return f.addSingularRule(m[0],m[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(f.addUncountableRule),f})});var wa=$((poe,Hx)=>{"use strict";var Fx="[^\\\\/]",dF="(?=.)",zx="[^/]",rm="(?:\\/|$)",Vx="(?:^|\\/)",nm=`\\.{1,2}${rm}`,fF="(?!\\.)",mF=`(?!${Vx}${nm})`,hF=`(?!\\.{0,1}${rm})`,yF=`(?!${nm})`,gF="[^.\\/]",vF=`${zx}*?`,bF="/",Bx={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:dF,QMARK:zx,END_ANCHOR:rm,DOTS_SLASH:nm,NO_DOT:fF,NO_DOTS:mF,NO_DOT_SLASH:hF,NO_DOTS_SLASH:yF,QMARK_NO_DOT:gF,STAR:vF,START_ANCHOR:Vx,SEP:bF},xF={...Bx,SLASH_LITERAL:"[\\\\/]",QMARK:Fx,STAR:`${Fx}*?`,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:"\\"},SF={__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"};Hx.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:SF,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?xF:Bx}}});var _a=$(nr=>{"use strict";var{REGEX_BACKSLASH:wF,REGEX_REMOVE_BACKSLASH:_F,REGEX_SPECIAL_CHARS:PF,REGEX_SPECIAL_CHARS_GLOBAL:$F}=wa();nr.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);nr.hasRegexChars=e=>PF.test(e);nr.isRegexChar=e=>e.length===1&&nr.hasRegexChars(e);nr.escapeRegex=e=>e.replace($F,"\\$1");nr.toPosixSlashes=e=>e.replace(wF,"/");nr.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};nr.removeBackslashes=e=>e.replace(_F,t=>t==="\\"?"":t);nr.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?nr.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};nr.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};nr.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};nr.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var Zx=$((uoe,Xx)=>{"use strict";var Kx=_a(),{CHAR_ASTERISK:om,CHAR_AT:EF,CHAR_BACKWARD_SLASH:Pa,CHAR_COMMA:AF,CHAR_DOT:im,CHAR_EXCLAMATION_MARK:sm,CHAR_FORWARD_SLASH:Jx,CHAR_LEFT_CURLY_BRACE:am,CHAR_LEFT_PARENTHESES:cm,CHAR_LEFT_SQUARE_BRACKET:TF,CHAR_PLUS:RF,CHAR_QUESTION_MARK:Gx,CHAR_RIGHT_CURLY_BRACE:OF,CHAR_RIGHT_PARENTHESES:Wx,CHAR_RIGHT_SQUARE_BRACKET:kF}=wa(),Yx=e=>e===Jx||e===Pa,Qx=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},IF=(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,f=!1,m=!1,h=!1,y=!1,b=!1,x=!1,w=!1,S=!1,E=!1,P=!1,T=0,N,I,O={value:"",depth:0,isGlob:!1},A=()=>p>=n,ie=()=>c.charCodeAt(p+1),X=()=>(N=I,c.charCodeAt(++p));for(;p<n;){I=X();let Pe;if(I===Pa){w=O.backslashes=!0,I=X(),I===am&&(x=!0);continue}if(x===!0||I===am){for(T++;A()!==!0&&(I=X());){if(I===Pa){w=O.backslashes=!0,X();continue}if(I===am){T++;continue}if(x!==!0&&I===im&&(I=X())===im){if(f=O.isBrace=!0,h=O.isGlob=!0,P=!0,o===!0)continue;break}if(x!==!0&&I===AF){if(f=O.isBrace=!0,h=O.isGlob=!0,P=!0,o===!0)continue;break}if(I===OF&&(T--,T===0)){x=!1,f=O.isBrace=!0,P=!0;break}}if(o===!0)continue;break}if(I===Jx){if(i.push(p),s.push(O),O={value:"",depth:0,isGlob:!1},P===!0)continue;if(N===im&&p===l+1){l+=2;continue}u=p+1;continue}if(r.noext!==!0&&(I===RF||I===EF||I===om||I===Gx||I===sm)===!0&&ie()===cm){if(h=O.isGlob=!0,y=O.isExtglob=!0,P=!0,I===sm&&p===l&&(E=!0),o===!0){for(;A()!==!0&&(I=X());){if(I===Pa){w=O.backslashes=!0,I=X();continue}if(I===Wx){h=O.isGlob=!0,P=!0;break}}continue}break}if(I===om){if(N===om&&(b=O.isGlobstar=!0),h=O.isGlob=!0,P=!0,o===!0)continue;break}if(I===Gx){if(h=O.isGlob=!0,P=!0,o===!0)continue;break}if(I===TF){for(;A()!==!0&&(Pe=X());){if(Pe===Pa){w=O.backslashes=!0,X();continue}if(Pe===kF){m=O.isBracket=!0,h=O.isGlob=!0,P=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&I===sm&&p===l){S=O.negated=!0,l++;continue}if(r.noparen!==!0&&I===cm){if(h=O.isGlob=!0,o===!0){for(;A()!==!0&&(I=X());){if(I===cm){w=O.backslashes=!0,I=X();continue}if(I===Wx){P=!0;break}}continue}break}if(h===!0){if(P=!0,o===!0)continue;break}}r.noext===!0&&(y=!1,h=!1);let de=c,q="",j="";l>0&&(q=c.slice(0,l),c=c.slice(l),u-=l),de&&h===!0&&u>0?(de=c.slice(0,u),j=c.slice(u)):h===!0?(de="",j=c):de=c,de&&de!==""&&de!=="/"&&de!==c&&Yx(de.charCodeAt(de.length-1))&&(de=de.slice(0,-1)),r.unescape===!0&&(j&&(j=Kx.removeBackslashes(j)),de&&w===!0&&(de=Kx.removeBackslashes(de)));let ut={prefix:q,input:e,start:l,base:de,glob:j,isBrace:f,isBracket:m,isGlob:h,isExtglob:y,isGlobstar:b,negated:S,negatedExtglob:E};if(r.tokens===!0&&(ut.maxDepth=0,Yx(I)||s.push(O),ut.tokens=s),r.parts===!0||r.tokens===!0){let Pe;for(let oe=0;oe<i.length;oe++){let Qe=Pe?Pe+1:l,Le=i[oe],we=e.slice(Qe,Le);r.tokens&&(oe===0&&l!==0?(s[oe].isPrefix=!0,s[oe].value=q):s[oe].value=we,Qx(s[oe]),ut.maxDepth+=s[oe].depth),(oe!==0||we!=="")&&a.push(we),Pe=Le}if(Pe&&Pe+1<e.length){let oe=e.slice(Pe+1);a.push(oe),r.tokens&&(s[s.length-1].value=oe,Qx(s[s.length-1]),ut.maxDepth+=s[s.length-1].depth)}ut.slashes=i,ut.parts=a}return ut};Xx.exports=IF});var oS=$((doe,nS)=>{"use strict";var $a=wa(),yr=_a(),{MAX_LENGTH:Ap,POSIX_REGEX_SOURCE:CF,REGEX_NON_SPECIAL_CHARS:qF,REGEX_SPECIAL_CHARS_BACKREF:NF,REPLACEMENTS:eS}=$a,jF=(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=>yr.escapeRegex(o)).join("..")}return r},Zi=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,tS=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},MF=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},rS=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(MF(t))return t.replace(/\\(.)/g,"$1")},DF=e=>{let t=e.map(rS).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},pm=(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}}}}},LF=e=>{let t=0,r=[];for(;t<e.length;){let o=pm(e.slice(t),!1);if(!o||o.type!=="*")return;let i=tS(o.body).map(a=>a.trim());if(i.length!==1)return;let s=rS(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?yr.escapeRegex(r[0]):`[${r.map(o=>yr.escapeRegex(o)).join("")}]`}*`},UF=e=>{let t=0,r=e.trim(),n=pm(r);for(;n;)t++,r=n.body.trim(),n=pm(r);return t},FF=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:$a.DEFAULT_MAX_EXTGLOB_RECURSION,n=tS(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||DF(n)))return{risky:!0};for(let o of n){let i=LF(o);if(i)return{risky:!0,safeOutput:i};if(UF(o)>r)return{risky:!0}}return{risky:!1}},lm=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=eS[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Ap,r.maxLength):Ap,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=$a.globChars(r.windows),p=$a.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:m,DOTS_SLASH:h,NO_DOT:y,NO_DOT_SLASH:b,NO_DOTS_SLASH:x,QMARK:w,QMARK_NO_DOT:S,STAR:E,START_ANCHOR:P}=c,T=M=>`(${a}(?:(?!${P}${M.dot?h:l}).)*?)`,N=r.dot?"":y,I=r.dot?w:S,O=r.bash===!0?T(r):E;r.capture&&(O=`(${O})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let A={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=yr.removePrefix(e,A),o=e.length;let ie=[],X=[],de=[],q=i,j,ut=()=>A.index===o-1,Pe=A.peek=(M=1)=>e[A.index+M],oe=A.advance=()=>e[++A.index]||"",Qe=()=>e.slice(A.index+1),Le=(M="",se=0)=>{A.consumed+=M,A.index+=se},we=M=>{A.output+=M.output!=null?M.output:M.value,Le(M.value)},zt=()=>{let M=1;for(;Pe()==="!"&&(Pe(2)!=="("||Pe(3)==="?");)oe(),A.start++,M++;return M%2===0?!1:(A.negated=!0,A.start++,!0)},nt=M=>{A[M]++,de.push(M)},rt=M=>{A[M]--,de.pop()},ee=M=>{if(q.type==="globstar"){let se=A.braces>0&&(M.type==="comma"||M.type==="brace"),D=M.extglob===!0||ie.length&&(M.type==="pipe"||M.type==="paren");M.type!=="slash"&&M.type!=="paren"&&!se&&!D&&(A.output=A.output.slice(0,-q.output.length),q.type="star",q.value="*",q.output=O,A.output+=q.output)}if(ie.length&&M.type!=="paren"&&(ie[ie.length-1].inner+=M.value),(M.value||M.output)&&we(M),q&&q.type==="text"&&M.type==="text"){q.output=(q.output||q.value)+M.value,q.value+=M.value;return}M.prev=q,s.push(M),q=M},Zt=(M,se)=>{let D={...p[se],conditions:1,inner:""};D.prev=q,D.parens=A.parens,D.output=A.output,D.startIndex=A.index,D.tokensIndex=s.length;let H=(r.capture?"(":"")+D.open;nt("parens"),ee({type:M,value:se,output:A.output?"":m}),ee({type:"paren",extglob:!0,value:oe(),output:H}),ie.push(D)},K=M=>{let se=e.slice(M.startIndex,A.index+1),D=e.slice(M.startIndex+2,A.index),H=FF(D,r);if((M.type==="plus"||M.type==="star")&&H.risky){let Re=H.safeOutput?(M.output?"":m)+(r.capture?`(${H.safeOutput})`:H.safeOutput):void 0,xr=s[M.tokensIndex];xr.type="text",xr.value=se,xr.output=Re||yr.escapeRegex(se);for(let Sr=M.tokensIndex+1;Sr<s.length;Sr++)s[Sr].value="",s[Sr].output="",delete s[Sr].suffix;A.output=M.output+xr.output,A.backtrack=!0,ee({type:"paren",extglob:!0,value:j,output:""}),rt("parens");return}let _e=M.close+(r.capture?")":""),Je;if(M.type==="negate"){let Re=O;if(M.inner&&M.inner.length>1&&M.inner.includes("/")&&(Re=T(r)),(Re!==O||ut()||/^\)+$/.test(Qe()))&&(_e=M.close=`)$))${Re}`),M.inner.includes("*")&&(Je=Qe())&&/^\.[^\\/.]+$/.test(Je)){let xr=lm(Je,{...t,fastpaths:!1}).output;_e=M.close=`)${xr})${Re})`}M.prev.type==="bos"&&(A.negatedExtglob=!0)}ee({type:"paren",extglob:!0,value:j,output:_e}),rt("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let M=!1,se=e.replace(NF,(D,H,_e,Je,Re,xr)=>Je==="\\"?(M=!0,D):Je==="?"?H?H+Je+(Re?w.repeat(Re.length):""):xr===0?I+(Re?w.repeat(Re.length):""):w.repeat(_e.length):Je==="."?l.repeat(_e.length):Je==="*"?H?H+Je+(Re?O:""):O:H?D:`\\${D}`);return M===!0&&(r.unescape===!0?se=se.replace(/\\/g,""):se=se.replace(/\\+/g,D=>D.length%2===0?"\\\\":D?"\\":"")),se===e&&r.contains===!0?(A.output=e,A):(A.output=yr.wrapOutput(se,A,t),A)}for(;!ut();){if(j=oe(),j==="\0")continue;if(j==="\\"){let D=Pe();if(D==="/"&&r.bash!==!0||D==="."||D===";")continue;if(!D){j+="\\",ee({type:"text",value:j});continue}let H=/^\\+/.exec(Qe()),_e=0;if(H&&H[0].length>2&&(_e=H[0].length,A.index+=_e,_e%2!==0&&(j+="\\")),r.unescape===!0?j=oe():j+=oe(),A.brackets===0){ee({type:"text",value:j});continue}}if(A.brackets>0&&(j!=="]"||q.value==="["||q.value==="[^")){if(r.posix!==!1&&j===":"){let D=q.value.slice(1);if(D.includes("[")&&(q.posix=!0,D.includes(":"))){let H=q.value.lastIndexOf("["),_e=q.value.slice(0,H),Je=q.value.slice(H+2),Re=CF[Je];if(Re){q.value=_e+Re,A.backtrack=!0,oe(),!i.output&&s.indexOf(q)===1&&(i.output=m);continue}}}(j==="["&&Pe()!==":"||j==="-"&&Pe()==="]")&&(j=`\\${j}`),j==="]"&&(q.value==="["||q.value==="[^")&&(j=`\\${j}`),r.posix===!0&&j==="!"&&q.value==="["&&(j="^"),q.value+=j,we({value:j});continue}if(A.quotes===1&&j!=='"'){j=yr.escapeRegex(j),q.value+=j,we({value:j});continue}if(j==='"'){A.quotes=A.quotes===1?0:1,r.keepQuotes===!0&&ee({type:"text",value:j});continue}if(j==="("){nt("parens"),ee({type:"paren",value:j});continue}if(j===")"){if(A.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Zi("opening","("));let D=ie[ie.length-1];if(D&&A.parens===D.parens+1){K(ie.pop());continue}ee({type:"paren",value:j,output:A.parens?")":"\\)"}),rt("parens");continue}if(j==="["){if(r.nobracket===!0||!Qe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Zi("closing","]"));j=`\\${j}`}else nt("brackets");ee({type:"bracket",value:j});continue}if(j==="]"){if(r.nobracket===!0||q&&q.type==="bracket"&&q.value.length===1){ee({type:"text",value:j,output:`\\${j}`});continue}if(A.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Zi("opening","["));ee({type:"text",value:j,output:`\\${j}`});continue}rt("brackets");let D=q.value.slice(1);if(q.posix!==!0&&D[0]==="^"&&!D.includes("/")&&(j=`/${j}`),q.value+=j,we({value:j}),r.literalBrackets===!1||yr.hasRegexChars(D))continue;let H=yr.escapeRegex(q.value);if(A.output=A.output.slice(0,-q.value.length),r.literalBrackets===!0){A.output+=H,q.value=H;continue}q.value=`(${a}${H}|${q.value})`,A.output+=q.value;continue}if(j==="{"&&r.nobrace!==!0){nt("braces");let D={type:"brace",value:j,output:"(",outputIndex:A.output.length,tokensIndex:A.tokens.length};X.push(D),ee(D);continue}if(j==="}"){let D=X[X.length-1];if(r.nobrace===!0||!D){ee({type:"text",value:j,output:j});continue}let H=")";if(D.dots===!0){let _e=s.slice(),Je=[];for(let Re=_e.length-1;Re>=0&&(s.pop(),_e[Re].type!=="brace");Re--)_e[Re].type!=="dots"&&Je.unshift(_e[Re].value);H=jF(Je,r),A.backtrack=!0}if(D.comma!==!0&&D.dots!==!0){let _e=A.output.slice(0,D.outputIndex),Je=A.tokens.slice(D.tokensIndex);D.value=D.output="\\{",j=H="\\}",A.output=_e;for(let Re of Je)A.output+=Re.output||Re.value}ee({type:"brace",value:j,output:H}),rt("braces"),X.pop();continue}if(j==="|"){ie.length>0&&ie[ie.length-1].conditions++,ee({type:"text",value:j});continue}if(j===","){let D=j,H=X[X.length-1];H&&de[de.length-1]==="braces"&&(H.comma=!0,D="|"),ee({type:"comma",value:j,output:D});continue}if(j==="/"){if(q.type==="dot"&&A.index===A.start+1){A.start=A.index+1,A.consumed="",A.output="",s.pop(),q=i;continue}ee({type:"slash",value:j,output:f});continue}if(j==="."){if(A.braces>0&&q.type==="dot"){q.value==="."&&(q.output=l);let D=X[X.length-1];q.type="dots",q.output+=j,q.value+=j,D.dots=!0;continue}if(A.braces+A.parens===0&&q.type!=="bos"&&q.type!=="slash"){ee({type:"text",value:j,output:l});continue}ee({type:"dot",value:j,output:l});continue}if(j==="?"){if(!(q&&q.value==="(")&&r.noextglob!==!0&&Pe()==="("&&Pe(2)!=="?"){Zt("qmark",j);continue}if(q&&q.type==="paren"){let H=Pe(),_e=j;(q.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(Qe()))&&(_e=`\\${j}`),ee({type:"text",value:j,output:_e});continue}if(r.dot!==!0&&(q.type==="slash"||q.type==="bos")){ee({type:"qmark",value:j,output:S});continue}ee({type:"qmark",value:j,output:w});continue}if(j==="!"){if(r.noextglob!==!0&&Pe()==="("&&(Pe(2)!=="?"||!/[!=<:]/.test(Pe(3)))){Zt("negate",j);continue}if(r.nonegate!==!0&&A.index===0){zt();continue}}if(j==="+"){if(r.noextglob!==!0&&Pe()==="("&&Pe(2)!=="?"){Zt("plus",j);continue}if(q&&q.value==="("||r.regex===!1){ee({type:"plus",value:j,output:u});continue}if(q&&(q.type==="bracket"||q.type==="paren"||q.type==="brace")||A.parens>0){ee({type:"plus",value:j});continue}ee({type:"plus",value:u});continue}if(j==="@"){if(r.noextglob!==!0&&Pe()==="("&&Pe(2)!=="?"){ee({type:"at",extglob:!0,value:j,output:""});continue}ee({type:"text",value:j});continue}if(j!=="*"){(j==="$"||j==="^")&&(j=`\\${j}`);let D=qF.exec(Qe());D&&(j+=D[0],A.index+=D[0].length),ee({type:"text",value:j});continue}if(q&&(q.type==="globstar"||q.star===!0)){q.type="star",q.star=!0,q.value+=j,q.output=O,A.backtrack=!0,A.globstar=!0,Le(j);continue}let M=Qe();if(r.noextglob!==!0&&/^\([^?]/.test(M)){Zt("star",j);continue}if(q.type==="star"){if(r.noglobstar===!0){Le(j);continue}let D=q.prev,H=D.prev,_e=D.type==="slash"||D.type==="bos",Je=H&&(H.type==="star"||H.type==="globstar");if(r.bash===!0&&(!_e||M[0]&&M[0]!=="/")){ee({type:"star",value:j,output:""});continue}let Re=A.braces>0&&(D.type==="comma"||D.type==="brace"),xr=ie.length&&(D.type==="pipe"||D.type==="paren");if(!_e&&D.type!=="paren"&&!Re&&!xr){ee({type:"star",value:j,output:""});continue}for(;M.slice(0,3)==="/**";){let Sr=e[A.index+4];if(Sr&&Sr!=="/")break;M=M.slice(3),Le("/**",3)}if(D.type==="bos"&&ut()){q.type="globstar",q.value+=j,q.output=T(r),A.output=q.output,A.globstar=!0,Le(j);continue}if(D.type==="slash"&&D.prev.type!=="bos"&&!Je&&ut()){A.output=A.output.slice(0,-(D.output+q.output).length),D.output=`(?:${D.output}`,q.type="globstar",q.output=T(r)+(r.strictSlashes?")":"|$)"),q.value+=j,A.globstar=!0,A.output+=D.output+q.output,Le(j);continue}if(D.type==="slash"&&D.prev.type!=="bos"&&M[0]==="/"){let Sr=M[1]!==void 0?"|$":"";A.output=A.output.slice(0,-(D.output+q.output).length),D.output=`(?:${D.output}`,q.type="globstar",q.output=`${T(r)}${f}|${f}${Sr})`,q.value+=j,A.output+=D.output+q.output,A.globstar=!0,Le(j+oe()),ee({type:"slash",value:"/",output:""});continue}if(D.type==="bos"&&M[0]==="/"){q.type="globstar",q.value+=j,q.output=`(?:^|${f}|${T(r)}${f})`,A.output=q.output,A.globstar=!0,Le(j+oe()),ee({type:"slash",value:"/",output:""});continue}A.output=A.output.slice(0,-q.output.length),q.type="globstar",q.output=T(r),q.value+=j,A.output+=q.output,A.globstar=!0,Le(j);continue}let se={type:"star",value:j,output:O};if(r.bash===!0){se.output=".*?",(q.type==="bos"||q.type==="slash")&&(se.output=N+se.output),ee(se);continue}if(q&&(q.type==="bracket"||q.type==="paren")&&r.regex===!0){se.output=j,ee(se);continue}(A.index===A.start||q.type==="slash"||q.type==="dot")&&(q.type==="dot"?(A.output+=b,q.output+=b):r.dot===!0?(A.output+=x,q.output+=x):(A.output+=N,q.output+=N),Pe()!=="*"&&(A.output+=m,q.output+=m)),ee(se)}for(;A.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Zi("closing","]"));A.output=yr.escapeLast(A.output,"["),rt("brackets")}for(;A.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Zi("closing",")"));A.output=yr.escapeLast(A.output,"("),rt("parens")}for(;A.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Zi("closing","}"));A.output=yr.escapeLast(A.output,"{"),rt("braces")}if(r.strictSlashes!==!0&&(q.type==="star"||q.type==="bracket")&&ee({type:"maybe_slash",value:"",output:`${f}?`}),A.backtrack===!0){A.output="";for(let M of A.tokens)A.output+=M.output!=null?M.output:M.value,M.suffix&&(A.output+=M.suffix)}return A};lm.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Ap,r.maxLength):Ap,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=eS[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:f,START_ANCHOR:m}=$a.globChars(r.windows),h=r.dot?l:p,y=r.dot?u:p,b=r.capture?"":"?:",x={negated:!1,prefix:""},w=r.bash===!0?".*?":f;r.capture&&(w=`(${w})`);let S=N=>N.noglobstar===!0?w:`(${b}(?:(?!${m}${N.dot?c:i}).)*?)`,E=N=>{switch(N){case"*":return`${h}${a}${w}`;case".*":return`${i}${a}${w}`;case"*.*":return`${h}${w}${i}${a}${w}`;case"*/*":return`${h}${w}${s}${a}${y}${w}`;case"**":return h+S(r);case"**/*":return`(?:${h}${S(r)}${s})?${y}${a}${w}`;case"**/*.*":return`(?:${h}${S(r)}${s})?${y}${w}${i}${a}${w}`;case"**/.*":return`(?:${h}${S(r)}${s})?${i}${a}${w}`;default:{let I=/^(.*?)\.(\w+)$/.exec(N);if(!I)return;let O=E(I[1]);return O?O+i+I[2]:void 0}}},P=yr.removePrefix(e,x),T=E(P);return T&&r.strictSlashes!==!0&&(T+=`${s}?`),T};nS.exports=lm});var aS=$((foe,sS)=>{"use strict";var zF=Zx(),um=oS(),iS=_a(),VF=wa(),BF=e=>e&&typeof e=="object"&&!Array.isArray(e),ot=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(f=>ot(f,t,r));return f=>{for(let m of l){let h=m(f);if(h)return h}return!1}}let n=BF(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?ot.compileRe(e,t):ot.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=ot(o.ignore,l,r)}let p=(l,u=!1)=>{let{isMatch:f,match:m,output:h}=ot.test(l,s,t,{glob:e,posix:i}),y={glob:e,state:a,regex:s,posix:i,input:l,output:h,match:m,isMatch:f};return typeof o.onResult=="function"&&o.onResult(y),f===!1?(y.isMatch=!1,u?y:!1):c(l)?(typeof o.onIgnore=="function"&&o.onIgnore(y),y.isMatch=!1,u?y:!1):(typeof o.onMatch=="function"&&o.onMatch(y),u?y:!0)};return r&&(p.state=a),p};ot.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?iS.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=ot.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};ot.matchBase=(e,t,r)=>(t instanceof RegExp?t:ot.makeRe(t,r)).test(iS.basename(e));ot.isMatch=(e,t,r)=>ot(t,r)(e);ot.parse=(e,t)=>Array.isArray(e)?e.map(r=>ot.parse(r,t)):um(e,{...t,fastpaths:!1});ot.scan=(e,t)=>zF(e,t);ot.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=ot.toRegex(a,t);return n===!0&&(c.state=e),c};ot.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=um.fastpaths(e,t)),o.output||(o=um(e,t)),ot.compileRe(o,t,r,n)};ot.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/$^/}};ot.constants=VF;sS.exports=ot});var uS=$((moe,lS)=>{"use strict";var cS=aS(),HF=_a();function pS(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:HF.isWindows()}),cS(e,t,r)}Object.assign(pS,cS);lS.exports=pS});var za=$(qe=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.regexpCode=qe.getEsmExportName=qe.getProperty=qe.safeStringify=qe.stringify=qe.strConcat=qe.addCodeArg=qe.str=qe._=qe.nil=qe._Code=qe.Name=qe.IDENTIFIER=qe._CodeOrName=void 0;var Ua=class{};qe._CodeOrName=Ua;qe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var Zo=class extends Ua{constructor(t){if(super(),!qe.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}}};qe.Name=Zo;var Ar=class extends Ua{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 Zo&&(r[n.str]=(r[n.str]||0)+1),r),{})}};qe._Code=Ar;qe.nil=new Ar("");function Lw(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Gm(r,t[n]),r.push(e[++n]);return new Ar(r)}qe._=Lw;var Km=new Ar("+");function Uw(e,...t){let r=[Fa(e[0])],n=0;for(;n<t.length;)r.push(Km),Gm(r,t[n]),r.push(Km,Fa(e[++n]));return zB(r),new Ar(r)}qe.str=Uw;function Gm(e,t){t instanceof Ar?e.push(...t._items):t instanceof Zo?e.push(t):e.push(HB(t))}qe.addCodeArg=Gm;function zB(e){let t=1;for(;t<e.length-1;){if(e[t]===Km){let r=VB(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function VB(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof Zo||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 Zo))return`"${e}${t.slice(1)}`}function BB(e,t){return t.emptyStr()?e:e.emptyStr()?t:Uw`${e}${t}`}qe.strConcat=BB;function HB(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Fa(Array.isArray(e)?e.join(","):e)}function KB(e){return new Ar(Fa(e))}qe.stringify=KB;function Fa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}qe.safeStringify=Fa;function GB(e){return typeof e=="string"&&qe.IDENTIFIER.test(e)?new Ar(`.${e}`):Lw`[${e}]`}qe.getProperty=GB;function WB(e){if(typeof e=="string"&&qe.IDENTIFIER.test(e))return new Ar(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}qe.getEsmExportName=WB;function YB(e){return new Ar(e.toString())}qe.regexpCode=YB});var Qm=$(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.ValueScope=ar.ValueScopeName=ar.Scope=ar.varKinds=ar.UsedValueState=void 0;var sr=za(),Wm=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},fl;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(fl||(ar.UsedValueState=fl={}));ar.varKinds={const:new sr.Name("const"),let:new sr.Name("let"),var:new sr.Name("var")};var ml=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof sr.Name?t:this.name(t)}name(t){return new sr.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}}};ar.Scope=ml;var hl=class extends sr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,sr._)`.${new sr.Name(r)}[${n}]`}};ar.ValueScopeName=hl;var QB=(0,sr._)`\n`,Ym=class extends ml{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?QB:sr.nil}}get(){return this._scope}name(t){return new hl(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,sr._)`${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=sr.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,fl.Started);let l=r(p);if(l){let u=this.opts.es5?ar.varKinds.var:ar.varKinds.const;i=(0,sr._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,sr._)`${i}${l}${this.opts._n}`;else throw new Wm(p);c.set(p,fl.Completed)})}return i}};ar.ValueScope=Ym});var te=$(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.or=he.and=he.not=he.CodeGen=he.operators=he.varKinds=he.ValueScopeName=he.ValueScope=he.Scope=he.Name=he.regexpCode=he.stringify=he.getProperty=he.nil=he.strConcat=he.str=he._=void 0;var Ae=za(),Gr=Qm(),co=za();Object.defineProperty(he,"_",{enumerable:!0,get:function(){return co._}});Object.defineProperty(he,"str",{enumerable:!0,get:function(){return co.str}});Object.defineProperty(he,"strConcat",{enumerable:!0,get:function(){return co.strConcat}});Object.defineProperty(he,"nil",{enumerable:!0,get:function(){return co.nil}});Object.defineProperty(he,"getProperty",{enumerable:!0,get:function(){return co.getProperty}});Object.defineProperty(he,"stringify",{enumerable:!0,get:function(){return co.stringify}});Object.defineProperty(he,"regexpCode",{enumerable:!0,get:function(){return co.regexpCode}});Object.defineProperty(he,"Name",{enumerable:!0,get:function(){return co.Name}});var bl=Qm();Object.defineProperty(he,"Scope",{enumerable:!0,get:function(){return bl.Scope}});Object.defineProperty(he,"ValueScope",{enumerable:!0,get:function(){return bl.ValueScope}});Object.defineProperty(he,"ValueScopeName",{enumerable:!0,get:function(){return bl.ValueScopeName}});Object.defineProperty(he,"varKinds",{enumerable:!0,get:function(){return bl.varKinds}});he.operators={GT:new Ae._Code(">"),GTE:new Ae._Code(">="),LT:new Ae._Code("<"),LTE:new Ae._Code("<="),EQ:new Ae._Code("==="),NEQ:new Ae._Code("!=="),NOT:new Ae._Code("!"),OR:new Ae._Code("||"),AND:new Ae._Code("&&"),ADD:new Ae._Code("+")};var Fn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Jm=class extends Fn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Gr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=ps(this.rhs,t,r)),this}get names(){return this.rhs instanceof Ae._CodeOrName?this.rhs.names:{}}},yl=class extends Fn{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 Ae.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ps(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Ae.Name?{}:{...this.lhs.names};return vl(t,this.rhs)}},Xm=class extends yl{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Zm=class extends Fn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},eh=class extends Fn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},th=class extends Fn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},rh=class extends Fn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=ps(this.code,t,r),this}get names(){return this.code instanceof Ae._CodeOrName?this.code.names:{}}},Va=class extends Fn{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)||(JB(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ri(t,r.names),{})}},zn=class extends Va{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},nh=class extends Va{},cs=class extends zn{};cs.kind="else";var ei=class e extends zn{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 cs(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(Fw(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=ps(this.condition,t,r),this}get names(){let t=super.names;return vl(t,this.condition),this.else&&ri(t,this.else.names),t}};ei.kind="if";var ti=class extends zn{};ti.kind="for";var oh=class extends ti{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=ps(this.iteration,t,r),this}get names(){return ri(super.names,this.iteration.names)}},ih=class extends ti{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?Gr.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=vl(super.names,this.from);return vl(t,this.to)}},gl=class extends ti{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=ps(this.iterable,t,r),this}get names(){return ri(super.names,this.iterable.names)}},Ba=class extends zn{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)}};Ba.kind="func";var Ha=class extends Va{render(t){return"return "+super.render(t)}};Ha.kind="return";var sh=class extends zn{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&&ri(t,this.catch.names),this.finally&&ri(t,this.finally.names),t}},Ka=class extends zn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ka.kind="catch";var Ga=class extends zn{render(t){return"finally"+super.render(t)}};Ga.kind="finally";var ah=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
8
|
-
`:""},this._extScope=t,this._scope=new Gr.Scope({parent:t}),this._nodes=[new nh]}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 Jm(t,i,n)),i}const(t,r,n){return this._def(Gr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Gr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Gr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new yl(t,r,n))}add(t,r){return this._leafNode(new Xm(t,he.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Ae.nil&&this._leafNode(new rh(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,Ae.addCodeArg)(r,o));return r.push("}"),new Ae._Code(r)}if(t,r,n){if(this._blockNode(new ei(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 ei(t))}else(){return this._elseNode(new cs)}endIf(){return this._endBlockNode(ei,cs)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new oh(t),r)}forRange(t,r,n,o,i=this.opts.es5?Gr.varKinds.var:Gr.varKinds.let){let s=this._scope.toName(t);return this._for(new ih(i,s,r,n),()=>o(s))}forOf(t,r,n,o=Gr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof Ae.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Ae._)`${s}.length`,a=>{this.var(i,(0,Ae._)`${s}[${a}]`),n(i)})}return this._for(new gl("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?Gr.varKinds.var:Gr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Ae._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new gl("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(ti)}label(t){return this._leafNode(new Zm(t))}break(t){return this._leafNode(new eh(t))}return(t){let r=new Ha;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ha)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new sh;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Ka(i),r(i)}return n&&(this._currNode=o.finally=new Ga,this.code(n)),this._endBlockNode(Ka,Ga)}throw(t){return this._leafNode(new th(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=Ae.nil,n,o){return this._blockNode(new Ba(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Ba)}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 ei))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}};he.CodeGen=ah;function ri(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function vl(e,t){return t instanceof Ae._CodeOrName?ri(e,t.names):e}function ps(e,t,r){if(e instanceof Ae.Name)return n(e);if(!o(e))return e;return new Ae._Code(e._items.reduce((i,s)=>(s instanceof Ae.Name&&(s=n(s)),s instanceof Ae._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 Ae._Code&&i._items.some(s=>s instanceof Ae.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function JB(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function Fw(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Ae._)`!${ch(e)}`}he.not=Fw;var XB=zw(he.operators.AND);function ZB(...e){return e.reduce(XB)}he.and=ZB;var e9=zw(he.operators.OR);function t9(...e){return e.reduce(e9)}he.or=t9;function zw(e){return(t,r)=>t===Ae.nil?r:r===Ae.nil?t:(0,Ae._)`${ch(t)} ${e} ${ch(r)}`}function ch(e){return e instanceof Ae.Name?e:(0,Ae._)`(${e})`}});var xe=$(be=>{"use strict";Object.defineProperty(be,"__esModule",{value:!0});be.checkStrictMode=be.getErrorPath=be.Type=be.useFunc=be.setEvaluated=be.evaluatedPropsToName=be.mergeEvaluated=be.eachItem=be.unescapeJsonPointer=be.escapeJsonPointer=be.escapeFragment=be.unescapeFragment=be.schemaRefOrVal=be.schemaHasRulesButRef=be.schemaHasRules=be.checkUnknownRules=be.alwaysValidSchema=be.toHash=void 0;var Ve=te(),r9=za();function n9(e){let t={};for(let r of e)t[r]=!0;return t}be.toHash=n9;function o9(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Hw(e,t),!Kw(t,e.self.RULES.all))}be.alwaysValidSchema=o9;function Hw(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]||Yw(e,`unknown keyword: "${i}"`)}be.checkUnknownRules=Hw;function Kw(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}be.schemaHasRules=Kw;function i9(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}be.schemaHasRulesButRef=i9;function s9({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ve._)`${r}`}return(0,Ve._)`${e}${t}${(0,Ve.getProperty)(n)}`}be.schemaRefOrVal=s9;function a9(e){return Gw(decodeURIComponent(e))}be.unescapeFragment=a9;function c9(e){return encodeURIComponent(lh(e))}be.escapeFragment=c9;function lh(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}be.escapeJsonPointer=lh;function Gw(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}be.unescapeJsonPointer=Gw;function p9(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}be.eachItem=p9;function Vw({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Ve.Name?(i instanceof Ve.Name?e(o,i,s):t(o,i,s),s):i instanceof Ve.Name?(t(o,s,i),i):r(i,s);return a===Ve.Name&&!(c instanceof Ve.Name)?n(o,c):c}}be.mergeEvaluated={props:Vw({mergeNames:(e,t,r)=>e.if((0,Ve._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ve._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ve._)`${r} || {}`).code((0,Ve._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Ve._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ve._)`${r} || {}`),uh(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Ww}),items:Vw({mergeNames:(e,t,r)=>e.if((0,Ve._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ve._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Ve._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ve._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Ww(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ve._)`{}`);return t!==void 0&&uh(e,r,t),r}be.evaluatedPropsToName=Ww;function uh(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ve._)`${t}${(0,Ve.getProperty)(n)}`,!0))}be.setEvaluated=uh;var Bw={};function l9(e,t){return e.scopeValue("func",{ref:t,code:Bw[t.code]||(Bw[t.code]=new r9._Code(t.code))})}be.useFunc=l9;var ph;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(ph||(be.Type=ph={}));function u9(e,t,r){if(e instanceof Ve.Name){let n=t===ph.Num;return r?n?(0,Ve._)`"[" + ${e} + "]"`:(0,Ve._)`"['" + ${e} + "']"`:n?(0,Ve._)`"/" + ${e}`:(0,Ve._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ve.getProperty)(e).toString():"/"+lh(e)}be.getErrorPath=u9;function Yw(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}be.checkStrictMode=Yw});var Kt=$(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var Pt=te(),d9={data:new Pt.Name("data"),valCxt:new Pt.Name("valCxt"),instancePath:new Pt.Name("instancePath"),parentData:new Pt.Name("parentData"),parentDataProperty:new Pt.Name("parentDataProperty"),rootData:new Pt.Name("rootData"),dynamicAnchors:new Pt.Name("dynamicAnchors"),isAllOfVariant:new Pt.Name("isAllOfVariant"),vErrors:new Pt.Name("vErrors"),errors:new Pt.Name("errors"),this:new Pt.Name("this"),self:new Pt.Name("self"),scope:new Pt.Name("scope"),json:new Pt.Name("json"),jsonPos:new Pt.Name("jsonPos"),jsonLen:new Pt.Name("jsonLen"),jsonPart:new Pt.Name("jsonPart")};dh.default=d9});var Wa=$(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.extendErrors=jt.resetErrorsCount=jt.reportExtraError=jt.reportError=jt.keyword$DataError=jt.keywordError=void 0;var ke=te(),xl=xe(),Gt=Kt();jt.keywordError={message:({keyword:e})=>(0,ke.str)`must pass "${e}" keyword validation`};jt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ke.str)`"${e}" keyword must be ${t} ($data)`:(0,ke.str)`"${e}" keyword is invalid ($data)`};function f9(e,t=jt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=Xw(e,t,r);n??(s||a)?Qw(i,c):Jw(o,(0,ke._)`[${c}]`)}jt.reportError=f9;function m9(e,t=jt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=Xw(e,t,r);Qw(o,a),i||s||Jw(n,Gt.default.vErrors)}jt.reportExtraError=m9;function h9(e,t){e.assign(Gt.default.errors,t),e.if((0,ke._)`${Gt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ke._)`${Gt.default.vErrors}.length`,t),()=>e.assign(Gt.default.vErrors,null)))}jt.resetErrorsCount=h9;function y9({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,Gt.default.errors,a=>{e.const(s,(0,ke._)`${Gt.default.vErrors}[${a}]`),e.if((0,ke._)`${s}.instancePath === undefined`,()=>e.assign((0,ke._)`${s}.instancePath`,(0,ke.strConcat)(Gt.default.instancePath,i.errorPath))),e.assign((0,ke._)`${s}.schemaPath`,(0,ke.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,ke._)`${s}.schema`,r),e.assign((0,ke._)`${s}.data`,n))})}jt.extendErrors=y9;function Qw(e,t){let r=e.const("err",t);e.if((0,ke._)`${Gt.default.vErrors} === null`,()=>e.assign(Gt.default.vErrors,(0,ke._)`[${r}]`),(0,ke._)`${Gt.default.vErrors}.push(${r})`),e.code((0,ke._)`${Gt.default.errors}++`)}function Jw(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,ke._)`new ${e.ValidationError}(${t})`):(r.assign((0,ke._)`${n}.errors`,t),r.return(!1))}var ni={keyword:new ke.Name("keyword"),schemaPath:new ke.Name("schemaPath"),params:new ke.Name("params"),propertyName:new ke.Name("propertyName"),message:new ke.Name("message"),schema:new ke.Name("schema"),parentSchema:new ke.Name("parentSchema")};function Xw(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ke._)`{}`:g9(e,t,r)}function g9(e,t,r={}){let{gen:n,it:o}=e,i=[v9(o,r),b9(e,r)];return x9(e,t,i),n.object(...i)}function v9({errorPath:e},{instancePath:t}){let r=t?(0,ke.str)`${e}${(0,xl.getErrorPath)(t,xl.Type.Str)}`:e;return[Gt.default.instancePath,(0,ke.strConcat)(Gt.default.instancePath,r)]}function b9({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,ke.str)`${t}/${e}`;return r&&(o=(0,ke.str)`${o}${(0,xl.getErrorPath)(r,xl.Type.Str)}`),[ni.schemaPath,o]}function x9(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([ni.keyword,o],[ni.params,typeof t=="function"?t(e):t||(0,ke._)`{}`]),c.messages&&n.push([ni.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([ni.schema,s],[ni.parentSchema,(0,ke._)`${l}${u}`],[Gt.default.data,i]),p&&n.push([ni.propertyName,p])}});var e_=$(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.boolOrEmptySchema=ls.topBoolOrEmptySchema=void 0;var S9=Wa(),w9=te(),_9=Kt(),P9={message:"boolean schema is false"};function $9(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Zw(e,!1):typeof r=="object"&&r.$async===!0?t.return(_9.default.data):(t.assign((0,w9._)`${n}.errors`,null),t.return(!0))}ls.topBoolOrEmptySchema=$9;function E9(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Zw(e)):r.var(t,!0)}ls.boolOrEmptySchema=E9;function Zw(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,S9.reportError)(o,P9,void 0,t)}});var fh=$(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.getRules=us.isJSONType=void 0;var A9=["string","number","integer","boolean","null","object","array"],T9=new Set(A9);function R9(e){return typeof e=="string"&&T9.has(e)}us.isJSONType=R9;function O9(){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:{}}}us.getRules=O9});var mh=$(po=>{"use strict";Object.defineProperty(po,"__esModule",{value:!0});po.shouldUseRule=po.shouldUseGroup=po.schemaHasRulesForType=void 0;function k9({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&t_(e,n)}po.schemaHasRulesForType=k9;function t_(e,t){return t.rules.some(r=>r_(e,r))}po.shouldUseGroup=t_;function r_(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))}po.shouldUseRule=r_});var Ya=$(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.reportTypeError=Mt.checkDataTypes=Mt.checkDataType=Mt.coerceAndCheckDataType=Mt.getJSONTypes=Mt.getSchemaTypes=Mt.DataType=void 0;var I9=fh(),C9=mh(),q9=Wa(),le=te(),n_=xe(),ds;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(ds||(Mt.DataType=ds={}));function N9(e){let t=o_(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}Mt.getSchemaTypes=N9;function o_(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(I9.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Mt.getJSONTypes=o_;function j9(e,t){let{gen:r,data:n,opts:o}=e,i=M9(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,C9.schemaHasRulesForType)(e,t[0]));if(s){let a=yh(t,n,o.strictNumbers,ds.Wrong);r.if(a,()=>{i.length?D9(e,t,i):gh(e)})}return s}Mt.coerceAndCheckDataType=j9;var i_=new Set(["string","number","integer","boolean","null"]);function M9(e,t){return t?e.filter(r=>i_.has(r)||t==="array"&&r==="array"):[]}function D9(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,le._)`typeof ${o}`),a=n.let("coerced",(0,le._)`undefined`);i.coerceTypes==="array"&&n.if((0,le._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,le._)`${o}[0]`).assign(s,(0,le._)`typeof ${o}`).if(yh(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,le._)`${a} !== undefined`);for(let p of r)(i_.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),gh(e),n.endIf(),n.if((0,le._)`${a} !== undefined`,()=>{n.assign(o,a),L9(e,a)});function c(p){switch(p){case"string":n.elseIf((0,le._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,le._)`"" + ${o}`).elseIf((0,le._)`${o} === null`).assign(a,(0,le._)`""`);return;case"number":n.elseIf((0,le._)`${s} == "boolean" || ${o} === null
|
|
9
|
-
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,le._)`+${o}`);return;case"integer":n.elseIf((0,le._)`${s} === "boolean" || ${o} === null
|
|
10
|
-
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,le._)`+${o}`);return;case"boolean":n.elseIf((0,le._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,le._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,le._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,le._)`${s} === "string" || ${s} === "number"
|
|
11
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,le._)`[${o}]`)}}}function L9({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,le._)`${t} !== undefined`,()=>e.assign((0,le._)`${t}[${r}]`,n))}function hh(e,t,r,n=ds.Correct){let o=n===ds.Correct?le.operators.EQ:le.operators.NEQ,i;switch(e){case"null":return(0,le._)`${t} ${o} null`;case"array":i=(0,le._)`Array.isArray(${t})`;break;case"object":i=(0,le._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,le._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,le._)`typeof ${t} ${o} ${e}`}return n===ds.Correct?i:(0,le.not)(i);function s(a=le.nil){return(0,le.and)((0,le._)`typeof ${t} == "number"`,a,r?(0,le._)`isFinite(${t})`:le.nil)}}Mt.checkDataType=hh;function yh(e,t,r,n){if(e.length===1)return hh(e[0],t,r,n);let o,i=(0,n_.toHash)(e);if(i.array&&i.object){let s=(0,le._)`typeof ${t} != "object"`;o=i.null?s:(0,le._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=le.nil;i.number&&delete i.integer;for(let s in i)o=(0,le.and)(o,hh(s,t,r,n));return o}Mt.checkDataTypes=yh;var U9={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,le._)`{type: ${e}}`:(0,le._)`{type: ${t}}`};function gh(e){let t=F9(e);(0,q9.reportError)(t,U9)}Mt.reportTypeError=gh;function F9(e){let{gen:t,data:r,schema:n}=e,o=(0,n_.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var a_=$(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.assignDefaults=void 0;var fs=te(),z9=xe();function V9(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)s_(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>s_(e,i,o.default))}Sl.assignDefaults=V9;function s_(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,fs._)`${i}${(0,fs.getProperty)(t)}`;if(o){(0,z9.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,fs._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,fs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,fs._)`${a} = ${(0,fs.stringify)(r)}`)}});var bh=$(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.getSkipCondition=void 0;var wl=te(),vh=Kt();function B9(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,wl._)`typeof ${vh.default.this} == "object" && ${vh.default.this} && ${vh.default.this}.apiContext`;return o&&s.push((0,wl._)`${a} === "request"`),i&&s.push((0,wl._)`${a} === "response"`),(0,wl.or)(...s)}_l.getSkipCondition=B9});var Tr=$(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.validateUnion=Fe.validateArray=Fe.usePattern=Fe.callValidateCode=Fe.schemaProperties=Fe.allSchemaProperties=Fe.noPropertyInData=Fe.propertyInData=Fe.isOwnProperty=Fe.hasPropFunc=Fe.reportMissingProp=Fe.checkMissingProp=Fe.checkReportMissingProp=void 0;var Be=te(),xh=xe(),Vn=Kt(),H9=xe(),K9=bh();function G9(e,t){let{gen:r,data:n,it:o}=e;r.if(wh(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Be._)`${t}`},!0),e.error()})}Fe.checkReportMissingProp=G9;function W9({gen:e,data:t,it:{opts:r},parentSchema:n},o,i){return(0,Be.or)(...o.map(s=>{var a;return(0,Be.and)((0,Be.not)((a=(0,K9.getSkipCondition)(n,s))!==null&&a!==void 0?a:(0,Be._)`false`),wh(e,t,s,r.ownProperties),(0,Be._)`${i} = ${s}`)}))}Fe.checkMissingProp=W9;function Y9(e,t){e.setParams({missingProperty:t},!0),e.error()}Fe.reportMissingProp=Y9;function c_(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Be._)`Object.prototype.hasOwnProperty`})}Fe.hasPropFunc=c_;function Sh(e,t,r){return(0,Be._)`${c_(e)}.call(${t}, ${r})`}Fe.isOwnProperty=Sh;function Q9(e,t,r,n){let o=(0,Be._)`${t}${(0,Be.getProperty)(r)} !== undefined`;return n?(0,Be._)`${o} && ${Sh(e,t,r)}`:o}Fe.propertyInData=Q9;function wh(e,t,r,n){let o=(0,Be._)`${t}${(0,Be.getProperty)(r)} === undefined`;return n?(0,Be.or)(o,(0,Be.not)(Sh(e,t,r))):o}Fe.noPropertyInData=wh;function p_(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Fe.allSchemaProperties=p_;function J9(e,t){return p_(t).filter(r=>!(0,xh.alwaysValidSchema)(e,t[r]))}Fe.schemaProperties=J9;function X9({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,Be._)`${e}, ${t}, ${n}${o}`:t,u=[[Vn.default.instancePath,(0,Be.strConcat)(Vn.default.instancePath,i)],[Vn.default.parentData,s.parentData],[Vn.default.parentDataProperty,s.parentDataProperty],[Vn.default.rootData,Vn.default.rootData],[Vn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&u.push([Vn.default.dynamicAnchors,Vn.default.dynamicAnchors]);let f=(0,Be._)`${l}, ${r.object(...u)}`;return c!==Be.nil?(0,Be._)`${a}.call(${c}, ${f})`:(0,Be._)`${a}(${f})`}Fe.callValidateCode=X9;var Z9=(0,Be._)`new RegExp`;function eH({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,Be._)`${o.code==="new RegExp"?Z9:(0,H9.useFunc)(e,o)}(${r}, ${n})`})}Fe.usePattern=eH;function tH(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,Be._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:xh.Type.Num},i),t.if((0,Be.not)(i),a)})}}Fe.validateArray=tH;function rH(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,xh.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,Be._)`${a} || ${c}`),e.mergeValidEvaluated(u,c)||t.if((0,Be.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Fe.validateUnion=rH});var d_=$(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.validateKeywordUsage=yn.validSchemaType=yn.funcKeywordCode=yn.macroKeywordCode=void 0;var Wt=te(),oi=Kt(),nH=Tr(),oH=Wa();function iH(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=u_(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:Wt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}yn.macroKeywordCode=iH;function sH(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;cH(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=u_(n,o,p),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)y(),t.modifying&&l_(e),b(()=>e.error());else{let x=t.async?m():h();t.modifying&&l_(e),b(()=>aH(e,x))}}function m(){let x=n.let("ruleErrs",null);return n.try(()=>y((0,Wt._)`await `),w=>n.assign(u,!1).if((0,Wt._)`${w} instanceof ${c.ValidationError}`,()=>n.assign(x,(0,Wt._)`${w}.errors`),()=>n.throw(w))),x}function h(){let x=(0,Wt._)`${l}.errors`;return n.assign(x,null),y(Wt.nil),x}function y(x=t.async?(0,Wt._)`await `:Wt.nil){let w=c.opts.passContext?oi.default.this:oi.default.self,S=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,Wt._)`${x}${(0,nH.callValidateCode)(e,l,w,S)}`,t.modifying)}function b(x){var w;n.if((0,Wt.not)((w=t.valid)!==null&&w!==void 0?w:u),x)}}yn.funcKeywordCode=sH;function l_(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Wt._)`${n.parentData}[${n.parentDataProperty}]`))}function aH(e,t){let{gen:r}=e;r.if((0,Wt._)`Array.isArray(${t})`,()=>{r.assign(oi.default.vErrors,(0,Wt._)`${oi.default.vErrors} === null ? ${t} : ${oi.default.vErrors}.concat(${t})`).assign(oi.default.errors,(0,Wt._)`${oi.default.vErrors}.length`),(0,oH.extendErrors)(e)},()=>e.error())}function cH({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function u_(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,Wt.stringify)(r)})}function pH(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")}yn.validSchemaType=pH;function lH({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)}}yn.validateKeywordUsage=lH});var m_=$(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});lo.extendSubschemaMode=lo.extendSubschemaData=lo.getSubschema=void 0;var gn=te(),f_=xe();function uH(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,gn._)`${e.schemaPath}${(0,gn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,gn._)`${e.schemaPath}${(0,gn.getProperty)(t)}${(0,gn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,f_.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}lo.getSubschema=uH;function dH(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,f=a.let("data",(0,gn._)`${t.data}${(0,gn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,gn.str)`${p}${(0,f_.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,gn._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof gn.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]}}lo.extendSubschemaData=dH;function fH(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}lo.extendSubschemaMode=fH});var Qa=$((Qce,h_)=>{"use strict";h_.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 _h=$((Jce,y_)=>{"use strict";var uo=y_.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(){};Pl(t,n,o,e,"",e)};uo.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};uo.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};uo.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};uo.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 Pl(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 uo.arrayKeywords)for(var f=0;f<u.length;f++)Pl(e,t,r,u[f],o+"/"+l+"/"+f,i,o,l,n,f)}else if(l in uo.propsKeywords){if(u&&typeof u=="object")for(var m in u)Pl(e,t,r,u[m],o+"/"+l+"/"+mH(m),i,o,l,n,m)}else(l in uo.keywords||e.allKeys&&!(l in uo.skipKeywords))&&Pl(e,t,r,u,o+"/"+l,i,o,l,n)}r(n,o,i,s,a,c,p)}}function mH(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ja=$(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.getSchemaRefs=cr.resolveUrl=cr.normalizeId=cr._getFullPath=cr.getFullPath=cr.inlineRef=void 0;var hH=xe(),yH=Qa(),gH=_h(),vH=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function bH(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Ph(e):t?g_(e)<=t:!1}cr.inlineRef=bH;var xH=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Ph(e){for(let t in e){if(xH.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Ph)||typeof r=="object"&&Ph(r))return!0}return!1}function g_(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!vH.has(r)&&(typeof e[r]=="object"&&(0,hH.eachItem)(e[r],n=>t+=g_(n)),t===1/0))return 1/0}return t}function v_(e,t="",r){r!==!1&&(t=ms(t));let n=e.parse(t);return b_(e,n)}cr.getFullPath=v_;function b_(e,t){return e.serialize(t).split("#")[0]+"#"}cr._getFullPath=b_;var SH=/#\/?$/;function ms(e){return e?e.replace(SH,""):""}cr.normalizeId=ms;function wH(e,t,r){return r=ms(r),e.resolve(t,r)}cr.resolveUrl=wH;var _H=/^[a-z_][-a-z0-9._]*$/i;function PH(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=ms(e[r]||t),i={"":o},s=v_(n,o,!1),a={},c=new Set;return gH(e,{allKeys:!0},(u,f,m,h)=>{if(h===void 0)return;let y=s+f,b=i[h];typeof u[r]=="string"&&(b=x.call(this,u[r])),w.call(this,u.$anchor),w.call(this,u.$dynamicAnchor),i[f]=b;function x(S){let E=this.opts.uriResolver.resolve;if(S=ms(b?E(b,S):S),c.has(S))throw l(S);c.add(S);let P=this.refs[S];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?p(u,P.schema,S):S!==ms(y)&&(S[0]==="#"?(p(u,a[S],S),a[S]=u):this.refs[S]=y),S}function w(S){if(typeof S=="string"){if(!_H.test(S))throw new Error(`invalid anchor "${S}"`);x.call(this,`#${S}`)}}}),a;function p(u,f,m){if(f!==void 0&&!yH(u,f))throw l(m)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}cr.getSchemaRefs=PH});var hs=$(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.getData=fo.KeywordCxt=fo.validateFunctionCode=void 0;var P_=e_(),x_=Ya(),Eh=mh(),$l=Ya(),$H=a_(),Za=d_(),$h=m_(),W=te(),Z=Kt(),EH=Ja(),Bn=xe(),Xa=Wa();function AH(e){if(A_(e)&&(T_(e),E_(e))){OH(e);return}$_(e,()=>(0,P_.topBoolOrEmptySchema)(e))}fo.validateFunctionCode=AH;function $_({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,W._)`${Z.default.data}, ${Z.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${S_(r,o)}`),RH(e,o),e.code(i)}):e.func(t,(0,W._)`${Z.default.data}, ${TH(o)}`,n.$async,()=>e.code(S_(r,o)).code(i))}function TH(e){return(0,W._)`{${Z.default.instancePath}="", ${Z.default.parentData}, ${Z.default.parentDataProperty}, ${Z.default.rootData}=${Z.default.data}${e.dynamicRef?(0,W._)`, ${Z.default.dynamicAnchors}={}`:W.nil}, ${Z.default.isAllOfVariant} = 0}={}`}function RH(e,t){e.if(Z.default.valCxt,()=>{e.var(Z.default.instancePath,(0,W._)`${Z.default.valCxt}.${Z.default.instancePath}`),e.var(Z.default.parentData,(0,W._)`${Z.default.valCxt}.${Z.default.parentData}`),e.var(Z.default.parentDataProperty,(0,W._)`${Z.default.valCxt}.${Z.default.parentDataProperty}`),e.var(Z.default.rootData,(0,W._)`${Z.default.valCxt}.${Z.default.rootData}`),e.var(Z.default.isAllOfVariant,(0,W._)`${Z.default.valCxt}.${Z.default.isAllOfVariant}`),t.dynamicRef&&e.var(Z.default.dynamicAnchors,(0,W._)`${Z.default.valCxt}.${Z.default.dynamicAnchors}`)},()=>{e.var(Z.default.instancePath,(0,W._)`""`),e.var(Z.default.parentData,(0,W._)`undefined`),e.var(Z.default.parentDataProperty,(0,W._)`undefined`),e.var(Z.default.rootData,Z.default.data),e.var(Z.default.isAllOfVariant,(0,W._)`0`),t.dynamicRef&&e.var(Z.default.dynamicAnchors,(0,W._)`{}`)})}function OH(e){let{schema:t,opts:r,gen:n}=e;$_(e,()=>{r.$comment&&t.$comment&&O_(e),NH(e),n.let(Z.default.vErrors,null),n.let(Z.default.errors,0),r.unevaluated&&kH(e),R_(e),DH(e)})}function kH(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,W._)`${r}.evaluated`),t.if((0,W._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,W._)`${e.evaluated}.props`,(0,W._)`undefined`)),t.if((0,W._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,W._)`${e.evaluated}.items`,(0,W._)`undefined`))}function S_(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,W._)`/*# sourceURL=${r} */`:W.nil}function IH(e,t){if(A_(e)&&(T_(e),E_(e))){CH(e,t);return}(0,P_.boolOrEmptySchema)(e,t)}function E_({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 A_(e){return typeof e.schema!="boolean"}function CH(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&O_(e),jH(e),MH(e);let i=n.const("_errs",Z.default.errors);R_(e,i),n.var(t,(0,W._)`${i} === ${Z.default.errors}`)}function T_(e){(0,Bn.checkUnknownRules)(e),qH(e)}function R_(e,t){if(e.opts.jtd)return w_(e,[],!1,t);let r=(0,x_.getSchemaTypes)(e.schema),n=(0,x_.coerceAndCheckDataType)(e,r);w_(e,r,!n,t)}function qH(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Bn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function NH(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Bn.checkStrictMode)(e,"default is ignored in the schema root")}function jH(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,EH.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function MH(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function O_({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,W._)`${Z.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,W.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${Z.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function DH(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,W._)`${Z.default.errors} === 0`,()=>t.return(Z.default.data),()=>t.throw((0,W._)`new ${o}(${Z.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,Z.default.vErrors),i.unevaluated&&LH(e),t.return((0,W._)`${Z.default.errors} === 0`))}function LH({gen:e,evaluated:t,props:r,items:n}){r instanceof W.Name&&e.assign((0,W._)`${t}.props`,r),n instanceof W.Name&&e.assign((0,W._)`${t}.items`,n)}function w_(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,Bn.schemaHasRulesButRef)(i,l))){o.block(()=>I_(e,"$ref",l.all.$ref.definition));return}c.jtd||UH(e,t),o.block(()=>{for(let f of l.rules)u(f);u(l.post)});function u(f){(0,Eh.shouldUseGroup)(i,f)&&(f.type?(o.if((0,$l.checkDataType)(f.type,s,c.strictNumbers)),__(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,$l.reportTypeError)(e)),o.endIf()):__(e,f),a||o.if((0,W._)`${Z.default.errors} === ${n||0}`))}}function __(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,$H.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,Eh.shouldUseRule)(n,s)||i(n,s))&&I_(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 UH(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(FH(e,t),e.opts.allowUnionTypes||zH(e,t),VH(e,e.dataTypes))}function FH(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{k_(e.dataTypes,r)||Ah(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),HH(e,t)}}function zH(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Ah(e,"use allowUnionTypes to allow union type keyword")}function VH(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Eh.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>BH(t,s))&&Ah(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function BH(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function k_(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function HH(e,t){let r=[];for(let n of e.dataTypes)k_(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Ah(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Bn.checkStrictMode)(e,t,e.opts.strictTypes)}var El=class{constructor(t,r,n){if((0,Za.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,Bn.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",C_(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Za.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,W.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,W.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,W._)`${r} !== undefined && (${(0,W.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?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=W.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=W.nil,r=W.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,W.or)((0,W._)`${o} === undefined`,r)),t!==W.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==W.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,W.or)(s(),a());function s(){if(n.length){if(!(r instanceof W.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,W._)`${(0,$l.checkDataTypes)(c,r,i.opts.strictNumbers,$l.DataType.Wrong)}`}return W.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,W._)`!${c}(${r})`}return W.nil}}subschema(t,r,n){let o=(0,$h.getSubschema)(this.it,t);(0,$h.extendSubschemaData)(o,this.it,t),(0,$h.extendSubschemaMode)(o,t);let i={...this.it,...o,items:void 0,props:void 0,isAllOfVariant:n};return IH(i,r),i}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Bn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Bn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,W.Name)),!0}};fo.KeywordCxt=El;function I_(e,t,r,n){let o=new El(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Za.funcKeywordCode)(o,r):"macro"in r?(0,Za.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Za.funcKeywordCode)(o,r)}var KH=/^\/(?:[^~]|~0|~1)*$/,GH=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function C_(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return Z.default.rootData;if(e[0]==="/"){if(!KH.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=Z.default.rootData}else{let p=GH.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,W._)`${i}${(0,W.getProperty)((0,Bn.unescapeJsonPointer)(p))}`,s=(0,W._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}fo.getData=C_});var ec=$(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});var Th=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Rh.default=Th});var ys=$(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var Oh=Ja(),kh=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Oh.resolveUrl)(t,r,n),this.missingSchema=(0,Oh.normalizeId)((0,Oh.getFullPath)(t,this.missingRef))}};Ih.default=kh});var tc=$(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.resolveSchema=Rr.getCompilingSchema=Rr.resolveRef=Rr.compileSchema=Rr.SchemaEnv=void 0;var Wr=te(),WH=ec(),ii=Kt(),Yr=Ja(),q_=xe(),YH=hs(),gs=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,Yr.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=gs;function qh(e){let t=j_.call(this,e);if(t)return t;let r=(0,Yr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new Wr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:WH.default,code:(0,Wr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:ii.default.data,parentData:ii.default.parentData,parentDataProperty:ii.default.parentDataProperty,dataNames:[ii.default.data],dataPathArr:[Wr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Wr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Wr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Wr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,YH.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(ii.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let m=new Function(`${ii.default.self}`,`${ii.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:h,items:y}=p;m.evaluated={props:h instanceof Wr.Name?void 0:h,items:y instanceof Wr.Name?void 0:y,dynamicProps:h instanceof Wr.Name,dynamicItems:y instanceof Wr.Name},m.source&&(m.source.evaluated=(0,Wr.stringify)(m.evaluated))}return e.validate=m,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=qh;function QH(e,t,r){var n;let o=(0,Yr.resolveUrl)(this.opts.uriResolver,t,r),i=e.refs[o];if(i)return i;let s=N_.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 gs({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=N_.call(this,e,o))}if(s!==void 0)return e.refs[o]=JH.call(this,s)}Rr.resolveRef=QH;function JH(e){return(0,Yr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:qh.call(this,e)}function j_(e){for(let t of this._compilations)if(XH(t,e))return t}Rr.getCompilingSchema=j_;function XH(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function N_(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Al.call(this,e,t)}function Al(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Yr._getFullPath)(this.opts.uriResolver,r),o=(0,Yr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Ch.call(this,r,e);let i=(0,Yr.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Al.call(this,e,s);return typeof a?.schema!="object"?void 0:Ch.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||qh.call(this,s),i===(0,Yr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,Yr.resolveUrl)(this.opts.uriResolver,o,p)),new gs({schema:a,schemaId:c,root:e,baseId:o})}return Ch.call(this,r,s)}}Rr.resolveSchema=Al;var ZH=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Ch(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,q_.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!ZH.has(a)&&p&&(t=(0,Yr.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,q_.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Yr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Al.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new gs({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var M_=$((npe,e4)=>{e4.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 Uh=$((ope,B_)=>{"use strict";var t4=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),jh=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),r4=RegExp.prototype.test.bind(/^\d*$/u),si=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Mh=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),L_=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),Dh=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),n4=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),pr=new Array(256);{let e="0123456789ABCDEF";for(let t=0;t<256;t++)pr[t]="%"+e[t>>4]+e[t&15]}function Dt(e){return e<2048?pr[192|e>>6]+pr[128|e&63]:e<65536?pr[224|e>>12]+pr[128|e>>6&63]+pr[128|e&63]:pr[240|e>>18]+pr[128|e>>12&63]+pr[128|e>>6&63]+pr[128|e&63]}function o4(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 i4=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),s4=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),a4=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),c4=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function p4(e){if(e.length===0)return!1;for(let t=0;t<e.length;t++)if(!a4(e[t])){if(e[t]==="%"&&t+2<e.length&&si(e.slice(t+1,t+3))){t+=2;continue}return!1}return!0}function D_(e){let t=-1,r=0,n=-1,o=0;for(let a=0;a<e.length;a++)e[a]==="0"?(n===-1&&(n=a),o++,o>r&&(r=o,t=n)):(n=-1,o=0);if(r<2)return e.join(":");let i=e.slice(0,t).join(":"),s=e.slice(t+r).join(":");return i+"::"+s}function l4(e){let t=e.indexOf("::");if(t!==-1&&e.indexOf("::",t+1)!==-1)return;let r=t===-1?e.split(":"):e.slice(0,t).split(":"),n=t===-1?[]:e.slice(t+2).split(":");t!==-1&&(r.length===1&&r[0]===""&&(r.length=0),n.length===1&&n[0]===""&&(n.length=0));let o=r.concat(n),i=0;for(let a=0;a<o.length;a++){let c=o[a];if(c==="")return;if(c.indexOf(".")!==-1){if(a!==o.length-1||t!==-1&&n.length===0||!jh(c))return;i+=2;continue}if(!i4(c))return;o[a]=parseInt(c,16).toString(16),i++}if(t===-1)return i!==8?void 0:D_(o);if(i>=8)return;let s=o.slice(0,r.length);for(let a=i;a<8;a++)s.push("0");for(let a=r.length;a<o.length;a++)s.push(o[a]);return D_(s)}function Nh(e){let t=e[0]==="["&&e[e.length-1]==="]";if((e[0]==="["||e[e.length-1]==="]")&&!t)return{host:e,isIPV6:!1,error:!0};let n=t?e.slice(1,-1):e;if(t&&s4(n))return n=n.toLowerCase(),{host:`[${n}]`,escapedHost:n,isIPV6:!1,isIPVFuture:!0};if(u4(n,":")<2)return{host:e,isIPV6:!1,error:t};let o="",i=n.indexOf("%");if(i!==-1){let a=n.slice(i,i+3).toLowerCase()==="%25"?3:1;if(o=n.slice(i+a),!p4(o))return{host:e,isIPV6:!1,error:!0};n=n.slice(0,i)}let s=l4(n);return s===void 0?{host:e,isIPV6:!1,error:!0}:{host:s+(o?"%"+o:""),escapedHost:s+(o?"%25"+o:""),isIPV6:!0}}function u4(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function d4(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 f4={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},m4=/[@/?#:]/g,h4=/[@/?#]/g;function U_(e,t){let r=t?h4:m4;return r.lastIndex=0,e.replace(r,n=>f4[n])}function F_(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(si(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));t&&Mh(s)?r+=s:r+="%"+i,n+=2;continue}}r+=e[n]}return r}function y4(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(n==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(si(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));s!=="."&&Mh(s)?t+=s:t+="%"+i,r+=2;continue}}if(L_(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=V_(o)?n:pr[o];else if(o<55296||o>57343)t+=Dt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=Dt(65536+(o-55296<<10)+(i-56320)),r++):t+=Dt(65533)}else t+=Dt(65533)}}return t}function g4(e,t=!1){let r="",n=t&&e[0]!=="/";for(let o=0;o<e.length;o++){let i=e[o];if(i==="%"&&o+2<e.length){let s=e.slice(o+1,o+3);if(si(s)){r+="%"+s.toUpperCase(),o+=2;continue}}if(i==="/"&&(n=!1),L_(i)&&(i!==":"||!n))r+=i;else{let s=e.charCodeAt(o);if(s<128)r+=pr[s];else if(s<55296||s>57343)r+=Dt(s);else if(s<=56319&&o+1<e.length){let a=e.charCodeAt(o+1);a>=56320&&a<=57343?(r+=Dt(65536+(s-55296<<10)+(a-56320)),o++):r+=Dt(65533)}else r+=Dt(65533)}}return r}function Lh(e,t){let r="";for(let n=0;n<e.length;n++){let o=e[n];if(o==="%"&&n+2<e.length){let i=e.slice(n+1,n+3);if(si(i)){r+="%"+i.toUpperCase(),n+=2;continue}}if(t(o))r+=o;else{let i=e.charCodeAt(n);if(i<128)r+=pr[i];else if(i<55296||i>57343)r+=Dt(i);else if(i<=56319&&n+1<e.length){let s=e.charCodeAt(n+1);s>=56320&&s<=57343?(r+=Dt(65536+(i-55296<<10)+(s-56320)),n++):r+=Dt(65533)}else r+=Dt(65533)}}return r}function z_(e){return Lh(e,n4)}function v4(e){return Lh(e,Dh)}function b4(e){return Lh(e,Dh)}function V_(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===42||e===43||e===45||e===46||e===47||e===64||e===95}function x4(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(n==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(si(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));Mh(s)?t+=s:t+="%"+i,r+=2;continue}}if(Dh(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=V_(o)?n:pr[o];else if(o<55296||o>57343)t+=Dt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=Dt(65536+(o-55296<<10)+(i-56320)),r++):t+=Dt(65533)}else t+=Dt(65533)}}return t}function S4(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(si(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function w4(e){let t=[];if(e.userinfo!==void 0&&(t.push(z_(e.userinfo)),t.push("@")),e.host!==void 0){let r=e.host;if(!jh(r)){let n=Nh(r);n.isIPV6!==!0&&n.isIPVFuture!==!0&&(r=F_(r,!0),n=Nh(r)),n.isIPV6===!0||n.isIPVFuture===!0?r=`[${n.escapedHost}]`:r=U_(r,!1)}t.push(r)}if(typeof e.port=="number"||typeof e.port=="string"){let r=String(e.port);if(!r4(r))throw new TypeError("URI port is malformed.");t.push(":"),t.push(r)}return t.length?t.join(""):void 0}B_.exports={nonSimpleDomain:c4,recomposeAuthority:w4,reescapeHostDelimiters:U_,normalizePercentEncoding:F_,normalizePathEncoding:y4,serializePathEncoding:g4,normalizeQueryFragmentEncoding:x4,encodeUserinfo:z_,encodeQuery:v4,encodeFragment:b4,escapePreservingEscapes:S4,removeDotSegments:d4,isIPv4:jh,isUUID:t4,normalizeIPv6:Nh,stringArrayToHexStripped:o4}});var Y_=$((ipe,W_)=>{"use strict";var{isUUID:_4}=Uh(),P4=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,$4=["http","https","ws","wss","urn","urn:uuid"];function E4(e){return $4.indexOf(e)!==-1}function Fh(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 H_(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function K_(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 A4(e){return e.secure=Fh(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function T4(e){if((e.port===(Fh(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let t=e.resourceName.indexOf("?"),r=t===-1?e.resourceName:e.resourceName.slice(0,t);e.path=r&&r!=="/"?r:void 0,e.query=t===-1?void 0:e.resourceName.slice(t+1),e.resourceName=void 0}return e.fragment=void 0,e}function R4(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(P4);if(r&&r[0]===e.path){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=zh(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function O4(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=zh(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 k4(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!_4(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function I4(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var G_={scheme:"http",domainHost:!0,parse:H_,serialize:K_},C4={scheme:"https",domainHost:G_.domainHost,parse:H_,serialize:K_},Tl={scheme:"ws",domainHost:!0,parse:A4,serialize:T4},q4={scheme:"wss",domainHost:Tl.domainHost,parse:Tl.parse,serialize:Tl.serialize},N4={scheme:"urn",parse:R4,serialize:O4,skipNormalize:!0},j4={scheme:"urn:uuid",parse:k4,serialize:I4,skipNormalize:!0},Rl={http:G_,https:C4,ws:Tl,wss:q4,urn:N4,"urn:uuid":j4};Object.setPrototypeOf(Rl,null);function zh(e){return e&&(Rl[e]||Rl[e.toLowerCase()])||void 0}W_.exports={wsIsSecure:Fh,SCHEMES:Rl,isValidSchemeName:E4,getSchemeHandler:zh}});var Kh=$((spe,Il)=>{"use strict";var{normalizeIPv6:eP,removeDotSegments:nc,recomposeAuthority:M4,normalizePercentEncoding:tP,normalizePathEncoding:D4,serializePathEncoding:Q_,normalizeQueryFragmentEncoding:J_,encodeQuery:L4,encodeFragment:U4,reescapeHostDelimiters:F4,isIPv4:rP,nonSimpleDomain:z4}=Uh(),{SCHEMES:nP,getSchemeHandler:Vh}=Y_(),oP=/^[A-Za-z][A-Za-z0-9+.-]*$/u,iP="URI scheme is malformed.";function X_(e){let t=unescape(String(e));if(!oP.test(t))throw new TypeError(iP);return t}function V4(e,t){return typeof e=="string"?e=J4(e,t):typeof e=="object"&&(e=kl(ai(e,t),t)),e}function B4(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:i,malformedPercentEncoding:s,malformedSchemeSpecific:a,malformedHost:c,malformedScheme:p}=Ol(e,n),{parsed:l,malformedAuthorityOrPort:u,malformedPercentEncoding:f,malformedSchemeSpecific:m,malformedHost:h,malformedScheme:y}=Ol(t,n);if(i||u||s||f||a||m||c||h||p||y)throw new Error(o.error||l.error||"URI is malformed.");let b=sP(o,l,n,!0),x=Vh(r&&r.scheme||b.scheme),w=b.host,S=w!==void 0&&w!==""&&(rP(w)||eP(w).isIPV6);aP(b,r||{},x,S);let E=w&&w.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(w);if(b.error&&!E)throw new Error(b.error);return n.skipEscape=!0,ai(b,n)}function sP(e,t,r,n){let o={};return n||(e=kl(ai(e,r),r),t=kl(ai(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=nc(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=nc(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=nc(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=nc(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 H4(e,t,r){let n=Z_(e,r),o=Z_(t,r);return n!==void 0&&o!==void 0&&n===o}function ai(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[];r.scheme&&(r.scheme=X_(r.scheme));let i=Vh(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n);let s=r.userinfo!==void 0||r.host!==void 0||r.port!==void 0,a=!n.skipEscape&&r.scheme===void 0&&!s;r.path!==void 0&&(n.skipEscape?r.path=tP(r.path):r.path=Q_(r.path,a)),n.reference!=="suffix"&&r.scheme&&(r.scheme=X_(r.scheme),o.push(r.scheme,":"));let c=M4(r);if(c!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(c),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let p=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(p=nc(p)),a&&(p=Q_(p,!0)),c===void 0&&p[0]==="/"&&p[1]==="/"&&(p="/%2F"+p.slice(2)),o.push(p)}return r.query!==void 0&&o.push("?",L4(r.query)),r.fragment!==void 0&&o.push("#",U4(r.fragment)),o.join("")}var K4=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,G4=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,W4=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function Y4(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 rc(e){if(e===void 0)return!1;let t=e.indexOf("%");for(;t!==-1;){if(t+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(t+1,t+3)))return!0;t=e.indexOf("%",t+3)}return!1}function Bh(e){return e[0]==="["&&e[e.length-1]==="]"}function Q4(e){let t=e[4];return rc(e[3])||t!==void 0&&!Bh(t)&&rc(t)||rc(e[6])||rc(e[7])||rc(e[8])}function aP(e,t,r,n){if(!t.unicodeSupport&&(!r||!r.unicodeSupport)&&e.host&&!Bh(e.host)&&(t.domainHost||r&&r.domainHost)&&n===!1&&z4(e.host))try{e.host=new URL("http://"+e.host).hostname}catch(o){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+o,!0}return!1}function Ol(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1,i=!1,s=!1,a=!1,c=!1,p=!1,l=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let u=e.match(G4);u!==null&&u[1].indexOf("\\")!==-1&&(n.error="URI authority must not contain a literal backslash.",o=!0);let f=e.match(W4);if(f!==null){let h=f[1],y=h.replace(/[\t\n\r]/g,"");y.length>=2&&(y.slice(0,2)!=="//"?(n.error=n.error||"URI authority must not contain a literal backslash.",o=!0):h.length!==y.length&&(n.error=n.error||"URI authority introducer must not contain whitespace.",o=!0))}let m=e.match(K4);if(m){if(n.scheme=m[1],n.userinfo=m[3],n.host=m[4],n.port=parseInt(m[5],10),n.path=m[6]||"",n.query=m[7],n.fragment=m[8],n.scheme!==void 0){let b=unescape(n.scheme);oP.test(b)?n.scheme=b.toLowerCase():(n.error=n.error||iP,p=!0)}i=Q4(m),i&&(n.error=n.error||"URI contains malformed percent-encoding."),isNaN(n.port)&&(n.port=m[5]);let h=Y4(n,m);if(h!==void 0&&(n.error=n.error||h,o=!0),n.host)if(rP(n.host)===!1){let x=Bh(n.host),w=n.host.indexOf("[")!==-1||n.host.indexOf("]")!==-1,S=eP(n.host);l=S.isIPV6||S.isIPVFuture===!0,c=w&&(!x||S.error===!0),n.host=l?S.host:S.host.toLowerCase(),c&&(n.error=n.error||"URI host is malformed.",o=!0)}else l=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let y=Vh(r.scheme||n.scheme);if(c||(a=aP(n,r,y,l)),!y||y&&!y.skipNormalize){if(e.indexOf("%")!==-1&&n.host!==void 0&&!c){let b=l?n.host:tP(n.host,!0);n.host=F4(b,l)}n.path&&(n.path=D4(n.path)),n.query&&(n.query=J_(n.query)),n.fragment&&(n.fragment=J_(n.fragment))}y&&y.parse&&(y.parse(n,r),y===nP.urn&&n.nid===void 0&&(s=!0))}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:p}}function kl(e,t){return Ol(e,t).parsed}function J4(e,t){return cP(e,t).normalized}function cP(e,t){let{parsed:r,malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}=Ol(e,t);return{normalized:n||o||i||s||a?e:ai(r,t),malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}}function Z_(e,t){if(typeof e!="string"&&typeof e!="object")return;let r;try{r=typeof e=="string"?e:ai(e,t)}catch{return}let{normalized:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:c}=cP(r,t);return o||i||s||a||c?void 0:n}var Hh={SCHEMES:nP,normalize:V4,resolve:B4,resolveComponent:sP,equal:H4,serialize:ai,parse:kl};Il.exports=Hh;Il.exports.default=Hh;Il.exports.fastUri=Hh});var lP=$(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var pP=Kh();pP.code='require("ajv/dist/runtime/uri").default';Gh.default=pP});var Qh=$($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.CodeGen=$t.Name=$t.nil=$t.stringify=$t.str=$t._=$t.KeywordCxt=void 0;var X4=hs();Object.defineProperty($t,"KeywordCxt",{enumerable:!0,get:function(){return X4.KeywordCxt}});var vs=te();Object.defineProperty($t,"_",{enumerable:!0,get:function(){return vs._}});Object.defineProperty($t,"str",{enumerable:!0,get:function(){return vs.str}});Object.defineProperty($t,"stringify",{enumerable:!0,get:function(){return vs.stringify}});Object.defineProperty($t,"nil",{enumerable:!0,get:function(){return vs.nil}});Object.defineProperty($t,"Name",{enumerable:!0,get:function(){return vs.Name}});Object.defineProperty($t,"CodeGen",{enumerable:!0,get:function(){return vs.CodeGen}});var Z4=ec(),hP=ys(),eK=fh(),oc=tc(),tK=te(),ic=Ja(),Cl=Ya(),Yh=xe(),uP=M_(),rK=lP(),yP=(e,t)=>new RegExp(e,t);yP.code="new RegExp";var nK=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],oK=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),iK={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."},sK={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},dP=200;function aK(e){var t,r,n,o,i,s,a,c,p,l,u,f,m,h,y,b,x,w,S,E,P,T,N,I,O;let A=e.strict,ie=(t=e.code)===null||t===void 0?void 0:t.optimize,X=ie===!0||ie===void 0?1:ie||0,de=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:yP,q=(o=e.uriResolver)!==null&&o!==void 0?o:rK.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:A)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:A)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:A)!==null&&l!==void 0?l:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:A)!==null&&f!==void 0?f:"log",strictRequired:(h=(m=e.strictRequired)!==null&&m!==void 0?m:A)!==null&&h!==void 0?h:!1,code:e.code?{...e.code,optimize:X,regExp:de}:{optimize:X,regExp:de},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:dP,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:dP,meta:(x=e.meta)!==null&&x!==void 0?x:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(T=e.validateSchema)!==null&&T!==void 0?T:!0,validateFormats:(N=e.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(I=e.unicodeRegExp)!==null&&I!==void 0?I:!0,int32range:(O=e.int32range)!==null&&O!==void 0?O:!0,uriResolver:q}}var sc=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...aK(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new tK.ValueScope({scope:{},prefixes:oK,es5:r,lines:n}),this.logger=fK(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,eK.getRules)(),fP.call(this,iK,t,"NOT SUPPORTED"),fP.call(this,sK,t,"DEPRECATED","warn"),this._metaOpts=uK.call(this),t.formats&&pK.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&lK.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),cK.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=uP;n==="id"&&(o={...uP},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 f=this._addSchema(l,u);return f.validate||s.call(this,f)}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 hP.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,ic.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=mP.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new oc.SchemaEnv({schema:{},schemaId:n});if(r=oc.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=mP.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,ic.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(hK.call(this,n,r),!r)return(0,Yh.eachItem)(n,i=>Wh.call(this,i)),this;gK.call(this,r);let o={...r,type:(0,Cl.getJSONTypes)(r.type),schemaType:(0,Cl.getJSONTypes)(r.schemaType)};return(0,Yh.eachItem)(n,o.type.length===0?i=>Wh.call(this,i,o):i=>o.type.forEach(s=>Wh.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]=gP(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,ic.normalizeId)(s||n);let p=ic.getSchemaRefs.call(this,t,n);return c=new oc.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):oc.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{oc.compileSchema.call(this,t)}finally{this.opts=r}}};sc.ValidationError=Z4.default;sc.MissingRefError=hP.default;$t.default=sc;function fP(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 mP(e){return e=(0,ic.normalizeId)(e),this.schemas[e]||this.refs[e]}function cK(){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 pK(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function lK(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 uK(){let e={...this.opts};for(let t of nK)delete e[t];return e}var dK={log(){},warn(){},error(){}};function fK(e){if(e===!1)return dK;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 mK=/^[a-z_$][a-z0-9_$:-]*$/i;function hK(e,t){let{RULES:r}=this;if((0,Yh.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!mK.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 Wh(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,Cl.getJSONTypes)(t.type),schemaType:(0,Cl.getJSONTypes)(t.schemaType)}};t.before?yK.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 yK(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 gK(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=gP(t)),e.validateSchema=this.compile(t,!0))}var vK={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function gP(e){return{anyOf:[e,vK]}}});var vP=$(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});var bK={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Jh.default=bK});var ac=$(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.callRef=ci.getValidate=void 0;var xK=ys(),bP=Tr(),pt=te(),bs=Kt(),xP=tc(),ql=xe(),SK={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=xP.resolveRef.call(c,p,o,r);if(l===void 0)throw new xK.default(n.opts.uriResolver,o,r);if(l instanceof xP.SchemaEnv)return f(l);return m(l);function u(){if(i===p)return Nl(e,s,i,i.$async);let h=t.scopeValue("root",{ref:p});return Nl(e,(0,pt._)`${h}.validate`,p,p.$async)}function f(h){let y=SP(e,h);Nl(e,y,h,h.$async)}function m(h){let y=t.scopeValue("schema",a.code.source===!0?{ref:h,code:(0,pt.stringify)(h)}:{ref:h}),b=t.name("valid"),x=e.subschema({schema:h,dataTypes:[],schemaPath:pt.nil,topSchemaRef:y,errSchemaPath:r},b,n.isAllOfVariant);e.mergeEvaluated(x),e.ok(b)}}};function SP(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,pt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}ci.getValidate=SP;function Nl(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?bs.default.this:pt.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let h=o.let("valid");o.try(()=>{o.code((0,pt._)`await ${(0,bP.callValidateCode)(e,t,p)}`),m(t),s||o.assign(h,!0)},y=>{o.if((0,pt._)`!(${y} instanceof ${i.ValidationError})`,()=>o.throw(y)),f(y),s||o.assign(h,!1)}),e.ok(h)}function u(){let h=o.name("visitedNodes");o.code((0,pt._)`const ${h} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),o.if((0,pt._)`!${h}.has(${e.data})`,()=>{o.code((0,pt._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${h})`),o.code((0,pt._)`const dataNode = ${e.data}`),o.code((0,pt._)`if (typeof dataNode === "object" && dataNode !== null) ${h}.add(dataNode)`);let y=e.result((0,bP.callValidateCode)(e,t,p),()=>m(t),()=>f(t));return o.code((0,pt._)`${h}.delete(dataNode)`),y})}function f(h){let y=(0,pt._)`${h}.errors`;o.assign(bs.default.vErrors,(0,pt._)`${bs.default.vErrors} === null ? ${y} : ${bs.default.vErrors}.concat(${y})`),o.assign(bs.default.errors,(0,pt._)`${bs.default.vErrors}.length`)}function m(h){var y;if(!i.opts.unevaluated)return;let b=(y=r?.validate)===null||y===void 0?void 0:y.evaluated;if(i.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(i.props=ql.mergeEvaluated.props(o,b.props,i.props));else{let x=o.var("props",(0,pt._)`${h}.evaluated.props`);i.props=ql.mergeEvaluated.props(o,x,i.props,pt.Name)}if(i.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(i.items=ql.mergeEvaluated.items(o,b.items,i.items));else{let x=o.var("items",(0,pt._)`${h}.evaluated.items`);i.items=ql.mergeEvaluated.items(o,x,i.items,pt.Name)}}}ci.callRef=Nl;ci.default=SK});var wP=$(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});var wK=vP(),_K=ac(),PK=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",wK.default,_K.default];Xh.default=PK});var _P=$(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var jl=te(),mo=jl.operators,Ml={maximum:{okStr:"<=",ok:mo.LTE,fail:mo.GT},minimum:{okStr:">=",ok:mo.GTE,fail:mo.LT},exclusiveMaximum:{okStr:"<",ok:mo.LT,fail:mo.GTE},exclusiveMinimum:{okStr:">",ok:mo.GT,fail:mo.LTE}},$K={message:({keyword:e,schemaCode:t})=>(0,jl.str)`must be ${Ml[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,jl._)`{comparison: ${Ml[e].okStr}, limit: ${t}}`},EK={keyword:Object.keys(Ml),type:"number",schemaType:"number",$data:!0,error:$K,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,jl._)`${r} ${Ml[t].fail} ${n} || isNaN(${r})`)}};Zh.default=EK});var PP=$(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var cc=te(),AK={message:({schemaCode:e})=>(0,cc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,cc._)`{multipleOf: ${e}}`},TK={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:AK,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,cc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,cc._)`${s} !== parseInt(${s})`;e.fail$data((0,cc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};ey.default=TK});var EP=$(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});function $P(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}ty.default=$P;$P.code='require("ajv/dist/runtime/ucs2length").default'});var AP=$(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var pi=te(),RK=xe(),OK=EP(),kK={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,pi.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,pi._)`{limit: ${e}}`},IK={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:kK,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?pi.operators.GT:pi.operators.LT,s=o.opts.unicode===!1?(0,pi._)`${r}.length`:(0,pi._)`${(0,RK.useFunc)(e.gen,OK.default)}(${r})`;e.fail$data((0,pi._)`${s} ${i} ${n}`)}};ry.default=IK});var TP=$(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var CK=Tr(),qK=xe(),xs=te(),NK={message:({schemaCode:e})=>(0,xs.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,xs._)`{pattern: ${e}}`},jK={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:NK,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,xs._)`new RegExp`:(0,qK.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,xs._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,xs._)`!${l}`)}else{let c=(0,CK.usePattern)(e,o);e.fail$data((0,xs._)`!${c}.test(${r})`)}}};ny.default=jK});var RP=$(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var pc=te(),MK={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,pc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,pc._)`{limit: ${e}}`},DK={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:MK,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?pc.operators.GT:pc.operators.LT;e.fail$data((0,pc._)`Object.keys(${r}).length ${o} ${n}`)}};oy.default=DK});var OP=$(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});var lc=Tr(),LK=bh(),li=te(),UK=xe(),FK={message:({params:{missingProperty:e}})=>(0,li.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,li._)`{missingProperty: ${e}}`},zK={keyword:"required",type:"object",schemaType:"array",$data:!0,error:FK,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 m=e.parentSchema.properties,{definedProperties:h}=e.it;for(let y of r)if(m?.[y]===void 0&&!h.has(y)){let b=s.schemaEnv.baseId+s.errSchemaPath,x=`required property "${y}" is not defined at "${b}" (strictRequired)`;(0,UK.checkStrictMode)(s,x,s.opts.strictRequired)}}function p(){var m;if(c||i)e.block$data(li.nil,u);else for(let h of r){let y=(m=(0,LK.getSkipCondition)(e.parentSchema,h))!==null&&m!==void 0?m:(0,li._)`false`;t.if((0,li.not)(y),()=>(0,lc.checkReportMissingProp)(e,h))}}function l(){let m=t.let("missing");if(c||i){let h=t.let("valid",!0);e.block$data(h,()=>f(m,h)),e.ok(h)}else t.if((0,lc.checkMissingProp)(e,r,m)),(0,lc.reportMissingProp)(e,m),t.else()}function u(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,lc.noPropertyInData)(t,o,m,a.ownProperties),()=>e.error())})}function f(m,h){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(h,(0,lc.propertyInData)(t,o,m,a.ownProperties)),t.if((0,li.not)(h),()=>{e.error(),t.break()})},li.nil)}}};iy.default=zK});var IP=$(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});var sy=te(),kP=Kt(),VK={message:()=>(0,sy.str)`must NOT be present in request context`},BK={keyword:"readOnly",schemaType:"boolean",error:VK,code(e){if(e.schema!==!0)return;let t=(0,sy._)`(${kP.default.this} && ${kP.default.this}.apiContext)`;e.fail((0,sy._)`${t} === "request"`)}};ay.default=BK});var qP=$(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var cy=te(),CP=Kt(),HK={message:()=>(0,cy.str)`must NOT be present in response context`},KK={keyword:"writeOnly",schemaType:"boolean",error:HK,code(e){if(e.schema!==!0)return;let t=(0,cy._)`(${CP.default.this} && ${CP.default.this}.apiContext)`;e.fail((0,cy._)`${t} === "response"`)}};py.default=KK});var NP=$(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var uc=te(),GK={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,uc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,uc._)`{limit: ${e}}`},WK={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:GK,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?uc.operators.GT:uc.operators.LT;e.fail$data((0,uc._)`${r}.length ${o} ${n}`)}};ly.default=WK});var Dl=$(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var jP=Qa();jP.code='require("ajv/dist/runtime/equal").default';uy.default=jP});var MP=$(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var dy=Ya(),Et=te(),YK=xe(),QK=Dl(),JK={message:({params:{i:e,j:t}})=>(0,Et.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Et._)`{i: ${e}, j: ${t}}`},XK={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:JK,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,dy.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,Et._)`${s} === false`),e.ok(c);function l(){let h=t.let("i",(0,Et._)`${r}.length`),y=t.let("j");e.setParams({i:h,j:y}),t.assign(c,!0),t.if((0,Et._)`${h} > 1`,()=>(u()?f:m)(h,y))}function u(){return p.length>0&&!p.some(h=>h==="object"||h==="array")}function f(h,y){let b=t.name("item"),x=(0,dy.checkDataTypes)(p,b,a.opts.strictNumbers,dy.DataType.Wrong),w=t.const("indices",(0,Et._)`{}`);t.for((0,Et._)`;${h}--;`,()=>{t.let(b,(0,Et._)`${r}[${h}]`),t.if(x,(0,Et._)`continue`),p.length>1&&t.if((0,Et._)`typeof ${b} == "string"`,(0,Et._)`${b} += "_"`),t.if((0,Et._)`typeof ${w}[${b}] == "number"`,()=>{t.assign(y,(0,Et._)`${w}[${b}]`),e.error(),t.assign(c,!1).break()}).code((0,Et._)`${w}[${b}] = ${h}`)})}function m(h,y){let b=(0,YK.useFunc)(t,QK.default),x=t.name("outer");t.label(x).for((0,Et._)`;${h}--;`,()=>t.for((0,Et._)`${y} = ${h}; ${y}--;`,()=>t.if((0,Et._)`${b}(${r}[${h}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(x)})))}}};fy.default=XK});var DP=$(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var my=te(),ZK=xe(),eG=Dl(),tG={message:"must be equal to constant",params:({schemaCode:e})=>(0,my._)`{allowedValue: ${e}}`},rG={keyword:"const",$data:!0,error:tG,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,my._)`!${(0,ZK.useFunc)(t,eG.default)}(${r}, ${o})`):e.fail((0,my._)`${i} !== ${r}`)}};hy.default=rG});var LP=$(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var dc=te(),nG=xe(),oG=Dl(),iG={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,dc._)`{allowedValues: ${e}}`},sG={keyword:"enum",schemaType:"array",$data:!0,error:iG,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,nG.useFunc)(t,oG.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 m=t.const("vSchema",i);l=(0,dc.or)(...o.map((h,y)=>f(m,y)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,m=>t.if((0,dc._)`${p()}(${r}, ${m})`,()=>t.assign(l,!0).break()))}function f(m,h){let y=o[h];return typeof y=="object"&&y!==null?(0,dc._)`${p()}(${r}, ${m}[${h}])`:(0,dc._)`${r} === ${y}`}}};yy.default=sG});var vy=$(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var aG=_P(),cG=PP(),pG=AP(),lG=TP(),uG=RP(),dG=OP(),fG=IP(),mG=qP(),hG=NP(),yG=MP(),gG=DP(),vG=LP(),bG=[aG.default,cG.default,pG.default,lG.default,uG.default,dG.default,fG.default,mG.default,hG.default,yG.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},gG.default,vG.default];gy.default=bG});var xy=$(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.validateAdditionalItems=void 0;var ui=te(),by=xe(),xG={message:({params:{len:e}})=>(0,ui.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ui._)`{limit: ${e}}`},SG={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:xG,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,by.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}UP(e,n)}};function UP(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,ui._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,ui._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,by.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,ui._)`${a} <= ${t.length}`);r.if((0,ui.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:by.Type.Num},p),s.allErrors||r.if((0,ui.not)(p),()=>r.break())})}}fc.validateAdditionalItems=UP;fc.default=SG});var Sy=$(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.validateTuple=void 0;var FP=te(),Ll=xe(),wG=Tr(),_G={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return zP(e,"additionalItems",t);r.items=!0,!(0,Ll.alwaysValidSchema)(r,t)&&e.ok((0,wG.validateArray)(e))}};function zP(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=Ll.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,FP._)`${i}.length`);r.forEach((u,f)=>{(0,Ll.alwaysValidSchema)(a,u)||(n.if((0,FP._)`${p} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function l(u){let{opts:f,errSchemaPath:m}=a,h=r.length,y=h===u.minItems&&(h===u.maxItems||u[t]===!1);if(f.strictTuples&&!y){let b=`"${s}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Ll.checkStrictMode)(a,b,f.strictTuples)}}}mc.validateTuple=zP;mc.default=_G});var VP=$(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var PG=Sy(),$G={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,PG.validateTuple)(e,"items")};wy.default=$G});var HP=$(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var BP=te(),EG=xe(),AG=Tr(),TG=xy(),RG={message:({params:{len:e}})=>(0,BP.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,BP._)`{limit: ${e}}`},OG={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:RG,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,EG.alwaysValidSchema)(n,t)&&(o?(0,TG.validateAdditionalItems)(e,o):e.ok((0,AG.validateArray)(e)))}};_y.default=OG});var KP=$(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var Or=te(),Ul=xe(),kG={message:({params:{min:e,max:t}})=>t===void 0?(0,Or.str)`must contain at least ${e} valid item(s)`:(0,Or.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Or._)`{minContains: ${e}}`:(0,Or._)`{minContains: ${e}, maxContains: ${t}}`},IG={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:kG,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,Or._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Ul.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Ul.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ul.alwaysValidSchema)(i,r)){let y=(0,Or._)`${l} >= ${s}`;a!==void 0&&(y=(0,Or._)`${y} && ${l} <= ${a}`),e.pass(y);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?m(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,Or._)`${o}.length > 0`,f)):(t.let(u,!1),f()),e.result(u,()=>e.reset());function f(){let y=t.name("_valid"),b=t.let("count",0);m(y,()=>t.if(y,()=>h(b)))}function m(y,b){t.forRange("i",0,l,x=>{e.subschema({keyword:"contains",dataProp:x,dataPropType:Ul.Type.Num,compositeRule:!0},y),b()})}function h(y){t.code((0,Or._)`${y}++`),a===void 0?t.if((0,Or._)`${y} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,Or._)`${y} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,Or._)`${y} >= ${s}`,()=>t.assign(u,!0)))}}};Py.default=IG});var Fl=$(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.validateSchemaDeps=vn.validatePropertyDeps=vn.error=void 0;var $y=te(),CG=xe(),hc=Tr();vn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,$y.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,$y._)`{property: ${e},
|
|
12
|
-
missingProperty: ${n},
|
|
13
|
-
depsCount: ${t},
|
|
14
|
-
deps: ${r}}`};var qG={keyword:"dependencies",type:"object",schemaType:"object",error:vn.error,code(e){let[t,r]=NG(e);GP(e,t),WP(e,r)}};function NG({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 GP(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,hc.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,hc.checkReportMissingProp)(e,p)}):(r.if((0,$y._)`${c} && (${(0,hc.checkMissingProp)(e,a,i)})`),(0,hc.reportMissingProp)(e,i),r.else())}}vn.validatePropertyDeps=GP;function WP(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,CG.alwaysValidSchema)(i,t[a])||(r.if((0,hc.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))}vn.validateSchemaDeps=WP;vn.default=qG});var QP=$(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var YP=te(),jG=xe(),MG={message:"property name must be valid",params:({params:e})=>(0,YP._)`{propertyName: ${e.propertyName}}`},DG={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:MG,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,jG.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,YP.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Ey.default=DG});var Ty=$(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var zl=Tr(),Qr=te(),LG=Kt(),Vl=xe(),UG={message:"must NOT have additional properties",params:({params:e})=>(0,Qr._)`{additionalProperty: ${e.additionalProperty}}`},FG={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:UG,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,Vl.alwaysValidSchema)(i,s))return;let p=(0,zl.allSchemaProperties)(r.properties),l=(0,zl.allSchemaProperties)(r.patternProperties);u(),e.ok((0,Qr._)`${o} === ${LG.default.errors}`);function u(){t.forIn("key",n,b=>{!p.length&&!l.length?h(b):t.if(f(b),()=>h(b))})}function f(b){let x;if(p.length>8){let w=(0,Vl.schemaRefOrVal)(i,r.properties,"properties");x=(0,zl.isOwnProperty)(t,w,b)}else p.length?x=(0,Qr.or)(...p.map(w=>(0,Qr._)`${b} === ${w}`)):x=Qr.nil;return l.length&&(x=(0,Qr.or)(x,...l.map(w=>(0,Qr._)`${(0,zl.usePattern)(e,w)}.test(${b})`))),(0,Qr.not)(x)}function m(b){t.code((0,Qr._)`delete ${n}[${b}]`)}function h(b){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){m(b);return}if(s===!1){e.setParams({additionalProperty:b}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,Vl.alwaysValidSchema)(i,s)){let x=t.name("valid");c.removeAdditional==="failing"?(y(b,x,!1),t.if((0,Qr.not)(x),()=>{e.reset(),m(b)})):(y(b,x),a||t.if((0,Qr.not)(x),()=>t.break()))}}function y(b,x,w){let S={keyword:"additionalProperties",dataProp:b,dataPropType:Vl.Type.Str};w===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,x)}}};Ay.default=FG});var ZP=$(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var zG=hs(),JP=Tr(),Ry=xe(),XP=Ty(),VG={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)&&XP.default.code(new zG.KeywordCxt(i,XP.default,"additionalProperties"));let s=(0,JP.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Ry.mergeEvaluated.props(t,(0,Ry.toHash)(s),i.props));let a=s.filter(u=>!(0,Ry.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,JP.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)}}};Oy.default=VG});var n$=$(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var e$=Tr(),Bl=te(),t$=xe(),r$=xe(),BG={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,e$.allSchemaProperties)(r),c=a.filter(y=>(0,t$.alwaysValidSchema)(i,r[y]));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 Bl.Name)&&(i.props=(0,r$.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let y of a)p&&m(y),i.allErrors?h(y):(t.var(l,!0),h(y),t.if(l))}function m(y){for(let b in p)new RegExp(y).test(b)&&(0,t$.checkStrictMode)(i,`property ${b} matches pattern ${y} (use allowMatchingProperties)`)}function h(y){t.forIn("key",n,b=>{t.if((0,Bl._)`${(0,e$.usePattern)(e,y)}.test(${b})`,()=>{let x=c.includes(y);x||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:b,dataPropType:r$.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,Bl._)`${u}[${b}]`,!0):!x&&!i.allErrors&&t.if((0,Bl.not)(l),()=>t.break())})})}}};ky.default=BG});var o$=$(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var HG=xe(),KG={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,HG.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"}};Iy.default=KG});var i$=$(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var GG=Tr(),WG={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:GG.validateUnion,error:{message:"must match a schema in anyOf"}};Cy.default=WG});var s$=$(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var Hl=te(),YG=xe(),QG={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Hl._)`{passingSchemas: ${e.passing}}`},JG={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:QG,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 f;(0,YG.alwaysValidSchema)(o,l)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,Hl._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Hl._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,Hl.Name)})})}}};qy.default=JG});var a$=$(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var XG=xe(),ZG={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,XG.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o,!0);e.ok(o),e.mergeEvaluated(a)})}};Ny.default=ZG});var l$=$(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var Kl=te(),p$=xe(),e5={message:({params:e})=>(0,Kl.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Kl._)`{failingKeyword: ${e.ifClause}}`},t5={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:e5,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,p$.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=c$(n,"then"),i=c$(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,Kl.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 f=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,Kl._)`${l}`):e.setParams({ifClause:l})}}}};function c$(e,t){let r=e.schema[t];return r!==void 0&&!(0,p$.alwaysValidSchema)(e,r)}jy.default=t5});var u$=$(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var r5=xe(),n5={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,r5.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};My.default=n5});var Ly=$(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var o5=xy(),i5=VP(),s5=Sy(),a5=HP(),c5=KP(),p5=Fl(),l5=QP(),u5=Ty(),d5=ZP(),f5=n$(),m5=o$(),h5=i$(),y5=s$(),g5=a$(),v5=l$(),b5=u$();function x5(e=!1){let t=[m5.default,h5.default,y5.default,g5.default,v5.default,b5.default,l5.default,u5.default,p5.default,d5.default,f5.default];return e?t.push(i5.default,a5.default):t.push(o5.default,s5.default),t.push(c5.default),t}Dy.default=x5});var Fy=$(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.dynamicAnchor=void 0;var Uy=te(),S5=Kt(),d$=tc(),w5=ac(),_5={keyword:"$dynamicAnchor",schemaType:"string",code:e=>f$(e,e.schema)};function f$(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,Uy._)`${S5.default.dynamicAnchors}${(0,Uy.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:P5(e);r.if((0,Uy._)`!${o}`,()=>r.assign(o,i))}yc.dynamicAnchor=f$;function P5(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 d$.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:s,meta:a});return d$.compileSchema.call(n,p),(0,w5.getValidate)(e,p)}yc.default=_5});var zy=$(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.dynamicRef=void 0;var m$=te(),$5=Kt(),h$=ac(),E5={keyword:"$dynamicRef",schemaType:"string",code:e=>y$(e,e.schema)};function y$(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,m$._)`${$5.default.dynamicAnchors}${(0,m$.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,h$.callRef)(e,c),r.let(p,!0)}):()=>(0,h$.callRef)(e,c)}}gc.dynamicRef=y$;gc.default=E5});var g$=$(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var A5=Fy(),T5=xe(),R5={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,A5.dynamicAnchor)(e,""):(0,T5.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Vy.default=R5});var v$=$(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var O5=zy(),k5={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,O5.dynamicRef)(e,e.schema)};By.default=k5});var b$=$(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var I5=Fy(),C5=zy(),q5=g$(),N5=v$(),j5=[I5.default,C5.default,q5.default,N5.default];Hy.default=j5});var S$=$(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});var x$=Fl(),M5={keyword:"dependentRequired",type:"object",schemaType:"object",error:x$.error,code:e=>(0,x$.validatePropertyDeps)(e)};Ky.default=M5});var w$=$(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var D5=Fl(),L5={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,D5.validateSchemaDeps)(e)};Gy.default=L5});var _$=$(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var U5=xe(),F5={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,U5.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Wy.default=F5});var P$=$(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var z5=S$(),V5=w$(),B5=_$(),H5=[z5.default,V5.default,B5.default];Yy.default=H5});var A$=$(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});var Hn=te(),$$=xe(),E$=Kt(),K5={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Hn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},G5={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:K5,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 Hn.Name)t.if((0,Hn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>p(f))));else if(c!==!0){let f=()=>t.forIn("key",n,m=>c===void 0?p(m):t.if(u(c,m),()=>p(m)));s&&i.errorPath.emptyStr()&&!i.compositeRule?t.if((0,Hn._)`${E$.default.isAllOfVariant} === 0`,f):(!i.compositeRule||e.schema!==void 0)&&f()}s||(i.props=!0),e.ok((0,Hn._)`${o} === ${E$.default.errors}`);function p(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,$$.alwaysValidSchema)(i,r)){let m=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:$$.Type.Str},m),a||t.if((0,Hn.not)(m),()=>t.break())}}function l(f,m){return(0,Hn._)`!${f} || !${f}[${m}]`}function u(f,m){let h=[];for(let y in f)f[y]===!0&&h.push((0,Hn._)`${m} !== ${y}`);return(0,Hn.and)(...h)}}};Qy.default=G5});var R$=$(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var di=te(),T$=xe(),W5={message:({params:{len:e}})=>(0,di.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,di._)`{limit: ${e}}`},Y5={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:W5,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,di._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,di._)`${s} > ${i}`);else if(typeof r=="object"&&!(0,T$.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,di._)`${s} <= ${i}`);t.if((0,di.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:T$.Type.Num},c),o.allErrors||t.if((0,di.not)(c),()=>t.break())})}}};Jy.default=Y5});var Zy=$(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var Q5=A$(),J5=R$(),X5=[Q5.default,J5.default];Xy.default=X5});var O$=$(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var at=te(),Z5={message:({schemaCode:e})=>(0,at.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,at._)`{format: ${e}}`},eW={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Z5,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?f():m();function f(){let h=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),y=r.const("fDef",(0,at._)`${h}[${s}]`),b=r.let("fType"),x=r.let("format");r.if((0,at._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(b,(0,at._)`${y}.type || "string"`).assign(x,(0,at._)`${y}.validate`),()=>r.assign(b,(0,at._)`"string"`).assign(x,y)),e.fail$data((0,at.or)(w(),S()));function w(){return c.strictSchema===!1?at.nil:(0,at._)`${s} && !${x}`}function S(){let E=l.$async?(0,at._)`(${y}.async ? await ${x}(${n}) : ${x}(${n}))`:(0,at._)`${x}(${n})`,P=(0,at._)`(typeof ${x} == "function" ? ${E} : ${x}.test(${n}))`;return(0,at._)`${x} && ${x} !== true && ${b} === ${t} && !${P}`}}function m(){let h=u.formats[i];if(!h){w();return}if(h===!0)return;let[y,b,x]=S(h);y===t&&e.pass(E());function w(){if(c.strictSchema===!1){u.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function S(P){let T=P instanceof RegExp?(0,at.regexpCode)(P):c.code.formats?(0,at._)`${c.code.formats}${(0,at.getProperty)(i)}`:void 0,N=r.scopeValue("formats",{key:i,ref:P,code:T});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,at._)`${N}.validate`]:["string",P,N]}function E(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!l.$async)throw new Error("async format in sync schema");return(0,at._)`await ${x}(${n})`}return typeof b=="function"?(0,at._)`${x}(${n})`:(0,at._)`${x}.test(${n})`}}}};eg.default=eW});var rg=$(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});var tW=O$(),rW=[tW.default];tg.default=rW});var k$=$(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.contentVocabulary=Ss.metadataVocabulary=void 0;Ss.metadataVocabulary=["title","description","default","deprecated","examples"];Ss.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var C$=$(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});var nW=wP(),oW=vy(),iW=Ly(),sW=b$(),aW=P$(),cW=Zy(),pW=rg(),I$=k$(),lW=[sW.default,nW.default,oW.default,(0,iW.default)(!0),pW.default,I$.metadataVocabulary,I$.contentVocabulary,aW.default,cW.default];ng.default=lW});var N$=$(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.DiscrError=void 0;var q$;(function(e){e.Tag="tag",e.Mapping="mapping"})(q$||(Gl.DiscrError=q$={}))});var sg=$(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var ws=te(),og=N$(),j$=tc(),uW=ys(),dW=xe(),fW={message:({params:{discrError:e,tagName:t}})=>e===og.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,ws._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function mW(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 hW={keyword:"discriminator",type:"object",schemaType:"object",error:fW,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,ws._)`${r}${(0,ws.getProperty)(a)}`);t.if((0,ws._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:og.DiscrError.Tag,tag:l,tagName:a})),e.ok(p);function u(){let h=m();t.if(!1);for(let y in h)t.elseIf((0,ws._)`${l} === ${y}`),t.assign(p,f(h[y]));t.else(),e.error(!1,{discrError:og.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function f(h){let y=t.name("valid"),b=e.subschema({keyword:s,schemaProp:h},y);return e.mergeEvaluated(b,ws.Name),y}function m(){var h;let y={},b=w(o),x=!0;for(let P=0;P<c.length;P++){let T=c[P],N=T?.$ref;if(N&&n.mapping){let{mapping:O}=n,A=Object.keys(O).filter(ie=>O[ie]===T.$ref);if(A.length){for(let ie of A)E(ie,P);continue}}if(N&&!(0,dW.schemaHasRulesButRef)(T,i.self.RULES)&&(T=j$.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,N),T instanceof j$.SchemaEnv&&(T=T.schema),T===void 0))throw new uW.default(i.opts.uriResolver,i.baseId,N);let I=(h=T?.properties)===null||h===void 0?void 0:h[a];if(!I&&T?.allOf&&(I=mW(T,a)),typeof I!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);x=x&&(b||w(T)),S(I,P)}if(!x)throw new Error(`discriminator: "${a}" must be required`);return y;function w(P){if(Array.isArray(P.required)&&P.required.includes(a))return!0;if(P.allOf&&Array.isArray(P.allOf))for(let T of P.allOf){let N=T;if(Array.isArray(N.required)&&N.required.includes(a))return!0}return!1}function S(P,T){if(P.const)E(P.const,T);else if(P.enum)for(let N of P.enum)E(N,T);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function E(P,T){if(typeof P!="string"||P in y)throw new Error(`discriminator: "${a}" values must be unique strings`);y[P]=T}}}};ig.default=hW});var M$=$((cle,yW)=>{yW.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 D$=$((ple,gW)=>{gW.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 L$=$((lle,vW)=>{vW.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 U$=$((ule,bW)=>{bW.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 F$=$((dle,xW)=>{xW.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 z$=$((fle,SW)=>{SW.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 V$=$((mle,wW)=>{wW.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 B$=$((hle,_W)=>{_W.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 H$=$(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});var PW=M$(),$W=D$(),EW=L$(),AW=U$(),TW=F$(),RW=z$(),OW=V$(),kW=B$(),IW=["/properties"];function CW(e){return[PW,$W,EW,AW,TW,t(this,RW),OW,t(this,kW)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,IW):n}}ag.default=CW});var lg=$((Ke,pg)=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.MissingRefError=Ke.ValidationError=Ke.CodeGen=Ke.Name=Ke.nil=Ke.stringify=Ke.str=Ke._=Ke.KeywordCxt=Ke.Ajv2020=void 0;var qW=Qh(),NW=C$(),jW=sg(),MW=H$(),cg="https://json-schema.org/draft/2020-12/schema",_s=class extends qW.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),NW.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(jW.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(MW.default.call(this,t),this.refs["http://json-schema.org/schema"]=cg)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(cg)?cg:void 0)}};Ke.Ajv2020=_s;pg.exports=Ke=_s;pg.exports.Ajv2020=_s;Object.defineProperty(Ke,"__esModule",{value:!0});Ke.default=_s;var DW=hs();Object.defineProperty(Ke,"KeywordCxt",{enumerable:!0,get:function(){return DW.KeywordCxt}});var Ps=te();Object.defineProperty(Ke,"_",{enumerable:!0,get:function(){return Ps._}});Object.defineProperty(Ke,"str",{enumerable:!0,get:function(){return Ps.str}});Object.defineProperty(Ke,"stringify",{enumerable:!0,get:function(){return Ps.stringify}});Object.defineProperty(Ke,"nil",{enumerable:!0,get:function(){return Ps.nil}});Object.defineProperty(Ke,"Name",{enumerable:!0,get:function(){return Ps.Name}});Object.defineProperty(Ke,"CodeGen",{enumerable:!0,get:function(){return Ps.CodeGen}});var LW=ec();Object.defineProperty(Ke,"ValidationError",{enumerable:!0,get:function(){return LW.default}});var UW=ys();Object.defineProperty(Ke,"MissingRefError",{enumerable:!0,get:function(){return UW.default}})});var lE=$(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});var au=te(),go=au.operators,mg={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:go.LTE,fail:go.GT},{okStr:"<",ok:go.LT,fail:go.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:go.GTE,fail:go.LT},{okStr:">",ok:go.GT,fail:go.LTE}]}},RY={message:e=>(0,au.str)`must be ${hg(e).okStr} ${e.schemaCode}`,params:e=>(0,au._)`{comparison: ${hg(e).okStr}, limit: ${e.schemaCode}}`},OY={keyword:Object.keys(mg),type:"number",schemaType:"number",$data:!0,error:RY,code(e){let{data:t,schemaCode:r}=e;e.fail$data((0,au._)`${t} ${hg(e).fail} ${r} || isNaN(${t})`)}};function hg(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[mg[r].exclusive]?1:0;return mg[r].ops[n]}yg.default=OY});var dE=$(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});var uE={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},kY={keyword:Object.keys(uE),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=uE[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};gg.default=kY});var fE=$(vg=>{"use strict";Object.defineProperty(vg,"__esModule",{value:!0});var IY=ac(),CY=Ly(),qY=Zy(),NY=rg(),jY=vy(),MY=lE(),DY=dE(),LY=["title","description","default"],UY=["$schema","id","$defs",{keyword:"$comment"},"definitions",IY.default],FY=[...jY.default.slice(1),MY.default,DY.default],zY=[UY,FY,(0,CY.default)(),NY.default,LY,qY.default];vg.default=zY});var mE=$((Kue,VY)=>{VY.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 gE=$((Ge,yE)=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.MissingRefError=Ge.ValidationError=Ge.CodeGen=Ge.Name=Ge.nil=Ge.stringify=Ge.str=Ge._=Ge.KeywordCxt=Ge.Ajv=void 0;var BY=Qh(),HY=fE(),KY=sg(),hE=mE(),GY=["/properties"],cu="http://json-schema.org/draft-04/schema",Sc=class extends BY.default{constructor(t={}){super({...t,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),HY.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(KY.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(hE,GY):hE;this.addMetaSchema(t,cu,!1),this.refs["http://json-schema.org/schema"]=cu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(cu)?cu:void 0)}};Ge.Ajv=Sc;yE.exports=Ge=Sc;Object.defineProperty(Ge,"__esModule",{value:!0});Ge.default=Sc;var WY=hs();Object.defineProperty(Ge,"KeywordCxt",{enumerable:!0,get:function(){return WY.KeywordCxt}});var As=te();Object.defineProperty(Ge,"_",{enumerable:!0,get:function(){return As._}});Object.defineProperty(Ge,"str",{enumerable:!0,get:function(){return As.str}});Object.defineProperty(Ge,"stringify",{enumerable:!0,get:function(){return As.stringify}});Object.defineProperty(Ge,"nil",{enumerable:!0,get:function(){return As.nil}});Object.defineProperty(Ge,"Name",{enumerable:!0,get:function(){return As.Name}});Object.defineProperty(Ge,"CodeGen",{enumerable:!0,get:function(){return As.CodeGen}});var YY=ec();Object.defineProperty(Ge,"ValidationError",{enumerable:!0,get:function(){return YY.default}});var QY=ys();Object.defineProperty(Ge,"MissingRefError",{enumerable:!0,get:function(){return QY.default}})});var $E=$(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.formatNames=xn.fastFormats=xn.fullFormats=void 0;function bn(e,t){return{validate:e,compare:t}}xn.fullFormats={date:bn(SE,wg),time:bn(xg(!0),_g),"date-time":bn(vE(!0),_E),"iso-time":bn(xg(),wE),"iso-date-time":bn(vE(),PE),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:rQ,"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:pQ,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:nQ,int32:{type:"number",validate:sQ},int64:{type:"number",validate:aQ},float:{type:"number",validate:xE},double:{type:"number",validate:xE},password:!0,binary:!0};xn.fastFormats={...xn.fullFormats,date:bn(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,wg),time:bn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_g),"date-time":bn(/^\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,_E),"iso-time":bn(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,wE),"iso-date-time":bn(/^\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,PE),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};xn.formatNames=Object.keys(xn.fullFormats);function JY(e){return e%4===0&&(e%100!==0||e%400===0)}var XY=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,ZY=[0,31,28,31,30,31,30,31,31,30,31,30,31];function SE(e){let t=XY.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&&JY(r)?29:ZY[n])}function wg(e,t){if(e&&t)return e>t?1:e<t?-1:0}var bg=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function xg(e){return function(r){let n=bg.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,f=o-p*c-(u<0?1:0);return(f===23||f===-1)&&(u===59||u===-1)&&s<61}}function _g(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 wE(e,t){if(!(e&&t))return;let r=bg.exec(e),n=bg.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 Sg=/t|\s/i;function vE(e){let t=xg(e);return function(n){let o=n.split(Sg);return o.length===2&&SE(o[0])&&t(o[1])}}function _E(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function PE(e,t){if(!(e&&t))return;let[r,n]=e.split(Sg),[o,i]=t.split(Sg),s=wg(r,o);if(s!==void 0)return s||_g(n,i)}var eQ=/\/|:/,tQ=/^(?:[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 rQ(e){return eQ.test(e)&&tQ.test(e)}var bE=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function nQ(e){return bE.lastIndex=0,bE.test(e)}var oQ=-(2**31),iQ=2**31-1;function sQ(e){return Number.isInteger(e)&&e<=iQ&&e>=oQ}function aQ(e){return Number.isInteger(e)}function xE(){return!0}var cQ=/[^\\]\\Z/;function pQ(e){if(cQ.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Pc=$(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.regexpCode=Ne.getEsmExportName=Ne.getProperty=Ne.safeStringify=Ne.stringify=Ne.strConcat=Ne.addCodeArg=Ne.str=Ne._=Ne.nil=Ne._Code=Ne.Name=Ne.IDENTIFIER=Ne._CodeOrName=void 0;var wc=class{};Ne._CodeOrName=wc;Ne.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var mi=class extends wc{constructor(t){if(super(),!Ne.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}}};Ne.Name=mi;var kr=class extends wc{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 mi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Ne._Code=kr;Ne.nil=new kr("");function EE(e,...t){let r=[e[0]],n=0;for(;n<t.length;)$g(r,t[n]),r.push(e[++n]);return new kr(r)}Ne._=EE;var Pg=new kr("+");function AE(e,...t){let r=[_c(e[0])],n=0;for(;n<t.length;)r.push(Pg),$g(r,t[n]),r.push(Pg,_c(e[++n]));return lQ(r),new kr(r)}Ne.str=AE;function $g(e,t){t instanceof kr?e.push(...t._items):t instanceof mi?e.push(t):e.push(fQ(t))}Ne.addCodeArg=$g;function lQ(e){let t=1;for(;t<e.length-1;){if(e[t]===Pg){let r=uQ(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function uQ(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof mi||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 mi))return`"${e}${t.slice(1)}`}function dQ(e,t){return t.emptyStr()?e:e.emptyStr()?t:AE`${e}${t}`}Ne.strConcat=dQ;function fQ(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:_c(Array.isArray(e)?e.join(","):e)}function mQ(e){return new kr(_c(e))}Ne.stringify=mQ;function _c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Ne.safeStringify=_c;function hQ(e){return typeof e=="string"&&Ne.IDENTIFIER.test(e)?new kr(`.${e}`):EE`[${e}]`}Ne.getProperty=hQ;function yQ(e){if(typeof e=="string"&&Ne.IDENTIFIER.test(e))return new kr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Ne.getEsmExportName=yQ;function gQ(e){return new kr(e.toString())}Ne.regexpCode=gQ});var Tg=$(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.ValueScope=ur.ValueScopeName=ur.Scope=ur.varKinds=ur.UsedValueState=void 0;var lr=Pc(),Eg=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},pu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(pu||(ur.UsedValueState=pu={}));ur.varKinds={const:new lr.Name("const"),let:new lr.Name("let"),var:new lr.Name("var")};var lu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof lr.Name?t:this.name(t)}name(t){return new lr.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}}};ur.Scope=lu;var uu=class extends lr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,lr._)`.${new lr.Name(r)}[${n}]`}};ur.ValueScopeName=uu;var vQ=(0,lr._)`\n`,Ag=class extends lu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?vQ:lr.nil}}get(){return this._scope}name(t){return new uu(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,lr._)`${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=lr.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,pu.Started);let l=r(p);if(l){let u=this.opts.es5?ur.varKinds.var:ur.varKinds.const;i=(0,lr._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,lr._)`${i}${l}${this.opts._n}`;else throw new Eg(p);c.set(p,pu.Completed)})}return i}};ur.ValueScope=Ag});var fe=$(ye=>{"use strict";Object.defineProperty(ye,"__esModule",{value:!0});ye.or=ye.and=ye.not=ye.CodeGen=ye.operators=ye.varKinds=ye.ValueScopeName=ye.ValueScope=ye.Scope=ye.Name=ye.regexpCode=ye.stringify=ye.getProperty=ye.nil=ye.strConcat=ye.str=ye._=void 0;var Te=Pc(),Jr=Tg(),vo=Pc();Object.defineProperty(ye,"_",{enumerable:!0,get:function(){return vo._}});Object.defineProperty(ye,"str",{enumerable:!0,get:function(){return vo.str}});Object.defineProperty(ye,"strConcat",{enumerable:!0,get:function(){return vo.strConcat}});Object.defineProperty(ye,"nil",{enumerable:!0,get:function(){return vo.nil}});Object.defineProperty(ye,"getProperty",{enumerable:!0,get:function(){return vo.getProperty}});Object.defineProperty(ye,"stringify",{enumerable:!0,get:function(){return vo.stringify}});Object.defineProperty(ye,"regexpCode",{enumerable:!0,get:function(){return vo.regexpCode}});Object.defineProperty(ye,"Name",{enumerable:!0,get:function(){return vo.Name}});var hu=Tg();Object.defineProperty(ye,"Scope",{enumerable:!0,get:function(){return hu.Scope}});Object.defineProperty(ye,"ValueScope",{enumerable:!0,get:function(){return hu.ValueScope}});Object.defineProperty(ye,"ValueScopeName",{enumerable:!0,get:function(){return hu.ValueScopeName}});Object.defineProperty(ye,"varKinds",{enumerable:!0,get:function(){return hu.varKinds}});ye.operators={GT:new Te._Code(">"),GTE:new Te._Code(">="),LT:new Te._Code("<"),LTE:new Te._Code("<="),EQ:new Te._Code("==="),NEQ:new Te._Code("!=="),NOT:new Te._Code("!"),OR:new Te._Code("||"),AND:new Te._Code("&&"),ADD:new Te._Code("+")};var Gn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Rg=class extends Gn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Jr.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=Rs(this.rhs,t,r)),this}get names(){return this.rhs instanceof Te._CodeOrName?this.rhs.names:{}}},du=class extends Gn{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 Te.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Rs(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Te.Name?{}:{...this.lhs.names};return mu(t,this.rhs)}},Og=class extends du{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},kg=class extends Gn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Ig=class extends Gn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Cg=class extends Gn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},qg=class extends Gn{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=Rs(this.code,t,r),this}get names(){return this.code instanceof Te._CodeOrName?this.code.names:{}}},$c=class extends Gn{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)||(bQ(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>gi(t,r.names),{})}},Wn=class extends $c{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Ng=class extends $c{},Ts=class extends Wn{};Ts.kind="else";var hi=class e extends Wn{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 Ts(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(TE(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=Rs(this.condition,t,r),this}get names(){let t=super.names;return mu(t,this.condition),this.else&&gi(t,this.else.names),t}};hi.kind="if";var yi=class extends Wn{};yi.kind="for";var jg=class extends yi{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=Rs(this.iteration,t,r),this}get names(){return gi(super.names,this.iteration.names)}},Mg=class extends yi{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?Jr.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=mu(super.names,this.from);return mu(t,this.to)}},fu=class extends yi{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=Rs(this.iterable,t,r),this}get names(){return gi(super.names,this.iterable.names)}},Ec=class extends Wn{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)}};Ec.kind="func";var Ac=class extends $c{render(t){return"return "+super.render(t)}};Ac.kind="return";var Dg=class extends Wn{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&&gi(t,this.catch.names),this.finally&&gi(t,this.finally.names),t}},Tc=class extends Wn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Tc.kind="catch";var Rc=class extends Wn{render(t){return"finally"+super.render(t)}};Rc.kind="finally";var Lg=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
15
|
-
`:""},this._extScope=t,this._scope=new Jr.Scope({parent:t}),this._nodes=[new Ng]}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 Rg(t,i,n)),i}const(t,r,n){return this._def(Jr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Jr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Jr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new du(t,r,n))}add(t,r){return this._leafNode(new Og(t,ye.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Te.nil&&this._leafNode(new qg(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,Te.addCodeArg)(r,o));return r.push("}"),new Te._Code(r)}if(t,r,n){if(this._blockNode(new hi(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 hi(t))}else(){return this._elseNode(new Ts)}endIf(){return this._endBlockNode(hi,Ts)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new jg(t),r)}forRange(t,r,n,o,i=this.opts.es5?Jr.varKinds.var:Jr.varKinds.let){let s=this._scope.toName(t);return this._for(new Mg(i,s,r,n),()=>o(s))}forOf(t,r,n,o=Jr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof Te.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Te._)`${s}.length`,a=>{this.var(i,(0,Te._)`${s}[${a}]`),n(i)})}return this._for(new fu("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?Jr.varKinds.var:Jr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Te._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new fu("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(yi)}label(t){return this._leafNode(new kg(t))}break(t){return this._leafNode(new Ig(t))}return(t){let r=new Ac;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ac)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Dg;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Tc(i),r(i)}return n&&(this._currNode=o.finally=new Rc,this.code(n)),this._endBlockNode(Tc,Rc)}throw(t){return this._leafNode(new Cg(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=Te.nil,n,o){return this._blockNode(new Ec(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Ec)}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 hi))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}};ye.CodeGen=Lg;function gi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function mu(e,t){return t instanceof Te._CodeOrName?gi(e,t.names):e}function Rs(e,t,r){if(e instanceof Te.Name)return n(e);if(!o(e))return e;return new Te._Code(e._items.reduce((i,s)=>(s instanceof Te.Name&&(s=n(s)),s instanceof Te._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 Te._Code&&i._items.some(s=>s instanceof Te.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function bQ(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function TE(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Te._)`!${Ug(e)}`}ye.not=TE;var xQ=RE(ye.operators.AND);function SQ(...e){return e.reduce(xQ)}ye.and=SQ;var wQ=RE(ye.operators.OR);function _Q(...e){return e.reduce(wQ)}ye.or=_Q;function RE(e){return(t,r)=>t===Te.nil?r:r===Te.nil?t:(0,Te._)`${Ug(t)} ${e} ${Ug(r)}`}function Ug(e){return e instanceof Te.Name?e:(0,Te._)`(${e})`}});var Ie=$(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.checkStrictMode=Se.getErrorPath=Se.Type=Se.useFunc=Se.setEvaluated=Se.evaluatedPropsToName=Se.mergeEvaluated=Se.eachItem=Se.unescapeJsonPointer=Se.escapeJsonPointer=Se.escapeFragment=Se.unescapeFragment=Se.schemaRefOrVal=Se.schemaHasRulesButRef=Se.schemaHasRules=Se.checkUnknownRules=Se.alwaysValidSchema=Se.toHash=void 0;var He=fe(),PQ=Pc();function $Q(e){let t={};for(let r of e)t[r]=!0;return t}Se.toHash=$Q;function EQ(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(IE(e,t),!CE(t,e.self.RULES.all))}Se.alwaysValidSchema=EQ;function IE(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]||jE(e,`unknown keyword: "${i}"`)}Se.checkUnknownRules=IE;function CE(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}Se.schemaHasRules=CE;function AQ(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}Se.schemaHasRulesButRef=AQ;function TQ({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,He._)`${r}`}return(0,He._)`${e}${t}${(0,He.getProperty)(n)}`}Se.schemaRefOrVal=TQ;function RQ(e){return qE(decodeURIComponent(e))}Se.unescapeFragment=RQ;function OQ(e){return encodeURIComponent(zg(e))}Se.escapeFragment=OQ;function zg(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}Se.escapeJsonPointer=zg;function qE(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}Se.unescapeJsonPointer=qE;function kQ(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}Se.eachItem=kQ;function OE({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof He.Name?(i instanceof He.Name?e(o,i,s):t(o,i,s),s):i instanceof He.Name?(t(o,s,i),i):r(i,s);return a===He.Name&&!(c instanceof He.Name)?n(o,c):c}}Se.mergeEvaluated={props:OE({mergeNames:(e,t,r)=>e.if((0,He._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,He._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,He._)`${r} || {}`).code((0,He._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,He._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,He._)`${r} || {}`),Vg(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:NE}),items:OE({mergeNames:(e,t,r)=>e.if((0,He._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,He._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,He._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,He._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function NE(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,He._)`{}`);return t!==void 0&&Vg(e,r,t),r}Se.evaluatedPropsToName=NE;function Vg(e,t,r){Object.keys(r).forEach(n=>e.assign((0,He._)`${t}${(0,He.getProperty)(n)}`,!0))}Se.setEvaluated=Vg;var kE={};function IQ(e,t){return e.scopeValue("func",{ref:t,code:kE[t.code]||(kE[t.code]=new PQ._Code(t.code))})}Se.useFunc=IQ;var Fg;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Fg||(Se.Type=Fg={}));function CQ(e,t,r){if(e instanceof He.Name){let n=t===Fg.Num;return r?n?(0,He._)`"[" + ${e} + "]"`:(0,He._)`"['" + ${e} + "']"`:n?(0,He._)`"/" + ${e}`:(0,He._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,He.getProperty)(e).toString():"/"+zg(e)}Se.getErrorPath=CQ;function jE(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}Se.checkStrictMode=jE});var Yn=$(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});var Lt=fe(),qQ={data:new Lt.Name("data"),valCxt:new Lt.Name("valCxt"),instancePath:new Lt.Name("instancePath"),parentData:new Lt.Name("parentData"),parentDataProperty:new Lt.Name("parentDataProperty"),rootData:new Lt.Name("rootData"),dynamicAnchors:new Lt.Name("dynamicAnchors"),vErrors:new Lt.Name("vErrors"),errors:new Lt.Name("errors"),this:new Lt.Name("this"),self:new Lt.Name("self"),scope:new Lt.Name("scope"),json:new Lt.Name("json"),jsonPos:new Lt.Name("jsonPos"),jsonLen:new Lt.Name("jsonLen"),jsonPart:new Lt.Name("jsonPart")};Bg.default=qQ});var Oc=$(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 Ce=fe(),yu=Ie(),Yt=Yn();Ut.keywordError={message:({keyword:e})=>(0,Ce.str)`must pass "${e}" keyword validation`};Ut.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Ce.str)`"${e}" keyword must be ${t} ($data)`:(0,Ce.str)`"${e}" keyword is invalid ($data)`};function NQ(e,t=Ut.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=LE(e,t,r);n??(s||a)?ME(i,c):DE(o,(0,Ce._)`[${c}]`)}Ut.reportError=NQ;function jQ(e,t=Ut.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=LE(e,t,r);ME(o,a),i||s||DE(n,Yt.default.vErrors)}Ut.reportExtraError=jQ;function MQ(e,t){e.assign(Yt.default.errors,t),e.if((0,Ce._)`${Yt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Ce._)`${Yt.default.vErrors}.length`,t),()=>e.assign(Yt.default.vErrors,null)))}Ut.resetErrorsCount=MQ;function DQ({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,Yt.default.errors,a=>{e.const(s,(0,Ce._)`${Yt.default.vErrors}[${a}]`),e.if((0,Ce._)`${s}.instancePath === undefined`,()=>e.assign((0,Ce._)`${s}.instancePath`,(0,Ce.strConcat)(Yt.default.instancePath,i.errorPath))),e.assign((0,Ce._)`${s}.schemaPath`,(0,Ce.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,Ce._)`${s}.schema`,r),e.assign((0,Ce._)`${s}.data`,n))})}Ut.extendErrors=DQ;function ME(e,t){let r=e.const("err",t);e.if((0,Ce._)`${Yt.default.vErrors} === null`,()=>e.assign(Yt.default.vErrors,(0,Ce._)`[${r}]`),(0,Ce._)`${Yt.default.vErrors}.push(${r})`),e.code((0,Ce._)`${Yt.default.errors}++`)}function DE(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,Ce._)`new ${e.ValidationError}(${t})`):(r.assign((0,Ce._)`${n}.errors`,t),r.return(!1))}var vi={keyword:new Ce.Name("keyword"),schemaPath:new Ce.Name("schemaPath"),params:new Ce.Name("params"),propertyName:new Ce.Name("propertyName"),message:new Ce.Name("message"),schema:new Ce.Name("schema"),parentSchema:new Ce.Name("parentSchema")};function LE(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Ce._)`{}`:LQ(e,t,r)}function LQ(e,t,r={}){let{gen:n,it:o}=e,i=[UQ(o,r),FQ(e,r)];return zQ(e,t,i),n.object(...i)}function UQ({errorPath:e},{instancePath:t}){let r=t?(0,Ce.str)`${e}${(0,yu.getErrorPath)(t,yu.Type.Str)}`:e;return[Yt.default.instancePath,(0,Ce.strConcat)(Yt.default.instancePath,r)]}function FQ({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,Ce.str)`${t}/${e}`;return r&&(o=(0,Ce.str)`${o}${(0,yu.getErrorPath)(r,yu.Type.Str)}`),[vi.schemaPath,o]}function zQ(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([vi.keyword,o],[vi.params,typeof t=="function"?t(e):t||(0,Ce._)`{}`]),c.messages&&n.push([vi.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([vi.schema,s],[vi.parentSchema,(0,Ce._)`${l}${u}`],[Yt.default.data,i]),p&&n.push([vi.propertyName,p])}});var FE=$(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.boolOrEmptySchema=Os.topBoolOrEmptySchema=void 0;var VQ=Oc(),BQ=fe(),HQ=Yn(),KQ={message:"boolean schema is false"};function GQ(e){let{gen:t,schema:r,validateName:n}=e;r===!1?UE(e,!1):typeof r=="object"&&r.$async===!0?t.return(HQ.default.data):(t.assign((0,BQ._)`${n}.errors`,null),t.return(!0))}Os.topBoolOrEmptySchema=GQ;function WQ(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),UE(e)):r.var(t,!0)}Os.boolOrEmptySchema=WQ;function UE(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,VQ.reportError)(o,KQ,void 0,t)}});var Hg=$(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.getRules=ks.isJSONType=void 0;var YQ=["string","number","integer","boolean","null","object","array"],QQ=new Set(YQ);function JQ(e){return typeof e=="string"&&QQ.has(e)}ks.isJSONType=JQ;function XQ(){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:{}}}ks.getRules=XQ});var Kg=$(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.shouldUseRule=bo.shouldUseGroup=bo.schemaHasRulesForType=void 0;function ZQ({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&zE(e,n)}bo.schemaHasRulesForType=ZQ;function zE(e,t){return t.rules.some(r=>VE(e,r))}bo.shouldUseGroup=zE;function VE(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))}bo.shouldUseRule=VE});var kc=$(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.reportTypeError=Ft.checkDataTypes=Ft.checkDataType=Ft.coerceAndCheckDataType=Ft.getJSONTypes=Ft.getSchemaTypes=Ft.DataType=void 0;var e6=Hg(),t6=Kg(),r6=Oc(),ue=fe(),BE=Ie(),Is;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Is||(Ft.DataType=Is={}));function n6(e){let t=HE(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}Ft.getSchemaTypes=n6;function HE(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(e6.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Ft.getJSONTypes=HE;function o6(e,t){let{gen:r,data:n,opts:o}=e,i=i6(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,t6.schemaHasRulesForType)(e,t[0]));if(s){let a=Wg(t,n,o.strictNumbers,Is.Wrong);r.if(a,()=>{i.length?s6(e,t,i):Yg(e)})}return s}Ft.coerceAndCheckDataType=o6;var KE=new Set(["string","number","integer","boolean","null"]);function i6(e,t){return t?e.filter(r=>KE.has(r)||t==="array"&&r==="array"):[]}function s6(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,ue._)`typeof ${o}`),a=n.let("coerced",(0,ue._)`undefined`);i.coerceTypes==="array"&&n.if((0,ue._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,ue._)`${o}[0]`).assign(s,(0,ue._)`typeof ${o}`).if(Wg(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,ue._)`${a} !== undefined`);for(let p of r)(KE.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),Yg(e),n.endIf(),n.if((0,ue._)`${a} !== undefined`,()=>{n.assign(o,a),a6(e,a)});function c(p){switch(p){case"string":n.elseIf((0,ue._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,ue._)`"" + ${o}`).elseIf((0,ue._)`${o} === null`).assign(a,(0,ue._)`""`);return;case"number":n.elseIf((0,ue._)`${s} == "boolean" || ${o} === null
|
|
16
|
-
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,ue._)`+${o}`);return;case"integer":n.elseIf((0,ue._)`${s} === "boolean" || ${o} === null
|
|
17
|
-
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,ue._)`+${o}`);return;case"boolean":n.elseIf((0,ue._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,ue._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,ue._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,ue._)`${s} === "string" || ${s} === "number"
|
|
18
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,ue._)`[${o}]`)}}}function a6({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ue._)`${t} !== undefined`,()=>e.assign((0,ue._)`${t}[${r}]`,n))}function Gg(e,t,r,n=Is.Correct){let o=n===Is.Correct?ue.operators.EQ:ue.operators.NEQ,i;switch(e){case"null":return(0,ue._)`${t} ${o} null`;case"array":i=(0,ue._)`Array.isArray(${t})`;break;case"object":i=(0,ue._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,ue._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,ue._)`typeof ${t} ${o} ${e}`}return n===Is.Correct?i:(0,ue.not)(i);function s(a=ue.nil){return(0,ue.and)((0,ue._)`typeof ${t} == "number"`,a,r?(0,ue._)`isFinite(${t})`:ue.nil)}}Ft.checkDataType=Gg;function Wg(e,t,r,n){if(e.length===1)return Gg(e[0],t,r,n);let o,i=(0,BE.toHash)(e);if(i.array&&i.object){let s=(0,ue._)`typeof ${t} != "object"`;o=i.null?s:(0,ue._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=ue.nil;i.number&&delete i.integer;for(let s in i)o=(0,ue.and)(o,Gg(s,t,r,n));return o}Ft.checkDataTypes=Wg;var c6={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ue._)`{type: ${e}}`:(0,ue._)`{type: ${t}}`};function Yg(e){let t=p6(e);(0,r6.reportError)(t,c6)}Ft.reportTypeError=Yg;function p6(e){let{gen:t,data:r,schema:n}=e,o=(0,BE.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var WE=$(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.assignDefaults=void 0;var Cs=fe(),l6=Ie();function u6(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)GE(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>GE(e,i,o.default))}gu.assignDefaults=u6;function GE(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Cs._)`${i}${(0,Cs.getProperty)(t)}`;if(o){(0,l6.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Cs._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Cs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Cs._)`${a} = ${(0,Cs.stringify)(r)}`)}});var Ir=$(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.validateUnion=ze.validateArray=ze.usePattern=ze.callValidateCode=ze.schemaProperties=ze.allSchemaProperties=ze.noPropertyInData=ze.propertyInData=ze.isOwnProperty=ze.hasPropFunc=ze.reportMissingProp=ze.checkMissingProp=ze.checkReportMissingProp=void 0;var We=fe(),Qg=Ie(),xo=Yn(),d6=Ie();function f6(e,t){let{gen:r,data:n,it:o}=e;r.if(Xg(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,We._)`${t}`},!0),e.error()})}ze.checkReportMissingProp=f6;function m6({gen:e,data:t,it:{opts:r}},n,o){return(0,We.or)(...n.map(i=>(0,We.and)(Xg(e,t,i,r.ownProperties),(0,We._)`${o} = ${i}`)))}ze.checkMissingProp=m6;function h6(e,t){e.setParams({missingProperty:t},!0),e.error()}ze.reportMissingProp=h6;function YE(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,We._)`Object.prototype.hasOwnProperty`})}ze.hasPropFunc=YE;function Jg(e,t,r){return(0,We._)`${YE(e)}.call(${t}, ${r})`}ze.isOwnProperty=Jg;function y6(e,t,r,n){let o=(0,We._)`${t}${(0,We.getProperty)(r)} !== undefined`;return n?(0,We._)`${o} && ${Jg(e,t,r)}`:o}ze.propertyInData=y6;function Xg(e,t,r,n){let o=(0,We._)`${t}${(0,We.getProperty)(r)} === undefined`;return n?(0,We.or)(o,(0,We.not)(Jg(e,t,r))):o}ze.noPropertyInData=Xg;function QE(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}ze.allSchemaProperties=QE;function g6(e,t){return QE(t).filter(r=>!(0,Qg.alwaysValidSchema)(e,t[r]))}ze.schemaProperties=g6;function v6({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,We._)`${e}, ${t}, ${n}${o}`:t,u=[[xo.default.instancePath,(0,We.strConcat)(xo.default.instancePath,i)],[xo.default.parentData,s.parentData],[xo.default.parentDataProperty,s.parentDataProperty],[xo.default.rootData,xo.default.rootData]];s.opts.dynamicRef&&u.push([xo.default.dynamicAnchors,xo.default.dynamicAnchors]);let f=(0,We._)`${l}, ${r.object(...u)}`;return c!==We.nil?(0,We._)`${a}.call(${c}, ${f})`:(0,We._)`${a}(${f})`}ze.callValidateCode=v6;var b6=(0,We._)`new RegExp`;function x6({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,We._)`${o.code==="new RegExp"?b6:(0,d6.useFunc)(e,o)}(${r}, ${n})`})}ze.usePattern=x6;function S6(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(i,!0),s(()=>t.break()),i;function s(a){let c=t.const("len",(0,We._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:Qg.Type.Num},i),t.if((0,We.not)(i),a)})}}ze.validateArray=S6;function w6(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,Qg.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,We._)`${s} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,We.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}ze.validateUnion=w6});var ZE=$(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.validateKeywordUsage=Sn.validSchemaType=Sn.funcKeywordCode=Sn.macroKeywordCode=void 0;var Qt=fe(),bi=Yn(),_6=Ir(),P6=Oc();function $6(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=XE(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:Qt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}Sn.macroKeywordCode=$6;function E6(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;T6(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=XE(n,o,p),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)y(),t.modifying&&JE(e),b(()=>e.error());else{let x=t.async?m():h();t.modifying&&JE(e),b(()=>A6(e,x))}}function m(){let x=n.let("ruleErrs",null);return n.try(()=>y((0,Qt._)`await `),w=>n.assign(u,!1).if((0,Qt._)`${w} instanceof ${c.ValidationError}`,()=>n.assign(x,(0,Qt._)`${w}.errors`),()=>n.throw(w))),x}function h(){let x=(0,Qt._)`${l}.errors`;return n.assign(x,null),y(Qt.nil),x}function y(x=t.async?(0,Qt._)`await `:Qt.nil){let w=c.opts.passContext?bi.default.this:bi.default.self,S=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,Qt._)`${x}${(0,_6.callValidateCode)(e,l,w,S)}`,t.modifying)}function b(x){var w;n.if((0,Qt.not)((w=t.valid)!==null&&w!==void 0?w:u),x)}}Sn.funcKeywordCode=E6;function JE(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Qt._)`${n.parentData}[${n.parentDataProperty}]`))}function A6(e,t){let{gen:r}=e;r.if((0,Qt._)`Array.isArray(${t})`,()=>{r.assign(bi.default.vErrors,(0,Qt._)`${bi.default.vErrors} === null ? ${t} : ${bi.default.vErrors}.concat(${t})`).assign(bi.default.errors,(0,Qt._)`${bi.default.vErrors}.length`),(0,P6.extendErrors)(e)},()=>e.error())}function T6({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function XE(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,Qt.stringify)(r)})}function R6(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")}Sn.validSchemaType=R6;function O6({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)}}Sn.validateKeywordUsage=O6});var tA=$(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.extendSubschemaMode=So.extendSubschemaData=So.getSubschema=void 0;var wn=fe(),eA=Ie();function k6(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,wn._)`${e.schemaPath}${(0,wn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,wn._)`${e.schemaPath}${(0,wn.getProperty)(t)}${(0,wn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,eA.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')}So.getSubschema=k6;function I6(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,f=a.let("data",(0,wn._)`${t.data}${(0,wn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,wn.str)`${p}${(0,eA.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,wn._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof wn.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]}}So.extendSubschemaData=I6;function C6(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}So.extendSubschemaMode=C6});var Ic=$(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.getSchemaRefs=dr.resolveUrl=dr.normalizeId=dr._getFullPath=dr.getFullPath=dr.inlineRef=void 0;var q6=Ie(),N6=Qa(),j6=_h(),M6=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function D6(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Zg(e):t?rA(e)<=t:!1}dr.inlineRef=D6;var L6=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Zg(e){for(let t in e){if(L6.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Zg)||typeof r=="object"&&Zg(r))return!0}return!1}function rA(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!M6.has(r)&&(typeof e[r]=="object"&&(0,q6.eachItem)(e[r],n=>t+=rA(n)),t===1/0))return 1/0}return t}function nA(e,t="",r){r!==!1&&(t=qs(t));let n=e.parse(t);return oA(e,n)}dr.getFullPath=nA;function oA(e,t){return e.serialize(t).split("#")[0]+"#"}dr._getFullPath=oA;var U6=/#\/?$/;function qs(e){return e?e.replace(U6,""):""}dr.normalizeId=qs;function F6(e,t,r){return r=qs(r),e.resolve(t,r)}dr.resolveUrl=F6;var z6=/^[a-z_][-a-z0-9._]*$/i;function V6(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=qs(e[r]||t),i={"":o},s=nA(n,o,!1),a={},c=new Set;return j6(e,{allKeys:!0},(u,f,m,h)=>{if(h===void 0)return;let y=s+f,b=i[h];typeof u[r]=="string"&&(b=x.call(this,u[r])),w.call(this,u.$anchor),w.call(this,u.$dynamicAnchor),i[f]=b;function x(S){let E=this.opts.uriResolver.resolve;if(S=qs(b?E(b,S):S),c.has(S))throw l(S);c.add(S);let P=this.refs[S];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?p(u,P.schema,S):S!==qs(y)&&(S[0]==="#"?(p(u,a[S],S),a[S]=u):this.refs[S]=y),S}function w(S){if(typeof S=="string"){if(!z6.test(S))throw new Error(`invalid anchor "${S}"`);x.call(this,`#${S}`)}}}),a;function p(u,f,m){if(f!==void 0&&!N6(u,f))throw l(m)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}dr.getSchemaRefs=V6});var Nc=$(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.getData=wo.KeywordCxt=wo.validateFunctionCode=void 0;var pA=FE(),iA=kc(),tv=Kg(),vu=kc(),B6=WE(),qc=ZE(),ev=tA(),Y=fe(),ne=Yn(),H6=Ic(),Qn=Ie(),Cc=Oc();function K6(e){if(dA(e)&&(fA(e),uA(e))){Y6(e);return}lA(e,()=>(0,pA.topBoolOrEmptySchema)(e))}wo.validateFunctionCode=K6;function lA({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,Y._)`${ne.default.data}, ${ne.default.valCxt}`,n.$async,()=>{e.code((0,Y._)`"use strict"; ${sA(r,o)}`),W6(e,o),e.code(i)}):e.func(t,(0,Y._)`${ne.default.data}, ${G6(o)}`,n.$async,()=>e.code(sA(r,o)).code(i))}function G6(e){return(0,Y._)`{${ne.default.instancePath}="", ${ne.default.parentData}, ${ne.default.parentDataProperty}, ${ne.default.rootData}=${ne.default.data}${e.dynamicRef?(0,Y._)`, ${ne.default.dynamicAnchors}={}`:Y.nil}}={}`}function W6(e,t){e.if(ne.default.valCxt,()=>{e.var(ne.default.instancePath,(0,Y._)`${ne.default.valCxt}.${ne.default.instancePath}`),e.var(ne.default.parentData,(0,Y._)`${ne.default.valCxt}.${ne.default.parentData}`),e.var(ne.default.parentDataProperty,(0,Y._)`${ne.default.valCxt}.${ne.default.parentDataProperty}`),e.var(ne.default.rootData,(0,Y._)`${ne.default.valCxt}.${ne.default.rootData}`),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,Y._)`${ne.default.valCxt}.${ne.default.dynamicAnchors}`)},()=>{e.var(ne.default.instancePath,(0,Y._)`""`),e.var(ne.default.parentData,(0,Y._)`undefined`),e.var(ne.default.parentDataProperty,(0,Y._)`undefined`),e.var(ne.default.rootData,ne.default.data),t.dynamicRef&&e.var(ne.default.dynamicAnchors,(0,Y._)`{}`)})}function Y6(e){let{schema:t,opts:r,gen:n}=e;lA(e,()=>{r.$comment&&t.$comment&&hA(e),e8(e),n.let(ne.default.vErrors,null),n.let(ne.default.errors,0),r.unevaluated&&Q6(e),mA(e),n8(e)})}function Q6(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,Y._)`${r}.evaluated`),t.if((0,Y._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,Y._)`${e.evaluated}.props`,(0,Y._)`undefined`)),t.if((0,Y._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,Y._)`${e.evaluated}.items`,(0,Y._)`undefined`))}function sA(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,Y._)`/*# sourceURL=${r} */`:Y.nil}function J6(e,t){if(dA(e)&&(fA(e),uA(e))){X6(e,t);return}(0,pA.boolOrEmptySchema)(e,t)}function uA({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 dA(e){return typeof e.schema!="boolean"}function X6(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&hA(e),t8(e),r8(e);let i=n.const("_errs",ne.default.errors);mA(e,i),n.var(t,(0,Y._)`${i} === ${ne.default.errors}`)}function fA(e){(0,Qn.checkUnknownRules)(e),Z6(e)}function mA(e,t){if(e.opts.jtd)return aA(e,[],!1,t);let r=(0,iA.getSchemaTypes)(e.schema),n=(0,iA.coerceAndCheckDataType)(e,r);aA(e,r,!n,t)}function Z6(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Qn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function e8(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Qn.checkStrictMode)(e,"default is ignored in the schema root")}function t8(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,H6.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function r8(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function hA({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,Y._)`${ne.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,Y.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,Y._)`${ne.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function n8(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,Y._)`${ne.default.errors} === 0`,()=>t.return(ne.default.data),()=>t.throw((0,Y._)`new ${o}(${ne.default.vErrors})`)):(t.assign((0,Y._)`${n}.errors`,ne.default.vErrors),i.unevaluated&&o8(e),t.return((0,Y._)`${ne.default.errors} === 0`))}function o8({gen:e,evaluated:t,props:r,items:n}){r instanceof Y.Name&&e.assign((0,Y._)`${t}.props`,r),n instanceof Y.Name&&e.assign((0,Y._)`${t}.items`,n)}function aA(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,Qn.schemaHasRulesButRef)(i,l))){o.block(()=>gA(e,"$ref",l.all.$ref.definition));return}c.jtd||i8(e,t),o.block(()=>{for(let f of l.rules)u(f);u(l.post)});function u(f){(0,tv.shouldUseGroup)(i,f)&&(f.type?(o.if((0,vu.checkDataType)(f.type,s,c.strictNumbers)),cA(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,vu.reportTypeError)(e)),o.endIf()):cA(e,f),a||o.if((0,Y._)`${ne.default.errors} === ${n||0}`))}}function cA(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,B6.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,tv.shouldUseRule)(n,i)&&gA(e,i.keyword,i.definition,t.type)})}function i8(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(s8(e,t),e.opts.allowUnionTypes||a8(e,t),c8(e,e.dataTypes))}function s8(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{yA(e.dataTypes,r)||rv(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),l8(e,t)}}function a8(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&rv(e,"use allowUnionTypes to allow union type keyword")}function c8(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,tv.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>p8(t,s))&&rv(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function p8(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function yA(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function l8(e,t){let r=[];for(let n of e.dataTypes)yA(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function rv(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Qn.checkStrictMode)(e,t,e.opts.strictTypes)}var bu=class{constructor(t,r,n){if((0,qc.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,Qn.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",vA(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,qc.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",ne.default.errors))}result(t,r,n){this.failResult((0,Y.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Y.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,Y._)`${r} !== undefined && (${(0,Y.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Cc.reportExtraError:Cc.reportError)(this,this.def.error,r)}$dataError(){(0,Cc.reportError)(this,this.def.$dataError||Cc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Cc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=Y.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=Y.nil,r=Y.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,Y.or)((0,Y._)`${o} === undefined`,r)),t!==Y.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==Y.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,Y.or)(s(),a());function s(){if(n.length){if(!(r instanceof Y.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,Y._)`${(0,vu.checkDataTypes)(c,r,i.opts.strictNumbers,vu.DataType.Wrong)}`}return Y.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,Y._)`!${c}(${r})`}return Y.nil}}subschema(t,r){let n=(0,ev.getSubschema)(this.it,t);(0,ev.extendSubschemaData)(n,this.it,t),(0,ev.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return J6(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Qn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Qn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,Y.Name)),!0}};wo.KeywordCxt=bu;function gA(e,t,r,n){let o=new bu(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,qc.funcKeywordCode)(o,r):"macro"in r?(0,qc.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,qc.funcKeywordCode)(o,r)}var u8=/^\/(?:[^~]|~0|~1)*$/,d8=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function vA(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return ne.default.rootData;if(e[0]==="/"){if(!u8.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=ne.default.rootData}else{let p=d8.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,Y._)`${i}${(0,Y.getProperty)((0,Qn.unescapeJsonPointer)(p))}`,s=(0,Y._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}wo.getData=vA});var xu=$(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});var nv=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};ov.default=nv});var jc=$(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});var iv=Ic(),sv=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,iv.resolveUrl)(t,r,n),this.missingSchema=(0,iv.normalizeId)((0,iv.getFullPath)(t,this.missingRef))}};av.default=sv});var wu=$(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.resolveSchema=Cr.getCompilingSchema=Cr.resolveRef=Cr.compileSchema=Cr.SchemaEnv=void 0;var Xr=fe(),f8=xu(),xi=Yn(),Zr=Ic(),bA=Ie(),m8=Nc(),Ns=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,Zr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Cr.SchemaEnv=Ns;function pv(e){let t=xA.call(this,e);if(t)return t;let r=(0,Zr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new Xr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:f8.default,code:(0,Xr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:xi.default.data,parentData:xi.default.parentData,parentDataProperty:xi.default.parentDataProperty,dataNames:[xi.default.data],dataPathArr:[Xr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Xr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Xr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Xr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,m8.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`${s.scopeRefs(xi.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let m=new Function(`${xi.default.self}`,`${xi.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:m}),m.errors=null,m.schema=e.schema,m.schemaEnv=e,e.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:h,items:y}=p;m.evaluated={props:h instanceof Xr.Name?void 0:h,items:y instanceof Xr.Name?void 0:y,dynamicProps:h instanceof Xr.Name,dynamicItems:y instanceof Xr.Name},m.source&&(m.source.evaluated=(0,Xr.stringify)(m.evaluated))}return e.validate=m,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)}}Cr.compileSchema=pv;function h8(e,t,r){var n;r=(0,Zr.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=v8.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 Ns({schema:s,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=y8.call(this,i)}Cr.resolveRef=h8;function y8(e){return(0,Zr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:pv.call(this,e)}function xA(e){for(let t of this._compilations)if(g8(t,e))return t}Cr.getCompilingSchema=xA;function g8(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function v8(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Su.call(this,e,t)}function Su(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Zr._getFullPath)(this.opts.uriResolver,r),o=(0,Zr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return cv.call(this,r,e);let i=(0,Zr.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Su.call(this,e,s);return typeof a?.schema!="object"?void 0:cv.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||pv.call(this,s),i===(0,Zr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,Zr.resolveUrl)(this.opts.uriResolver,o,p)),new Ns({schema:a,schemaId:c,root:e,baseId:o})}return cv.call(this,r,s)}}Cr.resolveSchema=Su;var b8=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function cv(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,bA.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!b8.has(a)&&p&&(t=(0,Zr.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,bA.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Zr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Su.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Ns({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var SA=$((fde,x8)=>{x8.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 _A=$(lv=>{"use strict";Object.defineProperty(lv,"__esModule",{value:!0});var wA=Kh();wA.code='require("ajv/dist/runtime/uri").default';lv.default=wA});var kA=$(At=>{"use strict";Object.defineProperty(At,"__esModule",{value:!0});At.CodeGen=At.Name=At.nil=At.stringify=At.str=At._=At.KeywordCxt=void 0;var S8=Nc();Object.defineProperty(At,"KeywordCxt",{enumerable:!0,get:function(){return S8.KeywordCxt}});var js=fe();Object.defineProperty(At,"_",{enumerable:!0,get:function(){return js._}});Object.defineProperty(At,"str",{enumerable:!0,get:function(){return js.str}});Object.defineProperty(At,"stringify",{enumerable:!0,get:function(){return js.stringify}});Object.defineProperty(At,"nil",{enumerable:!0,get:function(){return js.nil}});Object.defineProperty(At,"Name",{enumerable:!0,get:function(){return js.Name}});Object.defineProperty(At,"CodeGen",{enumerable:!0,get:function(){return js.CodeGen}});var w8=xu(),TA=jc(),_8=Hg(),Mc=wu(),P8=fe(),Dc=Ic(),_u=kc(),dv=Ie(),PA=SA(),$8=_A(),RA=(e,t)=>new RegExp(e,t);RA.code="new RegExp";var E8=["removeAdditional","useDefaults","coerceTypes"],A8=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),T8={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."},R8={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},$A=200;function O8(e){var t,r,n,o,i,s,a,c,p,l,u,f,m,h,y,b,x,w,S,E,P,T,N,I,O;let A=e.strict,ie=(t=e.code)===null||t===void 0?void 0:t.optimize,X=ie===!0||ie===void 0?1:ie||0,de=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:RA,q=(o=e.uriResolver)!==null&&o!==void 0?o:$8.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:A)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:A)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:A)!==null&&l!==void 0?l:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:A)!==null&&f!==void 0?f:"log",strictRequired:(h=(m=e.strictRequired)!==null&&m!==void 0?m:A)!==null&&h!==void 0?h:!1,code:e.code?{...e.code,optimize:X,regExp:de}:{optimize:X,regExp:de},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:$A,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:$A,meta:(x=e.meta)!==null&&x!==void 0?x:!0,messages:(w=e.messages)!==null&&w!==void 0?w:!0,inlineRefs:(S=e.inlineRefs)!==null&&S!==void 0?S:!0,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(T=e.validateSchema)!==null&&T!==void 0?T:!0,validateFormats:(N=e.validateFormats)!==null&&N!==void 0?N:!0,unicodeRegExp:(I=e.unicodeRegExp)!==null&&I!==void 0?I:!0,int32range:(O=e.int32range)!==null&&O!==void 0?O:!0,uriResolver:q}}var Lc=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,...O8(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new P8.ValueScope({scope:{},prefixes:A8,es5:r,lines:n}),this.logger=j8(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,_8.getRules)(),EA.call(this,T8,t,"NOT SUPPORTED"),EA.call(this,R8,t,"DEPRECATED","warn"),this._metaOpts=q8.call(this),t.formats&&I8.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&C8.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),k8.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=PA;n==="id"&&(o={...PA},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 f=this._addSchema(l,u);return f.validate||s.call(this,f)}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 TA.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,Dc.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=AA.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Mc.SchemaEnv({schema:{},schemaId:n});if(r=Mc.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=AA.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,Dc.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(D8.call(this,n,r),!r)return(0,dv.eachItem)(n,i=>uv.call(this,i)),this;U8.call(this,r);let o={...r,type:(0,_u.getJSONTypes)(r.type),schemaType:(0,_u.getJSONTypes)(r.schemaType)};return(0,dv.eachItem)(n,o.type.length===0?i=>uv.call(this,i,o):i=>o.type.forEach(s=>uv.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]=OA(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,Dc.normalizeId)(s||n);let p=Dc.getSchemaRefs.call(this,t,n);return c=new Mc.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):Mc.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{Mc.compileSchema.call(this,t)}finally{this.opts=r}}};Lc.ValidationError=w8.default;Lc.MissingRefError=TA.default;At.default=Lc;function EA(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 AA(e){return e=(0,Dc.normalizeId)(e),this.schemas[e]||this.refs[e]}function k8(){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 I8(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function C8(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 q8(){let e={...this.opts};for(let t of E8)delete e[t];return e}var N8={log(){},warn(){},error(){}};function j8(e){if(e===!1)return N8;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 M8=/^[a-z_$][a-z0-9_$:-]*$/i;function D8(e,t){let{RULES:r}=this;if((0,dv.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!M8.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 uv(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,_u.getJSONTypes)(t.type),schemaType:(0,_u.getJSONTypes)(t.schemaType)}};t.before?L8.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 L8(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 U8(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=OA(t)),e.validateSchema=this.compile(t,!0))}var F8={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function OA(e){return{anyOf:[e,F8]}}});var IA=$(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});var z8={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};fv.default=z8});var jA=$(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.callRef=Si.getValidate=void 0;var V8=jc(),CA=Ir(),fr=fe(),Ms=Yn(),qA=wu(),Pu=Ie(),B8={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=qA.resolveRef.call(c,p,o,r);if(l===void 0)throw new V8.default(n.opts.uriResolver,o,r);if(l instanceof qA.SchemaEnv)return f(l);return m(l);function u(){if(i===p)return $u(e,s,i,i.$async);let h=t.scopeValue("root",{ref:p});return $u(e,(0,fr._)`${h}.validate`,p,p.$async)}function f(h){let y=NA(e,h);$u(e,y,h,h.$async)}function m(h){let y=t.scopeValue("schema",a.code.source===!0?{ref:h,code:(0,fr.stringify)(h)}:{ref:h}),b=t.name("valid"),x=e.subschema({schema:h,dataTypes:[],schemaPath:fr.nil,topSchemaRef:y,errSchemaPath:r},b);e.mergeEvaluated(x),e.ok(b)}}};function NA(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,fr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Si.getValidate=NA;function $u(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?Ms.default.this:fr.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let h=o.let("valid");o.try(()=>{o.code((0,fr._)`await ${(0,CA.callValidateCode)(e,t,p)}`),m(t),s||o.assign(h,!0)},y=>{o.if((0,fr._)`!(${y} instanceof ${i.ValidationError})`,()=>o.throw(y)),f(y),s||o.assign(h,!1)}),e.ok(h)}function u(){e.result((0,CA.callValidateCode)(e,t,p),()=>m(t),()=>f(t))}function f(h){let y=(0,fr._)`${h}.errors`;o.assign(Ms.default.vErrors,(0,fr._)`${Ms.default.vErrors} === null ? ${y} : ${Ms.default.vErrors}.concat(${y})`),o.assign(Ms.default.errors,(0,fr._)`${Ms.default.vErrors}.length`)}function m(h){var y;if(!i.opts.unevaluated)return;let b=(y=r?.validate)===null||y===void 0?void 0:y.evaluated;if(i.props!==!0)if(b&&!b.dynamicProps)b.props!==void 0&&(i.props=Pu.mergeEvaluated.props(o,b.props,i.props));else{let x=o.var("props",(0,fr._)`${h}.evaluated.props`);i.props=Pu.mergeEvaluated.props(o,x,i.props,fr.Name)}if(i.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(i.items=Pu.mergeEvaluated.items(o,b.items,i.items));else{let x=o.var("items",(0,fr._)`${h}.evaluated.items`);i.items=Pu.mergeEvaluated.items(o,x,i.items,fr.Name)}}}Si.callRef=$u;Si.default=B8});var MA=$(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var H8=IA(),K8=jA(),G8=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",H8.default,K8.default];mv.default=G8});var DA=$(hv=>{"use strict";Object.defineProperty(hv,"__esModule",{value:!0});var Eu=fe(),_o=Eu.operators,Au={maximum:{okStr:"<=",ok:_o.LTE,fail:_o.GT},minimum:{okStr:">=",ok:_o.GTE,fail:_o.LT},exclusiveMaximum:{okStr:"<",ok:_o.LT,fail:_o.GTE},exclusiveMinimum:{okStr:">",ok:_o.GT,fail:_o.LTE}},W8={message:({keyword:e,schemaCode:t})=>(0,Eu.str)`must be ${Au[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Eu._)`{comparison: ${Au[e].okStr}, limit: ${t}}`},Y8={keyword:Object.keys(Au),type:"number",schemaType:"number",$data:!0,error:W8,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Eu._)`${r} ${Au[t].fail} ${n} || isNaN(${r})`)}};hv.default=Y8});var LA=$(yv=>{"use strict";Object.defineProperty(yv,"__esModule",{value:!0});var Uc=fe(),Q8={message:({schemaCode:e})=>(0,Uc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Uc._)`{multipleOf: ${e}}`},J8={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:Q8,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Uc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Uc._)`${s} !== parseInt(${s})`;e.fail$data((0,Uc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};yv.default=J8});var FA=$(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});function UA(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}gv.default=UA;UA.code='require("ajv/dist/runtime/ucs2length").default'});var zA=$(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});var wi=fe(),X8=Ie(),Z8=FA(),e7={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,wi.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,wi._)`{limit: ${e}}`},t7={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:e7,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?wi.operators.GT:wi.operators.LT,s=o.opts.unicode===!1?(0,wi._)`${r}.length`:(0,wi._)`${(0,X8.useFunc)(e.gen,Z8.default)}(${r})`;e.fail$data((0,wi._)`${s} ${i} ${n}`)}};vv.default=t7});var VA=$(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});var r7=Ir(),n7=Ie(),Ds=fe(),o7={message:({schemaCode:e})=>(0,Ds.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Ds._)`{pattern: ${e}}`},i7={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:o7,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,Ds._)`new RegExp`:(0,n7.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,Ds._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Ds._)`!${l}`)}else{let c=(0,r7.usePattern)(e,o);e.fail$data((0,Ds._)`!${c}.test(${r})`)}}};bv.default=i7});var BA=$(xv=>{"use strict";Object.defineProperty(xv,"__esModule",{value:!0});var Fc=fe(),s7={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Fc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Fc._)`{limit: ${e}}`},a7={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:s7,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Fc.operators.GT:Fc.operators.LT;e.fail$data((0,Fc._)`Object.keys(${r}).length ${o} ${n}`)}};xv.default=a7});var HA=$(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var zc=Ir(),Vc=fe(),c7=Ie(),p7={message:({params:{missingProperty:e}})=>(0,Vc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Vc._)`{missingProperty: ${e}}`},l7={keyword:"required",type:"object",schemaType:"array",$data:!0,error:p7,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 m=e.parentSchema.properties,{definedProperties:h}=e.it;for(let y of r)if(m?.[y]===void 0&&!h.has(y)){let b=s.schemaEnv.baseId+s.errSchemaPath,x=`required property "${y}" is not defined at "${b}" (strictRequired)`;(0,c7.checkStrictMode)(s,x,s.opts.strictRequired)}}function p(){if(c||i)e.block$data(Vc.nil,u);else for(let m of r)(0,zc.checkReportMissingProp)(e,m)}function l(){let m=t.let("missing");if(c||i){let h=t.let("valid",!0);e.block$data(h,()=>f(m,h)),e.ok(h)}else t.if((0,zc.checkMissingProp)(e,r,m)),(0,zc.reportMissingProp)(e,m),t.else()}function u(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,zc.noPropertyInData)(t,o,m,a.ownProperties),()=>e.error())})}function f(m,h){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(h,(0,zc.propertyInData)(t,o,m,a.ownProperties)),t.if((0,Vc.not)(h),()=>{e.error(),t.break()})},Vc.nil)}}};Sv.default=l7});var KA=$(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});var Bc=fe(),u7={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Bc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Bc._)`{limit: ${e}}`},d7={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:u7,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Bc.operators.GT:Bc.operators.LT;e.fail$data((0,Bc._)`${r}.length ${o} ${n}`)}};wv.default=d7});var Tu=$(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});var GA=Qa();GA.code='require("ajv/dist/runtime/equal").default';_v.default=GA});var WA=$($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});var Pv=kc(),Tt=fe(),f7=Ie(),m7=Tu(),h7={message:({params:{i:e,j:t}})=>(0,Tt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Tt._)`{i: ${e}, j: ${t}}`},y7={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:h7,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,Pv.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,Tt._)`${s} === false`),e.ok(c);function l(){let h=t.let("i",(0,Tt._)`${r}.length`),y=t.let("j");e.setParams({i:h,j:y}),t.assign(c,!0),t.if((0,Tt._)`${h} > 1`,()=>(u()?f:m)(h,y))}function u(){return p.length>0&&!p.some(h=>h==="object"||h==="array")}function f(h,y){let b=t.name("item"),x=(0,Pv.checkDataTypes)(p,b,a.opts.strictNumbers,Pv.DataType.Wrong),w=t.const("indices",(0,Tt._)`{}`);t.for((0,Tt._)`;${h}--;`,()=>{t.let(b,(0,Tt._)`${r}[${h}]`),t.if(x,(0,Tt._)`continue`),p.length>1&&t.if((0,Tt._)`typeof ${b} == "string"`,(0,Tt._)`${b} += "_"`),t.if((0,Tt._)`typeof ${w}[${b}] == "number"`,()=>{t.assign(y,(0,Tt._)`${w}[${b}]`),e.error(),t.assign(c,!1).break()}).code((0,Tt._)`${w}[${b}] = ${h}`)})}function m(h,y){let b=(0,f7.useFunc)(t,m7.default),x=t.name("outer");t.label(x).for((0,Tt._)`;${h}--;`,()=>t.for((0,Tt._)`${y} = ${h}; ${y}--;`,()=>t.if((0,Tt._)`${b}(${r}[${h}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(x)})))}}};$v.default=y7});var YA=$(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});var Ev=fe(),g7=Ie(),v7=Tu(),b7={message:"must be equal to constant",params:({schemaCode:e})=>(0,Ev._)`{allowedValue: ${e}}`},x7={keyword:"const",$data:!0,error:b7,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Ev._)`!${(0,g7.useFunc)(t,v7.default)}(${r}, ${o})`):e.fail((0,Ev._)`${i} !== ${r}`)}};Av.default=x7});var QA=$(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});var Hc=fe(),S7=Ie(),w7=Tu(),_7={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Hc._)`{allowedValues: ${e}}`},P7={keyword:"enum",schemaType:"array",$data:!0,error:_7,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,S7.useFunc)(t,w7.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 m=t.const("vSchema",i);l=(0,Hc.or)(...o.map((h,y)=>f(m,y)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,m=>t.if((0,Hc._)`${p()}(${r}, ${m})`,()=>t.assign(l,!0).break()))}function f(m,h){let y=o[h];return typeof y=="object"&&y!==null?(0,Hc._)`${p()}(${r}, ${m}[${h}])`:(0,Hc._)`${r} === ${y}`}}};Tv.default=P7});var JA=$(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var $7=DA(),E7=LA(),A7=zA(),T7=VA(),R7=BA(),O7=HA(),k7=KA(),I7=WA(),C7=YA(),q7=QA(),N7=[$7.default,E7.default,A7.default,T7.default,R7.default,O7.default,k7.default,I7.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},C7.default,q7.default];Rv.default=N7});var kv=$(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.validateAdditionalItems=void 0;var _i=fe(),Ov=Ie(),j7={message:({params:{len:e}})=>(0,_i.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,_i._)`{limit: ${e}}`},M7={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:j7,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Ov.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}XA(e,n)}};function XA(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,_i._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,_i._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Ov.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,_i._)`${a} <= ${t.length}`);r.if((0,_i.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:Ov.Type.Num},p),s.allErrors||r.if((0,_i.not)(p),()=>r.break())})}}Kc.validateAdditionalItems=XA;Kc.default=M7});var Iv=$(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.validateTuple=void 0;var ZA=fe(),Ru=Ie(),D7=Ir(),L7={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return eT(e,"additionalItems",t);r.items=!0,!(0,Ru.alwaysValidSchema)(r,t)&&e.ok((0,D7.validateArray)(e))}};function eT(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=Ru.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,ZA._)`${i}.length`);r.forEach((u,f)=>{(0,Ru.alwaysValidSchema)(a,u)||(n.if((0,ZA._)`${p} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function l(u){let{opts:f,errSchemaPath:m}=a,h=r.length,y=h===u.minItems&&(h===u.maxItems||u[t]===!1);if(f.strictTuples&&!y){let b=`"${s}" is ${h}-tuple, but minItems or maxItems/${t} are not specified or different at path "${m}"`;(0,Ru.checkStrictMode)(a,b,f.strictTuples)}}}Gc.validateTuple=eT;Gc.default=L7});var tT=$(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});var U7=Iv(),F7={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,U7.validateTuple)(e,"items")};Cv.default=F7});var nT=$(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});var rT=fe(),z7=Ie(),V7=Ir(),B7=kv(),H7={message:({params:{len:e}})=>(0,rT.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,rT._)`{limit: ${e}}`},K7={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:H7,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,z7.alwaysValidSchema)(n,t)&&(o?(0,B7.validateAdditionalItems)(e,o):e.ok((0,V7.validateArray)(e)))}};qv.default=K7});var oT=$(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});var qr=fe(),Ou=Ie(),G7={message:({params:{min:e,max:t}})=>t===void 0?(0,qr.str)`must contain at least ${e} valid item(s)`:(0,qr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,qr._)`{minContains: ${e}}`:(0,qr._)`{minContains: ${e}, maxContains: ${t}}`},W7={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:G7,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,qr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Ou.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Ou.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ou.alwaysValidSchema)(i,r)){let y=(0,qr._)`${l} >= ${s}`;a!==void 0&&(y=(0,qr._)`${y} && ${l} <= ${a}`),e.pass(y);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?m(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,qr._)`${o}.length > 0`,f)):(t.let(u,!1),f()),e.result(u,()=>e.reset());function f(){let y=t.name("_valid"),b=t.let("count",0);m(y,()=>t.if(y,()=>h(b)))}function m(y,b){t.forRange("i",0,l,x=>{e.subschema({keyword:"contains",dataProp:x,dataPropType:Ou.Type.Num,compositeRule:!0},y),b()})}function h(y){t.code((0,qr._)`${y}++`),a===void 0?t.if((0,qr._)`${y} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,qr._)`${y} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,qr._)`${y} >= ${s}`,()=>t.assign(u,!0)))}}};Nv.default=W7});var aT=$(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.validateSchemaDeps=_n.validatePropertyDeps=_n.error=void 0;var jv=fe(),Y7=Ie(),Wc=Ir();_n.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,jv.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,jv._)`{property: ${e},
|
|
19
|
-
missingProperty: ${n},
|
|
20
|
-
depsCount: ${t},
|
|
21
|
-
deps: ${r}}`};var Q7={keyword:"dependencies",type:"object",schemaType:"object",error:_n.error,code(e){let[t,r]=J7(e);iT(e,t),sT(e,r)}};function J7({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 iT(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,Wc.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,Wc.checkReportMissingProp)(e,p)}):(r.if((0,jv._)`${c} && (${(0,Wc.checkMissingProp)(e,a,i)})`),(0,Wc.reportMissingProp)(e,i),r.else())}}_n.validatePropertyDeps=iT;function sT(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,Y7.alwaysValidSchema)(i,t[a])||(r.if((0,Wc.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))}_n.validateSchemaDeps=sT;_n.default=Q7});var pT=$(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});var cT=fe(),X7=Ie(),Z7={message:"property name must be valid",params:({params:e})=>(0,cT._)`{propertyName: ${e.propertyName}}`},eJ={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Z7,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,X7.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,cT.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Mv.default=eJ});var Lv=$(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var ku=Ir(),en=fe(),tJ=Yn(),Iu=Ie(),rJ={message:"must NOT have additional properties",params:({params:e})=>(0,en._)`{additionalProperty: ${e.additionalProperty}}`},nJ={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:rJ,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,Iu.alwaysValidSchema)(s,r))return;let p=(0,ku.allSchemaProperties)(n.properties),l=(0,ku.allSchemaProperties)(n.patternProperties);u(),e.ok((0,en._)`${i} === ${tJ.default.errors}`);function u(){t.forIn("key",o,b=>{!p.length&&!l.length?h(b):t.if(f(b),()=>h(b))})}function f(b){let x;if(p.length>8){let w=(0,Iu.schemaRefOrVal)(s,n.properties,"properties");x=(0,ku.isOwnProperty)(t,w,b)}else p.length?x=(0,en.or)(...p.map(w=>(0,en._)`${b} === ${w}`)):x=en.nil;return l.length&&(x=(0,en.or)(x,...l.map(w=>(0,en._)`${(0,ku.usePattern)(e,w)}.test(${b})`))),(0,en.not)(x)}function m(b){t.code((0,en._)`delete ${o}[${b}]`)}function h(b){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){m(b);return}if(r===!1){e.setParams({additionalProperty:b}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,Iu.alwaysValidSchema)(s,r)){let x=t.name("valid");c.removeAdditional==="failing"?(y(b,x,!1),t.if((0,en.not)(x),()=>{e.reset(),m(b)})):(y(b,x),a||t.if((0,en.not)(x),()=>t.break()))}}function y(b,x,w){let S={keyword:"additionalProperties",dataProp:b,dataPropType:Iu.Type.Str};w===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,x)}}};Dv.default=nJ});var dT=$(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});var oJ=Nc(),lT=Ir(),Uv=Ie(),uT=Lv(),iJ={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&&uT.default.code(new oJ.KeywordCxt(i,uT.default,"additionalProperties"));let s=(0,lT.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Uv.mergeEvaluated.props(t,(0,Uv.toHash)(s),i.props));let a=s.filter(u=>!(0,Uv.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,lT.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)}}};Fv.default=iJ});var yT=$(zv=>{"use strict";Object.defineProperty(zv,"__esModule",{value:!0});var fT=Ir(),Cu=fe(),mT=Ie(),hT=Ie(),sJ={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,fT.allSchemaProperties)(r),c=a.filter(y=>(0,mT.alwaysValidSchema)(i,r[y]));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 Cu.Name)&&(i.props=(0,hT.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let y of a)p&&m(y),i.allErrors?h(y):(t.var(l,!0),h(y),t.if(l))}function m(y){for(let b in p)new RegExp(y).test(b)&&(0,mT.checkStrictMode)(i,`property ${b} matches pattern ${y} (use allowMatchingProperties)`)}function h(y){t.forIn("key",n,b=>{t.if((0,Cu._)`${(0,fT.usePattern)(e,y)}.test(${b})`,()=>{let x=c.includes(y);x||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:b,dataPropType:hT.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,Cu._)`${u}[${b}]`,!0):!x&&!i.allErrors&&t.if((0,Cu.not)(l),()=>t.break())})})}}};zv.default=sJ});var gT=$(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});var aJ=Ie(),cJ={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,aJ.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"}};Vv.default=cJ});var vT=$(Bv=>{"use strict";Object.defineProperty(Bv,"__esModule",{value:!0});var pJ=Ir(),lJ={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:pJ.validateUnion,error:{message:"must match a schema in anyOf"}};Bv.default=lJ});var bT=$(Hv=>{"use strict";Object.defineProperty(Hv,"__esModule",{value:!0});var qu=fe(),uJ=Ie(),dJ={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,qu._)`{passingSchemas: ${e.passing}}`},fJ={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:dJ,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 f;(0,uJ.alwaysValidSchema)(o,l)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,qu._)`${c} && ${s}`).assign(s,!1).assign(a,(0,qu._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,qu.Name)})})}}};Hv.default=fJ});var xT=$(Kv=>{"use strict";Object.defineProperty(Kv,"__esModule",{value:!0});var mJ=Ie(),hJ={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,mJ.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o);e.ok(o),e.mergeEvaluated(a)})}};Kv.default=hJ});var _T=$(Gv=>{"use strict";Object.defineProperty(Gv,"__esModule",{value:!0});var Nu=fe(),wT=Ie(),yJ={message:({params:e})=>(0,Nu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Nu._)`{failingKeyword: ${e.ifClause}}`},gJ={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:yJ,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,wT.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=ST(n,"then"),i=ST(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,Nu.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 f=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,Nu._)`${l}`):e.setParams({ifClause:l})}}}};function ST(e,t){let r=e.schema[t];return r!==void 0&&!(0,wT.alwaysValidSchema)(e,r)}Gv.default=gJ});var PT=$(Wv=>{"use strict";Object.defineProperty(Wv,"__esModule",{value:!0});var vJ=Ie(),bJ={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,vJ.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Wv.default=bJ});var $T=$(Yv=>{"use strict";Object.defineProperty(Yv,"__esModule",{value:!0});var xJ=kv(),SJ=tT(),wJ=Iv(),_J=nT(),PJ=oT(),$J=aT(),EJ=pT(),AJ=Lv(),TJ=dT(),RJ=yT(),OJ=gT(),kJ=vT(),IJ=bT(),CJ=xT(),qJ=_T(),NJ=PT();function jJ(e=!1){let t=[OJ.default,kJ.default,IJ.default,CJ.default,qJ.default,NJ.default,EJ.default,AJ.default,$J.default,TJ.default,RJ.default];return e?t.push(SJ.default,_J.default):t.push(xJ.default,wJ.default),t.push(PJ.default),t}Yv.default=jJ});var ET=$(Qv=>{"use strict";Object.defineProperty(Qv,"__esModule",{value:!0});var ct=fe(),MJ={message:({schemaCode:e})=>(0,ct.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ct._)`{format: ${e}}`},DJ={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:MJ,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?f():m();function f(){let h=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),y=r.const("fDef",(0,ct._)`${h}[${s}]`),b=r.let("fType"),x=r.let("format");r.if((0,ct._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(b,(0,ct._)`${y}.type || "string"`).assign(x,(0,ct._)`${y}.validate`),()=>r.assign(b,(0,ct._)`"string"`).assign(x,y)),e.fail$data((0,ct.or)(w(),S()));function w(){return c.strictSchema===!1?ct.nil:(0,ct._)`${s} && !${x}`}function S(){let E=l.$async?(0,ct._)`(${y}.async ? await ${x}(${n}) : ${x}(${n}))`:(0,ct._)`${x}(${n})`,P=(0,ct._)`(typeof ${x} == "function" ? ${E} : ${x}.test(${n}))`;return(0,ct._)`${x} && ${x} !== true && ${b} === ${t} && !${P}`}}function m(){let h=u.formats[i];if(!h){w();return}if(h===!0)return;let[y,b,x]=S(h);y===t&&e.pass(E());function w(){if(c.strictSchema===!1){u.logger.warn(P());return}throw new Error(P());function P(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function S(P){let T=P instanceof RegExp?(0,ct.regexpCode)(P):c.code.formats?(0,ct._)`${c.code.formats}${(0,ct.getProperty)(i)}`:void 0,N=r.scopeValue("formats",{key:i,ref:P,code:T});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,ct._)`${N}.validate`]:["string",P,N]}function E(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!l.$async)throw new Error("async format in sync schema");return(0,ct._)`await ${x}(${n})`}return typeof b=="function"?(0,ct._)`${x}(${n})`:(0,ct._)`${x}.test(${n})`}}}};Qv.default=DJ});var AT=$(Jv=>{"use strict";Object.defineProperty(Jv,"__esModule",{value:!0});var LJ=ET(),UJ=[LJ.default];Jv.default=UJ});var TT=$(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.contentVocabulary=Ls.metadataVocabulary=void 0;Ls.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ls.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var OT=$(Xv=>{"use strict";Object.defineProperty(Xv,"__esModule",{value:!0});var FJ=MA(),zJ=JA(),VJ=$T(),BJ=AT(),RT=TT(),HJ=[FJ.default,zJ.default,(0,VJ.default)(),BJ.default,RT.metadataVocabulary,RT.contentVocabulary];Xv.default=HJ});var IT=$(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.DiscrError=void 0;var kT;(function(e){e.Tag="tag",e.Mapping="mapping"})(kT||(ju.DiscrError=kT={}))});var qT=$(eb=>{"use strict";Object.defineProperty(eb,"__esModule",{value:!0});var Us=fe(),Zv=IT(),CT=wu(),KJ=jc(),GJ=Ie(),WJ={message:({params:{discrError:e,tagName:t}})=>e===Zv.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Us._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},YJ={keyword:"discriminator",type:"object",schemaType:"object",error:WJ,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,Us._)`${r}${(0,Us.getProperty)(a)}`);t.if((0,Us._)`typeof ${p} == "string"`,()=>l(),()=>e.error(!1,{discrError:Zv.DiscrError.Tag,tag:p,tagName:a})),e.ok(c);function l(){let m=f();t.if(!1);for(let h in m)t.elseIf((0,Us._)`${p} === ${h}`),t.assign(c,u(m[h]));t.else(),e.error(!1,{discrError:Zv.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function u(m){let h=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},h);return e.mergeEvaluated(y,Us.Name),h}function f(){var m;let h={},y=x(o),b=!0;for(let E=0;E<s.length;E++){let P=s[E];if(P?.$ref&&!(0,GJ.schemaHasRulesButRef)(P,i.self.RULES)){let N=P.$ref;if(P=CT.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,N),P instanceof CT.SchemaEnv&&(P=P.schema),P===void 0)throw new KJ.default(i.opts.uriResolver,i.baseId,N)}let T=(m=P?.properties)===null||m===void 0?void 0:m[a];if(typeof T!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);b=b&&(y||x(P)),w(T,E)}if(!b)throw new Error(`discriminator: "${a}" must be required`);return h;function x({required:E}){return Array.isArray(E)&&E.includes(a)}function w(E,P){if(E.const)S(E.const,P);else if(E.enum)for(let T of E.enum)S(T,P);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function S(E,P){if(typeof E!="string"||E in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[E]=P}}}};eb.default=YJ});var NT=$((tfe,QJ)=>{QJ.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 MT=$((Ye,tb)=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});Ye.MissingRefError=Ye.ValidationError=Ye.CodeGen=Ye.Name=Ye.nil=Ye.stringify=Ye.str=Ye._=Ye.KeywordCxt=Ye.Ajv=void 0;var JJ=kA(),XJ=OT(),ZJ=qT(),jT=NT(),eX=["/properties"],Mu="http://json-schema.org/draft-07/schema",Fs=class extends JJ.default{_addVocabularies(){super._addVocabularies(),XJ.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(ZJ.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(jT,eX):jT;this.addMetaSchema(t,Mu,!1),this.refs["http://json-schema.org/schema"]=Mu}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Mu)?Mu:void 0)}};Ye.Ajv=Fs;tb.exports=Ye=Fs;tb.exports.Ajv=Fs;Object.defineProperty(Ye,"__esModule",{value:!0});Ye.default=Fs;var tX=Nc();Object.defineProperty(Ye,"KeywordCxt",{enumerable:!0,get:function(){return tX.KeywordCxt}});var zs=fe();Object.defineProperty(Ye,"_",{enumerable:!0,get:function(){return zs._}});Object.defineProperty(Ye,"str",{enumerable:!0,get:function(){return zs.str}});Object.defineProperty(Ye,"stringify",{enumerable:!0,get:function(){return zs.stringify}});Object.defineProperty(Ye,"nil",{enumerable:!0,get:function(){return zs.nil}});Object.defineProperty(Ye,"Name",{enumerable:!0,get:function(){return zs.Name}});Object.defineProperty(Ye,"CodeGen",{enumerable:!0,get:function(){return zs.CodeGen}});var rX=xu();Object.defineProperty(Ye,"ValidationError",{enumerable:!0,get:function(){return rX.default}});var nX=jc();Object.defineProperty(Ye,"MissingRefError",{enumerable:!0,get:function(){return nX.default}})});var DT=$(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});Vs.formatLimitDefinition=void 0;var oX=MT(),tn=fe(),Po=tn.operators,Du={formatMaximum:{okStr:"<=",ok:Po.LTE,fail:Po.GT},formatMinimum:{okStr:">=",ok:Po.GTE,fail:Po.LT},formatExclusiveMaximum:{okStr:"<",ok:Po.LT,fail:Po.GTE},formatExclusiveMinimum:{okStr:">",ok:Po.GT,fail:Po.LTE}},iX={message:({keyword:e,schemaCode:t})=>(0,tn.str)`should be ${Du[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,tn._)`{comparison: ${Du[e].okStr}, limit: ${t}}`};Vs.formatLimitDefinition={keyword:Object.keys(Du),type:"string",schemaType:"string",$data:!0,error:iX,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 oX.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?p():l();function p(){let f=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),m=t.const("fmt",(0,tn._)`${f}[${c.schemaCode}]`);e.fail$data((0,tn.or)((0,tn._)`typeof ${m} != "object"`,(0,tn._)`${m} instanceof RegExp`,(0,tn._)`typeof ${m}.compare != "function"`,u(m)))}function l(){let f=c.schema,m=a.formats[f];if(!m||m===!0)return;if(typeof m!="object"||m instanceof RegExp||typeof m.compare!="function")throw new Error(`"${o}": format "${f}" does not define "compare" function`);let h=t.scopeValue("formats",{key:f,ref:m,code:s.code.formats?(0,tn._)`${s.code.formats}${(0,tn.getProperty)(f)}`:void 0});e.fail$data(u(h))}function u(f){return(0,tn._)`${f}.compare(${r}, ${n}) ${Du[o].fail} 0`}},dependencies:["format"]};var sX=e=>(e.addKeyword(Vs.formatLimitDefinition),e);Vs.default=sX});var zT=$((Yc,FT)=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var Bs=$E(),aX=DT(),rb=fe(),LT=new rb.Name("fullFormats"),cX=new rb.Name("fastFormats"),nb=(e,t={keywords:!0})=>{if(Array.isArray(t))return UT(e,t,Bs.fullFormats,LT),e;let[r,n]=t.mode==="fast"?[Bs.fastFormats,cX]:[Bs.fullFormats,LT],o=t.formats||Bs.formatNames;return UT(e,o,r,n),t.keywords&&(0,aX.default)(e),e};nb.get=(e,t="full")=>{let n=(t==="fast"?Bs.fastFormats:Bs.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function UT(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,rb._)`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}FT.exports=Yc=nb;Object.defineProperty(Yc,"__esModule",{value:!0});Yc.default=nb});var n1=$((kfe,r1)=>{"use strict";r1.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,f,m,h,y,b,x,w,S,E=[];for(c=0;c<o;c++)E.push(c+1),E.push(t.charCodeAt(s+c));for(var P=E.length-1;a<i-3;)for(b=r.charCodeAt(s+(p=a)),x=r.charCodeAt(s+(l=a+1)),w=r.charCodeAt(s+(u=a+2)),S=r.charCodeAt(s+(f=a+3)),m=a+=4,c=0;c<P;c+=2)h=E[c],y=E[c+1],p=e(h,p,l,b,y),l=e(p,l,u,x,y),u=e(l,u,f,w,y),m=e(u,f,m,S,y),E[c]=m,f=u,u=l,l=p,p=h;for(;a<i;)for(b=r.charCodeAt(s+(p=a)),m=++a,c=0;c<P;c+=2)h=E[c],E[c]=m=e(h,p,m,b,E[c+1]),p=h;return m}})()});var tp=$(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});var Zs;(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"})(Zs=kn.Kind||(kn.Kind={}));function gZ(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:Zs.MAPPING,parent:null,errors:[]};return n}kn.newMapping=gZ;function vZ(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:Zs.ANCHOR_REF,parent:null}}kn.newAnchorRef=vZ;function bZ(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:Zs.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}kn.newScalar=bZ;function vO(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:Zs.SEQ,parent:null}}kn.newItems=vO;function xZ(){return vO()}kn.newSeq=xZ;function SZ(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:Zs.MAP,parent:null}}kn.newMap=SZ});var Ri=$(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});function bO(e){return typeof e>"u"||e===null}qo.isNothing=bO;function wZ(e){return typeof e=="object"&&e!==null}qo.isObject=wZ;function _Z(e){return Array.isArray(e)?e:bO(e)?[]:[e]}qo.toArray=_Z;function PZ(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}qo.extend=PZ;function $Z(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}qo.repeat=$Z;function EZ(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}qo.isNegativeZero=EZ});var ea=$((bSe,xO)=>{"use strict";var AZ=(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})();xO.exports=AZ});var _O=$((xSe,wO)=>{"use strict";var SO=Ri(),TZ=(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),SO.repeat(" ",t)+n+a+i+`
|
|
24
|
-
`+SO.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})();wO.exports=TZ});var Ot=$($b=>{"use strict";Object.defineProperty($b,"__esModule",{value:!0});var PO=ea(),RZ=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],OZ=["scalar","sequence","mapping"];function kZ(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var IZ=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(RZ.indexOf(n)===-1)throw new PO('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=kZ(r.styleAliases||null),OZ.indexOf(this.kind)===-1)throw new PO('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();$b.Type=IZ});var ta=$(Ab=>{"use strict";Object.defineProperty(Ab,"__esModule",{value:!0});var $O=Ri(),wd=ea(),CZ=Ot();function Eb(e,t,r){var n=[];return e.include.forEach(function(o){r=Eb(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 qZ(){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 NZ=(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 wd("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Eb(this,"implicit",[]),this.compiledExplicit=Eb(this,"explicit",[]),this.compiledTypeMap=qZ(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 wd("Wrong number of arguments for Schema.create function")}if(r=$O.toArray(r),n=$O.toArray(n),!r.every(function(o){return o instanceof e}))throw new wd("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(o){return o instanceof CZ.Type}))throw new wd("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();Ab.Schema=NZ});var AO=$((_Se,EO)=>{"use strict";var jZ=Ot();EO.exports=new jZ.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var RO=$((PSe,TO)=>{"use strict";var MZ=Ot();TO.exports=new MZ.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var kO=$(($Se,OO)=>{"use strict";var DZ=Ot();OO.exports=new DZ.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var CO=$((ESe,IO)=>{"use strict";var LZ=ta();IO.exports=new LZ.Schema({explicit:[AO(),RO(),kO()]})});var NO=$((ASe,qO)=>{"use strict";var UZ=Ot();function FZ(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function zZ(){return null}function VZ(e){return e===null}qO.exports=new UZ.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:FZ,construct:zZ,predicate:VZ,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var MO=$((TSe,jO)=>{"use strict";var BZ=Ot();function HZ(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 KZ(e){return e==="true"||e==="True"||e==="TRUE"}function GZ(e){return Object.prototype.toString.call(e)==="[object Boolean]"}jO.exports=new BZ.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:HZ,construct:KZ,predicate:GZ,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 LO=$((RSe,DO)=>{"use strict";var WZ=Ri(),YZ=Ot();function QZ(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function JZ(e){return 48<=e&&e<=55}function XZ(e){return 48<=e&&e<=57}function ZZ(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(!QZ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(!JZ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!XZ(e.charCodeAt(r)))return!1;n=!0}return n?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function eee(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 tee(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!WZ.isNegativeZero(e)}DO.exports=new YZ.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:ZZ,construct:eee,predicate:tee,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 zO=$((OSe,FO)=>{"use strict";var UO=Ri(),ree=Ot(),nee=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 oee(e){if(e===null)return!1;var t,r,n,o;return!!nee.test(e)}function iee(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 see(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(UO.isNegativeZero(e))return"-0.0";return e.toString(10)}function aee(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||UO.isNegativeZero(e))}FO.exports=new ree.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:oee,construct:iee,predicate:aee,represent:see,defaultStyle:"lowercase"})});var BO=$((kSe,VO)=>{"use strict";var cee=ta();VO.exports=new cee.Schema({include:[CO()],implicit:[NO(),MO(),LO(),zO()]})});var KO=$((ISe,HO)=>{"use strict";var pee=ta();HO.exports=new pee.Schema({include:[BO()]})});var YO=$((CSe,WO)=>{"use strict";var lee=Ot(),GO=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 uee(e){if(e===null)return!1;var t,r,n,o,i,s,a,c=0,p=null,l,u,f;return t=GO.exec(e),t!==null}function dee(e){var t,r,n,o,i,s,a,c=0,p=null,l,u,f;if(t=GO.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)),f=new Date(Date.UTC(r,n,o,i,s,a,c)),p&&f.setTime(f.getTime()-p),f}function fee(e){return e.toISOString()}WO.exports=new lee.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:uee,construct:dee,instanceOf:Date,represent:fee})});var JO=$((qSe,QO)=>{"use strict";var mee=Ot();function hee(e){return e==="<<"||e===null}QO.exports=new mee.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:hee})});var ZO=$((NSe,XO)=>{"use strict";var _d=Wd("buffer").Buffer,yee=Ot(),Tb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
26
|
-
\r`;function gee(e){if(e===null)return!1;var t,r,n=0,o=0,i=e.length,s=Tb;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 vee(e){var t,r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,s=Tb,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),_d?new _d(c):c}function bee(e){var t="",r=0,n,o,i=e.length,s=Tb;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 xee(e){return _d&&_d.isBuffer(e)}XO.exports=new yee.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:gee,construct:vee,predicate:xee,represent:bee})});var tk=$((jSe,ek)=>{"use strict";var See=Ot(),wee=Object.prototype.hasOwnProperty,_ee=Object.prototype.toString;function Pee(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,_ee.call(o)!=="[object Object]")return!1;for(i in o)if(wee.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 $ee(e){return e!==null?e:[]}ek.exports=new See.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Pee,construct:$ee})});var nk=$((MSe,rk)=>{"use strict";var Eee=Ot(),Rb=tp(),Aee=Object.prototype.toString;function Tee(e){if(e===null)return!0;if(e.kind!=Rb.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],Aee.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function Ree(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,o,i=e.items;for(o=Rb.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=Rb.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}rk.exports=new Eee.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Tee,construct:Ree})});var ik=$((DSe,ok)=>{"use strict";var Oee=Ot(),kee=tp();function Iee(e){return e===null?!0:e.kind==kee.Kind.MAP}function Cee(e){return e!==null?e:{}}ok.exports=new Oee.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:Iee,construct:Cee})});var Pd=$((LSe,sk)=>{"use strict";var qee=ta(),Nee=new qee.Schema({include:[KO()],implicit:[YO(),JO()],explicit:[ZO(),tk(),nk(),ik()]});sk.exports=Nee});var ck=$((USe,ak)=>{"use strict";var jee=Ot();function Mee(){return!0}function Dee(){}function Lee(){return""}function Uee(e){return typeof e>"u"}ak.exports=new jee.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:Mee,construct:Dee,predicate:Uee,represent:Lee})});var lk=$((FSe,pk)=>{"use strict";var Fee=Ot();function zee(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 Vee(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 Bee(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Hee(e){return Object.prototype.toString.call(e)==="[object RegExp]"}pk.exports=new Fee.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:zee,construct:Vee,predicate:Hee,represent:Bee})});var Ob=$((zSe,fk)=>{"use strict";var uk=ta(),dk=new uk.Schema({include:[Pd()],explicit:[ck(),lk()]});uk.Schema.DEFAULT=dk;fk.exports=dk});var Ek=$((ia,np)=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});var br=tp(),No=Ri(),Mb=ea(),Db=_O(),gk=Pd(),Kee=Ob(),Ad=Object.prototype.hasOwnProperty,$d=1,vk=2,bk=3,Ed=4,kb=1,Gee=2,mk=3,Wee=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Yee=/[\x85\u2028\u2029]/,Qee=/[,\[\]\{\}]/,xk=/^(?:!|!!|![a-z\-]+!)$/i,Sk=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function rn(e){return e===10||e===13}function Oi(e){return e===9||e===32}function mr(e){return e===9||e===32||e===10||e===13}function ra(e){return e===44||e===91||e===93||e===123||e===125}function Jee(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Xee(e){return e===120?2:e===117?4:e===85?8:0}function Zee(e){return 48<=e&&e<=57?e-48:-1}function ete(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 tte(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Ib=new Array(256),Cb=new Array(256),wk=new Array(256),qb=new Array(256);for(Mr=0;Mr<256;Mr++)qb[Mr]=Cb[Mr]=ete(Mr),Ib[Mr]=Cb[Mr]?1:0,wk[Mr]=1,Ib[Mr]||(qb[Mr]="\\"+String.fromCharCode(Mr));var Mr,rte=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||Kee,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 Lb(e,t,r){return r===void 0&&(r=!1),new Mb(t,new Db(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function Nb(e,t,r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var i=nte(e,t);if(i){var s=r+t;if(!e.errorMap[s]){var a=new Db(e.filename,e.input,t,i.line,t-i.start);o&&(a.toLineEnd=!0);var c=new Mb(r,a,n);e.errors.push(c)}}}function re(e,t){var r=Lb(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 jb(e,t){var r=Lb(e,t);e.onWarning&&e.onWarning.call(null,r)}var hk={YAML:function(t,r,n){var o,i,s;t.version!==null&&re(t,"duplication of %YAML directive"),n.length!==1&&re(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&re(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&re(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&re(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var o,i;n.length!==2&&re(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],xk.test(o)||re(t,"ill-formed tag handle (first argument) of the TAG directive"),Ad.call(t.tagMap,o)&&re(t,'there is a previously declared suffix for "'+o+'" tag handle'),Sk.test(i)||re(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function jo(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||re(e,"expected valid JSON character");else Wee.test(a)&&re(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function na(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:br.Kind.MAP});var a=br.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)&&(Nb(e,a.key.startPosition,"duplicate key"),Nb(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=o?o.endPosition:n.endPosition+1,t}}function Ub(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++):re(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function nte(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 lt(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Oi(o);)o===9&&e.errors.push(Lb(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(rn(o))for(Ub(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&&jb(e,"deficient indentation"),n}function rp(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||mr(r)))}function Fb(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=No.repeat(`
|
|
29
|
-
`,r-1))}function ote(e,t,r){var n,o,i,s,a,c,p,l,u=e.kind,f=e.result,m,h=br.newScalar();if(h.plainScalar=!0,e.result=h,m=e.input.charCodeAt(e.position),mr(m)||ra(m)||m===35||m===38||m===42||m===33||m===124||m===62||m===39||m===34||m===37||m===64||m===96||(m===63||m===45)&&(o=e.input.charCodeAt(e.position+1),mr(o)||r&&ra(o)))return!1;for(e.kind="scalar",i=s=e.position,a=!1;m!==0;){if(m===58){if(o=e.input.charCodeAt(e.position+1),mr(o)||r&&ra(o))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),mr(n))break}else{if(e.position===e.lineStart&&rp(e)||r&&ra(m))break;if(rn(m))if(c=e.line,p=e.lineStart,l=e.lineIndent,lt(e,!1,-1),e.lineIndent>=t){a=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=p,e.lineIndent=l;break}}if(a&&(jo(e,i,s,!1),Fb(e,h,e.line-c),i=s=e.position,a=!1),Oi(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return jo(e,i,s,!1),e.result.startPosition!=-1?(h.rawValue=e.input.substring(h.startPosition,h.endPosition),!0):(e.kind=u,e.result=f,!1)}function ite(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var i=br.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(jo(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 rn(r)?(jo(e,n,o,!0),Fb(e,i,lt(e,!1,t)),n=o=e.position):e.position===e.lineStart&&rp(e)?re(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position,i.endPosition=e.position);re(e,"unexpected end of the stream within a single quoted scalar")}function ste(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=br.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 jo(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(jo(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),rn(c))lt(e,!1,t);else if(c<256&&(e.allowAnyEscape?wk[c]:Ib[c]))p.value+=e.allowAnyEscape?qb[c]:Cb[c],e.position++;else if((s=Xee(c))>0){for(o=s,i=0;o>0;o--)c=e.input.charCodeAt(++e.position),(s=Jee(c))>=0?i=(i<<4)+s:re(e,"expected hexadecimal character");p.value+=tte(i),e.position++}else re(e,"unknown escape sequence");r=n=e.position}else rn(c)?(jo(e,r,n,!0),Fb(e,p,lt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&rp(e)?re(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}re(e,"unexpected end of the stream within a double quoted scalar")}function ate(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,c,p,l,u,f,m,h,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,u=!1,i=br.newItems(),i.startPosition=e.position;else if(y===123)c=125,u=!0,i=br.newMap(),i.startPosition=e.position;else return!1;for(e.anchor!==null&&(i.anchorId=e.anchor,e.anchorMap[e.anchor]=i),y=e.input.charCodeAt(++e.position);y!==0;){if(lt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=s,e.kind=u?"mapping":"sequence",e.result=i,i.endPosition=e.position,!0;if(!r){var b=e.position;re(e,"missed comma between flow collection entries"),e.position=b+1}if(m=f=h=null,p=l=!1,y===63&&(a=e.input.charCodeAt(e.position+1),mr(a)&&(p=l=!0,e.position++,lt(e,!0,t))),n=e.line,oa(e,t,$d,!1,!0),m=e.tag,f=e.result,lt(e,!0,t),y=e.input.charCodeAt(e.position),(l||e.line===n)&&y===58&&(p=!0,y=e.input.charCodeAt(++e.position),lt(e,!0,t),oa(e,t,$d,!1,!0),h=e.result),u)na(e,i,m,f,h);else if(p){var x=na(e,null,m,f,h);x.parent=i,i.items.push(x)}else f&&(f.parent=i),i.items.push(f);i.endPosition=e.position+1,lt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(r=!0,y=e.input.charCodeAt(++e.position)):r=!1}re(e,"unexpected end of the stream within a flow collection")}function cte(e,t){var r,n,o=kb,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=br.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)kb===o?o=l===43?mk:Gee:re(e,"repeat of a chomping mode identifier");else if((p=Zee(l))>=0)p===0?re(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?re(e,"repeat of an indentation width identifier"):(s=t+p-1,i=!0);else break;if(Oi(l)){do l=e.input.charCodeAt(++e.position);while(Oi(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!rn(l)&&l!==0)}for(;l!==0;){for(Ub(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),rn(l)){a++;continue}if(e.lineIndent<s){o===mk?u.value+=No.repeat(`
|
|
30
|
-
`,a):o===kb&&i&&(u.value+=`
|
|
31
|
-
`);break}for(n?Oi(l)?(c=!0,u.value+=No.repeat(`
|
|
32
|
-
`,a+1)):c?(c=!1,u.value+=No.repeat(`
|
|
33
|
-
`,a+1)):a===0?i&&(u.value+=" "):u.value+=No.repeat(`
|
|
34
|
-
`,a):i&&(u.value+=No.repeat(`
|
|
35
|
-
`,a+1)),i=!0,a=0,r=e.position;!rn(l)&&l!==0;)l=e.input.charCodeAt(++e.position);jo(e,r,e.position,!1)}u.endPosition=e.position;for(var f=e.position-1,m=!1;;){var h=e.input[f];if(h=="\r"||h==`
|
|
36
|
-
`){m&&f--;break}if(h!=" "&&h!=" ")break;f--}return u.endPosition=f,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0}function yk(e,t){var r,n=e.tag,o=e.anchor,i=br.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),!mr(s)));){if(a=!0,e.position++,lt(e,!0,-1)&&e.lineIndent<=t){i.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,oa(e,t,bk,!1,!0),e.result&&(e.result.parent=i,i.items.push(e.result)),lt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)re(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 pte(e,t,r){var n,o,i,s=e.tag,a=e.anchor,c=br.newMap(),p=null,l=null,u=null,f=!1,m=!1,h;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),h=e.input.charCodeAt(e.position);h!==0;){if(n=e.input.charCodeAt(e.position+1),i=e.line,(h===63||h===58)&&mr(n))h===63?(f&&(na(e,c,p,l,null),p=l=u=null),m=!0,f=!0,o=!0):f?(f=!1,o=!0):re(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,h=n;else if(oa(e,r,vk,!1,!0))if(e.line===i){for(h=e.input.charCodeAt(e.position);Oi(h);)h=e.input.charCodeAt(++e.position);if(h===58)h=e.input.charCodeAt(++e.position),mr(h)||re(e,"a whitespace character is expected after the key-value separator within a block mapping"),f&&(na(e,c,p,l,null),p=l=u=null),m=!0,f=!1,o=!1,p=e.tag,l=e.result;else{if(e.position==e.lineStart&&rp(e))break;if(m)re(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(m){for(re(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(h=e.input.charCodeAt(--e.position),rn(h)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===i||e.lineIndent>t)&&(oa(e,t,Ed,!0,o)&&(f?l=e.result:u=e.result),f||(na(e,c,p,l,u),p=l=u=null),lt(e,!0,-1),h=e.input.charCodeAt(e.position)),e.lineIndent>t&&h!==0)re(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return f&&na(e,c,p,l,null),m&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),m}function lte(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&&re(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)):re(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!mr(s);)s===33&&(n?re(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),xk.test(o)||re(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),Qee.test(i)&&re(e,"tag suffix cannot contain flow indicator characters")}return i&&!Sk.test(i)&&re(e,"tag name cannot contain such characters: "+i),r?e.tag=i:Ad.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:re(e,'undeclared tag handle "'+o+'"'),!0}function ute(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&re(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!mr(r)&&!ra(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&re(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function dte(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&&!mr(i)&&!ra(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(re(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)||(re(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=br.newAnchorRef(r,t,e.position,e.anchorMap[r]),lt(e,!0,-1),!0}function oa(e,t,r,n,o){var i,s,a,c=1,p=!1,l=!1,u,f,m,h,y,b;e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=Ed===r||bk===r,n&<(e,!0,-1)&&(p=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var x=e.position,w=e.position-e.lineStart;if(c===1)for(;lte(e)||ute(e);)lt(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||Ed===r)&&($d===r||vk===r?h=t:h=t+1,y=e.position-e.lineStart,c===1?a&&(yk(e,y)||pte(e,y,h))||ate(e,h)?l=!0:(s&&cte(e,h)||ite(e,h)||ste(e,h)?l=!0:dte(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&re(e,"alias node should not have any properties")):ote(e,h,$d===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&&yk(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=br.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,re(e,"!include without value")),e.result.kind=br.Kind.INCLUDE_REF;else if(e.tag==="?")for(u=0,f=e.implicitTypes.length;u<f;u+=1){m=e.implicitTypes[u];var S=e.result.value;if(m.resolve(S)){e.result.valueObject=m.construct(e.result.value),e.tag=m.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else Ad.call(e.typeMap,e.tag)?(m=e.typeMap[e.tag],e.result!==null&&m.kind!==e.kind&&re(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+m.kind+'", not "'+e.kind+'"'),m.resolve(e.result)?(e.result=m.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):re(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Nb(e,x,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||l}function fte(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&&(lt(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&&!mr(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&re(e,"directive name must not be less than one character in length");s!==0;){for(;Oi(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!rn(s));break}if(rn(s))break;for(r=e.position;s!==0&&!mr(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&Ub(e),Ad.call(hk,n)?hk[n](e,n,o):(jb(e,'unknown document directive "'+n+'"'),e.position++)}if(lt(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,lt(e,!0,-1)):i&&re(e,"directives end mark is expected"),oa(e,e.lineIndent-1,Ed,!1,!0),lt(e,!0,-1),e.checkLineBreaks&&Yee.test(e.input.slice(t,e.position))&&jb(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&rp(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,lt(e,!0,-1));return}if(e.position<e.length-1)re(e,"end of the stream or a document separator is expected");else return}function _k(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 rte(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(fte(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 zb(e,t,r){r===void 0&&(r={});var n=_k(e,r),o,i;for(o=0,i=n.length;o<i;o+=1)t(n[o])}ia.loadAll=zb;function Vb(e,t){t===void 0&&(t={});var r=_k(e,t),n,o;if(r.length!==0){if(r.length===1)return r[0];var i=new Mb("expected a single document in the stream, but found more");return i.mark=new Db("","",0,0,0),i.mark.position=r[0].endPosition,r[0].errors.push(i),r[0]}}ia.load=Vb;function Pk(e,t,r){r===void 0&&(r={}),zb(e,t,No.extend({schema:gk},r))}ia.safeLoadAll=Pk;function $k(e,t){return t===void 0&&(t={}),Vb(e,No.extend({schema:gk},t))}ia.safeLoad=$k;np.exports.loadAll=zb;np.exports.load=Vb;np.exports.safeLoadAll=Pk;np.exports.safeLoad=$k});var Ck=$(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});var op=Ri(),Yb=ea(),mte=Ob(),hte=Pd(),Qb=Object.prototype.toString,Ok=Object.prototype.hasOwnProperty,yte=9,ki=10,gte=13,Bb=32,vte=33,Hb=34,bte=35,xte=37,Ste=38,Kb=39,wte=42,_te=44,Pte=45,$te=58,Ete=62,Ate=63,Tte=64,Rte=91,Ote=93,kte=96,Ite=123,Cte=124,qte=125,xt={};xt[0]="\\0";xt[7]="\\a";xt[8]="\\b";xt[9]="\\t";xt[10]="\\n";xt[11]="\\v";xt[12]="\\f";xt[13]="\\r";xt[27]="\\e";xt[34]='\\"';xt[92]="\\\\";xt[133]="\\N";xt[160]="\\_";xt[8232]="\\L";xt[8233]="\\P";var Nte=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function jte(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&&Ok.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function Mte(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 Yb("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+op.repeat("0",n-t.length)+t}function Dte(e){this.schema=e.schema||mte,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=op.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=jte(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 Ak(e,t){for(var r=op.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 Gb(e,t){return`
|
|
41
|
-
`+op.repeat(" ",e.indent*t)}function Lte(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 Td(e){this.source=e,this.result="",this.checkpoint=0}Td.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};Td.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=xt[e]||Mte(e),this.result+=t,this.checkpoint+=1,this};Td.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function Ute(e,t,r){var n,o,i,s,a,c,p,l,u,f,m,h,y,b,x,w,S,E,P,T,N;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(Nte.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(n=!0,o=t.length?t.charCodeAt(0):0,i=Bb===o||Bb===t.charCodeAt(t.length-1),(Pte===o||Ate===o||Tte===o||kte===o)&&(n=!1),i?(n=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,p=new Td(t),l=!1,u=0,f=0,m=e.indent*r,h=80,m<40?h-=m:h=40,b=0;b<t.length;b++){if(y=t.charCodeAt(b),n)if(!zte(y))n=!1;else continue;c&&y===Kb&&(c=!1),x=xt[y],w=kk(y),!(!x&&!w)&&(y!==ki&&y!==Hb&&y!==Kb?(s=!1,a=!1):y===ki&&(l=!0,c=!1,b>0&&(S=t.charCodeAt(b-1),S===Bb&&(a=!1,s=!1)),s&&(E=b-u,u=b,E>f&&(f=E))),y!==Hb&&(c=!1),p.takeUpTo(b),p.escapeChar())}if(n&&Lte(e,t)&&(n=!1),P="",(s||a)&&(T=0,t.charCodeAt(t.length-1)===ki&&(T+=1,t.charCodeAt(t.length-2)===ki&&(T+=1)),T===0?P="-":T===2&&(P="+")),a&&f<h&&(s=!1),l||(a=!1),n)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)N=Fte(t,h),e.dump=">"+P+`
|
|
42
|
-
`+Ak(N,m);else if(a)P||(t=t.replace(/\n$/,"")),e.dump="|"+P+`
|
|
43
|
-
`+Ak(t,m);else if(p)p.finish(),e.dump='"'+p.result+'"';else throw new Error("Failed to dump scalar value")}function Fte(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+=Tk(e.slice(n,o),t),n=o):(r&&(r+=`
|
|
47
|
-
|
|
48
|
-
`),r+=Tk(e.slice(n,s),t),n=s+1);return i&&i[0]!==`
|
|
49
|
-
`&&(r+=i[0]),r}function Tk(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 zte(e){return yte!==e&&ki!==e&>e!==e&&_te!==e&&Rte!==e&&Ote!==e&&Ite!==e&&qte!==e&&bte!==e&&Ste!==e&&wte!==e&&vte!==e&&Cte!==e&&Ete!==e&&Kb!==e&&Hb!==e&&xte!==e&&$te!==e&&!xt[e]&&!kk(e)}function kk(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function Vte(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)Ii(e,t,r[i],!1,!1)&&(i!==0&&(n+=", "),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function Bte(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ii(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=Gb(e,t)),o+="- "+e.dump);e.tag=i,e.dump=o||"[]"}function Hte(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],Ii(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+": ",Ii(e,t,p,!1,!1)&&(l+=e.dump,n+=l));e.tag=o,e.dump="{"+n+"}"}function Kte(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,c,p,l,u,f;for(a=0,c=s.length;a<c;a+=1)f="",(!n||a!==0)&&(f+=Gb(e,t)),p=s[a],l=r[p],Ii(e,t+1,p,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&ki===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=Gb(e,t)),Ii(e,t+1,l,!0,u)&&(e.dump&&ki===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,o+=f));e.tag=i,e.dump=o||"{}"}function Rk(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,Qb.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(Ok.call(a.represent,c))n=a.represent[c](t,c);else throw new Yb("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Ii(e,t,r,n,o){e.tag=null,e.dump=r,Rk(e,r,!1)||Rk(e,r,!0);var i=Qb.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?(Kte(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
53
|
-
`:"")+e.dump)):(Hte(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object Array]")n&&e.dump.length!==0?(Bte(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
54
|
-
`:"")+e.dump)):(Vte(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object String]")e.tag!=="?"&&Ute(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Yb("unacceptable kind of an object to dump "+i)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function Gte(e,t){var r=[],n=[],o,i;for(Wb(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function Wb(e,t,r){var n=Qb.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)Wb(e[i],t,r);else for(o=Object.keys(e),i=0,s=o.length;i<s;i+=1)Wb(e[o[i]],t,r)}function Ik(e,t){t=t||{};var r=new Dte(t);return Gte(e,r),Ii(r,0,e,!0,!0)?r.dump+`
|
|
55
|
-
`:""}Rd.dump=Ik;function Wte(e,t){return Ik(e,op.extend({schema:hte},t))}Rd.safeDump=Wte});var qk=$(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});function Yte(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}Mo.parseYamlBoolean=Yte;function Qte(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Jte(e){var t=Qte(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}Mo.parseYamlInteger=Jte;function Xte(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+'"'}Mo.parseYamlFloat=Xte;var Zn;(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"})(Zn=Mo.ScalarType||(Mo.ScalarType={}));function Zte(e){if(e===void 0)return Zn.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Zn.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Zn.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Zn.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 Zn.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?Zn.float:Zn.string}Mo.determineScalarType=Zte});var Mk=$(nn=>{"use strict";function Nk(e){for(var t in e)nn.hasOwnProperty(t)||(nn[t]=e[t])}Object.defineProperty(nn,"__esModule",{value:!0});var Od=Ek();nn.load=Od.load;nn.loadAll=Od.loadAll;nn.safeLoad=Od.safeLoad;nn.safeLoadAll=Od.safeLoadAll;var jk=Ck();nn.dump=jk.dump;nn.safeDump=jk.safeDump;nn.YAMLException=ea();Nk(tp());Nk(qk())});function k(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function hr(e){return k(e)&&Object.keys(e).length===0}var F0=an(Jd(),1);function sq(e,t,r){return e.split(" ").map(n=>(0,F0.default)(n,t,r)).join(" ")}function aq(e){return e.charAt(0).toUpperCase()+e.slice(1)}function V(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function z(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}var Fr={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function zr(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=Fr,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)):_r(i)?(i={...i},n(i),i):i?.directResolveAs!==void 0?{...i,directResolveAs:o(i.directResolveAs)??void 0}:i}}function _r(e){return typeof e?.name=="string"}import*as ji from"node:path";function ft(e){return!!e}function Vr(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function B(e){return k(e)&&typeof e.$ref=="string"}function Mi(e){return B(e)&&Object.keys(e).length>1}function up(e){return k(e)&&typeof e.externalValue=="string"}var kt=class e{source;pointer;constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,Vr(this.pointer,(Array.isArray(t)?t:[t]).map(cn).join("/")))}key(){return Object.assign(Object.create(e.prototype),this,{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function dp(e){let t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function cn(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function ro(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Xd(r)}}function Xd(e){return e.split("/").map(dp).filter(ft)}function z0(e){let t=e.split("/");return t[t.length-1]}function V0(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function ce(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function Zd(e){return ji.extname(e)?ce(e)?e.substring(0,e.lastIndexOf("/")):ji.dirname(e):e}function fp(e,t){return ce(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:ji.resolve(e,t)}function pn(e){return typeof e=="string"&&(e.startsWith("#")||ce(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function B0(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function ua(e,t,r){if(!k(t.node)&&r.parent){r.parent[r.key]=t.node;return}delete e.$ref,k(t.node)&&Object.assign(e,{...t.node,...e})}var cq=/^[0-9][0-9Xx]{2}$/,pq={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."},lq={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."},uq={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"},dq={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"},fq={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."},mq={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."},hq={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."},yq={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"},gq={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."},vq={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."},bq={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."},xq={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0,description:"The Paths Object is a map of a paths to the path item object. A path starts with a /.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/paths#paths-object"},Sq={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},wq={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"},_q={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"},Pq={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"},$q={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."},Eq={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."},Aq={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},Tq={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"},Rq={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"},Oq={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"},kq={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"},Iq={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."},Cq={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>cq.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"},qq={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."},Nq={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."},ef="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",H0=V("Schema",{name:"AllOf",description:ef}),K0=V("Schema",{name:"AnyOf",description:ef}),G0=V("Schema",{name:"OneOf",description:ef}),jq={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:H0,anyOf:K0,oneOf:G0,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?V("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"},Mq={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."},Dq={properties:{},additionalProperties:"Schema"},Lq={properties:{},additionalProperties:e=>typeof e=="string"&&pn(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},Uq={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."},Fq={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"},zq={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."},Vq={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."},Bq={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."},Hq={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."},Kq={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},Gq={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-"},Wq={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"},tr={Root:pq,Tag:lq,TagList:V("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:V("TagGroup"),TagGroup:uq,ExternalDocs:dq,Server:fq,ServerList:V("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:mq,ServerVariablesMap:z("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:hq,SecurityRequirementList:V("SecurityRequirement"),Info:yq,Contact:vq,License:bq,Paths:xq,PathItem:wq,Parameter:_q,ParameterList:V("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:Pq,Callback:z("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:z("Callback"),RequestBody:Eq,MediaTypesMap:Aq,MediaType:Tq,Example:Rq,ExamplesMap:z("Example"),Encoding:Oq,EncodingMap:z("Encoding"),EnumDescriptions:kq,Header:Iq,HeadersMap:z("Header"),Responses:Cq,Response:qq,Link:Nq,Logo:gq,Schema:jq,AllOf:H0,AnyOf:K0,OneOf:G0,Xml:Mq,SchemaProperties:Dq,DiscriminatorMapping:Lq,Discriminator:Uq,Components:Fq,LinksMap:z("Link"),NamedSchemas:z("Schema"),NamedResponses:z("Response"),NamedParameters:z("Parameter"),NamedExamples:z("Example"),NamedRequestBodies:z("RequestBody"),NamedHeaders:z("Header"),NamedSecuritySchemes:z("SecurityScheme"),NamedLinks:z("Link"),NamedCallbacks:z("Callback"),ImplicitFlow:zq,PasswordFlow:Vq,ClientCredentials:Bq,AuthorizationCode:Hq,OAuth2Flows:Kq,SecurityScheme:Gq,XCodeSample:$q,XCodeSampleList:V("XCodeSample"),XUsePkce:Wq,WebhooksMap:Sq};var Yq={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."},Qq={...tr.License,properties:{...tr.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},Jq={...tr.Info,properties:{...tr.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Xq={...tr.Components,properties:{...tr.Components.properties,pathItems:"NamedPathItems"}},Zq={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."},eN={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:V("Schema",{name:"AllOf"}),anyOf:V("Schema",{name:"AnyOf"}),oneOf:V("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:z("Schema"),dependentRequired:"DependentRequired",prefixItems:V("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-"},W0={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},tN={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-"},rN={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},ve={...tr,Info:Jq,Root:Yq,Schema:eN,SchemaProperties:W0,PatternProperties:W0,License:Qq,Components:Xq,NamedPathItems:z("PathItem"),SecurityScheme:tN,Operation:Zq,DependentRequired:rN};var nN={...ve.Root,properties:{...ve.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."}}},oN={...ve.Tag,properties:{...ve.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."},iN={...ve.Server,properties:{...ve.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."},sN={...ve.SecurityScheme,properties:{...ve.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."},aN={...ve.OAuth2Flows,properties:{...ve.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},cN={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:z("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."},pN={...tr.PathItem,properties:{...tr.PathItem.properties,query:"Operation",additionalOperations:z("Operation")}},lN={...ve.Parameter,properties:{...ve.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"]}}},uN={...ve.Response,properties:{...ve.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},dN={...ve.MediaType,properties:{...ve.MediaType.properties,itemSchema:"Schema",prefixEncoding:V("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"}},fN={...ve.Discriminator,properties:{...ve.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 pn(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},mN={extensionsPrefix:"x-",properties:{...ve.Components.properties,mediaTypes:"NamedMediaTypes"}},hN={...ve.Example,properties:{...ve.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."}}},yN={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."},gN={...ve.Schema,properties:{...ve.Schema.properties,xml:"Xml"}},mt={...ve,Root:nN,Tag:oN,Server:iN,SecurityScheme:sN,OAuth2Flows:aN,DeviceAuthorization:cN,PathItem:pN,Parameter:lN,Response:uN,MediaType:dN,Discriminator:fN,Example:hN,Xml:yN,Schema:gN,Components:mN,NamedMediaTypes:z("MediaTypesMap")};var vN={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-"},bN={properties:{},additionalProperties:"Parameter"},xN={properties:{},additionalProperties:"SuccessActionObject"},SN={properties:{},additionalProperties:"FailureActionObject"},wN={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},_N=z("Schema"),PN={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."},$N={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},EN={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."},AN={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."},TN={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."},RN={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."},ON={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},kN={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."},IN=V("Workflow"),CN=V("Step"),qN={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:V("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."},NN={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_.-]+$."},jN={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:V("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."},MN={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."},DN={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."},LN={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."},UN={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."},FN={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},zN={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},VN={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:V("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."},BN={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},HN={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:V("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."},KN={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},ht={Root:vN,Info:PN,SourceDescriptions:$N,OpenAPISourceDescription:EN,ArazzoSourceDescription:AN,Parameters:ON,Parameter:RN,ReusableObject:TN,Workflows:IN,Workflow:kN,Steps:CN,Step:qN,RequestBody:jN,Replacement:MN,ExtendedOperation:LN,ExtendedSecurityList:V("ExtendedSecurity"),ExtendedSecurity:DN,Outputs:NN,CriterionObject:UN,XPathCriterion:zN,JSONPathCriterion:FN,SuccessActionObject:VN,OnSuccessActionList:BN,FailureActionObject:HN,OnFailureActionList:KN,Schema:mt.Schema,NamedSchemas:z("Schema"),ExternalDocs:mt.ExternalDocs,DiscriminatorMapping:mt.DiscriminatorMapping,Discriminator:mt.Discriminator,DependentRequired:mt.DependentRequired,SchemaProperties:mt.SchemaProperties,PatternProperties:mt.SchemaProperties,Components:wN,NamedInputs:_N,NamedParameters:bN,NamedSuccessActions:xN,NamedFailureActions:SN,Xml:mt.Xml,SecurityScheme:mt.SecurityScheme,OAuth2Flows:mt.OAuth2Flows,ImplicitFlow:mt.ImplicitFlow,PasswordFlow:mt.PasswordFlow,ClientCredentials:mt.ClientCredentials,AuthorizationCode:mt.AuthorizationCode,DeviceAuthorization:mt.DeviceAuthorization};var GN={...ht.Root,properties:{...ht.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."}}},WN={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},YN={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."},QN={...ht.Parameter,properties:{...ht.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.'}}},JN={...ht.Step,properties:{...ht.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"]},XN={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},ZN={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},ej={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},tj={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"]},rj=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",tf=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:rj(n)},nj={...ht.CriterionObject,properties:{...ht.CriterionObject.properties,type:tf(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},oj={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:tf(["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."},ij={properties:{},additionalProperties:e=>k(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_.-]+$."},sj={...ht.Replacement,properties:{...ht.Replacement.properties,value:e=>k(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:tf(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},aj={...ht.SuccessActionObject,properties:{...ht.SuccessActionObject.properties,parameters:"Parameters"}},cj={...ht.FailureActionObject,properties:{...ht.FailureActionObject.properties,parameters:"Parameters"}},rf={...ht,Root:GN,SourceDescriptions:WN,AsyncAPISourceDescription:YN,Parameter:QN,Step:JN,CriterionObject:nj,JSONPathExpression:XN,XPathExpression:ZN,JSONPointerExpression:ej,ExpressionType:tj,SelectorObject:oj,Outputs:ij,Replacement:sj,SuccessActionObject:aj,FailureActionObject:cj};var pj={properties:{},description:"Protocol-specific information for an HTTP channel."},lj={properties:{},description:"Protocol-specific information for an HTTP server."},uj={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},dj={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."},fj={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},mj={properties:{},description:"Protocol-specific information for a WebSockets server."},hj={properties:{},description:"Protocol-specific information for a WebSockets message."},yj={properties:{},description:"Protocol-specific information for a WebSockets operation."},gj={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"}}},vj={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},bj={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},xj={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},Sj={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},wj={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},_j={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},Pj={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},$j={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},Ej={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."},Aj={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."},Tj={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."},Rj={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Oj={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},kj={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."},Ij={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},Cj={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},qj={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Nj={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},jj={properties:{},description:"Protocol-specific information for an MQTT channel."},Mj={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},Dj={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>k(e)?"Schema":{type:"integer"},maximumPacketSize:e=>k(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},Lj={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>k(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},Uj={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>k(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},Fj={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},zj={properties:{sessionExpiryInterval:e=>k(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Vj={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Bj={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Hj={properties:{},description:"Protocol-specific information for a NATS channel."},Kj={properties:{},description:"Protocol-specific information for a NATS server."},Gj={properties:{},description:"Protocol-specific information for a NATS message."},Wj={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},Yj={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Qj={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Jj={properties:{jmsConnectionFactory:{type:"string"},properties:V("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Xj={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Zj={properties:{},description:"Protocol-specific information for a JMS operation."},eM={properties:{},description:"Protocol-specific information for a Solace channel."},tM={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},rM={properties:{},description:"Protocol-specific information for a Solace message."},nM={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"}}}},oM={properties:{bindingVersion:{type:"string"},destinations:V("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},iM={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."},sM={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},aM={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},cM={properties:{statements:V("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},pM={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},lM={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},uM={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."},dM={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."},fM={properties:{topic:"SnsIdentifier",consumers:V("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},mM={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},hM={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},yM={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},gM={properties:{statements:V("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},Y0={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)."},vM={...Y0,required:["name"],description:"Describes an SQS queue (operation-level definition)."},bM={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},xM={properties:{queues:V("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},SM={properties:{},description:"Protocol-specific information for a STOMP channel."},wM={properties:{},description:"Protocol-specific information for a STOMP server."},_M={properties:{},description:"Protocol-specific information for a STOMP message."},PM={properties:{},description:"Protocol-specific information for a STOMP operation."},$M={properties:{},description:"Protocol-specific information for a Redis channel."},EM={properties:{},description:"Protocol-specific information for a Redis server."},AM={properties:{},description:"Protocol-specific information for a Redis message."},TM={properties:{},description:"Protocol-specific information for a Redis operation."},RM={properties:{},description:"Protocol-specific information for a Mercure channel."},OM={properties:{},description:"Protocol-specific information for a Mercure server."},kM={properties:{},description:"Protocol-specific information for a Mercure message."},IM={properties:{},description:"Protocol-specific information for a Mercure operation."},CM={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."},qM={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},NM={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},jM={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."},MM={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."},DM={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},LM={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."},UM={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."},FM={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},zM={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},VM={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},BM={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},HM={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."},KM={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},GM={properties:{},description:"Protocol-specific information for a ROS 2 channel."},WM={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."},YM={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."},QM={properties:{},description:"Protocol-specific information for a ROS 2 message."},JM={extensionsPrefix:"x-",properties:{http:"HttpServerBinding",ws:"WsServerBinding",kafka:"KafkaServerBinding",anypointmq:"AnypointmqServerBinding",amqp:"AmqpServerBinding",amqp1:"Amqp1ServerBinding",mqtt:"MqttServerBinding",mqtt5:"Mqtt5ServerBinding",nats:"NatsServerBinding",jms:"JmsServerBinding",solace:"SolaceServerBinding",stomp:"StompServerBinding",redis:"RedisServerBinding",mercure:"MercureServerBinding",ibmmq:"IbmmqServerBinding",pulsar:"PulsarServerBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a server."},XM={extensionsPrefix:"x-",properties:{http:"HttpChannelBinding",ws:"WsChannelBinding",kafka:"KafkaChannelBinding",anypointmq:"AnypointmqChannelBinding",amqp:"AmqpChannelBinding",amqp1:"Amqp1ChannelBinding",mqtt:"MqttChannelBinding",mqtt5:"Mqtt5ChannelBinding",nats:"NatsChannelBinding",jms:"JmsChannelBinding",solace:"SolaceChannelBinding",stomp:"StompChannelBinding",redis:"RedisChannelBinding",mercure:"MercureChannelBinding",sns:"SnsChannelBinding",sqs:"SqsChannelBinding",ibmmq:"IbmmqChannelBinding",googlepubsub:"GooglepubsubChannelBinding",pulsar:"PulsarChannelBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a channel."},ZM={extensionsPrefix:"x-",properties:{http:"HttpOperationBinding",ws:"WsOperationBinding",kafka:"KafkaOperationBinding",anypointmq:"AnypointmqOperationBinding",amqp:"AmqpOperationBinding",amqp1:"Amqp1OperationBinding",mqtt:"MqttOperationBinding",mqtt5:"Mqtt5OperationBinding",nats:"NatsOperationBinding",jms:"JmsOperationBinding",solace:"SolaceOperationBinding",stomp:"StompOperationBinding",redis:"RedisOperationBinding",mercure:"MercureOperationBinding",sns:"SnsOperationBinding",sqs:"SqsOperationBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for an operation."},eD={extensionsPrefix:"x-",properties:{http:"HttpMessageBinding",ws:"WsMessageBinding",kafka:"KafkaMessageBinding",anypointmq:"AnypointmqMessageBinding",amqp:"AmqpMessageBinding",amqp1:"Amqp1MessageBinding",mqtt:"MqttMessageBinding",mqtt5:"Mqtt5MessageBinding",nats:"NatsMessageBinding",jms:"JmsMessageBinding",solace:"SolaceMessageBinding",stomp:"StompMessageBinding",redis:"RedisMessageBinding",mercure:"MercureMessageBinding",ibmmq:"IbmmqMessageBinding",googlepubsub:"GooglepubsubMessageBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a message."},Pr={HttpServerBinding:lj,HttpChannelBinding:pj,HttpMessageBinding:uj,HttpOperationBinding:dj,WsServerBinding:mj,WsChannelBinding:fj,WsMessageBinding:hj,WsOperationBinding:yj,KafkaServerBinding:bj,KafkaTopicConfiguration:gj,KafkaChannelBinding:vj,KafkaMessageBinding:xj,KafkaOperationBinding:Sj,AnypointmqServerBinding:_j,AnypointmqChannelBinding:wj,AnypointmqMessageBinding:Pj,AnypointmqOperationBinding:$j,AmqpServerBinding:Rj,AmqpChannelExchange:Ej,AmqpChannelQueue:Aj,AmqpChannelBinding:Tj,AmqpMessageBinding:Oj,AmqpOperationBinding:kj,Amqp1ServerBinding:Cj,Amqp1ChannelBinding:Ij,Amqp1MessageBinding:qj,Amqp1OperationBinding:Nj,MqttServerBindingLastWill:Mj,MqttServerBinding:Dj,MqttChannelBinding:jj,MqttMessageBinding:Lj,MqttOperationBinding:Uj,Mqtt5ServerBinding:zj,Mqtt5ChannelBinding:Fj,Mqtt5MessageBinding:Vj,Mqtt5OperationBinding:Bj,NatsServerBinding:Kj,NatsChannelBinding:Hj,NatsMessageBinding:Gj,NatsOperationBinding:Wj,JmsServerBindingProperty:Qj,JmsServerBinding:Jj,JmsChannelBinding:Yj,JmsMessageBinding:Xj,JmsOperationBinding:Zj,SolaceServerBinding:tM,SolaceChannelBinding:eM,SolaceMessageBinding:rM,SolaceDestination:nM,SolaceOperationBinding:oM,StompServerBinding:wM,StompChannelBinding:SM,StompMessageBinding:_M,StompOperationBinding:PM,RedisServerBinding:EM,RedisChannelBinding:$M,RedisMessageBinding:AM,RedisOperationBinding:TM,MercureServerBinding:OM,MercureChannelBinding:RM,MercureMessageBinding:kM,MercureOperationBinding:IM,SnsIdentifier:iM,SnsOrdering:sM,SnsStatement:aM,SnsPolicy:cM,SnsChannelBinding:pM,SnsRedrivePolicy:lM,SnsDeliveryPolicy:uM,SnsConsumer:dM,SnsOperationBinding:fM,SqsIdentifier:mM,SqsRedrivePolicy:hM,SqsStatement:yM,SqsPolicy:gM,SqsQueue:Y0,SqsOperationQueue:vM,SqsChannelBinding:bM,SqsOperationBinding:xM,IbmmqServerBinding:CM,IbmmqChannelQueue:qM,IbmmqChannelTopic:NM,IbmmqChannelBinding:jM,IbmmqMessageBinding:MM,GooglepubsubMessageStoragePolicy:DM,GooglepubsubSchemaSettings:LM,GooglepubsubChannelBinding:UM,GooglepubsubSchema:FM,GooglepubsubMessageBinding:zM,PulsarServerBinding:VM,PulsarRetention:BM,PulsarChannelBinding:HM,ServerBindings:JM,ChannelBindings:XM,MessageBindings:eD,OperationBindings:ZM},Q0={Ros2ServerBinding:KM,Ros2ChannelBinding:GM,Ros2OperationBinding:YM,Ros2QosPolicies:WM,Ros2MessageBinding:QM};var Di={extensionsPrefix:"x-",properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:V("Schema"),anyOf:V("Schema"),oneOf:V("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?V("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"}},Li={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Ui={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Fi={properties:{},additionalProperties:e=>typeof e=="string"&&pn(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},zi={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};var tD={extensionsPrefix:"x-",properties:{asyncapi:null,info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},rD={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of this channel item. CommonMark syntax can be used for rich text representation."},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"},description:"The servers on which this channel is available, specified as an optional unordered list of names (string keys) of Server Objects defined in the Servers Object (a map)."}},description:"Describes the operations available on a single channel."},nD={properties:{},additionalProperties:"Channel"},nf={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A short description for the tag. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],description:"Allows adding meta data to a single tag."},of={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A short description of the target documentation. CommonMark syntax can be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL."}},required:["url"],description:"Allows referencing an external resource for extended documentation."},oD={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."},iD={extensionsPrefix:"x-",properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the AsyncAPI document is being served. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this URL supports for connection. Supported protocol include, but are not limited to: amqp, amqps, http, https, ibmmq, jms, kafka, kafka-secure, anypointmq, mqtt, secure-mqtt, solace, stomp, stomps, ws, wss, mercure, googlepubsub, pulsar."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},sf={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},af={extensionsPrefix:"x-",properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},description:{type:"string",description:"An optional description for the server variable. CommonMark syntax MAY be used for rich text representation."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the server variable."}},required:[],description:"An object representing a Server Variable for server URL template substitution."},sD={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},cf={extensionsPrefix:"x-",properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. This MUST be in the form of an absolute URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},description:"Contact information for the exposed API."},pf={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. This MUST be in the form of an absolute URL."}},required:["name"],description:"License information for the exposed API."},aD={extensionsPrefix:"x-",properties:{description:{type:"string",description:"A verbose explanation of the parameter. CommonMark syntax can be used for rich text representation."},schema:"Schema",location:{type:"string",description:"A runtime expression that specifies the location of the parameter value. Even when a definition for the target field exists, it MUST NOT be used to validate this parameter but, instead, the schema property MUST be used."}},description:"Describes a parameter included in a channel name."},lf={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description of the identifier. CommonMark syntax can be used for rich text representation."},location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the correlation ID."}},required:["location"],description:"An object that specifies an identifier at design time that can used for message tracing and correlation."},cD={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format used to define the message payload. If omitted, implementations should parse the payload as a Schema object. When the payload is defined using a $ref to a remote file, it is RECOMMENDED the schema format includes the file encoding type to allow implementations to parse the file correctly."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},pD={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except message and traits."},lD={extensionsPrefix:"x-",properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format/language used to define the message payload. If omitted, implementations should parse the payload as a Schema object."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},uD={extensionsPrefix:"x-",properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[],description:"Describes a publish or a subscribe operation. This provides a place to document how and why messages are sent and received."},uf={extensionsPrefix:"x-",properties:{payload:{isExample:!0,description:"The value of this field MUST validate against the Message Object's payload field."},summary:{type:"string",description:"A short summary of what the example is about."},name:{type:"string",description:"A machine-friendly name."},headers:{type:"object",description:"The value of this field MUST validate against the Message Object's headers field."}},description:"Message Example Object represents an example of a Message Object and MUST contain either headers and/or payload fields."},dD={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},fD={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},mD={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},hD={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},yD={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"],description:"Configuration for the OAuth Authorization Code flow."},df={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},gD={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."},ff={...Pr,Root:tD,Tag:nf,TagList:V("Tag"),ServerMap:sf,ExternalDocs:of,Server:iD,ServerVariable:af,ServerVariablesMap:z("ServerVariable"),SecurityRequirement:oD,SecurityRequirementList:V("SecurityRequirement"),Info:sD,Contact:cf,License:pf,ChannelMap:nD,Channel:rD,Parameter:aD,ParametersMap:z("Parameter"),Operation:uD,Schema:Di,MessageExample:uf,SchemaProperties:Li,DiscriminatorMapping:Fi,Discriminator:zi,Components:dD,NamedSchemas:z("Schema"),NamedMessages:z("Message"),NamedMessageTraits:z("MessageTrait"),NamedOperationTraits:z("OperationTrait"),NamedParameters:z("Parameter"),NamedSecuritySchemes:z("SecurityScheme"),NamedCorrelationIds:z("CorrelationId"),ImplicitFlow:fD,PasswordFlow:mD,ClientCredentials:hD,AuthorizationCode:yD,SecuritySchemeFlows:df,SecurityScheme:gD,Message:cD,OperationTrait:pD,OperationTraitList:V("OperationTrait"),MessageTrait:lD,MessageTraitList:V("MessageTrait"),MessageExampleList:V("MessageExample"),CorrelationId:lf,Dependencies:Ui};var vD={extensionsPrefix:"x-",properties:{asyncapi:{type:"string",description:"REQUIRED. Specifies the AsyncAPI Specification version being used. It can be used by tooling Specifications and clients to interpret the version. The structure shall be major.minor.patch, where patch versions must be compatible with the existing major.minor tooling. Typically patch versions will be introduced to address errors in the documentation, and tooling should typically be compatible with the corresponding major.minor (1.0.*). Patch versions will correspond to patches of this document."},info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string",description:"Default content type to use when encoding/decoding a message's payload."}},required:["asyncapi","info"],description:"This is the root document object for the API specification. It combines resource listing and API declaration together into one document."},bD={extensionsPrefix:"x-",properties:{address:{type:"string",description:`An optional string representation of this channel's address. The address is typically the "topic name", "routing key", "event type", or "path". When null or absent, it MUST be interpreted as unknown. This is useful when the address is generated dynamically at runtime or can't be known upfront. It MAY contain Channel Address Expressions. Query parameters and fragments SHALL NOT be used, instead use bindings to define them.`},messages:"NamedMessages",title:{type:"string",description:"A human-friendly title for the channel."},summary:{type:"string",description:"A short summary of the channel."},description:{type:"string",description:"An optional description of this channel. CommonMark syntax can be used for rich text representation."},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"},description:"Describes a shared communication channel."},xD={extensionsPrefix:"x-",properties:{host:{type:"string",description:"REQUIRED. The server host name. It MAY include the port. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},pathname:{type:"string",description:"The path to a resource in the host. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this server supports for connection."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the server. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},SD={extensionsPrefix:"x-",properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},wD={extensionsPrefix:"x-",properties:{description:{type:"string",description:"An optional description for the parameter. CommonMark syntax MAY be used for rich text representation."},enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the parameter value."},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value."}},description:"Describes a parameter included in a channel address."},_D={extensionsPrefix:"x-",properties:{headers:e=>k(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>k(e)&&"schema"in e?"MultiFormatSchema":"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},description:"Describes a message received on a given channel and operation."},PD={extensionsPrefix:"x-",properties:{tags:"TagList",title:{type:"string",description:"A human-friendly title for the operation."},summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except the action, channel, messages and traits ones."},$D={extensionsPrefix:"x-",properties:{headers:e=>k(e)&&"schema"in e?"MultiFormatSchema":"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},ED={extensionsPrefix:"x-",properties:{action:{type:"string",enum:["send","receive"],description:"Required. Use send when it's expected that the application will send a message to the given channel, and receive when the application should expect receiving messages from the given channel."},channel:"Channel",title:{type:"string",description:"A human-friendly title for the operation."},tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},AD={extensionsPrefix:"x-",properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"},description:"Describes the reply part that MAY be applied to an Operation Object. If an operation implements the request/reply pattern, the reply object represents the response message."},TD={extensionsPrefix:"x-",properties:{location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the reply address."},description:{type:"string",description:"An optional description of the address. CommonMark syntax can be used for rich text representation."}},required:["location"],description:"An object that specifies where an operation has to send the reply."},RD={extensionsPrefix:"x-",properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"},description:"Holds a set of reusable objects for different aspects of the AsyncAPI specification. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},OD={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},kD={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Resource Owner Protected Credentials flow."},ID={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},CD={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"],description:"Configuration for the OAuth Authorization Code flow."},qD={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."},ND={...Pr.ServerBindings,properties:{...Pr.ServerBindings.properties,ros2:"Ros2ServerBinding"}},jD={...Pr.ChannelBindings,properties:{...Pr.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},MD={...Pr.OperationBindings,properties:{...Pr.OperationBindings.properties,ros2:"Ros2OperationBinding"}},DD={...Pr.MessageBindings,properties:{...Pr.MessageBindings.properties,ros2:"Ros2MessageBinding"}},LD={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},UD={properties:{},additionalProperties:e=>k(e)&&"schema"in e?"MultiFormatSchema":"Schema"},mf={...Pr,...Q0,ServerBindings:ND,ChannelBindings:jD,OperationBindings:MD,MessageBindings:DD,CorrelationId:lf,SecuritySchemeFlows:df,ServerVariable:af,Contact:cf,License:pf,MessageExample:uf,Tag:nf,Dependencies:Ui,Schema:Di,MultiFormatSchema:LD,Discriminator:zi,DiscriminatorMapping:Fi,SchemaProperties:Li,ServerMap:sf,ExternalDocs:of,Root:vD,Channel:bD,Parameter:wD,Info:SD,Server:xD,MessageTrait:$D,Operation:ED,OperationReply:AD,OperationReplyAddress:TD,Components:RD,ImplicitFlow:OD,PasswordFlow:kD,ClientCredentials:ID,AuthorizationCode:CD,SecurityScheme:qD,Message:_D,OperationTrait:PD,ServerVariablesMap:z("ServerVariable"),NamedTags:z("Tag"),NamedExternalDocs:z("ExternalDocs"),NamedChannels:z("Channel"),ParametersMap:z("Parameter"),NamedOperations:z("Operation"),NamedOperationReplies:z("OperationReply"),NamedOperationRelyAddresses:z("OperationReplyAddress"),NamedSchemas:UD,NamedMessages:z("Message"),NamedMessageTraits:z("MessageTrait"),NamedOperationTraits:z("OperationTrait"),NamedParameters:z("Parameter"),NamedSecuritySchemes:z("SecurityScheme"),NamedCorrelationIds:z("CorrelationId"),ServerList:V("Server"),SecuritySchemeList:V("SecurityScheme"),MessageList:V("Message"),OperationTraitList:V("OperationTrait"),MessageTraitList:V("MessageTrait"),MessageExampleList:V("MessageExample"),TagList:V("Tag")};var FD=/^[0-9][0-9Xx]{2}$/,zD={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-"},VD={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-"},BD={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},HD={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},KD={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},GD={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},WD={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},YD={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-"},QD={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},JD={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},XD={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},ZD={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-"},eL={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-"},tL={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>FD.test(t)?"Response":void 0},rL={properties:{description:{type:"string"},schema:"Schema",headers:z("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},nL={properties:{},additionalProperties:{isExample:!0}},oL={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 k(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},iL={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},sL={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},aL={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)?V("Schema"):"Schema",allOf:V("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-"},cL={properties:{},additionalProperties:{type:"string"}},pL={properties:{},additionalProperties:"Schema"},lL={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},uL={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},dL={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:"Scopes","x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(e?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},fL={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},mL={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},hf={Root:zD,Tag:iL,TagList:V("Tag"),TagGroups:V("TagGroup"),TagGroup:sL,ExternalDocs:XD,Example:mL,ExamplesMap:z("Example"),EnumDescriptions:cL,SecurityRequirement:fL,SecurityRequirementList:V("SecurityRequirement"),Info:VD,Contact:HD,License:KD,Logo:BD,Paths:GD,PathItem:WD,Parameter:ZD,ParameterItems:eL,ParameterList:V("Parameter"),Operation:YD,Examples:nL,Header:oL,Responses:tL,Response:rL,Schema:aL,Xml:lL,SchemaProperties:pL,NamedSchemas:z("Schema"),NamedResponses:z("Response"),NamedParameters:z("Parameter"),NamedSecuritySchemes:z("SecurityScheme"),SecurityScheme:dL,Scopes:uL,XCodeSample:QD,XCodeSampleList:V("XCodeSample"),XServerList:V("XServer"),XServer:JD};var hL={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."},yL={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."},gL={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."},vL={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."},bL={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."},xL={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."},SL={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."},wL={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."},_L={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."},PL={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."},$L={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."},EL={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."},AL={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."},TL={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."},RL={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."},yf={Root:hL,Info:yL,Contact:gL,License:vL,Server:bL,ServerList:V("Server"),ServerVariable:xL,ServerVariablesMap:z("ServerVariable"),Method:SL,MethodList:V("Method"),ContentDescriptor:wL,ContentDescriptorList:V("ContentDescriptor"),ExamplePairing:_L,ExamplePairingList:V("ExamplePairing"),Example:PL,ExampleList:V("Example"),Link:$L,LinkList:V("Link"),ErrorObject:EL,ErrorList:V("ErrorObject"),Components:AL,Tag:TL,TagList:V("Tag"),ExternalDocs:RL,Schema:Di,SchemaProperties:Li,Dependencies:Ui,DiscriminatorMapping:Fi,Discriminator:zi,NamedContentDescriptors:z("ContentDescriptor"),NamedSchemas:z("Schema"),NamedExamples:z("Example"),NamedLinks:z("Link"),NamedErrors:z("ErrorObject"),NamedExamplePairingObjects:z("ExamplePairing"),NamedTags:z("Tag")};function Vi(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var OL={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},$self:{type:"string",description:"A URI-reference for the Overlay document. It is also the base URI for resolving relative references within this document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions",components:"Components"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},kL={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."},description:{type:"string",description:"A description of the Overlay. [CommonMark] syntax MAY be used for rich text representation."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},IL={properties:{},items:e=>B(e)?"ReusableAction":"Action"},J0={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},copy:{type:"string",description:"A JSONPath expression selecting a single node to copy into the target nodes. The copied value is merged with the target nodes like an `update` value."},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},CL={properties:{actions:"ReusableActions"},extensionsPrefix:"x-",description:"A set of components to reuse across the Overlay document."},qL=z("ReusableAction"),NL={properties:{description:{type:"string",description:"A description of the reusable action. [CommonMark] syntax MAY be used for rich text representation."},fields:"ReusableActionFields"},extensionsPrefix:"x-",description:"A reusable action. An action in `actions` references it with `$ref` and supplies the `target`."},jL={properties:Vi(J0.properties,["target"]),extensionsPrefix:"x-",description:"The fields of a reusable action: an action without a `target`."},da={Root:OL,Info:kL,Actions:IL,Action:J0,Components:CL,ReusableActions:qL,ReusableAction:NL,ReusableActionFields:jL};var Bi=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],mp="a-zA-Z0-9\\.\\-_",ML={oas2:hf,oas3_0:tr,oas3_1:ve,oas3_2:mt,async2:ff,async3:mf,arazzo1:ht,arazzo1_1:rf,overlay1:da,openrpc1:yf};function Do(e){return e==="graphql"?{}:ML[e]}var Oe=Symbol("NOT_RESOLVED"),Lf=Symbol("MERGE_KEY");function It(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 Uf(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 wp(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 DL=It("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),LL=["","~","null","Null","NULL"],UL=It("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>LL.indexOf(e)!==-1?null:Oe,identify:e=>e===null,represent:()=>"null"}),FL=It("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:Oe,identify:e=>e===null,represent:()=>"null"}),zL=["","~","null","Null","NULL"],VL=It("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>zL.indexOf(e)!==-1?null:Oe,identify:e=>e===null,represent:()=>"null"}),BL=["true","True","TRUE"],HL=["false","False","FALSE"],KL=It("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>BL.indexOf(e)!==-1?!0:HL.indexOf(e)!==-1?!1:Oe,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),GL=["true"],WL=["false"],YL=It("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>GL.indexOf(e)!==-1?!0:WL.indexOf(e)!==-1?!1:Oe,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),QL=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],JL=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],XL=It("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>QL.indexOf(e)!==-1?!0:JL.indexOf(e)!==-1?!1:Oe,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),ZL=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),e2=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function t2(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 r2(e,t){if(t){if(!e2.test(e))return Oe}else if(!ZL.test(e))return Oe;let r=t2(e);return Number.isFinite(r)?r:Oe}var yx=It("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:r2,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),n2=new RegExp("^-?(?:0|[1-9][0-9]*)$"),o2=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function i2(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 s2(e,t){if(t){if(!o2.test(e))return Oe}else if(!n2.test(e))return Oe;let r=i2(e);return Number.isFinite(r)?r:Oe}var a2=It("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:s2,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),c2=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 p2(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 l2(e){if(!c2.test(e))return Oe;let t=p2(e);return Number.isFinite(t)?t:Oe}var _f=It("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:l2,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),u2=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),d2=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function f2(e){if(!u2.test(e))return Oe;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)||d2.test(e)?n:Oe}function m2(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 gx=It("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:f2,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:m2}),h2=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),y2=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function g2(e,t){if(t){if(!y2.test(e))return Oe;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:Oe}if(!h2.test(e))return Oe;let r=Number(e);return Number.isFinite(r)?r:Oe}function v2(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 b2=It("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:g2,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:v2}),x2=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))$"),S2=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function w2(e){if(!x2.test(e))return Oe;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)||S2.test(e)?n:Oe}function _2(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 Pf=It("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:w2,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:_2}),Ff=It("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Lf:Oe}),P2=/^[A-Za-z0-9+/]*={0,2}$/;function $2(e){let t=e.replace(/\s/g,"");if(t.length%4!==0||!P2.test(t))return Oe;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 E2(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var zf=It("tag:yaml.org,2002:binary",{resolve:$2,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:E2}),A2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),T2=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 R2(e){let t=A2.exec(e);if(t===null&&(t=T2.exec(e)),t===null)return Oe;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?Oe:l}let i=+t[4],s=+t[5],a=+t[6],c=0;if(i>23||s>59||a>59)return Oe;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 Oe;if(t[9]){let l=+t[10],u=+(t[11]||0);if(l>23||u>59)return Oe;let f=(l*60+u)*6e4;p.setTime(p.getTime()-(t[9]==="-"?-f:f))}return p}var O2=It("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:R2,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),k2=Uf("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function _p(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function $f(e,t){let r={};for(let n of t)e[n]!==void 0&&(r[n]=e[n]);return r}var Vf=Uf("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(_p(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}),Bf=Uf("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]]]),"")}}),I2=wp("tag:yaml.org,2002:map",{create:()=>({}),identify:_p,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)]}),Hf=wp("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 C2(){return{scalar:{},sequence:{},mapping:{}}}function q2(){return{scalar:[],sequence:[],mapping:[]}}function N2(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 Pp=class vx{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){let r=N2(t),n=[],o=C2(),i=q2();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 vx([...this.tags,...r])}},Kf=new Pp([DL,k2,I2]),Yne=new Pp([...Kf.tags,FL,YL,a2,b2]),Gf=new Pp([...Kf.tags,UL,KL,yx,gx]),j2=new Pp([...Kf.tags,VL,XL,_f,Pf,O2,Ff,zf,Vf,Bf,Hf]),Qne=wp("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||_p(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 X0(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 Jne=wp("tag:yaml.org,2002:map",{create:()=>({}),identify:_p,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=X0(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=X0(t);return r!==null&&Object.prototype.hasOwnProperty.call(e,r)},keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),M2={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function gf(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 vf(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function D2(e,t){if(!e.buffer)return null;let r={...M2,...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 f=1;f<=r.linesBefore&&!(a-f<0);f++){let m=gf(e.buffer,o[a-f],i[a-f],e.position-(o[a]-o[a-f]),l);c=`${" ".repeat(r.indent)}${vf((e.line-f+1).toString(),p)} | ${m.str}
|
|
56
|
-
${c}`}let u=gf(e.buffer,o[a],i[a],e.position,l);c+=`${" ".repeat(r.indent)}${vf((e.line+1).toString(),p)} | ${u.str}
|
|
57
|
-
`,c+=`${"-".repeat(r.indent+p+3+u.pos)}^
|
|
58
|
-
`;for(let f=1;f<=r.linesAfter&&!(a+f>=i.length);f++){let m=gf(e.buffer,o[a+f],i[a+f],e.position-(o[a]-o[a+f]),l);c+=`${" ".repeat(r.indent)}${vf((e.line+f+1).toString(),p)} | ${m.str}
|
|
59
|
-
`}return c.replace(/\n$/,"")}function Z0(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 xa=class extends Error{reason;mark;constructor(e,t){super(),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Z0(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Z0(this,e)}`}};function $p(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=D2(s),new xa(r,s)}var L2=-1;function ex(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
62
|
-
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var bx=new Array(256),xx=new Array(256);for(let e=0;e<256;e++)bx[e]=ex(e)?1:0,xx[e]=ex(e);function U2(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function F2(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function z2(e){return e===120?2:e===117?4:8}function bp(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 Wf(e){return e===1?" ":`
|
|
63
|
-
`.repeat(e-1)}function V2(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=bp(e,o,r);n+=Wf(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,s)}function B2(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=bp(e,o,r);n+=Wf(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function H2(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=bp(e,o,r).position;else if(c<256&&bx[c])n+=xx[c],o++;else{let p=z2(c),l=0;for(;p>0;p--){o++;let u=F2(e.charCodeAt(o));l=(l<<4)+u}n+=U2(l),o++}i=s=o}else if(a===10||a===13){n+=e.slice(i,s);let c=bp(e,o,r);n+=Wf(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function tx(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,f=!1;for(let m of c){let h=0;for(;h<s&&m.charCodeAt(h)===32;)h++;if(n<0||h>=m.length){u++;continue}let y=m.slice(s),b=y.charCodeAt(0);i?b===32||b===9?(f=!0,p+=`
|
|
67
|
-
`.repeat(l?1+u:u)):f?(f=!1,p+=`
|
|
68
|
-
`.repeat(u+1)):u===0?l&&(p+=" "):p+=`
|
|
69
|
-
`.repeat(u):p+=`
|
|
70
|
-
`.repeat(l?1+u:u),p+=y,l=!0,u=0}return o===3?p+=`
|
|
71
|
-
`.repeat(l?1+u:u):o!==2&&l&&(p+=`
|
|
72
|
-
`),p}function K2(e,t){if(t.valueStart===L2)return"";let{valueStart:r,valueEnd:n}=t;if(t.fast)return e.slice(r,n);switch(t.style){case 2:return B2(e,r,n);case 3:return H2(e,r,n);case 4:return tx(e,r,n,t.indent,t.chomping,!1);case 5:return tx(e,r,n,t.indent,t.chomping,!0);default:return V2(e,r,n)}}var G2={"!":"!","!!":"tag:yaml.org,2002:"};function bf(e){return encodeURI(e).replace(/!/g,"%21")}function Sx(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]??G2[n]??n;return decodeURIComponent(o)+decodeURIComponent(e.slice(n.length))}function wx(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${bf(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${bf(t.slice(18))}`:`!<${bf(t)}>`}var Hi=-1,Yf={filename:"",schema:Gf,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function W2(e){return"tagStart"in e&&e.tagStart!==Hi?e.tagStart:"anchorStart"in e&&e.anchorStart!==Hi?e.anchorStart:"valueStart"in e&&e.valueStart!==Hi?e.valueStart:"start"in e?e.start:0}function rr(e,t){$p(e.source,e.position,t,e.filename)}function _x(e,t,r,n){try{return r.finalize(n)}catch(o){if(o instanceof xa)throw o;$p(e.source,t,o instanceof Error?o.message:String(o),e.filename)}}function gp(e,t,r){let n=e[r];if(n)return n;for(let o of t)if(r.startsWith(o.tagName))return o}function Y2(e,t,r,n,o){let i=gp(t,r,n);if(i)return i;rr(e,`unknown ${o} tag !<${n}>`)}function Q2(e,t){let r=K2(e.source,t),n=t.tagStart===Hi?"":e.source.slice(t.tagStart,t.tagEnd),o=e.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:o};let i=Sx(n,e.tagHandlers),s=gp(e.schema.exact.scalar,e.schema.prefix.scalar,i);if(s){let c=s.resolve(r,!0,i);return c===Oe&&rr(e,`cannot resolve a node with !<${i}> explicit tag`),{value:c,tag:s}}let a=gp(e.schema.exact.mapping,e.schema.prefix.mapping,i)??gp(e.schema.exact.sequence,e.schema.prefix.sequence,i);if(a){r!==""&&rr(e,`cannot resolve a node with !<${i}> explicit tag`);let c=a.create(i);return{value:a.carrierIsResult?c:_x(e,e.position,a,c),tag:a}}rr(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!==Oe)return{value:a,tag:s}}}return{value:o.resolve(r,!1,o.tagName),tag:o}}function rx(e,t,r,n,o,i){let s=t.tagStart===Hi?"":e.source.slice(t.tagStart,t.tagEnd),a=s===""||s==="!"?o:Sx(s,e.tagHandlers);return{tagName:a,tag:Y2(e,r,n,a,i)}}function Px(e){return e.nodeKind==="mapping"}function nx(e,t,r,n){for(let o of n.keys(r)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&rr(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&&rr(e,i),(t.overridable??=new Set).add(o)}}function J2(e,t,r,n){if(e.position=t.keyPosition,Px(n))nx(e,t,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let o of r)nx(e,t,o,t.tag);else rr(e,"cannot merge mappings; the provided source object is unacceptable")}function X2(e,t,r,n,o){if(e.position=t.keyPosition,r===Lf){J2(e,t,n,o);return}!e.json&&t.tag.has(t.value,r)&&!t.overridable?.has(r)&&rr(e,"duplicated mapping key");let i=t.tag.addPair(t.value,r,n);i&&rr(e,i),t.overridable?.delete(r)}function xf(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&&(Px(r)||rr(e,"cannot merge mappings; the provided source object is unacceptable"));let o=n.tag.addItem(n.value,t,n.index++);o&&rr(e,o)}else if(n.hasKey){let o=n.key;n.key=void 0,n.hasKey=!1,X2(e,n,o,t,r)}else n.key=t,n.keyPosition=e.position,n.hasKey=!0}function Sf(e,t,r,n,o){if(t.anchorStart!==Hi){let i={value:r,tag:n,isValueFinal:o};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),i),i}return null}function Z2(e,t){let r={...Yf,...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=W2(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}=Q2(r,n);Sf(r,n,o,i,!0),xf(r,o,i);break}case 2:{let o=rx(r,n,r.schema.exact.sequence,r.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),i=o.tag.create(o.tagName),s=Sf(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===Lf;r.frames.push({kind:"sequence",position:r.position,value:i,tag:o.tag,anchor:s,index:0,merge:c});break}case 3:{let o=rx(r,n,r.schema.exact.mapping,r.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),i=o.tag.create(o.tagName),s=Sf(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&&rr(r,`aliases exceeded maxAliases (${r.maxAliases})`);let o=r.source.slice(n.anchorStart,n.anchorEnd),i=r.anchors.get(o);i||rr(r,`unidentified alias "${o}"`),i.isValueFinal||rr(r,`recursive alias "${o}" is not supported for tag ${i.tag.tagName} because it uses finalize()`),xf(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:_x(r,o.position,o.tag,o.value);o.anchor&&(o.anchor.value=i,o.anchor.isValueFinal=!0),xf(r,i,o.tag)}break}}}return r.documents}var je=-1,$x=Object.prototype.hasOwnProperty,Yi=1,Ef=2,Ex=3,xp=4,eU=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,tU=/[,\[\]{}]/,Ax=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Af=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,Tx=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,rU=new RegExp(`^(?:${Af})*$`),nU=new RegExp(`^(?:${Tx})+$`),oU=new RegExp(`^(?:!(?:${Af})*|${Tx}(?:${Af})*)$`),Qf={filename:"",maxDepth:100};function iU(e,t,r){e.events.push({type:1,explicitStart:t,explicitEnd:r,directives:e.directives})}function Rx(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 Tf(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 ox(e,t){e.events.splice(t.eventsLength,0,{type:3,start:t.position,anchorStart:je,anchorEnd:je,tagStart:je,tagEnd:je,style:2})}function Ji(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 sU(e,t,r){e.events.push({type:5,anchorStart:t,anchorEnd:r})}function Ki(e){e.events.push({type:6})}function Vt(e){Ji(e,je,je,je,je,je,je,1)}function ix(){return{anchorStart:je,anchorEnd:je,tagStart:je,tagEnd:je}}function ha(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Gi(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function J(e,t){$p(e.input.slice(0,e.length),e.position,t,e.filename)}function yt(e){return e===10||e===13}function Fo(e){return e===9||e===32}function Br(e){return Fo(e)||yt(e)}function qn(e){return e===0||Br(e)}function zo(e){return e===44||e===91||e===93||e===123||e===125}function aU(e){return e>=48&&e<=57?e-48:-1}function cU(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function pU(e){return e===120?2:e===117?4:e===85?8:0}function lU(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 Sp(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function Bt(e,t){let r=0,n=e.input.charCodeAt(e.position),o=e.position===e.lineStart||Br(e.input.charCodeAt(e.position-1));for(;n!==0;){for(;Fo(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(!yt(n)&&n!==0);if(!yt(n))break;for(Sp(e),r++,o=!0,n=e.input.charCodeAt(e.position);n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return r}function oo(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||Br(n)}return!1}function sx(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!yt(t);)t=e.input.charCodeAt(++e.position)}function Ox(e,t,r){eU.test(e.input.slice(t,r))&&J(e,"the stream contains non-printable characters")}function uU(e,t,r){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==je&&J(e,"duplication of a tag property");let n=e.position,o=!1,i=!1,s="!",a=e.input.charCodeAt(++e.position);a===60?(o=!0,a=e.input.charCodeAt(++e.position)):a===33&&(i=!0,s="!!",a=e.input.charCodeAt(++e.position));let c=e.position,p;if(o){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&J(e,"unexpected end of the stream within a verbatim tag"),p=e.input.slice(c,e.position),e.position++}else{for(;a!==0&&!Br(a)&&!(r&&zo(a));)a===33&&(i?J(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(c-1,e.position+1),Ax.test(s)||J(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),tU.test(p)&&J(e,"tag suffix cannot contain flow indicator characters")}return p&&!(o?rU.test(p):nU.test(p))&&J(e,`tag name cannot contain such characters: ${p}`),!o&&s!=="!"&&s!=="!!"&&!$x.call(e.tagHandlers,s)&&J(e,`undeclared tag handle "${s}"`),t.tagStart=n,t.tagEnd=e.position,!0}function dU(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==je&&J(e,"duplication of an anchor property"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Br(e.input.charCodeAt(e.position))&&!zo(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&J(e,"name of an anchor node must contain at least one character"),t.anchorStart=r,t.anchorEnd=e.position,!0}function fU(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==je||t.tagStart!==je)&&J(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Br(e.input.charCodeAt(e.position))&&!zo(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&J(e,"name of an alias node must contain at least one character"),sU(e,r,e.position),!0}function Rf(e,t){Bt(e,!1),e.lineIndent<t&&J(e,"deficient indentation")}function mU(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++,Ji(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2,1,-1,o),!0}yt(i)?(o=!1,Rf(e,t)):e.position===e.lineStart&&oo(e)?J(e,"unexpected end of the document within a single quoted scalar"):i!==9&&i<32?J(e,"expected valid JSON character"):e.position++}J(e,"unexpected end of the stream within a single quoted scalar")}function hU(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++,Ji(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(yt(s))Rf(e,t);else if(lU(s))e.position++;else{let a=pU(s);for(a===0&&J(e,"unknown escape sequence");a-- >0;)e.position++,cU(e.input.charCodeAt(e.position))<0&&J(e,"expected hexadecimal character");e.position++}}else yt(i)?(o=!1,Rf(e,t)):e.position===e.lineStart&&oo(e)?J(e,"unexpected end of the document within a double quoted scalar"):i!==9&&i<32?J(e,"expected valid JSON character"):e.position++}J(e,"unexpected end of the stream within a double quoted scalar")}function yU(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 m=e.input.charCodeAt(e.position),h=aU(m);if(m===43||m===45)o!==1&&J(e,"repeat of a chomping mode identifier"),o=m===43?3:2,e.position++;else if(h>=0)h===0&&J(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),s&&J(e,"repeat of an indentation width identifier"),i=t+h-1,s=!0,e.position++;else break}let c=!1;for(;Fo(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&sx(e),yt(e.input.charCodeAt(e.position))?Sp(e):e.input.charCodeAt(e.position)!==0&&J(e,"a line break is expected");let p=s?i:-1,l=0,u=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let m=e.position,h=0;for(;e.input.charCodeAt(m+h)===32;)h++;let y=e.input.charCodeAt(m+h);if(y===0){p>=0?h>p&&(f=m+h):h>0&&(f=m+h);break}if(m===e.lineStart&&oo(e,m))break;if(!s&&p===-1&&yt(y)&&(l=Math.max(l,h)),!s&&p===-1&&!yt(y)&&(y===9&&h<t&&(e.position=m+h,J(e,"tab characters must not be used in indentation")),h<l&&(e.position=m+h,J(e,"bad indentation of a mapping entry"))),p===-1&&y!==0&&!yt(y)&&h<t){e.lineIndent=h,e.position=m+h;break}!s&&y!==0&&!yt(y)&&p===-1&&(p=h);let b=p===-1?t+1:p;if(y!==0&&!yt(y)&&h<b){e.lineIndent=h,e.position=m+h;break}sx(e),f=e.position,yt(e.input.charCodeAt(e.position))&&(Sp(e),f=e.position)}return Ox(e,u,f),Ji(e,u,f,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,a,o,p),!0}function gU(e,t){let r=e.input.charCodeAt(e.position),n=t===Yi;if(r===0||Br(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||n&&zo(r))return!1;if(r===63||r===45){let o=e.input.charCodeAt(e.position+1);if(qn(o)||n&&zo(o))return!1}return!0}function vU(e,t,r,n){if(!gU(e,r))return!1;let o=e.position,i=e.position,s=e.input.charCodeAt(e.position),a=r===Yi,c=!1;for(;s!==0&&!(e.position===e.lineStart&&oo(e));){if(s===58){let p=e.input.charCodeAt(e.position+1);if(qn(p)||a&&zo(p))break}else if(s===35){if(Br(e.input.charCodeAt(e.position-1)))break}else{if(a&&zo(s))break;if(yt(s)){let p=e.position,l=e.line,u=e.lineStart,f=e.lineIndent;if(Bt(e,!1),e.lineIndent>=t){c=!0,s=e.input.charCodeAt(e.position);continue}e.position=p,e.line=l,e.lineStart=u,e.lineIndent=f;break}}Fo(s)||(i=e.position+1),s=e.input.charCodeAt(++e.position)}return i===o?!1:(Ox(e,o,i),Ji(e,o,i,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1,1,-1,!c),!0)}function fa(e,t){let r=e.line;Bt(e,!0),(e.line>r&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&J(e,"deficient indentation")}function bU(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?Tf(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2):Rx(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){fa(e,t);let c=e.input.charCodeAt(e.position);if(c===a)return e.position++,Ki(e),!0;s?c===44&&J(e,"expected the node content, but found ','"):J(e,"missed comma between flow collection entries");let p=!1,l=!1;c===63&&Br(e.input.charCodeAt(e.position+1))&&(p=l=!0,e.position+=1,fa(e,t));let u=e.line,f=ha(e),m=Uo(e,t,Yi,!1,!0);fa(e,t),c=e.input.charCodeAt(e.position),(o||l||e.line===u)&&c===58?(p=!0,e.position++,fa(e,t),o||ox(e,f),m||Vt(e),Uo(e,t,Yi,!1,!0)||Vt(e),fa(e,t),o||Ki(e)):o&&p?(m||Vt(e),Vt(e)):o?Vt(e):p&&(ox(e,f),m||Vt(e),Vt(e),Ki(e)),c=e.input.charCodeAt(e.position),c===44?(s=!0,e.position++):s=!1}J(e,"unexpected end of the stream within a flow collection")}function ax(e,t,r){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!qn(e.input.charCodeAt(e.position+1)))return!1;for(Rx(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1);e.input.charCodeAt(e.position)===45&&qn(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,J(e,"tab characters must not be used in indentation"));let n=e.line;e.position++;let o=Bt(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&qn(e.input.charCodeAt(e.position+1))&&J(e,"bad indentation of a sequence entry"),o&&e.lineIndent<=t?Vt(e):Uo(e,t,Ex,!1,!0),Bt(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&J(e,"bad indentation of a sequence entry"),e.line===n&&e.input.charCodeAt(e.position)===45&&qn(e.input.charCodeAt(e.position+1))&&J(e,"bad indentation of a sequence entry")}return Ki(e),!0}function wf(e,t,r,n){let o=!1,i=!1,s=!1,a=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!o&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,J(e,"tab characters must not be used in indentation"));let p=e.input.charCodeAt(e.position+1),l=e.line;if((c===63||c===58)&&qn(p))s||(Tf(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0),c===63?(o&&Vt(e),i=!0,o=!0):(o||(Vt(e),i=!0),o=!1),e.position+=1,a=!0;else{o&&(Vt(e),o=!1);let u=ha(e);if(!Uo(e,r,Ef,!1,!0))break;if(e.line===l){for(c=e.input.charCodeAt(e.position);Fo(c);)c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),qn(c)||J(e,"a whitespace character is expected after the key-value separator within a block mapping"),!s){for(Gi(e,u),Tf(e,u.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0,Uo(e,r,Ef,!1,!0),c=e.input.charCodeAt(e.position);Fo(c);)c=e.input.charCodeAt(++e.position);e.position++}i=!0,o=!1,a=!1}else if(i)J(e,"expected ':' after a mapping key");else return n.anchorStart!==je||n.tagStart!==je?(Gi(e,u),!1):!0}else if(i)J(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==je||n.tagStart!==je?(Gi(e,u),!1):!0}if(Uo(e,t,xp,!0,a)&&(a=!1),o||a&&(Vt(e),a=!1),Bt(e,!0),c=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&c!==0)J(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return i?(o&&Vt(e),s&&Ki(e),!0):!1}function Uo(e,t,r,n,o,i=!0){e.depth>=e.maxDepth&&J(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let s=1,a=!1,c=!1,p=null,l=ix(),u=r===xp||r===Ex,f=u,m=u;if(n&&Bt(e,!0)&&(a=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1),e.position===e.lineStart&&oo(e))return e.depth--,!1;if(s===1)for(;;){let h=e.input.charCodeAt(e.position),y=ha(e);if(a&&s!==1&&(h===33||h===38))break;if(a&&m&&(l.tagStart!==je||l.anchorStart!==je)&&(h===33||h===38)){let b=ha(e),x=t+1;if(wf(e,e.position-e.lineStart,x,l)&&e.events[b.eventsLength]?.type===3)return e.depth--,!0;Gi(e,b)}if(a&&(h===33&&l.tagStart!==je||h===38&&l.anchorStart!==je)||!uU(e,l,r===Yi)&&!dU(e,l))break;p===null&&(p=y),Bt(e,!0)?(a=!0,f=m,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1):f=!1}if(f&&(f=a||o),s===1||r===xp){let h=r===Yi||r===Ef?t:t+1,y=e.position-e.lineStart;if(s===1)if(f&&(ax(e,y,l)||wf(e,y,h,l))||bU(e,h,l))c=!0;else{let b=e.input.charCodeAt(e.position);if(p!==null&&i&&m&&!f&&b!==124&&b!==62){let x=ha(e),w=p.position-p.lineStart;Gi(e,p),wf(e,w,h,ix())&&e.events[x.eventsLength]?.type===3?c=!0:Gi(e,x)}!c&&(u&&yU(e,h,l)||mU(e,h,l)||hU(e,h,l)||fU(e,l)||vU(e,h,r,l))&&(c=!0)}else s===0&&(c=f&&ax(e,y,l))}return u=u&&!c,!c&&(l.anchorStart!==je||l.tagStart!==je||u)&&(Ji(e,je,je,l.anchorStart,l.anchorEnd,l.tagStart,l.tagEnd,1),c=!0),e.depth--,c||l.anchorStart!==je||l.tagStart!==je}function xU(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&&!Br(e.input.charCodeAt(e.position));)e.position++;let r=e.input.slice(t,e.position),n=[];for(r.length===0&&J(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!yt(e.input.charCodeAt(e.position));){for(;Fo(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||yt(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let o=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Br(e.input.charCodeAt(e.position));)e.position++;n.push(e.input.slice(o,e.position))}if(yt(e.input.charCodeAt(e.position))&&Sp(e),r==="YAML"){e.directives.some(i=>i.kind==="yaml")&&J(e,"duplication of %YAML directive"),n.length!==1&&J(e,"YAML directive accepts exactly one argument");let o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);o===null&&J(e,"ill-formed argument of the YAML directive"),parseInt(o[1],10)!==1&&J(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&J(e,"TAG directive accepts exactly two arguments");let[o,i]=n;Ax.test(o)||J(e,"ill-formed tag handle (first argument) of the TAG directive"),$x.call(e.tagHandlers,o)&&J(e,`there is a previously declared suffix for "${o}" tag handle`),oU.test(i)||J(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[o]=i,e.directives.push({kind:"tag",handle:o,prefix:i})}return!0}function SU(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(Bt(e,!0);xU(e);)t=!0,Bt(e,!0);let r=!1,n=!1,o=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&qn(e.input.charCodeAt(e.position+3))){r=!0;let a=e.line;e.position+=3,Bt(e,!0),o=e.line>a}else t&&J(e,"directives end mark is expected");let i=e.events.length;if(!r&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&oo(e)){e.position+=3,Bt(e,!0);return}if(iU(e,r,!1),Uo(e,e.lineIndent-1,xp,!1,o,o)||Vt(e),Bt(e,!0),e.position===e.lineStart&&oo(e)&&(n=e.input.charCodeAt(e.position)===46,n)){let a=e.line;e.position+=3,Bt(e,!0),e.line===a&&e.position<e.length&&J(e,"end of the stream or a document separator is expected")}let s=e.events[i];s?.type===1&&(s.explicitEnd=n),Ki(e),!n&&e.position<e.length&&!(e.position===e.lineStart&&oo(e))&&J(e,"end of the stream or a document separator is expected")}function wU(e,t){let r=e.length,n={...Qf,...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&&$p(e,o,"null byte is not allowed in input",n.filename),n.input.charCodeAt(n.position)===65279&&n.position++;n.position<n.length&&(Bt(n,!0),!(n.position>=n.length));){let i=n.position;SU(n),n.position===i&&J(n,"can not read a document")}return n.events}var _U={...Qf,...Yf};function PU(e,t={}){let r={..._U,...t},n=String(e),o=Object.keys(Qf),i=Object.keys(Yf);return Z2(wU(n,$f(r,o)),{...$f(r,i),source:n})}function kx(e,t,r){let n=null;typeof t=="function"?n=t:t!==null&&typeof t=="object"&&(r=t);let o=PU(e,r);if(n===null)return o;for(let i of o)n(i)}var hp=class{tagged=!1;flow=!1;singleQuoted=!1;doubleQuoted=!1;literal=!1;folded=!1},Lo=Symbol("INVALID");function $U(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 EU(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 ma(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 hp,anchor:l.anchor}}let r=EU(e,t);if(!r){if(t===void 0||e.skipInvalid)return Lo;throw new xa(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:n,tagName:o,implicitTag:i}=r,s=i?o:wx(o);if(n.nodeKind==="scalar"){let l=new hp;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 hp;u.tagged=!i;let f={kind:"sequence",tag:s,style:u,items:[]};e.noRefs||e.refs.set(t,f);for(let m=0,h=l.length;m<h;m+=1){let y=ma(e,l[m]);y===Lo&&l[m]===void 0&&(y=ma(e,null)),y!==Lo&&f.items.push(y)}return f}let a=n.represent(t),c=new hp;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 f=ma(e,l);if(f===Lo)continue;let m=ma(e,u);m!==Lo&&p.items.push({key:f,value:m})}return p}function AU(e,t,r={}){let n=ma({representTypes:$U(t),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:n===Lo?null:n,directives:[]}]}var TU=Symbol("visit:break"),Ix=Symbol("visit:skip");function vp(e,t,r){let n=t(e,r);if(n===TU)return!0;if(n===Ix)return!1;let o=r.depth+1;switch(e.kind){case"sequence":for(let i of e.items)if(vp(i,t,{depth:o,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:i,value:s}of e.items)if(vp(i,t,{depth:o,parent:e,isKey:!0})||vp(s,t,{depth:o,parent:e,isKey:!1}))return!0;break}return!1}function RU(e,t){for(let r of e)if(r.contents&&vp(r.contents,t,{depth:0,parent:null,isKey:!1}))return}var Jf=65279,OU=9,Vo=10,Cx=13,kU=32,IU=33,qx=34,Of=35,CU=37,qU=38,Nx=39,NU=42,kf=44,Xf=45,ga=58,jU=61,MU=62,jx=63,DU=64,If=91,Cf=93,LU=96,qf=123,UU=124,Nf=125,Ct={};Ct[0]="\\0";Ct[7]="\\a";Ct[8]="\\b";Ct[9]="\\t";Ct[10]="\\n";Ct[11]="\\v";Ct[12]="\\f";Ct[13]="\\r";Ct[27]="\\e";Ct[34]='\\"';Ct[92]="\\\\";Ct[133]="\\N";Ct[160]="\\_";Ct[8232]="\\L";Ct[8233]="\\P";var Zf={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 FU(e){return e.style.tagged?e.tag:wx(e.tag)}function zU(e){let t={...Zf,...e};return{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,implicitResolvers:t.schema.implicitScalarTags}}function VU(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 cx(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 jf(e,t){return`
|
|
75
|
-
${" ".repeat(e.indent*t)}`}function BU(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 px(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)!==Oe)return o.tagName}return e.defaultScalarTagName}function Qi(e){return e===kU||e===OU}function HU(e){let t=e.charCodeAt(0);if(t!==Xf&&t!==46||e.charCodeAt(1)!==t||e.charCodeAt(2)!==t)return!1;if(e.length===3)return!0;let r=e.charCodeAt(3);return Qi(r)||r===Cx||r===Vo}function va(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==Jf||e>=65536&&e<=1114111}function lx(e){return va(e)&&e!==Jf&&e!==Cx&&e!==Vo}function Mf(e,t,r){let n=lx(e),o=n&&!Qi(e);return(r?n:n&&e!==kf&&e!==If&&e!==Cf&&e!==qf&&e!==Nf)&&e!==Of&&!(t===ga&&!o)||lx(t)&&!Qi(t)&&e===Of||t===ga&&o&&(r||e!==kf&&e!==If&&e!==Cf&&e!==qf&&e!==Nf)}function KU(e){return va(e)&&e!==Jf&&!Qi(e)&&e!==Xf&&e!==jx&&e!==ga&&e!==kf&&e!==If&&e!==Cf&&e!==qf&&e!==Nf&&e!==Of&&e!==qU&&e!==NU&&e!==IU&&e!==UU&&e!==jU&&e!==MU&&e!==Nx&&e!==qx&&e!==CU&&e!==DU&&e!==LU}function GU(e,t){let r=Wi(e,0);if(KU(r))return!0;if(e.length>1&&(r===Xf||r===jx||r===ga)){let n=Wi(e,1);return!Qi(n)&&Mf(n,r,t)}return!1}function WU(e){return!Qi(e)&&e!==ga}function Wi(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 Mx(e){return/^\n* /.test(e)}var ba=1,ya=2,em=3,tm=4,no=5;function YU(e,t,r,n,o,i){let{blockIndent:s,lineWidth:a}=r,c,p=0,l=-1,u=!1,f=!1,m=a!==-1,h=-1,y=!HU(t)&&GU(t,i)&&WU(Wi(t,t.length-1));if(n||o)for(c=0;c<t.length;p>=65536?c+=2:c++){if(p=Wi(t,c),!va(p))return no;y=y&&Mf(p,l,i),l=p}else{for(c=0;c<t.length;p>=65536?c+=2:c++){if(p=Wi(t,c),p===Vo)u=!0,m&&(f=f||c-h-1>a&&t[h+1]!==" ",h=c);else if(!va(p))return no;y=y&&Mf(p,l,i),l=p}f=f||m&&c-h-1>a&&t[h+1]!==" "}return!u&&!f?y&&!o?ba:e.quoteStyle==="double"?no:ya:s>9&&Mx(t)?no:f?tm:em}function QU(e,t,r){let{indent:n,blockIndent:o,lineWidth:i}=r;switch(t){case ba:return dx(e,n);case ya:return`'${dx(e,n).replace(/'/g,"''")}'`;case em:return"|"+ux(e,o)+fx(cx(e,n));case tm:return">"+ux(e,o)+fx(cx(XU(e,i),n));case no:return`"${ZU(e)}"`}}function JU(e,t,r,n,o){let i=n||!o;if(t.style.singleQuoted)return ya;if(t.style.doubleQuoted)return no;if(!i){if(t.style.literal)return em;if(t.style.folded)return tm}let s=t.value;if(s.length===0)return t.style.tagged||px(e,s)===t.tag?ba:e.quoteStyle==="double"?no:ya;let a=YU(e,s,r,i,e.forceQuotes&&!n,o);return a===ba&&!t.style.tagged&&px(e,s)!==t.tag?e.quoteStyle==="double"?no:ya:a}function ux(e,t){let r=Mx(e)?String(t):"",n=e[e.length-1]===`
|
|
76
|
-
`;return`${r}${n&&(e[e.length-2]===`
|
|
77
|
-
`||e===`
|
|
78
|
-
`)?"+":n?"":"-"}
|
|
79
|
-
`}function dx(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 fx(e){return e[e.length-1]===`
|
|
82
|
-
`?e.slice(0,-1):e}function XU(e,t){let r=/(\n+)([^\n]*)/g,n=e.indexOf(`
|
|
83
|
-
`);n===-1&&(n=e.length),r.lastIndex=n;let o=mx(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
|
-
`:"")+mx(p,t),i=s}return o}function mx(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 ZU(e){let t="",r=0;for(let n=0;n<e.length;r>=65536?n+=2:n++){r=Wi(e,n);let o=Ct[r];if(o){t+=o;continue}if(va(r)){t+=e[n],r>=65536&&(t+=e[n+1]);continue}t+=VU(r)}return t}function eF(e,t,r){let n="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Nn(e,t,r.items[i],{});n!==""&&(n+=`,${e.flowSkipCommaSpace?"":" "}`),n+=a}let o=e.flowBracketPadding&&n!==""?" ":"";return`[${o}${n}${o}]`}function hx(e,t,r,n){let o="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Nn(e,t+1,r.items[i],{block:!0,compact:e.seqInlineFirst,isblockseq:!0});(!n||o!=="")&&(o+=jf(e,t)),a===""||Vo===a.charCodeAt(0)?o+="-":o+="- ",o+=a}return o}function tF(e,t,r){let n="",o=Dx(e,r.items);for(let{key:s,value:a}of o){let c="";n!==""&&(c+=`,${e.flowSkipCommaSpace?"":" "}`);let p=Nn(e,t,s,{iskey:!0}),l=p.length>1024;l?c+="? ":e.quoteFlowKeys&&(c+='"');let u=Nn(e,t,a,{}),f=e.flowSkipColonSpace||u===""?"":" ";c+=`${p}${e.quoteFlowKeys&&!l?'"':""}:${f}${u}`,n+=c}let i=e.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}function yp(e){return e.kind==="scalar"?e.value:e}function Dx(e,t){if(!e.sortKeys)return t;let r=t.slice();if(e.sortKeys===!0)r.sort((n,o)=>{let i=yp(n.key),s=yp(o.key);return i<s?-1:i>s?1:0});else{let n=e.sortKeys;r.sort((o,i)=>n(yp(o.key),yp(i.key)))}return r}function rF(e,t,r,n){let o="",i=Dx(e,r.items);for(let s=0,a=i.length;s<a;s+=1){let c="";(!n||o!=="")&&(c+=jf(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),f=u?Nn(e,t+1,p,{block:!0,compact:!0,isblockseq:!Df(e,p,t+1)}):Nn(e,t+1,p,{block:!0,compact:!0,iskey:!0}),m=p.kind==="scalar"&&p.value.indexOf(`
|
|
89
|
-
`)!==-1,h=u||m||f.length>1024;h&&(f&&Vo===f.charCodeAt(0)?c+="?":c+="? "),c+=f,h&&(c+=jf(e,t));let y=Nn(e,t+1,l,{block:!0,compact:h,isblockseq:h&&!Df(e,l,t+1)}),b=p.kind==="scalar"&&p.value===""&&f!==""&&f.charCodeAt(f.length-1)!==Nx&&f.charCodeAt(f.length-1)!==qx,x=!h&&(p.kind==="alias"||b)?" ":"";y===""||Vo===y.charCodeAt(0)?c+=`${x}:`:c+=`${x}: `,c+=y,o+=c}return o}function Df(e,t,r){return t.style.tagged||t.anchor!==void 0||e.indent<2&&r>0}function Nn(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;Df(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=rF(e,t,r,a):p=tF(e,t,r);else if(r.kind==="sequence")u?e.seqNoIndent&&!s&&t>0?p=hx(e,t-1,r,a):p=hx(e,t,r,a):p=eF(e,t,r);else{let f=BU(e,t),m=JU(e,r,f,i,o);p=QU(r.value,m,f),l=r.style.tagged||m!==ba&&r.tag!==e.defaultScalarTagName}if(u&&a&&t>0&&e.indent>2&&(p=`${" ".repeat(e.indent-2)}${p}`),l||c){let f=[],m=l?FU(r):null,h=c?`&${r.anchor}`:null;e.tagBeforeAnchor?(m!==null&&f.push(m),h!==null&&f.push(h)):(h!==null&&f.push(h),m!==null&&f.push(m));let y=p===""||p.charCodeAt(0)===Vo?"":" ";p=`${f.join(" ")}${y}${p}`}return p}function nF(e){return(e.kind==="sequence"||e.kind==="mapping")&&!e.style.flow&&e.items.length!==0&&!e.style.tagged&&e.anchor===void 0}function oF(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 iF(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 sF(e,t){let r=zU(t),n="",o=!1;for(let i=0;i<e.length;i+=1){let s=e[i],a=iF(s),c=a!=="",p=s.explicitStart||c||i>0&&!o;if(n+=a,s.contents===null)p&&(n+=`---
|
|
95
|
-
`);else if(p){let l=Nn(r,0,s.contents,{block:!0,compact:!0}),u=l===""?"":c||nF(s.contents)?`
|
|
96
|
-
`:" ";n+=`---${u}${l}
|
|
97
|
-
`}else n+=Nn(r,0,s.contents,{block:!0,compact:!0})+`
|
|
98
|
-
`;o=s.explicitEnd||s.contents!==null&&oF(s.contents),o&&(n+=`...
|
|
99
|
-
`)}return n}var aF=j2.withTags({..._f,resolve:(e,t,r)=>{let n=_f.resolve(e,t,r);return n===Oe?yx.resolve(e,t,r):n}},{...Pf,resolve:(e,t,r)=>{let n=Pf.resolve(e,t,r);return n===Oe?gx.resolve(e,t,r):n}}),cF={...Zf,schema:aF,skipInvalid:!1,noRefs:!1,flowLevel:-1,transform:()=>{}};function Lx(e,t={}){let r={...cF,...t},n=AU(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});return r.flowLevel>=0&&RU(n,(o,i)=>{if(!(i.depth<r.flowLevel))return o.style.flow=!0,Ix}),r.transform(n),sF(n,{...$f(r,Object.keys(Zf)),schema:r.schema})}var pF=Gf.withTags(Ff,zf,Vf,Bf,Hf),Bo=(e,t)=>{let r=kx(e,{schema:pF,...t});if(r.length===0)return e.trim()===""?void 0:null;if(r.length>1)throw new xa("expected a single document in the stream, but found more");return r[0]},Ep=(e,t)=>Lx(e,t);import*as Op from"node:fs";import*as kp from"node:path";var lF=/\((\d+):(\d+)\)$/,ln=class e extends Error{originalError;source;col;line;constructor(t,r){super(t.message.split(`
|
|
100
|
-
`)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,o]=this.message.match(lF)||[];this.line=parseInt(n,10),this.col=parseInt(o,10)}};var uF=[".graphql",".gql"];function Xi(e){let t=e.toLowerCase();return uF.some(r=>t.endsWith(r))}function Xe(e,t){return e.hasOwnProperty(t)?e[t]:void 0}function Sa(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}function jn(e,t){return e+"::"+t}function Ux(){return new Promise(e=>{setTimeout(e)})}var dS=an(uS(),1);var gt=typeof window<"u"||typeof process>"u"||process?.platform==="browser",Ea=gt?{}:process.env||{};async function dm(e,t){let r={};for(let o of t.headers)KF(e,o.matches)&&(r[o.name]=o.envVariable!==void 0?Ea[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 KF(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),dS.default.isMatch(e,t)}var un=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}},Rp=class e extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function Ho(e,t){let r=new un(t,e);if(Xi(t))return{source:r,parsed:e};try{return{source:r,parsed:Bo(e,{filename:t})}}catch(n){throw new ln(n,r)}}var or=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 ce(r)?r:t&&ce(t)?new URL(r,t).href:kp.resolve(t?kp.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(ce(t)){let{body:r,mimeType:n}=await dm(t,this.config.http);return new un(t,r,n)}else{if(Op.lstatSync(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);let r=await Op.promises.readFile(t,"utf-8");return new un(t,r.replace(/\r\n/g,`
|
|
101
|
-
`))}}catch(r){throw r.message=r.message.replace(", lstat",""),new Rp(r)}}parseDocument(t,r=!1){if(Xi(t.absoluteRef))return{source:t,parsed:t.body};let n=ce(t.absoluteRef)?new URL(t.absoluteRef).pathname:t.absoluteRef;if(!Sa(n)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:Bo(t.body,{filename:t.absoluteRef})}}catch(o){throw new ln(o,t)}}async resolveDocument(t,r,n=!1){let o=this.resolveExternalRef(t,r),i=this.cache.get(o);if(i)return i;let s=this.loadExternalRef(o).then(a=>this.parseDocument(a,n));return this.cache.set(o,s),s}};function fS(e,t){return{prev:e,node:t}}function GF(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var Tp={name:"unknown",properties:{}},WF={name:"scalar",properties:{}};async function gr(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,f){let m=l.source.absoluteRef,h=new Map;y(p,f,m+u);function y(x,w,S){if(!k(x)&&!Array.isArray(x))return;let E=`${w.name}::${S}`;if(i.has(E))return;if(i.add(E),Array.isArray(x)){let N=w.items;if(N===void 0&&w!==Tp&&w!==Fr)return;let I=typeof N=="function";for(let O=0;O<x.length;O++){let A=I?N(x[O],Vr(S,O)):N;if(A===void 0&&w!==Tp&&w!==Fr)continue;let ie=A?.directResolveAs?{$ref:x[O]}:x[O];A=A?.directResolveAs||A,y(ie,_r(A)?A:Tp,Vr(S,O))}return}let[P,T]=Object.entries(x).find(([N])=>N==="$anchor")||[];T&&h.set(`#${T}`,x);for(let N of Object.keys(x)){let I=x[N],O=Xe(w.properties,N),A=w.extensionsPrefix!==void 0&&N.startsWith(w.extensionsPrefix);O===void 0&&!A&&(O=w.additionalProperties),typeof O=="function"&&(O=O(I,N)),A&&O===void 0&&(O=Fr),O===void 0&&(O=Tp),!_r(O)&&O?.directResolveAs&&(O=O.directResolveAs,I={$ref:I}),O&&O.name===void 0&&O.resolvable!==!1&&(O=WF),!(!_r(O)||!(k(I)||Array.isArray(I)))&&y(I,O,Vr(S,cn(N)))}if(B(x)){let N=b(l,x,{prev:null,node:x}).then(I=>{if(I.resolved){c(I.node,I.document,I.nodePointer,w);for(let O of I.chain??[])c(O.node,O.document,O.location.pointer,w)}});s.push(N)}if(up(x)){let N=b(l,{$ref:x.externalValue},{prev:null,node:x}).then(I=>{I.resolved&&c(I.node,I.document,I.nodePointer,w)});s.push(N)}}async function b(x,w,S){if(GF(S.prev,w))throw new Error("Self-referencing circular pointer");if(B0(w.$ref)){await Ux();let X={resolved:!0,isRemote:!1,node:h.get(w.$ref),document:x,nodePointer:w.$ref},de=jn(x.source.absoluteRef,w.$ref);return o.set(de,X),X}let{uri:E,pointer:P}=ro(w.$ref),T=E!==null&&r.resolveExternalRef(x.source.absoluteRef,E)!==x.source.absoluteRef,N;try{N=T?await r.resolveDocument(x.source.absoluteRef,E):x}catch(X){let de={resolved:!1,isRemote:T,document:void 0,error:X},q=jn(x.source.absoluteRef,w.$ref);return o.set(q,de),de}let I={resolved:!0,document:N,isRemote:T,node:x.parsed,nodePointer:"#/"},O=N.parsed,A=P;for(let X of A)if(k(O)&&O[X]!==void 0)O=O[X],I.nodePointer=Vr(I.nodePointer,cn(X));else if(Array.isArray(O)&&O[+X]!==void 0)O=O[+X],I.nodePointer=Vr(I.nodePointer,cn(X));else if(B(O))if(I=await b(N,O,fS(S,O)),I.chain=void 0,N=I.document||N,k(I.node))O=I.node[X],I.nodePointer=Vr(I.nodePointer,cn(X));else if(Array.isArray(I.node))O=I.node[+X],I.nodePointer=Vr(I.nodePointer,cn(X));else{O=void 0;break}else{O=void 0;break}I.node=O,I.document=N;let ie=jn(x.source.absoluteRef,w.$ref);if(I.document&&B(O)){let X=Mi(O)?{node:O,document:I.document,location:new kt(I.document.source,I.nodePointer)}:void 0;I=await b(I.document,O,fS(S,O)),X&&I.resolved&&(I={...I,chain:[X,...I.chain??[]]})}return o.set(ie,I),{...I}}}}var gm={};oq(gm,{bgBlack:()=>gz,bgBlackBright:()=>Cz,bgBlue:()=>Sz,bgBlueBright:()=>Mz,bgCyan:()=>_z,bgCyanBright:()=>Lz,bgGreen:()=>bz,bgGreenBright:()=>Nz,bgMagenta:()=>wz,bgMagentaBright:()=>Dz,bgRed:()=>vz,bgRedBright:()=>qz,bgWhite:()=>Pz,bgWhiteBright:()=>Uz,bgYellow:()=>xz,bgYellowBright:()=>jz,black:()=>cz,blackBright:()=>$z,blue:()=>dz,blueBright:()=>Rz,bold:()=>tz,cyan:()=>mz,cyanBright:()=>kz,dim:()=>rz,gray:()=>yz,green:()=>lz,greenBright:()=>Az,hidden:()=>sz,inverse:()=>iz,italic:()=>nz,magenta:()=>fz,magentaBright:()=>Oz,options:()=>ym,red:()=>pz,redBright:()=>Ez,reset:()=>ez,strikethrough:()=>az,underline:()=>oz,white:()=>hz,whiteBright:()=>Iz,yellow:()=>uz,yellowBright:()=>Tz});import*as mm from"tty";var io=process.env,YF="NO_COLOR"in io,QF="FORCE_COLOR"in io,JF=process.platform==="win32",XF=mm&&mm.isatty(1)&&io.TERM&&io.TERM!=="dumb",ZF="CI"in io&&("GITHUB_ACTIONS"in io||"GITLAB_CI"in io||"CIRCLECI"in io),fm=!YF&&(QF||JF||XF||ZF),hm=(e,t,r,n)=>o=>fm?e+(~(o+="").indexOf(t,4)?o.replace(r,n):o)+t:o,me=(e,t)=>hm(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),ym=Object.defineProperty({},"enabled",{get:()=>fm,set:e=>fm=e}),ez=me(0,0),tz=hm("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),rz=hm("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),nz=me(3,23),oz=me(4,24),iz=me(7,27),sz=me(8,28),az=me(9,29),cz=me(30,39),pz=me(31,39),lz=me(32,39),uz=me(33,39),dz=me(34,39),fz=me(35,39),mz=me(36,39),hz=me(37,39),yz=me(90,39),gz=me(40,49),vz=me(41,49),bz=me(42,49),xz=me(43,49),Sz=me(44,49),wz=me(45,49),_z=me(46,49),Pz=me(47,49),$z=me(90,39),Ez=me(91,39),Az=me(92,39),Tz=me(93,39),Rz=me(94,39),Oz=me(95,39),kz=me(96,39),Iz=me(97,39),Cz=me(100,49),qz=me(101,49),Nz=me(102,49),jz=me(103,49),Mz=me(104,49),Dz=me(105,49),Lz=me(106,49),Uz=me(107,49);function mS(e){return e}var Aa=ym,ae=new Proxy(gm,{get(e,t){return gt?mS:e[t]}}),vm=class{info(t){return gt?console.info(t):process.stderr.write(t)}warn(t){return gt?console.warn(t):process.stderr.write(ae.yellow(t))}error(t){return gt?console.error(t):process.stderr.write(ae.red(t))}output(t){return gt?console.log(t):process.stdout.write(t)}printNewLine(){gt?console.log(`
|
|
102
|
-
`):process.stdout.write(`
|
|
103
|
-
`)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),o=gt?n:ae.gray(n);return gt?console.log(o):process.stdout.write(o)}indent(t,r){let n=gt?" ":"\xA0";return t.split(`
|
|
104
|
-
`).map(o=>n.repeat(r)+o).join(`
|
|
105
|
-
`)}},pe=new vm;var Ip=/^1\.[012]\.\d+(-.+)?$/;function Ta(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 Mn(e){if(!k(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"&&Ip.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var Fz={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function qt(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 m of Object.values(a.properties)){if(m===c){f(s,l);continue}k(m)&&m.name!==void 0&&u.add(m)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?f(s,l):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?f(s,l):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(Fr);for(let m of Array.from(u.values()))n(s,m,c,p,l);function f(m,h){for(let y of h.slice(1))r[y.name]=r[y.name]||{enter:[],leave:[]},r[y.name].enter.push({...m,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 f=a[u]||o(a,Fz[u]),m=r[u];if(!f)continue;let h,y,b,x=k(f);if(u==="ref"&&x&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?h=f:x&&(h=f.enter,y=f.leave,b=f.skip);let w=(h?1:0)+(y?1:0)+(b?1:0),S=x&&Object.keys(f).length>w,E={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(S&&i(s,f,E,p+1),c&&n(s,c.type,t[u],c),h||x){if(h&&typeof h!="function")throw new Error("DEV: should be function");m.enter.push({...s,visit:h||(()=>{}),skip:b,depth:p,context:E})}if(y){if(typeof y!="function")throw new Error("DEV: should be function");m.leave.push({...s,visit:y,depth:p,context:E})}}}}var Ee=(e,t)=>{if(t)for(let r of Object.keys(t))k(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Me(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&(k(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function hS(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function tt(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Cp(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(k(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
106
|
-
${JSON.stringify(r,null,2)}`);Ee(t.rules,r.rules),Ee(t.oas2Rules,r.oas2Rules),Me(t.oas2Rules,r.rules),Ee(t.oas3_0Rules,r.oas3_0Rules),Me(t.oas3_0Rules,r.rules),Ee(t.oas3_1Rules,r.oas3_1Rules),Me(t.oas3_1Rules,r.rules),Ee(t.oas3_2Rules,r.oas3_2Rules),Me(t.oas3_2Rules,r.rules),Ee(t.async2Rules,r.async2Rules),Me(t.async2Rules,r.rules),Ee(t.async3Rules,r.async3Rules),Me(t.async3Rules,r.rules),Ee(t.arazzo1Rules,r.arazzo1Rules),Me(t.arazzo1Rules,r.rules),Ee(t.arazzo1_1Rules,r.arazzo1_1Rules),Me(t.arazzo1_1Rules,r.rules),Ee(t.overlay1Rules,r.overlay1Rules),Me(t.overlay1Rules,r.rules),Ee(t.openrpc1Rules,r.openrpc1Rules),Me(t.openrpc1Rules,r.rules),Ee(t.graphqlRules,r.graphqlRules),Me(t.graphqlRules,r.rules),Ee(t.preprocessors,r.preprocessors),Ee(t.oas2Preprocessors,r.oas2Preprocessors),Me(t.oas2Preprocessors,r.preprocessors),Ee(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Me(t.oas3_0Preprocessors,r.preprocessors),Ee(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Me(t.oas3_1Preprocessors,r.preprocessors),Ee(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Me(t.oas3_2Preprocessors,r.preprocessors),Ee(t.async2Preprocessors,r.async2Preprocessors),Me(t.async2Preprocessors,r.preprocessors),Ee(t.async3Preprocessors,r.async3Preprocessors),Me(t.async3Preprocessors,r.preprocessors),Ee(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Me(t.arazzo1Preprocessors,r.preprocessors),Ee(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Me(t.arazzo1_1Preprocessors,r.preprocessors),Ee(t.overlay1Preprocessors,r.overlay1Preprocessors),Me(t.overlay1Preprocessors,r.preprocessors),Ee(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Me(t.openrpc1Preprocessors,r.preprocessors),Ee(t.decorators,r.decorators),Ee(t.oas2Decorators,r.oas2Decorators),Me(t.oas2Decorators,r.decorators),Ee(t.oas3_0Decorators,r.oas3_0Decorators),Me(t.oas3_0Decorators,r.decorators),Ee(t.oas3_1Decorators,r.oas3_1Decorators),Me(t.oas3_1Decorators,r.decorators),Ee(t.oas3_2Decorators,r.oas3_2Decorators),Me(t.oas3_2Decorators,r.decorators),Ee(t.async2Decorators,r.async2Decorators),Me(t.async2Decorators,r.decorators),Ee(t.async3Decorators,r.async3Decorators),Me(t.async3Decorators,r.decorators),Ee(t.arazzo1Decorators,r.arazzo1Decorators),Me(t.arazzo1Decorators,r.decorators),Ee(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Me(t.arazzo1_1Decorators,r.decorators),Ee(t.overlay1Decorators,r.overlay1Decorators),Me(t.overlay1Decorators,r.decorators),Ee(t.openrpc1Decorators,r.openrpc1Decorators),Me(t.openrpc1Decorators,r.decorators)}return t}var bm=class extends Error{};function yS(e){return new Map(JSON.parse(JSON.stringify([...e])))}function xm(e){return k(e)&&"id"in e}function gS(e){return typeof e=="function"}function Sm(e,t){return{prev:e,value:t}}function wm(e){return e?.prev??null}function zz(e){let t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function Vz(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 Nt(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:o,ctx:i}=e,s={},a=new Set,c=(b,x)=>`${b.name}::${x.absolutePointer}`,p=new Set,l={},u=n.any.enter,f=n.any.leave,m={},h={};for(let b of Object.keys(n))b==="any"||b==="ref"||(m[b]=u.concat(n[b]?.enter||[]),h[b]=(n[b]?.leave||[]).concat(f));y(t.parsed,r,new kt(t.source,"#/"),void 0,"");function y(b,x,w,S,E){let P=(oe,Qe=N.source.absoluteRef)=>{if(!B(oe))return{location:w,node:oe};let Le=jn(Qe,oe.$ref),we=o.get(Le);if(!we)return{location:void 0,node:void 0};let{resolved:zt,node:nt,document:rt,nodePointer:ee,error:Zt,chain:K}=we;return{location:zt?new kt(rt.source,ee):Zt instanceof ln?new kt(Zt.source,""):void 0,node:nt,error:Zt,chain:K}},T=w,N=w,I=B(b),{node:O,location:A,error:ie,chain:X}=P(b),de=new Set,q=Mi(b)&&a.has(c(x,w));if(Mi(b)&&a.add(c(x,w)),I&&!q){let oe=n.ref.enter;for(let{visit:Qe,ruleId:Le,severity:we,message:zt,context:nt}of oe)de.add(nt),Qe(b,{report:ee=>ut(Le,we,zt,ee),resolve:P,rawNode:b,rawLocation:T,location:w,type:x,parent:S,key:E,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Pe(Le)},{node:O,location:A,error:ie,chain:X}),A?.source.absoluteRef&&i.refTypes&&i.refTypes.set(A?.source.absoluteRef,x)}if(O!==void 0&&A&&x.name!=="scalar"){let oe=(K,M,se,D)=>{let H=Xe(x.properties,K),_e=x.extensionsPrefix!==void 0&&K.startsWith(x.extensionsPrefix);H===void 0&&!_e&&(H=x.additionalProperties),typeof H=="function"&&(H=H(M,K)),_e&&!_r(H)&&(H=Fr),!_r(H)&&H?.directResolveAs&&(H=H.directResolveAs,M={$ref:M}),H&&H.name===void 0&&H.resolvable!==!1&&(H={name:"scalar",properties:{}}),!(!_r(H)||H.name==="scalar"&&!B(M))&&y(M,H,se.child([K]),D,K)};N=A;let Qe=k(O)||Array.isArray(O)?O:w.absolutePointer,Le=s[x.name]?.has?.(Qe),we=!1,zt=m[x.name]||u.concat(n[x.name]?.enter||[]),nt=[],rt=`${N.absolutePointer}${N.pointer}`;for(let{context:K,visit:M,skip:se,ruleId:D,severity:H,message:_e}of zt){if(p.has(rt))break;if(K.isSkippedLevel)K.parent.activatedOn&&!K.parent.activatedOn.value.nextLevelTypeActivated&&!K.seen.has(b)&&(K.seen.add(b),we=!0,nt.push(K));else if(K.parent&&K.parent.activatedOn&&K.parent.activatedOn.value.node===l[K.parent.type.name]&&K.activatedOn?.value.withParentNode!==K.parent.activatedOn.value.node&&K.parent.activatedOn.value.nextLevelTypeActivated?.value!==x||!K.parent&&!Le){nt.push(K);let Je={node:O,location:A,nextLevelTypeActivated:null,withParentNode:K.parent?.activatedOn?.value.node,skipped:(K.parent?.activatedOn?.value.skipped||se?.(O,E,{location:w,rawLocation:T,resolve:P,rawNode:b}))??!1};K.activatedOn=Sm(K.activatedOn,Je);let Re=K.parent;for(;Re;)Re.activatedOn.value.nextLevelTypeActivated=Sm(Re.activatedOn.value.nextLevelTypeActivated,x),Re=Re.parent;Je.skipped||(we=!0,de.add(K),j(M,O,b,K,D,H,_e))}}let ee=l[x.name];if(l[x.name]=O,we||!Le){if(s[x.name]=s[x.name]||new Set,s[x.name].add(Qe),Array.isArray(O)){let K=x.items;if(K!==void 0){let M=typeof K=="function";for(let se=0;se<O.length;se++){let D=A.child([se]),H=M?K(O[se],D.absolutePointer):K,_e=O[se];H?.directResolveAs&&(H=H.directResolveAs,_e={$ref:_e}),_r(H)&&y(_e,H,D,O,se)}}}else if(k(O)){let K=Object.keys(x.properties);x.additionalProperties?K.push(...Object.keys(O).filter(M=>!K.includes(M))):x.extensionsPrefix&&K.push(...Object.keys(O).filter(M=>M.startsWith(x.extensionsPrefix)&&!K.includes(M)));for(let M of K){let se=O[M];se!==void 0&&oe(M,se,A,O)}}}if(I&&X?.length){let K=X[0];a.has(c(x,K.location))||y(K.node,x,K.location,void 0,E)}if(Mi(b)&&!q)for(let K of Object.keys(b))K!=="$ref"&&b[K]!==O?.[K]&&oe(K,b[K],w,b);l[x.name]=ee;let Zt=h[x.name]||(n[x.name]?.leave||[]).concat(f);for(let K of nt.reverse())if(K.isSkippedLevel)K.seen.delete(O);else if(K.activatedOn=wm(K.activatedOn),K.parent){let M=K.parent;for(;M;)M.activatedOn.value.nextLevelTypeActivated=wm(M.activatedOn.value.nextLevelTypeActivated),M=M.parent}for(let{context:K,visit:M,ruleId:se,severity:D,message:H}of Zt)!K.isSkippedLevel&&de.has(K)&&j(M,O,b,K,se,D,H)}if(N=w,I&&!q){let oe=n.ref.leave;for(let{visit:Qe,ruleId:Le,severity:we,context:zt,message:nt}of oe)de.has(zt)&&Qe(b,{report:ee=>ut(Le,we,nt,ee),resolve:P,rawNode:b,rawLocation:T,location:w,type:x,parent:S,key:E,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Pe(Le)},{node:O,location:A,error:ie,chain:X})}function j(oe,Qe,Le,we,zt,nt,rt){oe(Qe,{report:Zt=>ut(zt,nt,rt,Zt),resolve:P,rawNode:Le,location:N,rawLocation:T,type:x,parent:S,key:E,parentLocations:Vz(we),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{p.add(`${N.absolutePointer}${N.pointer}`)},getVisitorData:()=>Pe(zt)},zz(we),we)}function ut(oe,Qe,Le,we){let nt=(we.location?Array.isArray(we.location)?we.location:[we.location]:[{...N,reportOnKey:!1}]).map(ee=>({...N,reportOnKey:!1,...ee})),rt=we.forceSeverity||Qe;rt!=="off"&&i.problems.push({ruleId:we.ruleId||oe,severity:rt,...we,message:Le?Le.replace("{{message}}",we.message):we.message,suggest:we.suggest||[],location:nt})}function Pe(oe){return i.visitorsData[oe]=i.visitorsData[oe]||{},i.visitorsData[oe]}}}var es=class extends Error{},_m=class extends Error{};function Bz(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function Ko(e,t,r,n){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,Ko.prototype),o.expected=t,o.found=r,o.location=n,o.name="SyntaxError",o}Bz(Ko,Error);function Pm(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,r+=r.repeat(t),e+r.slice(0,t))}Ko.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r=null,n;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){r=e[n].text.split(/\r\n|\n|\r/g);break}var o=this.location.start,i=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(o):o,s=this.location.source+":"+i.line+":"+i.column;if(r){var a=this.location.end,c=Pm("",i.line.toString().length," "),p=r[o.line-1],l=o.line===a.line?a.column:p.length+1,u=l-o.column||1;t+=`
|
|
107
|
-
--> `+s+`
|
|
108
|
-
`+c+` |
|
|
109
|
-
`+i.line+" | "+p+`
|
|
110
|
-
`+c+" | "+Pm("",o.column-1," ")+Pm("",u,"^")}else t+=`
|
|
111
|
-
at `+s}return t};Ko.buildMessage=function(e,t){var r={literal:function(p){return'"'+o(p.text)+'"'},class:function(p){var l=p.parts.map(function(u){return Array.isArray(u)?i(u[0])+"-"+i(u[1]):i(u)});return"["+(p.inverted?"^":"")+l.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(p){return p.description}};function n(p){return p.charCodeAt(0).toString(16).toUpperCase()}function o(p){return p.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(l){return"\\x0"+n(l)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(l){return"\\x"+n(l)})}function i(p){return p.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(l){return"\\x0"+n(l)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(l){return"\\x"+n(l)})}function s(p){return r[p.type](p)}function a(p){var l=p.map(s),u,f;if(l.sort(),l.length>0){for(u=1,f=1;u<l.length;u++)l[u-1]!==l[u]&&(l[f]=l[u],f++);l.length=f}switch(l.length){case 1:return l[0];case 2:return l[0]+" or "+l[1];default:return l.slice(0,-1).join(", ")+", or "+l[l.length-1]}}function c(p){return p?'"'+o(p)+'"':"end of input"}return"Expected "+a(e)+" but "+c(t)+" found."};function vS(e,t){t=t!==void 0?t:{};var r={},n=t.grammarSource,o={jsonpath_query:Ld},i=Ld,s="$",a=".",c="..",p="[",l=",",u="]",f="*",m=":",h="?",y='"',b="'",x="0",w="-",S="||",E="\\",P="u",T="&&",N="d",I="(",O=")",A="!",ie="==",X="!=",de="<=",q=">=",j="-0",ut="true",Pe="false",oe="null",Qe="@",Le="e",we=/^[\t-\n\r ]/,zt=/^[A-Z_a-z\x80-\uD7FF\uE000-\uFFFF]/,nt=/^[\uD800-\uDBFF]/,rt=/^[\uDC00-\uDFFF]/,ee=/^[A-Za-z]/,Zt=/^[0-9]/,K=/^[1-9]/,M=/^[ -!#-&(-[\]-\uD7FF\uE000-\uFFFF]/,se=/^[\/\\bfnrt]/,D=/^[A-CE-F]/i,H=/^[0-7]/,_e=/^[8-9]/,Je=/^[A-B]/i,Re=/^[C-F]/i,xr=/^[A-F]/i,Sr=/^[<>]/,tI=/^[0-9_a-z]/,rI=/^[+\-]/,nI=/^[a-z]/,oI=De("$",!1),iI=dt([[" ",`
|
|
112
|
-
`],"\r"," "],!1,!1),Nd=De(".",!1),sI=De("..",!1),jd=De("[",!1),sp=De(",",!1),Md=De("]",!1),aI=De("*",!1),cI=dt([["A","Z"],"_",["a","z"],["\x80","\uD7FF"],["\uE000","\uFFFF"]],!1,!1),t0=dt([["\uD800","\uDBFF"]],!1,!1),r0=dt([["\uDC00","\uDFFF"]],!1,!1),n0=De(":",!1),pI=De("?",!1),lI=dt([["A","Z"],["a","z"]],!1,!1),uI=dt([["0","9"]],!1,!1),ap=De('"',!1),cp=De("'",!1),dI=De("0",!1),fI=De("-",!1),mI=dt([["1","9"]],!1,!1),o0=De("||",!1),hI=dt([[" ","!"],["#","&"],["(","["],["]","\uD7FF"],["\uE000","\uFFFF"]],!1,!1),i0=De("\\",!1),yI=dt(["/","\\","b","f","n","r","t"],!1,!1),s0=De("u",!1),a0=De("&&",!1),gI=dt([["A","C"],["E","F"]],!1,!0),Dd=De("D",!0),vI=dt([["0","7"]],!1,!1),bI=dt([["8","9"]],!1,!1),xI=dt([["A","B"]],!1,!0),SI=dt([["C","F"]],!1,!0),c0=De("(",!1),p0=De(")",!1),wI=dt([["A","F"]],!1,!0),_I=De("!",!1),PI=De("==",!1),$I=De("!=",!1),EI=De("<=",!1),AI=De(">=",!1),TI=dt(["<",">"],!1,!1),RI=De("-0",!1),OI=De("true",!1),kI=De("false",!1),II=De("null",!1),CI=De("@",!1),qI=dt([["0","9"],"_",["a","z"]],!1,!1),NI=De("e",!0),jI=dt(["+","-"],!1,!1),MI=dt([["a","z"]],!1,!1),DI=function(d){return{type:"JsonPathQuery",segments:d}},l0=function(d){return d},LI=function(d){return d},UI=function(d){return{type:"ChildSegment",node:d}},FI=function(d){return{type:"DescendantSegment",node:d}},u0=function(d,g){return g},zI=function(d,g){return[d,...g]},VI=function(d){return{type:"BracketedSelection",selectors:d}},BI=function(){return{type:"WildcardSelector"}},HI=function(d){return{type:"MemberNameShorthand",value:d}},KI=function(d){return{type:"NameSelector",value:d}},GI=function(d,g,_){return _},WI=function(d,g,_){return{start:d,end:g,step:_}},YI=function(d){return{type:"SliceSelector",start:d.start===""?null:Number.parseInt(d.start.trim(),10),end:d.end===""?null:Number.parseInt(d.end.trim(),10),step:d.step===""||d.step===null?null:Number.parseInt(d.step.trim(),10)}},QI=function(d){return{type:"IndexSelector",value:Number.parseInt(d,10)}},JI=function(d){return{type:"FilterSelector",value:d}},XI=function(d){return d},ZI=function(d){return d},eC=function(d){return d.join("")},tC=function(){return'"'},rC=function(d){switch(d){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
113
|
-
`;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return d.slice(1)}},nC=function(){return"'"},oC=function(d){switch(d){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
114
|
-
`;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return d.slice(1)}},d0=function(d,g){return g},iC=function(d,g){return g.length===0?d:{type:"LogicalOrExpr",left:d,right:g.length===1?g[0]:g.slice(1).reduce((_,R)=>({type:"LogicalOrExpr",left:_,right:R}),g[0])}},f0=function(d,g){return g},sC=function(d,g){return[d,...g]},aC=function(d){return d.length===1?d[0]:{type:"LogicalAndExpr",left:d[0],right:d.length===2?d[1]:d.slice(2).reduce((g,_)=>({type:"LogicalOrExpr",left:g,right:_}),d[1])}},cC=function(){return String.fromCharCode(Number.parseInt(RC(),16))},pC=function(d,g){return String.fromCharCode(Number.parseInt(d,16))+String.fromCharCode(Number.parseInt(g,16))},lC=function(d){return d},uC=function(d,g){return d!==null?{type:"LogicalNotExpr",expression:g}:g},dC=function(d,g,_){return{type:"ComparisonExpr",left:d,op:g,right:_}},fC=function(d,g){return d!==null?{type:"LogicalNotExpr",expression:{type:"TestExpr",expression:g}}:{type:"TestExpr",expression:g}},mC=function(d){return{type:"FilterQuery",value:d}},m0=function(d,g,_){return _},hC=function(d,g,_){return[g,..._]},yC=function(d,g){return{type:"FunctionExpr",name:d,arguments:g}},gC=function(d){return{type:"Literal",value:d}},vC=function(d){return{type:"RelQuery",segments:d}},bC=function(d){return Number(d)},xC=function(){return!0},SC=function(){return!1},wC=function(){return null},_C=function(d){return{type:"RelSingularQuery",segments:d}},PC=function(d){return{type:"AbsSingularQuery",segments:d}},h0=function(d){return{type:"SingularQuerySegment",node:d}},$C=function(d){return d},EC=function(d){return d},AC=function(d){return d},TC=function(d){return{type:"IndexSelector",selector:d}},v=t.peg$currPos|0,G=v,qi=[{line:1,column:1}],Lr=v,pp=t.peg$maxFailExpected||[],U=t.peg$silentFails|0,ca;if(t.startRule){if(!(t.startRule in o))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');i=o[t.startRule]}function RC(){return e.substring(G,v)}function Ore(){return G}function kre(){return{source:n,start:G,end:v}}function Ire(){return pa(G,v)}function Cre(d,g){throw g=g!==void 0?g:pa(G,v),g0([kC(d)],e.substring(G,v),g)}function qre(d,g){throw g=g!==void 0?g:pa(G,v),IC(d,g)}function De(d,g){return{type:"literal",text:d,ignoreCase:g}}function dt(d,g,_){return{type:"class",parts:d,inverted:g,ignoreCase:_}}function Nre(){return{type:"any"}}function OC(){return{type:"end"}}function kC(d){return{type:"other",description:d}}function y0(d){var g=qi[d],_;if(g)return g;if(d>=qi.length)_=qi.length-1;else for(_=d;!qi[--_];);for(g=qi[_],g={line:g.line,column:g.column};_<d;)e.charCodeAt(_)===10?(g.line++,g.column=1):g.column++,_++;return qi[d]=g,g}function pa(d,g,_){var R=y0(d),C=y0(g),F={source:n,start:{offset:d,line:R.line,column:R.column},end:{offset:g,line:C.line,column:C.column}};return _&&n&&typeof n.offset=="function"&&(F.start=n.offset(F.start),F.end=n.offset(F.end)),F}function L(d){v<Lr||(v>Lr&&(Lr=v,pp=[]),pp.push(d))}function IC(d,g){return new Ko(d,null,null,g)}function g0(d,g,_){return new Ko(Ko.buildMessage(d,g),d,g,_)}function Ld(){var d,g,_;return d=v,g=v0(),g!==r?(_=b0(),G=d,d=DI(_)):(v=d,d=r),d}function v0(){var d;return e.charCodeAt(v)===36?(d=s,v++):(d=r,U===0&&L(oI)),d}function b0(){var d,g,_,R;for(d=[],g=v,_=$e(),R=x0(),R!==r?(G=g,g=l0(R)):(v=g,g=r);g!==r;)d.push(g),g=v,_=$e(),R=x0(),R!==r?(G=g,g=l0(R)):(v=g,g=r);return d}function $e(){var d,g;for(d=[],g=S0();g!==r;)d.push(g),g=S0();return d}function x0(){var d;return d=CC(),d===r&&(d=qC()),d}function S0(){var d;return d=e.charAt(v),we.test(d)?v++:(d=r,U===0&&L(iI)),d}function CC(){var d,g,_,R;return d=v,g=w0(),g===r&&(g=v,e.charCodeAt(v)===46?(_=a,v++):(_=r,U===0&&L(Nd)),_!==r?(R=Ud(),R===r&&(R=Fd()),R!==r?(G=g,g=LI(R)):(v=g,g=r)):(v=g,g=r)),g!==r&&(G=d,g=UI(g)),d=g,d}function qC(){var d,g,_;return d=v,e.substr(v,2)===c?(g=c,v+=2):(g=r,U===0&&L(sI)),g!==r?(_=w0(),_===r&&(_=Ud(),_===r&&(_=Fd())),_!==r?(G=d,d=FI(_)):(v=d,d=r)):(v=d,d=r),d}function w0(){var d,g,_,R,C,F,Q,ge,et,wr,er;if(d=v,e.charCodeAt(v)===91?(g=p,v++):(g=r,U===0&&L(jd)),g!==r){if(_=v,R=$e(),C=zd(),C!==r){for(F=[],Q=v,ge=$e(),e.charCodeAt(v)===44?(et=l,v++):(et=r,U===0&&L(sp)),et!==r?(wr=$e(),er=zd(),er!==r?(G=Q,Q=u0(C,er)):(v=Q,Q=r)):(v=Q,Q=r);Q!==r;)F.push(Q),Q=v,ge=$e(),e.charCodeAt(v)===44?(et=l,v++):(et=r,U===0&&L(sp)),et!==r?(wr=$e(),er=zd(),er!==r?(G=Q,Q=u0(C,er)):(v=Q,Q=r)):(v=Q,Q=r);G=_,_=zI(C,F)}else v=_,_=r;_!==r?(R=$e(),e.charCodeAt(v)===93?(C=u,v++):(C=r,U===0&&L(Md)),C!==r?(G=d,d=VI(_)):(v=d,d=r)):(v=d,d=r)}else v=d,d=r;return d}function Ud(){var d,g;return d=v,e.charCodeAt(v)===42?(g=f,v++):(g=r,U===0&&L(aI)),g!==r&&(G=d,g=BI()),d=g,d}function Fd(){var d,g,_,R,C,F;if(d=v,g=v,_=v,R=_0(),R!==r){for(C=[],F=P0();F!==r;)C.push(F),F=P0();R=[R,C],_=R}else v=_,_=r;return _!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=HI(g)),d=g,d}function zd(){var d;return d=$0(),d===r&&(d=Ud(),d===r&&(d=NC(),d===r&&(d=E0(),d===r&&(d=jC())))),d}function _0(){var d,g,_;return d=e.charAt(v),zt.test(d)?v++:(d=r,U===0&&L(cI)),d===r&&(d=v,g=e.charAt(v),nt.test(g)?v++:(g=r,U===0&&L(t0)),g!==r?(_=e.charAt(v),rt.test(_)?v++:(_=r,U===0&&L(r0)),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function P0(){var d;return d=_0(),d===r&&(d=Cn()),d}function $0(){var d,g;return d=v,g=A0(),g!==r&&(G=d,g=KI(g)),d=g,d}function NC(){var d,g,_,R,C,F,Q,ge,et,wr,er,Ur;return d=v,g=v,_=v,R=v,C=la(),C!==r?(F=$e(),C=[C,F],R=C):(v=R,R=r),R===r&&(R=null),_=e.substring(_,v),e.charCodeAt(v)===58?(R=m,v++):(R=r,U===0&&L(n0)),R!==r?(C=$e(),F=v,Q=v,ge=la(),ge!==r?(et=$e(),ge=[ge,et],Q=ge):(v=Q,Q=r),Q===r&&(Q=null),F=e.substring(F,v),Q=v,e.charCodeAt(v)===58?(ge=m,v++):(ge=r,U===0&&L(n0)),ge!==r?(et=v,wr=v,er=$e(),Ur=la(),Ur===r&&(Ur=null),er=[er,Ur],wr=er,et=e.substring(et,v),G=Q,Q=GI(_,F,et)):(v=Q,Q=r),Q===r&&(Q=null),G=g,g=WI(_,F,Q)):(v=g,g=r),g!==r&&(G=d,g=YI(g)),d=g,d}function E0(){var d,g,_;return d=v,g=v,_=la(),_!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=QI(g)),d=g,d}function jC(){var d,g,_,R;return d=v,e.charCodeAt(v)===63?(g=h,v++):(g=r,U===0&&L(pI)),g!==r?(_=$e(),R=Vd(),R!==r?(G=d,d=JI(R)):(v=d,d=r)):(v=d,d=r),d}function jre(){var d;return d=e.charAt(v),ee.test(d)?v++:(d=r,U===0&&L(lI)),d}function Cn(){var d;return d=e.charAt(v),Zt.test(d)?v++:(d=r,U===0&&L(uI)),d}function A0(){var d,g,_,R,C;if(d=v,g=v,e.charCodeAt(v)===34?(_=y,v++):(_=r,U===0&&L(ap)),_!==r){for(R=[],C=T0();C!==r;)R.push(C),C=T0();e.charCodeAt(v)===34?(C=y,v++):(C=r,U===0&&L(ap)),C!==r?(G=g,g=XI(R)):(v=g,g=r)}else v=g,g=r;if(g===r)if(g=v,e.charCodeAt(v)===39?(_=b,v++):(_=r,U===0&&L(cp)),_!==r){for(R=[],C=R0();C!==r;)R.push(C),C=R0();e.charCodeAt(v)===39?(C=b,v++):(C=r,U===0&&L(cp)),C!==r?(G=g,g=ZI(R)):(v=g,g=r)}else v=g,g=r;return g!==r&&(G=d,g=eC(g)),d=g,d}function la(){var d,g,_,R,C;if(e.charCodeAt(v)===48?(d=x,v++):(d=r,U===0&&L(dI)),d===r)if(d=v,e.charCodeAt(v)===45?(g=w,v++):(g=r,U===0&&L(fI)),g===r&&(g=null),_=MC(),_!==r){for(R=[],C=Cn();C!==r;)R.push(C),C=Cn();g=[g,_,R],d=g}else v=d,d=r;return d}function T0(){var d,g,_;return d=v,g=O0(),g!==r?d=e.substring(d,v):d=g,d===r&&(e.charCodeAt(v)===39?(d=b,v++):(d=r,U===0&&L(cp)),d===r&&(d=v,g=lp(),g!==r?(e.charCodeAt(v)===34?(_=y,v++):(_=r,U===0&&L(ap)),_!==r?(G=d,d=tC()):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,g=lp(),g!==r?(_=k0(),_!==r?(G=d,d=rC(_)):(v=d,d=r)):(v=d,d=r)))),d}function R0(){var d,g,_;return d=v,g=O0(),g!==r?d=e.substring(d,v):d=g,d===r&&(e.charCodeAt(v)===34?(d=y,v++):(d=r,U===0&&L(ap)),d===r&&(d=v,g=lp(),g!==r?(e.charCodeAt(v)===39?(_=b,v++):(_=r,U===0&&L(cp)),_!==r?(G=d,d=nC()):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,g=lp(),g!==r?(_=k0(),_!==r?(G=d,d=oC(_)):(v=d,d=r)):(v=d,d=r)))),d}function MC(){var d;return d=e.charAt(v),K.test(d)?v++:(d=r,U===0&&L(mI)),d}function Vd(){var d,g,_,R,C,F,Q,ge;if(d=v,g=Bd(),g!==r){for(_=[],R=v,C=$e(),e.substr(v,2)===S?(F=S,v+=2):(F=r,U===0&&L(o0)),F!==r?(Q=$e(),ge=Bd(),ge!==r?(G=R,R=d0(g,ge)):(v=R,R=r)):(v=R,R=r);R!==r;)_.push(R),R=v,C=$e(),e.substr(v,2)===S?(F=S,v+=2):(F=r,U===0&&L(o0)),F!==r?(Q=$e(),ge=Bd(),ge!==r?(G=R,R=d0(g,ge)):(v=R,R=r)):(v=R,R=r);G=d,d=iC(g,_)}else v=d,d=r;return d}function O0(){var d,g,_;return d=e.charAt(v),M.test(d)?v++:(d=r,U===0&&L(hI)),d===r&&(d=v,g=e.charAt(v),nt.test(g)?v++:(g=r,U===0&&L(t0)),g!==r?(_=e.charAt(v),rt.test(_)?v++:(_=r,U===0&&L(r0)),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function lp(){var d;return e.charCodeAt(v)===92?(d=E,v++):(d=r,U===0&&L(i0)),d}function k0(){var d,g,_;return d=e.charAt(v),se.test(d)?v++:(d=r,U===0&&L(yI)),d===r&&(d=v,e.charCodeAt(v)===117?(g=P,v++):(g=r,U===0&&L(s0)),g!==r?(_=DC(),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function Bd(){var d,g,_,R,C,F,Q,ge,et;if(d=v,g=v,_=Hd(),_!==r){for(R=[],C=v,F=$e(),e.substr(v,2)===T?(Q=T,v+=2):(Q=r,U===0&&L(a0)),Q!==r?(ge=$e(),et=Hd(),et!==r?(G=C,C=f0(_,et)):(v=C,C=r)):(v=C,C=r);C!==r;)R.push(C),C=v,F=$e(),e.substr(v,2)===T?(Q=T,v+=2):(Q=r,U===0&&L(a0)),Q!==r?(ge=$e(),et=Hd(),et!==r?(G=C,C=f0(_,et)):(v=C,C=r)):(v=C,C=r);G=g,g=sC(_,R)}else v=g,g=r;return g!==r&&(G=d,g=aC(g)),d=g,d}function DC(){var d,g,_,R,C,F,Q;return d=v,g=v,_=LC(),_!==r&&(G=g,_=cC()),g=_,g===r&&(g=v,_=v,R=UC(),R!==r?_=e.substring(_,v):_=R,_!==r?(e.charCodeAt(v)===92?(R=E,v++):(R=r,U===0&&L(i0)),R!==r?(e.charCodeAt(v)===117?(C=P,v++):(C=r,U===0&&L(s0)),C!==r?(F=v,Q=FC(),Q!==r?F=e.substring(F,v):F=Q,F!==r?(G=g,g=pC(_,F)):(v=g,g=r)):(v=g,g=r)):(v=g,g=r)):(v=g,g=r)),g!==r&&(G=d,g=lC(g)),d=g,d}function Hd(){var d;return d=zC(),d===r&&(d=VC(),d===r&&(d=BC())),d}function LC(){var d,g,_,R,C,F;if(d=v,g=Cn(),g===r&&(g=e.charAt(v),D.test(g)?v++:(g=r,U===0&&L(gI))),g!==r){for(_=v,R=[],C=to();C!==r;)R.push(C),R.length>=3?C=r:C=to();R.length<3?(v=_,_=r):_=R,_!==r?(g=[g,_],d=g):(v=d,d=r)}else v=d,d=r;if(d===r)if(d=v,g=e.charAt(v),g.toLowerCase()===N?v++:(g=r,U===0&&L(Dd)),g!==r)if(_=e.charAt(v),H.test(_)?v++:(_=r,U===0&&L(vI)),_!==r){for(R=v,C=[],F=to();F!==r;)C.push(F),C.length>=2?F=r:F=to();C.length<2?(v=R,R=r):R=C,R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function UC(){var d,g,_,R,C,F;if(d=v,g=e.charAt(v),g.toLowerCase()===N?v++:(g=r,U===0&&L(Dd)),g!==r)if(_=e.charAt(v),_e.test(_)?v++:(_=r,U===0&&L(bI)),_===r&&(_=e.charAt(v),Je.test(_)?v++:(_=r,U===0&&L(xI))),_!==r){for(R=v,C=[],F=to();F!==r;)C.push(F),C.length>=2?F=r:F=to();C.length<2?(v=R,R=r):R=C,R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function FC(){var d,g,_,R,C,F;if(d=v,g=e.charAt(v),g.toLowerCase()===N?v++:(g=r,U===0&&L(Dd)),g!==r)if(_=e.charAt(v),Re.test(_)?v++:(_=r,U===0&&L(SI)),_!==r){for(R=v,C=[],F=to();F!==r;)C.push(F),C.length>=2?F=r:F=to();C.length<2?(v=R,R=r):R=C,R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function zC(){var d,g,_,R,C,F,Q;return d=v,g=v,_=I0(),_!==r?(R=$e(),_=[_,R],g=_):(v=g,g=r),g===r&&(g=null),e.charCodeAt(v)===40?(_=I,v++):(_=r,U===0&&L(c0)),_!==r?(R=$e(),C=Vd(),C!==r?(F=$e(),e.charCodeAt(v)===41?(Q=O,v++):(Q=r,U===0&&L(p0)),Q!==r?(G=d,d=uC(g,C)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}function VC(){var d,g,_,R,C,F;return d=v,g=C0(),g!==r?(_=$e(),R=HC(),R!==r?(C=$e(),F=C0(),F!==r?(G=d,d=dC(g,R,F)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}function BC(){var d,g,_,R;return d=v,g=v,_=I0(),_!==r?(R=$e(),_=[_,R],g=_):(v=g,g=r),g===r&&(g=null),_=q0(),_===r&&(_=Kd()),_!==r?(G=d,d=fC(g,_)):(v=d,d=r),d}function to(){var d;return d=Cn(),d===r&&(d=e.charAt(v),xr.test(d)?v++:(d=r,U===0&&L(wI))),d}function I0(){var d;return e.charCodeAt(v)===33?(d=A,v++):(d=r,U===0&&L(_I)),d}function C0(){var d;return d=N0(),d===r&&(d=KC(),d===r&&(d=Kd())),d}function HC(){var d;return e.substr(v,2)===ie?(d=ie,v+=2):(d=r,U===0&&L(PI)),d===r&&(e.substr(v,2)===X?(d=X,v+=2):(d=r,U===0&&L($I)),d===r&&(e.substr(v,2)===de?(d=de,v+=2):(d=r,U===0&&L(EI)),d===r&&(e.substr(v,2)===q?(d=q,v+=2):(d=r,U===0&&L(AI)),d===r&&(d=e.charAt(v),Sr.test(d)?v++:(d=r,U===0&&L(TI)))))),d}function q0(){var d,g;return d=v,g=GC(),g===r&&(g=Ld()),g!==r&&(G=d,g=mC(g)),d=g,d}function Kd(){var d,g,_,R,C,F,Q,ge,et,wr,er,Ur;if(d=v,g=WC(),g!==r)if(e.charCodeAt(v)===40?(_=I,v++):(_=r,U===0&&L(c0)),_!==r){if(R=$e(),C=v,F=Gd(),F!==r){for(Q=[],ge=v,et=$e(),e.charCodeAt(v)===44?(wr=l,v++):(wr=r,U===0&&L(sp)),wr!==r?(er=$e(),Ur=Gd(),Ur!==r?(G=ge,ge=m0(g,F,Ur)):(v=ge,ge=r)):(v=ge,ge=r);ge!==r;)Q.push(ge),ge=v,et=$e(),e.charCodeAt(v)===44?(wr=l,v++):(wr=r,U===0&&L(sp)),wr!==r?(er=$e(),Ur=Gd(),Ur!==r?(G=ge,ge=m0(g,F,Ur)):(v=ge,ge=r)):(v=ge,ge=r);G=C,C=hC(g,F,Q)}else v=C,C=r;C===r&&(C=null),F=$e(),e.charCodeAt(v)===41?(Q=O,v++):(Q=r,U===0&&L(p0)),Q!==r?(G=d,d=yC(g,C)):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function N0(){var d,g;return d=v,g=YC(),g===r&&(g=A0(),g===r&&(g=QC(),g===r&&(g=JC(),g===r&&(g=XC())))),g!==r&&(G=d,g=gC(g)),d=g,d}function KC(){var d;return d=ZC(),d===r&&(d=eq()),d}function GC(){var d,g,_;return d=v,g=j0(),g!==r?(_=b0(),_!==r?(G=d,d=vC(_)):(v=d,d=r)):(v=d,d=r),d}function WC(){var d,g,_,R,C;if(d=v,g=v,_=nq(),_!==r){for(R=[],C=M0();C!==r;)R.push(C),C=M0();_=[_,R],g=_}else v=g,g=r;return g!==r?d=e.substring(d,v):d=g,d}function Gd(){var d;return d=N0(),d===r&&(d=q0(),d===r&&(d=Kd(),d===r&&(d=Vd()))),d}function YC(){var d,g,_,R,C,F;return d=v,g=v,_=v,R=la(),R===r&&(e.substr(v,2)===j?(R=j,v+=2):(R=r,U===0&&L(RI))),R!==r?(C=tq(),C===r&&(C=null),F=rq(),F===r&&(F=null),R=[R,C,F],_=R):(v=_,_=r),_!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=bC(g)),d=g,d}function QC(){var d,g;return d=v,e.substr(v,4)===ut?(g=ut,v+=4):(g=r,U===0&&L(OI)),g!==r&&(G=d,g=xC()),d=g,d}function JC(){var d,g;return d=v,e.substr(v,5)===Pe?(g=Pe,v+=5):(g=r,U===0&&L(kI)),g!==r&&(G=d,g=SC()),d=g,d}function XC(){var d,g;return d=v,e.substr(v,4)===oe?(g=oe,v+=4):(g=r,U===0&&L(II)),g!==r&&(G=d,g=wC()),d=g,d}function ZC(){var d,g,_;return d=v,g=j0(),g!==r?(_=D0(),G=d,d=_C(_)):(v=d,d=r),d}function eq(){var d,g,_;return d=v,g=v0(),g!==r?(_=D0(),G=d,d=PC(_)):(v=d,d=r),d}function j0(){var d;return e.charCodeAt(v)===64?(d=Qe,v++):(d=r,U===0&&L(CI)),d}function M0(){var d;return d=e.charAt(v),tI.test(d)?v++:(d=r,U===0&&L(qI)),d}function tq(){var d,g,_,R;if(d=v,e.charCodeAt(v)===46?(g=a,v++):(g=r,U===0&&L(Nd)),g!==r){if(_=[],R=Cn(),R!==r)for(;R!==r;)_.push(R),R=Cn();else _=r;_!==r?(g=[g,_],d=g):(v=d,d=r)}else v=d,d=r;return d}function rq(){var d,g,_,R,C;if(d=v,g=e.charAt(v),g.toLowerCase()===Le?v++:(g=r,U===0&&L(NI)),g!==r){if(_=e.charAt(v),rI.test(_)?v++:(_=r,U===0&&L(jI)),_===r&&(_=null),R=[],C=Cn(),C!==r)for(;C!==r;)R.push(C),C=Cn();else R=r;R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;return d}function D0(){var d,g,_,R,C;for(d=v,g=[],_=v,R=$e(),C=L0(),C===r&&(C=U0()),C!==r?(G=_,_=h0(C)):(v=_,_=r);_!==r;)g.push(_),_=v,R=$e(),C=L0(),C===r&&(C=U0()),C!==r?(G=_,_=h0(C)):(v=_,_=r);return G=d,g=$C(g),d=g,d}function nq(){var d;return d=e.charAt(v),nI.test(d)?v++:(d=r,U===0&&L(MI)),d}function L0(){var d,g,_,R;return d=v,e.charCodeAt(v)===91?(g=p,v++):(g=r,U===0&&L(jd)),g!==r?(_=$0(),_!==r?(e.charCodeAt(v)===93?(R=u,v++):(R=r,U===0&&L(Md)),R!==r?(G=d,d=EC(_)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,e.charCodeAt(v)===46?(g=a,v++):(g=r,U===0&&L(Nd)),g!==r?(_=Fd(),_!==r?(G=d,d=AC(_)):(v=d,d=r)):(v=d,d=r)),d}function U0(){var d,g,_,R;return d=v,e.charCodeAt(v)===91?(g=p,v++):(g=r,U===0&&L(jd)),g!==r?(_=E0(),_!==r?(e.charCodeAt(v)===93?(R=u,v++):(R=r,U===0&&L(Md)),R!==r?(G=d,d=TC(_)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}if(ca=i(),t.peg$library)return{peg$result:ca,peg$currPos:v,peg$FAILED:r,peg$maxFailExpected:pp,peg$maxFailPos:Lr};if(ca!==r&&v===e.length)return ca;throw ca!==r&&v<e.length&&L(OC()),g0(pp,Lr<e.length?e.charAt(Lr):null,Lr<e.length?pa(Lr,Lr+1):pa(Lr,Lr))}function qp(e){return vS(e)}var ts=class{head=null;tail=null;size=0;push(t){let r={value:t,next:null};this.tail!==null&&(this.tail.next=r),this.tail=r,this.head===null&&(this.head=r),this.size++}pop(){if(this.head===null)return;let t=this.head.value;return this.head=this.head.next,this.head===null&&(this.tail=null),this.size--,t}};function Dn(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var rs=e=>Array.isArray(e.value),ns=e=>Dn(e.value);var bS=new WeakSet,it=e=>typeof e=="object"&&e!==null&&bS.has(e),xS=e=>{switch(typeof e){case"string":case"number":case"boolean":return!0;case"object":return e===null||Dn(e)||$m(e);default:return!1}},$m=e=>Array.isArray(e)&&!it(e),Np=()=>{let e=[];return bS.add(e),e},$r=Symbol("Nothing");var SS={declaration:function(t,r){return it(r)?r.length:0},definition:{parameters:["NodesType"],returnType:"ValueType"}};function Hz(e){let t=0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);(n>=0&&n<=55295||n>=57344&&n<=1114111)&&t++}return t}var wS={declaration:function(t,r){return typeof r=="string"?Hz(r):Array.isArray(r)?r.length:Dn(r)?Object.keys(r).length:$r},definition:{parameters:["ValueType"],returnType:"ValueType"}};function _S(e){return e===92}function Kz(e,t){let r=!1,n=t;for(;n<e.length;){let o=e.charCodeAt(n);if(n++,_S(o)){r=!0;continue}if(o===93){if(!r)break;r=!1}}return n}function Gz(e){let t=e;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);_S(n)?r++:n===91?r=Kz(e,r):n===46&&(t=`${e.slice(0,r)}[^
|
|
115
|
-
\r]${e.slice(r+1)}`)}return t}function Ra({cache:e},t){let r=e.get("regexps")??{};if(e.has("regexps")||e.set("regexps",r),Object.hasOwn(r,t))return r[t];try{let n=RegExp(Gz(t),"u");return r[t]=n,n}catch{return r[t]=null,null}}var PS={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Ra(t,`^${n}$`)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}};var $S={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Ra(t,n)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}};var ES={declaration:function(t,r){return r.length===1?r[0]:$r},definition:{parameters:["NodesType"],returnType:"ValueType"}};var Em=[];function vt(e,t){return e===Em?Em:typeof t=="number"?[...e,t]:[...e,Qz(t)]}function AS(e){return e?[]:Em}var Wz=/[\u0000-\u001f'\\]/g;function Yz(e){let t=e.charCodeAt(0);switch(t){case 8:return"\\b";case 12:return"\\f";case 10:return"\\n";case 13:return"\\r";case 9:return"\\t";case 39:return"\\'";case 92:return"\\\\";default:return`\\u${t.toString(16).padStart(4,"0")}`}}function Qz(e){return e.replace(Wz,Yz)}function TS(e){let t="$";for(let r of e)typeof r=="number"?t+=`[${r}]`:t+=`['${r}']`;return t}function ir(e){throw new TypeError(`Unexpected node type: ${e.type}`)}function Ht(e){throw new TypeError(`Unexpected comparison operator: ${e}`)}function jp(e,t){throw new Error(t)}function Go(e){switch(typeof e){case"object":if(e===null)return"null";if(it(e))return"NodeList";if($m(e))return"array";if(Dn(e))return"object";throw new TypeError(`Unknown type: ${e}`);case"string":return"string";case"number":return"number";case"boolean":return"boolean";default:if(e===$r)return"Nothing";throw new TypeError(`Unknown type: ${e}`)}}function Jz(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!dn(e[r],t[r]))return!1;return!0}function Xz(e,t){let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o of r)if(!Object.hasOwn(t,o)||!dn(e[o],t[o]))return!1;return!0}function dn(e,t){if(Go(e)!==Go(t))return!1;switch(Go(e)){case"string":case"number":case"boolean":case"null":return e===t;case"object":return Xz(e,t);case"array":case"NodeList":return Jz(e,t);default:return!1}}function Mp(e,t,r){switch(r){case"==":case">=":case"<=":return!it(e)&&!it(t)&&dn(e,t);case"<":case">":return!1;case"!=":return!Mp(e,t,"==");default:Ht(r)}}function Dp(e,t,r){switch(r){case"==":case"<=":case">=":return it(e)&&(it(t)&&dn(e,t)||t===$r);case"<":case">":return!1;case"!=":return!Dp(e,t,"==");default:Ht(r)}}function Lp(e,t,r){switch(r){case"==":case"<=":case">=":return t===$r||it(t)&&t.length===0;case"<":case">":return!1;case"!=":return!Lp(e,t,"==");default:Ht(r)}}function Ln(e,t,r){switch(r){case"==":return e===t;case"<":return typeof t=="number"&&e<t;case"!=":return!Ln(e,t,"==");case"<=":return Ln(e,t,"<")||Ln(e,t,"==");case">":return typeof t=="number"&&Ln(t,e,"<");case">=":return typeof t=="number"&&Ln(t,e,"<")||Ln(e,t,"==");default:Ht(r)}}function Am(e,t,r){switch(r){case"==":case"<=":case">=":return dn(e,t);case"<":case">":return!1;case"!=":return!dn(e,t);default:Ht(r)}}function Up(e,t,r){switch(r){case"==":case"<=":case">=":return e===t;case"<":case">":return!1;case"!=":return!Up(e,t,"==");default:Ht(r)}}function Wo(e,t,r){if(typeof e!="string"||typeof t!="string")return!1;switch(r){case"==":return e===t;case"<":{let n=0;for(;e.length>n&&t.length>n;){let o=e.charCodeAt(n),i=t.charCodeAt(n);if(o===i){n++;continue}return e.charCodeAt(n)<t.charCodeAt(n)}return e.length<t.length}default:Ht(r)}}function RS(e,t,r){switch(r){case"==":case"<":return Wo(e,t,r);case"!=":return!Wo(e,t,"==");case"<=":return Wo(e,t,"<")||Wo(e,t,"==");case">":return Wo(t,e,"<");case">=":return Wo(t,e,"<")||Wo(e,t,"==");default:Ht(r)}}function Tm(e,t,r){let n=it(e)&&e.length===1?e[0]:e,o=Go(n),i=it(t)&&t.length===1?t[0]:t;switch(o){case"string":return RS(n,i,r);case"number":return Ln(n,i,r);case"boolean":case"null":return Up(n,i,r);case"object":return Am(n,i,r);case"array":return Mp(n,i,r);case"Nothing":return Lp(n,i,r);case"NodeList":return Dp(n,i,r);default:jp(o,"Unknown type")}}function Oa(e,t,r){let n=Np();switch(r.value.type){case"RelQuery":so(e,t.root,t.value,r.value,o=>{n.push(o)});break;case"JsonPathQuery":so(e,t.root,t.root,r.value,o=>{n.push(o)});break;default:ir(r.value)}return n}function Rm(e,t,r){switch(r.expression.type){case"FilterQuery":return Oa(e,t,r.expression).length>0;case"FunctionExpr":return Yo(e,t,r.expression)===!0;default:ir(r.expression)}}function fn(e,t,r){switch(r.type){case"LogicalNotExpr":return!fn(e,t,r.expression);case"LogicalAndExpr":return fn(e,t,r.left)&&fn(e,t,r.right);case"LogicalOrExpr":return fn(e,t,r.left)||fn(e,t,r.right);case"TestExpr":return Rm(e,t,r);case"ComparisonExpr":return ka(e,t,r);default:ir(r)}}function Om(e,t,r){switch(r.type){case"FunctionExpr":return Yo(e,t,r);case"FilterQuery":return Oa(e,t,r);case"LogicalNotExpr":case"LogicalAndExpr":case"LogicalOrExpr":case"TestExpr":return fn(e,t,r);case"Literal":return r.value;default:ir(r)}}function Zz(e){return it(e)?e.length===1?e[0]:$r:e}function Yo(e,t,r){if(!eV(e.functions,r.name))return!1;let n=e.functions[r.name];if(n.definition.parameters.length!==r.arguments.length)return!1;let o=[];for(let i=0;i<r.arguments.length;i++){let s=Om(e,t,r.arguments[i]),a=n.definition.parameters[i];switch(a){case"ValueType":if(!it(s)&&!xS(s))return!1;o.push(Zz(s));break;case"NodesType":if(!it(s))return!1;o.push(s);break;case"LogicalType":if(typeof s=="boolean")o.push(s);else if(it(s))o.push(s.length>0);else return!1;break;default:jp(a,"Unknown function argument type")}}return n.declaration(e,...o)}function eV(e,t){return Object.hasOwn(e,t)}function Fp(e,t,r){switch(r.type){case"Literal":return r.value;case"RelSingularQuery":case"AbsSingularQuery":{let n=r.type==="RelSingularQuery"?t.value:t.root;if(r.segments.length===0)return n;let o=Np();return so(e,t.root,n,r,i=>{o.push(i)}),o}case"FunctionExpr":return Yo(e,t,r);default:ir(r)}}function ka(e,t,r){let n=Fp(e,t,r.left),o=Fp(e,t,r.right);return Tm(n,o,r.op)}function zp(e,t,r){if(r.value.type==="ComparisonExpr"){if(!ka(e,t,r.value))return}else if(!fn(e,t,r.value))return;e.stack.push({root:t.root,path:t.path,value:t.value,index:t.index+1})}function tV(e,t){return e<0?t+e:e}function Ia(e,t,r){let n=tV(r.value,t.value.length);n>=0&&n<t.value.length&&e.stack.push({root:t.root,path:vt(t.path,n),value:t.value[n],index:t.index+1})}function Ca(e,{root:t,path:r,value:n,index:o},i){Object.hasOwn(n,i.value)&&e.stack.push({root:t,path:vt(r,i.value),value:n[i.value],index:o+1})}function Vp(e,t){return e>=0?e:t+e}function rV(e,t,r,n){let o=Vp(e,n),i=Vp(t,n);if(r>=0){let c=Math.min(Math.max(o,0),n),p=Math.min(Math.max(i,0),n);return[c,p]}let s=Math.min(Math.max(o,-1),n-1);return[Math.min(Math.max(i,-1),n-1),s]}function km(e,{root:t,path:r,value:n,index:o},i){let s=i.step??1,a=s>=0?0:n.length-1,c=s>=0?n.length:-n.length-1,p=i.start===null?a:Vp(i.start,n.length),l=i.end===null?c:Vp(i.end,n.length),[u,f]=rV(p,l,s,n.length);if(s>0){let m=u;for(;m<f;)e.stack.push({root:t,path:vt(r,m),value:n[m],index:o+1}),m+=s}else if(s<0){let m=f;for(;u<m;)e.stack.push({root:t,path:vt(r,m),value:n[m],index:o+1}),m+=s}}function qa(e,{root:t,path:r,value:n,index:o}){if(Array.isArray(n))for(let i=0;i<n.length;i++)e.stack.push({root:t,path:vt(r,i),value:n[i],index:o+1});else if(Dn(n))for(let i of Object.keys(n))e.stack.push({root:t,path:vt(r,i),value:n[i],index:o+1})}function Im(e,t,r){for(let n of r.selectors)switch(n.type){case"NameSelector":ns(t)&&Ca(e,t,n);break;case"SliceSelector":rs(t)&&km(e,t,n);break;case"IndexSelector":{rs(t)&&Ia(e,t,n);break}case"WildcardSelector":qa(e,t);break;case"FilterSelector":{rs(t)?nV(e,t,n):ns(t)&&oV(e,t,n);break}default:ir(n)}}function nV(e,{root:t,path:r,value:n,index:o},i){for(let s=0;s<n.length;s++)zp(e,{root:t,path:vt(r,s),value:n[s],index:o},i)}function oV(e,{root:t,path:r,value:n,index:o},i){for(let s of Object.keys(n))zp(e,{root:t,path:vt(r,s),value:n[s],index:o},i)}function Cm(e,{root:t,path:r,value:n,index:o},i){Object.hasOwn(n,i.value)&&e.stack.push({root:t,path:vt(r,i.value),value:n[i.value],index:o+1})}function OS(e,t,r){switch(r.type){case"BracketedSelection":return Im(e,t,r);case"WildcardSelector":return qa(e,t);case"MemberNameShorthand":ns(t)&&Cm(e,t,r);break;case"NameSelector":ns(t)&&Ca(e,t,r);break;case"IndexSelector":rs(t)&&Ia(e,t,r);break;default:ir(r)}}function so(e,t,r,n,o){let i=new ts;i.push({root:t,path:AS(e.capturePaths),value:r,index:0});let s={cache:e.cache,capturePaths:!1,functions:e.functions,regexp:e.regexp,stack:i};for(;i.size>0;){let a=i.pop();if(a.index===n.segments.length){o(a.value,a.path);continue}let{path:c,value:p,index:l}=a,u=n.segments[l];if(OS(s,a,u.node),u.type==="DescendantSegment"){if(Array.isArray(p))for(let f=0;f<p.length;f++)i.push({root:t,path:vt(c,f),value:p[f],index:l});else if(p!==null&&typeof p=="object")for(let f of Object.keys(p))i.push({root:t,path:vt(c,f),value:p[f],index:l})}}}function Bp(e,t,r,n){let o={cache:new Map,capturePaths:r.capturePaths,functions:{count:SS,search:$S,value:ES,match:PS,length:wS},regexp:"i-regexp",stack:new ts};so(o,e,e,qp(t),n)}var iV={capturePaths:!0};function Eae(e,t){let r=[];return Bp(e,t,{capturePaths:!1},n=>{r.push(n)}),r}function kS(e,t){let r=[];return Bp(e,t,iV,(n,o)=>{r.push(TS(o))}),r}import*as Gp from"node:path";function Na(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}var IS="#/components/actions/";function CS(e,t,r){let n=zr(da),o={problems:[],specVersion:"overlay1",visitorsData:{}},i=new Set,{$self:s,components:a}=t.parsed,c=typeof s=="string"?r.resolveExternalRef(t.source.absoluteRef,s):t.source.absoluteRef,p=(u,f,m)=>{let h=S=>{let E=u[S];if(typeof E!="string"){m({message:`The \`${S}\` field must be a JSONPath expression.`,location:f.child([S])});return}try{return sV(e.parsed,E)}catch(P){m({message:`Invalid JSONPath expression: ${P.message}`,location:f.child([S])});return}},y=h("target");if(!y)return;if(u.remove===!0){if(y.some(({keys:S})=>S.length===0)){m({message:"Cannot remove the root of the document.",location:f.child(["target"])});return}cV(e.parsed,y,i);return}if(u.update!==void 0&&u.copy!==void 0){m({message:"An action can't have both `update` and `copy`.",location:f});return}let b,x;if(u.copy===void 0)b=structuredClone(u.update),x="update",qm(b,S=>{let E=r.resolveExternalRef(c,S),P=e.source.absoluteRef;return ce(E)||ce(P)?E:Na(Gp.relative(Gp.dirname(P),E))});else{let S=h("copy");if(!S)return;if(S.length!==1){m({message:`The copy expression must select exactly one node, but it selected ${S.length}.`,location:f.child(["copy"])});return}b=Nm(e.parsed,S[0].keys),x="copy"}if(b===void 0)return;if(new Set(y.map(({keys:S})=>{let E=Nm(e.parsed,S);return Array.isArray(E)?"array":k(E)?"object":"primitive"})).size>1){m({message:"The target must select only objects, only arrays, or only primitive values.",location:f.child(["target"])});return}for(let S of y){let E=aV(e.parsed,S,b,i);if(E){m({message:E,location:f.child([x])});return}}},l={Root({actions:u},{report:f,location:m}){if(!Array.isArray(u)){f({message:"The overlay must have a list of `actions`.",location:m.child(["actions"])});return}u.forEach((h,y)=>{let b=m.child(["actions",y]);if(!k(h)){f({message:"An action must be an object.",location:b});return}if(!B(h)){p(h,b,f);return}let{$ref:x,target:w,description:S,...E}=h,P=Object.keys(E).find(N=>!N.startsWith("x-"));if(P){f({message:`Property \`${P}\` is not expected here because it is defined alongside \`$ref\`.`,location:b.child([P]).key()});return}let T=x.startsWith(IS)?Xe(a?.actions??{},dp(x.slice(IS.length))):void 0;if(!T){f({message:`Can't find the reusable action \`${x}\`.`,location:b.child(["$ref"])});return}p({...T.fields,target:w},b,f)})}};return Nt({document:t,rootType:n.Root,normalizedVisitors:qt([{severity:"error",ruleId:"overlay",visitor:l}],n),resolvedRefMap:new Map,ctx:o}),o.problems}function qm(e,t){if(Array.isArray(e))for(let r of e)qm(r,t);else if(k(e))for(let[r,n]of Object.entries(e))if(r==="$ref"&&typeof n=="string"){let[o,...i]=n.split("#");o!==""&&(e.$ref=[t(o),...i].join("#"))}else qm(n,t)}function sV(e,t){return[...new Set(kS(e,t))].map(r=>({jsonPath:r,keys:qp(r).segments.flatMap(({node:n})=>n.type==="BracketedSelection"?n.selectors.flatMap(o=>o.type==="NameSelector"||o.type==="IndexSelector"?[o.value]:[]):[])}))}function aV(e,{jsonPath:t,keys:r},n,o){let i=Nm(e,r);if(Kp(i)){if(!Kp(n))return jm(n,i,t);Hp(e,r.slice(0,-1),o)[r[r.length-1]]=n;return}let s=Hp(e,r,o);if(Array.isArray(s)){s.push(...Array.isArray(n)?structuredClone(n):[structuredClone(n)]);return}return k(n)?qS(s,n,t,o):jm(n,s,t)}function qS(e,t,r,n){for(let[o,i]of Object.entries(t)){let s=e[o];if(!Object.hasOwn(e,o))e[o]=structuredClone(i);else if(k(s)&&k(i)){let a=qS(Hp(e,[o],n),i,`${r}['${o}']`,n);if(a)return a}else if(Array.isArray(s)&&Array.isArray(i))e[o]=[...s,...structuredClone(i)];else if(Kp(s)&&Kp(i))e[o]=i;else return jm(i,s,`${r}['${o}']`)}}function cV(e,t,r){let n=t.map(({keys:i})=>({parent:Hp(e,i.slice(0,-1),r),key:i[i.length-1]})),o=i=>typeof i=="number"?i:-1;n.sort((i,s)=>o(s.key)-o(i.key));for(let{parent:i,key:s}of n)Array.isArray(i)?i.splice(s,1):delete i[s]}function Nm(e,t){return t.reduce((r,n)=>r[n],e)}function Hp(e,t,r){let n=e;for(let o of t){if(!r.has(n[o])){let i=Object.assign(Array.isArray(n[o])?[]:{},n[o]);r.add(i),n[o]=i}n=n[o]}return n}function Kp(e){return!k(e)&&!Array.isArray(e)}function jm(e,t,r){let n=o=>o===null?"null":Array.isArray(o)?"array":typeof o;return`Cannot apply ${n(e)} to ${n(t)} at ${r}.`}var wt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Qo(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;Qo(i,t,n.child(o))}}});function Qo(e,t,r){let n=e.error;n instanceof ln&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let o=e.error?.message;t({location:r,message:`Can't resolve $ref${o?": "+o:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}function Ze(e){return typeof e=="string"}function NS(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Wp(e){let t=k(e)&&Ze(e.title)?e.title.trim():"",r=NS(t).replace(new RegExp(`[^${mp}]`,"g"),"-");return{title:t,name:r}}function vr(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--&&vr(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)||!vr(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Jo(e){return e.chain?.[0]??{node:e.node,location:e.location}}function Mm(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 jS({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,p=new Map,l=Mm("Schema",e),u={ref:{leave(w,S,E){if(!E.location||E.node===void 0){Qo(E,S.report,S.location);return}let P=Jo(E);if(P.location.source===r.source&&P.location.source===S.location.source&&S.type.name!=="scalar"&&!t){ro(w.$ref).uri!==null&&w.$ref!==P.location.pointer&&(w.$ref=P.location.pointer);return}if(o&&ce(w.$ref))return;let T=Mm(S.type.name,e);T?t?(m(T,P,S),ua(w,P,S)):(w.$ref=m(T,P,S),f(w,E,S)):ua(w,P,S)}},Example:{leave(w,S){if(up(w)&&w.value===void 0){let E=S.resolve({$ref:w.externalValue});if(!E.location||E.node===void 0){Qo(E,S.report,S.location);return}if(o&&ce(w.externalValue))return;w.value=S.resolve({$ref:w.externalValue}).node,delete w.externalValue}}},Root:{enter(w,S){c=S.location,e==="oas3"?a=w.components=w.components||{}:e==="oas2"?a=w:e==="async2"?a=w.components=w.components||{}:e==="async3"?a=w.components=w.components||{}:e==="arazzo1"?a=w.components=w.components||{}:e==="openrpc1"&&(a=w.components=w.components||{})}}};e==="oas3"&&(u.Discriminator={leave(w,S){if(typeof w.defaultMapping!="string"||!pn(w.defaultMapping))return;let E=S.resolve({$ref:w.defaultMapping});if(!E.location||E.node===void 0){Qo(E,S.report,S.location.child("defaultMapping"));return}w.defaultMapping=m(l,Jo(E),S)},DiscriminatorMapping:{leave(w,S){for(let E of Object.keys(w)){let P=w[E];if(!pn(P))continue;let T=S.resolve({$ref:P});if(!T.location||T.node===void 0){Qo(T,S.report,S.location.child(E));return}w[E]=m(l,Jo(T),S)}}}});function f(w,S,E){let P={resolved:!0,isRemote:!1,node:S.node,chain:S.chain,document:r,nodePointer:w.$ref};n.set(jn(E.location.source.absoluteRef,w.$ref),P),n.set(jn(r.source.absoluteRef,w.$ref),P)}function m(w,S,E){a[w]=a[w]||{};let P=x(S,w,E);return a[w][P]=S.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${w}/${P}`:`#/${w}/${P}`}function h(w,S,E){if(B(w)){let P=E.resolve(w,c.absolutePointer);if((P.location&&Jo(P).location)?.absolutePointer===S.location.absolutePointer)return!0}return vr(w,S.node)}function y(w,S,E){let{title:P,name:T}=Wp(w.node),N=w.location.child("title");return P===""?{key:T,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:w.location,forceSeverity:"error"}}:S[T]&&!h(S[T],w,E)?{key:T,problem:{message:`Title "${P}" maps to component name \`${T}\`, already used by another schema. Rename one of the titles.`,location:N,from:p.get(T),forceSeverity:i}}:{key:T}}function b(w,S,E){let P=z0(w.location.pointer)||V0(w.location.source.absoluteRef),T=P;for(let N=2;S[T]&&!h(S[T],w,E);N++)T=`${P}-${N}`;return{name:T,prevName:P}}function x(w,S,E){let P=a[S];if(s==="title"&&S===l){let{key:I,problem:O}=y(w,P,E);if(!O)return p.set(I,w.location.child("title")),I;let{name:A}=b(w,P,E);return P[A]||(E.report(O),p.set(A,w.location)),A}let{name:T,prevName:N}=b(w,P,E);return!P[T]&&N!==T&&E.report({message:`Two schemas are referenced with the same name but different content. Renamed ${N} to ${T}.`,location:E.location,forceSeverity:i}),T}return u}var pV=["definitions","parameters","responses","securityDefinitions"],Yp=()=>{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]=ro(o).pointer;if(!(!i||!s)&&pV.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(f=>f!==a&&!i.has(f))&&l&&(i.add(a),delete o[l][p],e.delete(a),hr(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})}}}};function MS(e,t){return t in e}function DS(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=ro(e).pointer;if(!(!r||!n))return`${r}/${n}`}var Qp=()=>{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(f=>f!==s&&!o.has(f))||l)&&p&&n.components&&MS(n.components,p)){o.add(s);let f=n.components[p];delete f[c],e.delete(s),hr(f)&&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=DS(n.$ref);if(!a)return;let c=DS(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),hr(n.components)&&delete n.components}},NamedSchemas:{Schema(n,o){let i=n.allOf?.some(s=>B(s)&&o.resolve(s)?.node?.discriminator);t("schemas",o.key.toString(),i)}},NamedParameters:{Parameter(n,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(n,{key:o}){t("responses",o.toString())}},NamedExamples:{Example(n,{key:o}){t("examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{key:o}){t("requestBodies",o.toString())}},NamedHeaders:{Header(n,{key:o}){t("headers",o.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:o}){t("mediaTypes",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:o}){t("securitySchemes",o.toString())}},SecurityRequirement(n){for(let o of Object.keys(n)){let i=`securitySchemes/${o}`,s=e.get(i);s?s.usedIn.push("SecurityRequirement"):e.set(i,{usedIn:["SecurityRequirement"],name:o})}}}};async function Dm(e){let{document:t,config:r,types:n,externalRefResolver:o,dereference:i=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:p="basename",overlays:l=[]}=e,u=Mn(t.parsed),f=Ta(u),m=r.getRulesForSpecVersion(f),h=zr(r.extendTypes(n,u),r),y=Ni(m,r,"preprocessors",u),b=Ni(m,r,"decorators",u),x={problems:[],specVersion:u,config:r,refTypes:new Map,visitorsData:{}},w=await gr({rootDocument:t,rootType:h.Root,externalRefResolver:o});y.length>0&&(Nt({document:t,rootType:h.Root,normalizedVisitors:qt(y,h),resolvedRefMap:w,ctx:x}),w=await gr({rootDocument:t,rootType:h.Root,externalRefResolver:o}));let S=(P,T)=>({severity:"error",ruleId:"bundler",visitor:jS({version:f,dereference:T,rootDocument:t,resolvedRefMap:P,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:p})}),E=b.filter(P=>P.ruleId!=="remove-unused-components");if(Nt({document:t,rootType:h.Root,normalizedVisitors:qt(l.length>0?[S(w,!1)]:[S(w,i),...E],h),resolvedRefMap:w,ctx:x}),l.length>0){for(let I of l){let O=await o.resolveDocument(null,I,!0).catch(ie=>{throw new es(`Failed to load overlay at ${I}: ${ie.message}`)});if(O instanceof Error)throw O;let A=k(O.parsed)?O.parsed.overlay:void 0;if(typeof A!="string"||!Ip.test(A))throw new es(`${I} is not an Overlay 1.0, 1.1, or 1.2 document.`);x.problems.push(...CS(t,O,o))}let P=await gr({rootDocument:t,rootType:h.Root,externalRefResolver:o}),T={...x,problems:[]};Nt({document:t,rootType:h.Root,normalizedVisitors:qt([S(P,i),...E],h),resolvedRefMap:P,ctx:T});let N=new Set(x.problems.map(({ruleId:I,message:O})=>`${I}:${O}`));x.problems.push(...T.problems.filter(({ruleId:I,message:O})=>!N.has(`${I}:${O}`)))}if(s||r.getDecoratorSettings("remove-unused-components",u).severity!=="off"){let P=await gr({rootDocument:t,rootType:h.Root,externalRefResolver:o}),T=qt([{severity:"error",ruleId:"remove-unused-components",visitor:f==="oas2"?Yp({}):Qp({})}],h);Nt({document:t,rootType:h.Root,normalizedVisitors:T,resolvedRefMap:P,ctx:x})}return{bundle:t,problems:x.problems.map(P=>r.addProblemToIgnore(P)),fileDependencies:o.getFiles(),rootType:h.Root,refTypes:x.refTypes,visitorsData:x.visitorsData}}var os="redocly.yaml",LS={extends:["recommended"]},ja=".redocly.lint-ignore.yaml",US=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
116
|
-
# See https://redocly.com/docs/cli/ for more information.
|
|
117
|
-
`,Jp="configBundler",Xp="pluginsCollector",FS=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];var rw={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Ma={type:"object",properties:rw,additionalProperties:!1},lV={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},La={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:{...rw,like:Ma,dislike:Ma,satisfied:Ma,neutral:Ma,dissatisfied:Ma},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:lV},additionalProperties:!1}},additionalProperties:!1},uV={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},zm={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},nl={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:La,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:zm,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:uV,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},is={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},dV={type:"object",properties:{name:{type:"string"},items:is,queries:is,mutations:is,subscriptions:is,types:is,directives:is},required:["name"],additionalProperties:!1},fV={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:dV},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},mV={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},hV={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},yV={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:mV,license:hV},additionalProperties:!1},ol={type:"object",properties:{menu:{type:"object",properties:{...fV.properties},additionalProperties:!1},downloadUrls:zm,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:La,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:yV},additionalProperties:!1},gV={type:"object",properties:{downloadUrls:zm,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:La,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},vV={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"]},bV={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"}}},zS={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},xV={type:"object",properties:{beforeInfo:{type:"array",items:zS},end:{type:"array",items:zS}}},Xo={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Zp={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},SV={type:"object",properties:ll(Xo.properties,["light","dark"])},wV={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"}}},_V={type:"object",properties:{error:Zp,info:Zp,redirect:Zp,success:Zp}},PV={type:"object",properties:ss(Xo.properties,["dark"])},$V={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},EV={type:"object",properties:{accent:Xo,border:SV,error:Xo,http:wV,primary:Xo,responses:_V,secondary:PV,success:Xo,text:$V,tonalOffset:{type:"number"},warning:Xo}},el={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},AV={type:"object",properties:{small:el,medium:el,large:el,xlarge:el}},hn={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},TV={type:"object",properties:{...ss(hn.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:AV}},VS={type:"object",properties:ll(hn.properties,["fontSize","lineHeight"])},RV={type:"object",properties:{medium:VS,small:VS}},OV={type:"object",properties:{...ss(hn.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:RV}},kV={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},IV={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},BS={type:"object",properties:{fullWidth:{type:"boolean"}}},CV={type:"object",properties:{buttons:TV,httpBadges:OV,layoutControls:kV,panels:IV,tryItButton:BS,tryItSendButton:BS}},il={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},qV={type:"object",properties:{maxWidth:il}},NV={type:"object",properties:{maxWidth:il,middlePanelMaxWidth:il}},jV={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:qV,"three-panel":NV}},HS={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},MV={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:HS,defaultDetailsWidth:{type:"string"},examples:HS,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},nw={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},DV={type:"object",properties:ll(nw.properties,["textTransform"])},LV={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},UV={type:"object",properties:{...ss(hn.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:nw,level1items:DV,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:LV,textColor:{type:"string"},width:{type:"string"}}},tl={type:"object",properties:{...hn.properties,color:{type:"string"},transform:{type:"string"}}},FV={type:"object",properties:{...hn.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"}}},zV={type:"object",properties:ss(hn.properties,["fontSize"])},VV={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},BV={type:"object",properties:{code:FV,fieldName:hn,...ll(hn.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:tl,heading2:tl,heading3:tl,headings:zV,lineHeight:{type:"string"},links:VV,optimizeSpeed:{type:"boolean"},rightPanelHeading:tl,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},HV={type:"object",properties:{color:{type:"string"},...ss(hn.properties,["fontWeight"])}},KV={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:HV}},GV={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},WV={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},KS={type:"object",properties:{custom:{type:"string"}}},YV={type:"object",properties:{DownloadButton:KS,NextSectionButton:KS}},QV={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},JV={type:"object",properties:{borderRadius:{type:"string"}}},XV={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},ZV={type:"object",properties:{breakpoints:il,codeBlock:KV,colors:EV,components:CV,layout:jV,logo:GV,fab:WV,overrides:YV,rightPanel:QV,schema:MV,shape:JV,sidebar:UV,spacing:XV,typography:BV,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},e3={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:vV}},required:["languages"]},ow={type:"object",properties:{theme:ZV,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:e3,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:bV,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:xV,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 ll(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function ss(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Er={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 t3={rules:Er,oas2Rules:Er,oas3_0Rules:Er,oas3_1Rules:Er,oas3_2Rules:Er,async2Rules:Er,async3Rules:Er,arazzo1Rules:Er,arazzo1_1Rules:Er,overlay1Rules:Er,openrpc1Rules:Er,graphqlRules:Er};var Hr={nodeTypeName:void 0,type:"object",additionalProperties:!0},r3={preprocessors:Hr,oas2Preprocessors:Hr,oas3_0Preprocessors:Hr,oas3_1Preprocessors:Hr,oas3_2Preprocessors:Hr,async2Preprocessors:Hr,async3Preprocessors:Hr,arazzo1Preprocessors:Hr,arazzo1_1Preprocessors:Hr,overlay1Preprocessors:Hr,openrpc1Preprocessors:Hr},Kr={nodeTypeName:void 0,type:"object",additionalProperties:!0};var n3={decorators:Kr,oas2Decorators:Kr,oas3_0Decorators:Kr,oas3_1Decorators:Kr,oas3_2Decorators:Kr,async2Decorators:Kr,async3Decorators:Kr,arazzo1Decorators:Kr,arazzo1_1Decorators:Kr,overlay1Decorators:Kr,openrpc1Decorators:Kr},o3={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"},ul={...t3,...n3,...r3,extends:o3},iw=e=>e,_t=iw({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),bt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},GS={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"},consent:{type:"string",enum:["analytics","marketing"]}},required:["src"],additionalProperties:!0},Lm={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},disconnect:{type:"boolean"},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},Vm={type:"array",items:{...Lm,properties:{...Lm.properties,items:{type:"array",items:Lm}}}},i3={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},s3={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},a3={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}},c3={type:"object",properties:{facets:a3,...bt.properties},additionalProperties:!1},p3={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},sw={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},aw={type:"object",properties:{items:Vm,...bt.properties},additionalProperties:!1},cw={type:"object",additionalProperties:i3},pw={type:"object",properties:{items:Vm,copyrightText:{type:"string"},logo:bt,...bt.properties},additionalProperties:!1},lw={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...bt.properties},additionalProperties:!1},uw={type:"object",properties:{head:{type:"array",items:GS},body:{type:"array",items:GS}},additionalProperties:!1},dw={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}},fw={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:s3,filters:c3,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:p3},...bt.properties},additionalProperties:!1},mw={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},hw={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...bt.properties},additionalProperties:!1},Bm={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},l3={type:"object",properties:{...bt.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},yw={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...bt.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...bt.properties},additionalProperties:!1},actions:l3},additionalProperties:!1},gw={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...bt.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...bt.properties},additionalProperties:!1},expand:{type:"object",properties:{...bt.properties},additionalProperties:!1},collapse:{type:"object",properties:{...bt.properties},additionalProperties:!1}},additionalProperties:!1},vw={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"},...bt.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...bt.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...bt.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},sl={...nl,properties:{...nl.properties,...ow.properties}},Ace={...nl,properties:{...nl.properties,...ow.properties}},u3={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},d3={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"]},f3={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},m3={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},h3={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"]},y3={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},g3={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"]},bw={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"]},v3={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:bw}},additionalProperties:!1,required:["trackingId"]},xw={type:"object",properties:{adobe:u3,amplitude:d3,fullstory:f3,heap:m3,rudderstack:h3,segment:y3,gtm:g3,ga:v3}},b3={type:"object",properties:{mode:{type:"string",enum:["auto","opt-in","opt-out","none","onetrust","cookiebot","trustarc","tcf"]},privacyPolicyUrl:{type:"string"},expires:{type:"number"},settingsLink:{type:"string",enum:["auto","footer","none"]}},additionalProperties:!1},Sw={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"},...bt.properties},additionalProperties:!1},ww={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},_w={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},x3={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"}}}},S3={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:x3},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Vm,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},al={type:"object",patternProperties:{".*":S3}},cl={nodeTypeName:_t.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:_t.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:_t.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:_t.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...ul},additionalProperties:!1}},targets:{nodeTypeName:_t.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:_t.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:_t.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:_t.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},w3={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},_3={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},P3={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},Un={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:_3},excludes:{type:"array",items:w3},filters:{type:"array",items:P3},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},$3={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},E3={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:$3},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},A3={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:E3,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},T3={type:"object",additionalProperties:A3},Pw={type:"object",properties:{show:{type:"boolean"},entityTypes:T3,catalogs:{type:"object",properties:{all:Un,services:Un,domains:Un,teams:Un,users:Un,apiDescriptions:Un,dataSchemas:Un,apiOperations:Un},additionalProperties:Un}},additionalProperties:!1},WS={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Hm={type:"string",enum:["and","or"]},Um={type:"object",properties:{field:{type:"string"},operator:WS,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:WS,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},R3={type:"object",properties:{operator:Hm,conditions:{type:"array",items:Um}},required:["operator","conditions"],additionalProperties:!1},YS={type:"array",items:{oneOf:[Um,{type:"object",properties:{operator:Hm,conditions:{type:"array",items:{oneOf:[Um,R3]}}},required:["operator","conditions"],additionalProperties:!1}]}},$w={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},O3={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:$w},required:["subject","assertions"],additionalProperties:!1}},k3={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:$w,where:O3,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},I3={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},k3]}},C3={type:"object",properties:{name:{type:"string"},extends:ul.extends,rules:I3},required:["name"],additionalProperties:!1},QS={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},q3={oneOf:[QS,{type:"array",items:QS}]},N3={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[YS,{type:"object",properties:{operator:Hm,conditions:YS},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:C3,minItems:1},trigger:q3},required:["name","key","entities","levels"],additionalProperties:!1},Ew={type:"array",items:N3},mn={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:sw,navbar:aw,products:cw,footer:pw,sidebar:lw,scripts:uw,links:dw,feedback:La,search:fw,aiAssistant:mw,colorMode:hw,palette:Bm,navigation:yw,codeSnippet:gw,markdown:vw,openapi:sl,asyncapi:gV,graphql:ol,analytics:xw,userMenu:Sw,versionPicker:ww,breadcrumbs:_w,catalog:al,entitiesCatalog:Pw,catalogClassic:al,scorecard:cl,scorecardClassic:cl,scorecards:Ew},additionalProperties:!0};var j3=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(j3||{}),M3=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(M3||{});var D3=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(D3||{});var Aw="^[a-z0-9]+(?:-[a-z0-9]+)*$",Tce=new RegExp(Aw);var L3=63,Rce=`Unique ID cannot exceed ${L3} characters`,Tw="redocly",Rw=[Tw,"corporate","guest"],Oce=`Unique ID cannot be a reserved word (${Rw.join(", ")})`,JS=["REDOCLY","CORPORATE","GUEST"],U3={type:"object",additionalProperties:{type:"string"}},F3={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},rl={type:"string",enum:["error","warn","off"]},z3={type:"object",additionalProperties:!1,properties:{schemaCheck:rl,statusCodeCheck:rl,contentTypeCheck:rl,successCriteriaCheck:rl}},V3={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},B3={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},H3={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},K3={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},G3={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:[V3,B3]},inputs:U3,servers:F3,severity:z3,slo:H3},required:["path","trigger","agent"],additionalProperties:!1}},mcpServers:K3},additionalProperties:!1},Ow={type:"string",enum:["off","info","warn","error"]},Da={type:"array",items:{type:"string"}},W3={type:"object",properties:{severity:Ow,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Da,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Da,excludes:Da,exceptions:{type:"object",properties:{files:Da,lines:Da},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},Y3={oneOf:[Ow,W3]},XS={type:"object",additionalProperties:Y3},Q3={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},J3={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:Q3}},additionalProperties:!1},X3={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:J3},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},Z3={type:"object",properties:{rules:XS,excludes:{type:"array",items:{type:"string",minLength:1}},baseline:{type:"string",minLength:1},markdoc:{oneOf:[{type:"boolean"},X3]},apiDescriptions:{type:"object",properties:{rules:XS},additionalProperties:!1}},additionalProperties:!1},eB={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},tB={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:eB,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},rB={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"]},nB={oneOf:[tB,rB],discriminator:{propertyName:"type"}},oB={type:"object",additionalProperties:nB},kw={oneOf:[{type:"array",items:{type:"string",enum:JS},uniqueItems:!0},{type:"string",enum:JS}]},ZS={type:"string",pattern:Aw,not:{enum:Rw.filter(e=>e!==Tw)}},Iw={oneOf:[{type:"array",items:ZS,uniqueItems:!0},ZS]},Cw={type:"boolean"},qw={type:"string",pattern:"^https?://.*"},Nw={type:"string",pattern:"^https?://.*"},iB={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:_t.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},sB={type:"object",additionalProperties:iB,nodeTypeName:_t.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"},aB={type:"string",enum:["info","success","warning","error"]},Ue={type:"object",additionalProperties:{type:"string"}},cB={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:aB,rbac:Ue,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},pB={type:"array",items:cB},jw={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:Ue,openapi:sl,graphql:ol,theme:{type:"object",properties:{openapi:sl,graphql:ol},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...ul},required:["root"]},lB={type:"object",additionalProperties:!0},uB={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},dB={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},fB={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:dB},additionalProperties:!1},mB={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},hB={type:"object",properties:{catalogs:{type:"object",properties:{all:Ue,services:Ue,domains:Ue,teams:Ue,users:Ue,apiDescriptions:Ue,dataSchemas:Ue,apiOperations:Ue},additionalProperties:Ue},entitiesTypes:{type:"object",properties:{service:Ue,domain:Ue,team:Ue,user:Ue,apiDescription:Ue,apiOperation:Ue,dataSchema:Ue},additionalProperties:Ue},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Ue},additionalProperties:!1}},entities:{type:"object",properties:{"**":Ue},additionalProperties:Ue}},additionalProperties:!1},Mw={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Ue,cms:Ue,reunite:Ue,features:{type:"object",properties:{aiSearch:Ue,mcp:Ue},additionalProperties:!1},content:{type:"object",properties:{"**":Ue},additionalProperties:Ue},entitiesCatalog:hB},additionalProperties:Ue},yB={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},gB={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},vB={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[yB,gB]}},additionalProperties:!1,required:["type","apiBaseUrl"]},bB={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},xB={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Fm={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:[bB,xB],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},SB={...Fm,properties:{...Fm.properties,type:{type:"string",const:"APIGEE_EDGE"}}},wB={type:"object",oneOf:[Fm,SB,vB],discriminator:{propertyName:"type"}},_B={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:wB}}},ew={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"]},PB={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},$B={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},EB={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},AB={type:"object",properties:{requiresLogin:Cw,logoutReturnUrl:qw,residency:Nw,sso:kw,idps:Iw,rbac:Mw},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},pl={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:sB,seo:fB,rbac:Mw,apiFunctions:mB,requiresLogin:Cw,responseHeaders:{type:"object",additionalProperties:{type:"array",items:PB}},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:jw},...ul,ssoDirect:oB,sso:kw,idps:Iw,residency:Nw,logoutReturnUrl:qw,access:AB,developerOnboarding:_B,removeAttribution:{type:"boolean"},i18n:ew,l10n:ew,metadata:lB,metadataGlobs:uB,ignore:{type:"array",items:{type:"string"}},theme:mn,reunite:G3,logo:sw,navbar:aw,products:cw,footer:pw,sidebar:lw,scripts:uw,links:dw,feedback:La,search:fw,aiAssistant:mw,colorMode:hw,palette:Bm,navigation:yw,codeSnippet:gw,markdown:vw,openapi:sl,graphql:ol,analytics:xw,consent:b3,userMenu:Sw,versionPicker:ww,breadcrumbs:_w,catalog:al,entitiesCatalog:Pw,catalogClassic:al,scorecard:cl,scorecardClassic:cl,scorecards:Ew,mcp:$B,skills:EB,recheck:Z3,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:pB},not:{required:["sso","idps"]},additionalProperties:!0},TB={...pl,additionalProperties:!1},as={$id:"root-redocly-config",...pl,properties:{plugins:{type:"array",items:{type:"string"}},...pl.properties,env:{type:"object",additionalProperties:TB}},additionalProperties:!1},tw={type:"object",properties:{logo:mn.properties.logo,navbar:mn.properties.navbar,footer:mn.properties.footer,sidebar:mn.properties.sidebar,search:mn.properties.search,codeSnippet:mn.properties.codeSnippet,breadcrumbs:mn.properties.breadcrumbs,openapi:mn.properties.openapi,feedback:mn.properties.feedback,palette:Bm,mockServer:pl.properties.mockServer,analytics:{type:"object",properties:{ga:bw}}},additionalProperties:!0},kce={$id:"product-config-override",type:"object",properties:{...tw.properties,apis:{type:"object",additionalProperties:jw},theme:tw},additionalProperties:!1},RB=["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"],st=iw({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"}),OB={type:"object",nodeTypeName:st.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},kB={type:"object",nodeTypeName:st.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},IB={type:"object",nodeTypeName:st.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},CB={type:"object",nodeTypeName:st.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},qB={type:"object",properties:{},nodeTypeName:st.EntityMetadata,additionalProperties:!0},NB={type:"object",nodeTypeName:st.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},jB={type:"object",nodeTypeName:st.EntitySlackContact,properties:{channels:{type:"array",items:NB}},required:["channels"],additionalProperties:!1},MB={type:"object",nodeTypeName:st.EntityContact,properties:{slack:jB},additionalProperties:!1},DB={type:"object",nodeTypeName:st.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},LB={type:"object",nodeTypeName:st.EntityRelation,properties:{type:{type:"string",enum:RB},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},ao={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:MB,links:{type:"array",nodeTypeName:st.EntityLinkList,items:DB},relations:{type:"array",nodeTypeName:st.EntityRelationList,items:LB},metadata:qB},UB={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...ao,type:{type:"string",const:"user"},metadata:OB},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:st.UserEntity},{type:"object",nodeTypeName:st.ApiOperationEntity,properties:{...ao,type:{type:"string",const:"api-operation"},metadata:IB},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:st.DataSchemaEntity,properties:{...ao,type:{type:"string",const:"data-schema"},metadata:CB},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:st.ApiDescriptionEntity,properties:{...ao,type:{type:"string",const:"api-description"},metadata:kB},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:st.ServiceEntity,properties:{...ao,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:st.DomainEntity,properties:{...ao,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:st.TeamEntity,properties:{...ao,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},FB={type:"object",nodeTypeName:st.Entity,properties:{...ao},required:["key","title","type"],additionalProperties:!1};import VW from"node:path";var Dw=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"];function dl(e){return e.includes("/")}var G$=an(lg(),1);var ug;function FW(){return ug||(ug=new G$.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),ug}function K$(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>FW().validate(o,r));return n===-1&&(n=0),t[n]}}function $s(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(k(t.properties)||k(t.additionalProperties)||k(t.items)&&(k(t.items.properties)||k(t.items.additionalProperties)||t.items.oneOf))return zW(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=$s(p,s,r);return typeof l=="string"&&(o[p]=l),l});return(s,a)=>{if(k(s)){let c=s[n];if(typeof c=="string"){let p=o[c];if(p&&r[p])return p}}return K$(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>$s(e+"_"+i,o,r));return K$(t.oneOf,n)}return t}function zW(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]=$s(n+"."+c,p,r);let i;k(t.additionalProperties)&&(i=$s(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;k(t.items)&&(k(t.items.properties)||k(t.items.additionalProperties)||t.items.oneOf)&&(s=$s(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(f=>c[f]!==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 dg(e,t){let r={},n=$s(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var BW=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names","spec-ref-siblings"],HW=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-illogical-composition-keywords","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","no-mixed-number-range-constraints","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values","spec-querystring-parameters","spec-ref-siblings"],KW=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],GW=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","spec-ref-siblings","security-scopes-defined"],WW=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],YW=["info-contact","spec-ref-siblings"],QW=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],JW=["no-unused-types","type-description"],XW=["struct","no-unresolved-refs"],ZW=[...BW,...HW,...KW,...GW,...WW,...YW,...QW,...JW,...XW],eY=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],tY=["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"],W$=[...tY,...eY],Y$={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!ce(e)&&!VW.extname(e)?{type:"string"}:{...vc,directResolveAs:{name:"ConfigGovernance",...vc}},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"},vc={properties:Y$},rY=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...vc.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),nY={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"},oY=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Vi(vc.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),iY={properties:{headers:{type:"array",items:{type:"string"}}}},sY={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:z("ClientGeneratorOptions"),pagination:"ClientPagination"}},aY={properties:{},additionalProperties:{}},Q$={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"}}},cY={properties:{...Q$.properties,exclude:{type:"array",items:{type:"string"}},operations:z("ClientPaginationRule")}},pY={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(ZW.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(dl(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},lY={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"},uY={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"},dY={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(W$.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(dl(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},fY={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},mY={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},hY={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(W$.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(dl(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},yY={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"},gY={properties:{},additionalProperties:{},description:"Custom preprocessors are defined by users via plugins. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"};function vY(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 bY(e){return{...e[_t.ScorecardClassicLevel],properties:{...e[_t.ScorecardClassicLevel]?.properties,...Y$}}}var xY={properties:{enum:{type:"array",items:{type:"string"},description:"Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#enum-example"},pattern:{type:"string",description:"Asserts a value matches a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#pattern-example"},notPattern:{type:"string",description:"Asserts a value doesn't match a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"],description:"Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#casing-example"},mutuallyExclusive:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually exclusive.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example"},mutuallyRequired:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually required.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},required:{type:"array",items:{type:"string"},description:"Asserts all listed values are defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#required-example"},requireAny:{type:"array",items:{type:"string"},description:"Asserts that at least one of the listed properties (key names only) is defined. ",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#requireany-example"},contains:{type:"array",items:{type:"string"},description:"Asserts that all listed strings are included in the value array.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#contains-example"},disallowed:{type:"array",items:{type:"string"},description:"Asserts all listed values are not defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example"},defined:{type:"boolean",description:"Asserts a property is defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#defined-example"},nonEmpty:{type:"boolean",description:"Asserts a property is not empty.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example"},minLength:{type:"integer",description:"Asserts a minimum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#minlength-example"},maxLength:{type:"integer",description:"Asserts a maximum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example"},schema:"Schema",ref:e=>typeof e=="string"?{type:"string",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"}:{type:"boolean",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"},const:e=>{if(typeof e=="string")return{type:"string",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="number")return{type:"number",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="boolean")return{type:"boolean",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}},description:"A minimum of one assertion property is required to be defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#assertion-object"},SY={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"},wY={properties:{subject:"Subject",assertions:"Assertions",where:V("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 Wl(e,t){let r=Bi.flatMap(o=>{let i=Do(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=dg("rootRedoclyConfigSchema",e);return{..._Y,ConfigRoot:rY(n),ConfigApisProperties:oY(n),Subject:vY([...r,...Dw]),...n,[_t.ScorecardClassicLevel]:bY(n)}}var _Y={ConfigurableRule:wY,ConfigApis:nY,ConfigGovernance:vc,ConfigHTTP:iY,Client:sY,ClientGeneratorOptions:aY,ClientPagination:cY,ClientPaginationRule:Q$,Where:SY,BuiltinRule:lY,CustomRule:uY,BuiltinDecorator:fY,CustomDecorator:mY,BuiltinPreprocessor:yY,CustomPreprocessor:gY,Schema:ve.Schema,SchemaProperties:ve.SchemaProperties,PatternProperties:ve.PatternProperties,NamedSchemas:ve.NamedSchemas,DependentRequired:ve.DependentRequired,Discriminator:ve.Discriminator,DiscriminatorMapping:ve.DiscriminatorMapping,ExternalDocs:ve.ExternalDocs,Xml:ve.Xml,Rules:pY,Decorators:dY,Preprocessors:hY,Assertions:xY},{theme:Ole,...PY}=as.properties,$Y={...as,properties:PY},J$=Wl($Y),ho=zr(J$);import hZ from"node:path";import*as wb from"node:fs";import fZ from"node:module";import*as Xt from"node:path";import*as fO from"node:url";function Yl(e){return!Ze(e)}var X$={};var Z$={};var eE={};function Ql(e){return Array.isArray(e)&&e.length===0}function Jl(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(B(e[s])){let a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),i=!0,s--)}r(e[s])&&(e.splice(s,1),i=!0,s--)}else if(k(e))for(let s of Object.keys(e)){if(B(e[s])){let a=t.resolve(e[s]);r(a.node)&&(delete e[s],i=!0)}r(e[s])&&(delete e[s],i=!0)}i&&(hr(e)||Ql(e))&&delete n[o]}function yo(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=tE(t),e=tE(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function tE(e){return Array.isArray(e)?e:[e]}var EY="any",Xl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||EY;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=B(a[l])?c.resolve(a[l]).node:a[l];if(k(u)){let f=u[e];yo(f,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];yo(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]&&!yo(s?.[e],t,o);return{any:{enter:(s,a)=>{Jl(s,a,i)}}}};var AY="any",Zl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||AY;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let l of s){let u=B(a[l])?c.resolve(a[l]).node:a[l];if(k(u)){let f=u[e];yo(f,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];yo(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>yo(s?.[e],t,o);return{any:{enter:(s,a)=>{Jl(s,a,i)}}}};import*as eu from"node:fs";import*as tu from"node:path";function fg(e){let t=eu.readFileSync(e,"utf-8");return Bo(t)}function Kn(e,t){return ce(e)||t===void 0?e:tu.resolve(tu.dirname(t),e)}function Es(e){return eu.readFileSync(e,"utf-8")}var ru=({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=Es(Kn(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
|
|
118
|
-
${i.message}`,location:n.child("description")})}}}});var nu=e=>({Info:{leave(t){if(!k(e))throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});var ou=({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=Es(Kn(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
|
|
119
|
-
${s.message}`,location:n.child("operationId").key()})}}}});var TY="x-internal",iu=({internalFlagProperty:e=TY})=>{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(B(n[p])&&o.resolve(n[p]).node?.[e]){if(k(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(k(n))for(let p of Object.keys(n)){if(B(n[p])){let l=o.resolve(n[p]);k(l.node)&&l.node?.[e]&&(delete n[p],c=!0)}k(n[p])&&n[p]?.[e]&&(delete n[p],c=!0)}c&&(hr(n)||Ql(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 su=({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=Es(Kn(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
120
|
-
${i.message}`})}}}});var rE={"operation-description-override":ou,"tag-description-override":su,"info-description-override":ru,"info-override":nu,"remove-x-internal":iu,"filter-in":Xl,"filter-out":Zl,"remove-unused-components":Yp};var oE=({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=nE(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:fg(Kn(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=nE(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:fg(Kn(a,r.config?.configPath))}}),t.requestBody=i}}}}});function nE(e,t){if(!B(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}var iE={"operation-description-override":ou,"tag-description-override":su,"info-description-override":ru,"info-override":nu,"remove-x-internal":iu,"filter-in":Xl,"filter-out":Zl,"media-type-examples-override":oE,"remove-unused-components":Qp};var sE={};var aE={};var cE=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;let o=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(let i of e)o.includes(i?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${o.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});function bc(e){return e?Object.keys(e):[]}function fi(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}function xc(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function pE(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 BT=an(lg(),1),HT=an(gE(),1),KT=an(zT(),1);function VT(e){return e==="draft4"?"id":"$id"}function pX(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var Pn=class{instances={};validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:p}=n,l=pX(p),u=this.getValidator(r,o,s,a,l);if(!u)return{valid:!0,errors:[]};let f={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,f),errors:(u.errors||[]).map(h)};function h(y){let b=y.message,x=y.keyword==="enum"?y.params.allowedValues:void 0;x&&(b+=` ${x.map(E=>`"${E}"`).join(", ")}`),y.keyword==="type"&&(b=`type ${b}`);let w=y.instancePath.substring(i.length+1),S=w.substring(w.lastIndexOf("/")+1);if(S&&(b=`\`${S}\` property ${b}`),y.keyword==="additionalProperties"||y.keyword==="unevaluatedProperties"){let E=y.params.additionalProperty||y.params.unevaluatedProperty;b=`${b} \`${E}\``,y.instancePath+="/"+cn(E)}return{...y,message:b,suggest:x}}}getAjv(t,r){if(!this.instances[r]){let n=VT(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 BT.default(o):new HT.default(o),(0,KT.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=VT(i);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}};var Lu=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Uu=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),GT=new WeakMap,lX=new kt(new un("assertion",""),"#/schema"),$n={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||k(e))return[];let o=Array.isArray(e)?e:[e],i=fi(t);return o.map(s=>!i?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:Ze(e)?r:k(n)?r.child(s).key():r.key()}).filter(ft)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||k(e))return[];let o=Array.isArray(e)?e:[e],i=fi(t);return o.map(s=>i?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:Ze(e)?r:k(n)?r.child(s).key():r.key()}).filter(ft)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||k(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`${JSON.stringify(o)} should be one of the predefined values`,location:Ze(e)?r:r.child(o).key()}).filter(ft),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(ft),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||k(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(ft)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||k(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`${JSON.stringify(o)} is disallowed`,location:Ze(e)?r:r.child(o).key()}).filter(ft),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`${JSON.stringify(n)} should be equal ${JSON.stringify(t)}`,location:Ze(e)?r:r.child(n).key()}).filter(ft):e!==t?[{message:`${JSON.stringify(e)} should be equal ${JSON.stringify(t)}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{let n=typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0;return(t?!n:n)?[]:[{message:t?"Should not be empty":"Should be empty",location:r}]},minLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length>=t?[]:[{message:`Should have at least ${t} characters`,location:r}],maxLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length<=t?[]:[{message:`Should have at most ${t} characters`,location:r}],casing:(e,t,{baseLocation:r})=>{if(typeof e>"u"||k(e))return[];let n=Array.isArray(e)?e:[e],o={camelCase:/^[a-z][a-zA-Z0-9]*$/g,"kebab-case":/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/g,snake_case:/^([a-z][a-z0-9]*)(_[a-z0-9]+)*$/g,PascalCase:/^[A-Z][a-zA-Z0-9]+$/g,MACRO_CASE:/^([A-Z][A-Z0-9]*)(_[A-Z0-9]+)*$/g,"COBOL-CASE":/^([A-Z][A-Z0-9]*)(-[A-Z0-9]+)*$/g,flatcase:/^[a-z][a-z0-9]+$/g};return n.map(i=>!i.match(o[t])&&{message:`${JSON.stringify(i)} should use ${t}`,location:Ze(e)?r:r.child(i).key()}).filter(ft)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,o=t.property;return Array.isArray(e)&&e.length>0&&k(e[0])&&!o?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||pE(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})=>xc(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(xc(e,t)>0?xc(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>xc(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=fi(t);return o&&i?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:o?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:o})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let i=GT.get(t);i||(i=new Pn,GT.set(t,i));let s=B(n)&&o(n)?.location||r,a;try{({errors:a}=i.validate(e,t,{schemaLoc:lX,instancePath:"",resolve:o,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(c){throw new Error(`the 'schema' assertion has an invalid schema: ${c.message}`)}return a.map(c=>{let p=c.instancePath?Vr(s.pointer,c.instancePath.slice(1)):s.pointer,l=new kt(s.source,p),u=c.keyword==="additionalProperties"||c.keyword==="unevaluatedProperties";return{message:c.message,location:u?l.key():l}})}};function WT(e){return(t,r,n)=>e.call(null,t,r,n)}var ob={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function YT(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&fi(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(ft)}function JT(e){let t=bc($n).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:Lu.has(o),runsOnValues:Uu.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 XT({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function ZT(e,t,r){let n=XT(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push(QT({assert:i,ctx:r,assertionProperty:s}));else o.push(QT({assert:i,ctx:r}));return o.flat()}function e1(e,t){let r=YT(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(!Ze(p.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);if(!k(p.assertions))throw new Error(`${e.assertionId} -> where -> [${c}]: 'assertions' (Object) is required`);let l=YT(p.subject),u=JT(p),f=(h,y,b)=>!l.every(x=>x(y))||!!ZT(p,u,{...b,node:h}).length,m={...(l.length||u.length)&&{skip:f}};p.subject.type===e.subject.type&&c===a.length-1?o[e.subject.type]={enter:t,...m.skip&&{skip:m.skip}||n&&{skip:(h,y,b)=>!!(m.skip?.(h,y,b)||n?.(h,y))}}:i=i[p.subject?.type]=m}return i[e.subject.type]=o[e.subject.type],s}function t1(e,t){return(r,n)=>{let o=XT(t),i=`${ae.blue(e)} failed because the ${ae.blue(t.subject.type)} ${ae.blue(o.join(", "))} didn't meet the assertions: ${ob.problems}`.replace(/ +/g," "),s=ZT(t,JT(t),{...n,node:r});if(s.length)for(let a of uX(s)){let c=t.message||i,l={problems:ib(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:sb(n.location.source.absoluteRef)};n.report({message:ab(c,l),location:dX(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function uX(e){let t={};for(let r of e){if(!r.location)continue;let n=r.location.absolutePointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function dX(e){return e.length?e[0].location:void 0}function ib(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
121
|
-
- ${t.message??""}`).join("")}function sb(e){return ce(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function ab(e,t){let r=e;for(let n of Object.keys(ob)){let o=ob[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function QT({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=B(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return $n[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return $n[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var Jt=e=>{let t=[],r=Object.values(e).filter(n=>k(n));for(let[n,o]of r.entries()){if(!Ze(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);if(!k(o.assertions))throw new Error(`${o.assertionId}: 'assertions' (Object) is required`);let i=t1(o.assertionId,o),s=e1(o,i);t.push(s)}return t};function fX(e){return k(e)||Array.isArray(e)}var En=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;let n=new Set,o=[];for(let[i,s]of e.enum.entries()){let a=fX(s);(a?o.some(p=>vr(p,s)):n.has(s))&&t({message:`Duplicated enum value found: '${a?JSON.stringify(s):s}'.`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),a?o.push(s):n.add(s)}}});var o1=an(n1(),1);function Pi(e){return Array.isArray(e)&&e.length>0}var $i=(e,t,r)=>{if(B(e)){let n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location,chain:n.chain}:{schema:void 0,location:r}}return{schema:e,location:r}},cb=(e,t,r,n,o)=>!!(e.properties&&Xe(e.properties,t)!==void 0||e.allOf?.some(i=>Jn(i,t,r,n,o))||Pi(e.anyOf)&&e.anyOf.every(i=>Jn(i,t,r,new Set(n),o))||Pi(e.oneOf)&&e.oneOf.every(i=>Jn(i,t,r,new Set(n),o))),Jn=(e,t,r,n=new Set,o)=>{if(B(e)&&cb(e,t,r,n,o))return!0;let{schema:i,location:s,chain:a}=$i(e,r,o);if(!i)return!1;if(!n.has(i)&&(n.add(i),cb(i,t,r,n,s)))return!0;for(let c of a??[])if(!(!k(c.node)||n.has(c.node))&&(n.add(c.node),cb(c.node,t,r,n,c.location)))return!0;return!1};function Ei(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Hs(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function Fu(e,t,r){if(Hs(e))return!0;if(!Array.isArray(e?.traits))return!1;for(let n of e.traits){let o=B(n)?t(n,r).node:n;if(Hs(o))return!0}return!1}function Qc(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return k(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Ai(e,t){return`${e} object should contain \`${t}\` field.`}function mX(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function i1(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Nr({fieldName:e,value:t,ctx:r,reference:n}){k(t)&&(t[e]===void 0?r.report({message:Ai(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:i1(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function s1({fieldNames:e,value:t,ctx:r,reference:n}){if(k(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:mX(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:i1(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function Ti(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,o1.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 zu(e){if(k(e)){if(St(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(St(e.value))return{value:e.value,field:"value"}}}function $o({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:f}=i;try{let{valid:m,errors:h}=s.validate(e,t,{schemaLoc:l.child("schema"),instancePath:o.pointer,resolve:p,allowAdditionalProperties:a,ajvContext:c,specVersion:f});if(!m)for(let y of h)u({message:`Example value must conform to the schema: ${y.message}.`,location:{...new kt(o.source,y.instancePath),reportOnKey:y.keyword==="unevaluatedProperties"||y.keyword==="additionalProperties"},from:l,suggest:y.suggest,reference:n})}catch(m){if(m.message==="discriminator: requires oneOf or anyOf composite keyword")return;u({message:`Example validation errored: ${m.message}.`,location:l.child("schema"),from:l,reference:n})}}var hX=10;function pb(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>hX?`\`${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:Ti(t,e)})}}function Ks({responseCodes:e,codeRange:t,report:r,reference:n,disallowDefault:o=!1}){let i=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(a=>!o&&t==="2XX"&&a==="default"||i.test(a))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Jc(e,t){return t?e.name.toLowerCase():e.name}var An=()=>({Schema(e,{report:t,location:r}){if(!k(e)||!e.type)return;let n=Array.isArray(e.type)?e.type:[e.type],o=i=>n.some(s=>Qc(i,s,e.nullable));if(Array.isArray(e.enum))for(let[i,s]of e.enum.entries())o(s)||t({message:Array.isArray(e.type)?`Enum value \`${s}\` must be of allowed types: \`${e.type}\`.`:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Ei(s)}".`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"});"const"in e&&!o(e.const)&&t({message:`The \`const\` value must be of the same type as the \`type\` field: expected "${n.join('" or "')}" but received "${Ei(e.const)}".`,location:r.child(["const"]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}});var Eo=()=>({Schema(e,{report:t,location:r}){typeof e.maximum=="number"&&typeof e.exclusiveMaximum=="number"&&t({message:"Schema should not have both `maximum` and `exclusiveMaximum`. Use one or the other.",location:r.child(["exclusiveMaximum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"}),typeof e.minimum=="number"&&typeof e.exclusiveMinimum=="number"&&t({message:"Schema should not have both `minimum` and `exclusiveMinimum`. Use one or the other.",location:r.child(["exclusiveMinimum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"})}});var Tn=()=>{let e=[],t=new Set,r=(n,o,i)=>{if(Pi(n.required))for(let[s,a]of n.required.entries())Jn(n,a,i,new Set,o)||i.report({message:`Required property '${a}' is not defined.`,location:o.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,o,i){if(o.type.name!=="Schema")return;let s=[{node:n,location:o.location},...i.chain??[]];for(let{node:a,location:c}of s)!k(a)||t.has(a)||(t.add(a),r(a,c,o))}},Schema:{leave(n){e.pop()},enter(n,o){if(e.push(n),!Pi(n.required))return;let i=(c,p)=>{let l=u=>$i(u,o).schema===p;return!!(c.allOf?.some(l)||c.anyOf?.some(l)||c.oneOf?.some(l))},s=(c,p)=>{if(c<0)return;let l=e[c];return i(l,p)?s(c-1,l)??l:void 0},a=s(e.length-2,n);for(let[c,p]of n.required.entries())!Jn(n,p,o)&&!Jn(a,p,o)&&o.report({message:`Required property '${p}' is not defined.`,location:o.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var Rn=()=>({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 On=()=>({any(e,{report:t,location:r}){typeof e.description=="string"&&(/<script\b/i.test(e.description)&&t({message:"Markdown descriptions must not contain '<script>' tags.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/<[a-z][^>]*\bon[a-z]+\s*=/i.test(e.description)&&t({message:"Markdown descriptions must not contain HTML event handler attributes.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/(?:\]\(\s*|\b(?:href|src)\s*=\s*["']?\s*)javascript:/i.test(e.description)&&t({message:"Markdown descriptions must not contain 'javascript:' URLs.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}))}});var Rt=()=>({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!==Fr&&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 m of l||[])e.hasOwnProperty(m)||t({message:`The field \`${m}\` must be present on this level.`,from:p,location:[{reportOnKey:!0}]});let u=r.allowed?.(e);if(u&&k(e))for(let m in e)u.includes(m)||r.extensionsPrefix&&m.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(m)||t({message:`The field \`${m}\` is not allowed here.`,from:p,location:n.child([m]).key()});let f=r.requiredOneOf||null;if(f){let m=!1;for(let h of f||[])e.hasOwnProperty(h)&&(m=!0);m||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:p,location:[{reportOnKey:!0}]})}for(let m of Object.keys(e)){let h=n.child([m]),y=e[m],b=Xe(r.properties,m);if(b===void 0&&(b=r.additionalProperties),typeof b=="function"&&(b=b(y,m)),_r(b))continue;let x=b,w=Ei(y);if(x===void 0){if(m.startsWith("x-"))continue;t({message:`Property \`${m}\` is not expected here.`,suggest:Ti(m,Object.keys(r.properties)),from:p,location:h.key()});continue}if(x!==null){if(x.resolvable!==!1&&B(y)&&(y=s(y).node),x.items&&x.items?.enum&&Array.isArray(y))for(let S=0;S<y.length;S++)pb(x.items?.enum,y[S],m,p,{report:t,location:n.child([m,S])},x.items?.documentationLink);if(x.enum)pb(x.enum,y,m,p,{report:t,location:n.child([m])},x.documentationLink);else if(x.type&&!Qc(y,x.type,!1))t({message:`Expected type \`${x.type}\` but got \`${w}\`.`,from:p,location:h}),a();else if(w==="array"&&x.items?.type){let S=x.items?.type;for(let E=0;E<y.length;E++){let P=y[E];Qc(P,S,!1)||t({message:`Expected type \`${S}\` but got \`${Ei(P)}\`.`,from:p,location:h.child([E])})}}typeof x.minimum=="number"&&x.minimum>e[m]&&t({message:`The value of the ${m} field must be greater than or equal to ${x.minimum}`,from:p,location:n.child([m])})}}}});var a1=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||k(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 c1=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=Xe(o,"scheme"),s=Xe(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 p1=()=>({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 l1=()=>{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 yX={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function u1(e,{report:t,location:r}){if(e)for(let n of e){if("schemeName"in n)continue;let{scheme:o,values:i}=n,s=o?.type==="http"?o.scheme:o?.type,a=o?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){pe.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let c=yX[a];if(c)for(let p of c)(!i||!(p in i))&&t({message:`The \`${p}\` 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 d1=()=>({Step:{enter(e,t){u1(e?.["x-security"],t)}},Workflow:{enter(e,t){u1(e?.["x-security"],t)}}});var f1=()=>({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 m1=()=>{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,f;for(;(f=u.exec(s))!==null;){let[m,h,y]=f,b=l.get(h);b?b.includes(y)||a({message:`Output key "${y}" is not defined in workflow "${h}". Available outputs: [ ${b.join(", ")} ].`,location:c.child(p)}):a({message:`Workflow "${h}" referenced in runtime expression "${m}" 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,f;for(;(f=u.exec(s))!==null;){let[m,h,y]=f,b=l.get(h);b?b.includes(y)||a({message:`Output key "${y}" is not defined in step "${h}". Available outputs: [ ${b.join(", ")} ].`,location:c.child(p)}):a({message:`Step "${h}" referenced in runtime expression "${m}" 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(k(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 h1=()=>({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 y1=()=>{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 g1=()=>{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 v1=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var gX=["x-operation","operationId","operationPath","channelPath","workflowId"],b1=()=>({Step:{enter(e,{report:t,location:r}){let n=gX.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 x1=()=>({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 S1=()=>({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 w1=()=>({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 _1=()=>{let e=new Set,t=new Set;return{SourceDescriptions:{enter(r){for(let n of r)e.add(n.name)}},Workflows:{enter(r){for(let n of r)t.add(n.workflowId)}},Workflow:{leave(r,{report:n,location:o}){if(!r.dependsOn)return;let i=new Set;for(let s of r.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];e.has(a)||n({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:o.child(["dependsOn",r.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!t.has(s)&&n({message:`Workflow ${s} must be defined in workflows.`,location:o.child(["dependsOn",r.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),i.has(s)&&n({message:"Every workflow in dependsOn must be unique.",location:o.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),i.add(s)}}}}};var P1=()=>{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 $1={assertions:Jt,"criteria-unique":f1,"no-criteria-xpath":a1,"no-duplicated-enum-values":En,"no-unsafe-markdown":On,"no-enum-type-mismatch":An,"no-mixed-number-range-constraints":Eo,"no-required-schema-properties-undefined":Tn,"no-schema-type-mismatch":Rn,"no-unresolved-refs":wt,"no-x-security-both-scheme-and-scheme-name":c1,"no-x-security-scheme-name-without-openapi":p1,"outputs-defined":m1,"parameters-unique":h1,"requestBody-replacements-unique":y1,"sourceDescription-name-unique":g1,"sourceDescription-type":cE,"sourceDescriptions-not-empty":v1,"spec-step-mutually-exclusive-fields":b1,"step-onFailure-unique":x1,"step-onSuccess-unique":S1,"stepId-unique":w1,struct:Rt,"workflow-dependsOn":_1,"workflowId-unique":P1,"x-security-scheme-name-reference":l1,"x-security-scheme-required-values":d1},E1={};var jr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Ai("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var Ao=()=>{let e;return{Root:{enter(t){e=Mn(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?s1({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Nr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var To=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=Jc(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}};var Ro=()=>({Root:{PathItem:{Operation(e,t){Nr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function vX(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=B(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=B(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var Gs=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:Ti(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"?vX(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 Oo=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(let o of Object.keys(e))o!=="$ref"&&t({message:`Property \`${o}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}});var ko=()=>({Tag(e,t){Nr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Io=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)Jc(t.tags[o],e)>Jc(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 A1=()=>({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 T1=()=>({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 R1="https://redocly.com/docs/cli/rules/async/security-defined",O1=()=>{let e=new Map,t=new Map,r=[],n,o=!1;return{Root:{leave(i,{report:s}){for(let[c,p]of e.entries())if(!p.defined)for(let l of p.from)s({message:`There is no \`${c}\` security scheme defined.`,location:l.key(),reference:R1});let a=[...t.keys()];for(let{location:c,channelServers:p}of r){let l=p??a;l.length>0&&l.every(f=>t.get(f))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:R1})}}},SecurityScheme(i,{key:s}){i!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=e.get(a),p=s.child([a]);c?c.from.push(p):e.set(a,{from:[p]})}},Components:{enter(){o=!0},leave(){o=!1}},Server(i,{key:s}){o||t.set(s.toString(),Hs(i))},Channel:{skip(){return o},enter(i){n=Array.isArray(i?.servers)&&i.servers.length>0?i.servers:void 0},Operation(i,{location:s,resolve:a}){Fu(i,a)||r.push({location:s,channelServers:n})}}}};var k1={struct:Rt,"no-unresolved-refs":wt,assertions:Jt,"info-contact":jr,"info-license-strict":Ao,"operation-operationId":Ro,"security-defined":O1,"channels-kebab-case":A1,"no-channel-trailing-slash":T1,"tag-description":ko,"tags-alphabetical":Io,"no-duplicated-enum-values":En,"no-unsafe-markdown":On,"no-duplicated-tag-names":To,"no-required-schema-properties-undefined":Tn,"no-enum-type-mismatch":An,"no-mixed-number-range-constraints":Eo,"no-schema-type-mismatch":Rn,"security-scopes-defined":Gs,"spec-ref-siblings":Oo},I1={};var C1=()=>({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 q1=()=>({Channel(e,{report:t,location:r}){e?.address?.endsWith("/")&&e?.address!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var N1="#/components/securitySchemes/",bX="#/components/",lb="https://redocly.com/docs/cli/rules/async/security-defined";function xX(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function SX(e){if(!e.startsWith(N1))return!1;let t=e.slice(N1.length);return t!==""&&!t.includes("/")}var j1=()=>{let e=[],t,r,n,o,i,s=(a,c,p)=>{let l=a.channel,u=B(l)?c(l,p):void 0,m=(B(l)?u?.node:l)?.servers,h,y;return m&&m.length>0?(h=m,y=u?.location?.source.absoluteRef??p):(h=t?Object.values(t):[],y=r),h.length===0?!1:h.every(b=>{let x=B(b)?c(b,y).node:b;return Hs(x)})};return{Root:{enter(a,{location:c,resolve:p}){let l=a?.servers;if(B(l)){let f=p(l);t=f.node??void 0,r=f.location?.source.absoluteRef}else t=l,r=void 0;let u=a?.operations;if(B(u)){let f=p(u);n=f.node??void 0,o=f.location?.source.absoluteRef,i=f.location}else n=u,o=void 0,i=c.child(["operations"])},leave(a,{report:c,resolve:p}){for(let l of e){if((l.local||l.refPointer.startsWith(bX))&&!SX(l.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:l.location.key(),reference:lb});continue}l.resolved||c({message:`There is no \`${l.name}\` security scheme defined.`,location:l.location.key(),reference:lb})}if(n&&i){let l=i;for(let[u,f]of Object.entries(n)){let m,h;if(B(f)){let y=p(f,o);m=y.node,h=y.location?.source.absoluteRef}else m=f,h=o;m&&(Fu(m,p,h)||s(m,p,h)||c({message:"Every operation should have security defined on it.",location:l.child([u]).key(),reference:lb}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:p}){if(a)for(let l=0;l<a.length;l++){let u=a[l];if(!B(u))continue;let f=c.child([l]),m=p(u),h=xX(u.$ref),y=h.split("/").pop()??u.$ref;e.push({location:f,name:y,refPointer:h,resolved:m.node!=null,local:u.$ref.startsWith("#")})}}}}};function wX(e,t,r){if(!e.flows)return[];let{node:n,location:o}=B(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=B(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var M1=e=>{let t=new Map;return{SecuritySchemeList(r,{resolve:n,location:o}){for(let i=0;i<r.length;i++){let s=r[i],a=B(s)?n(s):{node:s,location:o.child([i])};!a.node||!a.location||t.set(a.location.absolutePointer,{scheme:a.node,location:a.location,availableScopes:a.node.type==="oauth2"?wX(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:Ti(p,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var D1={struct:Rt,"no-unresolved-refs":wt,assertions:Jt,"info-contact":jr,"info-license-strict":Ao,"operation-operationId":Ro,"security-defined":j1,"channels-kebab-case":C1,"no-channel-trailing-slash":q1,"tag-description":ko,"tags-alphabetical":Io,"no-duplicated-enum-values":En,"no-unsafe-markdown":On,"no-duplicated-tag-names":To,"no-required-schema-properties-undefined":Tn,"no-enum-type-mismatch":An,"no-mixed-number-range-constraints":Eo,"no-schema-type-mismatch":Rn,"security-scopes-defined":M1,"spec-ref-siblings":Oo},L1={};function F1(e){return bc($n).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Lu.has(t),runsOnValues:Uu.has(t)}))}var z1=e=>{let t=Object.values(e).filter(k),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;if(!k(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);let i=F1(n),s=_X(n);r.push({[o]:(a,c)=>{PX(a,c,s)&&$X(a,c,n,i)}})}return r};function _X(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!Ze(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!k(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:F1(t)}}):[]}function PX(e,t,r){let n=r,o=r.at(-1);if(o&&o.kind===e.kind){if(!U1(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&&U1(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function U1(e,t,r){let{value:n}=V1(e,t.definition.subject.property),o=new kt(r.source,"#/");return t.assertsToApply.every(i=>$n[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function $X(e,t,r,n){let o=B1(r.subject.property),{value:i,locNode:s}=V1(e,r.subject.property),a=new kt(t.source,"#/"),c=n.flatMap(l=>$n[l.name](i,l.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let p=`${ae.blue(r.assertionId)} failed because the ${ae.blue(r.subject.type)} ${ae.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:ab(r.message??p,{problems:ib(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:sb(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function ub(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 V1(e,t){let r=B1(t);if(r===void 0)return ub(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>ub(i).value),locNode:e};let o=ub(n);return{value:o.value,locNode:EX(o.locNode)?o.locNode:e}}function EX(e){return k(e)&&"kind"in e}function B1(e){return Array.isArray(e)?e[0]:e}var AX=["Query","Mutation","Subscription"];function TX(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var H1=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=l=>t.add(TX(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 f of u.arguments??[])o(f.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 f of AX)e.has(f)&&r.add(f);if(r.size!==0)for(let[f,m]of e)t.has(f)||r.has(f)||u.report({message:`Type \`${f}\` is declared but never used.`,node:m})}}}};var Ws=an(iq(),1),K1=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,Ws.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){RX(n,t);return}for(let n of(0,Ws.validateSchema)(r))G1(n,t)}}});function RX(e,t){if(e instanceof Ws.GraphQLError)G1(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function G1(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 W1=()=>{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 Y1={struct:K1,assertions:z1,"no-unused-types":H1,"type-description":W1};var Ys=()=>({Info(e,{report:t}){e.license||t({message:Ai("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var Vu=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let o of Object.keys(e)){let i=OX(o),s=`${i.segments.length}:${i.variableCount}`,a=n.get(s);a||(a=[],n.set(s,a));let c;for(let p of a)if(kX(p,i)){c=p;break}c&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${c.path}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),a.push(i)}}});function OX(e){let t=e.split("/"),r=[],n=0;for(let o of t){let i=/^{.+?}$/.test(o);r.push(i),i&&n++}return{path:e,segments:t,isVariable:r,variableCount:n}}function kX(e,t){for(let r=0;r<e.segments.length;r++)if(!(e.isVariable[r]||t.isVariable[r])&&e.segments[r]!==t.segments[r])return!1;return!0}function Bu(e){return e.startsWith("{")&&e.endsWith("}")}function Q1(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(ft).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 IX=["get","head","post","put","patch","delete","options","trace"],Hu=({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||Bu(c))continue;let p=l=>e?Q1(c).has(l):c.toLocaleLowerCase().includes(l);for(let l of IX)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 Ku=()=>({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 Gu=e=>{let t=new Pn;return{Parameter:{leave(r,n){if(St(r.example)&&$o({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"}),k(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=zu(i);s&&$o({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 Wu=e=>{let t=new Pn;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)$o({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(St(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;$o({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 Yu=()=>({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 Qu=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){let o=Object.keys(r||{});Ks({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}},WebhooksMap:{Responses(r,{report:n}){if(!e)return;let o=Object.keys(r||{});Ks({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}});var Ju=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Ks({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||{});Ks({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}});var Xu=()=>({Operation(e,t){Nr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var Zu=()=>{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 CX=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,ed=()=>({Operation(e,{report:t,location:r}){e.operationId&&!CX.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 td=()=>{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.
|
|
122
|
-
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 rd=()=>({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 nd=()=>({Operation(e,t){Nr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var od=()=>{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 id=()=>({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 sd=()=>({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 qX=["get","head","post","put","patch","delete","options","query","trace"],ad=e=>{let t=e&&e.order||qX;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 cd=()=>({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 NX=/\{([a-zA-Z0-9_.-]+)\}+/g,jX=2,Qs=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){J1(e,n)},leave(){MX(e)},Parameter(r,{report:n,location:o,rawLocation:i}){X1({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:Z1(e,new Set)}}},J1=(e,t)=>{e.current={path:t,templateParams:DX(t),definedParams:new Set}},MX=e=>{e.current=null},X1=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),eR({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},Z1=(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>=jX)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,J1(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:p}){X1({parameter:s,pathContext:e,report:a,location:c,rawLocation:p})},get Operation(){return Z1(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||UX({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}){LX(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),eR({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},DX=e=>new Set(Array.from(e.matchAll(NX)).map(t=>t[1])),LX=(e,t)=>{k(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},eR=({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"})}},UX=({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 tR=an(Jd(),1);var pd=e=>{let{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:o,key:i,location:s}){let a=i.toString();if(a.startsWith("/")){let c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(let p of c)r&&r.includes(p)||!Bu(p)&&tR.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 ld=()=>({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 ud=()=>{let e,t;return{Schema:{enter(r){if(!r?.required){e=!0;return}t=new Set(r.required),e=!1},SchemaProperties:{skip(){return e},Schema:{enter(r,{key:n,location:o,report:i}){t.has(n)&&r.type==="string"&&(r?.minLength||i({message:"Property minLength is required.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function Xn(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var dd=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[Xn(i)]||t[Xn(i).toLowerCase()]||[];for(let a of s)(!r?.headers||!Object.keys(r?.headers).some(c=>c.toLowerCase()===a.toLowerCase()))&&n({message:`Response object must contain a "${a}" header.`,location:o.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}};var rR=["string","integer","number","boolean","null"],fd=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(Xe(e,i)).node;!s||!FX(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 FX(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>rR.includes(t)):rR.includes(e.type)}var md=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 hd=()=>{let e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:o,type:i}){!e.includes(i.name)&&B(n)&&r({message:"Field $ref is not expected here.",location:o.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}};var nR=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 Js({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 Co({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 oR=({allowedValues:e})=>({Root(t,r){Js({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){Js({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var iR=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[Xn(r)]||t[Xn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}};var sR=({allowedValues:e})=>({Root(t,r){Js({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){Js({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var aR={struct:Rt,"no-invalid-schema-examples":Wu,"no-invalid-parameter-examples":Gu,"info-contact":jr,"info-license":Ys,"info-license-strict":Ao,"tag-description":ko,"tags-alphabetical":Io,"paths-kebab-case":ld,"no-enum-type-mismatch":An,"boolean-parameter-prefixes":nR,"no-path-trailing-slash":Yu,"operation-2xx-response":Qu,"operation-4xx-response":Ju,assertions:Jt,"operation-operationId-unique":Zu,"operation-parameters-unique":td,"path-parameters-defined":Qs,"operation-tag-defined":od,"path-declaration-must-exist":sd,"operation-operationId-url-safe":ed,"operation-operationId":Ro,"operation-summary":nd,"operation-description":Xu,"path-not-include-query":cd,"path-params-defined":Qs,"parameter-description":id,"operation-singular-tag":rd,"security-defined":md,"security-scopes-defined":Gs,"no-unresolved-refs":wt,"no-identical-paths":Ku,"no-ambiguous-paths":Vu,"path-http-verbs-order":ad,"no-http-verbs-in-paths":Hu,"request-mime-type":oR,"response-mime-type":sR,"path-segment-plural":pd,"response-contains-header":dd,"response-contains-property":iR,"scalar-property-missing-example":fd,"required-string-property-missing-min-length":ud,"spec-strict-refs":hd,"spec-ref-siblings":Oo,"no-required-schema-properties-undefined":Tn,"no-schema-type-mismatch":Rn,"no-duplicated-enum-values":En,"no-unsafe-markdown":On,"no-duplicated-tag-names":To},cR={};var pR=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=B(t.schema)?r.resolve(t.schema).node:t.schema;n&&zX(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 zX(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 lR=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(i=>`\`${i}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(i,{report:s,parentLocations:a},c){i.type==="boolean"&&!r.test(c.Parameter.name)&&s({message:`Boolean parameter \`${c.Parameter.name}\` should have ${o} prefix.`,location:a.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}};var Xs="Schema",db="Parameter",fb="Response",mb="RequestBody",VX={[Xs]:"schemas",[db]:"parameters",[fb]:"responses",[mb]:"requestBodies"},uR=e=>{let t=new Map,r=new Map,n=e.strategy==="title",o,i=[];e.schemas!=="off"&&i.push(Xs),e.parameters!=="off"&&i.push(db),e.responses!=="off"&&i.push(fb),e.requestBodies!=="off"&&i.push(mb);let s={ref:{leave(u,{type:f,resolve:m,location:h}){let y=f.name;if(i.includes(y)){let b=m(u);if(!b.location)return;let x=Jo(b);if(l(y,x.location,h)){let{title:w,name:S}=Wp(x.node);if(w){c(y,S,x.location,x.location.child("title"));return}r.set(x.location.absolutePointer.toString(),x.location),p(y,x.location);return}p(y,b.location)}}},Root:{enter(u,{location:f}){o=f.source.absoluteRef},leave(u,f){t.forEach((m,h,y)=>{if(m.size>1){let b=KX(h),x=BX(b.typeName),w=x?e[x]:null;for(let[S,E]of m){let P=Array.from(m.keys()).filter(N=>N!==S).map(N=>`- ${N}`).join(`
|
|
123
|
-
`),T={message:`Component '${x}/${b.componentName}' is not unique. It is also defined at:
|
|
124
|
-
${P}`,location:E,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};w&&(T.forceSeverity=w),f.report(T)}}});for(let m of r.values()){let h={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:m,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&(h.forceSeverity=e.schemas),f.report(h)}}}};return e.schemas!="off"&&(s.NamedSchemas={Schema(u,{location:f,key:m,parentLocations:h}){if(l(Xs,f)){c(Xs,String(m),h.NamedSchemas.child(m));return}p(Xs,f)}}),e.responses!="off"&&(s.NamedResponses={Response(u,{location:f}){p(fb,f)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(u,{location:f}){p(db,f)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(u,{location:f}){p(mb,f)}}),s;function a(u){let f=u.split("/").slice(-1)[0];return Sa(f)?f.slice(0,f.lastIndexOf(".")):f}function c(u,f,m,h=m){let y=HX(u,f),b=t.get(y)??new Map,x=m.absolutePointer.toString();b.has(x)||b.set(x,h),t.set(y,b)}function p(u,f){let m=a(f.absolutePointer.toString());c(u,m,f)}function l(u,f,m=f){return n&&u===Xs&&(f.source.absoluteRef!==o||m.source.absoluteRef!==o)}};function BX(e){return VX[e]??null}function HX(e,t){return`${e}/${t}`}function KX(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var dR=()=>({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 fR=()=>({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 GX=new Set(["type","format","enum","const","nullable","properties","required","additionalProperties","discriminator","$ref","$id","$schema","$anchor","$comment","title","description","default","example","examples","deprecated","readOnly","writeOnly","externalDocs","xml"]),vR=()=>({AllOf(e,t){let r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!WX(e[0],t.resolve))&&hb(e,"allOf",t),yb(e,"allOf",t),gb(e,"allOf",t))},AnyOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let n=k(r.discriminator);e.length<2&&!n&&hb(e,"anyOf",t),yb(e,"anyOf",t),gb(e,"anyOf",t),n&&mR(e,"anyOf",t)},OneOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let{discriminator:n}=r,o=k(n);e.length<2&&!o&&hb(e,"oneOf",t),yb(e,"oneOf",t),gb(e,"oneOf",t),o&&mR(e,"oneOf",t),gd(r)&&YX(e,t),QX(e,o?n:void 0,t)}});function hb(e,t,r){let n=e.length===1?" Use the schema directly instead.":"";r.report({message:`\`${t}\` should have at least two schemas.${n}`,location:r.location.key()})}function WX(e,t){return k(Xc(e,t)?.schema.discriminator)}function yb(e,t,r){for(let[n,o]of e.entries())k(o)&&Object.keys(o).length===0&&r.report({message:`Schema in \`${t}\` is empty, so it matches any value.`,location:r.location.child([n])})}function mR(e,t,r){for(let[n,o]of e.entries())B(o)||k(o)&&"$id"in o||r.report({message:`Schema in \`${t}\` is inline, so the \`discriminator\` cannot select it. Use a \`$ref\` to a named schema.`,location:r.location.child([n])})}function gb(e,t,r){for(let n=1;n<e.length;n++){let o=e.findIndex(i=>vr(i,e[n]));o<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${o+1}.`,location:r.location.child([n])})}}function YX(e,t){e.some(n=>{let o=Xc(n,t.resolve);return o?gd(o.schema):!1})&&t.report({message:"The schema and a schema in `oneOf` both accept `null`, so nothing decides which one applies to a null value.",location:t.location.key()})}function QX(e,t,r){let{resolve:n,report:o,location:i}=r,s=r.specVersion!=="oas3_2",a=e.map(c=>Xc(c,n));for(let c=0;c<a.length-1;c++){let p=a[c];if(p)for(let l=c+1;l<a.length;l++){let u=a[l];if(!u||vr(e[c],e[l]))continue;let f=JX(p,u,n,t,s);f&&o({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${hR(e[c],c)} and ${hR(e[l],l)}. ${f}`,location:i.key()})}}}function hR(e,t){return B(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function JX(e,t,r,n,o){let i=e.schema,s=t.schema;if(yd(i)||yd(s)||bR(i,s))return null;if(gd(i)&&gd(s))return"Both schemas accept `null`.";let a=ep(i),c=ep(s);if(a&&c){let l=a.filter(u=>c.some(f=>vr(u,f)));return`Both schemas allow the values ${JSON.stringify(l)}.`}if(n)return o?XX(i,s,n):null;let p=ZX(e,t,r);if(p)return p;if(!i.properties&&!s.properties){let l=SR(i,s);if(l?.length)return`Both schemas accept ${l.map(u=>`\`${u}\``).join(", ")}.`}return null}function XX(e,t,r){let{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:St(Xe(e.properties??{},n))&&St(Xe(t.properties??{},n))?`Add \`${n}\` to \`required\` in every schema; the \`discriminator\` cannot read a property a value may omit.`:`Declare \`${n}\` in every schema and add it to \`required\`; the \`discriminator\` cannot read a property a value may omit.`}function ZX(e,t,r){let n=eZ(e,t);if(!n||yR(e.schema,n.leftProperties,n.rightRequired)||yR(t.schema,n.rightProperties,n.leftRequired)||tZ(n)||n.sharedNames.length===0)return null;let o=rZ(n,r);if(!o)return null;let{optionalDistinguishingNames:i,ambiguousNames:s}=o;if(i.length>0){let a=s.length>0?` Other shared properties: ${vb(s)}.`:"";return`Add ${vb(i)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${a}`}return s.length>0?`Both schemas define ${vb(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function eZ(e,t){let r=e.schema.properties,n=t.schema.properties;return!r||!n?null:{leftSource:e.source,rightSource:t.source,leftProperties:r,rightProperties:n,leftRequired:new Set(e.schema.required??[]),rightRequired:new Set(t.schema.required??[]),sharedNames:Object.keys(r).filter(o=>Xe(n,o))}}function tZ({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){let o=[...r].some(s=>!Xe(t,s)&&!n.has(s)),i=[...n].some(s=>!Xe(e,s)&&!r.has(s));return o&&i}function rZ({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:o,rightRequired:i,sharedNames:s},a){let c=[],p=[];for(let l of s){let u=o.has(l)&&i.has(l),f=Xc(Xe(r,l),a,e),m=Xc(Xe(n,l),a,t);if(!(!f||!m)&&!(yd(f.schema)||yd(m.schema))){if(bR(f.schema,m.schema)){if(u)return null;c.push(l);continue}p.push(l)}}return{optionalDistinguishingNames:c,ambiguousNames:p}}function yR(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!Xe(t,n))}function bR(e,t){let r=ep(e),n=ep(t);return r&&n?!r.some(o=>n.some(i=>vr(o,i))):SR(e,t)?.length===0}function Xc(e,t,r){if(B(e)){let{node:n,location:o}=t(e,r);return k(n)?{schema:n,source:o?.source.absoluteRef}:void 0}return k(e)?{schema:e,source:r}:void 0}function yd(e){return Object.keys(e).some(t=>!GX.has(t)&&!t.startsWith("x-"))}function xR(e){return"nullable"in e&&e.nullable===!0}function Zc(e){let t=e.type;if(t===void 0)return;let r=new Set(Array.isArray(t)?t:[t]);return xR(e)&&r.add("null"),r}function SR(e,t){let r=Zc(e),n=Zc(t);if(!r||!n)return;let o=[...r].filter(i=>n.has(i));return o.length===0&&nZ(e,t)?["integer"]:o}function nZ(e,t){let r=Zc(e),n=Zc(t);return r?.has("integer")&&n?.has("number")?gR(t):r?.has("number")&&n?.has("integer")?gR(e):!1}function gR(e){let t=ep(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function gd(e){return xR(e)||Zc(e)?.has("null")===!0}function ep(e){if(e.enum)return e.enum;let t="const"in e?e.const:void 0;return St(t)?[t]:void 0}function vb(e){return e.map(t=>`\`${t}\``).join(", ")}var wR=e=>{let t=new Pn,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(St(i.example))p(i.example,a.child("example"));else if(k(i.examples))for(let l of Object.keys(i.examples))p(i.examples[l],a.child(["examples",l]),!0);function p(l,u,f){if(B(l)){let h=c(l);if(!h.location)return;u=h.location,l=h.node}let m=l;if(f){let h=zu(l);if(!h)return;m=h.value,u=u.child(h.field)}$o({example:m,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 _R=()=>({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 PR=()=>({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 ER=()=>({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=$R(o);i&&n.push(...i)}else{let o=$R(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 $R(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 AR=()=>({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 TR=()=>{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=>B(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 RR=()=>({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 bb="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",OR=()=>({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:bb})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Nr({fieldName:"schema",value:e,ctx:t,reference:bb}),!e.schema)return;let{schema:r,location:n}=$i(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(let o of["type","title"])Jn(e.schema,o,t)||t.report({message:Ai("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:bb})}}}});var kR=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Co({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){Co({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Co({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var IR=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},MediaType:{Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[Xn(r)]||t[Xn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}};var CR=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Co({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){Co({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Co({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var qR=()=>{let e=`^[${mp}]+$`;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 NR=()=>{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=$i(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 jR=()=>({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 MR=()=>({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 DR=()=>{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 LR(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function UR(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 FR(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 zR=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,UR(LR(n.parameters||[]),o)},Parameter(n,o){FR(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+LR(n.parameters||[]);UR(i,o)},Parameter(n,o){FR(n,o.location,t,o)}}}}};var VR=()=>({ref:{leave(e,{report:t,location:r,type:n,specVersion:o}){let i=o!=="oas3_0";if(!(i&&n.name==="Schema"||n.name==="PathItem"))for(let s of Object.keys(e))s!=="$ref"&&(i&&(s==="summary"||s==="description")||t({message:`Property \`${s}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(s).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"}))}}});var BR={struct:Rt,"info-contact":jr,"info-license":Ys,"info-license-strict":Ao,"operation-2xx-response":Qu,"operation-4xx-response":Ju,"operation-4xx-problem-details-rfc7807":OR,assertions:Jt,"operation-operationId-unique":Zu,"operation-parameters-unique":td,"operation-tag-defined":od,"no-example-value-and-externalValue":fR,"no-mixed-number-range-constraints":Eo,"no-enum-type-mismatch":An,"no-path-trailing-slash":Yu,"no-empty-servers":dR,"path-declaration-must-exist":sd,"operation-operationId-url-safe":ed,"operation-operationId":Ro,"operation-summary":nd,"tags-alphabetical":Io,"no-server-example.com":_R,"no-server-trailing-slash":PR,"tag-description":ko,"operation-description":Xu,"no-unused-components":TR,"path-not-include-query":cd,"path-parameters-defined":Qs,"path-params-defined":Qs,"parameter-description":id,"operation-singular-tag":rd,"security-defined":md,"security-scopes-defined":Gs,"no-unresolved-refs":wt,"paths-kebab-case":ld,"boolean-parameter-prefixes":lR,"path-http-verbs-order":ad,"no-illogical-composition-keywords":vR,"no-invalid-media-type-examples":wR,"no-identical-paths":Ku,"no-ambiguous-paths":Vu,"no-undefined-server-variable":AR,"no-server-variables-empty-enum":ER,"no-http-verbs-in-paths":Hu,"request-mime-type":kR,"response-mime-type":CR,"path-segment-plural":pd,"no-invalid-schema-examples":Wu,"no-invalid-parameter-examples":Gu,"response-contains-header":dd,"response-contains-property":IR,"scalar-property-missing-example":fd,"spec-components-invalid-map-name":qR,"required-string-property-missing-min-length":ud,"spec-strict-refs":hd,"component-name-unique":uR,"array-parameter-serialization":pR,"no-required-schema-properties-undefined":Tn,"no-schema-type-mismatch":Rn,"no-duplicated-enum-values":En,"no-unsafe-markdown":On,"no-duplicated-tag-names":To,"nullable-type-sibling":RR,"spec-no-invalid-tag-parents":DR,"spec-no-invalid-encoding-combinations":MR,"spec-discriminator-defaultMapping":NR,"spec-example-values":jR,"spec-querystring-parameters":zR,"spec-ref-siblings":VR},HR={};var KR=()=>{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 GR=()=>({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 WR=()=>({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 YR={struct:Rt,"no-unresolved-refs":wt,assertions:Jt,"info-license":Ys,"no-unused-components":KR,"info-contact":jr,"spec-no-duplicated-method-params":GR,"spec-no-required-params-after-optional":WR,"spec-ref-siblings":Oo},QR={};var oZ=["$ref","target","description"],JR=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name==="ReusableAction"){for(let o of Object.keys(e))oZ.includes(o)||o.startsWith("x-")||t({message:`Property \`${o}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"});Object.hasOwn(e,"target")||t({message:"The field `target` must be present next to `$ref`.",location:r.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}}});var XR={"info-contact":jr,struct:Rt,"no-unresolved-refs":wt,"spec-ref-siblings":JR,assertions:Jt},ZR={};var iZ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_1Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_2Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-querystring-parameters":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"error","spec-ref-siblings":"error"},openrpc1Rules:{"info-contact":"error","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},eO=iZ;var sZ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","nullable-type-sibling":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-discriminator-defaultMapping":"off","spec-example-values":"off","spec-no-invalid-encoding-combinations":"warn","spec-no-invalid-tag-parents":"warn","spec-querystring-parameters":"error","spec-ref-siblings":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off","spec-ref-siblings":"off"},graphqlRules:{"no-unused-types":"off","type-description":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"off"}},tO=sZ;var aZ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":{severity:"error",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","nullable-type-sibling":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off","spec-ref-siblings":"error"},openrpc1Rules:{"info-contact":"off","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},rO=aZ;var cZ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"warn","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","nullable-type-sibling":"error","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"warn","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off","spec-ref-siblings":"warn"},openrpc1Rules:{"info-license":"warn","no-unused-components":"warn","info-contact":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"warn"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},nO=cZ;var pZ={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":{severity:"off",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","nullable-type-sibling":"error","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-illogical-composition-keywords":"off","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-ref-siblings":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off","spec-ref-siblings":"error"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off","spec-ref-siblings":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off","spec-ref-siblings":"error"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},oO=pZ;var lZ={recommended:nO,"recommended-strict":rO,minimal:tO,all:eO,spec:oO},xb={id:"",rules:{oas3:BR,oas2:aR,async2:k1,async3:D1,arazzo1:$1,overlay1:XR,openrpc1:YR,graphql:Y1},preprocessors:{oas3:HR,oas2:cR,async2:I1,async3:L1,arazzo1:E1,overlay1:ZR,openrpc1:QR},decorators:{oas3:iE,oas2:rE,async2:Z$,async3:eE,arazzo1:X$,overlay1:aE,openrpc1:sE},configs:lZ};function vd(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}import*as iO from"node:url";var Sb=new Map,uZ="v",dZ=0;function sO(e){return Sb.has(e)}function aO(e){return Sb.get(e)}function cO(e,t){Sb.set(e,t)}async function pO(e){let t=iO.pathToFileURL(e);return t.searchParams.set(uZ,String(dZ)),import(t.href)}async function _b({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:o}){let i=e===void 0?LS:e.parsed;if(n!==void 0&&k(i)&&(i.extends=n),k(i)&&(i?.extends?.some(Yl)||i?.scorecardClassic?.levels?.some(m=>m?.extends?.some(Yl))||i?.scorecard?.levels?.some(m=>m?.extends?.some(Yl))))throw new Error("Configuration format not detected in extends: values must be strings.");let s=e??{source:new un(t??"",JSON.stringify(i)),parsed:i},a=await gr({rootDocument:s,rootType:ho.ConfigRoot,externalRefResolver:r??new or(vd(i?.resolve))}),c=[],p,l="";gt?p=[...(i?.plugins||[]).filter(h=>!Ze(h)),xb]:(l=Xt.dirname(t??""),c=uO(s,a,l),p=[...await mO(c.map(h=>lO(h)?h.absolutePath:h),l,o),xb]);let u=dO(s,yS(a),p,o);u.apis&&!o&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([m,h])=>{let y=Cp([u,h]);return[m,{...h,...y}]})));let f=c.length?c.map(m=>lO(m)&&m.isModule?m.rawPath:m.absolutePath&&Xt.relative(l,m.absolutePath)).filter(St):void 0;return{resolvedConfig:{...u,plugins:f},resolvedRefMap:a,plugins:p}}function mZ(e){for(let t of FS){let r=Xt.resolve(e,t);if(wb.existsSync(r))return t}}function lO(e){return"isModule"in e}var bd=(e,t,r)=>{if(!Ze(e))return e;let n=Xt.resolve(Xt.dirname(t),e);if(wb.existsSync(n))return{absolutePath:n,rawPath:e,isModule:!1};try{return{absolutePath:fZ.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?Xt.dirname(fO.fileURLToPath(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function mO(e,t,r=!1){if(!e)return[];let n=async c=>{if(!Ze(c))return c;try{let p=Xt.isAbsolute(c)?c:bd(c,Xt.join(t,os),t).absolutePath;if(!sO(p)){let l=await pO(p),u=l.default||l,f={contentDir:t},m=Array.isArray(u)?u:[u];for(let b of m)b?.id&&xm(b)&&pe.info(`Deprecated plugin format detected: ${b.id}
|
|
125
|
-
`);let h=xm(u)?u:gS(u)?await u(f):await u?.default?.(f),y=Array.isArray(h)?h:[h];h&&cO(p,y.map(b=>({...b,path:c,absolutePath:p})))}return aO(p)}catch(p){throw new Error(`Failed to load plugin "${c}": ${p.message}
|
|
126
|
-
|
|
127
|
-
${p.stack}`)}},o=new Map,i=mZ(t);i&&e.push(i);let s=new Set;if(r){let c=[];for(let p of e){if(!Ze(p)){c.push(p);continue}let l=Xt.isAbsolute(p)?p:bd(p,Xt.join(t,os),t).absolutePath;s.has(l)||(s.add(l),c.push({absolutePath:l}))}return c}return(await Promise.all(e.map(async c=>{if(Ze(c)){if(ce(c))throw new Error(ae.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 f=u.id;if(typeof f!="string")throw new Error(ae.red(`Plugin must define \`id\` property in ${ae.blue(c.toString())}.`));let m=u.absolutePath??c.toString(),h=o.get(f);if(h){if(m!==h)throw new Error(ae.red(`Plugin "id" must be unique. Plugin ${ae.blue(m)} uses id "${ae.blue(f)}" already seen in ${ae.blue(m)}`));return}o.set(f,m);let y={id:f,...u.configs?{configs:u.configs}:{},...u.typeExtension?{typeExtension:u.typeExtension}:{}};if(u.rules){if(!u.rules.oas3&&!u.rules.oas2&&!u.rules.async2&&!u.rules.async3&&!u.rules.arazzo1&&!u.rules.overlay1&&!u.rules.openrpc1&&!u.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);y.rules={},u.rules.oas3&&(y.rules.oas3=tt(u.rules.oas3,f)),u.rules.oas2&&(y.rules.oas2=tt(u.rules.oas2,f)),u.rules.async2&&(y.rules.async2=tt(u.rules.async2,f)),u.rules.async3&&(y.rules.async3=tt(u.rules.async3,f)),u.rules.arazzo1&&(y.rules.arazzo1=tt(u.rules.arazzo1,f)),u.rules.overlay1&&(y.rules.overlay1=tt(u.rules.overlay1,f)),u.rules.openrpc1&&(y.rules.openrpc1=tt(u.rules.openrpc1,f)),u.rules.graphql&&(y.rules.graphql=tt(u.rules.graphql,f))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1&&!u.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);y.preprocessors={},u.preprocessors.oas3&&(y.preprocessors.oas3=tt(u.preprocessors.oas3,f)),u.preprocessors.oas2&&(y.preprocessors.oas2=tt(u.preprocessors.oas2,f)),u.preprocessors.async2&&(y.preprocessors.async2=tt(u.preprocessors.async2,f)),u.preprocessors.async3&&(y.preprocessors.async3=tt(u.preprocessors.async3,f)),u.preprocessors.arazzo1&&(y.preprocessors.arazzo1=tt(u.preprocessors.arazzo1,f)),u.preprocessors.overlay1&&(y.preprocessors.overlay1=tt(u.preprocessors.overlay1,f)),u.preprocessors.openrpc1&&(y.preprocessors.openrpc1=tt(u.preprocessors.openrpc1,f))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1&&!u.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);y.decorators={},u.decorators.oas3&&(y.decorators.oas3=tt(u.decorators.oas3,f)),u.decorators.oas2&&(y.decorators.oas2=tt(u.decorators.oas2,f)),u.decorators.async2&&(y.decorators.async2=tt(u.decorators.async2,f)),u.decorators.async3&&(y.decorators.async3=tt(u.decorators.async3,f)),u.decorators.arazzo1&&(y.decorators.arazzo1=tt(u.decorators.arazzo1,f)),u.decorators.overlay1&&(y.decorators.overlay1=tt(u.decorators.overlay1,f)),u.decorators.openrpc1&&(y.decorators.openrpc1=tt(u.decorators.openrpc1,f))}return u.assertions&&(y.assertions=u.assertions),{...u,...y}}))).filter(St)}))).filter(St).flat()}function hO(e,t){let{pluginId:r,configName:n}=hS(e),o=t.find(s=>s.id===r);if(!o)throw new Error(`Invalid config ${ae.red(e)}: plugin ${r} is not included.`);let i=o.configs?.[n];if(!i)throw new Error(r?`Invalid config ${ae.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${ae.red(e)}: there is no such built-in config.`);return i}function Pb({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=(e.extends||[]).filter(ft).map(o=>{if(!ce(o)&&!hZ.extname(o))return hO(o,r);let i=t.resolve({$ref:o});return i.location&&i.node!==void 0?i.node:null}).filter(ft);return Cp([...n.map(o=>Pb({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function xd(e,t){if(k(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>bd(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var yO=qt([{severity:"error",ruleId:Xp,visitor:{ref:{},ConfigGovernance:{leave(e,t){xd(e,t)}},ConfigApisProperties:{leave(e,t){xd(e,t)}},[_t.ScorecardClassicLevel]:{leave(e,t){xd(e,t)}},ConfigRoot:{leave(e,t){xd(e,t)}}}}],ho);function Sd(e,t){if(k(e)&&e.extends){let{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;let o=Pb({node:e,ctx:t,plugins:r});Object.assign(e,o),delete e.extends}}var gO=qt([{severity:"error",ruleId:Jp,visitor:{ref:{leave(e,t,r){ua(e,r,t)}},ConfigGovernance:{leave(e,t){Sd(e,t)}},ConfigApisProperties:{leave(e,t){Sd(e,t)}},[_t.ScorecardClassicLevel]:{leave(e,t){Sd(e,t)}},ConfigRoot:{leave(e,t){Sd(e,t)}}}}],ho);function uO(e,t,r){let n={plugins:[],rootConfigDir:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Xp]:n}};return Nt({document:e,rootType:ho.ConfigRoot,normalizedVisitors:yO,resolvedRefMap:t,ctx:o}),n.plugins}function dO(e,t,r,n=!1){let o={plugins:r,skipPluginEval:n},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Jp]:o}};return Nt({document:e,rootType:ho.ConfigRoot,normalizedVisitors:gO,resolvedRefMap:t,ctx:i}),e.parsed??{}}async function yZ(e){let{ref:t,doc:r,externalRefResolver:n=new or(e.config.resolve),base:o=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
128
|
-
`);let i=r===void 0?await n.resolveDocument(o,t,!0):r;if(i instanceof Error)throw i;return e.collectSpecData?.(i),Dm({document:i,...e,externalRefResolver:n,types:Do(Mn(i.parsed))})}import*as sn from"node:path";var Ci=an(Mk(),1);var ere=150,tre=3;function Id(e,t){Aa.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-tre+1,0);c<2&&(c=0);let p=[],l=0;for(let f=s;f<=a&&!(c>0&&f>=a-c);f++){let m=i[f-1]||"";m!==""&&(l=kd(m));let h=f===s?r.col-1:l,y=f===a?n.col-1:m.length;p.push([`${f}`,u(m,h,y,ae.red)]),t||p.push(["",Dk(m,h,y)])}return c>0&&(p.push(["\u2026",`${Jb(l)}${ae.gray(`< ${c} more lines >`)}`]),p.push([`${a}`,u(i[a-1],-1,n.col-1,ae.red)]),t||p.push(["",Dk(i[a-1],-1,n.col-1)])),rre([[`${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(f,m=-1,h=1/0,y=ae.gray){return!t||!f?f:(m===-1&&(m=kd(f)),h=Math.min(h,f.length),f.substr(0,m)+y(f.substring(m,h))+f.substr(h))}}function rre(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:kd(i)));return t.map(([o,i])=>ae.gray(ore(r,o)+" |")+(i?" "+nre(i.substring(n)):"")).join(`
|
|
129
|
-
`)}function nre(e,t=ere){let r=e.length-t;if(r>0){let n=ae.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function Dk(e,t=-1,r=1/0){return t===-1&&(t=kd(e)),r=Math.min(r,e.length),Jb(t)+"^".repeat(Math.max(r-t,1))}function Jb(e){return" ".repeat(e)}function ore(e,t){return Jb(e-t.length)+t}function kd(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function In(e){if(e.pointer===void 0)return e;let{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(Ci.safeLoad),i=Fk(o,r,!!n);return{...e,pointer:void 0,...sre(t,i?.startPosition??1,i?.endPosition??1)}}var Lk=new WeakMap;function ire(e){let t=Lk.get(e);if(!t){t=[0];for(let r=0;r<e.body.length;r++)e.body[r]===`
|
|
130
|
-
`&&t.push(r+1);Lk.set(e,t)}return t}function Uk(e,t,r){let n=0,o=t.length-1;for(;n<o;){let a=Math.floor((n+o+1)/2);t[a]<=r?n=a:o=a-1}let i=t[n],s=0;return n>0&&e.body[i]==="\r"&&r>i&&(s=1),{line:n+1,col:r-i+1-s}}function sre(e,t,r){if(t===r)return{start:{line:1,col:1},end:{line:1,col:1}};let n=ire(e),o=Uk(e,n,t),i=Uk(e,n,r-1);return{start:o,end:{line:i.line,col:i.col+1}}}function Fk(e,t,r){let n=Xd(t.substr(2));if(e===void 0)return;let o=e;for(let i of n)if(o.kind===Ci.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===Ci.Kind.SEQ){let s=o.items[parseInt(i,10)];if(!s)break;o=s}if(r){let i=o.parent;return!i||i.kind===Ci.Kind.SEQ?o:i.kind===Ci.Kind.MAPPING?i.key:o}else return o}var are={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},zk={warn:e=>ae.bgYellow(ae.black(e)),error:ae.bgRed},Vk={warn:ae.yellow,error:ae.red},sa={warn:"Warning",error:"Error"},cre={error:"critical",warn:"minor"},pre=+(Ea.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function Cd(e){return e==="error"?1:2}function Bk(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 lre(e,t){let{maxProblems:r=100,cwd:n=gt?"":process.cwd(),format:o="codeframe",color:i=Aa.enabled,totals:s=Bk(e),version:a="2.0",command:c}=t;Aa.enabled=i;let p=e.length;e=e.filter(S=>!S.ignored);let l=p-e.length;if(e=e.sort((S,E)=>Cd(S.severity)-Cd(E.severity)).slice(0,r),!p&&o!=="json"&&o!=="junit")return;switch(o){case"json":f();break;case"codeframe":for(let S=0;S<e.length;S++){let E=e[S];c==="bundle"?pe.info(`${h(E,S)}
|
|
131
|
-
`):pe.output(`${h(E,S)}
|
|
132
|
-
`)}break;case"stylish":{let S=Xb(e);for(let[E,{ruleIdPad:P,locationPad:T,fileProblems:N}]of Object.entries(S)){pe.output(`${ae.blue(ce(E)?E:sn.relative(n,E))}:
|
|
133
|
-
`);for(let I=0;I<N.length;I++){let O=N[I];pe.output(`${y(O,T,P)}
|
|
134
|
-
`)}pe.output(`
|
|
135
|
-
`)}break}case"markdown":{let S=Xb(e);for(let[E,{fileProblems:P}]of Object.entries(S)){pe.output(`## Lint: ${ce(E)?E:sn.relative(n,E)}
|
|
136
|
-
|
|
137
|
-
`),pe.output(`| Severity | Location | Problem | Message |
|
|
138
|
-
`),pe.output(`|---|---|---|---|
|
|
139
|
-
`);for(let T=0;T<P.length;T++){let N=P[T];pe.output(`${b(N)}
|
|
140
|
-
`)}pe.output(`
|
|
141
|
-
`),s.errors>0?pe.output(`Validation failed
|
|
142
|
-
Errors: ${s.errors}
|
|
143
|
-
`):pe.output(`Validation successful
|
|
144
|
-
`),s.warnings>0&&pe.output(`Warnings: ${s.warnings}
|
|
145
|
-
`),pe.output(`
|
|
146
|
-
`)}break}case"checkstyle":{let S=Xb(e);pe.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
147
|
-
`),pe.output(`<checkstyle version="4.3">
|
|
148
|
-
`);for(let[E,{fileProblems:P}]of Object.entries(S))pe.output(`<file name="${on(ce(E)?E:sn.relative(n,E))}">
|
|
149
|
-
`),P.forEach(x),pe.output(`</file>
|
|
150
|
-
`);pe.output(`</checkstyle>
|
|
151
|
-
`);break}case"junit":{let S=e.filter(T=>T.severity==="error").length,E=e.filter(T=>T.severity==="warn").length,P={};for(let T of e){let N=T.location[0].source.absoluteRef;P[N]||(P[N]=[]),P[N].push(T)}pe.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
152
|
-
`),pe.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${S}" failures="${E}" skipped="0">
|
|
153
|
-
`);for(let[T,N]of Object.entries(P)){let I=ce(T)?T:sn.relative(n,T),O=N.filter(ie=>ie.severity==="error").length,A=N.filter(ie=>ie.severity==="warn").length;pe.output(`<testsuite name="${on(I)}" tests="${N.length}" errors="${O}" failures="${A}">
|
|
154
|
-
`),N.forEach(ie=>w(ie,I)),pe.output(`</testsuite>
|
|
155
|
-
`)}pe.output(`</testsuites>
|
|
156
|
-
`);break}case"codeclimate":u();break;case"summary":ure(e);break;case"github-actions":fre(e,n)}p-l>r&&pe.info(`< ... ${p-r} more problems hidden > ${ae.gray("increase with `--max-problems N`")}
|
|
157
|
-
`);function u(){let S=e.map(E=>{let P=E.location[0],T=In(P);return{description:E.message,location:{path:ce(P.source.absoluteRef)?P.source.absoluteRef:sn.relative(n,P.source.absoluteRef),lines:{begin:T.start.line}},severity:cre[E.severity],fingerprint:`${E.ruleId}${E.location.length>0?"-"+E.location[0].pointer:""}`}});pe.output(JSON.stringify(S,null,2))}function f(){let S={totals:s,version:a,problems:e.map(E=>{let P={...E,location:E.location.map(T=>{let{start:N,end:I}=In(T);return{...T,start:N,end:I,source:{ref:ce(T.source.absoluteRef)?T.source.absoluteRef:sn.relative(n,T.source.absoluteRef)}}}),from:E.from?{...E.from,source:{ref:ce(E.from?.source.absoluteRef)?E.from?.source.absoluteRef:sn.relative(n,E.from?.source.absoluteRef||n)}}:void 0};if(Ea.FORMAT_JSON_WITH_CODEFRAMES){let T=E.location[0],N=In(T);P.codeframe=Id(N,i)}return P})};pe.output(JSON.stringify(S,null,2))}function m(S){let{severity:E}=S;if(!zk[E])throw new Error(are.INVALID_SEVERITY_LEVEL);return zk[E]}function h(S,E){let P=m(S),T=S.location[0],N=ce(T.source.absoluteRef)?T.source.absoluteRef:sn.relative(n,T.source.absoluteRef),I=In(T),O=T.pointer?ae.gray(`at ${T.pointer}`):"",A=`${N}:${I.start.line}:${I.start.col}`;return`[${E+1}] ${P(A)} ${O}
|
|
158
|
-
|
|
159
|
-
${S.message}
|
|
160
|
-
|
|
161
|
-
`+Hk(S)+Id(I,i)+`
|
|
162
|
-
|
|
163
|
-
`+dre(n,S.from)+`${sa[S.severity]} was generated by the ${ae.blue(S.ruleId)} rule.
|
|
164
|
-
|
|
165
|
-
`+(S.reference?`Reference: ${ae.blue(S.reference)}
|
|
166
|
-
|
|
167
|
-
`:"")}function y(S,E,P){let T=Vk[S.severity];if(!sa[S.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let N=T(sa[S.severity].toLowerCase().padEnd(7)),{start:I}=S.location[0];return` ${`${I.line}:${I.col}`.padEnd(E)} ${N} ${S.ruleId.padEnd(P)} ${S.message}`}function b(S){if(!sa[S.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let E=sa[S.severity].toLowerCase(),{start:P}=S.location[0];return`| ${E} | line ${`${P.line}:${P.col}`} | [${S.ruleId}](https://redocly.com/docs/cli/rules/${S.ruleId}/) | ${S.message.replaceAll(`
|
|
168
|
-
`,"<br>")} |`}function x(S){let{line:E,col:P}=S.location[0].start,T=S.severity=="warn"?"warning":"error",N=on(S.message),I=on(S.ruleId);pe.output(`<error line="${E}" column="${P}" severity="${T}" message="${N}" source="${I}" />
|
|
169
|
-
`)}function w(S,E){let P=S.location[0],{start:T}=In(P),N=S.severity==="error"?"error":"failure",I=on(S.ruleId),O=on(S.message),A=[`Rule: ${I}`,`Severity: ${on(S.severity)}`,`File: ${on(E)}`,`Line: ${T.line}`,`Column: ${T.col}`];P.pointer&&A.push(`Pointer: ${on(P.pointer)}`),A.push(`Message: ${O}`),pe.output(`<testcase classname="${I}" name="${I}" file="${on(E)}" line="${T.line}">
|
|
170
|
-
`),pe.output(`<${N} message="${O}" type="${I}">${A.join(`
|
|
171
|
-
`)}</${N}>
|
|
172
|
-
`),pe.output(`</testcase>
|
|
173
|
-
`)}}function ure(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])=>Cd(n.severity)-Cd(o.severity)||o.count-n.count);for(let[n,o]of r){let i=Vk[o.severity],s=i(sa[o.severity].toLowerCase().padEnd(7));pe.output(`${s} ${n}: ${o.count}
|
|
174
|
-
`)}pe.output(`
|
|
175
|
-
`)}function dre(e,t){if(!t)return"";let r=sn.relative(e,t.source.absoluteRef),n=In(t),o=`${r}:${n.start.line}:${n.start.col}`,i=t.pointer?ae.gray(`at ${t.pointer}`):"";return`referenced from ${ae.blue(o)} ${i}
|
|
176
|
-
|
|
177
|
-
`}function Hk(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
178
|
-
|
|
179
|
-
`:`Did you mean:
|
|
180
|
-
- ${e.suggest.slice(0,pre).join(`
|
|
181
|
-
- `)}
|
|
182
|
-
|
|
183
|
-
`}var Xb=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(In)};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 on(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 fre(e,t){for(let s of e)for(let a of s.location.map(In)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}let p=Hk(s),l=s.reference?`Reference: ${s.reference}
|
|
184
|
-
|
|
185
|
-
`:"",u=s.message+(p!==""||l!==""?`
|
|
186
|
-
|
|
187
|
-
`:"")+p+l,f={title:s.ruleId,file:ce(a.source.absoluteRef)?a.source.absoluteRef:sn.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};pe.output(`::${c} ${r(f)}::${o(u)}
|
|
188
|
-
`)}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:dwe,...mre}=as.properties,hre={...as,properties:mre};async function Kk(e){let{ref:t,externalRefResolver:r=new or(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),qd({document:n,...e,externalRefResolver:r})}async function yre(e){let{source:t,absoluteRef:r,externalRefResolver:n=new or(e.config.resolve)}=e,o=Ho(t,r||"/");return qd({document:o,...e,externalRefResolver:n})}async function qd(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(Xi(t.source.absoluteRef)){let{lintGraphqlDocument:m}=await import("./UYZXI3NO.js");return m({document:t,config:o})}let i=Mn(t.parsed),s=o.getRulesForSpecVersion(Ta(i)),a=zr(o.extendTypes(r??Do(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},p=Ni(s,o,"preprocessors",i),l=Ni(s,o,"rules",i),u=await gr({rootDocument:t,rootType:a.Root,externalRefResolver:n});p.length>0&&(Nt({document:t,rootType:a.Root,normalizedVisitors:qt(p,a),resolvedRefMap:u,ctx:c}),u=await gr({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let f=qt(l,a);return Nt({document:t,rootType:a.Root,normalizedVisitors:f,resolvedRefMap:u,ctx:c}),c.problems.map(m=>o.addProblemToIgnore(m))}async function gre(e){let{severity:t,externalRefResolver:r=new or,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=zr(e.externalConfigTypes||Wl(hre,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Rt({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:wt({severity:"error"})}],a=qt(s,i),c=n.resolvedRefMap||await gr({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return Nt({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}import*as vre from"node:fs";import*as Zb from"node:path";function bre(e){return(Zb.extname(e)===".yaml"||Zb.extname(e)===".yml")&&!!vre?.existsSync?.(e)}function xre(e){return k(e)&&!hr(e)}async function Sre(e){return new Promise(t=>setTimeout(t,e))}function Dr(e,t){if(B(t.parent))return;let r=t.key.toString(),n=e.counts??={};n[r]=(n[r]??0)+1}function e0(e){for(let o of Object.values(e))o.items&&(o.total=o.items.size);let{xExtensions:t}=e,r=t.counts??{},n=Object.keys(r).sort();t.total=n.length,t.counts=Object.fromEntries(n.map(o=>[o,r[o]]))}var wre=e=>({SpecExtension:{enter(t,r){Dr(e.xExtensions,r)}},XCodeSampleList:{enter(t,r){Dr(e.xExtensions,r)}},ExamplesMap:{enter(t,r){r.key.toString()==="x-examples"&&Dr(e.xExtensions,r)}},EnumDescriptions:{enter(t,r){Dr(e.xExtensions,r)}},TagGroups:{enter(t,r){Dr(e.xExtensions,r)}},Logo:{enter(t,r){Dr(e.xExtensions,r)}},XServerList:{enter(t,r){Dr(e.xExtensions,r)}},XUsePkce:{enter(t,r){Dr(e.xExtensions,r)}},Operation:{enter(t,r){r.key.toString()==="x-query"&&Dr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},Link:{leave(t){e.links.items.add(t.operationId)}},WebhooksMap:{enter(t,r){r.key.toString()==="x-webhooks"&&Dr(e.xExtensions,r)},Operation:{leave(t){if(e.webhooks.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},Paths:{PathItem:{leave(){e.pathItems.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t){e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e0(e)}}}),_re=e=>({SpecExtension:{enter(t,r){Dr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},ChannelMap:{Channel:{leave(){e.channels.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t,{key:r}){e.parameters.items.add(r.toString())}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e0(e)}}}),Pre=e=>({SpecExtension:{enter(t,r){Dr(e.xExtensions,r)}},ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},NamedChannels:{Channel:{leave(){e.channels.total++},Parameter:{leave(t,{key:r}){e.parameters.items.add(r.toString())}}}},NamedOperations:{Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e0(e)}}});import*as Yk from"node:fs";import*as eo from"node:path";function Wk(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&k(i)){let s=i;if(t){Gk(t,s);for(let a of s.where||[])Gk(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function Gk(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}.`);$n[r]=WT(i.assertions[o])}}var aa=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=vd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>Wk({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({...Vi(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||!k(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?eo.dirname(this.configPath):process.cwd(),n=ce(t)?t:eo.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?eo.dirname(this.configPath):process.cwd(),r=eo.join(t,ja),n={};for(let o of Object.keys(this.ignore)){let i=ce(o)?o:Na(eo.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}Yk.writeFileSync(r,US+Ep(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 Bi)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 Bi)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of Bi)this.decorators[n][r]&&(this.decorators[n][r]="off")}};import*as ip from"node:fs";import*as Qk from"node:path";function $re(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=ce(n)?n:fp(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 Jk(e,t){let r=e?Zd(e):gt?"":process.cwd(),n=r?fp(r,ja):ja;if(ip?.existsSync&&!ce(n)&&!ip.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:$re(o.parsed||{},r)}async function Ere(e={}){let{configPath:t=Xk(),customExtends:r,externalRefResolver:n,skipPluginEval:o}=e,i=n??new or,s=t?await i.resolveDocument(null,t,!0):void 0;if(s instanceof Error)throw s;let{resolvedConfig:a,resolvedRefMap:c,plugins:p}=await _b({rawConfigDocument:s?eI(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o}),l=await Jk(t,i);return new aa(a,{configPath:t,document:s,resolvedRefMap:c,plugins:p,ignore:l})}function Xk(e){if(!ip?.existsSync)return;let t=e?Qk.resolve(e,os):os;return ip.existsSync(t)?t:void 0}async function Zk(e,{configPath:t,externalRefResolver:r,ignore:n}={}){let i=Ho(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(i.parsed=e);let{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await _b({rawConfigDocument:eI(i),configPath:t,externalRefResolver:r});return new aa(s,{configPath:t,document:i,resolvedRefMap:a,plugins:c,ignore:n})}function eI(e){if(!e.parsed)return e;let{plugins:t,resolve:r,...n}=e.parsed,o={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:o}}export{bre as a,vr as b,k as c,hr as d,Pi as e,xre as f,Ze as g,ft as h,bc as i,Sre as j,Jd as k,sq as l,aq as m,gt as n,Na as o,fi as p,zr as q,B as r,dp as s,ce as t,pn as u,Do as v,Qa as w,_h as x,lg as y,wre as z,_re as A,Pre as B,Bo as C,Ep as D,ln as E,Xi as F,Sa as G,Rp as H,or as I,gr as J,MT as K,zT as L,tz as M,rz as N,pz as O,lz as P,uz as Q,dz as R,fz as S,mz as T,hz as U,yz as V,gm as W,pe as X,Ta as Y,Mn as Z,qt as _,bm as $,Nt as aa,Eae as ba,es as ca,_m as da,Dm as ea,yZ as fa,Ere as ga,Zk as ha,In as ia,Bk as ja,lre as ka,on as la,Kk as ma,yre as na,qd as oa,gre as pa};
|
|
189
|
-
/*! Bundled license information:
|
|
190
|
-
|
|
191
|
-
js-yaml/dist/js-yaml.mjs:
|
|
192
|
-
(*! js-yaml 5.2.2 https://github.com/nodeca/js-yaml @license MIT *)
|
|
193
|
-
*/
|