@redocly/cli 2.71.2 → 2.72.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 +1 -1
- package/THIRD_PARTY_NOTICES +29 -7
- package/lib/chunks/{EHJ3FMW6.js → 2AW4F6ZZ.js} +1 -1
- package/lib/chunks/{3EQNI6CT.js → 2MF3MKAD.js} +1 -1
- package/lib/chunks/{UYZXI3NO.js → 2X2KHSF3.js} +1 -1
- package/lib/chunks/{YF4FMOTE.js → 3FA5W77S.js} +1 -1
- package/lib/chunks/{VPTYPV6P.js → 3FVHXIZN.js} +1 -1
- package/lib/chunks/{P5T6BIKW.js → 3N53VPSU.js} +1 -1
- package/lib/chunks/{KLGUZBJO.js → 3N73A66H.js} +1 -1
- package/lib/chunks/{JO76DPXR.js → 3WOXO2JS.js} +1 -1
- package/lib/chunks/{ORWIUECT.js → 4A5R4H5W.js} +1 -1
- package/lib/chunks/{NXREEI2S.js → 4LTPQZBP.js} +1 -1
- package/lib/chunks/{L325HIGK.js → 4QC7OVHI.js} +1 -1
- package/lib/chunks/{FDKY4PGX.js → 542GVIYM.js} +1 -1
- package/lib/chunks/5JF6EUWW.js +9 -0
- package/lib/chunks/{6X42UQ3O.js → 5MZU5MHZ.js} +1 -1
- package/lib/chunks/{DZT5NLUB.js → 5UPBGRBZ.js} +1 -1
- package/lib/chunks/{WO6IIVA3.js → 6LZX65VY.js} +8 -8
- package/lib/chunks/{NEWT5A6S.js → 6RTITFQA.js} +1 -1
- package/lib/chunks/{IQLQH23V.js → 6Y6B2SKE.js} +1 -1
- package/lib/chunks/765BYRQR.js +7 -0
- package/lib/chunks/{2TG3DP4I.js → 7NZS5HXU.js} +1 -1
- package/lib/chunks/{5CR6AOLY.js → A65OW7M7.js} +3 -3
- package/lib/chunks/ARUYNQHA.js +7 -0
- package/lib/chunks/BJ6Z66KZ.js +7 -0
- package/lib/chunks/{T77BOGYV.js → BWGBTYNU.js} +1 -1
- package/lib/chunks/{DM4EUYBB.js → BZTZIEWS.js} +2 -2
- package/lib/chunks/{4S6LRPCX.js → CBFNHKDJ.js} +1 -1
- package/lib/chunks/{OFIQ2EST.js → CYCPHJNX.js} +33 -33
- package/lib/chunks/DSBDKSRR.js +53 -0
- package/lib/chunks/E2CEKR6N.js +22 -0
- package/lib/chunks/{HRZLSSOF.js → EMWHLZB6.js} +1 -1
- package/lib/chunks/{DWXDCKZ7.js → ENIFTFYK.js} +1 -1
- package/lib/chunks/{BIS2ZFGS.js → ETJMQLWJ.js} +1 -1
- package/lib/chunks/{ADACRYTN.js → EU5WR2O3.js} +1 -1
- package/lib/chunks/{FAFMGLT6.js → FLQQ3VRQ.js} +1 -1
- package/lib/chunks/{BPJTNQBC.js → FZZACVYL.js} +1 -1
- package/lib/chunks/{N4GCIKY4.js → G7A4OE2M.js} +1 -1
- package/lib/chunks/{HP7UD4BA.js → GCAL2PYM.js} +1 -1
- package/lib/chunks/{MJ2NI6MR.js → GGHLD27S.js} +1 -1
- package/lib/chunks/{U4MI7HDM.js → GMPHU6KM.js} +1 -1
- package/lib/chunks/{HTFKP5HH.js → GWBLS542.js} +1 -1
- package/lib/chunks/{U2F3JOT2.js → GXILNSWK.js} +1 -1
- package/lib/chunks/{5AVTCY6F.js → HM7M6465.js} +1 -1
- package/lib/chunks/{5HPO77VR.js → I2JZXLJ6.js} +2 -2
- package/lib/chunks/I3YF3GEY.js +13 -0
- package/lib/chunks/{YWRFPTTI.js → IIQW437Z.js} +1 -1
- package/lib/chunks/{4H3DPQDW.js → IM4YIUUN.js} +1 -1
- package/lib/chunks/{LET2MPMU.js → JDMRVD45.js} +1 -1
- package/lib/chunks/{XVS7B4RZ.js → KIFXQTTL.js} +1 -1
- package/lib/chunks/{UVKUPD4U.js → L4VSY42B.js} +1 -1
- package/lib/chunks/LH3ONQEX.js +17 -0
- package/lib/chunks/{SSEMMWPY.js → LUNR7GV4.js} +1 -1
- package/lib/chunks/{LY6BDOEF.js → LY5MGNMA.js} +1 -1
- package/lib/chunks/{XQEXWC5L.js → MAACTVYP.js} +1 -1
- package/lib/chunks/{GFSMOHUE.js → MTKICX4T.js} +1 -1
- package/lib/chunks/{ZXOX7NF2.js → NMAWU5S4.js} +1 -1
- package/lib/chunks/{I4TK6NG7.js → PJHQKG7X.js} +1 -1
- package/lib/chunks/PTBPNZRZ.js +7 -0
- package/lib/chunks/{CZX7WE2R.js → PUZ5QSL3.js} +1 -1
- package/lib/chunks/{JRVXIEVC.js → PW2XFZOB.js} +1 -1
- package/lib/chunks/{TH44RKLO.js → QAT3DPT3.js} +1 -1
- package/lib/chunks/{QXXAC25O.js → R67IVFZH.js} +1 -1
- package/lib/chunks/RA4FAJM3.js +59 -0
- package/lib/chunks/{AZ5LIJEO.js → RF5LL2UZ.js} +1 -1
- package/lib/chunks/{JOUEVI3E.js → RQPH22PV.js} +1 -1
- package/lib/chunks/S3B562IT.js +7 -0
- package/lib/chunks/{3FR3456Q.js → S43EG4DB.js} +1 -1
- package/lib/chunks/{CER2D6ZD.js → S7VIXBKD.js} +7 -7
- package/lib/chunks/{VJZDR6KS.js → TFPMT2XD.js} +1529 -4
- package/lib/chunks/{AXGFQS75.js → U56BQ2BR.js} +2 -2
- package/lib/chunks/{KJNBOXDI.js → UOTHMCTM.js} +3 -3
- package/lib/chunks/{CR5TYFBN.js → VHZJNDWE.js} +2 -2
- package/lib/chunks/{BOTTA3HA.js → VOYPXV3Z.js} +1 -1
- package/lib/chunks/{UTEOWLD5.js → VS4MTPCM.js} +1 -1
- package/lib/chunks/{QTSECOQB.js → WEPGHS5R.js} +2 -2
- package/lib/chunks/{LKNL5LEV.js → WRKMMY3F.js} +1 -1
- package/lib/chunks/{7JS7JGWP.js → WTJ3S4D7.js} +1 -1
- package/lib/chunks/X22IMAJK.js +199 -0
- package/lib/chunks/{W7TN2XCW.js → X3FFOCXC.js} +1 -1
- package/lib/chunks/{CRJEY7P3.js → XTI7EXWX.js} +1 -1
- package/lib/chunks/{BH4FA7AH.js → YA5KTHFN.js} +1 -1
- package/lib/chunks/{Z6GFQV2Y.js → YA6D5EUI.js} +1 -1
- package/lib/chunks/{HMYFTLS7.js → ZFET6WME.js} +1 -1
- package/lib/chunks/{R32HBYOH.js → ZXB5O6JQ.js} +1 -1
- package/lib/eject-assets/AGENTS.md +1 -1
- 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/java/client.ts +66 -0
- package/lib/eject-assets/generators/java/descriptor.ts +72 -0
- package/lib/eject-assets/generators/java/index.ts +245 -0
- package/lib/eject-assets/generators/java/models.ts +362 -0
- package/lib/eject-assets/generators/java/naming.ts +135 -0
- package/lib/eject-assets/generators/java/operations.ts +300 -0
- package/lib/eject-assets/generators/java/pagination.ts +94 -0
- package/lib/eject-assets/generators/java/types.ts +103 -0
- 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/eject-assets/skills/client-generators/SKILL.md +1 -1
- package/lib/eject-assets/skills/java-generator/SKILL.md +161 -0
- package/lib/index.js +91 -90
- package/lib/skills/redocly-cli/SKILL.md +3 -1
- package/package.json +1 -1
- package/lib/chunks/2ZEKFWJQ.js +0 -13
- package/lib/chunks/3VOQMXIZ.js +0 -7
- package/lib/chunks/7GADNOVY.js +0 -9
- package/lib/chunks/FRQHCFKP.js +0 -199
- package/lib/chunks/J2EPFEBO.js +0 -17
- package/lib/chunks/JZATGVUO.js +0 -53
- package/lib/chunks/KNMNSDHR.js +0 -7
- package/lib/chunks/U5DIFWGH.js +0 -7
package/lib/chunks/FRQHCFKP.js
DELETED
|
@@ -1,199 +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 Pt,b as Di,c as VC}from"./NEWT5A6S.js";import{a as Vd,c as E,d as zC,e as fn}from"./RFWIIJFG.js";var Kd=E((Bd,Hd)=>{(function(e,t){typeof Vd=="function"&&typeof Bd=="object"&&typeof Hd=="object"?Hd.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(Bd,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 l(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 p(m,h,y){return function(b){var x=b.toLowerCase();return h.hasOwnProperty(x)?s(b,x):m.hasOwnProperty(x)?s(b,m[x]):l(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:l(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=p(o,n,e),f.isPlural=u(o,n,e),f.singular=p(n,o,t),f.isSingular=u(n,o,t),f.addPluralRule=function(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 va=E((die,Ux)=>{"use strict";var jx="[^\\\\/]",vU="(?=.)",Mx="[^/]",Vf="(?:\\/|$)",Lx="(?:^|\\/)",Bf=`\\.{1,2}${Vf}`,bU="(?!\\.)",xU=`(?!${Lx}${Bf})`,SU=`(?!\\.{0,1}${Vf})`,wU=`(?!${Bf})`,_U="[^.\\/]",PU=`${Mx}*?`,$U="/",Fx={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:vU,QMARK:Mx,END_ANCHOR:Vf,DOTS_SLASH:Bf,NO_DOT:bU,NO_DOTS:xU,NO_DOT_SLASH:SU,NO_DOTS_SLASH:wU,QMARK_NO_DOT:_U,STAR:PU,START_ANCHOR:Lx,SEP:$U},EU={...Fx,SLASH_LITERAL:"[\\\\/]",QMARK:jx,STAR:`${jx}*?`,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:"\\"},AU={__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"};Ux.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:AU,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?EU:Fx}}});var ba=E(ar=>{"use strict";var{REGEX_BACKSLASH:OU,REGEX_REMOVE_BACKSLASH:TU,REGEX_SPECIAL_CHARS:RU,REGEX_SPECIAL_CHARS_GLOBAL:kU}=va();ar.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);ar.hasRegexChars=e=>RU.test(e);ar.isRegexChar=e=>e.length===1&&ar.hasRegexChars(e);ar.escapeRegex=e=>e.replace(kU,"\\$1");ar.toPosixSlashes=e=>e.replace(OU,"/");ar.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};ar.removeBackslashes=e=>e.replace(TU,t=>t==="\\"?"":t);ar.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?ar.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};ar.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};ar.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};ar.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var Yx=E((mie,Wx)=>{"use strict";var zx=ba(),{CHAR_ASTERISK:Hf,CHAR_AT:IU,CHAR_BACKWARD_SLASH:xa,CHAR_COMMA:CU,CHAR_DOT:Kf,CHAR_EXCLAMATION_MARK:Gf,CHAR_FORWARD_SLASH:Gx,CHAR_LEFT_CURLY_BRACE:Wf,CHAR_LEFT_PARENTHESES:Yf,CHAR_LEFT_SQUARE_BRACKET:NU,CHAR_PLUS:qU,CHAR_QUESTION_MARK:Vx,CHAR_RIGHT_CURLY_BRACE:DU,CHAR_RIGHT_PARENTHESES:Bx,CHAR_RIGHT_SQUARE_BRACKET:jU}=va(),Hx=e=>e===Gx||e===xa,Kx=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},MU=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],c=e,l=-1,p=0,u=0,f=!1,m=!1,h=!1,y=!1,b=!1,x=!1,w=!1,S=!1,$=!1,P=!1,A=0,q,I,k={value:"",depth:0,isGlob:!1},O=()=>l>=n,se=()=>c.charCodeAt(l+1),X=()=>(q=I,c.charCodeAt(++l));for(;l<n;){I=X();let $e;if(I===xa){w=k.backslashes=!0,I=X(),I===Wf&&(x=!0);continue}if(x===!0||I===Wf){for(A++;O()!==!0&&(I=X());){if(I===xa){w=k.backslashes=!0,X();continue}if(I===Wf){A++;continue}if(x!==!0&&I===Kf&&(I=X())===Kf){if(f=k.isBrace=!0,h=k.isGlob=!0,P=!0,o===!0)continue;break}if(x!==!0&&I===CU){if(f=k.isBrace=!0,h=k.isGlob=!0,P=!0,o===!0)continue;break}if(I===DU&&(A--,A===0)){x=!1,f=k.isBrace=!0,P=!0;break}}if(o===!0)continue;break}if(I===Gx){if(i.push(l),s.push(k),k={value:"",depth:0,isGlob:!1},P===!0)continue;if(q===Kf&&l===p+1){p+=2;continue}u=l+1;continue}if(r.noext!==!0&&(I===qU||I===IU||I===Hf||I===Vx||I===Gf)===!0&&se()===Yf){if(h=k.isGlob=!0,y=k.isExtglob=!0,P=!0,I===Gf&&l===p&&($=!0),o===!0){for(;O()!==!0&&(I=X());){if(I===xa){w=k.backslashes=!0,I=X();continue}if(I===Bx){h=k.isGlob=!0,P=!0;break}}continue}break}if(I===Hf){if(q===Hf&&(b=k.isGlobstar=!0),h=k.isGlob=!0,P=!0,o===!0)continue;break}if(I===Vx){if(h=k.isGlob=!0,P=!0,o===!0)continue;break}if(I===NU){for(;O()!==!0&&($e=X());){if($e===xa){w=k.backslashes=!0,X();continue}if($e===jU){m=k.isBracket=!0,h=k.isGlob=!0,P=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&I===Gf&&l===p){S=k.negated=!0,p++;continue}if(r.noparen!==!0&&I===Yf){if(h=k.isGlob=!0,o===!0){for(;O()!==!0&&(I=X());){if(I===Yf){w=k.backslashes=!0,I=X();continue}if(I===Bx){P=!0;break}}continue}break}if(h===!0){if(P=!0,o===!0)continue;break}}r.noext===!0&&(y=!1,h=!1);let fe=c,N="",D="";p>0&&(N=c.slice(0,p),c=c.slice(p),u-=p),fe&&h===!0&&u>0?(fe=c.slice(0,u),D=c.slice(u)):h===!0?(fe="",D=c):fe=c,fe&&fe!==""&&fe!=="/"&&fe!==c&&Hx(fe.charCodeAt(fe.length-1))&&(fe=fe.slice(0,-1)),r.unescape===!0&&(D&&(D=zx.removeBackslashes(D)),fe&&w===!0&&(fe=zx.removeBackslashes(fe)));let ht={prefix:N,input:e,start:p,base:fe,glob:D,isBrace:f,isBracket:m,isGlob:h,isExtglob:y,isGlobstar:b,negated:S,negatedExtglob:$};if(r.tokens===!0&&(ht.maxDepth=0,Hx(I)||s.push(k),ht.tokens=s),r.parts===!0||r.tokens===!0){let $e;for(let ie=0;ie<i.length;ie++){let Xe=$e?$e+1:p,Ue=i[ie],_e=e.slice(Xe,Ue);r.tokens&&(ie===0&&p!==0?(s[ie].isPrefix=!0,s[ie].value=N):s[ie].value=_e,Kx(s[ie]),ht.maxDepth+=s[ie].depth),(ie!==0||_e!=="")&&a.push(_e),$e=Ue}if($e&&$e+1<e.length){let ie=e.slice($e+1);a.push(ie),r.tokens&&(s[s.length-1].value=ie,Kx(s[s.length-1]),ht.maxDepth+=s[s.length-1].depth)}ht.slashes=i,ht.parts=a}return ht};Wx.exports=MU});var eS=E((hie,Zx)=>{"use strict";var Sa=va(),Sr=ba(),{MAX_LENGTH:$p,POSIX_REGEX_SOURCE:LU,REGEX_NON_SPECIAL_CHARS:FU,REGEX_SPECIAL_CHARS_BACKREF:UU,REPLACEMENTS:Qx}=Sa,zU=(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=>Sr.escapeRegex(o)).join("..")}return r},ts=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Jx=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},VU=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},Xx=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(VU(t))return t.replace(/\\(.)/g,"$1")},BU=e=>{let t=e.map(Xx).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},Qf=(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}}}}},HU=e=>{let t=0,r=[];for(;t<e.length;){let o=Qf(e.slice(t),!1);if(!o||o.type!=="*")return;let i=Jx(o.body).map(a=>a.trim());if(i.length!==1)return;let s=Xx(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?Sr.escapeRegex(r[0]):`[${r.map(o=>Sr.escapeRegex(o)).join("")}]`}*`},KU=e=>{let t=0,r=e.trim(),n=Qf(r);for(;n;)t++,r=n.body.trim(),n=Qf(r);return t},GU=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:Sa.DEFAULT_MAX_EXTGLOB_RECURSION,n=Jx(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||BU(n)))return{risky:!0};for(let o of n){let i=HU(o);if(i)return{risky:!0,safeOutput:i};if(KU(o)>r)return{risky:!0}}return{risky:!1}},Jf=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Qx[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min($p,r.maxLength):$p,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=Sa.globChars(r.windows),l=Sa.extglobChars(c),{DOT_LITERAL:p,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:$,START_ANCHOR:P}=c,A=j=>`(${a}(?:(?!${P}${j.dot?h:p}).)*?)`,q=r.dot?"":y,I=r.dot?w:S,k=r.bash===!0?A(r):$;r.capture&&(k=`(${k})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let O={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=Sr.removePrefix(e,O),o=e.length;let se=[],X=[],fe=[],N=i,D,ht=()=>O.index===o-1,$e=O.peek=(j=1)=>e[O.index+j],ie=O.advance=()=>e[++O.index]||"",Xe=()=>e.slice(O.index+1),Ue=(j="",ae=0)=>{O.consumed+=j,O.index+=ae},_e=j=>{O.output+=j.output!=null?j.output:j.value,Ue(j.value)},Gt=()=>{let j=1;for(;$e()==="!"&&($e(2)!=="("||$e(3)==="?");)ie(),O.start++,j++;return j%2===0?!1:(O.negated=!0,O.start++,!0)},at=j=>{O[j]++,fe.push(j)},it=j=>{O[j]--,fe.pop()},te=j=>{if(N.type==="globstar"){let ae=O.braces>0&&(j.type==="comma"||j.type==="brace"),M=j.extglob===!0||se.length&&(j.type==="pipe"||j.type==="paren");j.type!=="slash"&&j.type!=="paren"&&!ae&&!M&&(O.output=O.output.slice(0,-N.output.length),N.type="star",N.value="*",N.output=k,O.output+=N.output)}if(se.length&&j.type!=="paren"&&(se[se.length-1].inner+=j.value),(j.value||j.output)&&_e(j),N&&N.type==="text"&&j.type==="text"){N.output=(N.output||N.value)+j.value,N.value+=j.value;return}j.prev=N,s.push(j),N=j},nr=(j,ae)=>{let M={...l[ae],conditions:1,inner:""};M.prev=N,M.parens=O.parens,M.output=O.output,M.startIndex=O.index,M.tokensIndex=s.length;let H=(r.capture?"(":"")+M.open;at("parens"),te({type:j,value:ae,output:O.output?"":m}),te({type:"paren",extglob:!0,value:ie(),output:H}),se.push(M)},K=j=>{let ae=e.slice(j.startIndex,O.index+1),M=e.slice(j.startIndex+2,O.index),H=GU(M,r);if((j.type==="plus"||j.type==="star")&&H.risky){let ke=H.safeOutput?(j.output?"":m)+(r.capture?`(${H.safeOutput})`:H.safeOutput):void 0,$r=s[j.tokensIndex];$r.type="text",$r.value=ae,$r.output=ke||Sr.escapeRegex(ae);for(let Er=j.tokensIndex+1;Er<s.length;Er++)s[Er].value="",s[Er].output="",delete s[Er].suffix;O.output=j.output+$r.output,O.backtrack=!0,te({type:"paren",extglob:!0,value:D,output:""}),it("parens");return}let Pe=j.close+(r.capture?")":""),Ze;if(j.type==="negate"){let ke=k;if(j.inner&&j.inner.length>1&&j.inner.includes("/")&&(ke=A(r)),(ke!==k||ht()||/^\)+$/.test(Xe()))&&(Pe=j.close=`)$))${ke}`),j.inner.includes("*")&&(Ze=Xe())&&/^\.[^\\/.]+$/.test(Ze)){let $r=Jf(Ze,{...t,fastpaths:!1}).output;Pe=j.close=`)${$r})${ke})`}j.prev.type==="bos"&&(O.negatedExtglob=!0)}te({type:"paren",extglob:!0,value:D,output:Pe}),it("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let j=!1,ae=e.replace(UU,(M,H,Pe,Ze,ke,$r)=>Ze==="\\"?(j=!0,M):Ze==="?"?H?H+Ze+(ke?w.repeat(ke.length):""):$r===0?I+(ke?w.repeat(ke.length):""):w.repeat(Pe.length):Ze==="."?p.repeat(Pe.length):Ze==="*"?H?H+Ze+(ke?k:""):k:H?M:`\\${M}`);return j===!0&&(r.unescape===!0?ae=ae.replace(/\\/g,""):ae=ae.replace(/\\+/g,M=>M.length%2===0?"\\\\":M?"\\":"")),ae===e&&r.contains===!0?(O.output=e,O):(O.output=Sr.wrapOutput(ae,O,t),O)}for(;!ht();){if(D=ie(),D==="\0")continue;if(D==="\\"){let M=$e();if(M==="/"&&r.bash!==!0||M==="."||M===";")continue;if(!M){D+="\\",te({type:"text",value:D});continue}let H=/^\\+/.exec(Xe()),Pe=0;if(H&&H[0].length>2&&(Pe=H[0].length,O.index+=Pe,Pe%2!==0&&(D+="\\")),r.unescape===!0?D=ie():D+=ie(),O.brackets===0){te({type:"text",value:D});continue}}if(O.brackets>0&&(D!=="]"||N.value==="["||N.value==="[^")){if(r.posix!==!1&&D===":"){let M=N.value.slice(1);if(M.includes("[")&&(N.posix=!0,M.includes(":"))){let H=N.value.lastIndexOf("["),Pe=N.value.slice(0,H),Ze=N.value.slice(H+2),ke=LU[Ze];if(ke){N.value=Pe+ke,O.backtrack=!0,ie(),!i.output&&s.indexOf(N)===1&&(i.output=m);continue}}}(D==="["&&$e()!==":"||D==="-"&&$e()==="]")&&(D=`\\${D}`),D==="]"&&(N.value==="["||N.value==="[^")&&(D=`\\${D}`),r.posix===!0&&D==="!"&&N.value==="["&&(D="^"),N.value+=D,_e({value:D});continue}if(O.quotes===1&&D!=='"'){D=Sr.escapeRegex(D),N.value+=D,_e({value:D});continue}if(D==='"'){O.quotes=O.quotes===1?0:1,r.keepQuotes===!0&&te({type:"text",value:D});continue}if(D==="("){at("parens"),te({type:"paren",value:D});continue}if(D===")"){if(O.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ts("opening","("));let M=se[se.length-1];if(M&&O.parens===M.parens+1){K(se.pop());continue}te({type:"paren",value:D,output:O.parens?")":"\\)"}),it("parens");continue}if(D==="["){if(r.nobracket===!0||!Xe().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ts("closing","]"));D=`\\${D}`}else at("brackets");te({type:"bracket",value:D});continue}if(D==="]"){if(r.nobracket===!0||N&&N.type==="bracket"&&N.value.length===1){te({type:"text",value:D,output:`\\${D}`});continue}if(O.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ts("opening","["));te({type:"text",value:D,output:`\\${D}`});continue}it("brackets");let M=N.value.slice(1);if(N.posix!==!0&&M[0]==="^"&&!M.includes("/")&&(D=`/${D}`),N.value+=D,_e({value:D}),r.literalBrackets===!1||Sr.hasRegexChars(M))continue;let H=Sr.escapeRegex(N.value);if(O.output=O.output.slice(0,-N.value.length),r.literalBrackets===!0){O.output+=H,N.value=H;continue}N.value=`(${a}${H}|${N.value})`,O.output+=N.value;continue}if(D==="{"&&r.nobrace!==!0){at("braces");let M={type:"brace",value:D,output:"(",outputIndex:O.output.length,tokensIndex:O.tokens.length};X.push(M),te(M);continue}if(D==="}"){let M=X[X.length-1];if(r.nobrace===!0||!M){te({type:"text",value:D,output:D});continue}let H=")";if(M.dots===!0){let Pe=s.slice(),Ze=[];for(let ke=Pe.length-1;ke>=0&&(s.pop(),Pe[ke].type!=="brace");ke--)Pe[ke].type!=="dots"&&Ze.unshift(Pe[ke].value);H=zU(Ze,r),O.backtrack=!0}if(M.comma!==!0&&M.dots!==!0){let Pe=O.output.slice(0,M.outputIndex),Ze=O.tokens.slice(M.tokensIndex);M.value=M.output="\\{",D=H="\\}",O.output=Pe;for(let ke of Ze)O.output+=ke.output||ke.value}te({type:"brace",value:D,output:H}),it("braces"),X.pop();continue}if(D==="|"){se.length>0&&se[se.length-1].conditions++,te({type:"text",value:D});continue}if(D===","){let M=D,H=X[X.length-1];H&&fe[fe.length-1]==="braces"&&(H.comma=!0,M="|"),te({type:"comma",value:D,output:M});continue}if(D==="/"){if(N.type==="dot"&&O.index===O.start+1){O.start=O.index+1,O.consumed="",O.output="",s.pop(),N=i;continue}te({type:"slash",value:D,output:f});continue}if(D==="."){if(O.braces>0&&N.type==="dot"){N.value==="."&&(N.output=p);let M=X[X.length-1];N.type="dots",N.output+=D,N.value+=D,M.dots=!0;continue}if(O.braces+O.parens===0&&N.type!=="bos"&&N.type!=="slash"){te({type:"text",value:D,output:p});continue}te({type:"dot",value:D,output:p});continue}if(D==="?"){if(!(N&&N.value==="(")&&r.noextglob!==!0&&$e()==="("&&$e(2)!=="?"){nr("qmark",D);continue}if(N&&N.type==="paren"){let H=$e(),Pe=D;(N.value==="("&&!/[!=<:]/.test(H)||H==="<"&&!/<([!=]|\w+>)/.test(Xe()))&&(Pe=`\\${D}`),te({type:"text",value:D,output:Pe});continue}if(r.dot!==!0&&(N.type==="slash"||N.type==="bos")){te({type:"qmark",value:D,output:S});continue}te({type:"qmark",value:D,output:w});continue}if(D==="!"){if(r.noextglob!==!0&&$e()==="("&&($e(2)!=="?"||!/[!=<:]/.test($e(3)))){nr("negate",D);continue}if(r.nonegate!==!0&&O.index===0){Gt();continue}}if(D==="+"){if(r.noextglob!==!0&&$e()==="("&&$e(2)!=="?"){nr("plus",D);continue}if(N&&N.value==="("||r.regex===!1){te({type:"plus",value:D,output:u});continue}if(N&&(N.type==="bracket"||N.type==="paren"||N.type==="brace")||O.parens>0){te({type:"plus",value:D});continue}te({type:"plus",value:u});continue}if(D==="@"){if(r.noextglob!==!0&&$e()==="("&&$e(2)!=="?"){te({type:"at",extglob:!0,value:D,output:""});continue}te({type:"text",value:D});continue}if(D!=="*"){(D==="$"||D==="^")&&(D=`\\${D}`);let M=FU.exec(Xe());M&&(D+=M[0],O.index+=M[0].length),te({type:"text",value:D});continue}if(N&&(N.type==="globstar"||N.star===!0)){N.type="star",N.star=!0,N.value+=D,N.output=k,O.backtrack=!0,O.globstar=!0,Ue(D);continue}let j=Xe();if(r.noextglob!==!0&&/^\([^?]/.test(j)){nr("star",D);continue}if(N.type==="star"){if(r.noglobstar===!0){Ue(D);continue}let M=N.prev,H=M.prev,Pe=M.type==="slash"||M.type==="bos",Ze=H&&(H.type==="star"||H.type==="globstar");if(r.bash===!0&&(!Pe||j[0]&&j[0]!=="/")){te({type:"star",value:D,output:""});continue}let ke=O.braces>0&&(M.type==="comma"||M.type==="brace"),$r=se.length&&(M.type==="pipe"||M.type==="paren");if(!Pe&&M.type!=="paren"&&!ke&&!$r){te({type:"star",value:D,output:""});continue}for(;j.slice(0,3)==="/**";){let Er=e[O.index+4];if(Er&&Er!=="/")break;j=j.slice(3),Ue("/**",3)}if(M.type==="bos"&&ht()){N.type="globstar",N.value+=D,N.output=A(r),O.output=N.output,O.globstar=!0,Ue(D);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&!Ze&&ht()){O.output=O.output.slice(0,-(M.output+N.output).length),M.output=`(?:${M.output}`,N.type="globstar",N.output=A(r)+(r.strictSlashes?")":"|$)"),N.value+=D,O.globstar=!0,O.output+=M.output+N.output,Ue(D);continue}if(M.type==="slash"&&M.prev.type!=="bos"&&j[0]==="/"){let Er=j[1]!==void 0?"|$":"";O.output=O.output.slice(0,-(M.output+N.output).length),M.output=`(?:${M.output}`,N.type="globstar",N.output=`${A(r)}${f}|${f}${Er})`,N.value+=D,O.output+=M.output+N.output,O.globstar=!0,Ue(D+ie()),te({type:"slash",value:"/",output:""});continue}if(M.type==="bos"&&j[0]==="/"){N.type="globstar",N.value+=D,N.output=`(?:^|${f}|${A(r)}${f})`,O.output=N.output,O.globstar=!0,Ue(D+ie()),te({type:"slash",value:"/",output:""});continue}O.output=O.output.slice(0,-N.output.length),N.type="globstar",N.output=A(r),N.value+=D,O.output+=N.output,O.globstar=!0,Ue(D);continue}let ae={type:"star",value:D,output:k};if(r.bash===!0){ae.output=".*?",(N.type==="bos"||N.type==="slash")&&(ae.output=q+ae.output),te(ae);continue}if(N&&(N.type==="bracket"||N.type==="paren")&&r.regex===!0){ae.output=D,te(ae);continue}(O.index===O.start||N.type==="slash"||N.type==="dot")&&(N.type==="dot"?(O.output+=b,N.output+=b):r.dot===!0?(O.output+=x,N.output+=x):(O.output+=q,N.output+=q),$e()!=="*"&&(O.output+=m,N.output+=m)),te(ae)}for(;O.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ts("closing","]"));O.output=Sr.escapeLast(O.output,"["),it("brackets")}for(;O.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ts("closing",")"));O.output=Sr.escapeLast(O.output,"("),it("parens")}for(;O.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ts("closing","}"));O.output=Sr.escapeLast(O.output,"{"),it("braces")}if(r.strictSlashes!==!0&&(N.type==="star"||N.type==="bracket")&&te({type:"maybe_slash",value:"",output:`${f}?`}),O.backtrack===!0){O.output="";for(let j of O.tokens)O.output+=j.output!=null?j.output:j.value,j.suffix&&(O.output+=j.suffix)}return O};Jf.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min($p,r.maxLength):$p,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Qx[e]||e;let{DOT_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:l,NO_DOTS:p,NO_DOTS_SLASH:u,STAR:f,START_ANCHOR:m}=Sa.globChars(r.windows),h=r.dot?p:l,y=r.dot?u:l,b=r.capture?"":"?:",x={negated:!1,prefix:""},w=r.bash===!0?".*?":f;r.capture&&(w=`(${w})`);let S=q=>q.noglobstar===!0?w:`(${b}(?:(?!${m}${q.dot?c:i}).)*?)`,$=q=>{switch(q){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(q);if(!I)return;let k=$(I[1]);return k?k+i+I[2]:void 0}}},P=Sr.removePrefix(e,x),A=$(P);return A&&r.strictSlashes!==!0&&(A+=`${s}?`),A};Zx.exports=Jf});var nS=E((yie,rS)=>{"use strict";var WU=Yx(),Xf=eS(),tS=ba(),YU=va(),QU=e=>e&&typeof e=="object"&&!Array.isArray(e),ct=(e,t,r=!1)=>{if(Array.isArray(e)){let p=e.map(f=>ct(f,t,r));return f=>{for(let m of p){let h=m(f);if(h)return h}return!1}}let n=QU(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?ct.compileRe(e,t):ct.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(o.ignore){let p={...t,ignore:null,onMatch:null,onResult:null};c=ct(o.ignore,p,r)}let l=(p,u=!1)=>{let{isMatch:f,match:m,output:h}=ct.test(p,s,t,{glob:e,posix:i}),y={glob:e,state:a,regex:s,posix:i,input:p,output:h,match:m,isMatch:f};return typeof o.onResult=="function"&&o.onResult(y),f===!1?(y.isMatch=!1,u?y:!1):c(p)?(typeof o.onIgnore=="function"&&o.onIgnore(y),y.isMatch=!1,u?y:!1):(typeof o.onMatch=="function"&&o.onMatch(y),u?y:!0)};return r&&(l.state=a),l};ct.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?tS.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=ct.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};ct.matchBase=(e,t,r)=>(t instanceof RegExp?t:ct.makeRe(t,r)).test(tS.basename(e));ct.isMatch=(e,t,r)=>ct(t,r)(e);ct.parse=(e,t)=>Array.isArray(e)?e.map(r=>ct.parse(r,t)):Xf(e,{...t,fastpaths:!1});ct.scan=(e,t)=>WU(e,t);ct.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=ct.toRegex(a,t);return n===!0&&(c.state=e),c};ct.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=Xf.fastpaths(e,t)),o.output||(o=Xf(e,t)),ct.compileRe(o,t,r,n)};ct.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/$^/}};ct.constants=YU;rS.exports=ct});var aS=E((gie,sS)=>{"use strict";var oS=nS(),JU=ba();function iS(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:JU.isWindows()}),oS(e,t,r)}Object.assign(iS,oS);sS.exports=iS});var Ma=E(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.regexpCode=De.getEsmExportName=De.getProperty=De.safeStringify=De.stringify=De.strConcat=De.addCodeArg=De.str=De._=De.nil=De._Code=De.Name=De.IDENTIFIER=De._CodeOrName=void 0;var Da=class{};De._CodeOrName=Da;De.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ei=class extends Da{constructor(t){if(super(),!De.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}}};De.Name=ei;var Cr=class extends Da{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 ei&&(r[n.str]=(r[n.str]||0)+1),r),{})}};De._Code=Cr;De.nil=new Cr("");function yw(e,...t){let r=[e[0]],n=0;for(;n<t.length;)km(r,t[n]),r.push(e[++n]);return new Cr(r)}De._=yw;var Rm=new Cr("+");function gw(e,...t){let r=[ja(e[0])],n=0;for(;n<t.length;)r.push(Rm),km(r,t[n]),r.push(Rm,ja(e[++n]));return P9(r),new Cr(r)}De.str=gw;function km(e,t){t instanceof Cr?e.push(...t._items):t instanceof ei?e.push(t):e.push(A9(t))}De.addCodeArg=km;function P9(e){let t=1;for(;t<e.length-1;){if(e[t]===Rm){let r=$9(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function $9(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof ei||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 ei))return`"${e}${t.slice(1)}`}function E9(e,t){return t.emptyStr()?e:e.emptyStr()?t:gw`${e}${t}`}De.strConcat=E9;function A9(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:ja(Array.isArray(e)?e.join(","):e)}function O9(e){return new Cr(ja(e))}De.stringify=O9;function ja(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}De.safeStringify=ja;function T9(e){return typeof e=="string"&&De.IDENTIFIER.test(e)?new Cr(`.${e}`):yw`[${e}]`}De.getProperty=T9;function R9(e){if(typeof e=="string"&&De.IDENTIFIER.test(e))return new Cr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}De.getEsmExportName=R9;function k9(e){return new Cr(e.toString())}De.regexpCode=k9});var Nm=E(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});ur.ValueScope=ur.ValueScopeName=ur.Scope=ur.varKinds=ur.UsedValueState=void 0;var lr=Ma(),Im=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},il;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(il||(ur.UsedValueState=il={}));ur.varKinds={const:new lr.Name("const"),let:new lr.Name("let"),var:new lr.Name("var")};var sl=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=sl;var al=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=al;var I9=(0,lr._)`\n`,Cm=class extends sl{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?I9:lr.nil}}get(){return this._scope}name(t){return new al(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let p=a.get(s);if(p)return p}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),l=c.length;return c[l]=r.ref,o.setValue(r,{property:i,itemIndex:l}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,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(l=>{if(c.has(l))return;c.set(l,il.Started);let p=r(l);if(p){let u=this.opts.es5?ur.varKinds.var:ur.varKinds.const;i=(0,lr._)`${i}${u} ${l} = ${p};${this.opts._n}`}else if(p=o?.(l))i=(0,lr._)`${i}${p}${this.opts._n}`;else throw new Im(l);c.set(l,il.Completed)})}return i}};ur.ValueScope=Cm});var re=E(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 Oe=Ma(),Zr=Nm(),mo=Ma();Object.defineProperty(ye,"_",{enumerable:!0,get:function(){return mo._}});Object.defineProperty(ye,"str",{enumerable:!0,get:function(){return mo.str}});Object.defineProperty(ye,"strConcat",{enumerable:!0,get:function(){return mo.strConcat}});Object.defineProperty(ye,"nil",{enumerable:!0,get:function(){return mo.nil}});Object.defineProperty(ye,"getProperty",{enumerable:!0,get:function(){return mo.getProperty}});Object.defineProperty(ye,"stringify",{enumerable:!0,get:function(){return mo.stringify}});Object.defineProperty(ye,"regexpCode",{enumerable:!0,get:function(){return mo.regexpCode}});Object.defineProperty(ye,"Name",{enumerable:!0,get:function(){return mo.Name}});var ul=Nm();Object.defineProperty(ye,"Scope",{enumerable:!0,get:function(){return ul.Scope}});Object.defineProperty(ye,"ValueScope",{enumerable:!0,get:function(){return ul.ValueScope}});Object.defineProperty(ye,"ValueScopeName",{enumerable:!0,get:function(){return ul.ValueScopeName}});Object.defineProperty(ye,"varKinds",{enumerable:!0,get:function(){return ul.varKinds}});ye.operators={GT:new Oe._Code(">"),GTE:new Oe._Code(">="),LT:new Oe._Code("<"),LTE:new Oe._Code("<="),EQ:new Oe._Code("==="),NEQ:new Oe._Code("!=="),NOT:new Oe._Code("!"),OR:new Oe._Code("||"),AND:new Oe._Code("&&"),ADD:new Oe._Code("+")};var Hn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},qm=class extends Hn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Zr.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=ds(this.rhs,t,r)),this}get names(){return this.rhs instanceof Oe._CodeOrName?this.rhs.names:{}}},cl=class extends Hn{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 Oe.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ds(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Oe.Name?{}:{...this.lhs.names};return ll(t,this.rhs)}},Dm=class extends cl{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},jm=class extends Hn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Mm=class extends Hn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Lm=class extends Hn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Fm=class extends Hn{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=ds(this.code,t,r),this}get names(){return this.code instanceof Oe._CodeOrName?this.code.names:{}}},La=class extends Hn{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)||(C9(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ni(t,r.names),{})}},Kn=class extends La{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Um=class extends La{},us=class extends Kn{};us.kind="else";var ti=class e extends Kn{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 us(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(vw(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=ds(this.condition,t,r),this}get names(){let t=super.names;return ll(t,this.condition),this.else&&ni(t,this.else.names),t}};ti.kind="if";var ri=class extends Kn{};ri.kind="for";var zm=class extends ri{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=ds(this.iteration,t,r),this}get names(){return ni(super.names,this.iteration.names)}},Vm=class extends ri{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?Zr.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=ll(super.names,this.from);return ll(t,this.to)}},pl=class extends ri{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=ds(this.iterable,t,r),this}get names(){return ni(super.names,this.iterable.names)}},Fa=class extends Kn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Fa.kind="func";var Ua=class extends La{render(t){return"return "+super.render(t)}};Ua.kind="return";var Bm=class extends Kn{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&&ni(t,this.catch.names),this.finally&&ni(t,this.finally.names),t}},za=class extends Kn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};za.kind="catch";var Va=class extends Kn{render(t){return"finally"+super.render(t)}};Va.kind="finally";var Hm=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
8
|
-
`:""},this._extScope=t,this._scope=new Zr.Scope({parent:t}),this._nodes=[new Um]}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 qm(t,i,n)),i}const(t,r,n){return this._def(Zr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Zr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Zr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new cl(t,r,n))}add(t,r){return this._leafNode(new Dm(t,ye.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Oe.nil&&this._leafNode(new Fm(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,Oe.addCodeArg)(r,o));return r.push("}"),new Oe._Code(r)}if(t,r,n){if(this._blockNode(new ti(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new ti(t))}else(){return this._elseNode(new us)}endIf(){return this._endBlockNode(ti,us)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new zm(t),r)}forRange(t,r,n,o,i=this.opts.es5?Zr.varKinds.var:Zr.varKinds.let){let s=this._scope.toName(t);return this._for(new Vm(i,s,r,n),()=>o(s))}forOf(t,r,n,o=Zr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof Oe.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,Oe._)`${s}.length`,a=>{this.var(i,(0,Oe._)`${s}[${a}]`),n(i)})}return this._for(new pl("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?Zr.varKinds.var:Zr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,Oe._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new pl("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(ri)}label(t){return this._leafNode(new jm(t))}break(t){return this._leafNode(new Mm(t))}return(t){let r=new Ua;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ua)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Bm;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new za(i),r(i)}return n&&(this._currNode=o.finally=new Va,this.code(n)),this._endBlockNode(za,Va)}throw(t){return this._leafNode(new Lm(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=Oe.nil,n,o){return this._blockNode(new Fa(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Fa)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof ti))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ye.CodeGen=Hm;function ni(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function ll(e,t){return t instanceof Oe._CodeOrName?ni(e,t.names):e}function ds(e,t,r){if(e instanceof Oe.Name)return n(e);if(!o(e))return e;return new Oe._Code(e._items.reduce((i,s)=>(s instanceof Oe.Name&&(s=n(s)),s instanceof Oe._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 Oe._Code&&i._items.some(s=>s instanceof Oe.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function C9(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function vw(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Oe._)`!${Km(e)}`}ye.not=vw;var N9=bw(ye.operators.AND);function q9(...e){return e.reduce(N9)}ye.and=q9;var D9=bw(ye.operators.OR);function j9(...e){return e.reduce(D9)}ye.or=j9;function bw(e){return(t,r)=>t===Oe.nil?r:r===Oe.nil?t:(0,Oe._)`${Km(t)} ${e} ${Km(r)}`}function Km(e){return e instanceof Oe.Name?e:(0,Oe._)`(${e})`}});var Se=E(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.checkStrictMode=xe.getErrorPath=xe.Type=xe.useFunc=xe.setEvaluated=xe.evaluatedPropsToName=xe.mergeEvaluated=xe.eachItem=xe.unescapeJsonPointer=xe.escapeJsonPointer=xe.escapeFragment=xe.unescapeFragment=xe.schemaRefOrVal=xe.schemaHasRulesButRef=xe.schemaHasRules=xe.checkUnknownRules=xe.alwaysValidSchema=xe.toHash=void 0;var He=re(),M9=Ma();function L9(e){let t={};for(let r of e)t[r]=!0;return t}xe.toHash=L9;function F9(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(ww(e,t),!_w(t,e.self.RULES.all))}xe.alwaysValidSchema=F9;function ww(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]||Ew(e,`unknown keyword: "${i}"`)}xe.checkUnknownRules=ww;function _w(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}xe.schemaHasRules=_w;function U9(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}xe.schemaHasRulesButRef=U9;function z9({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)}`}xe.schemaRefOrVal=z9;function V9(e){return Pw(decodeURIComponent(e))}xe.unescapeFragment=V9;function B9(e){return encodeURIComponent(Wm(e))}xe.escapeFragment=B9;function Wm(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}xe.escapeJsonPointer=Wm;function Pw(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}xe.unescapeJsonPointer=Pw;function H9(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}xe.eachItem=H9;function xw({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}}xe.mergeEvaluated={props:xw({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} || {}`),Ym(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:$w}),items:xw({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 $w(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,He._)`{}`);return t!==void 0&&Ym(e,r,t),r}xe.evaluatedPropsToName=$w;function Ym(e,t,r){Object.keys(r).forEach(n=>e.assign((0,He._)`${t}${(0,He.getProperty)(n)}`,!0))}xe.setEvaluated=Ym;var Sw={};function K9(e,t){return e.scopeValue("func",{ref:t,code:Sw[t.code]||(Sw[t.code]=new M9._Code(t.code))})}xe.useFunc=K9;var Gm;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Gm||(xe.Type=Gm={}));function G9(e,t,r){if(e instanceof He.Name){let n=t===Gm.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():"/"+Wm(e)}xe.getErrorPath=G9;function Ew(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}xe.checkStrictMode=Ew});var Qt=E(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var Tt=re(),W9={data:new Tt.Name("data"),valCxt:new Tt.Name("valCxt"),instancePath:new Tt.Name("instancePath"),parentData:new Tt.Name("parentData"),parentDataProperty:new Tt.Name("parentDataProperty"),rootData:new Tt.Name("rootData"),dynamicAnchors:new Tt.Name("dynamicAnchors"),isAllOfVariant:new Tt.Name("isAllOfVariant"),vErrors:new Tt.Name("vErrors"),errors:new Tt.Name("errors"),this:new Tt.Name("this"),self:new Tt.Name("self"),scope:new Tt.Name("scope"),json:new Tt.Name("json"),jsonPos:new Tt.Name("jsonPos"),jsonLen:new Tt.Name("jsonLen"),jsonPart:new Tt.Name("jsonPart")};Qm.default=W9});var Ba=E(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 Ie=re(),dl=Se(),Jt=Qt();Ut.keywordError={message:({keyword:e})=>(0,Ie.str)`must pass "${e}" keyword validation`};Ut.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Ie.str)`"${e}" keyword must be ${t} ($data)`:(0,Ie.str)`"${e}" keyword is invalid ($data)`};function Y9(e,t=Ut.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=Tw(e,t,r);n??(s||a)?Aw(i,c):Ow(o,(0,Ie._)`[${c}]`)}Ut.reportError=Y9;function Q9(e,t=Ut.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=Tw(e,t,r);Aw(o,a),i||s||Ow(n,Jt.default.vErrors)}Ut.reportExtraError=Q9;function J9(e,t){e.assign(Jt.default.errors,t),e.if((0,Ie._)`${Jt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Ie._)`${Jt.default.vErrors}.length`,t),()=>e.assign(Jt.default.vErrors,null)))}Ut.resetErrorsCount=J9;function X9({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,Jt.default.errors,a=>{e.const(s,(0,Ie._)`${Jt.default.vErrors}[${a}]`),e.if((0,Ie._)`${s}.instancePath === undefined`,()=>e.assign((0,Ie._)`${s}.instancePath`,(0,Ie.strConcat)(Jt.default.instancePath,i.errorPath))),e.assign((0,Ie._)`${s}.schemaPath`,(0,Ie.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,Ie._)`${s}.schema`,r),e.assign((0,Ie._)`${s}.data`,n))})}Ut.extendErrors=X9;function Aw(e,t){let r=e.const("err",t);e.if((0,Ie._)`${Jt.default.vErrors} === null`,()=>e.assign(Jt.default.vErrors,(0,Ie._)`[${r}]`),(0,Ie._)`${Jt.default.vErrors}.push(${r})`),e.code((0,Ie._)`${Jt.default.errors}++`)}function Ow(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,Ie._)`new ${e.ValidationError}(${t})`):(r.assign((0,Ie._)`${n}.errors`,t),r.return(!1))}var oi={keyword:new Ie.Name("keyword"),schemaPath:new Ie.Name("schemaPath"),params:new Ie.Name("params"),propertyName:new Ie.Name("propertyName"),message:new Ie.Name("message"),schema:new Ie.Name("schema"),parentSchema:new Ie.Name("parentSchema")};function Tw(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Ie._)`{}`:Z9(e,t,r)}function Z9(e,t,r={}){let{gen:n,it:o}=e,i=[eH(o,r),tH(e,r)];return rH(e,t,i),n.object(...i)}function eH({errorPath:e},{instancePath:t}){let r=t?(0,Ie.str)`${e}${(0,dl.getErrorPath)(t,dl.Type.Str)}`:e;return[Jt.default.instancePath,(0,Ie.strConcat)(Jt.default.instancePath,r)]}function tH({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,Ie.str)`${t}/${e}`;return r&&(o=(0,Ie.str)`${o}${(0,dl.getErrorPath)(r,dl.Type.Str)}`),[oi.schemaPath,o]}function rH(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:u}=a;n.push([oi.keyword,o],[oi.params,typeof t=="function"?t(e):t||(0,Ie._)`{}`]),c.messages&&n.push([oi.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([oi.schema,s],[oi.parentSchema,(0,Ie._)`${p}${u}`],[Jt.default.data,i]),l&&n.push([oi.propertyName,l])}});var kw=E(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.boolOrEmptySchema=fs.topBoolOrEmptySchema=void 0;var nH=Ba(),oH=re(),iH=Qt(),sH={message:"boolean schema is false"};function aH(e){let{gen:t,schema:r,validateName:n}=e;r===!1?Rw(e,!1):typeof r=="object"&&r.$async===!0?t.return(iH.default.data):(t.assign((0,oH._)`${n}.errors`,null),t.return(!0))}fs.topBoolOrEmptySchema=aH;function cH(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),Rw(e)):r.var(t,!0)}fs.boolOrEmptySchema=cH;function Rw(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,nH.reportError)(o,sH,void 0,t)}});var Jm=E(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.getRules=ms.isJSONType=void 0;var pH=["string","number","integer","boolean","null","object","array"],lH=new Set(pH);function uH(e){return typeof e=="string"&&lH.has(e)}ms.isJSONType=uH;function dH(){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:{}}}ms.getRules=dH});var Xm=E(ho=>{"use strict";Object.defineProperty(ho,"__esModule",{value:!0});ho.shouldUseRule=ho.shouldUseGroup=ho.schemaHasRulesForType=void 0;function fH({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Iw(e,n)}ho.schemaHasRulesForType=fH;function Iw(e,t){return t.rules.some(r=>Cw(e,r))}ho.shouldUseGroup=Iw;function Cw(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))}ho.shouldUseRule=Cw});var Ha=E(zt=>{"use strict";Object.defineProperty(zt,"__esModule",{value:!0});zt.reportTypeError=zt.checkDataTypes=zt.checkDataType=zt.coerceAndCheckDataType=zt.getJSONTypes=zt.getSchemaTypes=zt.DataType=void 0;var mH=Jm(),hH=Xm(),yH=Ba(),ue=re(),Nw=Se(),hs;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(hs||(zt.DataType=hs={}));function gH(e){let t=qw(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}zt.getSchemaTypes=gH;function qw(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(mH.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}zt.getJSONTypes=qw;function vH(e,t){let{gen:r,data:n,opts:o}=e,i=bH(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,hH.schemaHasRulesForType)(e,t[0]));if(s){let a=eh(t,n,o.strictNumbers,hs.Wrong);r.if(a,()=>{i.length?xH(e,t,i):th(e)})}return s}zt.coerceAndCheckDataType=vH;var Dw=new Set(["string","number","integer","boolean","null"]);function bH(e,t){return t?e.filter(r=>Dw.has(r)||t==="array"&&r==="array"):[]}function xH(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(eh(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,ue._)`${a} !== undefined`);for(let l of r)(Dw.has(l)||l==="array"&&i.coerceTypes==="array")&&c(l);n.else(),th(e),n.endIf(),n.if((0,ue._)`${a} !== undefined`,()=>{n.assign(o,a),SH(e,a)});function c(l){switch(l){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
|
|
9
|
-
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,ue._)`+${o}`);return;case"integer":n.elseIf((0,ue._)`${s} === "boolean" || ${o} === null
|
|
10
|
-
|| (${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"
|
|
11
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,ue._)`[${o}]`)}}}function SH({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,ue._)`${t} !== undefined`,()=>e.assign((0,ue._)`${t}[${r}]`,n))}function Zm(e,t,r,n=hs.Correct){let o=n===hs.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===hs.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)}}zt.checkDataType=Zm;function eh(e,t,r,n){if(e.length===1)return Zm(e[0],t,r,n);let o,i=(0,Nw.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,Zm(s,t,r,n));return o}zt.checkDataTypes=eh;var wH={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,ue._)`{type: ${e}}`:(0,ue._)`{type: ${t}}`};function th(e){let t=_H(e);(0,yH.reportError)(t,wH)}zt.reportTypeError=th;function _H(e){let{gen:t,data:r,schema:n}=e,o=(0,Nw.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var Mw=E(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.assignDefaults=void 0;var ys=re(),PH=Se();function $H(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)jw(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>jw(e,i,o.default))}fl.assignDefaults=$H;function jw(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,ys._)`${i}${(0,ys.getProperty)(t)}`;if(o){(0,PH.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,ys._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,ys._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,ys._)`${a} = ${(0,ys.stringify)(r)}`)}});var nh=E(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.getSkipCondition=void 0;var ml=re(),rh=Qt();function EH(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,ml._)`typeof ${rh.default.this} == "object" && ${rh.default.this} && ${rh.default.this}.apiContext`;return o&&s.push((0,ml._)`${a} === "request"`),i&&s.push((0,ml._)`${a} === "response"`),(0,ml.or)(...s)}hl.getSkipCondition=EH});var Nr=E(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.validateUnion=Ve.validateArray=Ve.usePattern=Ve.callValidateCode=Ve.schemaProperties=Ve.allSchemaProperties=Ve.noPropertyInData=Ve.propertyInData=Ve.isOwnProperty=Ve.hasPropFunc=Ve.reportMissingProp=Ve.checkMissingProp=Ve.checkReportMissingProp=void 0;var Ke=re(),oh=Se(),Gn=Qt(),AH=Se(),OH=nh();function TH(e,t){let{gen:r,data:n,it:o}=e;r.if(sh(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ke._)`${t}`},!0),e.error()})}Ve.checkReportMissingProp=TH;function RH({gen:e,data:t,it:{opts:r},parentSchema:n},o,i){return(0,Ke.or)(...o.map(s=>{var a;return(0,Ke.and)((0,Ke.not)((a=(0,OH.getSkipCondition)(n,s))!==null&&a!==void 0?a:(0,Ke._)`false`),sh(e,t,s,r.ownProperties),(0,Ke._)`${i} = ${s}`)}))}Ve.checkMissingProp=RH;function kH(e,t){e.setParams({missingProperty:t},!0),e.error()}Ve.reportMissingProp=kH;function Lw(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ke._)`Object.prototype.hasOwnProperty`})}Ve.hasPropFunc=Lw;function ih(e,t,r){return(0,Ke._)`${Lw(e)}.call(${t}, ${r})`}Ve.isOwnProperty=ih;function IH(e,t,r,n){let o=(0,Ke._)`${t}${(0,Ke.getProperty)(r)} !== undefined`;return n?(0,Ke._)`${o} && ${ih(e,t,r)}`:o}Ve.propertyInData=IH;function sh(e,t,r,n){let o=(0,Ke._)`${t}${(0,Ke.getProperty)(r)} === undefined`;return n?(0,Ke.or)(o,(0,Ke.not)(ih(e,t,r))):o}Ve.noPropertyInData=sh;function Fw(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ve.allSchemaProperties=Fw;function CH(e,t){return Fw(t).filter(r=>!(0,oh.alwaysValidSchema)(e,t[r]))}Ve.schemaProperties=CH;function NH({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,l){let p=l?(0,Ke._)`${e}, ${t}, ${n}${o}`:t,u=[[Gn.default.instancePath,(0,Ke.strConcat)(Gn.default.instancePath,i)],[Gn.default.parentData,s.parentData],[Gn.default.parentDataProperty,s.parentDataProperty],[Gn.default.rootData,Gn.default.rootData],[Gn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&u.push([Gn.default.dynamicAnchors,Gn.default.dynamicAnchors]);let f=(0,Ke._)`${p}, ${r.object(...u)}`;return c!==Ke.nil?(0,Ke._)`${a}.call(${c}, ${f})`:(0,Ke._)`${a}(${f})`}Ve.callValidateCode=NH;var qH=(0,Ke._)`new RegExp`;function DH({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,Ke._)`${o.code==="new RegExp"?qH:(0,AH.useFunc)(e,o)}(${r}, ${n})`})}Ve.usePattern=DH;function jH(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,Ke._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:oh.Type.Num},i),t.if((0,Ke.not)(i),a)})}}Ve.validateArray=jH;function MH(e){let{gen:t,schema:r,keyword:n,parentSchema:o,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&o.discriminator||r.some(l=>(0,oh.alwaysValidSchema)(i,l))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((l,p)=>{let u=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},c);t.assign(a,(0,Ke._)`${a} || ${c}`),e.mergeValidEvaluated(u,c)||t.if((0,Ke.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Ve.validateUnion=MH});var Vw=E(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.validateKeywordUsage=xn.validSchemaType=xn.funcKeywordCode=xn.macroKeywordCode=void 0;var Xt=re(),ii=Qt(),LH=Nr(),FH=Ba();function UH(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=zw(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:Xt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}xn.macroKeywordCode=UH;function zH(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;BH(c,t);let l=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,p=zw(n,o,l),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)y(),t.modifying&&Uw(e),b(()=>e.error());else{let x=t.async?m():h();t.modifying&&Uw(e),b(()=>VH(e,x))}}function m(){let x=n.let("ruleErrs",null);return n.try(()=>y((0,Xt._)`await `),w=>n.assign(u,!1).if((0,Xt._)`${w} instanceof ${c.ValidationError}`,()=>n.assign(x,(0,Xt._)`${w}.errors`),()=>n.throw(w))),x}function h(){let x=(0,Xt._)`${p}.errors`;return n.assign(x,null),y(Xt.nil),x}function y(x=t.async?(0,Xt._)`await `:Xt.nil){let w=c.opts.passContext?ii.default.this:ii.default.self,S=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,Xt._)`${x}${(0,LH.callValidateCode)(e,p,w,S)}`,t.modifying)}function b(x){var w;n.if((0,Xt.not)((w=t.valid)!==null&&w!==void 0?w:u),x)}}xn.funcKeywordCode=zH;function Uw(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Xt._)`${n.parentData}[${n.parentDataProperty}]`))}function VH(e,t){let{gen:r}=e;r.if((0,Xt._)`Array.isArray(${t})`,()=>{r.assign(ii.default.vErrors,(0,Xt._)`${ii.default.vErrors} === null ? ${t} : ${ii.default.vErrors}.concat(${t})`).assign(ii.default.errors,(0,Xt._)`${ii.default.vErrors}.length`),(0,FH.extendErrors)(e)},()=>e.error())}function BH({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function zw(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Xt.stringify)(r)})}function HH(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")}xn.validSchemaType=HH;function KH({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)}}xn.validateKeywordUsage=KH});var Hw=E(yo=>{"use strict";Object.defineProperty(yo,"__esModule",{value:!0});yo.extendSubschemaMode=yo.extendSubschemaData=yo.getSubschema=void 0;var Sn=re(),Bw=Se();function GH(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,Sn._)`${e.schemaPath}${(0,Sn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Sn._)`${e.schemaPath}${(0,Sn.getProperty)(t)}${(0,Sn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Bw.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')}yo.getSubschema=GH;function WH(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:u}=t,f=a.let("data",(0,Sn._)`${t.data}${(0,Sn.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Sn.str)`${l}${(0,Bw.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Sn._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(o!==void 0){let l=o instanceof Sn.Name?o:a.let("data",o,!0);c(l),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}yo.extendSubschemaData=WH;function YH(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}yo.extendSubschemaMode=YH});var Ka=E((Jpe,Kw)=>{"use strict";Kw.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 ah=E((Xpe,Gw)=>{"use strict";var go=Gw.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(){};yl(t,n,o,e,"",e)};go.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};go.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};go.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};go.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 yl(e,t,r,n,o,i,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,i,s,a,c,l);for(var p in n){var u=n[p];if(Array.isArray(u)){if(p in go.arrayKeywords)for(var f=0;f<u.length;f++)yl(e,t,r,u[f],o+"/"+p+"/"+f,i,o,p,n,f)}else if(p in go.propsKeywords){if(u&&typeof u=="object")for(var m in u)yl(e,t,r,u[m],o+"/"+p+"/"+QH(m),i,o,p,n,m)}else(p in go.keywords||e.allKeys&&!(p in go.skipKeywords))&&yl(e,t,r,u,o+"/"+p,i,o,p,n)}r(n,o,i,s,a,c,l)}}function QH(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ga=E(dr=>{"use strict";Object.defineProperty(dr,"__esModule",{value:!0});dr.getSchemaRefs=dr.resolveUrl=dr.normalizeId=dr._getFullPath=dr.getFullPath=dr.inlineRef=void 0;var JH=Se(),XH=Ka(),ZH=ah(),eK=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function tK(e,t=!0){return typeof e=="boolean"?!0:t===!0?!ch(e):t?Ww(e)<=t:!1}dr.inlineRef=tK;var rK=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ch(e){for(let t in e){if(rK.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(ch)||typeof r=="object"&&ch(r))return!0}return!1}function Ww(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!eK.has(r)&&(typeof e[r]=="object"&&(0,JH.eachItem)(e[r],n=>t+=Ww(n)),t===1/0))return 1/0}return t}function Yw(e,t="",r){r!==!1&&(t=gs(t));let n=e.parse(t);return Qw(e,n)}dr.getFullPath=Yw;function Qw(e,t){return e.serialize(t).split("#")[0]+"#"}dr._getFullPath=Qw;var nK=/#\/?$/;function gs(e){return e?e.replace(nK,""):""}dr.normalizeId=gs;function oK(e,t,r){return r=gs(r),e.resolve(t,r)}dr.resolveUrl=oK;var iK=/^[a-z_][-a-z0-9._]*$/i;function sK(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=gs(e[r]||t),i={"":o},s=Yw(n,o,!1),a={},c=new Set;return ZH(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 $=this.opts.uriResolver.resolve;if(S=gs(b?$(b,S):S),c.has(S))throw p(S);c.add(S);let P=this.refs[S];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?l(u,P.schema,S):S!==gs(y)&&(S[0]==="#"?(l(u,a[S],S),a[S]=u):this.refs[S]=y),S}function w(S){if(typeof S=="string"){if(!iK.test(S))throw new Error(`invalid anchor "${S}"`);x.call(this,`#${S}`)}}}),a;function l(u,f,m){if(f!==void 0&&!XH(u,f))throw p(m)}function p(u){return new Error(`reference "${u}" resolves to more than one schema`)}}dr.getSchemaRefs=sK});var vs=E(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.getData=vo.KeywordCxt=vo.validateFunctionCode=void 0;var t_=kw(),Jw=Ha(),lh=Xm(),gl=Ha(),aK=Mw(),Ya=Vw(),ph=Hw(),W=re(),ee=Qt(),cK=Ga(),Wn=Se(),Wa=Ba();function pK(e){if(o_(e)&&(i_(e),n_(e))){dK(e);return}r_(e,()=>(0,t_.topBoolOrEmptySchema)(e))}vo.validateFunctionCode=pK;function r_({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,W._)`${ee.default.data}, ${ee.default.valCxt}`,n.$async,()=>{e.code((0,W._)`"use strict"; ${Xw(r,o)}`),uK(e,o),e.code(i)}):e.func(t,(0,W._)`${ee.default.data}, ${lK(o)}`,n.$async,()=>e.code(Xw(r,o)).code(i))}function lK(e){return(0,W._)`{${ee.default.instancePath}="", ${ee.default.parentData}, ${ee.default.parentDataProperty}, ${ee.default.rootData}=${ee.default.data}${e.dynamicRef?(0,W._)`, ${ee.default.dynamicAnchors}={}`:W.nil}, ${ee.default.isAllOfVariant} = 0}={}`}function uK(e,t){e.if(ee.default.valCxt,()=>{e.var(ee.default.instancePath,(0,W._)`${ee.default.valCxt}.${ee.default.instancePath}`),e.var(ee.default.parentData,(0,W._)`${ee.default.valCxt}.${ee.default.parentData}`),e.var(ee.default.parentDataProperty,(0,W._)`${ee.default.valCxt}.${ee.default.parentDataProperty}`),e.var(ee.default.rootData,(0,W._)`${ee.default.valCxt}.${ee.default.rootData}`),e.var(ee.default.isAllOfVariant,(0,W._)`${ee.default.valCxt}.${ee.default.isAllOfVariant}`),t.dynamicRef&&e.var(ee.default.dynamicAnchors,(0,W._)`${ee.default.valCxt}.${ee.default.dynamicAnchors}`)},()=>{e.var(ee.default.instancePath,(0,W._)`""`),e.var(ee.default.parentData,(0,W._)`undefined`),e.var(ee.default.parentDataProperty,(0,W._)`undefined`),e.var(ee.default.rootData,ee.default.data),e.var(ee.default.isAllOfVariant,(0,W._)`0`),t.dynamicRef&&e.var(ee.default.dynamicAnchors,(0,W._)`{}`)})}function dK(e){let{schema:t,opts:r,gen:n}=e;r_(e,()=>{r.$comment&&t.$comment&&a_(e),gK(e),n.let(ee.default.vErrors,null),n.let(ee.default.errors,0),r.unevaluated&&fK(e),s_(e),xK(e)})}function fK(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 Xw(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 mK(e,t){if(o_(e)&&(i_(e),n_(e))){hK(e,t);return}(0,t_.boolOrEmptySchema)(e,t)}function n_({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 o_(e){return typeof e.schema!="boolean"}function hK(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&a_(e),vK(e),bK(e);let i=n.const("_errs",ee.default.errors);s_(e,i),n.var(t,(0,W._)`${i} === ${ee.default.errors}`)}function i_(e){(0,Wn.checkUnknownRules)(e),yK(e)}function s_(e,t){if(e.opts.jtd)return Zw(e,[],!1,t);let r=(0,Jw.getSchemaTypes)(e.schema),n=(0,Jw.coerceAndCheckDataType)(e,r);Zw(e,r,!n,t)}function yK(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Wn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function gK(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Wn.checkStrictMode)(e,"default is ignored in the schema root")}function vK(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,cK.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function bK(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function a_({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,W._)`${ee.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,W.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,W._)`${ee.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function xK(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,W._)`${ee.default.errors} === 0`,()=>t.return(ee.default.data),()=>t.throw((0,W._)`new ${o}(${ee.default.vErrors})`)):(t.assign((0,W._)`${n}.errors`,ee.default.vErrors),i.unevaluated&&SK(e),t.return((0,W._)`${ee.default.errors} === 0`))}function SK({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 Zw(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:l}=e,{RULES:p}=l;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,Wn.schemaHasRulesButRef)(i,p))){o.block(()=>p_(e,"$ref",p.all.$ref.definition));return}c.jtd||wK(e,t),o.block(()=>{for(let f of p.rules)u(f);u(p.post)});function u(f){(0,lh.shouldUseGroup)(i,f)&&(f.type?(o.if((0,gl.checkDataType)(f.type,s,c.strictNumbers)),e_(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,gl.reportTypeError)(e)),o.endIf()):e_(e,f),a||o.if((0,W._)`${ee.default.errors} === ${n||0}`))}}function e_(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,aK.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,lh.shouldUseRule)(n,s)||i(n,s))&&p_(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 wK(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(_K(e,t),e.opts.allowUnionTypes||PK(e,t),$K(e,e.dataTypes))}function _K(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{c_(e.dataTypes,r)||uh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),AK(e,t)}}function PK(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&uh(e,"use allowUnionTypes to allow union type keyword")}function $K(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,lh.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>EK(t,s))&&uh(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function EK(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function c_(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function AK(e,t){let r=[];for(let n of e.dataTypes)c_(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function uh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Wn.checkStrictMode)(e,t,e.opts.strictTypes)}var vl=class{constructor(t,r,n){if((0,Ya.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,Wn.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",l_(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ya.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",ee.default.errors))}result(t,r,n){this.failResult((0,W.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,W.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,W._)`${r} !== undefined && (${(0,W.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Wa.reportExtraError:Wa.reportError)(this,this.def.error,r)}$dataError(){(0,Wa.reportError)(this,this.def.$dataError||Wa.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Wa.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,gl.checkDataTypes)(c,r,i.opts.strictNumbers,gl.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,ph.getSubschema)(this.it,t);(0,ph.extendSubschemaData)(o,this.it,t),(0,ph.extendSubschemaMode)(o,t);let i={...this.it,...o,items:void 0,props:void 0,isAllOfVariant:n};return mK(i,r),i}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Wn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Wn.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}};vo.KeywordCxt=vl;function p_(e,t,r,n){let o=new vl(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Ya.funcKeywordCode)(o,r):"macro"in r?(0,Ya.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Ya.funcKeywordCode)(o,r)}var OK=/^\/(?:[^~]|~0|~1)*$/,TK=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function l_(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return ee.default.rootData;if(e[0]==="/"){if(!OK.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=ee.default.rootData}else{let l=TK.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(o=l[2],o==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(i=r[t-p],!o)return i}let s=i,a=o.split("/");for(let l of a)l&&(i=(0,W._)`${i}${(0,W.getProperty)((0,Wn.unescapeJsonPointer)(l))}`,s=(0,W._)`${s} && ${i}`);return s;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}vo.getData=l_});var Qa=E(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});var dh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};fh.default=dh});var bs=E(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var mh=Ga(),hh=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,mh.resolveUrl)(t,r,n),this.missingSchema=(0,mh.normalizeId)((0,mh.getFullPath)(t,this.missingRef))}};yh.default=hh});var Ja=E(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.resolveSchema=qr.getCompilingSchema=qr.resolveRef=qr.compileSchema=qr.SchemaEnv=void 0;var en=re(),RK=Qa(),si=Qt(),tn=Ga(),u_=Se(),kK=vs(),xs=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,tn.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};qr.SchemaEnv=xs;function vh(e){let t=f_.call(this,e);if(t)return t;let r=(0,tn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new en.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:RK.default,code:(0,en._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:si.default.data,parentData:si.default.parentData,parentDataProperty:si.default.parentDataProperty,dataNames:[si.default.data],dataPathArr:[en.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,en.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:en.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,en._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,kK.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let u=s.toString();p=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(si.default.scope)}return ${u}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let m=new Function(`${si.default.self}`,`${si.default.scope}`,p)(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}=l;m.evaluated={props:h instanceof en.Name?void 0:h,items:y instanceof en.Name?void 0:y,dynamicProps:h instanceof en.Name,dynamicItems:y instanceof en.Name},m.source&&(m.source.evaluated=(0,en.stringify)(m.evaluated))}return e.validate=m,e}catch(u){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),u}finally{this._compilations.delete(e)}}qr.compileSchema=vh;function IK(e,t,r){var n;let o=(0,tn.resolveUrl)(this.opts.uriResolver,t,r),i=e.refs[o];if(i)return i;let s=d_.call(this,e,o);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[o],{schemaId:c}=this.opts;a&&(s=new xs({schema:a,schemaId:c,root:e,baseId:t}))}if(s===void 0&&this.opts.loadSchemaSync){let a=this.opts.loadSchemaSync(t,r,o);a&&!(this.refs[o]||this.schemas[o])&&(this.addSchema(a,o,void 0),s=d_.call(this,e,o))}if(s!==void 0)return e.refs[o]=CK.call(this,s)}qr.resolveRef=IK;function CK(e){return(0,tn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:vh.call(this,e)}function f_(e){for(let t of this._compilations)if(NK(t,e))return t}qr.getCompilingSchema=f_;function NK(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function d_(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||bl.call(this,e,t)}function bl(e,t){let r=this.opts.uriResolver.parse(t),n=(0,tn._getFullPath)(this.opts.uriResolver,r),o=(0,tn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return gh.call(this,r,e);let i=(0,tn.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=bl.call(this,e,s);return typeof a?.schema!="object"?void 0:gh.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||vh.call(this,s),i===(0,tn.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(o=(0,tn.resolveUrl)(this.opts.uriResolver,o,l)),new xs({schema:a,schemaId:c,root:e,baseId:o})}return gh.call(this,r,s)}}qr.resolveSchema=bl;var qK=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function gh(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,u_.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!qK.has(a)&&l&&(t=(0,tn.resolveUrl)(this.opts.uriResolver,t,l))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,u_.schemaHasRulesButRef)(r,this.RULES)){let a=(0,tn.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=bl.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new xs({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var m_=E((ole,DK)=>{DK.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 Ph=E((ile,w_)=>{"use strict";var jK=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),xh=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),MK=RegExp.prototype.test.bind(/^\d*$/u),ai=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Sh=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),y_=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),wh=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),LK=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),fr=new Array(256);{let e="0123456789ABCDEF";for(let t=0;t<256;t++)fr[t]="%"+e[t>>4]+e[t&15]}function Vt(e){return e<2048?fr[192|e>>6]+fr[128|e&63]:e<65536?fr[224|e>>12]+fr[128|e>>6&63]+fr[128|e&63]:fr[240|e>>18]+fr[128|e>>12&63]+fr[128|e>>6&63]+fr[128|e&63]}function FK(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 UK=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),zK=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),VK=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),BK=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function HK(e){if(e.length===0)return!1;for(let t=0;t<e.length;t++)if(!VK(e[t])){if(e[t]==="%"&&t+2<e.length&&ai(e.slice(t+1,t+3))){t+=2;continue}return!1}return!0}function h_(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 KK(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||!xh(c))return;i+=2;continue}if(!UK(c))return;o[a]=parseInt(c,16).toString(16),i++}if(t===-1)return i!==8?void 0:h_(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 h_(s)}function bh(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&&zK(n))return n=n.toLowerCase(),{host:`[${n}]`,escapedHost:n,isIPV6:!1,isIPVFuture:!0};if(GK(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),!HK(o))return{host:e,isIPV6:!1,error:!0};n=n.slice(0,i)}let s=KK(n);return s===void 0?{host:e,isIPV6:!1,error:!0}:{host:s+(o?"%"+o:""),escapedHost:s+(o?"%25"+o:""),isIPV6:!0}}function GK(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function g_(e){let t=e,r=[],n=-1,o=0;for(;o=t.length;){if(o===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(o===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(o===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}function WK(e){if(e===""||e[0]==="/")return g_(e);let t=e.split("/"),r=t.length-1,n=[],o=!1;for(let i=0;i<=r;i++){let s=t[i];s==="."||s===".."?(s===".."&&(n.length!==0&&n[n.length-1]!==".."?n.pop():n.push("..")),o=i===r):n.push(s)}return o&&n[n.length-1]!==".."&&n.push(""),(n.length===0||n[0]===""||n[0].includes(":"))&&n.unshift("."),n.join("/")}var YK={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},QK=/[@/?#:]/g,JK=/[@/?#]/g;function v_(e,t){let r=t?JK:QK;return r.lastIndex=0,e.replace(r,n=>YK[n])}function b_(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let o=e.slice(n+1,n+3);if(ai(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));t&&Sh(s)?r+=s:r+="%"+i,n+=2;continue}}r+=e[n]}return r}function XK(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(ai(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));s!=="."&&Sh(s)?t+=s:t+="%"+i,r+=2;continue}}if(y_(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=S_(o)?n:fr[o];else if(o<55296||o>57343)t+=Vt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=Vt(65536+(o-55296<<10)+(i-56320)),r++):t+=Vt(65533)}else t+=Vt(65533)}}return t}function ZK(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(ai(s)){r+="%"+s.toUpperCase(),o+=2;continue}}if(i==="/"&&(n=!1),y_(i)&&(i!==":"||!n))r+=i;else{let s=e.charCodeAt(o);if(s<128)r+=fr[s];else if(s<55296||s>57343)r+=Vt(s);else if(s<=56319&&o+1<e.length){let a=e.charCodeAt(o+1);a>=56320&&a<=57343?(r+=Vt(65536+(s-55296<<10)+(a-56320)),o++):r+=Vt(65533)}else r+=Vt(65533)}}return r}function _h(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(ai(i)){r+="%"+i.toUpperCase(),n+=2;continue}}if(t(o))r+=o;else{let i=e.charCodeAt(n);if(i<128)r+=fr[i];else if(i<55296||i>57343)r+=Vt(i);else if(i<=56319&&n+1<e.length){let s=e.charCodeAt(n+1);s>=56320&&s<=57343?(r+=Vt(65536+(i-55296<<10)+(s-56320)),n++):r+=Vt(65533)}else r+=Vt(65533)}}return r}function x_(e){return _h(e,LK)}function e4(e){return _h(e,wh)}function t4(e){return _h(e,wh)}function S_(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 r4(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(ai(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));Sh(s)?t+=s:t+="%"+i,r+=2;continue}}if(wh(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=S_(o)?n:fr[o];else if(o<55296||o>57343)t+=Vt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=Vt(65536+(o-55296<<10)+(i-56320)),r++):t+=Vt(65533)}else t+=Vt(65533)}}return t}function n4(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(ai(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function o4(e){let t=[];if(e.userinfo!==void 0&&(t.push(x_(e.userinfo)),t.push("@")),e.host!==void 0){let r=e.host;if(!xh(r)){let n=bh(r);n.isIPV6!==!0&&n.isIPVFuture!==!0&&(r=b_(r,!0),n=bh(r)),n.isIPV6===!0||n.isIPVFuture===!0?r=`[${n.escapedHost}]`:r=v_(r,!1)}t.push(r)}if(typeof e.port=="number"||typeof e.port=="string"){let r=String(e.port);if(!MK(r))throw new TypeError("URI port is malformed.");t.push(":"),t.push(r)}return t.length?t.join(""):void 0}w_.exports={nonSimpleDomain:BK,recomposeAuthority:o4,reescapeHostDelimiters:v_,normalizePercentEncoding:b_,normalizePathEncoding:XK,serializePathEncoding:ZK,normalizeQueryFragmentEncoding:r4,encodeUserinfo:x_,encodeQuery:e4,encodeFragment:t4,escapePreservingEscapes:n4,removeDotSegments:g_,removeDotSegmentsRelative:WK,isIPv4:xh,isUUID:jK,normalizeIPv6:bh,stringArrayToHexStripped:FK}});var A_=E((sle,E_)=>{"use strict";var{isUUID:i4}=Ph(),s4=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,a4=["http","https","ws","wss","urn","urn:uuid"];function c4(e){return a4.indexOf(e)!==-1}function $h(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 __(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function P_(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 p4(e){return e.secure=$h(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function l4(e){if((e.port===($h(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 u4(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(s4);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=Eh(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function d4(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=Eh(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 f4(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!i4(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function m4(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var $_={scheme:"http",domainHost:!0,parse:__,serialize:P_},h4={scheme:"https",domainHost:$_.domainHost,parse:__,serialize:P_},xl={scheme:"ws",domainHost:!0,parse:p4,serialize:l4},y4={scheme:"wss",domainHost:xl.domainHost,parse:xl.parse,serialize:xl.serialize},g4={scheme:"urn",parse:u4,serialize:d4,skipNormalize:!0},v4={scheme:"urn:uuid",parse:f4,serialize:m4,skipNormalize:!0},Sl={http:$_,https:h4,ws:xl,wss:y4,urn:g4,"urn:uuid":v4};Object.setPrototypeOf(Sl,null);function Eh(e){return e&&(Sl[e]||Sl[e.toLowerCase()])||void 0}E_.exports={wsIsSecure:$h,SCHEMES:Sl,isValidSchemeName:c4,getSchemeHandler:Eh}});var Rh=E((ale,El)=>{"use strict";var{normalizeIPv6:I_,removeDotSegments:Za,removeDotSegmentsRelative:C_,recomposeAuthority:b4,normalizePercentEncoding:Ah,normalizePathEncoding:x4,serializePathEncoding:O_,normalizeQueryFragmentEncoding:T_,encodeQuery:S4,encodeFragment:w4,reescapeHostDelimiters:_4,isIPv4:N_,nonSimpleDomain:P4}=Ph(),{SCHEMES:q_,getSchemeHandler:Oh}=A_(),D_=/^[A-Za-z][A-Za-z0-9+.-]*$/u,j_="URI scheme is malformed.",wl="URI host is malformed.",$4=/[\0-\x20"#/:<>?@[\\\]^`{|}\x7F]/u;function R_(e){let t=String(e);if(!D_.test(t))throw new TypeError(j_);return t}function E4(e,t){return typeof e=="string"?e=q4(e,t):typeof e=="object"&&(e=Pl(ci(e,t),t)),e}function A4(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:i,malformedPercentEncoding:s,malformedSchemeSpecific:a,malformedHost:c,malformedScheme:l}=_l(e,n),{parsed:p,malformedAuthorityOrPort:u,malformedPercentEncoding:f,malformedSchemeSpecific:m,malformedHost:h,malformedScheme:y}=_l(t,n);if(i||u||s||f||a||m||c||h||l||y)throw new Error(o.error||p.error||"URI is malformed.");let b=M_(o,p,n,!0),x=Oh(r&&r.scheme||b.scheme),w=b.host,S=w!==void 0&&w!==""&&(N_(w)||I_(w).isIPV6);if(F_(b,r||{},x,S))throw new Error(wl);L_(b,r||{},x,S);let $=w&&w.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(w);if(b.error&&!$)throw new Error(b.error);return n.skipEscape=!0,ci(b,n)}function M_(e,t,r,n){let o={};if(n||(e=Pl(ci(e,r),r),t=Pl(ci(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=Za(t.path||""),o.query=t.query;else{if(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Za(t.path||""),o.query=t.query;else{if(!t.path)o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query;else{if(t.path[0]==="/")o.path=Za(t.path);else{let i=e.userinfo!==void 0||e.host!==void 0||e.port!==void 0;i&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=e.scheme===void 0&&!i&&o.path[0]!=="/"?C_(o.path):Za(o.path)}o.query=t.query}o.userinfo=e.userinfo,o.host=e.host,o.port=e.port}o.scheme=e.scheme}return o.fragment=t.fragment,o}function O4(e,t,r){let n=k_(e,r),o=k_(t,r);return n!==void 0&&o!==void 0&&n===o}function ci(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=R_(r.scheme));let i=Oh(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n);let s=r.userinfo!==void 0||r.host!==void 0||r.port!==void 0,a=(r.scheme===void 0||n.reference==="suffix")&&!s,c=!n.skipEscape&&a;r.path!==void 0&&(n.skipEscape?r.path=Ah(r.path):r.path=O_(r.path,c)),n.reference!=="suffix"&&r.scheme&&(r.scheme=R_(r.scheme),o.push(r.scheme,":"));let l=b4(r);if(l!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(l),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let p=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(p=a&&p[0]!=="/"?C_(p):Za(p)),a&&(p=O_(p,!0)),l===void 0&&p[0]==="/"&&p[1]==="/"&&(p="/%2F"+p.slice(2)),o.push(p)}return r.query!==void 0&&o.push("?",S4(r.query)),r.fragment!==void 0&&o.push("#",w4(r.fragment)),o.join("")}var T4=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,R4=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,k4=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function I4(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 Xa(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 $l(e){return e[0]==="["&&e[e.length-1]==="]"}function C4(e){let t=e[4];return Xa(e[3])||t!==void 0&&!$l(t)&&Xa(t)||Xa(e[6])||Xa(e[7])||Xa(e[8])}function L_(e,t,r,n){if(F_(e,t,r,n))return e.error=e.error||wl,!0;if(!t.unicodeSupport&&(!r||!r.unicodeSupport)&&e.host&&!$l(e.host)&&(t.domainHost||r&&r.domainHost)&&n===!1&&P4(e.host)){let o;try{o=new URL("http://"+e.host)}catch(i){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+i,!0}if(!N4(o))return e.error=e.error||wl,!0;e.host=o.hostname}return!1}function F_(e,t,r,n){return!!(e.host&&n===!1&&!$l(e.host)&&(t.domainHost||r&&r.domainHost)&&$4.test(e.host))}function N4(e){return e.username===""&&e.password===""&&e.port===""&&e.pathname==="/"&&e.search===""&&e.hash===""&&e.hostname!==""}function _l(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1,i=!1,s=!1,a=!1,c=!1,l=!1,p=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let u=e.match(R4);u!==null&&u[1].indexOf("\\")!==-1&&(n.error="URI authority must not contain a literal backslash.",o=!0);let f=e.match(k4);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(T4);if(m){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&&(D_.test(n.scheme)?n.scheme=n.scheme.toLowerCase():(n.error=n.error||j_,l=!0)),i=C4(m),i&&(n.error=n.error||"URI contains malformed percent-encoding."),isNaN(n.port)&&(n.port=m[5]);let h=I4(n,m);if(h!==void 0&&(n.error=n.error||h,o=!0),n.host)if(N_(n.host)===!1){let x=$l(n.host),w=n.host.indexOf("[")!==-1||n.host.indexOf("]")!==-1,S=I_(n.host);p=S.isIPV6||S.isIPVFuture===!0,c=w&&(!x||S.error===!0),n.host=p?S.host:S.host.toLowerCase(),c&&(n.error=n.error||wl,o=!0)}else p=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let y=Oh(r.scheme||n.scheme);if(c||(a=L_(n,r,y,p)),e.indexOf("%")!==-1&&n.host!==void 0&&!c){let b=p?n.host:Ah(n.host,!0);p||(b=Ah(b.toLowerCase())),n.host=p||r.scheme!=="null"?_4(b,p):b}(!y||y&&!y.skipNormalize)&&(n.path&&(n.path=x4(n.path)),n.query&&(n.query=T_(n.query)),n.fragment&&(n.fragment=T_(n.fragment))),y&&y.parse&&(y.parse(n,r),y===q_.urn&&n.nid===void 0&&(s=!0))}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:l}}function Pl(e,t){return _l(e,t).parsed}function q4(e,t){return U_(e,t).normalized}function U_(e,t){let{parsed:r,malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}=_l(e,t);return{normalized:n||o||i||s||a?e:ci(r,t),malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}}function k_(e,t){if(typeof e!="string"&&typeof e!="object")return;let r;try{r=typeof e=="string"?e:ci(e,t)}catch{return}let{normalized:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:c}=U_(r,t);return o||i||s||a||c?void 0:n}var Th={SCHEMES:q_,normalize:E4,resolve:A4,resolveComponent:M_,equal:O4,serialize:ci,parse:Pl};El.exports=Th;El.exports.default=Th;El.exports.fastUri=Th});var V_=E(kh=>{"use strict";Object.defineProperty(kh,"__esModule",{value:!0});var z_=Rh();z_.code='require("ajv/dist/runtime/uri").default';kh.default=z_});var Nh=E(Rt=>{"use strict";Object.defineProperty(Rt,"__esModule",{value:!0});Rt.CodeGen=Rt.Name=Rt.nil=Rt.stringify=Rt.str=Rt._=Rt.KeywordCxt=void 0;var D4=vs();Object.defineProperty(Rt,"KeywordCxt",{enumerable:!0,get:function(){return D4.KeywordCxt}});var Ss=re();Object.defineProperty(Rt,"_",{enumerable:!0,get:function(){return Ss._}});Object.defineProperty(Rt,"str",{enumerable:!0,get:function(){return Ss.str}});Object.defineProperty(Rt,"stringify",{enumerable:!0,get:function(){return Ss.stringify}});Object.defineProperty(Rt,"nil",{enumerable:!0,get:function(){return Ss.nil}});Object.defineProperty(Rt,"Name",{enumerable:!0,get:function(){return Ss.Name}});Object.defineProperty(Rt,"CodeGen",{enumerable:!0,get:function(){return Ss.CodeGen}});var j4=Qa(),W_=bs(),M4=Jm(),ec=Ja(),L4=re(),tc=Ga(),Al=Ha(),Ch=Se(),B_=m_(),F4=V_(),Y_=(e,t)=>new RegExp(e,t);Y_.code="new RegExp";var U4=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],z4=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),V4={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."},B4={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},H_=200;function H4(e){var t,r,n,o,i,s,a,c,l,p,u,f,m,h,y,b,x,w,S,$,P,A,q,I,k;let O=e.strict,se=(t=e.code)===null||t===void 0?void 0:t.optimize,X=se===!0||se===void 0?1:se||0,fe=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Y_,N=(o=e.uriResolver)!==null&&o!==void 0?o:F4.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:O)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:O)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:O)!==null&&p!==void 0?p:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:O)!==null&&f!==void 0?f:"log",strictRequired:(h=(m=e.strictRequired)!==null&&m!==void 0?m:O)!==null&&h!==void 0?h:!1,code:e.code?{...e.code,optimize:X,regExp:fe}:{optimize:X,regExp:fe},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:H_,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:H_,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.schemaId)!==null&&$!==void 0?$:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(A=e.validateSchema)!==null&&A!==void 0?A:!0,validateFormats:(q=e.validateFormats)!==null&&q!==void 0?q:!0,unicodeRegExp:(I=e.unicodeRegExp)!==null&&I!==void 0?I:!0,int32range:(k=e.int32range)!==null&&k!==void 0?k:!0,uriResolver:N}}var rc=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...H4(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new L4.ValueScope({scope:{},prefixes:z4,es5:r,lines:n}),this.logger=J4(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,M4.getRules)(),K_.call(this,V4,t,"NOT SUPPORTED"),K_.call(this,B4,t,"DEPRECATED","warn"),this._metaOpts=Y4.call(this),t.formats&&G4.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&W4.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),K4.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=B_;n==="id"&&(o={...B_},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}setDefaultUnevaluatedProperties(t){this.opts.defaultUnevaluatedProperties=t}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(p,u){await i.call(this,p.$schema);let f=this._addSchema(p,u);return f.validate||s.call(this,f)}async function i(p){p&&!this.getSchema(p)&&await o.call(this,{$ref:p},!0)}async function s(p){try{return this._compileSchemaEnv(p)}catch(u){if(!(u instanceof W_.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,p)}}function a({missingSchema:p,missingRef:u}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${u} cannot be resolved`)}async function c(p){let u=await l.call(this,p);this.refs[p]||await i.call(this,u.$schema),this.refs[p]||this.addSchema(u,p,r)}async function l(p){let u=this._loading[p];if(u)return u;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:s}=this.opts;if(i=t[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,tc.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=G_.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new ec.SchemaEnv({schema:{},schemaId:n});if(r=ec.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=G_.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,tc.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(Z4.call(this,n,r),!r)return(0,Ch.eachItem)(n,i=>Ih.call(this,i)),this;tG.call(this,r);let o={...r,type:(0,Al.getJSONTypes)(r.type),schemaType:(0,Al.getJSONTypes)(r.schemaType)};return(0,Ch.eachItem)(n,o.type.length===0?i=>Ih.call(this,i,o):i=>o.type.forEach(s=>Ih.call(this,i,o,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),s=t;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,p=s[a];l&&p&&(s[a]=Q_(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,tc.normalizeId)(s||n);let l=tc.getSchemaRefs.call(this,t,n);return c=new ec.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):ec.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{ec.compileSchema.call(this,t)}finally{this.opts=r}}};rc.ValidationError=j4.default;rc.MissingRefError=W_.default;Rt.default=rc;function K_(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 G_(e){return e=(0,tc.normalizeId)(e),this.schemas[e]||this.refs[e]}function K4(){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 G4(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function W4(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 Y4(){let e={...this.opts};for(let t of U4)delete e[t];return e}var Q4={log(){},warn(){},error(){}};function J4(e){if(e===!1)return Q4;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 X4=/^[a-z_$][a-z0-9_$:-]*$/i;function Z4(e,t){let{RULES:r}=this;if((0,Ch.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!X4.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 Ih(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,Al.getJSONTypes)(t.type),schemaType:(0,Al.getJSONTypes)(t.schemaType)}};t.before?eG.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 eG(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 tG(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=Q_(t)),e.validateSchema=this.compile(t,!0))}var rG={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Q_(e){return{anyOf:[e,rG]}}});var J_=E(qh=>{"use strict";Object.defineProperty(qh,"__esModule",{value:!0});var nG={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};qh.default=nG});var nc=E(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.callRef=pi.getValidate=void 0;var oG=bs(),X_=Nr(),ft=re(),ws=Qt(),Z_=Ja(),Ol=Se(),iG={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:l}=i;if((r==="#"||r==="#/")&&o===l.baseId)return u();let p=Z_.resolveRef.call(c,l,o,r);if(p===void 0)throw new oG.default(n.opts.uriResolver,o,r);if(p instanceof Z_.SchemaEnv)return f(p);return m(p);function u(){if(i===l)return Tl(e,s,i,i.$async);let h=t.scopeValue("root",{ref:l});return Tl(e,(0,ft._)`${h}.validate`,l,l.$async)}function f(h){let y=eP(e,h);Tl(e,y,h,h.$async)}function m(h){let y=t.scopeValue("schema",a.code.source===!0?{ref:h,code:(0,ft.stringify)(h)}:{ref:h}),b=t.name("valid"),x=e.subschema({schema:h,dataTypes:[],schemaPath:ft.nil,topSchemaRef:y,errSchemaPath:r},b,n.isAllOfVariant);e.mergeEvaluated(x),e.ok(b)}}};function eP(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,ft._)`${r.scopeValue("wrapper",{ref:t})}.validate`}pi.getValidate=eP;function Tl(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,l=c.passContext?ws.default.this:ft.nil;n?p():u();function p(){if(!a.$async)throw new Error("async schema referenced by sync schema");let h=o.let("valid");o.try(()=>{o.code((0,ft._)`await ${(0,X_.callValidateCode)(e,t,l)}`),m(t),s||o.assign(h,!0)},y=>{o.if((0,ft._)`!(${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,ft._)`const ${h} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),o.if((0,ft._)`!${h}.has(${e.data})`,()=>{o.code((0,ft._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${h})`),o.code((0,ft._)`const dataNode = ${e.data}`),o.code((0,ft._)`if (typeof dataNode === "object" && dataNode !== null) ${h}.add(dataNode)`);let y=e.result((0,X_.callValidateCode)(e,t,l),()=>m(t),()=>f(t));return o.code((0,ft._)`${h}.delete(dataNode)`),y})}function f(h){let y=(0,ft._)`${h}.errors`;o.assign(ws.default.vErrors,(0,ft._)`${ws.default.vErrors} === null ? ${y} : ${ws.default.vErrors}.concat(${y})`),o.assign(ws.default.errors,(0,ft._)`${ws.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=Ol.mergeEvaluated.props(o,b.props,i.props));else{let x=o.var("props",(0,ft._)`${h}.evaluated.props`);i.props=Ol.mergeEvaluated.props(o,x,i.props,ft.Name)}if(i.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(i.items=Ol.mergeEvaluated.items(o,b.items,i.items));else{let x=o.var("items",(0,ft._)`${h}.evaluated.items`);i.items=Ol.mergeEvaluated.items(o,x,i.items,ft.Name)}}}pi.callRef=Tl;pi.default=iG});var tP=E(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});var sG=J_(),aG=nc(),cG=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",sG.default,aG.default];Dh.default=cG});var rP=E(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});var Rl=re(),bo=Rl.operators,kl={maximum:{okStr:"<=",ok:bo.LTE,fail:bo.GT},minimum:{okStr:">=",ok:bo.GTE,fail:bo.LT},exclusiveMaximum:{okStr:"<",ok:bo.LT,fail:bo.GTE},exclusiveMinimum:{okStr:">",ok:bo.GT,fail:bo.LTE}},pG={message:({keyword:e,schemaCode:t})=>(0,Rl.str)`must be ${kl[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Rl._)`{comparison: ${kl[e].okStr}, limit: ${t}}`},lG={keyword:Object.keys(kl),type:"number",schemaType:"number",$data:!0,error:pG,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Rl._)`${r} ${kl[t].fail} ${n} || isNaN(${r})`)}};jh.default=lG});var nP=E(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var oc=re(),uG={message:({schemaCode:e})=>(0,oc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,oc._)`{multipleOf: ${e}}`},dG={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:uG,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,oc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,oc._)`${s} !== parseInt(${s})`;e.fail$data((0,oc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};Mh.default=dG});var iP=E(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});function oP(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}Lh.default=oP;oP.code='require("ajv/dist/runtime/ucs2length").default'});var sP=E(Fh=>{"use strict";Object.defineProperty(Fh,"__esModule",{value:!0});var li=re(),fG=Se(),mG=iP(),hG={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,li.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,li._)`{limit: ${e}}`},yG={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:hG,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?li.operators.GT:li.operators.LT,s=o.opts.unicode===!1?(0,li._)`${r}.length`:(0,li._)`${(0,fG.useFunc)(e.gen,mG.default)}(${r})`;e.fail$data((0,li._)`${s} ${i} ${n}`)}};Fh.default=yG});var aP=E(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});var gG=Nr(),vG=Se(),_s=re(),bG={message:({schemaCode:e})=>(0,_s.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,_s._)`{pattern: ${e}}`},xG={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:bG,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,l=c.code==="new RegExp"?(0,_s._)`new RegExp`:(0,vG.useFunc)(t,c),p=t.let("valid");t.try(()=>t.assign(p,(0,_s._)`${l}(${i}, ${a}).test(${r})`),()=>t.assign(p,!1)),e.fail$data((0,_s._)`!${p}`)}else{let c=(0,gG.usePattern)(e,o);e.fail$data((0,_s._)`!${c}.test(${r})`)}}};Uh.default=xG});var cP=E(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});var ic=re(),SG={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,ic.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ic._)`{limit: ${e}}`},wG={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:SG,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?ic.operators.GT:ic.operators.LT;e.fail$data((0,ic._)`Object.keys(${r}).length ${o} ${n}`)}};zh.default=wG});var pP=E(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});var sc=Nr(),_G=nh(),ui=re(),PG=Se(),$G={message:({params:{missingProperty:e}})=>(0,ui.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,ui._)`{missingProperty: ${e}}`},EG={keyword:"required",type:"object",schemaType:"array",$data:!0,error:$G,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:s}=e,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():p(),a.strictRequired){let 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,PG.checkStrictMode)(s,x,s.opts.strictRequired)}}function l(){var m;if(c||i)e.block$data(ui.nil,u);else for(let h of r){let y=(m=(0,_G.getSkipCondition)(e.parentSchema,h))!==null&&m!==void 0?m:(0,ui._)`false`;t.if((0,ui.not)(y),()=>(0,sc.checkReportMissingProp)(e,h))}}function p(){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,sc.checkMissingProp)(e,r,m)),(0,sc.reportMissingProp)(e,m),t.else()}function u(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,sc.noPropertyInData)(t,o,m,a.ownProperties),()=>e.error())})}function f(m,h){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(h,(0,sc.propertyInData)(t,o,m,a.ownProperties)),t.if((0,ui.not)(h),()=>{e.error(),t.break()})},ui.nil)}}};Vh.default=EG});var uP=E(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var Bh=re(),lP=Qt(),AG={message:()=>(0,Bh.str)`must NOT be present in request context`},OG={keyword:"readOnly",schemaType:"boolean",error:AG,code(e){if(e.schema!==!0)return;let t=(0,Bh._)`(${lP.default.this} && ${lP.default.this}.apiContext)`;e.fail((0,Bh._)`${t} === "request"`)}};Hh.default=OG});var fP=E(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});var Kh=re(),dP=Qt(),TG={message:()=>(0,Kh.str)`must NOT be present in response context`},RG={keyword:"writeOnly",schemaType:"boolean",error:TG,code(e){if(e.schema!==!0)return;let t=(0,Kh._)`(${dP.default.this} && ${dP.default.this}.apiContext)`;e.fail((0,Kh._)`${t} === "response"`)}};Gh.default=RG});var mP=E(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});var ac=re(),kG={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,ac.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,ac._)`{limit: ${e}}`},IG={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:kG,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?ac.operators.GT:ac.operators.LT;e.fail$data((0,ac._)`${r}.length ${o} ${n}`)}};Wh.default=IG});var Il=E(Yh=>{"use strict";Object.defineProperty(Yh,"__esModule",{value:!0});var hP=Ka();hP.code='require("ajv/dist/runtime/equal").default';Yh.default=hP});var yP=E(Jh=>{"use strict";Object.defineProperty(Jh,"__esModule",{value:!0});var Qh=Ha(),kt=re(),CG=Se(),NG=Il(),qG={message:({params:{i:e,j:t}})=>(0,kt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,kt._)`{i: ${e}, j: ${t}}`},DG={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:qG,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),l=i.items?(0,Qh.getSchemaTypes)(i.items):[];e.block$data(c,p,(0,kt._)`${s} === false`),e.ok(c);function p(){let h=t.let("i",(0,kt._)`${r}.length`),y=t.let("j");e.setParams({i:h,j:y}),t.assign(c,!0),t.if((0,kt._)`${h} > 1`,()=>(u()?f:m)(h,y))}function u(){return l.length>0&&!l.some(h=>h==="object"||h==="array")}function f(h,y){let b=t.name("item"),x=(0,Qh.checkDataTypes)(l,b,a.opts.strictNumbers,Qh.DataType.Wrong),w=t.const("indices",(0,kt._)`{}`);t.for((0,kt._)`;${h}--;`,()=>{t.let(b,(0,kt._)`${r}[${h}]`),t.if(x,(0,kt._)`continue`),l.length>1&&t.if((0,kt._)`typeof ${b} == "string"`,(0,kt._)`${b} += "_"`),t.if((0,kt._)`typeof ${w}[${b}] == "number"`,()=>{t.assign(y,(0,kt._)`${w}[${b}]`),e.error(),t.assign(c,!1).break()}).code((0,kt._)`${w}[${b}] = ${h}`)})}function m(h,y){let b=(0,CG.useFunc)(t,NG.default),x=t.name("outer");t.label(x).for((0,kt._)`;${h}--;`,()=>t.for((0,kt._)`${y} = ${h}; ${y}--;`,()=>t.if((0,kt._)`${b}(${r}[${h}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(x)})))}}};Jh.default=DG});var gP=E(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var Xh=re(),jG=Se(),MG=Il(),LG={message:"must be equal to constant",params:({schemaCode:e})=>(0,Xh._)`{allowedValue: ${e}}`},FG={keyword:"const",$data:!0,error:LG,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Xh._)`!${(0,jG.useFunc)(t,MG.default)}(${r}, ${o})`):e.fail((0,Xh._)`${i} !== ${r}`)}};Zh.default=FG});var vP=E(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});var cc=re(),UG=Se(),zG=Il(),VG={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,cc._)`{allowedValues: ${e}}`},BG={keyword:"enum",schemaType:"array",$data:!0,error:VG,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,l=()=>c??(c=(0,UG.useFunc)(t,zG.default)),p;if(a||n)p=t.let("valid"),e.block$data(p,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let m=t.const("vSchema",i);p=(0,cc.or)(...o.map((h,y)=>f(m,y)))}e.pass(p);function u(){t.assign(p,!1),t.forOf("v",i,m=>t.if((0,cc._)`${l()}(${r}, ${m})`,()=>t.assign(p,!0).break()))}function f(m,h){let y=o[h];return typeof y=="object"&&y!==null?(0,cc._)`${l()}(${r}, ${m}[${h}])`:(0,cc._)`${r} === ${y}`}}};ey.default=BG});var ry=E(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var HG=rP(),KG=nP(),GG=sP(),WG=aP(),YG=cP(),QG=pP(),JG=uP(),XG=fP(),ZG=mP(),eW=yP(),tW=gP(),rW=vP(),nW=[HG.default,KG.default,GG.default,WG.default,YG.default,QG.default,JG.default,XG.default,ZG.default,eW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},tW.default,rW.default];ty.default=nW});var oy=E(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.validateAdditionalItems=void 0;var di=re(),ny=Se(),oW={message:({params:{len:e}})=>(0,di.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,di._)`{limit: ${e}}`},iW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:oW,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,ny.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}bP(e,n)}};function bP(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,di._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,di._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,ny.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,di._)`${a} <= ${t.length}`);r.if((0,di.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,p=>{e.subschema({keyword:i,dataProp:p,dataPropType:ny.Type.Num},l),s.allErrors||r.if((0,di.not)(l),()=>r.break())})}}pc.validateAdditionalItems=bP;pc.default=iW});var iy=E(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.validateTuple=void 0;var xP=re(),Cl=Se(),sW=Nr(),aW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return SP(e,"additionalItems",t);r.items=!0,!(0,Cl.alwaysValidSchema)(r,t)&&e.ok((0,sW.validateArray)(e))}};function SP(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;p(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Cl.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,xP._)`${i}.length`);r.forEach((u,f)=>{(0,Cl.alwaysValidSchema)(a,u)||(n.if((0,xP._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function p(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,Cl.checkStrictMode)(a,b,f.strictTuples)}}}lc.validateTuple=SP;lc.default=aW});var wP=E(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var cW=iy(),pW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,cW.validateTuple)(e,"items")};sy.default=pW});var PP=E(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});var _P=re(),lW=Se(),uW=Nr(),dW=oy(),fW={message:({params:{len:e}})=>(0,_P.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,_P._)`{limit: ${e}}`},mW={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:fW,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,lW.alwaysValidSchema)(n,t)&&(o?(0,dW.validateAdditionalItems)(e,o):e.ok((0,uW.validateArray)(e)))}};ay.default=mW});var $P=E(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var Dr=re(),Nl=Se(),hW={message:({params:{min:e,max:t}})=>t===void 0?(0,Dr.str)`must contain at least ${e} valid item(s)`:(0,Dr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Dr._)`{minContains: ${e}}`:(0,Dr._)`{minContains: ${e}, maxContains: ${t}}`},yW={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:hW,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:l}=n;i.opts.next?(s=c===void 0?1:c,a=l):s=1;let p=t.const("len",(0,Dr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Nl.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Nl.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Nl.alwaysValidSchema)(i,r)){let y=(0,Dr._)`${p} >= ${s}`;a!==void 0&&(y=(0,Dr._)`${y} && ${p} <= ${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,Dr._)`${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,p,x=>{e.subschema({keyword:"contains",dataProp:x,dataPropType:Nl.Type.Num,compositeRule:!0},y),b()})}function h(y){t.code((0,Dr._)`${y}++`),a===void 0?t.if((0,Dr._)`${y} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,Dr._)`${y} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,Dr._)`${y} >= ${s}`,()=>t.assign(u,!0)))}}};cy.default=yW});var ql=E(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.validateSchemaDeps=wn.validatePropertyDeps=wn.error=void 0;var py=re(),gW=Se(),uc=Nr();wn.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,py.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,py._)`{property: ${e},
|
|
12
|
-
missingProperty: ${n},
|
|
13
|
-
depsCount: ${t},
|
|
14
|
-
deps: ${r}}`};var vW={keyword:"dependencies",type:"object",schemaType:"object",error:wn.error,code(e){let[t,r]=bW(e);EP(e,t),AP(e,r)}};function bW({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 EP(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,uc.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let l of a)(0,uc.checkReportMissingProp)(e,l)}):(r.if((0,py._)`${c} && (${(0,uc.checkMissingProp)(e,a,i)})`),(0,uc.reportMissingProp)(e,i),r.else())}}wn.validatePropertyDeps=EP;function AP(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,gW.alwaysValidSchema)(i,t[a])||(r.if((0,uc.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))}wn.validateSchemaDeps=AP;wn.default=vW});var TP=E(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var OP=re(),xW=Se(),SW={message:"property name must be valid",params:({params:e})=>(0,OP._)`{propertyName: ${e.propertyName}}`},wW={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:SW,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,xW.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,OP.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};ly.default=wW});var dy=E(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var Dl=Nr(),rn=re(),_W=Qt(),jl=Se(),PW={message:"must NOT have additional properties",params:({params:e})=>(0,rn._)`{additionalProperty: ${e.additionalProperty}}`},$W={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:PW,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,jl.alwaysValidSchema)(i,s))return;let l=(0,Dl.allSchemaProperties)(r.properties),p=(0,Dl.allSchemaProperties)(r.patternProperties);u(),e.ok((0,rn._)`${o} === ${_W.default.errors}`);function u(){t.forIn("key",n,b=>{!l.length&&!p.length?h(b):t.if(f(b),()=>h(b))})}function f(b){let x;if(l.length>8){let w=(0,jl.schemaRefOrVal)(i,r.properties,"properties");x=(0,Dl.isOwnProperty)(t,w,b)}else l.length?x=(0,rn.or)(...l.map(w=>(0,rn._)`${b} === ${w}`)):x=rn.nil;return p.length&&(x=(0,rn.or)(x,...p.map(w=>(0,rn._)`${(0,Dl.usePattern)(e,w)}.test(${b})`))),(0,rn.not)(x)}function m(b){t.code((0,rn._)`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,jl.alwaysValidSchema)(i,s)){let x=t.name("valid");c.removeAdditional==="failing"?(y(b,x,!1),t.if((0,rn.not)(x),()=>{e.reset(),m(b)})):(y(b,x),a||t.if((0,rn.not)(x),()=>t.break()))}}function y(b,x,w){let S={keyword:"additionalProperties",dataProp:b,dataPropType:jl.Type.Str};w===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,x)}}};uy.default=$W});var IP=E(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});var EW=vs(),RP=Nr(),fy=Se(),kP=dy(),AW={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)&&kP.default.code(new EW.KeywordCxt(i,kP.default,"additionalProperties"));let s=(0,RP.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=fy.mergeEvaluated.props(t,(0,fy.toHash)(s),i.props));let a=s.filter(u=>!(0,fy.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)l(u)?p(u):(t.if((0,RP.propertyInData)(t,o,u,i.opts.ownProperties)),p(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function l(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function p(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};my.default=AW});var DP=E(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var CP=Nr(),Ml=re(),NP=Se(),qP=Se(),OW={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,CP.allSchemaProperties)(r),c=a.filter(y=>(0,NP.alwaysValidSchema)(i,r[y]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&o.properties,p=t.name("valid");i.props!==!0&&!(i.props instanceof Ml.Name)&&(i.props=(0,qP.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let y of a)l&&m(y),i.allErrors?h(y):(t.var(p,!0),h(y),t.if(p))}function m(y){for(let b in l)new RegExp(y).test(b)&&(0,NP.checkStrictMode)(i,`property ${b} matches pattern ${y} (use allowMatchingProperties)`)}function h(y){t.forIn("key",n,b=>{t.if((0,Ml._)`${(0,CP.usePattern)(e,y)}.test(${b})`,()=>{let x=c.includes(y);x||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:b,dataPropType:qP.Type.Str},p),i.opts.unevaluated&&u!==!0?t.assign((0,Ml._)`${u}[${b}]`,!0):!x&&!i.allErrors&&t.if((0,Ml.not)(p),()=>t.break())})})}}};hy.default=OW});var jP=E(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var TW=Se(),RW={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,TW.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"}};yy.default=RW});var MP=E(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var kW=Nr(),IW={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:kW.validateUnion,error:{message:"must match a schema in anyOf"}};gy.default=IW});var LP=E(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var Ll=re(),CW=Se(),NW={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ll._)`{passingSchemas: ${e.passing}}`},qW={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:NW,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){i.forEach((p,u)=>{let f;(0,CW.alwaysValidSchema)(o,p)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,Ll._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Ll._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,Ll.Name)})})}}};vy.default=qW});var FP=E(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var DW=Se(),jW={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,DW.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o,!0);e.ok(o),e.mergeEvaluated(a)})}};by.default=jW});var VP=E(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var Fl=re(),zP=Se(),MW={message:({params:e})=>(0,Fl.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Fl._)`{failingKeyword: ${e.ifClause}}`},LW={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:MW,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,zP.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=UP(n,"then"),i=UP(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(a,l("then",p),l("else",p))}else o?t.if(a,l("then")):t.if((0,Fl.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(p)}function l(p,u){return()=>{let f=e.subschema({keyword:p},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,Fl._)`${p}`):e.setParams({ifClause:p})}}}};function UP(e,t){let r=e.schema[t];return r!==void 0&&!(0,zP.alwaysValidSchema)(e,r)}xy.default=LW});var BP=E(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var FW=Se(),UW={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,FW.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Sy.default=UW});var _y=E(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var zW=oy(),VW=wP(),BW=iy(),HW=PP(),KW=$P(),GW=ql(),WW=TP(),YW=dy(),QW=IP(),JW=DP(),XW=jP(),ZW=MP(),e5=LP(),t5=FP(),r5=VP(),n5=BP();function o5(e=!1){let t=[XW.default,ZW.default,e5.default,t5.default,r5.default,n5.default,WW.default,YW.default,GW.default,QW.default,JW.default];return e?t.push(VW.default,HW.default):t.push(zW.default,BW.default),t.push(KW.default),t}wy.default=o5});var $y=E(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.dynamicAnchor=void 0;var Py=re(),i5=Qt(),HP=Ja(),s5=nc(),a5={keyword:"$dynamicAnchor",schemaType:"string",code:e=>KP(e,e.schema)};function KP(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,Py._)`${i5.default.dynamicAnchors}${(0,Py.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:c5(e);r.if((0,Py._)`!${o}`,()=>r.assign(o,i))}dc.dynamicAnchor=KP;function c5(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:i,localRefs:s,meta:a}=t.root,{schemaId:c}=n.opts,l=new HP.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:s,meta:a});return HP.compileSchema.call(n,l),(0,s5.getValidate)(e,l)}dc.default=a5});var Ey=E(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.dynamicRef=void 0;var GP=re(),p5=Qt(),WP=nc(),l5={keyword:"$dynamicRef",schemaType:"string",code:e=>YP(e,e.schema)};function YP(e,t){let{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let i=t.slice(1);if(o.allErrors)s();else{let c=r.let("valid",!1);s(c),e.ok(c)}function s(c){if(o.schemaEnv.root.dynamicAnchors[i]){let l=r.let("_v",(0,GP._)`${p5.default.dynamicAnchors}${(0,GP.getProperty)(i)}`);r.if(l,a(l,c),a(o.validateName,c))}else a(o.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,WP.callRef)(e,c),r.let(l,!0)}):()=>(0,WP.callRef)(e,c)}}fc.dynamicRef=YP;fc.default=l5});var QP=E(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var u5=$y(),d5=Se(),f5={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,u5.dynamicAnchor)(e,""):(0,d5.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Ay.default=f5});var JP=E(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var m5=Ey(),h5={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,m5.dynamicRef)(e,e.schema)};Oy.default=h5});var XP=E(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var y5=$y(),g5=Ey(),v5=QP(),b5=JP(),x5=[y5.default,g5.default,v5.default,b5.default];Ty.default=x5});var e$=E(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var ZP=ql(),S5={keyword:"dependentRequired",type:"object",schemaType:"object",error:ZP.error,code:e=>(0,ZP.validatePropertyDeps)(e)};Ry.default=S5});var t$=E(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var w5=ql(),_5={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,w5.validateSchemaDeps)(e)};ky.default=_5});var r$=E(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var P5=Se(),$5={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,P5.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Iy.default=$5});var n$=E(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var E5=e$(),A5=t$(),O5=r$(),T5=[E5.default,A5.default,O5.default];Cy.default=T5});var s$=E(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var Yn=re(),o$=Se(),i$=Qt(),R5={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Yn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},k5={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:R5,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 Yn.Name)t.if((0,Yn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(p(c,f),()=>l(f))));else if(c!==!0){let f=()=>t.forIn("key",n,m=>c===void 0?l(m):t.if(u(c,m),()=>l(m)));s&&i.errorPath.emptyStr()&&!i.compositeRule?t.if((0,Yn._)`${i$.default.isAllOfVariant} === 0`,f):(!i.compositeRule||e.schema!==void 0)&&f()}s||(i.props=!0),e.ok((0,Yn._)`${o} === ${i$.default.errors}`);function l(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,o$.alwaysValidSchema)(i,r)){let m=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:o$.Type.Str},m),a||t.if((0,Yn.not)(m),()=>t.break())}}function p(f,m){return(0,Yn._)`!${f} || !${f}[${m}]`}function u(f,m){let h=[];for(let y in f)f[y]===!0&&h.push((0,Yn._)`${m} !== ${y}`);return(0,Yn.and)(...h)}}};Ny.default=k5});var c$=E(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var fi=re(),a$=Se(),I5={message:({params:{len:e}})=>(0,fi.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,fi._)`{limit: ${e}}`},C5={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:I5,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,fi._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,fi._)`${s} > ${i}`);else if(typeof r=="object"&&!(0,a$.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,fi._)`${s} <= ${i}`);t.if((0,fi.not)(c),()=>a(c,i)),e.ok(c)}o.items=!0;function a(c,l){t.forRange("i",l,s,p=>{e.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:a$.Type.Num},c),o.allErrors||t.if((0,fi.not)(c),()=>t.break())})}}};qy.default=C5});var jy=E(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var N5=s$(),q5=c$(),D5=[N5.default,q5.default];Dy.default=D5});var p$=E(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var lt=re(),j5={message:({schemaCode:e})=>(0,lt.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,lt._)`{format: ${e}}`},M5={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:j5,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:u}=a;if(!c.validateFormats)return;o?f():m();function f(){let h=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),y=r.const("fDef",(0,lt._)`${h}[${s}]`),b=r.let("fType"),x=r.let("format");r.if((0,lt._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(b,(0,lt._)`${y}.type || "string"`).assign(x,(0,lt._)`${y}.validate`),()=>r.assign(b,(0,lt._)`"string"`).assign(x,y)),e.fail$data((0,lt.or)(w(),S()));function w(){return c.strictSchema===!1?lt.nil:(0,lt._)`${s} && !${x}`}function S(){let $=p.$async?(0,lt._)`(${y}.async ? await ${x}(${n}) : ${x}(${n}))`:(0,lt._)`${x}(${n})`,P=(0,lt._)`(typeof ${x} == "function" ? ${$} : ${x}.test(${n}))`;return(0,lt._)`${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($());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 "${l}"`}}function S(P){let A=P instanceof RegExp?(0,lt.regexpCode)(P):c.code.formats?(0,lt._)`${c.code.formats}${(0,lt.getProperty)(i)}`:void 0,q=r.scopeValue("formats",{key:i,ref:P,code:A});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,lt._)`${q}.validate`]:["string",P,q]}function $(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!p.$async)throw new Error("async format in sync schema");return(0,lt._)`await ${x}(${n})`}return typeof b=="function"?(0,lt._)`${x}(${n})`:(0,lt._)`${x}.test(${n})`}}}};My.default=M5});var Fy=E(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var L5=p$(),F5=[L5.default];Ly.default=F5});var l$=E(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.contentVocabulary=Ps.metadataVocabulary=void 0;Ps.metadataVocabulary=["title","description","default","deprecated","examples"];Ps.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var d$=E(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var U5=tP(),z5=ry(),V5=_y(),B5=XP(),H5=n$(),K5=jy(),G5=Fy(),u$=l$(),W5=[B5.default,U5.default,z5.default,(0,V5.default)(!0),G5.default,u$.metadataVocabulary,u$.contentVocabulary,H5.default,K5.default];Uy.default=W5});var m$=E(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.DiscrError=void 0;var f$;(function(e){e.Tag="tag",e.Mapping="mapping"})(f$||(Ul.DiscrError=f$={}))});var By=E(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var $s=re(),zy=m$(),h$=Ja(),Y5=bs(),Q5=Se(),J5={message:({params:{discrError:e,tagName:t}})=>e===zy.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,$s._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function X5(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 Z5={keyword:"discriminator",type:"object",schemaType:"object",error:J5,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,s=o.oneOf?"oneOf":o.anyOf?"anyOf":void 0;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(!s)throw new Error("discriminator: requires oneOf or anyOf composite keyword");let c=o[s],l=t.let("valid",!1),p=t.const("tag",(0,$s._)`${r}${(0,$s.getProperty)(a)}`);t.if((0,$s._)`typeof ${p} == "string"`,()=>u(),()=>e.error(!1,{discrError:zy.DiscrError.Tag,tag:p,tagName:a})),e.ok(l);function u(){let h=m();t.if(!1);for(let y in h)t.elseIf((0,$s._)`${p} === ${y}`),t.assign(l,f(h[y]));t.else(),e.error(!1,{discrError:zy.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function f(h){let y=t.name("valid"),b=e.subschema({keyword:s,schemaProp:h},y);return e.mergeEvaluated(b,$s.Name),y}function m(){var h;let y={},b=w(o),x=!0;for(let P=0;P<c.length;P++){let A=c[P],q=A?.$ref;if(q&&n.mapping){let{mapping:k}=n,O=Object.keys(k).filter(se=>k[se]===A.$ref);if(O.length){for(let se of O)$(se,P);continue}}if(q&&!(0,Q5.schemaHasRulesButRef)(A,i.self.RULES)&&(A=h$.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,q),A instanceof h$.SchemaEnv&&(A=A.schema),A===void 0))throw new Y5.default(i.opts.uriResolver,i.baseId,q);let I=(h=A?.properties)===null||h===void 0?void 0:h[a];if(!I&&A?.allOf&&(I=X5(A,a)),typeof I!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);x=x&&(b||w(A)),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 A of P.allOf){let q=A;if(Array.isArray(q.required)&&q.required.includes(a))return!0}return!1}function S(P,A){if(P.const)$(P.const,A);else if(P.enum)for(let q of P.enum)$(q,A);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function $(P,A){if(typeof P!="string"||P in y)throw new Error(`discriminator: "${a}" values must be unique strings`);y[P]=A}}}};Vy.default=Z5});var y$=E((pue,eY)=>{eY.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 g$=E((lue,tY)=>{tY.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 v$=E((uue,rY)=>{rY.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 b$=E((due,nY)=>{nY.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 x$=E((fue,oY)=>{oY.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 S$=E((mue,iY)=>{iY.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 w$=E((hue,sY)=>{sY.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 _$=E((yue,aY)=>{aY.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 P$=E(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var cY=y$(),pY=g$(),lY=v$(),uY=b$(),dY=x$(),fY=S$(),mY=w$(),hY=_$(),yY=["/properties"];function gY(e){return[cY,pY,lY,uY,dY,t(this,fY),mY,t(this,hY)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,yY):n}}Hy.default=gY});var Wy=E((We,Gy)=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.MissingRefError=We.ValidationError=We.CodeGen=We.Name=We.nil=We.stringify=We.str=We._=We.KeywordCxt=We.Ajv2020=void 0;var vY=Nh(),bY=d$(),xY=By(),SY=P$(),Ky="https://json-schema.org/draft/2020-12/schema",Es=class extends vY.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),bY.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(xY.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(SY.default.call(this,t),this.refs["http://json-schema.org/schema"]=Ky)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ky)?Ky:void 0)}};We.Ajv2020=Es;Gy.exports=We=Es;Gy.exports.Ajv2020=Es;Object.defineProperty(We,"__esModule",{value:!0});We.default=Es;var wY=vs();Object.defineProperty(We,"KeywordCxt",{enumerable:!0,get:function(){return wY.KeywordCxt}});var As=re();Object.defineProperty(We,"_",{enumerable:!0,get:function(){return As._}});Object.defineProperty(We,"str",{enumerable:!0,get:function(){return As.str}});Object.defineProperty(We,"stringify",{enumerable:!0,get:function(){return As.stringify}});Object.defineProperty(We,"nil",{enumerable:!0,get:function(){return As.nil}});Object.defineProperty(We,"Name",{enumerable:!0,get:function(){return As.Name}});Object.defineProperty(We,"CodeGen",{enumerable:!0,get:function(){return As.CodeGen}});var _Y=Qa();Object.defineProperty(We,"ValidationError",{enumerable:!0,get:function(){return _Y.default}});var PY=bs();Object.defineProperty(We,"MissingRefError",{enumerable:!0,get:function(){return PY.default}})});var V$=E(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var tu=re(),wo=tu.operators,Xy={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:wo.LTE,fail:wo.GT},{okStr:"<",ok:wo.LT,fail:wo.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:wo.GTE,fail:wo.LT},{okStr:">",ok:wo.GT,fail:wo.LTE}]}},fQ={message:e=>(0,tu.str)`must be ${Zy(e).okStr} ${e.schemaCode}`,params:e=>(0,tu._)`{comparison: ${Zy(e).okStr}, limit: ${e.schemaCode}}`},mQ={keyword:Object.keys(Xy),type:"number",schemaType:"number",$data:!0,error:fQ,code(e){let{data:t,schemaCode:r}=e;e.fail$data((0,tu._)`${t} ${Zy(e).fail} ${r} || isNaN(${t})`)}};function Zy(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[Xy[r].exclusive]?1:0;return Xy[r].ops[n]}eg.default=mQ});var H$=E(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});var B$={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},hQ={keyword:Object.keys(B$),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=B$[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};tg.default=hQ});var K$=E(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});var yQ=nc(),gQ=_y(),vQ=jy(),bQ=Fy(),xQ=ry(),SQ=V$(),wQ=H$(),_Q=["title","description","default"],PQ=["$schema","id","$defs",{keyword:"$comment"},"definitions",yQ.default],$Q=[...xQ.default.slice(1),SQ.default,wQ.default],EQ=[PQ,$Q,(0,gQ.default)(),bQ.default,_Q,vQ.default];rg.default=EQ});var G$=E((Gde,AQ)=>{AQ.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 Q$=E((Ye,Y$)=>{"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 OQ=Nh(),TQ=K$(),RQ=By(),W$=G$(),kQ=["/properties"],ru="http://json-schema.org/draft-04/schema",gc=class extends OQ.default{constructor(t={}){super({...t,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),TQ.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(RQ.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(W$,kQ):W$;this.addMetaSchema(t,ru,!1),this.refs["http://json-schema.org/schema"]=ru}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ru)?ru:void 0)}};Ye.Ajv=gc;Y$.exports=Ye=gc;Object.defineProperty(Ye,"__esModule",{value:!0});Ye.default=gc;var IQ=vs();Object.defineProperty(Ye,"KeywordCxt",{enumerable:!0,get:function(){return IQ.KeywordCxt}});var Rs=re();Object.defineProperty(Ye,"_",{enumerable:!0,get:function(){return Rs._}});Object.defineProperty(Ye,"str",{enumerable:!0,get:function(){return Rs.str}});Object.defineProperty(Ye,"stringify",{enumerable:!0,get:function(){return Rs.stringify}});Object.defineProperty(Ye,"nil",{enumerable:!0,get:function(){return Rs.nil}});Object.defineProperty(Ye,"Name",{enumerable:!0,get:function(){return Rs.Name}});Object.defineProperty(Ye,"CodeGen",{enumerable:!0,get:function(){return Rs.CodeGen}});var CQ=Qa();Object.defineProperty(Ye,"ValidationError",{enumerable:!0,get:function(){return CQ.default}});var NQ=bs();Object.defineProperty(Ye,"MissingRefError",{enumerable:!0,get:function(){return NQ.default}})});var oE=E(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.formatNames=Pn.fastFormats=Pn.fullFormats=void 0;function _n(e,t){return{validate:e,compare:t}}Pn.fullFormats={date:_n(eE,sg),time:_n(og(!0),ag),"date-time":_n(J$(!0),rE),"iso-time":_n(og(),tE),"iso-date-time":_n(J$(),nE),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:FQ,"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:GQ,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:UQ,int32:{type:"number",validate:BQ},int64:{type:"number",validate:HQ},float:{type:"number",validate:Z$},double:{type:"number",validate:Z$},password:!0,binary:!0};Pn.fastFormats={...Pn.fullFormats,date:_n(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,sg),time:_n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,ag),"date-time":_n(/^\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,rE),"iso-time":_n(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,tE),"iso-date-time":_n(/^\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,nE),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};Pn.formatNames=Object.keys(Pn.fullFormats);function qQ(e){return e%4===0&&(e%100!==0||e%400===0)}var DQ=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,jQ=[0,31,28,31,30,31,30,31,31,30,31,30,31];function eE(e){let t=DQ.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&&qQ(r)?29:jQ[n])}function sg(e,t){if(e&&t)return e>t?1:e<t?-1:0}var ng=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function og(e){return function(r){let n=ng.exec(r);if(!n)return!1;let o=+n[1],i=+n[2],s=+n[3],a=n[4],c=n[5]==="-"?-1:1,l=+(n[6]||0),p=+(n[7]||0);if(l>23||p>59||e&&!a)return!1;if(o<=23&&i<=59&&s<60)return!0;let u=i-p*c,f=o-l*c-(u<0?1:0);return(f===23||f===-1)&&(u===59||u===-1)&&s<61}}function ag(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 tE(e,t){if(!(e&&t))return;let r=ng.exec(e),n=ng.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e<t?-1:0}var ig=/t|\s/i;function J$(e){let t=og(e);return function(n){let o=n.split(ig);return o.length===2&&eE(o[0])&&t(o[1])}}function rE(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function nE(e,t){if(!(e&&t))return;let[r,n]=e.split(ig),[o,i]=t.split(ig),s=sg(r,o);if(s!==void 0)return s||ag(n,i)}var MQ=/\/|:/,LQ=/^(?:[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 FQ(e){return MQ.test(e)&&LQ.test(e)}var X$=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function UQ(e){return X$.lastIndex=0,X$.test(e)}var zQ=-(2**31),VQ=2**31-1;function BQ(e){return Number.isInteger(e)&&e<=VQ&&e>=zQ}function HQ(e){return Number.isInteger(e)}function Z$(){return!0}var KQ=/[^\\]\\Z/;function GQ(e){if(KQ.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var xc=E(je=>{"use strict";Object.defineProperty(je,"__esModule",{value:!0});je.regexpCode=je.getEsmExportName=je.getProperty=je.safeStringify=je.stringify=je.strConcat=je.addCodeArg=je.str=je._=je.nil=je._Code=je.Name=je.IDENTIFIER=je._CodeOrName=void 0;var vc=class{};je._CodeOrName=vc;je.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var hi=class extends vc{constructor(t){if(super(),!je.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}}};je.Name=hi;var jr=class extends vc{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 hi&&(r[n.str]=(r[n.str]||0)+1),r),{})}};je._Code=jr;je.nil=new jr("");function iE(e,...t){let r=[e[0]],n=0;for(;n<t.length;)pg(r,t[n]),r.push(e[++n]);return new jr(r)}je._=iE;var cg=new jr("+");function sE(e,...t){let r=[bc(e[0])],n=0;for(;n<t.length;)r.push(cg),pg(r,t[n]),r.push(cg,bc(e[++n]));return WQ(r),new jr(r)}je.str=sE;function pg(e,t){t instanceof jr?e.push(...t._items):t instanceof hi?e.push(t):e.push(JQ(t))}je.addCodeArg=pg;function WQ(e){let t=1;for(;t<e.length-1;){if(e[t]===cg){let r=YQ(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function YQ(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof hi||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 hi))return`"${e}${t.slice(1)}`}function QQ(e,t){return t.emptyStr()?e:e.emptyStr()?t:sE`${e}${t}`}je.strConcat=QQ;function JQ(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:bc(Array.isArray(e)?e.join(","):e)}function XQ(e){return new jr(bc(e))}je.stringify=XQ;function bc(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}je.safeStringify=bc;function ZQ(e){return typeof e=="string"&&je.IDENTIFIER.test(e)?new jr(`.${e}`):iE`[${e}]`}je.getProperty=ZQ;function e6(e){if(typeof e=="string"&&je.IDENTIFIER.test(e))return new jr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}je.getEsmExportName=e6;function t6(e){return new jr(e.toString())}je.regexpCode=t6});var dg=E(hr=>{"use strict";Object.defineProperty(hr,"__esModule",{value:!0});hr.ValueScope=hr.ValueScopeName=hr.Scope=hr.varKinds=hr.UsedValueState=void 0;var mr=xc(),lg=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},nu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(nu||(hr.UsedValueState=nu={}));hr.varKinds={const:new mr.Name("const"),let:new mr.Name("let"),var:new mr.Name("var")};var ou=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof mr.Name?t:this.name(t)}name(t){return new mr.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}}};hr.Scope=ou;var iu=class extends mr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,mr._)`.${new mr.Name(r)}[${n}]`}};hr.ValueScopeName=iu;var r6=(0,mr._)`\n`,ug=class extends ou{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?r6:mr.nil}}get(){return this._scope}name(t){return new iu(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let p=a.get(s);if(p)return p}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),l=c.length;return c[l]=r.ref,o.setValue(r,{property:i,itemIndex:l}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,mr._)`${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=mr.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,nu.Started);let p=r(l);if(p){let u=this.opts.es5?hr.varKinds.var:hr.varKinds.const;i=(0,mr._)`${i}${u} ${l} = ${p};${this.opts._n}`}else if(p=o?.(l))i=(0,mr._)`${i}${p}${this.opts._n}`;else throw new lg(l);c.set(l,nu.Completed)})}return i}};hr.ValueScope=ug});var me=E(ge=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.or=ge.and=ge.not=ge.CodeGen=ge.operators=ge.varKinds=ge.ValueScopeName=ge.ValueScope=ge.Scope=ge.Name=ge.regexpCode=ge.stringify=ge.getProperty=ge.nil=ge.strConcat=ge.str=ge._=void 0;var Te=xc(),nn=dg(),_o=xc();Object.defineProperty(ge,"_",{enumerable:!0,get:function(){return _o._}});Object.defineProperty(ge,"str",{enumerable:!0,get:function(){return _o.str}});Object.defineProperty(ge,"strConcat",{enumerable:!0,get:function(){return _o.strConcat}});Object.defineProperty(ge,"nil",{enumerable:!0,get:function(){return _o.nil}});Object.defineProperty(ge,"getProperty",{enumerable:!0,get:function(){return _o.getProperty}});Object.defineProperty(ge,"stringify",{enumerable:!0,get:function(){return _o.stringify}});Object.defineProperty(ge,"regexpCode",{enumerable:!0,get:function(){return _o.regexpCode}});Object.defineProperty(ge,"Name",{enumerable:!0,get:function(){return _o.Name}});var pu=dg();Object.defineProperty(ge,"Scope",{enumerable:!0,get:function(){return pu.Scope}});Object.defineProperty(ge,"ValueScope",{enumerable:!0,get:function(){return pu.ValueScope}});Object.defineProperty(ge,"ValueScopeName",{enumerable:!0,get:function(){return pu.ValueScopeName}});Object.defineProperty(ge,"varKinds",{enumerable:!0,get:function(){return pu.varKinds}});ge.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 Jn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},fg=class extends Jn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?nn.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=Is(this.rhs,t,r)),this}get names(){return this.rhs instanceof Te._CodeOrName?this.rhs.names:{}}},su=class extends Jn{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=Is(this.rhs,t,r),this}get names(){let t=this.lhs instanceof Te.Name?{}:{...this.lhs.names};return cu(t,this.rhs)}},mg=class extends su{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},hg=class extends Jn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},yg=class extends Jn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},gg=class extends Jn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},vg=class extends Jn{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=Is(this.code,t,r),this}get names(){return this.code instanceof Te._CodeOrName?this.code.names:{}}},Sc=class extends Jn{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)||(n6(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>vi(t,r.names),{})}},Xn=class extends Sc{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},bg=class extends Sc{},ks=class extends Xn{};ks.kind="else";var yi=class e extends Xn{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 ks(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(aE(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=Is(this.condition,t,r),this}get names(){let t=super.names;return cu(t,this.condition),this.else&&vi(t,this.else.names),t}};yi.kind="if";var gi=class extends Xn{};gi.kind="for";var xg=class extends gi{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=Is(this.iteration,t,r),this}get names(){return vi(super.names,this.iteration.names)}},Sg=class extends gi{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?nn.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=cu(super.names,this.from);return cu(t,this.to)}},au=class extends gi{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=Is(this.iterable,t,r),this}get names(){return vi(super.names,this.iterable.names)}},wc=class extends Xn{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)}};wc.kind="func";var _c=class extends Sc{render(t){return"return "+super.render(t)}};_c.kind="return";var wg=class extends Xn{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&&vi(t,this.catch.names),this.finally&&vi(t,this.finally.names),t}},Pc=class extends Xn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Pc.kind="catch";var $c=class extends Xn{render(t){return"finally"+super.render(t)}};$c.kind="finally";var _g=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
15
|
-
`:""},this._extScope=t,this._scope=new nn.Scope({parent:t}),this._nodes=[new bg]}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 fg(t,i,n)),i}const(t,r,n){return this._def(nn.varKinds.const,t,r,n)}let(t,r,n){return this._def(nn.varKinds.let,t,r,n)}var(t,r,n){return this._def(nn.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new su(t,r,n))}add(t,r){return this._leafNode(new mg(t,ge.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==Te.nil&&this._leafNode(new vg(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 yi(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 yi(t))}else(){return this._elseNode(new ks)}endIf(){return this._endBlockNode(yi,ks)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new xg(t),r)}forRange(t,r,n,o,i=this.opts.es5?nn.varKinds.var:nn.varKinds.let){let s=this._scope.toName(t);return this._for(new Sg(i,s,r,n),()=>o(s))}forOf(t,r,n,o=nn.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 au("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?nn.varKinds.var:nn.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 au("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(gi)}label(t){return this._leafNode(new hg(t))}break(t){return this._leafNode(new yg(t))}return(t){let r=new _c;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(_c)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new wg;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Pc(i),r(i)}return n&&(this._currNode=o.finally=new $c,this.code(n)),this._endBlockNode(Pc,$c)}throw(t){return this._leafNode(new gg(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 wc(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(wc)}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 yi))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}};ge.CodeGen=_g;function vi(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function cu(e,t){return t instanceof Te._CodeOrName?vi(e,t.names):e}function Is(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 n6(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function aE(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,Te._)`!${Pg(e)}`}ge.not=aE;var o6=cE(ge.operators.AND);function i6(...e){return e.reduce(o6)}ge.and=i6;var s6=cE(ge.operators.OR);function a6(...e){return e.reduce(s6)}ge.or=a6;function cE(e){return(t,r)=>t===Te.nil?r:r===Te.nil?t:(0,Te._)`${Pg(t)} ${e} ${Pg(r)}`}function Pg(e){return e instanceof Te.Name?e:(0,Te._)`(${e})`}});var Ce=E(we=>{"use strict";Object.defineProperty(we,"__esModule",{value:!0});we.checkStrictMode=we.getErrorPath=we.Type=we.useFunc=we.setEvaluated=we.evaluatedPropsToName=we.mergeEvaluated=we.eachItem=we.unescapeJsonPointer=we.escapeJsonPointer=we.escapeFragment=we.unescapeFragment=we.schemaRefOrVal=we.schemaHasRulesButRef=we.schemaHasRules=we.checkUnknownRules=we.alwaysValidSchema=we.toHash=void 0;var Ge=me(),c6=xc();function p6(e){let t={};for(let r of e)t[r]=!0;return t}we.toHash=p6;function l6(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(uE(e,t),!dE(t,e.self.RULES.all))}we.alwaysValidSchema=l6;function uE(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]||hE(e,`unknown keyword: "${i}"`)}we.checkUnknownRules=uE;function dE(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}we.schemaHasRules=dE;function u6(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}we.schemaHasRulesButRef=u6;function d6({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Ge._)`${r}`}return(0,Ge._)`${e}${t}${(0,Ge.getProperty)(n)}`}we.schemaRefOrVal=d6;function f6(e){return fE(decodeURIComponent(e))}we.unescapeFragment=f6;function m6(e){return encodeURIComponent(Eg(e))}we.escapeFragment=m6;function Eg(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}we.escapeJsonPointer=Eg;function fE(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}we.unescapeJsonPointer=fE;function h6(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}we.eachItem=h6;function pE({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Ge.Name?(i instanceof Ge.Name?e(o,i,s):t(o,i,s),s):i instanceof Ge.Name?(t(o,s,i),i):r(i,s);return a===Ge.Name&&!(c instanceof Ge.Name)?n(o,c):c}}we.mergeEvaluated={props:pE({mergeNames:(e,t,r)=>e.if((0,Ge._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Ge._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Ge._)`${r} || {}`).code((0,Ge._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Ge._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Ge._)`${r} || {}`),Ag(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:mE}),items:pE({mergeNames:(e,t,r)=>e.if((0,Ge._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Ge._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Ge._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Ge._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function mE(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Ge._)`{}`);return t!==void 0&&Ag(e,r,t),r}we.evaluatedPropsToName=mE;function Ag(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Ge._)`${t}${(0,Ge.getProperty)(n)}`,!0))}we.setEvaluated=Ag;var lE={};function y6(e,t){return e.scopeValue("func",{ref:t,code:lE[t.code]||(lE[t.code]=new c6._Code(t.code))})}we.useFunc=y6;var $g;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})($g||(we.Type=$g={}));function g6(e,t,r){if(e instanceof Ge.Name){let n=t===$g.Num;return r?n?(0,Ge._)`"[" + ${e} + "]"`:(0,Ge._)`"['" + ${e} + "']"`:n?(0,Ge._)`"/" + ${e}`:(0,Ge._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Ge.getProperty)(e).toString():"/"+Eg(e)}we.getErrorPath=g6;function hE(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}we.checkStrictMode=hE});var Zn=E(Og=>{"use strict";Object.defineProperty(Og,"__esModule",{value:!0});var Bt=me(),v6={data:new Bt.Name("data"),valCxt:new Bt.Name("valCxt"),instancePath:new Bt.Name("instancePath"),parentData:new Bt.Name("parentData"),parentDataProperty:new Bt.Name("parentDataProperty"),rootData:new Bt.Name("rootData"),dynamicAnchors:new Bt.Name("dynamicAnchors"),vErrors:new Bt.Name("vErrors"),errors:new Bt.Name("errors"),this:new Bt.Name("this"),self:new Bt.Name("self"),scope:new Bt.Name("scope"),json:new Bt.Name("json"),jsonPos:new Bt.Name("jsonPos"),jsonLen:new Bt.Name("jsonLen"),jsonPart:new Bt.Name("jsonPart")};Og.default=v6});var Ec=E(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});Ht.extendErrors=Ht.resetErrorsCount=Ht.reportExtraError=Ht.reportError=Ht.keyword$DataError=Ht.keywordError=void 0;var Ne=me(),lu=Ce(),Zt=Zn();Ht.keywordError={message:({keyword:e})=>(0,Ne.str)`must pass "${e}" keyword validation`};Ht.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,Ne.str)`"${e}" keyword must be ${t} ($data)`:(0,Ne.str)`"${e}" keyword is invalid ($data)`};function b6(e,t=Ht.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=vE(e,t,r);n??(s||a)?yE(i,c):gE(o,(0,Ne._)`[${c}]`)}Ht.reportError=b6;function x6(e,t=Ht.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=vE(e,t,r);yE(o,a),i||s||gE(n,Zt.default.vErrors)}Ht.reportExtraError=x6;function S6(e,t){e.assign(Zt.default.errors,t),e.if((0,Ne._)`${Zt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,Ne._)`${Zt.default.vErrors}.length`,t),()=>e.assign(Zt.default.vErrors,null)))}Ht.resetErrorsCount=S6;function w6({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,Zt.default.errors,a=>{e.const(s,(0,Ne._)`${Zt.default.vErrors}[${a}]`),e.if((0,Ne._)`${s}.instancePath === undefined`,()=>e.assign((0,Ne._)`${s}.instancePath`,(0,Ne.strConcat)(Zt.default.instancePath,i.errorPath))),e.assign((0,Ne._)`${s}.schemaPath`,(0,Ne.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,Ne._)`${s}.schema`,r),e.assign((0,Ne._)`${s}.data`,n))})}Ht.extendErrors=w6;function yE(e,t){let r=e.const("err",t);e.if((0,Ne._)`${Zt.default.vErrors} === null`,()=>e.assign(Zt.default.vErrors,(0,Ne._)`[${r}]`),(0,Ne._)`${Zt.default.vErrors}.push(${r})`),e.code((0,Ne._)`${Zt.default.errors}++`)}function gE(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,Ne._)`new ${e.ValidationError}(${t})`):(r.assign((0,Ne._)`${n}.errors`,t),r.return(!1))}var bi={keyword:new Ne.Name("keyword"),schemaPath:new Ne.Name("schemaPath"),params:new Ne.Name("params"),propertyName:new Ne.Name("propertyName"),message:new Ne.Name("message"),schema:new Ne.Name("schema"),parentSchema:new Ne.Name("parentSchema")};function vE(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,Ne._)`{}`:_6(e,t,r)}function _6(e,t,r={}){let{gen:n,it:o}=e,i=[P6(o,r),$6(e,r)];return E6(e,t,i),n.object(...i)}function P6({errorPath:e},{instancePath:t}){let r=t?(0,Ne.str)`${e}${(0,lu.getErrorPath)(t,lu.Type.Str)}`:e;return[Zt.default.instancePath,(0,Ne.strConcat)(Zt.default.instancePath,r)]}function $6({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,Ne.str)`${t}/${e}`;return r&&(o=(0,Ne.str)`${o}${(0,lu.getErrorPath)(r,lu.Type.Str)}`),[bi.schemaPath,o]}function E6(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:u}=a;n.push([bi.keyword,o],[bi.params,typeof t=="function"?t(e):t||(0,Ne._)`{}`]),c.messages&&n.push([bi.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([bi.schema,s],[bi.parentSchema,(0,Ne._)`${p}${u}`],[Zt.default.data,i]),l&&n.push([bi.propertyName,l])}});var xE=E(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.boolOrEmptySchema=Cs.topBoolOrEmptySchema=void 0;var A6=Ec(),O6=me(),T6=Zn(),R6={message:"boolean schema is false"};function k6(e){let{gen:t,schema:r,validateName:n}=e;r===!1?bE(e,!1):typeof r=="object"&&r.$async===!0?t.return(T6.default.data):(t.assign((0,O6._)`${n}.errors`,null),t.return(!0))}Cs.topBoolOrEmptySchema=k6;function I6(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),bE(e)):r.var(t,!0)}Cs.boolOrEmptySchema=I6;function bE(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,A6.reportError)(o,R6,void 0,t)}});var Tg=E(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.getRules=Ns.isJSONType=void 0;var C6=["string","number","integer","boolean","null","object","array"],N6=new Set(C6);function q6(e){return typeof e=="string"&&N6.has(e)}Ns.isJSONType=q6;function D6(){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:{}}}Ns.getRules=D6});var Rg=E(Po=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.shouldUseRule=Po.shouldUseGroup=Po.schemaHasRulesForType=void 0;function j6({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&SE(e,n)}Po.schemaHasRulesForType=j6;function SE(e,t){return t.rules.some(r=>wE(e,r))}Po.shouldUseGroup=SE;function wE(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=wE});var Ac=E(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.reportTypeError=Kt.checkDataTypes=Kt.checkDataType=Kt.coerceAndCheckDataType=Kt.getJSONTypes=Kt.getSchemaTypes=Kt.DataType=void 0;var M6=Tg(),L6=Rg(),F6=Ec(),de=me(),_E=Ce(),qs;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(qs||(Kt.DataType=qs={}));function U6(e){let t=PE(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}Kt.getSchemaTypes=U6;function PE(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(M6.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Kt.getJSONTypes=PE;function z6(e,t){let{gen:r,data:n,opts:o}=e,i=V6(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,L6.schemaHasRulesForType)(e,t[0]));if(s){let a=Ig(t,n,o.strictNumbers,qs.Wrong);r.if(a,()=>{i.length?B6(e,t,i):Cg(e)})}return s}Kt.coerceAndCheckDataType=z6;var $E=new Set(["string","number","integer","boolean","null"]);function V6(e,t){return t?e.filter(r=>$E.has(r)||t==="array"&&r==="array"):[]}function B6(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,de._)`typeof ${o}`),a=n.let("coerced",(0,de._)`undefined`);i.coerceTypes==="array"&&n.if((0,de._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,de._)`${o}[0]`).assign(s,(0,de._)`typeof ${o}`).if(Ig(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,de._)`${a} !== undefined`);for(let l of r)($E.has(l)||l==="array"&&i.coerceTypes==="array")&&c(l);n.else(),Cg(e),n.endIf(),n.if((0,de._)`${a} !== undefined`,()=>{n.assign(o,a),H6(e,a)});function c(l){switch(l){case"string":n.elseIf((0,de._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,de._)`"" + ${o}`).elseIf((0,de._)`${o} === null`).assign(a,(0,de._)`""`);return;case"number":n.elseIf((0,de._)`${s} == "boolean" || ${o} === null
|
|
16
|
-
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,de._)`+${o}`);return;case"integer":n.elseIf((0,de._)`${s} === "boolean" || ${o} === null
|
|
17
|
-
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,de._)`+${o}`);return;case"boolean":n.elseIf((0,de._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,de._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,de._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,de._)`${s} === "string" || ${s} === "number"
|
|
18
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,de._)`[${o}]`)}}}function H6({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,de._)`${t} !== undefined`,()=>e.assign((0,de._)`${t}[${r}]`,n))}function kg(e,t,r,n=qs.Correct){let o=n===qs.Correct?de.operators.EQ:de.operators.NEQ,i;switch(e){case"null":return(0,de._)`${t} ${o} null`;case"array":i=(0,de._)`Array.isArray(${t})`;break;case"object":i=(0,de._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,de._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,de._)`typeof ${t} ${o} ${e}`}return n===qs.Correct?i:(0,de.not)(i);function s(a=de.nil){return(0,de.and)((0,de._)`typeof ${t} == "number"`,a,r?(0,de._)`isFinite(${t})`:de.nil)}}Kt.checkDataType=kg;function Ig(e,t,r,n){if(e.length===1)return kg(e[0],t,r,n);let o,i=(0,_E.toHash)(e);if(i.array&&i.object){let s=(0,de._)`typeof ${t} != "object"`;o=i.null?s:(0,de._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=de.nil;i.number&&delete i.integer;for(let s in i)o=(0,de.and)(o,kg(s,t,r,n));return o}Kt.checkDataTypes=Ig;var K6={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,de._)`{type: ${e}}`:(0,de._)`{type: ${t}}`};function Cg(e){let t=G6(e);(0,F6.reportError)(t,K6)}Kt.reportTypeError=Cg;function G6(e){let{gen:t,data:r,schema:n}=e,o=(0,_E.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var AE=E(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.assignDefaults=void 0;var Ds=me(),W6=Ce();function Y6(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)EE(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>EE(e,i,o.default))}uu.assignDefaults=Y6;function EE(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Ds._)`${i}${(0,Ds.getProperty)(t)}`;if(o){(0,W6.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Ds._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Ds._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Ds._)`${a} = ${(0,Ds.stringify)(r)}`)}});var Mr=E(Be=>{"use strict";Object.defineProperty(Be,"__esModule",{value:!0});Be.validateUnion=Be.validateArray=Be.usePattern=Be.callValidateCode=Be.schemaProperties=Be.allSchemaProperties=Be.noPropertyInData=Be.propertyInData=Be.isOwnProperty=Be.hasPropFunc=Be.reportMissingProp=Be.checkMissingProp=Be.checkReportMissingProp=void 0;var Qe=me(),Ng=Ce(),$o=Zn(),Q6=Ce();function J6(e,t){let{gen:r,data:n,it:o}=e;r.if(Dg(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Qe._)`${t}`},!0),e.error()})}Be.checkReportMissingProp=J6;function X6({gen:e,data:t,it:{opts:r}},n,o){return(0,Qe.or)(...n.map(i=>(0,Qe.and)(Dg(e,t,i,r.ownProperties),(0,Qe._)`${o} = ${i}`)))}Be.checkMissingProp=X6;function Z6(e,t){e.setParams({missingProperty:t},!0),e.error()}Be.reportMissingProp=Z6;function OE(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Qe._)`Object.prototype.hasOwnProperty`})}Be.hasPropFunc=OE;function qg(e,t,r){return(0,Qe._)`${OE(e)}.call(${t}, ${r})`}Be.isOwnProperty=qg;function e8(e,t,r,n){let o=(0,Qe._)`${t}${(0,Qe.getProperty)(r)} !== undefined`;return n?(0,Qe._)`${o} && ${qg(e,t,r)}`:o}Be.propertyInData=e8;function Dg(e,t,r,n){let o=(0,Qe._)`${t}${(0,Qe.getProperty)(r)} === undefined`;return n?(0,Qe.or)(o,(0,Qe.not)(qg(e,t,r))):o}Be.noPropertyInData=Dg;function TE(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Be.allSchemaProperties=TE;function t8(e,t){return TE(t).filter(r=>!(0,Ng.alwaysValidSchema)(e,t[r]))}Be.schemaProperties=t8;function r8({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,l){let p=l?(0,Qe._)`${e}, ${t}, ${n}${o}`:t,u=[[$o.default.instancePath,(0,Qe.strConcat)($o.default.instancePath,i)],[$o.default.parentData,s.parentData],[$o.default.parentDataProperty,s.parentDataProperty],[$o.default.rootData,$o.default.rootData]];s.opts.dynamicRef&&u.push([$o.default.dynamicAnchors,$o.default.dynamicAnchors]);let f=(0,Qe._)`${p}, ${r.object(...u)}`;return c!==Qe.nil?(0,Qe._)`${a}.call(${c}, ${f})`:(0,Qe._)`${a}(${f})`}Be.callValidateCode=r8;var n8=(0,Qe._)`new RegExp`;function o8({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Qe._)`${o.code==="new RegExp"?n8:(0,Q6.useFunc)(e,o)}(${r}, ${n})`})}Be.usePattern=o8;function i8(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(i,!0),s(()=>t.break()),i;function s(a){let c=t.const("len",(0,Qe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:Ng.Type.Num},i),t.if((0,Qe.not)(i),a)})}}Be.validateArray=i8;function s8(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,Ng.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let p=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);t.assign(s,(0,Qe._)`${s} || ${a}`),e.mergeValidEvaluated(p,a)||t.if((0,Qe.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Be.validateUnion=s8});var IE=E($n=>{"use strict";Object.defineProperty($n,"__esModule",{value:!0});$n.validateKeywordUsage=$n.validSchemaType=$n.funcKeywordCode=$n.macroKeywordCode=void 0;var er=me(),xi=Zn(),a8=Mr(),c8=Ec();function p8(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=kE(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:er.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}$n.macroKeywordCode=p8;function l8(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;d8(c,t);let l=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,p=kE(n,o,l),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)y(),t.modifying&&RE(e),b(()=>e.error());else{let x=t.async?m():h();t.modifying&&RE(e),b(()=>u8(e,x))}}function m(){let x=n.let("ruleErrs",null);return n.try(()=>y((0,er._)`await `),w=>n.assign(u,!1).if((0,er._)`${w} instanceof ${c.ValidationError}`,()=>n.assign(x,(0,er._)`${w}.errors`),()=>n.throw(w))),x}function h(){let x=(0,er._)`${p}.errors`;return n.assign(x,null),y(er.nil),x}function y(x=t.async?(0,er._)`await `:er.nil){let w=c.opts.passContext?xi.default.this:xi.default.self,S=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,er._)`${x}${(0,a8.callValidateCode)(e,p,w,S)}`,t.modifying)}function b(x){var w;n.if((0,er.not)((w=t.valid)!==null&&w!==void 0?w:u),x)}}$n.funcKeywordCode=l8;function RE(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,er._)`${n.parentData}[${n.parentDataProperty}]`))}function u8(e,t){let{gen:r}=e;r.if((0,er._)`Array.isArray(${t})`,()=>{r.assign(xi.default.vErrors,(0,er._)`${xi.default.vErrors} === null ? ${t} : ${xi.default.vErrors}.concat(${t})`).assign(xi.default.errors,(0,er._)`${xi.default.vErrors}.length`),(0,c8.extendErrors)(e)},()=>e.error())}function d8({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function kE(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,er.stringify)(r)})}function f8(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")}$n.validSchemaType=f8;function m8({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)}}$n.validateKeywordUsage=m8});var NE=E(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.extendSubschemaMode=Eo.extendSubschemaData=Eo.getSubschema=void 0;var En=me(),CE=Ce();function h8(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,En._)`${e.schemaPath}${(0,En.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,En._)`${e.schemaPath}${(0,En.getProperty)(t)}${(0,En.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,CE.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')}Eo.getSubschema=h8;function y8(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:u}=t,f=a.let("data",(0,En._)`${t.data}${(0,En.getProperty)(r)}`,!0);c(f),e.errorPath=(0,En.str)`${l}${(0,CE.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,En._)`${r}`,e.dataPathArr=[...p,e.parentDataProperty]}if(o!==void 0){let l=o instanceof En.Name?o:a.let("data",o,!0);c(l),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}Eo.extendSubschemaData=y8;function g8(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}Eo.extendSubschemaMode=g8});var Oc=E(yr=>{"use strict";Object.defineProperty(yr,"__esModule",{value:!0});yr.getSchemaRefs=yr.resolveUrl=yr.normalizeId=yr._getFullPath=yr.getFullPath=yr.inlineRef=void 0;var v8=Ce(),b8=Ka(),x8=ah(),S8=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function w8(e,t=!0){return typeof e=="boolean"?!0:t===!0?!jg(e):t?qE(e)<=t:!1}yr.inlineRef=w8;var _8=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function jg(e){for(let t in e){if(_8.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(jg)||typeof r=="object"&&jg(r))return!0}return!1}function qE(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!S8.has(r)&&(typeof e[r]=="object"&&(0,v8.eachItem)(e[r],n=>t+=qE(n)),t===1/0))return 1/0}return t}function DE(e,t="",r){r!==!1&&(t=js(t));let n=e.parse(t);return jE(e,n)}yr.getFullPath=DE;function jE(e,t){return e.serialize(t).split("#")[0]+"#"}yr._getFullPath=jE;var P8=/#\/?$/;function js(e){return e?e.replace(P8,""):""}yr.normalizeId=js;function $8(e,t,r){return r=js(r),e.resolve(t,r)}yr.resolveUrl=$8;var E8=/^[a-z_][-a-z0-9._]*$/i;function A8(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=js(e[r]||t),i={"":o},s=DE(n,o,!1),a={},c=new Set;return x8(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 $=this.opts.uriResolver.resolve;if(S=js(b?$(b,S):S),c.has(S))throw p(S);c.add(S);let P=this.refs[S];return typeof P=="string"&&(P=this.refs[P]),typeof P=="object"?l(u,P.schema,S):S!==js(y)&&(S[0]==="#"?(l(u,a[S],S),a[S]=u):this.refs[S]=y),S}function w(S){if(typeof S=="string"){if(!E8.test(S))throw new Error(`invalid anchor "${S}"`);x.call(this,`#${S}`)}}}),a;function l(u,f,m){if(f!==void 0&&!b8(u,f))throw p(m)}function p(u){return new Error(`reference "${u}" resolves to more than one schema`)}}yr.getSchemaRefs=A8});var kc=E(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.getData=Ao.KeywordCxt=Ao.validateFunctionCode=void 0;var zE=xE(),ME=Ac(),Lg=Rg(),du=Ac(),O8=AE(),Rc=IE(),Mg=NE(),Y=me(),oe=Zn(),T8=Oc(),eo=Ce(),Tc=Ec();function R8(e){if(HE(e)&&(KE(e),BE(e))){C8(e);return}VE(e,()=>(0,zE.topBoolOrEmptySchema)(e))}Ao.validateFunctionCode=R8;function VE({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,Y._)`${oe.default.data}, ${oe.default.valCxt}`,n.$async,()=>{e.code((0,Y._)`"use strict"; ${LE(r,o)}`),I8(e,o),e.code(i)}):e.func(t,(0,Y._)`${oe.default.data}, ${k8(o)}`,n.$async,()=>e.code(LE(r,o)).code(i))}function k8(e){return(0,Y._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${e.dynamicRef?(0,Y._)`, ${oe.default.dynamicAnchors}={}`:Y.nil}}={}`}function I8(e,t){e.if(oe.default.valCxt,()=>{e.var(oe.default.instancePath,(0,Y._)`${oe.default.valCxt}.${oe.default.instancePath}`),e.var(oe.default.parentData,(0,Y._)`${oe.default.valCxt}.${oe.default.parentData}`),e.var(oe.default.parentDataProperty,(0,Y._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),e.var(oe.default.rootData,(0,Y._)`${oe.default.valCxt}.${oe.default.rootData}`),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,Y._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{e.var(oe.default.instancePath,(0,Y._)`""`),e.var(oe.default.parentData,(0,Y._)`undefined`),e.var(oe.default.parentDataProperty,(0,Y._)`undefined`),e.var(oe.default.rootData,oe.default.data),t.dynamicRef&&e.var(oe.default.dynamicAnchors,(0,Y._)`{}`)})}function C8(e){let{schema:t,opts:r,gen:n}=e;VE(e,()=>{r.$comment&&t.$comment&&WE(e),M8(e),n.let(oe.default.vErrors,null),n.let(oe.default.errors,0),r.unevaluated&&N8(e),GE(e),U8(e)})}function N8(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 LE(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 q8(e,t){if(HE(e)&&(KE(e),BE(e))){D8(e,t);return}(0,zE.boolOrEmptySchema)(e,t)}function BE({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 HE(e){return typeof e.schema!="boolean"}function D8(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&WE(e),L8(e),F8(e);let i=n.const("_errs",oe.default.errors);GE(e,i),n.var(t,(0,Y._)`${i} === ${oe.default.errors}`)}function KE(e){(0,eo.checkUnknownRules)(e),j8(e)}function GE(e,t){if(e.opts.jtd)return FE(e,[],!1,t);let r=(0,ME.getSchemaTypes)(e.schema),n=(0,ME.coerceAndCheckDataType)(e,r);FE(e,r,!n,t)}function j8(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,eo.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function M8(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,eo.checkStrictMode)(e,"default is ignored in the schema root")}function L8(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,T8.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function F8(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function WE({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,Y._)`${oe.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,Y.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,Y._)`${oe.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function U8(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,Y._)`${oe.default.errors} === 0`,()=>t.return(oe.default.data),()=>t.throw((0,Y._)`new ${o}(${oe.default.vErrors})`)):(t.assign((0,Y._)`${n}.errors`,oe.default.vErrors),i.unevaluated&&z8(e),t.return((0,Y._)`${oe.default.errors} === 0`))}function z8({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 FE(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:l}=e,{RULES:p}=l;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,eo.schemaHasRulesButRef)(i,p))){o.block(()=>QE(e,"$ref",p.all.$ref.definition));return}c.jtd||V8(e,t),o.block(()=>{for(let f of p.rules)u(f);u(p.post)});function u(f){(0,Lg.shouldUseGroup)(i,f)&&(f.type?(o.if((0,du.checkDataType)(f.type,s,c.strictNumbers)),UE(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,du.reportTypeError)(e)),o.endIf()):UE(e,f),a||o.if((0,Y._)`${oe.default.errors} === ${n||0}`))}}function UE(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,O8.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,Lg.shouldUseRule)(n,i)&&QE(e,i.keyword,i.definition,t.type)})}function V8(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(B8(e,t),e.opts.allowUnionTypes||H8(e,t),K8(e,e.dataTypes))}function B8(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{YE(e.dataTypes,r)||Fg(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),W8(e,t)}}function H8(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Fg(e,"use allowUnionTypes to allow union type keyword")}function K8(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Lg.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>G8(t,s))&&Fg(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function G8(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function YE(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function W8(e,t){let r=[];for(let n of e.dataTypes)YE(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Fg(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,eo.checkStrictMode)(e,t,e.opts.strictTypes)}var fu=class{constructor(t,r,n){if((0,Rc.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,eo.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",JE(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Rc.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",oe.default.errors))}result(t,r,n){this.failResult((0,Y.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,Y.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,Y._)`${r} !== undefined && (${(0,Y.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?Tc.reportExtraError:Tc.reportError)(this,this.def.error,r)}$dataError(){(0,Tc.reportError)(this,this.def.$dataError||Tc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Tc.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,du.checkDataTypes)(c,r,i.opts.strictNumbers,du.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,Mg.getSubschema)(this.it,t);(0,Mg.extendSubschemaData)(n,this.it,t),(0,Mg.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return q8(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=eo.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=eo.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}};Ao.KeywordCxt=fu;function QE(e,t,r,n){let o=new fu(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Rc.funcKeywordCode)(o,r):"macro"in r?(0,Rc.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Rc.funcKeywordCode)(o,r)}var Y8=/^\/(?:[^~]|~0|~1)*$/,Q8=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function JE(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return oe.default.rootData;if(e[0]==="/"){if(!Y8.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=oe.default.rootData}else{let l=Q8.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let p=+l[1];if(o=l[2],o==="#"){if(p>=t)throw new Error(c("property/index",p));return n[t-p]}if(p>t)throw new Error(c("data",p));if(i=r[t-p],!o)return i}let s=i,a=o.split("/");for(let l of a)l&&(i=(0,Y._)`${i}${(0,Y.getProperty)((0,eo.unescapeJsonPointer)(l))}`,s=(0,Y._)`${s} && ${i}`);return s;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${t}`}}Ao.getData=JE});var mu=E(zg=>{"use strict";Object.defineProperty(zg,"__esModule",{value:!0});var Ug=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};zg.default=Ug});var Ic=E(Hg=>{"use strict";Object.defineProperty(Hg,"__esModule",{value:!0});var Vg=Oc(),Bg=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Vg.resolveUrl)(t,r,n),this.missingSchema=(0,Vg.normalizeId)((0,Vg.getFullPath)(t,this.missingRef))}};Hg.default=Bg});var yu=E(Lr=>{"use strict";Object.defineProperty(Lr,"__esModule",{value:!0});Lr.resolveSchema=Lr.getCompilingSchema=Lr.resolveRef=Lr.compileSchema=Lr.SchemaEnv=void 0;var on=me(),J8=mu(),Si=Zn(),sn=Oc(),XE=Ce(),X8=kc(),Ms=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,sn.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Lr.SchemaEnv=Ms;function Gg(e){let t=ZE.call(this,e);if(t)return t;let r=(0,sn.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new on.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:J8.default,code:(0,on._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:Si.default.data,parentData:Si.default.parentData,parentDataProperty:Si.default.parentDataProperty,dataNames:[Si.default.data],dataPathArr:[on.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,on.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:on.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,on._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(e),(0,X8.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let u=s.toString();p=`${s.scopeRefs(Si.default.scope)}return ${u}`,this.opts.code.process&&(p=this.opts.code.process(p,e));let m=new Function(`${Si.default.self}`,`${Si.default.scope}`,p)(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}=l;m.evaluated={props:h instanceof on.Name?void 0:h,items:y instanceof on.Name?void 0:y,dynamicProps:h instanceof on.Name,dynamicItems:y instanceof on.Name},m.source&&(m.source.evaluated=(0,on.stringify)(m.evaluated))}return e.validate=m,e}catch(u){throw delete e.validate,delete e.validateName,p&&this.logger.error("Error compiling schema, function code:",p),u}finally{this._compilations.delete(e)}}Lr.compileSchema=Gg;function Z8(e,t,r){var n;r=(0,sn.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=r7.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 Ms({schema:s,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=e7.call(this,i)}Lr.resolveRef=Z8;function e7(e){return(0,sn.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Gg.call(this,e)}function ZE(e){for(let t of this._compilations)if(t7(t,e))return t}Lr.getCompilingSchema=ZE;function t7(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function r7(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||hu.call(this,e,t)}function hu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,sn._getFullPath)(this.opts.uriResolver,r),o=(0,sn.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Kg.call(this,r,e);let i=(0,sn.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=hu.call(this,e,s);return typeof a?.schema!="object"?void 0:Kg.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||Gg.call(this,s),i===(0,sn.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(o=(0,sn.resolveUrl)(this.opts.uriResolver,o,l)),new Ms({schema:a,schemaId:c,root:e,baseId:o})}return Kg.call(this,r,s)}}Lr.resolveSchema=hu;var n7=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Kg(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,XE.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!n7.has(a)&&l&&(t=(0,sn.resolveUrl)(this.opts.uriResolver,t,l))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,XE.schemaHasRulesButRef)(r,this.RULES)){let a=(0,sn.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=hu.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Ms({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var eA=E((mfe,o7)=>{o7.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 rA=E(Wg=>{"use strict";Object.defineProperty(Wg,"__esModule",{value:!0});var tA=Rh();tA.code='require("ajv/dist/runtime/uri").default';Wg.default=tA});var lA=E(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.CodeGen=It.Name=It.nil=It.stringify=It.str=It._=It.KeywordCxt=void 0;var i7=kc();Object.defineProperty(It,"KeywordCxt",{enumerable:!0,get:function(){return i7.KeywordCxt}});var Ls=me();Object.defineProperty(It,"_",{enumerable:!0,get:function(){return Ls._}});Object.defineProperty(It,"str",{enumerable:!0,get:function(){return Ls.str}});Object.defineProperty(It,"stringify",{enumerable:!0,get:function(){return Ls.stringify}});Object.defineProperty(It,"nil",{enumerable:!0,get:function(){return Ls.nil}});Object.defineProperty(It,"Name",{enumerable:!0,get:function(){return Ls.Name}});Object.defineProperty(It,"CodeGen",{enumerable:!0,get:function(){return Ls.CodeGen}});var s7=mu(),aA=Ic(),a7=Tg(),Cc=yu(),c7=me(),Nc=Oc(),gu=Ac(),Qg=Ce(),nA=eA(),p7=rA(),cA=(e,t)=>new RegExp(e,t);cA.code="new RegExp";var l7=["removeAdditional","useDefaults","coerceTypes"],u7=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),d7={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."},f7={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},oA=200;function m7(e){var t,r,n,o,i,s,a,c,l,p,u,f,m,h,y,b,x,w,S,$,P,A,q,I,k;let O=e.strict,se=(t=e.code)===null||t===void 0?void 0:t.optimize,X=se===!0||se===void 0?1:se||0,fe=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:cA,N=(o=e.uriResolver)!==null&&o!==void 0?o:p7.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:O)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:O)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=e.strictTypes)!==null&&l!==void 0?l:O)!==null&&p!==void 0?p:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:O)!==null&&f!==void 0?f:"log",strictRequired:(h=(m=e.strictRequired)!==null&&m!==void 0?m:O)!==null&&h!==void 0?h:!1,code:e.code?{...e.code,optimize:X,regExp:fe}:{optimize:X,regExp:fe},loopRequired:(y=e.loopRequired)!==null&&y!==void 0?y:oA,loopEnum:(b=e.loopEnum)!==null&&b!==void 0?b:oA,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.schemaId)!==null&&$!==void 0?$:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:!0,validateSchema:(A=e.validateSchema)!==null&&A!==void 0?A:!0,validateFormats:(q=e.validateFormats)!==null&&q!==void 0?q:!0,unicodeRegExp:(I=e.unicodeRegExp)!==null&&I!==void 0?I:!0,int32range:(k=e.int32range)!==null&&k!==void 0?k:!0,uriResolver:N}}var qc=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,...m7(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new c7.ValueScope({scope:{},prefixes:u7,es5:r,lines:n}),this.logger=x7(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,a7.getRules)(),iA.call(this,d7,t,"NOT SUPPORTED"),iA.call(this,f7,t,"DEPRECATED","warn"),this._metaOpts=v7.call(this),t.formats&&y7.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&g7.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),h7.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=nA;n==="id"&&(o={...nA},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(p,u){await i.call(this,p.$schema);let f=this._addSchema(p,u);return f.validate||s.call(this,f)}async function i(p){p&&!this.getSchema(p)&&await o.call(this,{$ref:p},!0)}async function s(p){try{return this._compileSchemaEnv(p)}catch(u){if(!(u instanceof aA.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,p)}}function a({missingSchema:p,missingRef:u}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${u} cannot be resolved`)}async function c(p){let u=await l.call(this,p);this.refs[p]||await i.call(this,u.$schema),this.refs[p]||this.addSchema(u,p,r)}async function l(p){let u=this._loading[p];if(u)return u;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:s}=this.opts;if(i=t[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,Nc.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=sA.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Cc.SchemaEnv({schema:{},schemaId:n});if(r=Cc.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=sA.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,Nc.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(w7.call(this,n,r),!r)return(0,Qg.eachItem)(n,i=>Yg.call(this,i)),this;P7.call(this,r);let o={...r,type:(0,gu.getJSONTypes)(r.type),schemaType:(0,gu.getJSONTypes)(r.schemaType)};return(0,Qg.eachItem)(n,o.type.length===0?i=>Yg.call(this,i,o):i=>o.type.forEach(s=>Yg.call(this,i,o,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),s=t;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,p=s[a];l&&p&&(s[a]=pA(p))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Nc.normalizeId)(s||n);let l=Nc.getSchemaRefs.call(this,t,n);return c=new Cc.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Cc.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{Cc.compileSchema.call(this,t)}finally{this.opts=r}}};qc.ValidationError=s7.default;qc.MissingRefError=aA.default;It.default=qc;function iA(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 sA(e){return e=(0,Nc.normalizeId)(e),this.schemas[e]||this.refs[e]}function h7(){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 y7(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function g7(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 v7(){let e={...this.opts};for(let t of l7)delete e[t];return e}var b7={log(){},warn(){},error(){}};function x7(e){if(e===!1)return b7;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 S7=/^[a-z_$][a-z0-9_$:-]*$/i;function w7(e,t){let{RULES:r}=this;if((0,Qg.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!S7.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 Yg(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,gu.getJSONTypes)(t.type),schemaType:(0,gu.getJSONTypes)(t.schemaType)}};t.before?_7.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 _7(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 P7(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=pA(t)),e.validateSchema=this.compile(t,!0))}var $7={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function pA(e){return{anyOf:[e,$7]}}});var uA=E(Jg=>{"use strict";Object.defineProperty(Jg,"__esModule",{value:!0});var E7={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Jg.default=E7});var hA=E(wi=>{"use strict";Object.defineProperty(wi,"__esModule",{value:!0});wi.callRef=wi.getValidate=void 0;var A7=Ic(),dA=Mr(),gr=me(),Fs=Zn(),fA=yu(),vu=Ce(),O7={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:l}=i;if((r==="#"||r==="#/")&&o===l.baseId)return u();let p=fA.resolveRef.call(c,l,o,r);if(p===void 0)throw new A7.default(n.opts.uriResolver,o,r);if(p instanceof fA.SchemaEnv)return f(p);return m(p);function u(){if(i===l)return bu(e,s,i,i.$async);let h=t.scopeValue("root",{ref:l});return bu(e,(0,gr._)`${h}.validate`,l,l.$async)}function f(h){let y=mA(e,h);bu(e,y,h,h.$async)}function m(h){let y=t.scopeValue("schema",a.code.source===!0?{ref:h,code:(0,gr.stringify)(h)}:{ref:h}),b=t.name("valid"),x=e.subschema({schema:h,dataTypes:[],schemaPath:gr.nil,topSchemaRef:y,errSchemaPath:r},b);e.mergeEvaluated(x),e.ok(b)}}};function mA(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,gr._)`${r.scopeValue("wrapper",{ref:t})}.validate`}wi.getValidate=mA;function bu(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,l=c.passContext?Fs.default.this:gr.nil;n?p():u();function p(){if(!a.$async)throw new Error("async schema referenced by sync schema");let h=o.let("valid");o.try(()=>{o.code((0,gr._)`await ${(0,dA.callValidateCode)(e,t,l)}`),m(t),s||o.assign(h,!0)},y=>{o.if((0,gr._)`!(${y} instanceof ${i.ValidationError})`,()=>o.throw(y)),f(y),s||o.assign(h,!1)}),e.ok(h)}function u(){e.result((0,dA.callValidateCode)(e,t,l),()=>m(t),()=>f(t))}function f(h){let y=(0,gr._)`${h}.errors`;o.assign(Fs.default.vErrors,(0,gr._)`${Fs.default.vErrors} === null ? ${y} : ${Fs.default.vErrors}.concat(${y})`),o.assign(Fs.default.errors,(0,gr._)`${Fs.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=vu.mergeEvaluated.props(o,b.props,i.props));else{let x=o.var("props",(0,gr._)`${h}.evaluated.props`);i.props=vu.mergeEvaluated.props(o,x,i.props,gr.Name)}if(i.items!==!0)if(b&&!b.dynamicItems)b.items!==void 0&&(i.items=vu.mergeEvaluated.items(o,b.items,i.items));else{let x=o.var("items",(0,gr._)`${h}.evaluated.items`);i.items=vu.mergeEvaluated.items(o,x,i.items,gr.Name)}}}wi.callRef=bu;wi.default=O7});var yA=E(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});var T7=uA(),R7=hA(),k7=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",T7.default,R7.default];Xg.default=k7});var gA=E(Zg=>{"use strict";Object.defineProperty(Zg,"__esModule",{value:!0});var xu=me(),Oo=xu.operators,Su={maximum:{okStr:"<=",ok:Oo.LTE,fail:Oo.GT},minimum:{okStr:">=",ok:Oo.GTE,fail:Oo.LT},exclusiveMaximum:{okStr:"<",ok:Oo.LT,fail:Oo.GTE},exclusiveMinimum:{okStr:">",ok:Oo.GT,fail:Oo.LTE}},I7={message:({keyword:e,schemaCode:t})=>(0,xu.str)`must be ${Su[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,xu._)`{comparison: ${Su[e].okStr}, limit: ${t}}`},C7={keyword:Object.keys(Su),type:"number",schemaType:"number",$data:!0,error:I7,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,xu._)`${r} ${Su[t].fail} ${n} || isNaN(${r})`)}};Zg.default=C7});var vA=E(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});var Dc=me(),N7={message:({schemaCode:e})=>(0,Dc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Dc._)`{multipleOf: ${e}}`},q7={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:N7,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Dc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Dc._)`${s} !== parseInt(${s})`;e.fail$data((0,Dc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};ev.default=q7});var xA=E(tv=>{"use strict";Object.defineProperty(tv,"__esModule",{value:!0});function bA(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}tv.default=bA;bA.code='require("ajv/dist/runtime/ucs2length").default'});var SA=E(rv=>{"use strict";Object.defineProperty(rv,"__esModule",{value:!0});var _i=me(),D7=Ce(),j7=xA(),M7={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,_i.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,_i._)`{limit: ${e}}`},L7={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:M7,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?_i.operators.GT:_i.operators.LT,s=o.opts.unicode===!1?(0,_i._)`${r}.length`:(0,_i._)`${(0,D7.useFunc)(e.gen,j7.default)}(${r})`;e.fail$data((0,_i._)`${s} ${i} ${n}`)}};rv.default=L7});var wA=E(nv=>{"use strict";Object.defineProperty(nv,"__esModule",{value:!0});var F7=Mr(),U7=Ce(),Us=me(),z7={message:({schemaCode:e})=>(0,Us.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Us._)`{pattern: ${e}}`},V7={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:z7,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,l=c.code==="new RegExp"?(0,Us._)`new RegExp`:(0,U7.useFunc)(t,c),p=t.let("valid");t.try(()=>t.assign(p,(0,Us._)`${l}(${i}, ${a}).test(${r})`),()=>t.assign(p,!1)),e.fail$data((0,Us._)`!${p}`)}else{let c=(0,F7.usePattern)(e,o);e.fail$data((0,Us._)`!${c}.test(${r})`)}}};nv.default=V7});var _A=E(ov=>{"use strict";Object.defineProperty(ov,"__esModule",{value:!0});var jc=me(),B7={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,jc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,jc._)`{limit: ${e}}`},H7={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:B7,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?jc.operators.GT:jc.operators.LT;e.fail$data((0,jc._)`Object.keys(${r}).length ${o} ${n}`)}};ov.default=H7});var PA=E(iv=>{"use strict";Object.defineProperty(iv,"__esModule",{value:!0});var Mc=Mr(),Lc=me(),K7=Ce(),G7={message:({params:{missingProperty:e}})=>(0,Lc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Lc._)`{missingProperty: ${e}}`},W7={keyword:"required",type:"object",schemaType:"array",$data:!0,error:G7,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:s}=e,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():p(),a.strictRequired){let 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,K7.checkStrictMode)(s,x,s.opts.strictRequired)}}function l(){if(c||i)e.block$data(Lc.nil,u);else for(let m of r)(0,Mc.checkReportMissingProp)(e,m)}function p(){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,Mc.checkMissingProp)(e,r,m)),(0,Mc.reportMissingProp)(e,m),t.else()}function u(){t.forOf("prop",n,m=>{e.setParams({missingProperty:m}),t.if((0,Mc.noPropertyInData)(t,o,m,a.ownProperties),()=>e.error())})}function f(m,h){e.setParams({missingProperty:m}),t.forOf(m,n,()=>{t.assign(h,(0,Mc.propertyInData)(t,o,m,a.ownProperties)),t.if((0,Lc.not)(h),()=>{e.error(),t.break()})},Lc.nil)}}};iv.default=W7});var $A=E(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});var Fc=me(),Y7={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Fc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Fc._)`{limit: ${e}}`},Q7={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:Y7,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Fc.operators.GT:Fc.operators.LT;e.fail$data((0,Fc._)`${r}.length ${o} ${n}`)}};sv.default=Q7});var wu=E(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});var EA=Ka();EA.code='require("ajv/dist/runtime/equal").default';av.default=EA});var AA=E(pv=>{"use strict";Object.defineProperty(pv,"__esModule",{value:!0});var cv=Ac(),Ct=me(),J7=Ce(),X7=wu(),Z7={message:({params:{i:e,j:t}})=>(0,Ct.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Ct._)`{i: ${e}, j: ${t}}`},eJ={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Z7,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),l=i.items?(0,cv.getSchemaTypes)(i.items):[];e.block$data(c,p,(0,Ct._)`${s} === false`),e.ok(c);function p(){let h=t.let("i",(0,Ct._)`${r}.length`),y=t.let("j");e.setParams({i:h,j:y}),t.assign(c,!0),t.if((0,Ct._)`${h} > 1`,()=>(u()?f:m)(h,y))}function u(){return l.length>0&&!l.some(h=>h==="object"||h==="array")}function f(h,y){let b=t.name("item"),x=(0,cv.checkDataTypes)(l,b,a.opts.strictNumbers,cv.DataType.Wrong),w=t.const("indices",(0,Ct._)`{}`);t.for((0,Ct._)`;${h}--;`,()=>{t.let(b,(0,Ct._)`${r}[${h}]`),t.if(x,(0,Ct._)`continue`),l.length>1&&t.if((0,Ct._)`typeof ${b} == "string"`,(0,Ct._)`${b} += "_"`),t.if((0,Ct._)`typeof ${w}[${b}] == "number"`,()=>{t.assign(y,(0,Ct._)`${w}[${b}]`),e.error(),t.assign(c,!1).break()}).code((0,Ct._)`${w}[${b}] = ${h}`)})}function m(h,y){let b=(0,J7.useFunc)(t,X7.default),x=t.name("outer");t.label(x).for((0,Ct._)`;${h}--;`,()=>t.for((0,Ct._)`${y} = ${h}; ${y}--;`,()=>t.if((0,Ct._)`${b}(${r}[${h}], ${r}[${y}])`,()=>{e.error(),t.assign(c,!1).break(x)})))}}};pv.default=eJ});var OA=E(uv=>{"use strict";Object.defineProperty(uv,"__esModule",{value:!0});var lv=me(),tJ=Ce(),rJ=wu(),nJ={message:"must be equal to constant",params:({schemaCode:e})=>(0,lv._)`{allowedValue: ${e}}`},oJ={keyword:"const",$data:!0,error:nJ,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,lv._)`!${(0,tJ.useFunc)(t,rJ.default)}(${r}, ${o})`):e.fail((0,lv._)`${i} !== ${r}`)}};uv.default=oJ});var TA=E(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});var Uc=me(),iJ=Ce(),sJ=wu(),aJ={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Uc._)`{allowedValues: ${e}}`},cJ={keyword:"enum",schemaType:"array",$data:!0,error:aJ,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,l=()=>c??(c=(0,iJ.useFunc)(t,sJ.default)),p;if(a||n)p=t.let("valid"),e.block$data(p,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let m=t.const("vSchema",i);p=(0,Uc.or)(...o.map((h,y)=>f(m,y)))}e.pass(p);function u(){t.assign(p,!1),t.forOf("v",i,m=>t.if((0,Uc._)`${l()}(${r}, ${m})`,()=>t.assign(p,!0).break()))}function f(m,h){let y=o[h];return typeof y=="object"&&y!==null?(0,Uc._)`${l()}(${r}, ${m}[${h}])`:(0,Uc._)`${r} === ${y}`}}};dv.default=cJ});var RA=E(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});var pJ=gA(),lJ=vA(),uJ=SA(),dJ=wA(),fJ=_A(),mJ=PA(),hJ=$A(),yJ=AA(),gJ=OA(),vJ=TA(),bJ=[pJ.default,lJ.default,uJ.default,dJ.default,fJ.default,mJ.default,hJ.default,yJ.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},gJ.default,vJ.default];fv.default=bJ});var hv=E(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.validateAdditionalItems=void 0;var Pi=me(),mv=Ce(),xJ={message:({params:{len:e}})=>(0,Pi.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Pi._)`{limit: ${e}}`},SJ={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:xJ,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,mv.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}kA(e,n)}};function kA(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Pi._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Pi._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,mv.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,Pi._)`${a} <= ${t.length}`);r.if((0,Pi.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,p=>{e.subschema({keyword:i,dataProp:p,dataPropType:mv.Type.Num},l),s.allErrors||r.if((0,Pi.not)(l),()=>r.break())})}}zc.validateAdditionalItems=kA;zc.default=SJ});var yv=E(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.validateTuple=void 0;var IA=me(),_u=Ce(),wJ=Mr(),_J={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return CA(e,"additionalItems",t);r.items=!0,!(0,_u.alwaysValidSchema)(r,t)&&e.ok((0,wJ.validateArray)(e))}};function CA(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;p(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=_u.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,IA._)`${i}.length`);r.forEach((u,f)=>{(0,_u.alwaysValidSchema)(a,u)||(n.if((0,IA._)`${l} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function p(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,_u.checkStrictMode)(a,b,f.strictTuples)}}}Vc.validateTuple=CA;Vc.default=_J});var NA=E(gv=>{"use strict";Object.defineProperty(gv,"__esModule",{value:!0});var PJ=yv(),$J={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,PJ.validateTuple)(e,"items")};gv.default=$J});var DA=E(vv=>{"use strict";Object.defineProperty(vv,"__esModule",{value:!0});var qA=me(),EJ=Ce(),AJ=Mr(),OJ=hv(),TJ={message:({params:{len:e}})=>(0,qA.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,qA._)`{limit: ${e}}`},RJ={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:TJ,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,EJ.alwaysValidSchema)(n,t)&&(o?(0,OJ.validateAdditionalItems)(e,o):e.ok((0,AJ.validateArray)(e)))}};vv.default=RJ});var jA=E(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});var Fr=me(),Pu=Ce(),kJ={message:({params:{min:e,max:t}})=>t===void 0?(0,Fr.str)`must contain at least ${e} valid item(s)`:(0,Fr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Fr._)`{minContains: ${e}}`:(0,Fr._)`{minContains: ${e}, maxContains: ${t}}`},IJ={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:kJ,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:l}=n;i.opts.next?(s=c===void 0?1:c,a=l):s=1;let p=t.const("len",(0,Fr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Pu.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Pu.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Pu.alwaysValidSchema)(i,r)){let y=(0,Fr._)`${p} >= ${s}`;a!==void 0&&(y=(0,Fr._)`${y} && ${p} <= ${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,Fr._)`${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,p,x=>{e.subschema({keyword:"contains",dataProp:x,dataPropType:Pu.Type.Num,compositeRule:!0},y),b()})}function h(y){t.code((0,Fr._)`${y}++`),a===void 0?t.if((0,Fr._)`${y} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,Fr._)`${y} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,Fr._)`${y} >= ${s}`,()=>t.assign(u,!0)))}}};bv.default=IJ});var FA=E(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.validateSchemaDeps=An.validatePropertyDeps=An.error=void 0;var xv=me(),CJ=Ce(),Bc=Mr();An.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,xv.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,xv._)`{property: ${e},
|
|
19
|
-
missingProperty: ${n},
|
|
20
|
-
depsCount: ${t},
|
|
21
|
-
deps: ${r}}`};var NJ={keyword:"dependencies",type:"object",schemaType:"object",error:An.error,code(e){let[t,r]=qJ(e);MA(e,t),LA(e,r)}};function qJ({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 MA(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,Bc.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let l of a)(0,Bc.checkReportMissingProp)(e,l)}):(r.if((0,xv._)`${c} && (${(0,Bc.checkMissingProp)(e,a,i)})`),(0,Bc.reportMissingProp)(e,i),r.else())}}An.validatePropertyDeps=MA;function LA(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,CJ.alwaysValidSchema)(i,t[a])||(r.if((0,Bc.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))}An.validateSchemaDeps=LA;An.default=NJ});var zA=E(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var UA=me(),DJ=Ce(),jJ={message:"property name must be valid",params:({params:e})=>(0,UA._)`{propertyName: ${e.propertyName}}`},MJ={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:jJ,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,DJ.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,UA.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Sv.default=MJ});var _v=E(wv=>{"use strict";Object.defineProperty(wv,"__esModule",{value:!0});var $u=Mr(),an=me(),LJ=Zn(),Eu=Ce(),FJ={message:"must NOT have additional properties",params:({params:e})=>(0,an._)`{additionalProperty: ${e.additionalProperty}}`},UJ={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:FJ,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,Eu.alwaysValidSchema)(s,r))return;let l=(0,$u.allSchemaProperties)(n.properties),p=(0,$u.allSchemaProperties)(n.patternProperties);u(),e.ok((0,an._)`${i} === ${LJ.default.errors}`);function u(){t.forIn("key",o,b=>{!l.length&&!p.length?h(b):t.if(f(b),()=>h(b))})}function f(b){let x;if(l.length>8){let w=(0,Eu.schemaRefOrVal)(s,n.properties,"properties");x=(0,$u.isOwnProperty)(t,w,b)}else l.length?x=(0,an.or)(...l.map(w=>(0,an._)`${b} === ${w}`)):x=an.nil;return p.length&&(x=(0,an.or)(x,...p.map(w=>(0,an._)`${(0,$u.usePattern)(e,w)}.test(${b})`))),(0,an.not)(x)}function m(b){t.code((0,an._)`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,Eu.alwaysValidSchema)(s,r)){let x=t.name("valid");c.removeAdditional==="failing"?(y(b,x,!1),t.if((0,an.not)(x),()=>{e.reset(),m(b)})):(y(b,x),a||t.if((0,an.not)(x),()=>t.break()))}}function y(b,x,w){let S={keyword:"additionalProperties",dataProp:b,dataPropType:Eu.Type.Str};w===!1&&Object.assign(S,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(S,x)}}};wv.default=UJ});var HA=E($v=>{"use strict";Object.defineProperty($v,"__esModule",{value:!0});var zJ=kc(),VA=Mr(),Pv=Ce(),BA=_v(),VJ={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&&BA.default.code(new zJ.KeywordCxt(i,BA.default,"additionalProperties"));let s=(0,VA.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Pv.mergeEvaluated.props(t,(0,Pv.toHash)(s),i.props));let a=s.filter(u=>!(0,Pv.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)l(u)?p(u):(t.if((0,VA.propertyInData)(t,o,u,i.opts.ownProperties)),p(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function l(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function p(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};$v.default=VJ});var YA=E(Ev=>{"use strict";Object.defineProperty(Ev,"__esModule",{value:!0});var KA=Mr(),Au=me(),GA=Ce(),WA=Ce(),BJ={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,KA.allSchemaProperties)(r),c=a.filter(y=>(0,GA.alwaysValidSchema)(i,r[y]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&o.properties,p=t.name("valid");i.props!==!0&&!(i.props instanceof Au.Name)&&(i.props=(0,WA.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let y of a)l&&m(y),i.allErrors?h(y):(t.var(p,!0),h(y),t.if(p))}function m(y){for(let b in l)new RegExp(y).test(b)&&(0,GA.checkStrictMode)(i,`property ${b} matches pattern ${y} (use allowMatchingProperties)`)}function h(y){t.forIn("key",n,b=>{t.if((0,Au._)`${(0,KA.usePattern)(e,y)}.test(${b})`,()=>{let x=c.includes(y);x||e.subschema({keyword:"patternProperties",schemaProp:y,dataProp:b,dataPropType:WA.Type.Str},p),i.opts.unevaluated&&u!==!0?t.assign((0,Au._)`${u}[${b}]`,!0):!x&&!i.allErrors&&t.if((0,Au.not)(p),()=>t.break())})})}}};Ev.default=BJ});var QA=E(Av=>{"use strict";Object.defineProperty(Av,"__esModule",{value:!0});var HJ=Ce(),KJ={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,HJ.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"}};Av.default=KJ});var JA=E(Ov=>{"use strict";Object.defineProperty(Ov,"__esModule",{value:!0});var GJ=Mr(),WJ={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:GJ.validateUnion,error:{message:"must match a schema in anyOf"}};Ov.default=WJ});var XA=E(Tv=>{"use strict";Object.defineProperty(Tv,"__esModule",{value:!0});var Ou=me(),YJ=Ce(),QJ={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Ou._)`{passingSchemas: ${e.passing}}`},JJ={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:QJ,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){i.forEach((p,u)=>{let f;(0,YJ.alwaysValidSchema)(o,p)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,Ou._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Ou._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,Ou.Name)})})}}};Tv.default=JJ});var ZA=E(Rv=>{"use strict";Object.defineProperty(Rv,"__esModule",{value:!0});var XJ=Ce(),ZJ={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,XJ.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o);e.ok(o),e.mergeEvaluated(a)})}};Rv.default=ZJ});var rO=E(kv=>{"use strict";Object.defineProperty(kv,"__esModule",{value:!0});var Tu=me(),tO=Ce(),eX={message:({params:e})=>(0,Tu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Tu._)`{failingKeyword: ${e.ifClause}}`},tX={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:eX,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,tO.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=eO(n,"then"),i=eO(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let p=t.let("ifClause");e.setParams({ifClause:p}),t.if(a,l("then",p),l("else",p))}else o?t.if(a,l("then")):t.if((0,Tu.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let p=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(p)}function l(p,u){return()=>{let f=e.subschema({keyword:p},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,Tu._)`${p}`):e.setParams({ifClause:p})}}}};function eO(e,t){let r=e.schema[t];return r!==void 0&&!(0,tO.alwaysValidSchema)(e,r)}kv.default=tX});var nO=E(Iv=>{"use strict";Object.defineProperty(Iv,"__esModule",{value:!0});var rX=Ce(),nX={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,rX.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Iv.default=nX});var oO=E(Cv=>{"use strict";Object.defineProperty(Cv,"__esModule",{value:!0});var oX=hv(),iX=NA(),sX=yv(),aX=DA(),cX=jA(),pX=FA(),lX=zA(),uX=_v(),dX=HA(),fX=YA(),mX=QA(),hX=JA(),yX=XA(),gX=ZA(),vX=rO(),bX=nO();function xX(e=!1){let t=[mX.default,hX.default,yX.default,gX.default,vX.default,bX.default,lX.default,uX.default,pX.default,dX.default,fX.default];return e?t.push(iX.default,aX.default):t.push(oX.default,sX.default),t.push(cX.default),t}Cv.default=xX});var iO=E(Nv=>{"use strict";Object.defineProperty(Nv,"__esModule",{value:!0});var ut=me(),SX={message:({schemaCode:e})=>(0,ut.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,ut._)`{format: ${e}}`},wX={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:SX,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:p,self:u}=a;if(!c.validateFormats)return;o?f():m();function f(){let h=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),y=r.const("fDef",(0,ut._)`${h}[${s}]`),b=r.let("fType"),x=r.let("format");r.if((0,ut._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(b,(0,ut._)`${y}.type || "string"`).assign(x,(0,ut._)`${y}.validate`),()=>r.assign(b,(0,ut._)`"string"`).assign(x,y)),e.fail$data((0,ut.or)(w(),S()));function w(){return c.strictSchema===!1?ut.nil:(0,ut._)`${s} && !${x}`}function S(){let $=p.$async?(0,ut._)`(${y}.async ? await ${x}(${n}) : ${x}(${n}))`:(0,ut._)`${x}(${n})`,P=(0,ut._)`(typeof ${x} == "function" ? ${$} : ${x}.test(${n}))`;return(0,ut._)`${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($());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 "${l}"`}}function S(P){let A=P instanceof RegExp?(0,ut.regexpCode)(P):c.code.formats?(0,ut._)`${c.code.formats}${(0,ut.getProperty)(i)}`:void 0,q=r.scopeValue("formats",{key:i,ref:P,code:A});return typeof P=="object"&&!(P instanceof RegExp)?[P.type||"string",P.validate,(0,ut._)`${q}.validate`]:["string",P,q]}function $(){if(typeof h=="object"&&!(h instanceof RegExp)&&h.async){if(!p.$async)throw new Error("async format in sync schema");return(0,ut._)`await ${x}(${n})`}return typeof b=="function"?(0,ut._)`${x}(${n})`:(0,ut._)`${x}.test(${n})`}}}};Nv.default=wX});var sO=E(qv=>{"use strict";Object.defineProperty(qv,"__esModule",{value:!0});var _X=iO(),PX=[_X.default];qv.default=PX});var aO=E(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.contentVocabulary=zs.metadataVocabulary=void 0;zs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];zs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var pO=E(Dv=>{"use strict";Object.defineProperty(Dv,"__esModule",{value:!0});var $X=yA(),EX=RA(),AX=oO(),OX=sO(),cO=aO(),TX=[$X.default,EX.default,(0,AX.default)(),OX.default,cO.metadataVocabulary,cO.contentVocabulary];Dv.default=TX});var uO=E(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.DiscrError=void 0;var lO;(function(e){e.Tag="tag",e.Mapping="mapping"})(lO||(Ru.DiscrError=lO={}))});var fO=E(Mv=>{"use strict";Object.defineProperty(Mv,"__esModule",{value:!0});var Vs=me(),jv=uO(),dO=yu(),RX=Ic(),kX=Ce(),IX={message:({params:{discrError:e,tagName:t}})=>e===jv.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Vs._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},CX={keyword:"discriminator",type:"object",schemaType:"object",error:IX,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,{oneOf:s}=o;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Vs._)`${r}${(0,Vs.getProperty)(a)}`);t.if((0,Vs._)`typeof ${l} == "string"`,()=>p(),()=>e.error(!1,{discrError:jv.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function p(){let m=f();t.if(!1);for(let h in m)t.elseIf((0,Vs._)`${l} === ${h}`),t.assign(c,u(m[h]));t.else(),e.error(!1,{discrError:jv.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function u(m){let h=t.name("valid"),y=e.subschema({keyword:"oneOf",schemaProp:m},h);return e.mergeEvaluated(y,Vs.Name),h}function f(){var m;let h={},y=x(o),b=!0;for(let $=0;$<s.length;$++){let P=s[$];if(P?.$ref&&!(0,kX.schemaHasRulesButRef)(P,i.self.RULES)){let q=P.$ref;if(P=dO.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,q),P instanceof dO.SchemaEnv&&(P=P.schema),P===void 0)throw new RX.default(i.opts.uriResolver,i.baseId,q)}let A=(m=P?.properties)===null||m===void 0?void 0:m[a];if(typeof A!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);b=b&&(y||x(P)),w(A,$)}if(!b)throw new Error(`discriminator: "${a}" must be required`);return h;function x({required:$}){return Array.isArray($)&&$.includes(a)}function w($,P){if($.const)S($.const,P);else if($.enum)for(let A of $.enum)S(A,P);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function S($,P){if(typeof $!="string"||$ in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[$]=P}}}};Mv.default=CX});var mO=E((rme,NX)=>{NX.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 yO=E((Je,Lv)=>{"use strict";Object.defineProperty(Je,"__esModule",{value:!0});Je.MissingRefError=Je.ValidationError=Je.CodeGen=Je.Name=Je.nil=Je.stringify=Je.str=Je._=Je.KeywordCxt=Je.Ajv=void 0;var qX=lA(),DX=pO(),jX=fO(),hO=mO(),MX=["/properties"],ku="http://json-schema.org/draft-07/schema",Bs=class extends qX.default{_addVocabularies(){super._addVocabularies(),DX.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(jX.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(hO,MX):hO;this.addMetaSchema(t,ku,!1),this.refs["http://json-schema.org/schema"]=ku}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(ku)?ku:void 0)}};Je.Ajv=Bs;Lv.exports=Je=Bs;Lv.exports.Ajv=Bs;Object.defineProperty(Je,"__esModule",{value:!0});Je.default=Bs;var LX=kc();Object.defineProperty(Je,"KeywordCxt",{enumerable:!0,get:function(){return LX.KeywordCxt}});var Hs=me();Object.defineProperty(Je,"_",{enumerable:!0,get:function(){return Hs._}});Object.defineProperty(Je,"str",{enumerable:!0,get:function(){return Hs.str}});Object.defineProperty(Je,"stringify",{enumerable:!0,get:function(){return Hs.stringify}});Object.defineProperty(Je,"nil",{enumerable:!0,get:function(){return Hs.nil}});Object.defineProperty(Je,"Name",{enumerable:!0,get:function(){return Hs.Name}});Object.defineProperty(Je,"CodeGen",{enumerable:!0,get:function(){return Hs.CodeGen}});var FX=mu();Object.defineProperty(Je,"ValidationError",{enumerable:!0,get:function(){return FX.default}});var UX=Ic();Object.defineProperty(Je,"MissingRefError",{enumerable:!0,get:function(){return UX.default}})});var gO=E(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});Ks.formatLimitDefinition=void 0;var zX=yO(),cn=me(),To=cn.operators,Iu={formatMaximum:{okStr:"<=",ok:To.LTE,fail:To.GT},formatMinimum:{okStr:">=",ok:To.GTE,fail:To.LT},formatExclusiveMaximum:{okStr:"<",ok:To.LT,fail:To.GTE},formatExclusiveMinimum:{okStr:">",ok:To.GT,fail:To.LTE}},VX={message:({keyword:e,schemaCode:t})=>(0,cn.str)`should be ${Iu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,cn._)`{comparison: ${Iu[e].okStr}, limit: ${t}}`};Ks.formatLimitDefinition={keyword:Object.keys(Iu),type:"string",schemaType:"string",$data:!0,error:VX,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 zX.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?l():p();function l(){let f=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),m=t.const("fmt",(0,cn._)`${f}[${c.schemaCode}]`);e.fail$data((0,cn.or)((0,cn._)`typeof ${m} != "object"`,(0,cn._)`${m} instanceof RegExp`,(0,cn._)`typeof ${m}.compare != "function"`,u(m)))}function p(){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,cn._)`${s.code.formats}${(0,cn.getProperty)(f)}`:void 0});e.fail$data(u(h))}function u(f){return(0,cn._)`${f}.compare(${r}, ${n}) ${Iu[o].fail} 0`}},dependencies:["format"]};var BX=e=>(e.addKeyword(Ks.formatLimitDefinition),e);Ks.default=BX});var SO=E((Hc,xO)=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var Gs=oE(),HX=gO(),Fv=me(),vO=new Fv.Name("fullFormats"),KX=new Fv.Name("fastFormats"),Uv=(e,t={keywords:!0})=>{if(Array.isArray(t))return bO(e,t,Gs.fullFormats,vO),e;let[r,n]=t.mode==="fast"?[Gs.fastFormats,KX]:[Gs.fullFormats,vO],o=t.formats||Gs.formatNames;return bO(e,o,r,n),t.keywords&&(0,HX.default)(e),e};Uv.get=(e,t="full")=>{let n=(t==="fast"?Gs.fastFormats:Gs.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function bO(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,Fv._)`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}xO.exports=Hc=Uv;Object.defineProperty(Hc,"__esModule",{value:!0});Hc.default=Uv});var DO=E((Cme,qO)=>{"use strict";qO.exports=(function(){function e(t,r,n,o,i){return t<r||n<r?t>n?n+1:t+1:o===i?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var o=t.length,i=r.length;o>0&&t.charCodeAt(o-1)===r.charCodeAt(i-1);)o--,i--;for(var s=0;s<o&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(o-=s,i-=s,o===0||i<3)return i;var a=0,c,l,p,u,f,m,h,y,b,x,w,S,$=[];for(c=0;c<o;c++)$.push(c+1),$.push(t.charCodeAt(s+c));for(var P=$.length-1;a<i-3;)for(b=r.charCodeAt(s+(l=a)),x=r.charCodeAt(s+(p=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=$[c],y=$[c+1],l=e(h,l,p,b,y),p=e(l,p,u,x,y),u=e(p,u,f,w,y),m=e(u,f,m,S,y),$[c]=m,f=u,u=p,p=l,l=h;for(;a<i;)for(b=r.charCodeAt(s+(l=a)),m=++a,c=0;c<P;c+=2)h=$[c],$[c]=m=e(h,l,m,b,$[c+1]),l=h;return m}})()});var Zc=E(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});var ta;(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"})(ta=qn.Kind||(qn.Kind={}));function iee(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:ta.MAPPING,parent:null,errors:[]};return n}qn.newMapping=iee;function see(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:ta.ANCHOR_REF,parent:null}}qn.newAnchorRef=see;function aee(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:ta.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}qn.newScalar=aee;function r1(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:ta.SEQ,parent:null}}qn.newItems=r1;function cee(){return r1()}qn.newSeq=cee;function pee(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:ta.MAP,parent:null}}qn.newMap=pee});var Ri=E(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});function n1(e){return typeof e>"u"||e===null}Lo.isNothing=n1;function lee(e){return typeof e=="object"&&e!==null}Lo.isObject=lee;function uee(e){return Array.isArray(e)?e:n1(e)?[]:[e]}Lo.toArray=uee;function dee(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}Lo.extend=dee;function fee(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}Lo.repeat=fee;function mee(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Lo.isNegativeZero=mee});var ra=E((kwe,o1)=>{"use strict";var hee=(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})();o1.exports=hee});var a1=E((Iwe,s1)=>{"use strict";var i1=Ri(),yee=(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),i1.repeat(" ",t)+n+a+i+`
|
|
24
|
-
`+i1.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})();s1.exports=yee});var qt=E(lb=>{"use strict";Object.defineProperty(lb,"__esModule",{value:!0});var c1=ra(),gee=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],vee=["scalar","sequence","mapping"];function bee(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var xee=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(gee.indexOf(n)===-1)throw new c1('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.defaultStyle=r.defaultStyle||null,this.styleAliases=bee(r.styleAliases||null),vee.indexOf(this.kind)===-1)throw new c1('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();lb.Type=xee});var na=E(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});var p1=Ri(),gd=ra(),See=qt();function ub(e,t,r){var n=[];return e.include.forEach(function(o){r=ub(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 wee(){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 _ee=(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 gd("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=ub(this,"implicit",[]),this.compiledExplicit=ub(this,"explicit",[]),this.compiledTypeMap=wee(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 gd("Wrong number of arguments for Schema.create function")}if(r=p1.toArray(r),n=p1.toArray(n),!r.every(function(o){return o instanceof e}))throw new gd("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(o){return o instanceof See.Type}))throw new gd("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();db.Schema=_ee});var u1=E((qwe,l1)=>{"use strict";var Pee=qt();l1.exports=new Pee.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var f1=E((Dwe,d1)=>{"use strict";var $ee=qt();d1.exports=new $ee.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var h1=E((jwe,m1)=>{"use strict";var Eee=qt();m1.exports=new Eee.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var g1=E((Mwe,y1)=>{"use strict";var Aee=na();y1.exports=new Aee.Schema({explicit:[u1(),f1(),h1()]})});var b1=E((Lwe,v1)=>{"use strict";var Oee=qt();function Tee(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function Ree(){return null}function kee(e){return e===null}v1.exports=new Oee.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:Tee,construct:Ree,predicate:kee,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var S1=E((Fwe,x1)=>{"use strict";var Iee=qt();function Cee(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 Nee(e){return e==="true"||e==="True"||e==="TRUE"}function qee(e){return Object.prototype.toString.call(e)==="[object Boolean]"}x1.exports=new Iee.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Cee,construct:Nee,predicate:qee,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 _1=E((Uwe,w1)=>{"use strict";var Dee=Ri(),jee=qt();function Mee(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function Lee(e){return 48<=e&&e<=55}function Fee(e){return 48<=e&&e<=57}function Uee(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(!Mee(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(!Lee(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!Fee(e.charCodeAt(r)))return!1;n=!0}return n?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function zee(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 Vee(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Dee.isNegativeZero(e)}w1.exports=new jee.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:Uee,construct:zee,predicate:Vee,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 E1=E((zwe,$1)=>{"use strict";var P1=Ri(),Bee=qt(),Hee=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 Kee(e){if(e===null)return!1;var t,r,n,o;return!!Hee.test(e)}function Gee(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 Wee(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(P1.isNegativeZero(e))return"-0.0";return e.toString(10)}function Yee(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||P1.isNegativeZero(e))}$1.exports=new Bee.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:Kee,construct:Gee,predicate:Yee,represent:Wee,defaultStyle:"lowercase"})});var O1=E((Vwe,A1)=>{"use strict";var Qee=na();A1.exports=new Qee.Schema({include:[g1()],implicit:[b1(),S1(),_1(),E1()]})});var R1=E((Bwe,T1)=>{"use strict";var Jee=na();T1.exports=new Jee.Schema({include:[O1()]})});var C1=E((Hwe,I1)=>{"use strict";var Xee=qt(),k1=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 Zee(e){if(e===null)return!1;var t,r,n,o,i,s,a,c=0,l=null,p,u,f;return t=k1.exec(e),t!==null}function ete(e){var t,r,n,o,i,s,a,c=0,l=null,p,u,f;if(t=k1.exec(e),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(p=+t[10],u=+(t[11]||0),l=(p*60+u)*6e4,t[9]==="-"&&(l=-l)),f=new Date(Date.UTC(r,n,o,i,s,a,c)),l&&f.setTime(f.getTime()-l),f}function tte(e){return e.toISOString()}I1.exports=new Xee.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Zee,construct:ete,instanceOf:Date,represent:tte})});var q1=E((Kwe,N1)=>{"use strict";var rte=qt();function nte(e){return e==="<<"||e===null}N1.exports=new rte.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:nte})});var j1=E((Gwe,D1)=>{"use strict";var vd=Vd("buffer").Buffer,ote=qt(),fb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
26
|
-
\r`;function ite(e){if(e===null)return!1;var t,r,n=0,o=0,i=e.length,s=fb;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 ste(e){var t,r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,s=fb,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),vd?new vd(c):c}function ate(e){var t="",r=0,n,o,i=e.length,s=fb;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 cte(e){return vd&&vd.isBuffer(e)}D1.exports=new ote.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:ite,construct:ste,predicate:cte,represent:ate})});var L1=E((Wwe,M1)=>{"use strict";var pte=qt(),lte=Object.prototype.hasOwnProperty,ute=Object.prototype.toString;function dte(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,ute.call(o)!=="[object Object]")return!1;for(i in o)if(lte.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 fte(e){return e!==null?e:[]}M1.exports=new pte.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:dte,construct:fte})});var U1=E((Ywe,F1)=>{"use strict";var mte=qt(),mb=Zc(),hte=Object.prototype.toString;function yte(e){if(e===null)return!0;if(e.kind!=mb.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],hte.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function gte(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,o,i=e.items;for(o=mb.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=mb.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}F1.exports=new mte.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:yte,construct:gte})});var V1=E((Qwe,z1)=>{"use strict";var vte=qt(),bte=Zc();function xte(e){return e===null?!0:e.kind==bte.Kind.MAP}function Ste(e){return e!==null?e:{}}z1.exports=new vte.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:xte,construct:Ste})});var bd=E((Jwe,B1)=>{"use strict";var wte=na(),_te=new wte.Schema({include:[R1()],implicit:[C1(),q1()],explicit:[j1(),L1(),U1(),V1()]});B1.exports=_te});var K1=E((Xwe,H1)=>{"use strict";var Pte=qt();function $te(){return!0}function Ete(){}function Ate(){return""}function Ote(e){return typeof e>"u"}H1.exports=new Pte.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:$te,construct:Ete,predicate:Ote,represent:Ate})});var W1=E((Zwe,G1)=>{"use strict";var Tte=qt();function Rte(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 kte(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 Ite(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function Cte(e){return Object.prototype.toString.call(e)==="[object RegExp]"}G1.exports=new Tte.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:Rte,construct:kte,predicate:Cte,represent:Ite})});var hb=E((e_e,J1)=>{"use strict";var Y1=na(),Q1=new Y1.Schema({include:[bd()],explicit:[K1(),W1()]});Y1.Schema.DEFAULT=Q1;J1.exports=Q1});var lk=E((aa,tp)=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});var Pr=Zc(),Fo=Ri(),wb=ra(),_b=a1(),tk=bd(),Nte=hb(),wd=Object.prototype.hasOwnProperty,xd=1,rk=2,nk=3,Sd=4,yb=1,qte=2,X1=3,Dte=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,jte=/[\x85\u2028\u2029]/,Mte=/[,\[\]\{\}]/,ok=/^(?:!|!!|![a-z\-]+!)$/i,ik=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function pn(e){return e===10||e===13}function ki(e){return e===9||e===32}function vr(e){return e===9||e===32||e===10||e===13}function oa(e){return e===44||e===91||e===93||e===123||e===125}function Lte(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Fte(e){return e===120?2:e===117?4:e===85?8:0}function Ute(e){return 48<=e&&e<=57?e-48:-1}function zte(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 Vte(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var gb=new Array(256),vb=new Array(256),sk=new Array(256),bb=new Array(256);for(Vr=0;Vr<256;Vr++)bb[Vr]=vb[Vr]=zte(Vr),gb[Vr]=vb[Vr]?1:0,sk[Vr]=1,gb[Vr]||(bb[Vr]="\\"+String.fromCharCode(Vr));var Vr,Bte=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||Nte,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 Pb(e,t,r){return r===void 0&&(r=!1),new wb(t,new _b(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function xb(e,t,r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var i=Hte(e,t);if(i){var s=r+t;if(!e.errorMap[s]){var a=new _b(e.filename,e.input,t,i.line,t-i.start);o&&(a.toLineEnd=!0);var c=new wb(r,a,n);e.errors.push(c)}}}function ne(e,t){var r=Pb(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 Sb(e,t){var r=Pb(e,t);e.onWarning&&e.onWarning.call(null,r)}var Z1={YAML:function(t,r,n){var o,i,s;t.version!==null&&ne(t,"duplication of %YAML directive"),n.length!==1&&ne(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&ne(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&ne(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&ne(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var o,i;n.length!==2&&ne(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],ok.test(o)||ne(t,"ill-formed tag handle (first argument) of the TAG directive"),wd.call(t.tagMap,o)&&ne(t,'there is a previously declared suffix for "'+o+'" tag handle'),ik.test(i)||ne(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function Uo(e,t,r,n){var o,i,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=r){if(a=e.input.slice(t,r),n)for(o=0,i=a.length;o<i;o+=1)s=a.charCodeAt(o),s===9||32<=s&&s<=1114111||ne(e,"expected valid JSON character");else Dte.test(a)&&ne(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function ia(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:Pr.Kind.MAP});var a=Pr.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)&&(xb(e,a.key.startPosition,"duplicate key"),xb(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=o?o.endPosition:n.endPosition+1,t}}function $b(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):ne(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function Hte(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 mt(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;ki(o);)o===9&&e.errors.push(Pb(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(pn(o))for($b(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&&Sb(e,"deficient indentation"),n}function ep(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||vr(r)))}function Eb(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=Fo.repeat(`
|
|
29
|
-
`,r-1))}function Kte(e,t,r){var n,o,i,s,a,c,l,p,u=e.kind,f=e.result,m,h=Pr.newScalar();if(h.plainScalar=!0,e.result=h,m=e.input.charCodeAt(e.position),vr(m)||oa(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),vr(o)||r&&oa(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),vr(o)||r&&oa(o))break}else if(m===35){if(n=e.input.charCodeAt(e.position-1),vr(n))break}else{if(e.position===e.lineStart&&ep(e)||r&&oa(m))break;if(pn(m))if(c=e.line,l=e.lineStart,p=e.lineIndent,mt(e,!1,-1),e.lineIndent>=t){a=!0,m=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=p;break}}if(a&&(Uo(e,i,s,!1),Eb(e,h,e.line-c),i=s=e.position,a=!1),ki(m)||(s=e.position+1),m=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Uo(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 Gte(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var i=Pr.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(Uo(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 pn(r)?(Uo(e,n,o,!0),Eb(e,i,mt(e,!1,t)),n=o=e.position):e.position===e.lineStart&&ep(e)?ne(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position,i.endPosition=e.position);ne(e,"unexpected end of the stream within a single quoted scalar")}function Wte(e,t){var r,n,o,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var l=Pr.newScalar();for(l.doubleQuoted=!0,e.result=l,l.startPosition=e.position,e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Uo(e,r,e.position,!0),e.position++,l.endPosition=e.position,l.rawValue=e.input.substring(l.startPosition,l.endPosition),!0;if(c===92){if(Uo(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),pn(c))mt(e,!1,t);else if(c<256&&(e.allowAnyEscape?sk[c]:gb[c]))l.value+=e.allowAnyEscape?bb[c]:vb[c],e.position++;else if((s=Fte(c))>0){for(o=s,i=0;o>0;o--)c=e.input.charCodeAt(++e.position),(s=Lte(c))>=0?i=(i<<4)+s:ne(e,"expected hexadecimal character");l.value+=Vte(i),e.position++}else ne(e,"unknown escape sequence");r=n=e.position}else pn(c)?(Uo(e,r,n,!0),Eb(e,l,mt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&ep(e)?ne(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}ne(e,"unexpected end of the stream within a double quoted scalar")}function Yte(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,c,l,p,u,f,m,h,y;if(y=e.input.charCodeAt(e.position),y===91)c=93,u=!1,i=Pr.newItems(),i.startPosition=e.position;else if(y===123)c=125,u=!0,i=Pr.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(mt(e,!0,t),y=e.input.charCodeAt(e.position),y===c)return e.position++,e.tag=o,e.anchor=s,e.kind=u?"mapping":"sequence",e.result=i,i.endPosition=e.position,!0;if(!r){var b=e.position;ne(e,"missed comma between flow collection entries"),e.position=b+1}if(m=f=h=null,l=p=!1,y===63&&(a=e.input.charCodeAt(e.position+1),vr(a)&&(l=p=!0,e.position++,mt(e,!0,t))),n=e.line,sa(e,t,xd,!1,!0),m=e.tag,f=e.result,mt(e,!0,t),y=e.input.charCodeAt(e.position),(p||e.line===n)&&y===58&&(l=!0,y=e.input.charCodeAt(++e.position),mt(e,!0,t),sa(e,t,xd,!1,!0),h=e.result),u)ia(e,i,m,f,h);else if(l){var x=ia(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,mt(e,!0,t),y=e.input.charCodeAt(e.position),y===44?(r=!0,y=e.input.charCodeAt(++e.position)):r=!1}ne(e,"unexpected end of the stream within a flow collection")}function Qte(e,t){var r,n,o=yb,i=!1,s=t,a=0,c=!1,l,p;if(p=e.input.charCodeAt(e.position),p===124)n=!1;else if(p===62)n=!0;else return!1;var u=Pr.newScalar();for(e.kind="scalar",e.result=u,u.startPosition=e.position;p!==0;)if(p=e.input.charCodeAt(++e.position),p===43||p===45)yb===o?o=p===43?X1:qte:ne(e,"repeat of a chomping mode identifier");else if((l=Ute(p))>=0)l===0?ne(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?ne(e,"repeat of an indentation width identifier"):(s=t+l-1,i=!0);else break;if(ki(p)){do p=e.input.charCodeAt(++e.position);while(ki(p));if(p===35)do p=e.input.charCodeAt(++e.position);while(!pn(p)&&p!==0)}for(;p!==0;){for($b(e),e.lineIndent=0,p=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&p===32;)e.lineIndent++,p=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),pn(p)){a++;continue}if(e.lineIndent<s){o===X1?u.value+=Fo.repeat(`
|
|
30
|
-
`,a):o===yb&&i&&(u.value+=`
|
|
31
|
-
`);break}for(n?ki(p)?(c=!0,u.value+=Fo.repeat(`
|
|
32
|
-
`,a+1)):c?(c=!1,u.value+=Fo.repeat(`
|
|
33
|
-
`,a+1)):a===0?i&&(u.value+=" "):u.value+=Fo.repeat(`
|
|
34
|
-
`,a):i&&(u.value+=Fo.repeat(`
|
|
35
|
-
`,a+1)),i=!0,a=0,r=e.position;!pn(p)&&p!==0;)p=e.input.charCodeAt(++e.position);Uo(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 ek(e,t){var r,n=e.tag,o=e.anchor,i=Pr.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),!vr(s)));){if(a=!0,e.position++,mt(e,!0,-1)&&e.lineIndent<=t){i.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,sa(e,t,nk,!1,!0),e.result&&(e.result.parent=i,i.items.push(e.result)),mt(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)ne(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i.endPosition=e.position,a?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=i,i.endPosition=e.position,!0):!1}function Jte(e,t,r){var n,o,i,s=e.tag,a=e.anchor,c=Pr.newMap(),l=null,p=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)&&vr(n))h===63?(f&&(ia(e,c,l,p,null),l=p=u=null),m=!0,f=!0,o=!0):f?(f=!1,o=!0):ne(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,h=n;else if(sa(e,r,rk,!1,!0))if(e.line===i){for(h=e.input.charCodeAt(e.position);ki(h);)h=e.input.charCodeAt(++e.position);if(h===58)h=e.input.charCodeAt(++e.position),vr(h)||ne(e,"a whitespace character is expected after the key-value separator within a block mapping"),f&&(ia(e,c,l,p,null),l=p=u=null),m=!0,f=!1,o=!1,l=e.tag,p=e.result;else{if(e.position==e.lineStart&&ep(e))break;if(m)ne(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(ne(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),pn(h)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===i||e.lineIndent>t)&&(sa(e,t,Sd,!0,o)&&(f?p=e.result:u=e.result),f||(ia(e,c,l,p,u),l=p=u=null),mt(e,!0,-1),h=e.input.charCodeAt(e.position)),e.lineIndent>t&&h!==0)ne(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return f&&ia(e,c,l,p,null),m&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),m}function Xte(e){var t,r=!1,n=!1,o,i,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&ne(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,o="!!",s=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(i=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):ne(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!vr(s);)s===33&&(n?ne(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),ok.test(o)||ne(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),Mte.test(i)&&ne(e,"tag suffix cannot contain flow indicator characters")}return i&&!ik.test(i)&&ne(e,"tag name cannot contain such characters: "+i),r?e.tag=i:wd.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:ne(e,'undeclared tag handle "'+o+'"'),!0}function Zte(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&ne(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!vr(r)&&!oa(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&ne(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ere(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&&!vr(i)&&!oa(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(ne(e,"name of an alias node must contain at least one character"),e.position=t+1),r=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(r)||(ne(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=Pr.newAnchorRef(r,t,e.position,e.anchorMap[r]),mt(e,!0,-1),!0}function sa(e,t,r,n,o){var i,s,a,c=1,l=!1,p=!1,u,f,m,h,y,b;e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=Sd===r||nk===r,n&&mt(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var x=e.position,w=e.position-e.lineStart;if(c===1)for(;Xte(e)||Zte(e);)mt(e,!0,-1)?(l=!0,a=i,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=l||o),(c===1||Sd===r)&&(xd===r||rk===r?h=t:h=t+1,y=e.position-e.lineStart,c===1?a&&(ek(e,y)||Jte(e,y,h))||Yte(e,h)?p=!0:(s&&Qte(e,h)||Gte(e,h)||Wte(e,h)?p=!0:ere(e)?(p=!0,(e.tag!==null||e.anchor!==null)&&ne(e,"alias node should not have any properties")):Kte(e,h,xd===r)&&(p=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(p=a&&ek(e,y))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Pr.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,ne(e,"!include without value")),e.result.kind=Pr.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 wd.call(e.typeMap,e.tag)?(m=e.typeMap[e.tag],e.result!==null&&m.kind!==e.kind&&ne(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)):ne(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):xb(e,x,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||p}function tre(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&&(mt(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&&!vr(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&ne(e,"directive name must not be less than one character in length");s!==0;){for(;ki(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!pn(s));break}if(pn(s))break;for(r=e.position;s!==0&&!vr(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&$b(e),wd.call(Z1,n)?Z1[n](e,n,o):(Sb(e,'unknown document directive "'+n+'"'),e.position++)}if(mt(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,mt(e,!0,-1)):i&&ne(e,"directives end mark is expected"),sa(e,e.lineIndent-1,Sd,!1,!0),mt(e,!0,-1),e.checkLineBreaks&&jte.test(e.input.slice(t,e.position))&&Sb(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&ep(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,mt(e,!0,-1));return}if(e.position<e.length-1)ne(e,"end of the stream or a document separator is expected");else return}function ak(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 Bte(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(tre(n),n.position<=o)for(;n.position<n.length-1;n.position++){var i=n.input.charAt(n.position);if(i==`
|
|
38
|
-
`)break}}var s=n.documents,a=s.length;a>0&&(s[a-1].endPosition=r);for(var c=0,l=s;c<l.length;c++){var p=l[c];p.errors=n.errors,p.startPosition>p.endPosition&&(p.startPosition=p.endPosition)}return s}function Ab(e,t,r){r===void 0&&(r={});var n=ak(e,r),o,i;for(o=0,i=n.length;o<i;o+=1)t(n[o])}aa.loadAll=Ab;function Ob(e,t){t===void 0&&(t={});var r=ak(e,t),n,o;if(r.length!==0){if(r.length===1)return r[0];var i=new wb("expected a single document in the stream, but found more");return i.mark=new _b("","",0,0,0),i.mark.position=r[0].endPosition,r[0].errors.push(i),r[0]}}aa.load=Ob;function ck(e,t,r){r===void 0&&(r={}),Ab(e,t,Fo.extend({schema:tk},r))}aa.safeLoadAll=ck;function pk(e,t){return t===void 0&&(t={}),Ob(e,Fo.extend({schema:tk},t))}aa.safeLoad=pk;tp.exports.loadAll=Ab;tp.exports.load=Ob;tp.exports.safeLoadAll=ck;tp.exports.safeLoad=pk});var gk=E(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});var rp=Ri(),Nb=ra(),rre=hb(),nre=bd(),qb=Object.prototype.toString,mk=Object.prototype.hasOwnProperty,ore=9,Ii=10,ire=13,Tb=32,sre=33,Rb=34,are=35,cre=37,pre=38,kb=39,lre=42,ure=44,dre=45,fre=58,mre=62,hre=63,yre=64,gre=91,vre=93,bre=96,xre=123,Sre=124,wre=125,_t={};_t[0]="\\0";_t[7]="\\a";_t[8]="\\b";_t[9]="\\t";_t[10]="\\n";_t[11]="\\v";_t[12]="\\f";_t[13]="\\r";_t[27]="\\e";_t[34]='\\"';_t[92]="\\\\";_t[133]="\\N";_t[160]="\\_";_t[8232]="\\L";_t[8233]="\\P";var _re=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Pre(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&&mk.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function $re(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 Nb("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+rp.repeat("0",n-t.length)+t}function Ere(e){this.schema=e.schema||rre,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=rp.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Pre(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 uk(e,t){for(var r=rp.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 Ib(e,t){return`
|
|
41
|
-
`+rp.repeat(" ",e.indent*t)}function Are(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 _d(e){this.source=e,this.result="",this.checkpoint=0}_d.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};_d.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=_t[e]||$re(e),this.result+=t,this.checkpoint+=1,this};_d.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function Ore(e,t,r){var n,o,i,s,a,c,l,p,u,f,m,h,y,b,x,w,S,$,P,A,q;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(_re.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(n=!0,o=t.length?t.charCodeAt(0):0,i=Tb===o||Tb===t.charCodeAt(t.length-1),(dre===o||hre===o||yre===o||bre===o)&&(n=!1),i?(n=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,l=new _d(t),p=!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(!Rre(y))n=!1;else continue;c&&y===kb&&(c=!1),x=_t[y],w=hk(y),!(!x&&!w)&&(y!==Ii&&y!==Rb&&y!==kb?(s=!1,a=!1):y===Ii&&(p=!0,c=!1,b>0&&(S=t.charCodeAt(b-1),S===Tb&&(a=!1,s=!1)),s&&($=b-u,u=b,$>f&&(f=$))),y!==Rb&&(c=!1),l.takeUpTo(b),l.escapeChar())}if(n&&Are(e,t)&&(n=!1),P="",(s||a)&&(A=0,t.charCodeAt(t.length-1)===Ii&&(A+=1,t.charCodeAt(t.length-2)===Ii&&(A+=1)),A===0?P="-":A===2&&(P="+")),a&&f<h&&(s=!1),p||(a=!1),n)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)q=Tre(t,h),e.dump=">"+P+`
|
|
42
|
-
`+uk(q,m);else if(a)P||(t=t.replace(/\n$/,"")),e.dump="|"+P+`
|
|
43
|
-
`+uk(t,m);else if(l)l.finish(),e.dump='"'+l.result+'"';else throw new Error("Failed to dump scalar value")}function Tre(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+=dk(e.slice(n,o),t),n=o):(r&&(r+=`
|
|
47
|
-
|
|
48
|
-
`),r+=dk(e.slice(n,s),t),n=s+1);return i&&i[0]!==`
|
|
49
|
-
`&&(r+=i[0]),r}function dk(e,t){if(e==="")return e;for(var r=/[^\s] [^\s]/g,n="",o=0,i=0,s=r.exec(e),a,c,l;s;)a=s.index,a-i>t&&(o!==i?c=o:c=a,n&&(n+=`
|
|
50
|
-
`),l=e.slice(i,c),n+=l,i=c+1),o=a+1,s=r.exec(e);return n&&(n+=`
|
|
51
|
-
`),i!==o&&e.length-i>t?n+=e.slice(i,o)+`
|
|
52
|
-
`+e.slice(o+1):n+=e.slice(i),n}function Rre(e){return ore!==e&&Ii!==e&&ire!==e&&ure!==e&&gre!==e&&vre!==e&&xre!==e&&wre!==e&&are!==e&&pre!==e&&lre!==e&&sre!==e&&Sre!==e&&mre!==e&&kb!==e&&Rb!==e&&cre!==e&&fre!==e&&!_t[e]&&!hk(e)}function hk(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function kre(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)Ci(e,t,r[i],!1,!1)&&(i!==0&&(n+=", "),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function Ire(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Ci(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=Ib(e,t)),o+="- "+e.dump);e.tag=i,e.dump=o||"[]"}function Cre(e,t,r){var n="",o=e.tag,i=Object.keys(r),s,a,c,l,p;for(s=0,a=i.length;s<a;s+=1)p="",s!==0&&(p+=", "),c=i[s],l=r[c],Ci(e,t,c,!1,!1)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+": ",Ci(e,t,l,!1,!1)&&(p+=e.dump,n+=p));e.tag=o,e.dump="{"+n+"}"}function Nre(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,c,l,p,u,f;for(a=0,c=s.length;a<c;a+=1)f="",(!n||a!==0)&&(f+=Ib(e,t)),l=s[a],p=r[l],Ci(e,t+1,l,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Ii===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=Ib(e,t)),Ci(e,t+1,p,!0,u)&&(e.dump&&Ii===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,o+=f));e.tag=i,e.dump=o||"{}"}function fk(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(mk.call(a.represent,c))n=a.represent[c](t,c);else throw new Nb("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Ci(e,t,r,n,o){e.tag=null,e.dump=r,fk(e,r,!1)||fk(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?(Nre(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
53
|
-
`:"")+e.dump)):(Cre(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object Array]")n&&e.dump.length!==0?(Ire(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
54
|
-
`:"")+e.dump)):(kre(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object String]")e.tag!=="?"&&Ore(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Nb("unacceptable kind of an object to dump "+i)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function qre(e,t){var r=[],n=[],o,i;for(Cb(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function Cb(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)Cb(e[i],t,r);else for(o=Object.keys(e),i=0,s=o.length;i<s;i+=1)Cb(e[o[i]],t,r)}function yk(e,t){t=t||{};var r=new Ere(t);return qre(e,r),Ci(r,0,e,!0,!0)?r.dump+`
|
|
55
|
-
`:""}Pd.dump=yk;function Dre(e,t){return yk(e,rp.extend({schema:nre},t))}Pd.safeDump=Dre});var vk=E(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});function jre(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}zo.parseYamlBoolean=jre;function Mre(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function Lre(e){var t=Mre(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}zo.parseYamlInteger=Lre;function Fre(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+'"'}zo.parseYamlFloat=Fre;var no;(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"})(no=zo.ScalarType||(zo.ScalarType={}));function Ure(e){if(e===void 0)return no.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return no.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return no.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return no.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 no.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?no.float:no.string}zo.determineScalarType=Ure});var Sk=E(ln=>{"use strict";function bk(e){for(var t in e)ln.hasOwnProperty(t)||(ln[t]=e[t])}Object.defineProperty(ln,"__esModule",{value:!0});var $d=lk();ln.load=$d.load;ln.loadAll=$d.loadAll;ln.safeLoad=$d.safeLoad;ln.safeLoadAll=$d.safeLoadAll;var xk=gk();ln.dump=xk.dump;ln.safeDump=xk.safeDump;ln.YAMLException=ra();bk(Zc());bk(vk())});function T(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function br(e){return T(e)&&Object.keys(e).length===0}function et(e){return typeof e=="string"}var E0=fn(Kd(),1);function BC(e,t,r){return e.split(" ").map(n=>(0,E0.default)(n,t,r)).join(" ")}function HC(e){return e.charAt(0).toUpperCase()+e.slice(1)}function z(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function V(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}var Gr={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function Wr(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=Gr,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)):Or(i)?(i={...i},n(i),i):i?.directResolveAs!==void 0?{...i,directResolveAs:o(i.directResolveAs)??void 0}:i}}function Or(e){return typeof e?.name=="string"}import*as ji from"node:path";function gt(e){return!!e}function Yr(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function B(e){return T(e)&&typeof e.$ref=="string"}function so(e){return B(e)&&Object.keys(e).length>1}function lp(e){return T(e)&&typeof e.externalValue=="string"}var Dt=class e{source;pointer;constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,Yr(this.pointer,(Array.isArray(t)?t:[t]).map(mn).join("/")))}key(){return Object.assign(Object.create(e.prototype),this,{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function up(e){let t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function mn(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function ao(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Gd(r)}}function Gd(e){return e.split("/").map(up).filter(gt)}function A0(e){let t=e.split("/");return t[t.length-1]}function O0(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function co(e){return e.startsWith("file://")}function ce(e){return e.startsWith("http://")||e.startsWith("https://")||co(e)||e.startsWith("data:")}function Wd(e){return ji.extname(e)?ce(e)?e.substring(0,e.lastIndexOf("/")):ji.dirname(e):e}function dp(e,t){return ce(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:ji.resolve(e,t)}function Tr(e){return typeof e=="string"&&(e.startsWith("#")||ce(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function T0(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function da(e,t,r){if(!T(t.node)&&r.parent){r.parent[r.key]=t.node;return}delete e.$ref,T(t.node)&&Object.assign(e,{...t.node,...e})}var KC=/^[0-9][0-9Xx]{2}$/,GC={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},WC={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."},YC={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"},QC={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"},JC={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."},XC={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."},ZC={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."},eN={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"},tN={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."},rN={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."},nN={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."},oN={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"},iN={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},sN={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"},aN={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"},cN={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"},pN={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."},lN={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."},uN={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},dN={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"},fN={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"},mN={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"},hN={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"},yN={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."},gN={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>KC.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"},vN={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."},bN={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."},Yd="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",R0=z("Schema",{name:"AllOf",description:Yd}),k0=z("Schema",{name:"AnyOf",description:Yd}),I0=z("Schema",{name:"OneOf",description:Yd}),xN={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:R0,anyOf:k0,oneOf:I0,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?z("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string",description:"CommonMark syntax MAY be used for rich text representation."},format:{type:"string",description:"See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats."},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-",description:"The schema defining the content of the request, response, or parameter.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/schemas"},SN={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."},wN={properties:{},additionalProperties:"Schema"},_N={properties:{},additionalProperties:e=>typeof e=="string"&&Tr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},PN={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."},$N={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"},EN={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."},AN={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."},ON={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."},TN={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."},RN={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},kN={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-"},IN={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"},ir={Root:GC,Tag:WC,TagList:z("Tag",{documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/tags",description:"A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique."}),TagGroups:z("TagGroup"),TagGroup:YC,ExternalDocs:QC,Server:JC,ServerList:z("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:XC,ServerVariablesMap:V("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:ZC,SecurityRequirementList:z("SecurityRequirement"),Info:eN,Contact:rN,License:nN,Paths:oN,PathItem:sN,Parameter:aN,ParameterList:z("Parameter",{description:"A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object\u2019s components/parameters."}),Operation:cN,Callback:V("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:V("Callback"),RequestBody:lN,MediaTypesMap:uN,MediaType:dN,Example:fN,ExamplesMap:V("Example"),Encoding:mN,EncodingMap:V("Encoding"),EnumDescriptions:hN,Header:yN,HeadersMap:V("Header"),Responses:gN,Response:vN,Link:bN,Logo:tN,Schema:xN,AllOf:R0,AnyOf:k0,OneOf:I0,Xml:SN,SchemaProperties:wN,DiscriminatorMapping:_N,Discriminator:PN,Components:$N,LinksMap:V("Link"),NamedSchemas:V("Schema"),NamedResponses:V("Response"),NamedParameters:V("Parameter"),NamedExamples:V("Example"),NamedRequestBodies:V("RequestBody"),NamedHeaders:V("Header"),NamedSecuritySchemes:V("SecurityScheme"),NamedLinks:V("Link"),NamedCallbacks:V("Callback"),ImplicitFlow:EN,PasswordFlow:AN,ClientCredentials:ON,AuthorizationCode:TN,OAuth2Flows:RN,SecurityScheme:kN,XCodeSample:pN,XCodeSampleList:z("XCodeSample"),XUsePkce:IN,WebhooksMap:iN};var CN={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."},NN={...ir.License,properties:{...ir.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},qN={...ir.Info,properties:{...ir.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},DN={...ir.Components,properties:{...ir.Components.properties,pathItems:"NamedPathItems"}},jN={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."},MN={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:z("Schema",{name:"AllOf"}),anyOf:z("Schema",{name:"AnyOf"}),oneOf:z("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:V("Schema"),dependentRequired:"DependentRequired",prefixItems:z("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},C0={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},LN={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-"},FN={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},be={...ir,Info:qN,Root:CN,Schema:MN,SchemaProperties:C0,PatternProperties:C0,License:NN,Components:DN,NamedPathItems:V("PathItem"),SecurityScheme:LN,Operation:jN,DependentRequired:FN};var UN={...be.Root,properties:{...be.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."}}},zN={...be.Tag,properties:{...be.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."},VN={...be.Server,properties:{...be.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."},BN={...be.SecurityScheme,properties:{...be.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."},HN={...be.OAuth2Flows,properties:{...be.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},KN={properties:{deviceAuthorizationUrl:{type:"string",description:"REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},tokenUrl:{type:"string",description:"REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},refreshUrl:{type:"string",description:"The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},scopes:{type:"object",additionalProperties:{type:"string"},description:"REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."}},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Device Authorization flow."},GN={...ir.PathItem,properties:{...ir.PathItem.properties,query:"Operation",additionalOperations:V("Operation")}},WN={...be.Parameter,properties:{...be.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"]}}},YN={...be.Response,properties:{...be.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},QN={...be.MediaType,properties:{...be.MediaType.properties,itemSchema:"Schema",prefixEncoding:z("Encoding",{description:"A map between a property name and its encoding information, as defined under Encoding By Name. The encoding field SHALL only apply when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. This field MUST NOT be present if prefixEncoding or itemEncoding are present."}),itemEncoding:"Encoding"}},JN={...be.Discriminator,properties:{...be.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 Tr(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},XN={extensionsPrefix:"x-",properties:{...be.Components.properties,mediaTypes:"NamedMediaTypes"}},ZN={...be.Example,properties:{...be.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."}}},eq={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."},tq={...be.Schema,properties:{...be.Schema.properties,xml:"Xml"}},vt={...be,Root:UN,Tag:zN,Server:VN,SecurityScheme:BN,OAuth2Flows:HN,DeviceAuthorization:KN,PathItem:GN,Parameter:WN,Response:YN,MediaType:QN,Discriminator:JN,Example:ZN,Xml:eq,Schema:tq,Components:XN,NamedMediaTypes:V("MediaTypesMap")};var rq={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-"},nq={properties:{},additionalProperties:"Parameter"},oq={properties:{},additionalProperties:"SuccessActionObject"},iq={properties:{},additionalProperties:"FailureActionObject"},sq={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},aq=V("Schema"),cq={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."},pq={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},lq={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."},uq={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."},dq={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."},fq={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."},mq={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},hq={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."},yq=z("Workflow"),gq=z("Step"),vq={properties:{stepId:{type:"string",description:"REQUIRED. Unique string to represent the step. The stepId MUST be unique amongst all steps described in the workflow. The stepId value is case-sensitive. Tools and libraries MAY use the stepId to uniquely identify a workflow step, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},description:{type:"string",description:"A description of the step. CommonMark syntax MAY be used for rich text representation."},operationId:{type:"string",description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions. The referenced operation will be invoked by this workflow step. If multiple (non arazzo type) sourceDescriptions are defined, then the operationId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<operationId>) to avoid ambiguity or potential clashes. This field is mutually exclusive of the operationPath and workflowId fields respectively."},operationPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an operation. This field is mutually exclusive of the operationId and workflowId fields respectively. The operation being referenced MUST be described within one of the sourceDescriptions descriptions. A Runtime Expression syntax MUST be used to identify the source description document. If the referenced operation has an operationId defined then the operationId SHOULD be preferred over the operationPath."},workflowId:{type:"string",description:"The workflowId referencing an existing workflow within the Arazzo Description. If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. The field is mutually exclusive of the operationId and operationPath fields respectively."},parameters:"Parameters",successCriteria:z("CriterionObject",{description:"A list of assertions to determine the success of the step. Each assertion is described using a Criterion Object. All assertions MUST be satisfied for the step to be deemed successful."}),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-",description:"Describes a single workflow step which MAY be a call to an API operation (OpenAPI Operation Object) or another Workflow Object."},bq={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_.-]+$."},xq={properties:{contentType:{type:"string",description:"The Content-Type for the request content. If omitted then refer to Content-Type specified at the targeted operation to understand serialization requirements."},payload:{},replacements:z("Replacement",{description:"A list of locations and values to set within a payload."})},required:["payload"],extensionsPrefix:"x-",description:"A single request body describing the Content-Type and request body content to be passed by a step to an operation."},Sq={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."},wq={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."},_q={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."},Pq={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."},$q={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},Eq={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},Aq={properties:{name:{type:"string",description:"REQUIRED. The name of the success action. Names are case sensitive."},type:{type:"string",enum:["goto","end"],description:'REQUIRED. The type of action to take. Possible values are "end" or "goto".'},stepId:{type:"string",description:'The stepId to transfer to upon success of the step. This field is only relevant when the type field value is "goto". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId.'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon success of the step. This field is only relevant when the type field value is "goto". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId.'},criteria:z("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object. All criteria assertions MUST be satisfied for the action to be executed."})},required:["type","name"],description:"A single success action which describes an action to take upon success of a workflow step."},Oq={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},Tq={properties:{name:{type:"string",description:"REQUIRED. The name of the failure action. Names are case sensitive."},type:{type:"string",enum:["goto","retry","end"],description:'REQUIRED. The type of action to take. Possible values are "end", "retry", or "goto".'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId. When used with "retry", context transfers back upon completion of the specified workflow.'},stepId:{type:"string",description:'The stepId to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId. When used with "retry", context transfers back upon completion of the specified step.'},retryAfter:{type:"number",minimum:0,description:'A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. Note: if an HTTP Retry-After response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the type field value is "retry".'},retryLimit:{type:"number",minimum:0,description:'A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step. If not specified then a single retry SHALL be attempted. This field only applies when the type field value is "retry". The retryLimit MUST be exhausted prior to executing subsequent failure actions.'},criteria:z("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object."})},required:["type","name"],description:"A single failure action which describes an action to take upon failure of a workflow step."},Rq={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},st={Root:rq,Info:cq,SourceDescriptions:pq,OpenAPISourceDescription:lq,ArazzoSourceDescription:uq,Parameters:mq,Parameter:fq,ReusableObject:dq,Workflows:yq,Workflow:hq,Steps:gq,Step:vq,RequestBody:xq,Replacement:Sq,ExtendedOperation:_q,ExtendedSecurityList:z("ExtendedSecurity"),ExtendedSecurity:wq,Outputs:bq,CriterionObject:Pq,XPathCriterion:Eq,JSONPathCriterion:$q,SuccessActionObject:Aq,OnSuccessActionList:Oq,FailureActionObject:Tq,OnFailureActionList:Rq,Schema:vt.Schema,NamedSchemas:V("Schema"),ExternalDocs:vt.ExternalDocs,DiscriminatorMapping:vt.DiscriminatorMapping,Discriminator:vt.Discriminator,DependentRequired:vt.DependentRequired,SchemaProperties:vt.SchemaProperties,PatternProperties:vt.SchemaProperties,Components:sq,NamedInputs:aq,NamedParameters:nq,NamedSuccessActions:oq,NamedFailureActions:iq,Xml:vt.Xml,SecurityScheme:vt.SecurityScheme,OAuth2Flows:vt.OAuth2Flows,ImplicitFlow:vt.ImplicitFlow,PasswordFlow:vt.PasswordFlow,ClientCredentials:vt.ClientCredentials,AuthorizationCode:vt.AuthorizationCode,DeviceAuthorization:vt.DeviceAuthorization};var kq={...st.Root,properties:{...st.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."}}},Iq={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},Cq={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."},Nq={...st.Parameter,properties:{...st.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step, success action, or failure action in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},qq={...st.Parameter,properties:{name:st.Parameter.properties.name,value:st.Parameter.properties.value},description:"Describes a single parameter of a success or failure action. The parameter is passed to the workflow that the action references with workflowId as an input."},Dq={properties:{},items:e=>e?.reference?"ReusableObject":"ActionParameter"},jq={...st.Step,properties:{...st.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"]},Mq={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},Lq={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},Fq={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},Uq={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"]},zq=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Qd=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:zq(n)},Vq={...st.CriterionObject,properties:{...st.CriterionObject.properties,type:Qd(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},Bq={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:Qd(["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."},Hq={properties:{},additionalProperties:e=>T(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_.-]+$."},Kq={...st.Replacement,properties:{...st.Replacement.properties,value:e=>T(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Qd(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},N0=e=>e?.parameters===void 0?["type","name"]:["type","name","workflowId"],Gq={...st.SuccessActionObject,properties:{...st.SuccessActionObject.properties,parameters:"ActionParameters"},required:N0},Wq={...st.FailureActionObject,properties:{...st.FailureActionObject.properties,parameters:"ActionParameters"},required:N0},Jd={...st,Root:kq,SourceDescriptions:Iq,AsyncAPISourceDescription:Cq,Parameter:Nq,ActionParameter:qq,ActionParameters:Dq,Step:jq,CriterionObject:Vq,JSONPathExpression:Mq,XPathExpression:Lq,JSONPointerExpression:Fq,ExpressionType:Uq,SelectorObject:Bq,Outputs:Hq,Replacement:Kq,SuccessActionObject:Gq,FailureActionObject:Wq};var Yq={properties:{},description:"Protocol-specific information for an HTTP channel."},Qq={properties:{},description:"Protocol-specific information for an HTTP server."},Jq={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},Xq={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."},Zq={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},eD={properties:{},description:"Protocol-specific information for a WebSockets server."},tD={properties:{},description:"Protocol-specific information for a WebSockets message."},rD={properties:{},description:"Protocol-specific information for a WebSockets operation."},nD={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"}}},oD={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},iD={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},sD={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},aD={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},cD={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},pD={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},lD={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},uD={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},dD={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."},fD={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."},mD={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."},hD={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},yD={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},gD={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."},vD={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},bD={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},xD={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},SD={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},wD={properties:{},description:"Protocol-specific information for an MQTT channel."},_D={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},PD={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>T(e)?"Schema":{type:"integer"},maximumPacketSize:e=>T(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},$D={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>T(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},ED={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>T(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},AD={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},OD={properties:{sessionExpiryInterval:e=>T(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},TD={properties:{},description:"Protocol-specific information for an MQTT 5 message."},RD={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},kD={properties:{},description:"Protocol-specific information for a NATS channel."},ID={properties:{},description:"Protocol-specific information for a NATS server."},CD={properties:{},description:"Protocol-specific information for a NATS message."},ND={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},qD={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},DD={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},jD={properties:{jmsConnectionFactory:{type:"string"},properties:z("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},MD={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},LD={properties:{},description:"Protocol-specific information for a JMS operation."},FD={properties:{},description:"Protocol-specific information for a Solace channel."},UD={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},zD={properties:{},description:"Protocol-specific information for a Solace message."},VD={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"}}}},BD={properties:{bindingVersion:{type:"string"},destinations:z("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},HD={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."},KD={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},GD={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},WD={properties:{statements:z("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},YD={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},QD={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},JD={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."},XD={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."},ZD={properties:{topic:"SnsIdentifier",consumers:z("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},ej={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},tj={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},rj={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},nj={properties:{statements:z("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},q0={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)."},oj={...q0,required:["name"],description:"Describes an SQS queue (operation-level definition)."},ij={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},sj={properties:{queues:z("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},aj={properties:{},description:"Protocol-specific information for a STOMP channel."},cj={properties:{},description:"Protocol-specific information for a STOMP server."},pj={properties:{},description:"Protocol-specific information for a STOMP message."},lj={properties:{},description:"Protocol-specific information for a STOMP operation."},uj={properties:{},description:"Protocol-specific information for a Redis channel."},dj={properties:{},description:"Protocol-specific information for a Redis server."},fj={properties:{},description:"Protocol-specific information for a Redis message."},mj={properties:{},description:"Protocol-specific information for a Redis operation."},hj={properties:{},description:"Protocol-specific information for a Mercure channel."},yj={properties:{},description:"Protocol-specific information for a Mercure server."},gj={properties:{},description:"Protocol-specific information for a Mercure message."},vj={properties:{},description:"Protocol-specific information for a Mercure operation."},bj={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."},xj={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},Sj={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},wj={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."},_j={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."},Pj={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},$j={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."},Ej={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."},Aj={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},Oj={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},Tj={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},Rj={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},kj={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."},Ij={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},Cj={properties:{},description:"Protocol-specific information for a ROS 2 channel."},Nj={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."},qj={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."},Dj={properties:{},description:"Protocol-specific information for a ROS 2 message."},jj={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."},Mj={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."},Lj={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."},Fj={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."},Rr={HttpServerBinding:Qq,HttpChannelBinding:Yq,HttpMessageBinding:Jq,HttpOperationBinding:Xq,WsServerBinding:eD,WsChannelBinding:Zq,WsMessageBinding:tD,WsOperationBinding:rD,KafkaServerBinding:iD,KafkaTopicConfiguration:nD,KafkaChannelBinding:oD,KafkaMessageBinding:sD,KafkaOperationBinding:aD,AnypointmqServerBinding:pD,AnypointmqChannelBinding:cD,AnypointmqMessageBinding:lD,AnypointmqOperationBinding:uD,AmqpServerBinding:hD,AmqpChannelExchange:dD,AmqpChannelQueue:fD,AmqpChannelBinding:mD,AmqpMessageBinding:yD,AmqpOperationBinding:gD,Amqp1ServerBinding:bD,Amqp1ChannelBinding:vD,Amqp1MessageBinding:xD,Amqp1OperationBinding:SD,MqttServerBindingLastWill:_D,MqttServerBinding:PD,MqttChannelBinding:wD,MqttMessageBinding:$D,MqttOperationBinding:ED,Mqtt5ServerBinding:OD,Mqtt5ChannelBinding:AD,Mqtt5MessageBinding:TD,Mqtt5OperationBinding:RD,NatsServerBinding:ID,NatsChannelBinding:kD,NatsMessageBinding:CD,NatsOperationBinding:ND,JmsServerBindingProperty:DD,JmsServerBinding:jD,JmsChannelBinding:qD,JmsMessageBinding:MD,JmsOperationBinding:LD,SolaceServerBinding:UD,SolaceChannelBinding:FD,SolaceMessageBinding:zD,SolaceDestination:VD,SolaceOperationBinding:BD,StompServerBinding:cj,StompChannelBinding:aj,StompMessageBinding:pj,StompOperationBinding:lj,RedisServerBinding:dj,RedisChannelBinding:uj,RedisMessageBinding:fj,RedisOperationBinding:mj,MercureServerBinding:yj,MercureChannelBinding:hj,MercureMessageBinding:gj,MercureOperationBinding:vj,SnsIdentifier:HD,SnsOrdering:KD,SnsStatement:GD,SnsPolicy:WD,SnsChannelBinding:YD,SnsRedrivePolicy:QD,SnsDeliveryPolicy:JD,SnsConsumer:XD,SnsOperationBinding:ZD,SqsIdentifier:ej,SqsRedrivePolicy:tj,SqsStatement:rj,SqsPolicy:nj,SqsQueue:q0,SqsOperationQueue:oj,SqsChannelBinding:ij,SqsOperationBinding:sj,IbmmqServerBinding:bj,IbmmqChannelQueue:xj,IbmmqChannelTopic:Sj,IbmmqChannelBinding:wj,IbmmqMessageBinding:_j,GooglepubsubMessageStoragePolicy:Pj,GooglepubsubSchemaSettings:$j,GooglepubsubChannelBinding:Ej,GooglepubsubSchema:Aj,GooglepubsubMessageBinding:Oj,PulsarServerBinding:Tj,PulsarRetention:Rj,PulsarChannelBinding:kj,ServerBindings:jj,ChannelBindings:Mj,MessageBindings:Fj,OperationBindings:Lj},D0={Ros2ServerBinding:Ij,Ros2ChannelBinding:Cj,Ros2OperationBinding:qj,Ros2QosPolicies:Nj,Ros2MessageBinding:Dj};var Mi={extensionsPrefix:"x-",properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:z("Schema"),anyOf:z("Schema"),oneOf:z("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?z("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},Li={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Fi={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Ui={properties:{},additionalProperties:e=>typeof e=="string"&&Tr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},zi={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};var Uj={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"]},zj={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."},Vj={properties:{},additionalProperties:"Channel"},Xd={extensionsPrefix:"x-",properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A short description for the tag. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],description:"Allows adding meta data to a single tag."},Zd={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."},Bj={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."},Hj={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."},ef={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},tf={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."},Kj={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."},rf={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."},nf={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."},Gj={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."},of={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."},Wj={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."},Yj={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."},Qj={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."},Jj={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."},sf={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."},Xj={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"}},Zj={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."},eM={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."},tM={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."},rM={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."},af={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},nM={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."},cf={...Rr,Root:Uj,Tag:Xd,TagList:z("Tag"),ServerMap:ef,ExternalDocs:Zd,Server:Hj,ServerVariable:tf,ServerVariablesMap:V("ServerVariable"),SecurityRequirement:Bj,SecurityRequirementList:z("SecurityRequirement"),Info:Kj,Contact:rf,License:nf,ChannelMap:Vj,Channel:zj,Parameter:Gj,ParametersMap:V("Parameter"),Operation:Jj,Schema:Mi,MessageExample:sf,SchemaProperties:Li,DiscriminatorMapping:Ui,Discriminator:zi,Components:Xj,NamedSchemas:V("Schema"),NamedMessages:V("Message"),NamedMessageTraits:V("MessageTrait"),NamedOperationTraits:V("OperationTrait"),NamedParameters:V("Parameter"),NamedSecuritySchemes:V("SecurityScheme"),NamedCorrelationIds:V("CorrelationId"),ImplicitFlow:Zj,PasswordFlow:eM,ClientCredentials:tM,AuthorizationCode:rM,SecuritySchemeFlows:af,SecurityScheme:nM,Message:Wj,OperationTrait:Yj,OperationTraitList:z("OperationTrait"),MessageTrait:Qj,MessageTraitList:z("MessageTrait"),MessageExampleList:z("MessageExample"),CorrelationId:of,Dependencies:Fi};var oM={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."},iM={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."},sM={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."},aM={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."},cM={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."},pM={extensionsPrefix:"x-",properties:{headers:e=>T(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>T(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."},lM={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."},uM={extensionsPrefix:"x-",properties:{headers:e=>T(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."},dM={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"]},fM={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."},mM={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."},hM={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."},yM={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."},gM={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."},vM={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."},bM={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."},xM={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."},SM={...Rr.ServerBindings,properties:{...Rr.ServerBindings.properties,ros2:"Ros2ServerBinding"}},wM={...Rr.ChannelBindings,properties:{...Rr.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},_M={...Rr.OperationBindings,properties:{...Rr.OperationBindings.properties,ros2:"Ros2OperationBinding"}},PM={...Rr.MessageBindings,properties:{...Rr.MessageBindings.properties,ros2:"Ros2MessageBinding"}},$M={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},EM={properties:{},additionalProperties:e=>T(e)&&"schema"in e?"MultiFormatSchema":"Schema"},pf={...Rr,...D0,ServerBindings:SM,ChannelBindings:wM,OperationBindings:_M,MessageBindings:PM,CorrelationId:of,SecuritySchemeFlows:af,ServerVariable:tf,Contact:rf,License:nf,MessageExample:sf,Tag:Xd,Dependencies:Fi,Schema:Mi,MultiFormatSchema:$M,Discriminator:zi,DiscriminatorMapping:Ui,SchemaProperties:Li,ServerMap:ef,ExternalDocs:Zd,Root:oM,Channel:iM,Parameter:cM,Info:aM,Server:sM,MessageTrait:uM,Operation:dM,OperationReply:fM,OperationReplyAddress:mM,Components:hM,ImplicitFlow:yM,PasswordFlow:gM,ClientCredentials:vM,AuthorizationCode:bM,SecurityScheme:xM,Message:pM,OperationTrait:lM,ServerVariablesMap:V("ServerVariable"),NamedTags:V("Tag"),NamedExternalDocs:V("ExternalDocs"),NamedChannels:V("Channel"),ParametersMap:V("Parameter"),NamedOperations:V("Operation"),NamedOperationReplies:V("OperationReply"),NamedOperationRelyAddresses:V("OperationReplyAddress"),NamedSchemas:EM,NamedMessages:V("Message"),NamedMessageTraits:V("MessageTrait"),NamedOperationTraits:V("OperationTrait"),NamedParameters:V("Parameter"),NamedSecuritySchemes:V("SecurityScheme"),NamedCorrelationIds:V("CorrelationId"),ServerList:z("Server"),SecuritySchemeList:z("SecurityScheme"),MessageList:z("Message"),OperationTraitList:z("OperationTrait"),MessageTraitList:z("MessageTrait"),MessageExampleList:z("MessageExample"),TagList:z("Tag")};var AM=/^[0-9][0-9Xx]{2}$/,OM={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-"},TM={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-"},RM={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},kM={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},IM={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},CM={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},NM={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},qM={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-"},DM={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},jM={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},MM={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},LM={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-"},FM={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-"},UM={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>AM.test(t)?"Response":void 0},zM={properties:{description:{type:"string"},schema:"Schema",headers:V("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},VM={properties:{},additionalProperties:{isExample:!0}},BM={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 T(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},HM={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},KM={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},GM={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null","file"]},items:e=>Array.isArray(e)?z("Schema"):"Schema",allOf:z("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},WM={properties:{},additionalProperties:{type:"string"}},YM={properties:{},additionalProperties:"Schema"},QM={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},JM={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},XM={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-"},ZM={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},eL={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},lf={Root:OM,Tag:HM,TagList:z("Tag"),TagGroups:z("TagGroup"),TagGroup:KM,ExternalDocs:MM,Example:eL,ExamplesMap:V("Example"),EnumDescriptions:WM,SecurityRequirement:ZM,SecurityRequirementList:z("SecurityRequirement"),Info:TM,Contact:kM,License:IM,Logo:RM,Paths:CM,PathItem:NM,Parameter:LM,ParameterItems:FM,ParameterList:z("Parameter"),Operation:qM,Examples:VM,Header:BM,Responses:UM,Response:zM,Schema:GM,Xml:QM,SchemaProperties:YM,NamedSchemas:V("Schema"),NamedResponses:V("Response"),NamedParameters:V("Parameter"),NamedSecuritySchemes:V("SecurityScheme"),SecurityScheme:XM,Scopes:JM,XCodeSample:DM,XCodeSampleList:z("XCodeSample"),XServerList:z("XServer"),XServer:jM};var tL={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."},rL={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."},nL={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."},oL={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."},iL={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."},sL={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."},aL={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."},cL={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."},pL={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."},lL={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."},uL={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."},dL={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."},fL={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."},mL={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."},hL={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."},uf={Root:tL,Info:rL,Contact:nL,License:oL,Server:iL,ServerList:z("Server"),ServerVariable:sL,ServerVariablesMap:V("ServerVariable"),Method:aL,MethodList:z("Method"),ContentDescriptor:cL,ContentDescriptorList:z("ContentDescriptor"),ExamplePairing:pL,ExamplePairingList:z("ExamplePairing"),Example:lL,ExampleList:z("Example"),Link:uL,LinkList:z("Link"),ErrorObject:dL,ErrorList:z("ErrorObject"),Components:fL,Tag:mL,TagList:z("Tag"),ExternalDocs:hL,Schema:Mi,SchemaProperties:Li,Dependencies:Fi,DiscriminatorMapping:Ui,Discriminator:zi,NamedContentDescriptors:V("ContentDescriptor"),NamedSchemas:V("Schema"),NamedExamples:V("Example"),NamedLinks:V("Link"),NamedErrors:V("ErrorObject"),NamedExamplePairingObjects:V("ExamplePairing"),NamedTags:V("Tag")};function Vi(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var yL={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."},gL={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."},vL={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"},bL={properties:{actions:"ReusableActions"},extensionsPrefix:"x-",description:"A set of components to reuse across the Overlay document."},xL=V("ReusableAction"),SL={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`."},wL={properties:Vi(j0.properties,["target"]),extensionsPrefix:"x-",description:"The fields of a reusable action: an action without a `target`."},fa={Root:yL,Info:gL,Actions:vL,Action:j0,Components:bL,ReusableActions:xL,ReusableAction:SL,ReusableActionFields:wL};var Bi=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],fp="a-zA-Z0-9\\.\\-_",_L={oas2:lf,oas3_0:ir,oas3_1:be,oas3_2:vt,async2:cf,async3:pf,arazzo1:st,arazzo1_1:Jd,overlay1:fa,openrpc1:uf};function Vo(e){return e==="graphql"?{}:_L[e]}var qe=Symbol("NOT_RESOLVED");function Mt(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(r=>String(r)),representTagName:t.representTagName??(()=>e)}}function Of(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify,represent:t.represent??(n=>n),representTagName:t.representTagName??(()=>e)}}function bp(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify,represent:t.represent??(n=>n),representTagName:t.representTagName??(()=>e)}}var PL=Mt("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),$L=["","~","null","Null","NULL"],EL=Mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>$L.indexOf(e)!==-1?null:qe,identify:e=>e===null,represent:()=>"null"}),AL=Mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:qe,identify:e=>e===null,represent:()=>"null"}),OL=["","~","null","Null","NULL"],TL=Mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>OL.indexOf(e)!==-1?null:qe,identify:e=>e===null,represent:()=>"null"}),RL=["true","True","TRUE"],kL=["false","False","FALSE"],IL=Mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>RL.indexOf(e)!==-1?!0:kL.indexOf(e)!==-1?!1:qe,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),CL=["true"],NL=["false"],qL=Mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>CL.indexOf(e)!==-1?!0:NL.indexOf(e)!==-1?!1:qe,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),DL=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],jL=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],ML=Mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>DL.indexOf(e)!==-1?!0:jL.indexOf(e)!==-1?!1:qe,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),LL=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),FL=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function UL(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 zL(e,t){if(t){if(!FL.test(e))return qe}else if(!LL.test(e))return qe;let r=UL(e);return Number.isFinite(r)?r:qe}var ex=Mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:zL,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),VL=new RegExp("^-?(?:0|[1-9][0-9]*)$"),BL=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function HL(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 KL(e,t){if(t){if(!BL.test(e))return qe}else if(!VL.test(e))return qe;let r=HL(e);return Number.isFinite(r)?r:qe}var GL=Mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:KL,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),WL=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 YL(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 QL(e){if(!WL.test(e))return qe;let t=YL(e);return Number.isFinite(t)?t:qe}var vf=Mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:QL,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),JL=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),XL=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function ZL(e){if(!JL.test(e))return qe;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)||XL.test(e)?n:qe}function e2(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 tx=Mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:ZL,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:e2}),t2=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),r2=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function n2(e,t){if(t){if(!r2.test(e))return qe;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:qe}if(!t2.test(e))return qe;let r=Number(e);return Number.isFinite(r)?r:qe}function o2(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 i2=Mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:n2,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:o2}),s2=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))$"),a2=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function c2(e){if(!s2.test(e))return qe;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)||a2.test(e)?n:qe}function p2(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 bf=Mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:c2,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:p2}),Tf=Mt("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?"<<":qe,identify:()=>!1}),l2=/^[A-Za-z0-9+/]*={0,2}$/;function u2(e){let t=e.replace(/\s/g,"");if(t.length%4!==0||!l2.test(t))return qe;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 d2(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var Rf=Mt("tag:yaml.org,2002:binary",{resolve:u2,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:d2}),f2=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),m2=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 M0(e,t,r,n=0,o=0,i=0,s=0){let a=new Date(Date.UTC(e,t,r,n,o,i,s));return a.setUTCFullYear(e,t,r),a}function h2(e){let t=f2.exec(e);if(t===null&&(t=m2.exec(e)),t===null)return qe;let r=+t[1],n=+t[2]-1,o=+t[3];if(!t[4]){let p=M0(r,n,o);return p.getUTCFullYear()!==r||p.getUTCMonth()!==n||p.getUTCDate()!==o?qe:p}let i=+t[4],s=+t[5],a=+t[6],c=0;if(i>23||s>59||a>59)return qe;if(t[7]){let p=t[7].slice(0,3);for(;p.length<3;)p+="0";c=+p}let l=M0(r,n,o,i,s,a,c);if(l.getUTCFullYear()!==r||l.getUTCMonth()!==n||l.getUTCDate()!==o)return qe;if(t[9]){let p=+t[10],u=+(t[11]||0);if(p>23||u>59)return qe;let f=(p*60+u)*6e4;l.setTime(l.getTime()-(t[9]==="-"?-f:f))}return l}var y2=Mt("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:h2,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),g2=Of("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function xp(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function xf(e,t){let r={};for(let n of t)e[n]!==void 0&&(r[n]=e[n]);return r}var kf=Of("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(xp(t)){let n=Object.keys(t);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return e.seen.has(r)?"duplicate key in ordered map":(e.seen.add(r),e.list.push(t),"")},finalize:e=>e.list,identify:()=>!1}),If=Of("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size!==1?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if(Object.prototype.toString.call(t)!=="[object Object]")return"cannot resolve a pairs item";let r=t,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(e.push([n[0],r[n[0]]]),"")},identify:()=>!1}),v2=bp("tag:yaml.org,2002:map",{create:()=>({}),identify:xp,represent:e=>{let t=new Map;for(let r of Object.keys(e))t.set(r,e[r]);return t},addPair:(e,t,r)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";let n=String(t);return n==="__proto__"?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let r=String(t);return Object.prototype.hasOwnProperty.call(e,r)?e[r]:null}}),Cf=bp("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 b2(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function x2(){return{scalar:[],sequence:[],mapping:[]}}function S2(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 Sp=class rx{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){let r=S2(t),n=[],o=b2(),i=x2();for(let p of r){if(p.nodeKind==="scalar"&&p.implicit){if(p.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");n.push(p)}switch(p.nodeKind){case"scalar":p.matchByTagPrefix?i.scalar.push(p):o.scalar[p.tagName]=p;break;case"sequence":p.matchByTagPrefix?i.sequence.push(p):o.sequence[p.tagName]=p;break;case"mapping":p.matchByTagPrefix?i.mapping.push(p):o.mapping[p.tagName]=p;break}}let s=n.filter(p=>p.implicitFirstChars===null),a=new Set;for(let p of n)if(p.implicitFirstChars!==null)for(let u of p.implicitFirstChars)a.add(u);let c=new Map;for(let p of a)c.set(p,n.filter(u=>u.implicitFirstChars===null||u.implicitFirstChars.indexOf(p)!==-1));let l=o.scalar["tag:yaml.org,2002:str"];if(!l)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=c,this.implicitScalarAnyFirstChar=s,this.defaultScalarTag=l,this.defaultSequenceTag=o.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=o.mapping["tag:yaml.org,2002:map"],this.exact=o,this.prefix=i}lookupScalarTag(t){let r=this.exact.scalar[t];if(r)return r;for(let n of this.prefix.scalar)if(t.startsWith(n.tagName))return n}lookupSequenceTag(t){let r=this.exact.sequence[t];if(r)return r;for(let n of this.prefix.sequence)if(t.startsWith(n.tagName))return n}lookupMappingTag(t){let r=this.exact.mapping[t];if(r)return r;for(let n of this.prefix.mapping)if(t.startsWith(n.tagName))return n}resolveImplicitScalarTag(t){let r=this.implicitScalarByFirstChar.get(t.charAt(0))??this.implicitScalarAnyFirstChar;for(let o of r){let i=o.resolve(t,!1,o.tagName);if(i!==qe)return{value:i,tag:o}}let n=this.defaultScalarTag;return{value:n.resolve(t,!1,n.tagName),tag:n}}withTags(...t){let r=[];for(let n of t)r=r.concat(n);return new rx([...this.tags,...r])}},Nf=new Sp([PL,g2,v2]),Moe=new Sp([...Nf.tags,AL,qL,GL,i2]),qf=new Sp([...Nf.tags,EL,IL,ex,tx]),w2=new Sp([...Nf.tags,TL,ML,vf,bf,y2,Tf,Rf,kf,If,Cf]),_2=w2.withTags({...vf,resolve:(e,t,r)=>{let n=vf.resolve(e,t,r);return n===qe?ex.resolve(e,t,r):n}},{...bf,resolve:(e,t,r)=>{let n=bf.resolve(e,t,r);return n===qe?tx.resolve(e,t,r):n}}),Loe=bp("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||xp(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 L0(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 Foe=bp("tag:yaml.org,2002:map",{create:()=>({}),identify:xp,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=L0(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=L0(t);return r!==null&&Object.prototype.hasOwnProperty.call(e,r)},keys:e=>Object.keys(e),get:(e,t)=>{let r=String(t);return Object.prototype.hasOwnProperty.call(e,r)?e[r]:null}}),P2={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function df(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 ff(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function $2(e,t){if(!e.buffer)return null;let r={...P2,...t},n=/\r?\n|\r|\0/g,o=[0],i=[],s,a=-1;for(;s=n.exec(e.buffer);)i.push(s.index),o.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);let c="",l=Math.min(e.line+r.linesAfter,i.length).toString().length,p=r.maxLength-(r.indent+l+3);for(let f=1;f<=r.linesBefore&&!(a-f<0);f++){let m=df(e.buffer,o[a-f],i[a-f],e.position-(o[a]-o[a-f]),p);c=`${" ".repeat(r.indent)}${ff((e.line-f+1).toString(),l)} | ${m.str}
|
|
56
|
-
${c}`}let u=df(e.buffer,o[a],i[a],e.position,p);c+=`${" ".repeat(r.indent)}${ff((e.line+1).toString(),l)} | ${u.str}
|
|
57
|
-
`,c+=`${"-".repeat(r.indent+l+3+u.pos)}^
|
|
58
|
-
`;for(let f=1;f<=r.linesAfter&&!(a+f>=i.length);f++){let m=df(e.buffer,o[a+f],i[a+f],e.position-(o[a]-o[a+f]),p);c+=`${" ".repeat(r.indent)}${ff((e.line+f+1).toString(),l)} | ${m.str}
|
|
59
|
-
`}return c.replace(/\n$/,"")}function F0(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 po=class nx extends Error{reason;mark;constructor(t,r){super(),this.name="YAMLException",this.reason=t,this.mark=r,this.message=F0(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(t){return`${this.name}: ${F0(this,t)}`}static throwAt(t,r,n,o=""){let i=0,s=0;for(let c=0;c<r;c++){let l=t.charCodeAt(c);l===10?(i++,s=c+1):l===13&&(i++,t.charCodeAt(c+1)===10&&c++,s=c+1)}let a={name:o,buffer:t,position:r,line:i,column:r-s};throw a.snippet=$2(a),new nx(n,a)}},nt={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},Z={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},sr={BLOCK:1,FLOW:2},xr={CLIP:1,STRIP:2,KEEP:3},E2=-1;function U0(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 ox=new Array(256),ix=new Array(256);for(let e=0;e<256;e++)ox[e]=U0(e)?1:0,ix[e]=U0(e);function A2(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function O2(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function T2(e){return e===120?2:e===117?4:8}function hp(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 Df(e){return e===1?" ":`
|
|
63
|
-
`.repeat(e-1)}function R2(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=hp(e,o,r);n+=Df(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,s)}function k2(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=hp(e,o,r);n+=Df(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function I2(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=hp(e,o,r).position;else if(c<256&&ox[c])n+=ix[c],o++;else{let l=T2(c),p=0;for(;l>0;l--){o++;let u=O2(e.charCodeAt(o));p=(p<<4)+u}n+=A2(p),o++}i=s=o}else if(a===10||a===13){n+=e.slice(i,s);let c=hp(e,o,r);n+=Df(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function z0(e,t,r,n,o,i){let s=n<0?0:n,a=e.slice(t,r).replace(/\r\n?/g,`
|
|
64
|
-
`),c=a===""?[]:(a.endsWith(`
|
|
65
|
-
`)?a.slice(0,-1):a).split(`
|
|
66
|
-
`),l="",p=!1,u=0,f=!1;for(let 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,l+=`
|
|
67
|
-
`.repeat(p?1+u:u)):f?(f=!1,l+=`
|
|
68
|
-
`.repeat(u+1)):u===0?p&&(l+=" "):l+=`
|
|
69
|
-
`.repeat(u):l+=`
|
|
70
|
-
`.repeat(p?1+u:u),l+=y,p=!0,u=0}return o===xr.KEEP?l+=`
|
|
71
|
-
`.repeat(p?1+u:u):o!==xr.STRIP&&p&&(l+=`
|
|
72
|
-
`),l}function C2(e,t){if(t.valueStart===E2)return"";let{valueStart:r,valueEnd:n}=t;if(t.fast)return e.slice(r,n);switch(t.style){case Z.SINGLE_QUOTED:return k2(e,r,n);case Z.DOUBLE_QUOTED:return I2(e,r,n);case Z.LITERAL_BLOCK:return z0(e,r,n,t.indent,t.chomping,!1);case Z.FOLDED_BLOCK:return z0(e,r,n,t.indent,t.chomping,!0);default:return R2(e,r,n)}}var N2=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function mf(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]??N2[n]??n;return decodeURIComponent(o)+decodeURIComponent(e.slice(n.length))}function ax(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${mf(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${mf(t.slice(18))}`:`!<${mf(t)}>`}var Hi=-1,q2="tag:yaml.org,2002:merge",jf={filename:"",schema:qf,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function D2(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 $t(e,t){po.throwAt(e.source,e.position,t,e.filename)}function cx(e,t,r,n){try{return r.finalize(n)}catch(o){if(o instanceof po)throw o;po.throwAt(e.source,t,o instanceof Error?o.message:String(o),e.filename)}}function j2(e,t){let r=C2(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=e.schema.lookupScalarTag(i);if(s){let c=s.resolve(r,!0,i);return c===qe&&$t(e,`cannot resolve a node with !<${i}> explicit tag`),{value:c,tag:s}}let a=e.schema.lookupMappingTag(i)??e.schema.lookupSequenceTag(i);if(a){r!==""&&$t(e,`cannot resolve a node with !<${i}> explicit tag`);let c=a.create(i);return{value:a.carrierIsResult?c:cx(e,e.position,a,c),tag:a}}$t(e,`unknown scalar tag !<${i}>`)}return t.style===Z.PLAIN?e.schema.resolveImplicitScalarTag(r):{value:o.resolve(r,!1,o.tagName),tag:o}}function V0(e,t,r){let n=t.tagStart===Hi?"":e.source.slice(t.tagStart,t.tagEnd);return n===""||n==="!"?r:sx(n,e.tagHandlers)}function px(e){return e.nodeKind==="mapping"}function B0(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&$t(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`)}function H0(e,t,r,n){B0(e);for(let o of n.keys(r)){if(B0(e),t.tag.has(t.value,o))continue;let i=t.tag.addPair(t.value,o,n.get(r,o));i&&$t(e,i),t.overridable??=new Set,t.overridable.add(o)}}function M2(e,t,r,n){if(e.position=t.keyPosition,px(n))H0(e,t,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r)){r.length>100&&$t(e,"abnormal merge sequence size");for(let o of r){let i=e.nodeTags.get(o);i||$t(e,"cannot merge mappings; the provided source object is unacceptable"),H0(e,t,o,i)}}else $t(e,"cannot merge mappings; the provided source object is unacceptable")}function L2(e,t,r,n,o){if(e.position=t.keyPosition,t.keyIsMerge){M2(e,t,n,o);return}!e.json&&t.tag.has(t.value,r)&&!t.overridable?.has(r)&&$t(e,"duplicated mapping key");let i=t.tag.addPair(t.value,r,n);i&&$t(e,i),t.overridable?.delete(r)}function hf(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"){px(r)&&e.nodeTags.set(t,r);let o=n.tag.addItem(n.value,t,n.index++);o&&$t(e,o)}else if(n.hasKey){let o=n.key;n.key=void 0,n.hasKey=!1,L2(e,n,o,t,r)}else n.key=t,n.keyPosition=e.position,n.hasKey=!0,n.keyIsMerge=r.tagName===q2}function yf(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 F2(e,t){let r={...jf,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,nodeTags:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=D2(n),n.type){case nt.DOCUMENT:r.anchors=new Map,r.nodeTags=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let o of n.directives)o.kind==="tag"&&(r.tagHandlers[o.handle]=o.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case nt.SCALAR:{let{value:o,tag:i}=j2(r,n);yf(r,n,o,i,!0),hf(r,o,i);break}case nt.SEQUENCE:{let o=V0(r,n,"tag:yaml.org,2002:seq"),i=r.schema.lookupSequenceTag(o);i||$t(r,`unknown sequence tag !<${o}>`);let s=i.create(o),a=yf(r,n,s,i,i.carrierIsResult);r.frames.push({kind:"sequence",position:r.position,value:s,tag:i,anchor:a,index:0});break}case nt.MAPPING:{let o=V0(r,n,"tag:yaml.org,2002:map"),i=r.schema.lookupMappingTag(o);i||$t(r,`unknown mapping tag !<${o}>`);let s=i.create(o),a=yf(r,n,s,i,i.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:s,tag:i,anchor:a,key:void 0,keyPosition:r.position,hasKey:!1,keyIsMerge:!1,overridable:null});break}case nt.ALIAS:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&$t(r,`aliases exceeded maxAliases (${r.maxAliases})`);let o=r.source.slice(n.anchorStart,n.anchorEnd),i=r.anchors.get(o);i||$t(r,`unidentified alias "${o}"`),i.isValueFinal||$t(r,`recursive alias "${o}" is not supported for tag ${i.tag.tagName} because it uses finalize()`),hf(r,i.value,i.tag);break}case nt.POP:{let o=r.frames.pop();if(o.kind==="mapping"&&o.hasKey&&(r.position=o.keyPosition,$t(r,"incomplete mapping pair in event stream")),o.kind==="document")r.documents.push(o.value);else{let i=o.tag.carrierIsResult?o.value:cx(r,o.position,o.tag,o.value);o.anchor&&(o.anchor.value=i,o.anchor.isValueFinal=!0),hf(r,i,o.tag)}break}}}return r.documents}var Me=-1,lx=Object.prototype.hasOwnProperty,Yi=1,ux=2,dx=3,yp=4,U2=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,z2=/[,\[\]{}]/,fx=/^(?:!|!!|![0-9A-Za-z-]+!)$/,Sf=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,mx=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,V2=new RegExp(`^(?:${Sf})*$`),B2=new RegExp(`^(?:${mx})+$`),H2=new RegExp(`^(?:!(?:${Sf})*|${mx}(?:${Sf})*)$`),Mf={filename:"",maxDepth:100};function K2(e,t,r){e.events.push({type:nt.DOCUMENT,explicitStart:t,explicitEnd:r,directives:e.directives})}function hx(e,t,r,n,o,i,s){e.events.push({type:nt.SEQUENCE,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function yx(e,t,r,n,o,i,s){e.events.push({type:nt.MAPPING,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function K0(e,t){e.events.splice(t.eventsLength,0,{type:nt.MAPPING,start:t.position,anchorStart:Me,anchorEnd:Me,tagStart:Me,tagEnd:Me,style:sr.FLOW})}function Xi(e,t,r,n,o,i,s,a,c=xr.CLIP,l=-1,p=!1){e.events.push({type:nt.SCALAR,valueStart:t,valueEnd:r,anchorStart:n,anchorEnd:o,tagStart:i,tagEnd:s,style:a,chomping:c,indent:l,fast:p})}function G2(e,t,r){e.events.push({type:nt.ALIAS,anchorStart:t,anchorEnd:r})}function Ki(e){e.events.push({type:nt.POP})}function Wt(e){Xi(e,Me,Me,Me,Me,Me,Me,Z.PLAIN)}function G0(){return{anchorStart:Me,anchorEnd:Me,tagStart:Me,tagEnd:Me}}function Gi(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Wi(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){po.throwAt(e.input.slice(0,e.length),e.position,t,e.filename)}function bt(e){return e===10||e===13}function Zi(e){return e===9||e===32}function Qr(e){return Zi(e)||bt(e)}function Mn(e){return e===0||Qr(e)}function Ho(e){return e===44||e===91||e===93||e===123||e===125}function W2(e){return e>=48&&e<=57?e-48:-1}function Y2(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function Q2(e){return e===120?2:e===117?4:e===85?8:0}function J2(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 gp(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 jt(e,t){let r=0,n=e.input.charCodeAt(e.position),o=e.position===e.lineStart||Qr(e.input.charCodeAt(e.position-1));for(;n!==0;){for(;Zi(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(!bt(n)&&n!==0);if(!bt(n))break;for(gp(e),r++,o=!0,n=e.input.charCodeAt(e.position);n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return r}function Qi(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||Qr(n)}return!1}function gx(e){e.position===e.lineStart&&e.input.charCodeAt(e.position)===65279&&(e.position++,e.lineStart=e.position)}function Lf(e){if(e.position!==e.lineStart)return!1;if(Qi(e))return!0;if(e.input.charCodeAt(e.position)!==65279)return!1;let t=Gi(e);gx(e),jt(e,!0);let r=e.input.charCodeAt(e.position),n=e.position===e.lineStart&&(r===37||r===45&&Qi(e));return Wi(e,t),n}function W0(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!bt(t);)t=e.input.charCodeAt(++e.position)}function vx(e,t,r){U2.test(e.input.slice(t,r))&&J(e,"the stream contains non-printable characters")}function X2(e,t,r){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==Me&&J(e,"duplication of a tag property");let n=e.position,o=!1,i=!1,s="!",a=e.input.charCodeAt(++e.position);a===60?(o=!0,a=e.input.charCodeAt(++e.position)):a===33&&(i=!0,s="!!",a=e.input.charCodeAt(++e.position));let c=e.position,l;if(o){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&J(e,"unexpected end of the stream within a verbatim tag"),l=e.input.slice(c,e.position),e.position++}else{for(;a!==0&&!Qr(a)&&!(r&&Ho(a));)a===33&&(i?J(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(c-1,e.position+1),fx.test(s)||J(e,"named tag handle cannot contain such characters"),i=!0,c=e.position+1)),a=e.input.charCodeAt(++e.position);l=e.input.slice(c,e.position),z2.test(l)&&J(e,"tag suffix cannot contain flow indicator characters")}return l&&!(o?V2.test(l):B2.test(l))&&J(e,`tag name cannot contain such characters: ${l}`),!o&&s!=="!"&&s!=="!!"&&!lx.call(e.tagHandlers,s)&&J(e,`undeclared tag handle "${s}"`),t.tagStart=n,t.tagEnd=e.position,!0}function Z2(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==Me&&J(e,"duplication of an anchor property"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Qr(e.input.charCodeAt(e.position))&&!Ho(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 eF(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==Me||t.tagStart!==Me)&&J(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Qr(e.input.charCodeAt(e.position))&&!Ho(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&J(e,"name of an alias node must contain at least one character"),G2(e,r,e.position),!0}function wf(e,t){jt(e,!1),e.lineIndent<t&&J(e,"deficient indentation")}function tF(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++,Xi(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Z.SINGLE_QUOTED,xr.CLIP,-1,o),!0}bt(i)?(o=!1,wf(e,t)):e.position===e.lineStart&&Qi(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 rF(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++,Xi(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,Z.DOUBLE_QUOTED,xr.CLIP,-1,o),!0}if(i===92){o=!1;let s=e.input.charCodeAt(++e.position);if(bt(s))wf(e,t);else if(J2(s))e.position++;else{let a=Q2(s);for(a===0&&J(e,"unknown escape sequence");a-- >0;)e.position++,Y2(e.input.charCodeAt(e.position))<0&&J(e,"expected hexadecimal character");e.position++}}else bt(i)?(o=!1,wf(e,t)):e.position===e.lineStart&&Qi(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 nF(e,t,r){let n=e.input.charCodeAt(e.position),o=xr.CLIP,i=-1,s=!1;if(n!==124&&n!==62)return!1;let a=n===124?Z.LITERAL_BLOCK:Z.FOLDED_BLOCK;for(e.position++;e.input.charCodeAt(e.position)!==0;){let m=e.input.charCodeAt(e.position),h=W2(m);if(m===43||m===45)o!==xr.CLIP&&J(e,"repeat of a chomping mode identifier"),o=m===43?xr.KEEP:xr.STRIP,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(;Zi(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&W0(e),bt(e.input.charCodeAt(e.position))?gp(e):e.input.charCodeAt(e.position)!==0&&J(e,"a line break is expected");let l=s?i:-1,p=0,u=e.position,f=e.position;for(;e.input.charCodeAt(e.position)!==0;){let m=e.position,h=0;for(;e.input.charCodeAt(m+h)===32;)h++;let y=e.input.charCodeAt(m+h);if(y===0){l>=0?h>l&&(f=m+h):h>0&&(f=m+h);break}if(Lf(e))break;if(!s&&l===-1&&bt(y)&&(p=Math.max(p,h)),!s&&l===-1&&!bt(y)&&(y===9&&h<t&&(e.position=m+h,J(e,"tab characters must not be used in indentation")),h>=t&&h<p&&(e.position=m+h,J(e,"bad indentation of a mapping entry"))),l===-1&&y!==0&&!bt(y)&&h<t){e.lineIndent=h,e.position=m+h;break}!s&&y!==0&&!bt(y)&&l===-1&&(l=h);let b=l===-1?t+1:l;if(y!==0&&!bt(y)&&h<b){e.lineIndent=h,e.position=m+h;break}W0(e),f=e.position,bt(e.input.charCodeAt(e.position))&&(gp(e),f=e.position)}return vx(e,u,f),Xi(e,u,f,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,a,o,l),!0}function oF(e,t){let r=e.input.charCodeAt(e.position),n=t===Yi;if(r===0||Qr(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||n&&Ho(r))return!1;if(r===63||r===45){let o=e.input.charCodeAt(e.position+1);if(Mn(o)||n&&Ho(o))return!1}return!0}function iF(e,t,r,n){if(!oF(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&&!Lf(e);){if(s===58){let l=e.input.charCodeAt(e.position+1);if(Mn(l)||a&&Ho(l))break}else if(s===35){if(Qr(e.input.charCodeAt(e.position-1)))break}else{if(a&&Ho(s))break;if(bt(s)){let l=e.position,p=e.line,u=e.lineStart,f=e.lineIndent;if(jt(e,!1),e.lineIndent>=t){c=!0,s=e.input.charCodeAt(e.position);continue}e.position=l,e.line=p,e.lineStart=u,e.lineIndent=f;break}}Zi(s)||(i=e.position+1),s=e.input.charCodeAt(++e.position)}return i===o?!1:(vx(e,o,i),Xi(e,o,i,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,Z.PLAIN,xr.CLIP,-1,!c),!0)}function ma(e,t){let r=e.line;jt(e,!0),(e.line>r&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&J(e,"deficient indentation")}function sF(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?yx(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,sr.FLOW):hx(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,sr.FLOW),e.position++;e.input.charCodeAt(e.position)!==0;){ma(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 l=!1,p=!1;c===63&&Qr(e.input.charCodeAt(e.position+1))&&(l=p=!0,e.position+=1,ma(e,t));let u=e.line,f=Gi(e),m=Ji(e,t,Yi,!1,!0);ma(e,t),c=e.input.charCodeAt(e.position),(o||p||e.line===u)&&c===58?(l=!0,e.position++,ma(e,t),o||K0(e,f),m||Wt(e),Ji(e,t,Yi,!1,!0)||Wt(e),ma(e,t),o||Ki(e)):o&&l?(m||Wt(e),Wt(e)):o?Wt(e):l&&(K0(e,f),m||Wt(e),Wt(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 Y0(e,t,r){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Mn(e.input.charCodeAt(e.position+1)))return!1;for(hx(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,sr.BLOCK);e.input.charCodeAt(e.position)===45&&Mn(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=jt(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Mn(e.input.charCodeAt(e.position+1))&&J(e,"bad indentation of a sequence entry"),o&&e.lineIndent<=t?Wt(e):Ji(e,t,dx,!1,!0),jt(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&&Mn(e.input.charCodeAt(e.position+1))&&J(e,"bad indentation of a sequence entry")}return Ki(e),!0}function gf(e,t,r,n){let o=!1,i=!1,s=!1,a=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!o&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,J(e,"tab characters must not be used in indentation"));let l=e.input.charCodeAt(e.position+1),p=e.line;if((c===63||c===58)&&Mn(l))s||(yx(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,sr.BLOCK),s=!0),c===63?(o&&Wt(e),i=!0,o=!0):(o||(Wt(e),i=!0),o=!1),e.position+=1,a=!0;else{o&&(Wt(e),o=!1);let u=Gi(e);if(!Ji(e,r,ux,!1,!0))break;if(e.line===p){for(c=e.input.charCodeAt(e.position);Zi(c);)c=e.input.charCodeAt(++e.position);if(c===58)c=e.input.charCodeAt(++e.position),Mn(c)||J(e,"a whitespace character is expected after the key-value separator within a block mapping"),s||(e.events.splice(u.eventsLength,0,{type:nt.MAPPING,start:u.position,anchorStart:n.anchorStart,anchorEnd:n.anchorEnd,tagStart:n.tagStart,tagEnd:n.tagEnd,style:sr.BLOCK}),s=!0),i=!0,o=!1,a=!1;else if(i)J(e,"expected ':' after a mapping key");else return n.anchorStart!==Me||n.tagStart!==Me?(Wi(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!==Me||n.tagStart!==Me?(Wi(e,u),!1):!0}if(Ji(e,t,yp,!0,a)&&(a=!1),o||a&&(Wt(e),a=!1),jt(e,!0),c=e.input.charCodeAt(e.position),(e.line===p||e.lineIndent>t)&&c!==0)J(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return i?(o&&Wt(e),s&&Ki(e),!0):!1}function Ji(e,t,r,n,o,i=!0){e.depth>=e.maxDepth&&J(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let s=1,a=!1,c=!1,l=null,p=G0(),u=r===yp||r===dx,f=u,m=u;if(n&&jt(e,!0)&&(a=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1),s===1)for(;;){let h=e.input.charCodeAt(e.position),y=Gi(e);if(a&&s!==1&&(h===33||h===38))break;if(a&&m&&(p.tagStart!==Me||p.anchorStart!==Me)&&(h===33||h===38)){let b=Gi(e),x=t+1;if(gf(e,e.position-e.lineStart,x,p)&&e.events[b.eventsLength]?.type===nt.MAPPING)return e.depth--,!0;Wi(e,b)}if(a&&(h===33&&p.tagStart!==Me||h===38&&p.anchorStart!==Me)||!X2(e,p,r===Yi)&&!Z2(e,p))break;l===null&&(l=y),jt(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===yp){let h=r===Yi||r===ux?t:t+1,y=e.position-e.lineStart;if(s===1)if(f&&(Y0(e,y,p)||gf(e,y,h,p))||sF(e,h,p))c=!0;else{let b=e.input.charCodeAt(e.position);if(l!==null&&i&&m&&!f&&b!==124&&b!==62){let x=Gi(e),w=l.position-l.lineStart;Wi(e,l),gf(e,w,h,G0())&&e.events[x.eventsLength]?.type===nt.MAPPING?c=!0:Wi(e,x)}!c&&(u&&nF(e,h,p)||tF(e,h,p)||rF(e,h,p)||eF(e,p)||iF(e,h,r,p))&&(c=!0)}else s===0&&(c=f&&Y0(e,y,p))}return u=u&&!c,!c&&(p.anchorStart!==Me||p.tagStart!==Me||u)&&(Xi(e,Me,Me,p.anchorStart,p.anchorEnd,p.tagStart,p.tagEnd,Z.PLAIN),c=!0),e.depth--,c||p.anchorStart!==Me||p.tagStart!==Me}function aF(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&&!Qr(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&&!bt(e.input.charCodeAt(e.position));){for(;Zi(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||bt(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let o=e.position;for(;e.input.charCodeAt(e.position)!==0&&!Qr(e.input.charCodeAt(e.position));)e.position++;n.push(e.input.slice(o,e.position))}if(bt(e.input.charCodeAt(e.position))&&gp(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;fx.test(o)||J(e,"ill-formed tag handle (first argument) of the TAG directive"),lx.call(e.tagHandlers,o)&&J(e,`there is a previously declared suffix for "${o}" tag handle`),H2.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 cF(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(jt(e,!0);aF(e);)t=!0,jt(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&&Mn(e.input.charCodeAt(e.position+3))){r=!0;let a=e.line;e.position+=3,jt(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&&Qi(e)){e.position+=3,jt(e,!0);return}if(K2(e,r,!1),Ji(e,e.lineIndent-1,yp,!1,o,o)||Wt(e),jt(e,!0),e.position===e.lineStart&&Qi(e)&&(n=e.input.charCodeAt(e.position)===46,n)){let a=e.line;e.position+=3,jt(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===nt.DOCUMENT&&(s.explicitEnd=n),Ki(e),!n&&e.position<e.length&&!Lf(e)&&J(e,"end of the stream or a document separator is expected")}function pF(e,t){let r=e.length,n={...Mf,...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&&po.throwAt(e,o,"null byte is not allowed in input",n.filename);n.position<n.length&&(gx(n),jt(n,!0),!(n.position>=n.length));){let i=n.position;cF(n),n.position===i&&J(n,"can not read a document")}return n.events}var lF={...Mf,...jf};function uF(e,t={}){let r={...lF,...t},n=String(e),o=Object.keys(Mf),i=Object.keys(jf);return F2(pF(n,xf(r,o)),{...xf(r,i),source:n})}function bx(e,t,r){let n=null;typeof t=="function"?n=t:t!==null&&typeof t=="object"&&(r=t);let o=uF(e,r);if(n===null)return o;for(let i of o)n(i)}var Bo=Symbol("INVALID");function dF(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 fF(e,t){for(let r=0,n=e.representTypes.length;r<n;r+=1){let{tag:o,implicitTag:i}=e.representTypes[r];if(o.identify(t)){let s;return o.matchByTagPrefix?s=o.representTagName(t):s=o.tagName,{tag:o,tagName:s,implicitTag:i}}}return null}function ya(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){let l=e.refs.get(t);if(l)return l.anchor===void 0&&(l.anchor=`ref_${e.refCounter++}`),{kind:"alias",anchor:l.anchor}}let r=fF(e,t);if(!r){if(t===void 0||e.skipInvalid)return Bo;throw new po(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:n,tagName:o,implicitTag:i}=r,s=i?o:ax(o);if(n.nodeKind==="scalar")return{kind:"scalar",tag:s,tagged:!i,style:Z.PLAIN,value:n.represent(t)};if(n.nodeKind==="sequence"){let l=n.represent(t),p={kind:"sequence",tag:s,tagged:!i,style:sr.BLOCK,items:[]};e.noRefs||e.refs.set(t,p);for(let u=0,f=l.length;u<f;u+=1){let m=ya(e,l[u]);m===Bo&&l[u]===void 0&&(m=ya(e,null)),m!==Bo&&p.items.push(m)}return p}let a=n.represent(t),c={kind:"mapping",tag:s,tagged:!i,style:sr.BLOCK,items:[]};e.noRefs||e.refs.set(t,c);for(let[l,p]of a){let u=ya(e,l);if(u===Bo)continue;let f=ya(e,p);f!==Bo&&c.items.push({key:u,value:f})}return c}function mF(e,t,r={}){let n=ya({representTypes:dF(t),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:n===Bo?null:n,directives:[]}]}var hF=Symbol("visit:break"),xx=Symbol("visit:skip");function mp(e,t,r){let n=t(e,r);if(n===hF)return!0;if(n===xx)return!1;let o=r.depth+1;switch(e.kind){case"sequence":for(let i of e.items)if(mp(i,t,{depth:o,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:i,value:s}of e.items)if(mp(i,t,{depth:o,parent:e,isKey:!0})||mp(s,t,{depth:o,parent:e,isKey:!1}))return!0;break}return!1}function Q0(e,t){for(let r of e)if(r.contents&&mp(r.contents,t,{depth:0,parent:null,isKey:!1}))return}function wp(e,t){return(e&1<<t)!==0}var J0={applyQuoteFlowKeysOption:yF,doubleQuoteForInvisibles:gF,doubleQuoteWhitespaceOnly:vF,applyForceQuotesOption:bF,tryLongOrMultilineAsBlock:xF,quoteInvalidPlain:SF,fallbackToDoubleQuoted:wF};function Sx(e){return e.presenterOptions.quoteStyle==="single"&&wp(e.allowedStylesMask,Z.SINGLE_QUOTED)?Z.SINGLE_QUOTED:Z.DOUBLE_QUOTED}function yF(e){e.presenterOptions.quoteFlowKeys&&(!e.isKey||!e.flowOnly||e.style!==Z.PLAIN||(e.style=Z.DOUBLE_QUOTED))}function gF(e){e.style===Z.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=Z.DOUBLE_QUOTED)}function vF(e){e.style===Z.PLAIN&&/^\s+$/.test(e.node.value)&&(e.style=Z.DOUBLE_QUOTED)}function bF(e){e.presenterOptions.forceQuotes&&(e.isKey||e.style!==Z.PLAIN||e.node.tag===e.presenterOptions.schema.defaultScalarTag.tagName&&(e.style=e.node.value.includes(`
|
|
73
|
-
`)?Z.DOUBLE_QUOTED:Sx(e)))}function xF(e){if(e.style!==Z.PLAIN||e.isKey)return;let t=e.node.value,r=t.indexOf(`
|
|
74
|
-
`)!==-1;if(!wp(e.allowedStylesMask,Z.LITERAL_BLOCK)){r&&(e.style=Z.DOUBLE_QUOTED);return}let n=e.presenterOptions.lineWidth;if(n===-1){r&&(e.style=Z.LITERAL_BLOCK);return}let o=Math.max(Math.min(n,40),n-e.shiftOfContent),i=0,s=!1;for(;i<=t.length;){let a=t.length,c=t.indexOf(`
|
|
75
|
-
`,i);c!==-1&&(a=c);let l=t.slice(i,a);if(l.length>o&&l[0]!==" "&&/ [^ \t]/.test(l)&&(s=!0),c===-1)break;i=c+1}s?e.style=Z.FOLDED_BLOCK:r&&(e.style=Z.LITERAL_BLOCK)}function SF(e){e.style===Z.PLAIN&&!wp(e.allowedStylesMask,Z.PLAIN)&&(e.style=Sx(e))}function wF(e){wp(e.allowedStylesMask,e.style)||(e.style=Z.DOUBLE_QUOTED)}function ha(e,t){return e|1<<t}var _F="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",PF="[\\n\\r]",$F="\\uFEFF",Ff="[ \\t]",wx=`(?:(?!(?:${PF}|${$F}))${_F})`,_p=`(?:(?!${Ff})${wx})`,_x="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",Px="[-?:,\\[\\]{}#&*!|>'\"%@`]",EF="[,\\[\\]{}]",_f=_p,Pf=`(?:(?!${EF})${_p})`,AF=`(?:(?:(?!${Px})${_p})|[?:-](?=${_f}))`,OF=`(?:(?:(?!${Px})${_p})|[?:-](?=${Pf}))`,$x=`(?:(?:(?![:#])${_f})|:(?=${_f}))#*`,Ex=`(?:(?:(?![:#])${Pf})|:(?=${Pf}))#*`,Ax=`(?:${Ff}*${$x})*`,Ox=`(?:${Ff}*${Ex})*`,Tx=`${AF}#*${Ax}`,Rx=`${OF}#*${Ox}`,TF=Tx,RF=Rx,kF=`\\n+${$x}${Ax}`,IF=`\\n+${Ex}${Ox}`,CF=`${Tx}(?:${kF})*`,NF=`${Rx}(?:${IF})*`,qF=new RegExp(`^(?:${CF})$`,"u"),DF=new RegExp(`^(?:${NF})$`,"u"),jF=new RegExp(`^(?:${TF})$`,"u"),MF=new RegExp(`^(?:${RF})$`,"u"),LF=new RegExp(`^(?:${_x})*$`,"u"),FF=new RegExp(`^(?:${_x}|\\n)*$`,"u"),UF=new RegExp(`^(?:${wx}|\\n)*$`,"u"),zF=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,Uf=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function VF(e){let t=e.node.value;if(t!==""){if(!(e.isKey?e.flowOnly?MF:jF:e.flowOnly?DF:qF).test(t)||e.shiftOfFirstLine===0&&zF.test(t))return!1;if(e.shiftOfContent===0){let n=t.indexOf(`
|
|
76
|
-
`);if(n!==-1){let o=t.slice(n+1);if(Uf.test(o))return!1}}}let r=e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;return!(!e.node.tagged&&r!==e.node.tag||!e.node.tagged&&t==="="&&r===e.presenterOptions.schema.defaultScalarTag.tagName)}function BF(e){let t=e.node.value;if(!(e.isKey?LF:FF).test(t)||/[ \t]\n|\n[ \t]/.test(t))return!1;if(!e.isKey&&e.shiftOfContent===0){let r=t.indexOf(`
|
|
77
|
-
`);if(r!==-1&&Uf.test(t.slice(r+1)))return!1}return!0}function HF(e){if(e.flowOnly||!UF.test(e.node.value))return!1;let t=e.shiftOfContent-e.shiftOfParent;return!(t<1||t>9&&/^\n* /.test(e.node.value)||e.shiftOfContent===0&&Uf.test(e.node.value))}function KF(e){let t=ha(0,Z.DOUBLE_QUOTED);VF(e)&&(t=ha(t,Z.PLAIN)),BF(e)&&(t=ha(t,Z.SINGLE_QUOTED)),HF(e)&&(t=ha(ha(t,Z.LITERAL_BLOCK),Z.FOLDED_BLOCK)),e.allowedStylesMask=t}function GF(e){switch(e.style){case Z.PLAIN:return WF(e);case Z.SINGLE_QUOTED:return YF(e);case Z.LITERAL_BLOCK:return QF(e);case Z.FOLDED_BLOCK:return JF(e);case Z.DOUBLE_QUOTED:return XF(e)}}function WF(e){return kx(e.node.value,e.shiftOfContent)}function YF(e){return`'${kx(e.node.value,e.shiftOfContent).replace(/'/g,"''")}'`}function QF(e){let t=e.node.value;return"|"+Cx(t,e.shiftOfParent,e.shiftOfContent)+Nx(Ix(t,e.shiftOfContent))}function JF(e){let t=e.node.value,r=e.presenterOptions.lineWidth,n=1/0;return r!==-1&&(n=Math.max(Math.min(r,40),r-e.shiftOfContent)),">"+Cx(t,e.shiftOfParent,e.shiftOfContent)+Nx(Ix(eU(t,n),e.shiftOfContent))}function XF(e){return`"${nU(e.node.value)}"`}function kx(e,t){let r=e.indexOf(`
|
|
78
|
-
`);if(r===-1)return e;let n=" ".repeat(t),o=e.slice(0,r),i=/(\n+)([^\n]*)/g;i.lastIndex=r;let s;for(;s=i.exec(e);){let a=s[1].length,c=s[2];o+=`
|
|
79
|
-
`.repeat(a+1)+n+c}return o}function Ix(e,t){let r=" ".repeat(t),n=0,o="",i=e.length;for(;n<i;){let s,a=e.indexOf(`
|
|
80
|
-
`,n);a===-1?(s=e.slice(n),n=i):(s=e.slice(n,a+1),n=a+1),s.length&&s!==`
|
|
81
|
-
`&&(o+=r),o+=s}return o}function ZF(e){return/^\n* /.test(e)}function Cx(e,t,r){let n=ZF(e)?String(r-t):"",o=e[e.length-1]===`
|
|
82
|
-
`;return`${n}${o&&(e[e.length-2]===`
|
|
83
|
-
`||e===`
|
|
84
|
-
`)?"+":o?"":"-"}
|
|
85
|
-
`}function Nx(e){return e[e.length-1]===`
|
|
86
|
-
`?e.slice(0,-1):e}function $f(e){return e===" "||e===" "}function X0(e,t){if(e===""||$f(e[0]))return e;let r=/ [^ \t]/g,n,o=0,i,s=0,a=0,c="";for(;n=r.exec(e);)a=n.index,a-o>t&&(i=s>o?s:a,c+=`
|
|
87
|
-
${e.slice(o,i)}`,o=i+1),s=a;return c+=`
|
|
88
|
-
`,e.length-o>t&&s>o?c+=`${e.slice(o,s)}
|
|
89
|
-
${e.slice(s+1)}`:c+=e.slice(o),c.slice(1)}function eU(e,t){let r=/(\n+)([^\n]*)/g,n=e.indexOf(`
|
|
90
|
-
`);n===-1&&(n=e.length),r.lastIndex=n;let o=X0(e.slice(0,n),t),i=e[0]===`
|
|
91
|
-
`||$f(e[0]),s,a;for(;a=r.exec(e);){let c=a[1],l=a[2];s=l!==""&&$f(l[0]),o+=c+(!i&&!s&&l!==""?`
|
|
92
|
-
`:"")+X0(l,t),i=s}return o}var tU=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function rU(e){switch(e){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case`
|
|
93
|
-
`:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"\x85":return"\\N";case"\xA0":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}let t=e.charCodeAt(0),r=t.toString(16).toUpperCase();return t<=255?`\\x${"0".repeat(2-r.length)}${r}`:`\\u${"0".repeat(4-r.length)}${r}`}function nU(e){return e.replace(tU,rU)}var vp=10,zf={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(J0).map(e=>Reflect.get(J0,e)),tagBeforeAnchor:!1};function oU(e){return e.tagged?e.tag:ax(e.tag)}function iU(e){let t={...zf,...e};return t.flowSkipColonSpace&&(t.quoteFlowKeys=!0),{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,openEnded:!1}}function Ef(e,t){return`
|
|
94
|
-
${" ".repeat(e.indent*t)}`}function sU(e,t,r,n,o,i){return{node:t,parent:r,level:n,isKey:o,flowOnly:i,shiftOfParent:n===0?-1:e.indent*(n-1),shiftOfContent:e.indent*Math.max(1,n),shiftOfFirstLine:n===0?0:e.indent*n,presenterOptions:e,allowedStylesMask:0,style:t.style}}function aU(e,t,r){let n="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Ln(e,t,r.items[i],r,{}).text;i>0&&(n+=`,${e.flowSkipCommaSpace?"":" "}`),n+=a}let o=e.flowBracketPadding&&r.items.length>0?" ":"";return`[${o}${n}${o}]`}function Z0(e,t,r,n){let o="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Ln(e,t+1,r.items[i],r,{block:!0,compact:e.seqInlineFirst,isblockseq:!0}).text;(!n||o!=="")&&(o+=Ef(e,t)),a===""||vp===a.charCodeAt(0)?o+="-":o+="- ",o+=a}return o}function cU(e,t,r){let n="";for(let{key:i,value:s}of r.items){let a="";n!==""&&(a+=`,${e.flowSkipCommaSpace?"":" "}`);let c=Ln(e,t,i,r,{iskey:!0}),l=c.text,p=Ln(e,t,s,r,{}).text,u=e.flowSkipColonSpace||p===""?"":" ",f=i.kind==="scalar"&&c.noBody&&(i.tagged||i.anchor!==void 0),m=i.kind==="alias"||f?" ":"";a+=`${l}${m}:${u}${p}`,n+=a}let o=e.flowBracketPadding&&n!==""?" ":"";return`{${o}${n}${o}}`}function pU(e,t,r,n){let o="";for(let i=0,s=r.items.length;i<s;i+=1){let a="";(!n||o!=="")&&(a+=Ef(e,t));let{key:c,value:l}=r.items[i],p=(c.kind==="mapping"||c.kind==="sequence")&&c.style===sr.BLOCK&&c.items.length!==0||c.kind==="scalar"&&(c.style===Z.LITERAL_BLOCK||c.style===Z.FOLDED_BLOCK),u=p?Ln(e,t+1,c,r,{block:!0,compact:!0,isblockseq:!Af(e,c,t+1)}):Ln(e,t+1,c,r,{block:!0,compact:!0,iskey:!0}),f=u.text,m=c.kind==="scalar"&&c.value.indexOf(`
|
|
95
|
-
`)!==-1,h=f.length>1024&&/^[\s\S]{1025}/u.test(f),y=p||m||h;y&&(f&&vp===f.charCodeAt(0)?a+="?":a+="? "),a+=f,y&&(a+=Ef(e,t));let b=Ln(e,t+1,l,r,{block:!0,compact:y,isblockseq:y&&!Af(e,l,t+1)}).text,x=c.kind==="scalar"&&u.noBody&&(c.tagged||c.anchor!==void 0),w=!y&&(c.kind==="alias"||x)?" ":"";b===""||vp===b.charCodeAt(0)?a+=`${w}:`:a+=`${w}: `,a+=b,o+=a}return o}function Af(e,t,r){return t.kind==="alias"?!0:t.tagged||t.anchor!==void 0||e.indent<2&&r>0}function Ln(e,t,r,n,o){if(r.kind==="alias")return e.openEnded=!1,{text:`*${r.anchor}`,noBody:!1};let{block:i=!1,iskey:s=!1,isblockseq:a=!1}=o,c=o.compact??!1,l=r.anchor!==void 0;Af(e,r,t)&&(c=!1);let p,u=r.tagged,f=i&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===sr.BLOCK&&r.items.length!==0;if(r.kind==="mapping")f?p=pU(e,t,r,c):p=cU(e,t,r);else if(r.kind==="sequence")f?e.seqNoIndent&&!a&&t>0?p=Z0(e,t-1,r,c):p=Z0(e,t,r,c):p=aU(e,t,r);else{let y=sU(e,r,n,t,s,!i);KF(y);for(let b of e.scalarStyleRules)b(y);p=GF(y),e.openEnded=(y.style===Z.LITERAL_BLOCK||y.style===Z.FOLDED_BLOCK)&&(r.value===`
|
|
96
|
-
`||r.value.endsWith(`
|
|
97
|
-
|
|
98
|
-
`)),u=r.tagged||p===""&&y.flowOnly&&n?.kind==="sequence"&&!l||y.style!==Z.PLAIN&&r.tag!==e.defaultScalarTagName}(r.kind==="mapping"||r.kind==="sequence")&&!f&&(e.openEnded=!1),f&&c&&t>0&&e.indent>2&&(p=`${" ".repeat(e.indent-2)}${p}`);let m=p==="",h=p;if(u||l){let y=[],b=u?oU(r):null,x=l?`&${r.anchor}`:null;e.tagBeforeAnchor?(b!==null&&y.push(b),x!==null&&y.push(x)):(x!==null&&y.push(x),b!==null&&y.push(b));let w=p===""||p.charCodeAt(0)===vp?"":" ";h=`${y.join(" ")}${w}${p}`}return{text:h,noBody:m}}function lU(e){return(e.kind==="sequence"||e.kind==="mapping")&&e.style===sr.BLOCK&&e.items.length!==0&&!e.tagged&&e.anchor===void 0}function uU(e){let t="";for(let r of e.directives){if(r.kind==="yaml"){t+=`%YAML ${r.version}
|
|
99
|
-
`;continue}let{handle:n,prefix:o}=r;t+=`%TAG ${n} ${o}
|
|
100
|
-
`}return t}function dU(e,t){let r=iU(t),n="",o=!1;for(let i=0;i<e.length;i+=1){let s=e[i];r.openEnded=!1;let a=uU(s),c=a!=="",l=s.explicitStart||c||i>0&&!o;if(n+=a,s.contents===null)l&&(n+=`---
|
|
101
|
-
`);else if(l){let p=Ln(r,0,s.contents,null,{block:!0,compact:!0}).text,u=p===""?"":c||lU(s.contents)?`
|
|
102
|
-
`:" ";n+=`---${u}${p}
|
|
103
|
-
`}else n+=Ln(r,0,s.contents,null,{block:!0,compact:!0}).text+`
|
|
104
|
-
`;o=s.explicitEnd||r.openEnded,o&&(n+=`...
|
|
105
|
-
`)}return n}var fU={...zf,schema:_2,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function mU(e,t){let r=String(e),n=String(t);return r<n?-1:r>n?1:0}function qx(e,t={}){let r={...fU,...t},n=mF(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&Q0(n,(o,i)=>{if(!(i.depth<r.flowLevel))return(o.kind==="sequence"||o.kind==="mapping")&&(o.style=sr.FLOW),xx}),r.sortKeys){let o=r.sortKeys===!0?mU:r.sortKeys;Q0(n,i=>{i.kind==="mapping"&&i.items.sort((s,a)=>o(s.key.kind==="scalar"?s.key.value:"",a.key.kind==="scalar"?a.key.value:""))})}return r.transform(n),dU(n,{...xf(r,Object.keys(zf)),schema:r.schema})}var Uoe=nt.DOCUMENT,zoe=nt.SEQUENCE,Voe=nt.MAPPING,Boe=nt.SCALAR,Hoe=nt.ALIAS,Koe=nt.POP,Goe=Z.PLAIN,Woe=Z.SINGLE_QUOTED,Yoe=Z.DOUBLE_QUOTED,Qoe=Z.LITERAL_BLOCK,Joe=Z.FOLDED_BLOCK,Xoe=sr.BLOCK,Zoe=sr.FLOW,eie=xr.CLIP,tie=xr.STRIP,rie=xr.KEEP;var hU=qf.withTags(Tf,Rf,kf,If,Cf),Ko=(e,t)=>{let r=bx(e,{schema:hU,...t});if(r.length===0)return e.trim()===""?void 0:null;if(r.length>1)throw new po("expected a single document in the stream, but found more");return r[0]},Pp=(e,t)=>qx(e,t);var yU=[".graphql",".gql"];function es(e){let t=e.toLowerCase();return yU.some(r=>t.endsWith(r))}import*as Ap from"node:fs";import*as Op from"node:path";import{fileURLToPath as ZU}from"node:url";var gU=/\((\d+):(\d+)\)$/,hn=class e extends Error{originalError;source;col;line;constructor(t,r){super(t.message.split(`
|
|
106
|
-
`)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,o]=this.message.match(gU)||[];this.line=parseInt(n,10),this.col=parseInt(o,10)}};function tt(e,t){return e.hasOwnProperty(t)?e[t]:void 0}function ga(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}function Fn(e,t){return e+"::"+t}function Dx(){return new Promise(e=>{setTimeout(e)})}var cS=fn(aS(),1);var xt=typeof window<"u"||typeof process>"u"||process?.platform==="browser",wa=xt?{}:process.env||{};async function Zf(e,t){let r={};for(let o of t.headers)XU(e,o.matches)&&(r[o.name]=o.envVariable!==void 0?wa[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 XU(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),cS.default.isMatch(e,t)}var yn=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}},_a=class e extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function Go(e,t){let r=new yn(t,e);if(es(t))return{source:r,parsed:e};try{return{source:r,parsed:Ko(e,{filename:t})}}catch(n){throw new hn(n,r)}}var cr=class{config;cache=new Map;overlayFiles=new Set;constructor(t={http:{headers:[]}}){this.config=t}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return ce(r)?r:t&&ce(t)?new URL(r,t).href:Op.resolve(t?Op.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(ce(t)&&!co(t)){let{body:r,mimeType:n}=await Zf(t,this.config.http);return new yn(t,r,n)}else{let r=co(t)?ZU(t):t;if(Ap.lstatSync(r).isDirectory())throw new Error(`Expected a file but received a folder at ${r}.`);let n=await Ap.promises.readFile(r,"utf-8");return new yn(t,n.replace(/\r\n/g,`
|
|
107
|
-
`))}}catch(r){throw r.message=r.message.replace(", lstat",""),new _a(r)}}parseDocument(t,r=!1){if(es(t.absoluteRef))return{source:t,parsed:t.body};let n=ce(t.absoluteRef)?new URL(t.absoluteRef).pathname:t.absoluteRef;if(!ga(n)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:Ko(t.body,{filename:t.absoluteRef})}}catch(o){throw new hn(o,t)}}async resolveDocument(t,r,n=!1){let o=this.resolveExternalRef(t,r);if(co(o)&&t!==null&&ce(t)&&!co(t)&&!this.overlayFiles.has(o))throw new _a(new Error(`A remote document can't reference ${o}, which is a local file.`));let i=this.cache.get(o);if(i)return i;let s=this.loadExternalRef(o).then(a=>this.parseDocument(a,n));return this.cache.set(o,s),s}};function pS(e,t){return{prev:e,node:t}}function ez(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var Ep={name:"unknown",properties:{}},tz={name:"scalar",properties:{}};async function wr(e){let{rootDocument:t,externalRefResolver:r,rootType:n}=e,o=new Map,i=new Set,s=[];c(t.parsed,t,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return o;function c(l,p,u,f){let m=p.source.absoluteRef,h=new Map;y(l,f,m+u);function y(x,w,S){if(!T(x)&&!Array.isArray(x))return;let $=`${w.name}::${S}`;if(i.has($))return;if(i.add($),Array.isArray(x)){let q=w.items;if(q===void 0&&w!==Ep&&w!==Gr)return;let I=typeof q=="function";for(let k=0;k<x.length;k++){let O=I?q(x[k],Yr(S,k)):q;if(O===void 0&&w!==Ep&&w!==Gr)continue;let se=O?.directResolveAs?{$ref:x[k]}:x[k];O=O?.directResolveAs||O,y(se,Or(O)?O:Ep,Yr(S,k))}return}let[P,A]=Object.entries(x).find(([q])=>q==="$anchor")||[];A&&h.set(`#${A}`,x);for(let q of Object.keys(x)){let I=x[q],k=tt(w.properties,q),O=w.extensionsPrefix!==void 0&&q.startsWith(w.extensionsPrefix);k===void 0&&!O&&(k=w.additionalProperties),typeof k=="function"&&(k=k(I,q)),O&&k===void 0&&(k=Gr),k===void 0&&(k=Ep),!Or(k)&&k?.directResolveAs&&(k=k.directResolveAs,I={$ref:I}),k&&k.name===void 0&&k.resolvable!==!1&&(k=tz),!(!Or(k)||!(T(I)||Array.isArray(I)))&&y(I,k,Yr(S,mn(q)))}if(B(x)){let q=b(p,x,{prev:null,node:x}).then(I=>{if(I.resolved){c(I.node,I.document,I.nodePointer,w);for(let k of I.chain??[])c(k.node,k.document,k.location.pointer,w)}});s.push(q)}if(lp(x)){let q=b(p,{$ref:x.externalValue},{prev:null,node:x}).then(I=>{I.resolved&&c(I.node,I.document,I.nodePointer,w)});s.push(q)}}async function b(x,w,S){if(ez(S.prev,w))throw new Error("Self-referencing circular pointer");if(T0(w.$ref)){await Dx();let X={resolved:!0,isRemote:!1,node:h.get(w.$ref),document:x,nodePointer:w.$ref},fe=Fn(x.source.absoluteRef,w.$ref);return o.set(fe,X),X}let{uri:$,pointer:P}=ao(w.$ref),A=$!==null&&r.resolveExternalRef(x.source.absoluteRef,$)!==x.source.absoluteRef,q;try{q=A?await r.resolveDocument(x.source.absoluteRef,$):x}catch(X){let fe={resolved:!1,isRemote:A,document:void 0,error:X},N=Fn(x.source.absoluteRef,w.$ref);return o.set(N,fe),fe}let I={resolved:!0,document:q,isRemote:A,node:x.parsed,nodePointer:"#/"},k=q.parsed,O=P;for(let X of O)if(T(k)&&k[X]!==void 0)k=k[X],I.nodePointer=Yr(I.nodePointer,mn(X));else if(Array.isArray(k)&&k[+X]!==void 0)k=k[+X],I.nodePointer=Yr(I.nodePointer,mn(X));else if(B(k))if(I=await b(q,k,pS(S,k)),I.chain=void 0,q=I.document||q,T(I.node))k=I.node[X],I.nodePointer=Yr(I.nodePointer,mn(X));else if(Array.isArray(I.node))k=I.node[+X],I.nodePointer=Yr(I.nodePointer,mn(X));else{k=void 0;break}else{k=void 0;break}I.node=k,I.document=q;let se=Fn(x.source.absoluteRef,w.$ref);if(I.document&&B(k)){let X=so(k)?{node:k,document:I.document,location:new Dt(I.document.source,I.nodePointer)}:void 0;I=await b(I.document,k,pS(S,k)),X&&I.resolved&&(I={...I,chain:[X,...I.chain??[]]})}return o.set(se,I),{...I}}}}var om={};zC(om,{bgBlack:()=>Pz,bgBlackBright:()=>Fz,bgBlue:()=>Oz,bgBlueBright:()=>Bz,bgCyan:()=>Rz,bgCyanBright:()=>Kz,bgGreen:()=>Ez,bgGreenBright:()=>zz,bgMagenta:()=>Tz,bgMagentaBright:()=>Hz,bgRed:()=>$z,bgRedBright:()=>Uz,bgWhite:()=>kz,bgWhiteBright:()=>Gz,bgYellow:()=>Az,bgYellowBright:()=>Vz,black:()=>hz,blackBright:()=>Iz,blue:()=>bz,blueBright:()=>Dz,bold:()=>cz,cyan:()=>Sz,cyanBright:()=>Mz,dim:()=>pz,gray:()=>_z,green:()=>gz,greenBright:()=>Nz,hidden:()=>fz,inverse:()=>dz,italic:()=>lz,magenta:()=>xz,magentaBright:()=>jz,options:()=>nm,red:()=>yz,redBright:()=>Cz,reset:()=>az,strikethrough:()=>mz,underline:()=>uz,white:()=>wz,whiteBright:()=>Lz,yellow:()=>vz,yellowBright:()=>qz});import*as tm from"tty";var lo=process.env,rz="NO_COLOR"in lo,nz="FORCE_COLOR"in lo,oz=process.platform==="win32",iz=tm&&tm.isatty(1)&&lo.TERM&&lo.TERM!=="dumb",sz="CI"in lo&&("GITHUB_ACTIONS"in lo||"GITLAB_CI"in lo||"CIRCLECI"in lo),em=!rz&&(nz||oz||iz||sz),rm=(e,t,r,n)=>o=>em?e+(~(o+="").indexOf(t,4)?o.replace(r,n):o)+t:o,he=(e,t)=>rm(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),nm=Object.defineProperty({},"enabled",{get:()=>em,set:e=>em=e}),az=he(0,0),cz=rm("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),pz=rm("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),lz=he(3,23),uz=he(4,24),dz=he(7,27),fz=he(8,28),mz=he(9,29),hz=he(30,39),yz=he(31,39),gz=he(32,39),vz=he(33,39),bz=he(34,39),xz=he(35,39),Sz=he(36,39),wz=he(37,39),_z=he(90,39),Pz=he(40,49),$z=he(41,49),Ez=he(42,49),Az=he(43,49),Oz=he(44,49),Tz=he(45,49),Rz=he(46,49),kz=he(47,49),Iz=he(90,39),Cz=he(91,39),Nz=he(92,39),qz=he(93,39),Dz=he(94,39),jz=he(95,39),Mz=he(96,39),Lz=he(97,39),Fz=he(100,49),Uz=he(101,49),zz=he(102,49),Vz=he(103,49),Bz=he(104,49),Hz=he(105,49),Kz=he(106,49),Gz=he(107,49);function lS(e){return e}var Pa=nm,pe=new Proxy(om,{get(e,t){return xt?lS:e[t]}}),im=class{info(t){return xt?console.info(t):process.stderr.write(t)}warn(t){return xt?console.warn(t):process.stderr.write(pe.yellow(t))}error(t){return xt?console.error(t):process.stderr.write(pe.red(t))}output(t){return xt?console.log(t):process.stdout.write(t)}printNewLine(){xt?console.log(`
|
|
108
|
-
`):process.stdout.write(`
|
|
109
|
-
`)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),o=xt?n:pe.gray(n);return xt?console.log(o):process.stdout.write(o)}indent(t,r){let n=xt?" ":"\xA0";return t.split(`
|
|
110
|
-
`).map(o=>n.repeat(r)+o).join(`
|
|
111
|
-
`)}},le=new im;var Tp=/^1\.[012]\.\d+(-.+)?$/;function $a(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 Un(e){if(!T(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"&&Tp.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var Wz={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Lt(e,t){let r={};r.any={enter:[],leave:[]};for(let s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(let{ruleId:s,severity:a,message:c,visitor:l}of e)i({ruleId:s,severity:a,message:c},l,null);for(let s of Object.keys(r))r[s].enter.sort((a,c)=>c.depth-a.depth),r[s].leave.sort((a,c)=>a.depth-c.depth);return r;function n(s,a,c,l,p=[]){if(p.includes(a))return;p=[...p,a];let u=new Set;for(let m of Object.values(a.properties)){if(m===c){f(s,p);continue}T(m)&&m.name!==void 0&&u.add(m)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?f(s,p):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?f(s,p):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(Gr);for(let m of Array.from(u.values()))n(s,m,c,l,p);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:l}})}}function o(s,a){if(Array.isArray(a)){let c=a.find(l=>s[l])||void 0;return c&&s[c]}return s[a]}function i(s,a,c,l=0){let p=Object.keys(t);if(l===0)p.push("any"),p.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(let u of p){let f=a[u]||o(a,Wz[u]),m=r[u];if(!f)continue;let h,y,b,x=T(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,$={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(S&&i(s,f,$,l+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:l,context:$})}if(y){if(typeof y!="function")throw new Error("DEV: should be function");m.leave.push({...s,visit:y,depth:l,context:$})}}}}function sm(e,t){return{prev:e,value:t}}function am(e){return e?.prev??null}function Yz(e){let t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function Qz(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 Ft(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:o,ctx:i}=e,s={},a=new Set,c=(b,x)=>`${b.name}::${x.absolutePointer}`,l=new Set,p={},u=n.any.enter,f=n.any.leave,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 Dt(t.source,"#/"),void 0,"");function y(b,x,w,S,$){let P=(ie,Xe=q.source.absoluteRef)=>{if(!B(ie))return{location:w,node:ie};let Ue=Fn(Xe,ie.$ref),_e=o.get(Ue);if(!_e)return{location:void 0,node:void 0};let{resolved:Gt,node:at,document:it,nodePointer:te,error:nr,chain:K}=_e;return{location:Gt?new Dt(it.source,te):nr instanceof hn?new Dt(nr.source,""):void 0,node:at,error:nr,chain:K}},A=w,q=w,I=B(b),{node:k,location:O,error:se,chain:X}=P(b),fe=new Set,N=so(b)&&a.has(c(x,w));if(so(b)&&a.add(c(x,w)),I&&!N){let ie=n.ref.enter;for(let{visit:Xe,ruleId:Ue,severity:_e,message:Gt,context:at}of ie)fe.add(at),Xe(b,{report:te=>ht(Ue,_e,Gt,te),resolve:P,rawNode:b,rawLocation:A,location:w,type:x,parent:S,key:$,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>$e(Ue)},{node:k,location:O,error:se,chain:X}),O?.source.absoluteRef&&i.refTypes&&i.refTypes.set(O?.source.absoluteRef,x)}if(k!==void 0&&O&&x.name!=="scalar"){let ie=(K,j,ae,M)=>{let H=tt(x.properties,K),Pe=x.extensionsPrefix!==void 0&&K.startsWith(x.extensionsPrefix);H===void 0&&!Pe&&(H=x.additionalProperties),typeof H=="function"&&(H=H(j,K)),Pe&&!Or(H)&&(H=Gr),!Or(H)&&H?.directResolveAs&&(H=H.directResolveAs,j={$ref:j}),H&&H.name===void 0&&H.resolvable!==!1&&(H={name:"scalar",properties:{}}),!(!Or(H)||H.name==="scalar"&&!B(j))&&y(j,H,ae.child([K]),M,K)};q=O;let Xe=T(k)||Array.isArray(k)?k:w.absolutePointer,Ue=s[x.name]?.has?.(Xe),_e=!1,Gt=m[x.name]||u.concat(n[x.name]?.enter||[]),at=[],it=`${q.absolutePointer}${q.pointer}`;for(let{context:K,visit:j,skip:ae,ruleId:M,severity:H,message:Pe}of Gt){if(l.has(it))break;if(K.isSkippedLevel)K.parent.activatedOn&&!K.parent.activatedOn.value.nextLevelTypeActivated&&!K.seen.has(b)&&(K.seen.add(b),_e=!0,at.push(K));else if(K.parent&&K.parent.activatedOn&&K.parent.activatedOn.value.node===p[K.parent.type.name]&&K.activatedOn?.value.withParentNode!==K.parent.activatedOn.value.node&&K.parent.activatedOn.value.nextLevelTypeActivated?.value!==x||!K.parent&&!Ue){at.push(K);let Ze={node:k,location:O,nextLevelTypeActivated:null,withParentNode:K.parent?.activatedOn?.value.node,skipped:(K.parent?.activatedOn?.value.skipped||ae?.(k,$,{location:w,rawLocation:A,resolve:P,rawNode:b}))??!1};K.activatedOn=sm(K.activatedOn,Ze);let ke=K.parent;for(;ke;)ke.activatedOn.value.nextLevelTypeActivated=sm(ke.activatedOn.value.nextLevelTypeActivated,x),ke=ke.parent;Ze.skipped||(_e=!0,fe.add(K),D(j,k,b,K,M,H,Pe))}}let te=p[x.name];if(p[x.name]=k,_e||!Ue){if(s[x.name]=s[x.name]||new Set,s[x.name].add(Xe),Array.isArray(k)){let K=x.items;if(K!==void 0){let j=typeof K=="function";for(let ae=0;ae<k.length;ae++){let M=O.child([ae]),H=j?K(k[ae],M.absolutePointer):K,Pe=k[ae];H?.directResolveAs&&(H=H.directResolveAs,Pe={$ref:Pe}),Or(H)&&y(Pe,H,M,k,ae)}}}else if(T(k)){let K=Object.keys(x.properties);x.additionalProperties?K.push(...Object.keys(k).filter(j=>!K.includes(j))):x.extensionsPrefix&&K.push(...Object.keys(k).filter(j=>j.startsWith(x.extensionsPrefix)&&!K.includes(j)));for(let j of K){let ae=k[j];ae!==void 0&&ie(j,ae,O,k)}}}if(I&&X?.length){let K=X[0];a.has(c(x,K.location))||y(K.node,x,K.location,void 0,$)}if(so(b)&&!N)for(let K of Object.keys(b))K!=="$ref"&&b[K]!==k?.[K]&&ie(K,b[K],w,b);p[x.name]=te;let nr=h[x.name]||(n[x.name]?.leave||[]).concat(f);for(let K of at.reverse())if(K.isSkippedLevel)K.seen.delete(k);else if(K.activatedOn=am(K.activatedOn),K.parent){let j=K.parent;for(;j;)j.activatedOn.value.nextLevelTypeActivated=am(j.activatedOn.value.nextLevelTypeActivated),j=j.parent}for(let{context:K,visit:j,ruleId:ae,severity:M,message:H}of nr)!K.isSkippedLevel&&fe.has(K)&&D(j,k,b,K,ae,M,H)}if(q=w,I&&!N){let ie=n.ref.leave;for(let{visit:Xe,ruleId:Ue,severity:_e,context:Gt,message:at}of ie)fe.has(Gt)&&Xe(b,{report:te=>ht(Ue,_e,at,te),resolve:P,rawNode:b,rawLocation:A,location:w,type:x,parent:S,key:$,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>$e(Ue)},{node:k,location:O,error:se,chain:X})}function D(ie,Xe,Ue,_e,Gt,at,it){ie(Xe,{report:nr=>ht(Gt,at,it,nr),resolve:P,rawNode:Ue,location:q,rawLocation:A,type:x,parent:S,key:$,parentLocations:Qz(_e),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{l.add(`${q.absolutePointer}${q.pointer}`)},getVisitorData:()=>$e(Gt)},Yz(_e),_e)}function ht(ie,Xe,Ue,_e){let at=(_e.location?Array.isArray(_e.location)?_e.location:[_e.location]:[{...q,reportOnKey:!1}]).map(te=>({...q,reportOnKey:!1,...te})),it=_e.forceSeverity||Xe;it!=="off"&&i.problems.push({ruleId:_e.ruleId||ie,severity:it,..._e,message:Ue?Ue.replace("{{message}}",_e.message):_e.message,suggest:_e.suggest||[],location:at})}function $e(ie){return i.visitorsData[ie]=i.visitorsData[ie]||{},i.visitorsData[ie]}}}var rs=class extends Error{},cm=class extends Error{};function Jz(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function Wo(e,t,r,n){var o=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(o,Wo.prototype),o.expected=t,o.found=r,o.location=n,o.name="SyntaxError",o}Jz(Wo,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))}Wo.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," "),l=r[o.line-1],p=o.line===a.line?a.column:l.length+1,u=p-o.column||1;t+=`
|
|
112
|
-
--> `+s+`
|
|
113
|
-
`+c+` |
|
|
114
|
-
`+i.line+" | "+l+`
|
|
115
|
-
`+c+" | "+pm("",o.column-1," ")+pm("",u,"^")}else t+=`
|
|
116
|
-
at `+s}return t};Wo.buildMessage=function(e,t){var r={literal:function(l){return'"'+o(l.text)+'"'},class:function(l){var p=l.parts.map(function(u){return Array.isArray(u)?i(u[0])+"-"+i(u[1]):i(u)});return"["+(l.inverted?"^":"")+p.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(l){return l.description}};function n(l){return l.charCodeAt(0).toString(16).toUpperCase()}function o(l){return l.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function i(l){return l.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(p){return"\\x0"+n(p)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(p){return"\\x"+n(p)})}function s(l){return r[l.type](l)}function a(l){var p=l.map(s),u,f;if(p.sort(),p.length>0){for(u=1,f=1;u<p.length;u++)p[u-1]!==p[u]&&(p[f]=p[u],f++);p.length=f}switch(p.length){case 1:return p[0];case 2:return p[0]+" or "+p[1];default:return p.slice(0,-1).join(", ")+", or "+p[p.length-1]}}function c(l){return l?'"'+o(l)+'"':"end of input"}return"Expected "+a(e)+" but "+c(t)+" found."};function uS(e,t){t=t!==void 0?t:{};var r={},n=t.grammarSource,o={jsonpath_query:Nd},i=Nd,s="$",a=".",c="..",l="[",p=",",u="]",f="*",m=":",h="?",y='"',b="'",x="0",w="-",S="||",$="\\",P="u",A="&&",q="d",I="(",k=")",O="!",se="==",X="!=",fe="<=",N=">=",D="-0",ht="true",$e="false",ie="null",Xe="@",Ue="e",_e=/^[\t-\n\r ]/,Gt=/^[A-Z_a-z\x80-\uD7FF\uE000-\uFFFF]/,at=/^[\uD800-\uDBFF]/,it=/^[\uDC00-\uDFFF]/,te=/^[A-Za-z]/,nr=/^[0-9]/,K=/^[1-9]/,j=/^[ -!#-&(-[\]-\uD7FF\uE000-\uFFFF]/,ae=/^[\/\\bfnrt]/,M=/^[A-CE-F]/i,H=/^[0-7]/,Pe=/^[8-9]/,Ze=/^[A-B]/i,ke=/^[C-F]/i,$r=/^[A-F]/i,Er=/^[<>]/,Lk=/^[0-9_a-z]/,Fk=/^[+\-]/,Uk=/^[a-z]/,zk=Fe("$",!1),Vk=yt([[" ",`
|
|
117
|
-
`],"\r"," "],!1,!1),Rd=Fe(".",!1),Bk=Fe("..",!1),kd=Fe("[",!1),ip=Fe(",",!1),Id=Fe("]",!1),Hk=Fe("*",!1),Kk=yt([["A","Z"],"_",["a","z"],["\x80","\uD7FF"],["\uE000","\uFFFF"]],!1,!1),Fb=yt([["\uD800","\uDBFF"]],!1,!1),Ub=yt([["\uDC00","\uDFFF"]],!1,!1),zb=Fe(":",!1),Gk=Fe("?",!1),Wk=yt([["A","Z"],["a","z"]],!1,!1),Yk=yt([["0","9"]],!1,!1),sp=Fe('"',!1),ap=Fe("'",!1),Qk=Fe("0",!1),Jk=Fe("-",!1),Xk=yt([["1","9"]],!1,!1),Vb=Fe("||",!1),Zk=yt([[" ","!"],["#","&"],["(","["],["]","\uD7FF"],["\uE000","\uFFFF"]],!1,!1),Bb=Fe("\\",!1),eI=yt(["/","\\","b","f","n","r","t"],!1,!1),Hb=Fe("u",!1),Kb=Fe("&&",!1),tI=yt([["A","C"],["E","F"]],!1,!0),Cd=Fe("D",!0),rI=yt([["0","7"]],!1,!1),nI=yt([["8","9"]],!1,!1),oI=yt([["A","B"]],!1,!0),iI=yt([["C","F"]],!1,!0),Gb=Fe("(",!1),Wb=Fe(")",!1),sI=yt([["A","F"]],!1,!0),aI=Fe("!",!1),cI=Fe("==",!1),pI=Fe("!=",!1),lI=Fe("<=",!1),uI=Fe(">=",!1),dI=yt(["<",">"],!1,!1),fI=Fe("-0",!1),mI=Fe("true",!1),hI=Fe("false",!1),yI=Fe("null",!1),gI=Fe("@",!1),vI=yt([["0","9"],"_",["a","z"]],!1,!1),bI=Fe("e",!0),xI=yt(["+","-"],!1,!1),SI=yt([["a","z"]],!1,!1),wI=function(d){return{type:"JsonPathQuery",segments:d}},Yb=function(d){return d},_I=function(d){return d},PI=function(d){return{type:"ChildSegment",node:d}},$I=function(d){return{type:"DescendantSegment",node:d}},Qb=function(d,g){return g},EI=function(d,g){return[d,...g]},AI=function(d){return{type:"BracketedSelection",selectors:d}},OI=function(){return{type:"WildcardSelector"}},TI=function(d){return{type:"MemberNameShorthand",value:d}},RI=function(d){return{type:"NameSelector",value:d}},kI=function(d,g,_){return _},II=function(d,g,_){return{start:d,end:g,step:_}},CI=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)}},NI=function(d){return{type:"IndexSelector",value:Number.parseInt(d,10)}},qI=function(d){return{type:"FilterSelector",value:d}},DI=function(d){return d},jI=function(d){return d},MI=function(d){return d.join("")},LI=function(){return'"'},FI=function(d){switch(d){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
118
|
-
`;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return d.slice(1)}},UI=function(){return"'"},zI=function(d){switch(d){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
119
|
-
`;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return d.slice(1)}},Jb=function(d,g){return g},VI=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])}},Xb=function(d,g){return g},BI=function(d,g){return[d,...g]},HI=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])}},KI=function(){return String.fromCharCode(Number.parseInt(fC(),16))},GI=function(d,g){return String.fromCharCode(Number.parseInt(d,16))+String.fromCharCode(Number.parseInt(g,16))},WI=function(d){return d},YI=function(d,g){return d!==null?{type:"LogicalNotExpr",expression:g}:g},QI=function(d,g,_){return{type:"ComparisonExpr",left:d,op:g,right:_}},JI=function(d,g){return d!==null?{type:"LogicalNotExpr",expression:{type:"TestExpr",expression:g}}:{type:"TestExpr",expression:g}},XI=function(d){return{type:"FilterQuery",value:d}},Zb=function(d,g,_){return _},ZI=function(d,g,_){return[g,..._]},eC=function(d,g){return{type:"FunctionExpr",name:d,arguments:g}},tC=function(d){return{type:"Literal",value:d}},rC=function(d){return{type:"RelQuery",segments:d}},nC=function(d){return Number(d)},oC=function(){return!0},iC=function(){return!1},sC=function(){return null},aC=function(d){return{type:"RelSingularQuery",segments:d}},cC=function(d){return{type:"AbsSingularQuery",segments:d}},e0=function(d){return{type:"SingularQuerySegment",node:d}},pC=function(d){return d},lC=function(d){return d},uC=function(d){return d},dC=function(d){return{type:"IndexSelector",selector:d}},v=t.peg$currPos|0,G=v,qi=[{line:1,column:1}],Hr=v,cp=t.peg$maxFailExpected||[],F=t.peg$silentFails|0,pa;if(t.startRule){if(!(t.startRule in o))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');i=o[t.startRule]}function fC(){return e.substring(G,v)}function vne(){return G}function bne(){return{source:n,start:G,end:v}}function xne(){return la(G,v)}function Sne(d,g){throw g=g!==void 0?g:la(G,v),r0([hC(d)],e.substring(G,v),g)}function wne(d,g){throw g=g!==void 0?g:la(G,v),yC(d,g)}function Fe(d,g){return{type:"literal",text:d,ignoreCase:g}}function yt(d,g,_){return{type:"class",parts:d,inverted:g,ignoreCase:_}}function _ne(){return{type:"any"}}function mC(){return{type:"end"}}function hC(d){return{type:"other",description:d}}function t0(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 la(d,g,_){var R=t0(d),C=t0(g),U={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"&&(U.start=n.offset(U.start),U.end=n.offset(U.end)),U}function L(d){v<Hr||(v>Hr&&(Hr=v,cp=[]),cp.push(d))}function yC(d,g){return new Wo(d,null,null,g)}function r0(d,g,_){return new Wo(Wo.buildMessage(d,g),d,g,_)}function Nd(){var d,g,_;return d=v,g=n0(),g!==r?(_=o0(),G=d,d=wI(_)):(v=d,d=r),d}function n0(){var d;return e.charCodeAt(v)===36?(d=s,v++):(d=r,F===0&&L(zk)),d}function o0(){var d,g,_,R;for(d=[],g=v,_=Ee(),R=i0(),R!==r?(G=g,g=Yb(R)):(v=g,g=r);g!==r;)d.push(g),g=v,_=Ee(),R=i0(),R!==r?(G=g,g=Yb(R)):(v=g,g=r);return d}function Ee(){var d,g;for(d=[],g=s0();g!==r;)d.push(g),g=s0();return d}function i0(){var d;return d=gC(),d===r&&(d=vC()),d}function s0(){var d;return d=e.charAt(v),_e.test(d)?v++:(d=r,F===0&&L(Vk)),d}function gC(){var d,g,_,R;return d=v,g=a0(),g===r&&(g=v,e.charCodeAt(v)===46?(_=a,v++):(_=r,F===0&&L(Rd)),_!==r?(R=qd(),R===r&&(R=Dd()),R!==r?(G=g,g=_I(R)):(v=g,g=r)):(v=g,g=r)),g!==r&&(G=d,g=PI(g)),d=g,d}function vC(){var d,g,_;return d=v,e.substr(v,2)===c?(g=c,v+=2):(g=r,F===0&&L(Bk)),g!==r?(_=a0(),_===r&&(_=qd(),_===r&&(_=Dd())),_!==r?(G=d,d=$I(_)):(v=d,d=r)):(v=d,d=r),d}function a0(){var d,g,_,R,C,U,Q,ve,rt,Ar,or;if(d=v,e.charCodeAt(v)===91?(g=l,v++):(g=r,F===0&&L(kd)),g!==r){if(_=v,R=Ee(),C=jd(),C!==r){for(U=[],Q=v,ve=Ee(),e.charCodeAt(v)===44?(rt=p,v++):(rt=r,F===0&&L(ip)),rt!==r?(Ar=Ee(),or=jd(),or!==r?(G=Q,Q=Qb(C,or)):(v=Q,Q=r)):(v=Q,Q=r);Q!==r;)U.push(Q),Q=v,ve=Ee(),e.charCodeAt(v)===44?(rt=p,v++):(rt=r,F===0&&L(ip)),rt!==r?(Ar=Ee(),or=jd(),or!==r?(G=Q,Q=Qb(C,or)):(v=Q,Q=r)):(v=Q,Q=r);G=_,_=EI(C,U)}else v=_,_=r;_!==r?(R=Ee(),e.charCodeAt(v)===93?(C=u,v++):(C=r,F===0&&L(Id)),C!==r?(G=d,d=AI(_)):(v=d,d=r)):(v=d,d=r)}else v=d,d=r;return d}function qd(){var d,g;return d=v,e.charCodeAt(v)===42?(g=f,v++):(g=r,F===0&&L(Hk)),g!==r&&(G=d,g=OI()),d=g,d}function Dd(){var d,g,_,R,C,U;if(d=v,g=v,_=v,R=c0(),R!==r){for(C=[],U=p0();U!==r;)C.push(U),U=p0();R=[R,C],_=R}else v=_,_=r;return _!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=TI(g)),d=g,d}function jd(){var d;return d=l0(),d===r&&(d=qd(),d===r&&(d=bC(),d===r&&(d=u0(),d===r&&(d=xC())))),d}function c0(){var d,g,_;return d=e.charAt(v),Gt.test(d)?v++:(d=r,F===0&&L(Kk)),d===r&&(d=v,g=e.charAt(v),at.test(g)?v++:(g=r,F===0&&L(Fb)),g!==r?(_=e.charAt(v),it.test(_)?v++:(_=r,F===0&&L(Ub)),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function p0(){var d;return d=c0(),d===r&&(d=jn()),d}function l0(){var d,g;return d=v,g=d0(),g!==r&&(G=d,g=RI(g)),d=g,d}function bC(){var d,g,_,R,C,U,Q,ve,rt,Ar,or,Kr;return d=v,g=v,_=v,R=v,C=ua(),C!==r?(U=Ee(),C=[C,U],R=C):(v=R,R=r),R===r&&(R=null),_=e.substring(_,v),e.charCodeAt(v)===58?(R=m,v++):(R=r,F===0&&L(zb)),R!==r?(C=Ee(),U=v,Q=v,ve=ua(),ve!==r?(rt=Ee(),ve=[ve,rt],Q=ve):(v=Q,Q=r),Q===r&&(Q=null),U=e.substring(U,v),Q=v,e.charCodeAt(v)===58?(ve=m,v++):(ve=r,F===0&&L(zb)),ve!==r?(rt=v,Ar=v,or=Ee(),Kr=ua(),Kr===r&&(Kr=null),or=[or,Kr],Ar=or,rt=e.substring(rt,v),G=Q,Q=kI(_,U,rt)):(v=Q,Q=r),Q===r&&(Q=null),G=g,g=II(_,U,Q)):(v=g,g=r),g!==r&&(G=d,g=CI(g)),d=g,d}function u0(){var d,g,_;return d=v,g=v,_=ua(),_!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=NI(g)),d=g,d}function xC(){var d,g,_,R;return d=v,e.charCodeAt(v)===63?(g=h,v++):(g=r,F===0&&L(Gk)),g!==r?(_=Ee(),R=Md(),R!==r?(G=d,d=qI(R)):(v=d,d=r)):(v=d,d=r),d}function Pne(){var d;return d=e.charAt(v),te.test(d)?v++:(d=r,F===0&&L(Wk)),d}function jn(){var d;return d=e.charAt(v),nr.test(d)?v++:(d=r,F===0&&L(Yk)),d}function d0(){var d,g,_,R,C;if(d=v,g=v,e.charCodeAt(v)===34?(_=y,v++):(_=r,F===0&&L(sp)),_!==r){for(R=[],C=f0();C!==r;)R.push(C),C=f0();e.charCodeAt(v)===34?(C=y,v++):(C=r,F===0&&L(sp)),C!==r?(G=g,g=DI(R)):(v=g,g=r)}else v=g,g=r;if(g===r)if(g=v,e.charCodeAt(v)===39?(_=b,v++):(_=r,F===0&&L(ap)),_!==r){for(R=[],C=m0();C!==r;)R.push(C),C=m0();e.charCodeAt(v)===39?(C=b,v++):(C=r,F===0&&L(ap)),C!==r?(G=g,g=jI(R)):(v=g,g=r)}else v=g,g=r;return g!==r&&(G=d,g=MI(g)),d=g,d}function ua(){var d,g,_,R,C;if(e.charCodeAt(v)===48?(d=x,v++):(d=r,F===0&&L(Qk)),d===r)if(d=v,e.charCodeAt(v)===45?(g=w,v++):(g=r,F===0&&L(Jk)),g===r&&(g=null),_=SC(),_!==r){for(R=[],C=jn();C!==r;)R.push(C),C=jn();g=[g,_,R],d=g}else v=d,d=r;return d}function f0(){var d,g,_;return d=v,g=h0(),g!==r?d=e.substring(d,v):d=g,d===r&&(e.charCodeAt(v)===39?(d=b,v++):(d=r,F===0&&L(ap)),d===r&&(d=v,g=pp(),g!==r?(e.charCodeAt(v)===34?(_=y,v++):(_=r,F===0&&L(sp)),_!==r?(G=d,d=LI()):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,g=pp(),g!==r?(_=y0(),_!==r?(G=d,d=FI(_)):(v=d,d=r)):(v=d,d=r)))),d}function m0(){var d,g,_;return d=v,g=h0(),g!==r?d=e.substring(d,v):d=g,d===r&&(e.charCodeAt(v)===34?(d=y,v++):(d=r,F===0&&L(sp)),d===r&&(d=v,g=pp(),g!==r?(e.charCodeAt(v)===39?(_=b,v++):(_=r,F===0&&L(ap)),_!==r?(G=d,d=UI()):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,g=pp(),g!==r?(_=y0(),_!==r?(G=d,d=zI(_)):(v=d,d=r)):(v=d,d=r)))),d}function SC(){var d;return d=e.charAt(v),K.test(d)?v++:(d=r,F===0&&L(Xk)),d}function Md(){var d,g,_,R,C,U,Q,ve;if(d=v,g=Ld(),g!==r){for(_=[],R=v,C=Ee(),e.substr(v,2)===S?(U=S,v+=2):(U=r,F===0&&L(Vb)),U!==r?(Q=Ee(),ve=Ld(),ve!==r?(G=R,R=Jb(g,ve)):(v=R,R=r)):(v=R,R=r);R!==r;)_.push(R),R=v,C=Ee(),e.substr(v,2)===S?(U=S,v+=2):(U=r,F===0&&L(Vb)),U!==r?(Q=Ee(),ve=Ld(),ve!==r?(G=R,R=Jb(g,ve)):(v=R,R=r)):(v=R,R=r);G=d,d=VI(g,_)}else v=d,d=r;return d}function h0(){var d,g,_;return d=e.charAt(v),j.test(d)?v++:(d=r,F===0&&L(Zk)),d===r&&(d=v,g=e.charAt(v),at.test(g)?v++:(g=r,F===0&&L(Fb)),g!==r?(_=e.charAt(v),it.test(_)?v++:(_=r,F===0&&L(Ub)),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function pp(){var d;return e.charCodeAt(v)===92?(d=$,v++):(d=r,F===0&&L(Bb)),d}function y0(){var d,g,_;return d=e.charAt(v),ae.test(d)?v++:(d=r,F===0&&L(eI)),d===r&&(d=v,e.charCodeAt(v)===117?(g=P,v++):(g=r,F===0&&L(Hb)),g!==r?(_=wC(),_!==r?(g=[g,_],d=g):(v=d,d=r)):(v=d,d=r)),d}function Ld(){var d,g,_,R,C,U,Q,ve,rt;if(d=v,g=v,_=Fd(),_!==r){for(R=[],C=v,U=Ee(),e.substr(v,2)===A?(Q=A,v+=2):(Q=r,F===0&&L(Kb)),Q!==r?(ve=Ee(),rt=Fd(),rt!==r?(G=C,C=Xb(_,rt)):(v=C,C=r)):(v=C,C=r);C!==r;)R.push(C),C=v,U=Ee(),e.substr(v,2)===A?(Q=A,v+=2):(Q=r,F===0&&L(Kb)),Q!==r?(ve=Ee(),rt=Fd(),rt!==r?(G=C,C=Xb(_,rt)):(v=C,C=r)):(v=C,C=r);G=g,g=BI(_,R)}else v=g,g=r;return g!==r&&(G=d,g=HI(g)),d=g,d}function wC(){var d,g,_,R,C,U,Q;return d=v,g=v,_=_C(),_!==r&&(G=g,_=KI()),g=_,g===r&&(g=v,_=v,R=PC(),R!==r?_=e.substring(_,v):_=R,_!==r?(e.charCodeAt(v)===92?(R=$,v++):(R=r,F===0&&L(Bb)),R!==r?(e.charCodeAt(v)===117?(C=P,v++):(C=r,F===0&&L(Hb)),C!==r?(U=v,Q=$C(),Q!==r?U=e.substring(U,v):U=Q,U!==r?(G=g,g=GI(_,U)):(v=g,g=r)):(v=g,g=r)):(v=g,g=r)):(v=g,g=r)),g!==r&&(G=d,g=WI(g)),d=g,d}function Fd(){var d;return d=EC(),d===r&&(d=AC(),d===r&&(d=OC())),d}function _C(){var d,g,_,R,C,U;if(d=v,g=jn(),g===r&&(g=e.charAt(v),M.test(g)?v++:(g=r,F===0&&L(tI))),g!==r){for(_=v,R=[],C=io();C!==r;)R.push(C),R.length>=3?C=r:C=io();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()===q?v++:(g=r,F===0&&L(Cd)),g!==r)if(_=e.charAt(v),H.test(_)?v++:(_=r,F===0&&L(rI)),_!==r){for(R=v,C=[],U=io();U!==r;)C.push(U),C.length>=2?U=r:U=io();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 PC(){var d,g,_,R,C,U;if(d=v,g=e.charAt(v),g.toLowerCase()===q?v++:(g=r,F===0&&L(Cd)),g!==r)if(_=e.charAt(v),Pe.test(_)?v++:(_=r,F===0&&L(nI)),_===r&&(_=e.charAt(v),Ze.test(_)?v++:(_=r,F===0&&L(oI))),_!==r){for(R=v,C=[],U=io();U!==r;)C.push(U),C.length>=2?U=r:U=io();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 $C(){var d,g,_,R,C,U;if(d=v,g=e.charAt(v),g.toLowerCase()===q?v++:(g=r,F===0&&L(Cd)),g!==r)if(_=e.charAt(v),ke.test(_)?v++:(_=r,F===0&&L(iI)),_!==r){for(R=v,C=[],U=io();U!==r;)C.push(U),C.length>=2?U=r:U=io();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 EC(){var d,g,_,R,C,U,Q;return d=v,g=v,_=g0(),_!==r?(R=Ee(),_=[_,R],g=_):(v=g,g=r),g===r&&(g=null),e.charCodeAt(v)===40?(_=I,v++):(_=r,F===0&&L(Gb)),_!==r?(R=Ee(),C=Md(),C!==r?(U=Ee(),e.charCodeAt(v)===41?(Q=k,v++):(Q=r,F===0&&L(Wb)),Q!==r?(G=d,d=YI(g,C)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}function AC(){var d,g,_,R,C,U;return d=v,g=v0(),g!==r?(_=Ee(),R=TC(),R!==r?(C=Ee(),U=v0(),U!==r?(G=d,d=QI(g,R,U)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}function OC(){var d,g,_,R;return d=v,g=v,_=g0(),_!==r?(R=Ee(),_=[_,R],g=_):(v=g,g=r),g===r&&(g=null),_=b0(),_===r&&(_=Ud()),_!==r?(G=d,d=JI(g,_)):(v=d,d=r),d}function io(){var d;return d=jn(),d===r&&(d=e.charAt(v),$r.test(d)?v++:(d=r,F===0&&L(sI))),d}function g0(){var d;return e.charCodeAt(v)===33?(d=O,v++):(d=r,F===0&&L(aI)),d}function v0(){var d;return d=x0(),d===r&&(d=RC(),d===r&&(d=Ud())),d}function TC(){var d;return e.substr(v,2)===se?(d=se,v+=2):(d=r,F===0&&L(cI)),d===r&&(e.substr(v,2)===X?(d=X,v+=2):(d=r,F===0&&L(pI)),d===r&&(e.substr(v,2)===fe?(d=fe,v+=2):(d=r,F===0&&L(lI)),d===r&&(e.substr(v,2)===N?(d=N,v+=2):(d=r,F===0&&L(uI)),d===r&&(d=e.charAt(v),Er.test(d)?v++:(d=r,F===0&&L(dI)))))),d}function b0(){var d,g;return d=v,g=kC(),g===r&&(g=Nd()),g!==r&&(G=d,g=XI(g)),d=g,d}function Ud(){var d,g,_,R,C,U,Q,ve,rt,Ar,or,Kr;if(d=v,g=IC(),g!==r)if(e.charCodeAt(v)===40?(_=I,v++):(_=r,F===0&&L(Gb)),_!==r){if(R=Ee(),C=v,U=zd(),U!==r){for(Q=[],ve=v,rt=Ee(),e.charCodeAt(v)===44?(Ar=p,v++):(Ar=r,F===0&&L(ip)),Ar!==r?(or=Ee(),Kr=zd(),Kr!==r?(G=ve,ve=Zb(g,U,Kr)):(v=ve,ve=r)):(v=ve,ve=r);ve!==r;)Q.push(ve),ve=v,rt=Ee(),e.charCodeAt(v)===44?(Ar=p,v++):(Ar=r,F===0&&L(ip)),Ar!==r?(or=Ee(),Kr=zd(),Kr!==r?(G=ve,ve=Zb(g,U,Kr)):(v=ve,ve=r)):(v=ve,ve=r);G=C,C=ZI(g,U,Q)}else v=C,C=r;C===r&&(C=null),U=Ee(),e.charCodeAt(v)===41?(Q=k,v++):(Q=r,F===0&&L(Wb)),Q!==r?(G=d,d=eC(g,C)):(v=d,d=r)}else v=d,d=r;else v=d,d=r;return d}function x0(){var d,g;return d=v,g=CC(),g===r&&(g=d0(),g===r&&(g=NC(),g===r&&(g=qC(),g===r&&(g=DC())))),g!==r&&(G=d,g=tC(g)),d=g,d}function RC(){var d;return d=jC(),d===r&&(d=MC()),d}function kC(){var d,g,_;return d=v,g=S0(),g!==r?(_=o0(),_!==r?(G=d,d=rC(_)):(v=d,d=r)):(v=d,d=r),d}function IC(){var d,g,_,R,C;if(d=v,g=v,_=UC(),_!==r){for(R=[],C=w0();C!==r;)R.push(C),C=w0();_=[_,R],g=_}else v=g,g=r;return g!==r?d=e.substring(d,v):d=g,d}function zd(){var d;return d=x0(),d===r&&(d=b0(),d===r&&(d=Ud(),d===r&&(d=Md()))),d}function CC(){var d,g,_,R,C,U;return d=v,g=v,_=v,R=ua(),R===r&&(e.substr(v,2)===D?(R=D,v+=2):(R=r,F===0&&L(fI))),R!==r?(C=LC(),C===r&&(C=null),U=FC(),U===r&&(U=null),R=[R,C,U],_=R):(v=_,_=r),_!==r?g=e.substring(g,v):g=_,g!==r&&(G=d,g=nC(g)),d=g,d}function NC(){var d,g;return d=v,e.substr(v,4)===ht?(g=ht,v+=4):(g=r,F===0&&L(mI)),g!==r&&(G=d,g=oC()),d=g,d}function qC(){var d,g;return d=v,e.substr(v,5)===$e?(g=$e,v+=5):(g=r,F===0&&L(hI)),g!==r&&(G=d,g=iC()),d=g,d}function DC(){var d,g;return d=v,e.substr(v,4)===ie?(g=ie,v+=4):(g=r,F===0&&L(yI)),g!==r&&(G=d,g=sC()),d=g,d}function jC(){var d,g,_;return d=v,g=S0(),g!==r?(_=_0(),G=d,d=aC(_)):(v=d,d=r),d}function MC(){var d,g,_;return d=v,g=n0(),g!==r?(_=_0(),G=d,d=cC(_)):(v=d,d=r),d}function S0(){var d;return e.charCodeAt(v)===64?(d=Xe,v++):(d=r,F===0&&L(gI)),d}function w0(){var d;return d=e.charAt(v),Lk.test(d)?v++:(d=r,F===0&&L(vI)),d}function LC(){var d,g,_,R;if(d=v,e.charCodeAt(v)===46?(g=a,v++):(g=r,F===0&&L(Rd)),g!==r){if(_=[],R=jn(),R!==r)for(;R!==r;)_.push(R),R=jn();else _=r;_!==r?(g=[g,_],d=g):(v=d,d=r)}else v=d,d=r;return d}function FC(){var d,g,_,R,C;if(d=v,g=e.charAt(v),g.toLowerCase()===Ue?v++:(g=r,F===0&&L(bI)),g!==r){if(_=e.charAt(v),Fk.test(_)?v++:(_=r,F===0&&L(xI)),_===r&&(_=null),R=[],C=jn(),C!==r)for(;C!==r;)R.push(C),C=jn();else R=r;R!==r?(g=[g,_,R],d=g):(v=d,d=r)}else v=d,d=r;return d}function _0(){var d,g,_,R,C;for(d=v,g=[],_=v,R=Ee(),C=P0(),C===r&&(C=$0()),C!==r?(G=_,_=e0(C)):(v=_,_=r);_!==r;)g.push(_),_=v,R=Ee(),C=P0(),C===r&&(C=$0()),C!==r?(G=_,_=e0(C)):(v=_,_=r);return G=d,g=pC(g),d=g,d}function UC(){var d;return d=e.charAt(v),Uk.test(d)?v++:(d=r,F===0&&L(SI)),d}function P0(){var d,g,_,R;return d=v,e.charCodeAt(v)===91?(g=l,v++):(g=r,F===0&&L(kd)),g!==r?(_=l0(),_!==r?(e.charCodeAt(v)===93?(R=u,v++):(R=r,F===0&&L(Id)),R!==r?(G=d,d=lC(_)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d===r&&(d=v,e.charCodeAt(v)===46?(g=a,v++):(g=r,F===0&&L(Rd)),g!==r?(_=Dd(),_!==r?(G=d,d=uC(_)):(v=d,d=r)):(v=d,d=r)),d}function $0(){var d,g,_,R;return d=v,e.charCodeAt(v)===91?(g=l,v++):(g=r,F===0&&L(kd)),g!==r?(_=u0(),_!==r?(e.charCodeAt(v)===93?(R=u,v++):(R=r,F===0&&L(Id)),R!==r?(G=d,d=dC(_)):(v=d,d=r)):(v=d,d=r)):(v=d,d=r),d}if(pa=i(),t.peg$library)return{peg$result:pa,peg$currPos:v,peg$FAILED:r,peg$maxFailExpected:cp,peg$maxFailPos:Hr};if(pa!==r&&v===e.length)return pa;throw pa!==r&&v<e.length&&L(mC()),r0(cp,Hr<e.length?e.charAt(Hr):null,Hr<e.length?la(Hr,Hr+1):la(Hr,Hr))}function Rp(e){return uS(e)}var ns=class{head=null;tail=null;size=0;push(t){let r={value:t,next:null};this.tail!==null&&(this.tail.next=r),this.tail=r,this.head===null&&(this.head=r),this.size++}pop(){if(this.head===null)return;let t=this.head.value;return this.head=this.head.next,this.head===null&&(this.tail=null),this.size--,t}};function zn(e){if(typeof e!="object"||e===null)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var os=e=>Array.isArray(e.value),is=e=>zn(e.value);var dS=new WeakSet,pt=e=>typeof e=="object"&&e!==null&&dS.has(e),fS=e=>{switch(typeof e){case"string":case"number":case"boolean":return!0;case"object":return e===null||zn(e)||lm(e);default:return!1}},lm=e=>Array.isArray(e)&&!pt(e),kp=()=>{let e=[];return dS.add(e),e},kr=Symbol("Nothing");var mS={declaration:function(t,r){return pt(r)?r.length:0},definition:{parameters:["NodesType"],returnType:"ValueType"}};function Xz(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 hS={declaration:function(t,r){return typeof r=="string"?Xz(r):Array.isArray(r)?r.length:zn(r)?Object.keys(r).length:kr},definition:{parameters:["ValueType"],returnType:"ValueType"}};function yS(e){return e===92}function Zz(e,t){let r=!1,n=t;for(;n<e.length;){let o=e.charCodeAt(n);if(n++,yS(o)){r=!0;continue}if(o===93){if(!r)break;r=!1}}return n}function eV(e){let t=e;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);yS(n)?r++:n===91?r=Zz(e,r):n===46&&(t=`${e.slice(0,r)}[^
|
|
120
|
-
\r]${e.slice(r+1)}`)}return t}function Ea({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(eV(t),"u");return r[t]=n,n}catch{return r[t]=null,null}}var gS={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Ea(t,`^${n}$`)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}};var vS={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Ea(t,n)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}};var bS={declaration:function(t,r){return r.length===1?r[0]:kr},definition:{parameters:["NodesType"],returnType:"ValueType"}};var um=[];function St(e,t){return e===um?um:typeof t=="number"?[...e,t]:[...e,nV(t)]}function xS(e){return e?[]:um}var tV=/[\u0000-\u001f'\\]/g;function rV(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 nV(e){return e.replace(tV,rV)}function SS(e){let t="$";for(let r of e)typeof r=="number"?t+=`[${r}]`:t+=`['${r}']`;return t}function pr(e){throw new TypeError(`Unexpected node type: ${e.type}`)}function Yt(e){throw new TypeError(`Unexpected comparison operator: ${e}`)}function Ip(e,t){throw new Error(t)}function Yo(e){switch(typeof e){case"object":if(e===null)return"null";if(pt(e))return"NodeList";if(lm(e))return"array";if(zn(e))return"object";throw new TypeError(`Unknown type: ${e}`);case"string":return"string";case"number":return"number";case"boolean":return"boolean";default:if(e===kr)return"Nothing";throw new TypeError(`Unknown type: ${e}`)}}function oV(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!gn(e[r],t[r]))return!1;return!0}function iV(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)||!gn(e[o],t[o]))return!1;return!0}function gn(e,t){if(Yo(e)!==Yo(t))return!1;switch(Yo(e)){case"string":case"number":case"boolean":case"null":return e===t;case"object":return iV(e,t);case"array":case"NodeList":return oV(e,t);default:return!1}}function Cp(e,t,r){switch(r){case"==":case">=":case"<=":return!pt(e)&&!pt(t)&&gn(e,t);case"<":case">":return!1;case"!=":return!Cp(e,t,"==");default:Yt(r)}}function Np(e,t,r){switch(r){case"==":case"<=":case">=":return pt(e)&&(pt(t)&&gn(e,t)||t===kr);case"<":case">":return!1;case"!=":return!Np(e,t,"==");default:Yt(r)}}function qp(e,t,r){switch(r){case"==":case"<=":case">=":return t===kr||pt(t)&&t.length===0;case"<":case">":return!1;case"!=":return!qp(e,t,"==");default:Yt(r)}}function Vn(e,t,r){switch(r){case"==":return e===t;case"<":return typeof t=="number"&&e<t;case"!=":return!Vn(e,t,"==");case"<=":return Vn(e,t,"<")||Vn(e,t,"==");case">":return typeof t=="number"&&Vn(t,e,"<");case">=":return typeof t=="number"&&Vn(t,e,"<")||Vn(e,t,"==");default:Yt(r)}}function dm(e,t,r){switch(r){case"==":case"<=":case">=":return gn(e,t);case"<":case">":return!1;case"!=":return!gn(e,t);default:Yt(r)}}function Dp(e,t,r){switch(r){case"==":case"<=":case">=":return e===t;case"<":case">":return!1;case"!=":return!Dp(e,t,"==");default:Yt(r)}}function Qo(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:Yt(r)}}function wS(e,t,r){switch(r){case"==":case"<":return Qo(e,t,r);case"!=":return!Qo(e,t,"==");case"<=":return Qo(e,t,"<")||Qo(e,t,"==");case">":return Qo(t,e,"<");case">=":return Qo(t,e,"<")||Qo(e,t,"==");default:Yt(r)}}function fm(e,t,r){let n=pt(e)&&e.length===1?e[0]:e,o=Yo(n),i=pt(t)&&t.length===1?t[0]:t;switch(o){case"string":return wS(n,i,r);case"number":return Vn(n,i,r);case"boolean":case"null":return Dp(n,i,r);case"object":return dm(n,i,r);case"array":return Cp(n,i,r);case"Nothing":return qp(n,i,r);case"NodeList":return Np(n,i,r);default:Ip(o,"Unknown type")}}function Aa(e,t,r){let n=kp();switch(r.value.type){case"RelQuery":uo(e,t.root,t.value,r.value,o=>{n.push(o)});break;case"JsonPathQuery":uo(e,t.root,t.root,r.value,o=>{n.push(o)});break;default:pr(r.value)}return n}function mm(e,t,r){switch(r.expression.type){case"FilterQuery":return Aa(e,t,r.expression).length>0;case"FunctionExpr":return Jo(e,t,r.expression)===!0;default:pr(r.expression)}}function vn(e,t,r){switch(r.type){case"LogicalNotExpr":return!vn(e,t,r.expression);case"LogicalAndExpr":return vn(e,t,r.left)&&vn(e,t,r.right);case"LogicalOrExpr":return vn(e,t,r.left)||vn(e,t,r.right);case"TestExpr":return mm(e,t,r);case"ComparisonExpr":return Oa(e,t,r);default:pr(r)}}function hm(e,t,r){switch(r.type){case"FunctionExpr":return Jo(e,t,r);case"FilterQuery":return Aa(e,t,r);case"LogicalNotExpr":case"LogicalAndExpr":case"LogicalOrExpr":case"TestExpr":return vn(e,t,r);case"Literal":return r.value;default:pr(r)}}function sV(e){return pt(e)?e.length===1?e[0]:kr:e}function Jo(e,t,r){if(!aV(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=hm(e,t,r.arguments[i]),a=n.definition.parameters[i];switch(a){case"ValueType":if(!pt(s)&&!fS(s))return!1;o.push(sV(s));break;case"NodesType":if(!pt(s))return!1;o.push(s);break;case"LogicalType":if(typeof s=="boolean")o.push(s);else if(pt(s))o.push(s.length>0);else return!1;break;default:Ip(a,"Unknown function argument type")}}return n.declaration(e,...o)}function aV(e,t){return Object.hasOwn(e,t)}function jp(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=kp();return uo(e,t.root,n,r,i=>{o.push(i)}),o}case"FunctionExpr":return Jo(e,t,r);default:pr(r)}}function Oa(e,t,r){let n=jp(e,t,r.left),o=jp(e,t,r.right);return fm(n,o,r.op)}function Mp(e,t,r){if(r.value.type==="ComparisonExpr"){if(!Oa(e,t,r.value))return}else if(!vn(e,t,r.value))return;e.stack.push({root:t.root,path:t.path,value:t.value,index:t.index+1})}function cV(e,t){return e<0?t+e:e}function Ta(e,t,r){let n=cV(r.value,t.value.length);n>=0&&n<t.value.length&&e.stack.push({root:t.root,path:St(t.path,n),value:t.value[n],index:t.index+1})}function Ra(e,{root:t,path:r,value:n,index:o},i){Object.hasOwn(n,i.value)&&e.stack.push({root:t,path:St(r,i.value),value:n[i.value],index:o+1})}function Lp(e,t){return e>=0?e:t+e}function pV(e,t,r,n){let o=Lp(e,n),i=Lp(t,n);if(r>=0){let c=Math.min(Math.max(o,0),n),l=Math.min(Math.max(i,0),n);return[c,l]}let s=Math.min(Math.max(o,-1),n-1);return[Math.min(Math.max(i,-1),n-1),s]}function ym(e,{root:t,path:r,value:n,index:o},i){let s=i.step??1,a=s>=0?0:n.length-1,c=s>=0?n.length:-n.length-1,l=i.start===null?a:Lp(i.start,n.length),p=i.end===null?c:Lp(i.end,n.length),[u,f]=pV(l,p,s,n.length);if(s>0){let m=u;for(;m<f;)e.stack.push({root:t,path:St(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:St(r,m),value:n[m],index:o+1}),m+=s}}function ka(e,{root:t,path:r,value:n,index:o}){if(Array.isArray(n))for(let i=0;i<n.length;i++)e.stack.push({root:t,path:St(r,i),value:n[i],index:o+1});else if(zn(n))for(let i of Object.keys(n))e.stack.push({root:t,path:St(r,i),value:n[i],index:o+1})}function gm(e,t,r){for(let n of r.selectors)switch(n.type){case"NameSelector":is(t)&&Ra(e,t,n);break;case"SliceSelector":os(t)&&ym(e,t,n);break;case"IndexSelector":{os(t)&&Ta(e,t,n);break}case"WildcardSelector":ka(e,t);break;case"FilterSelector":{os(t)?lV(e,t,n):is(t)&&uV(e,t,n);break}default:pr(n)}}function lV(e,{root:t,path:r,value:n,index:o},i){for(let s=0;s<n.length;s++)Mp(e,{root:t,path:St(r,s),value:n[s],index:o},i)}function uV(e,{root:t,path:r,value:n,index:o},i){for(let s of Object.keys(n))Mp(e,{root:t,path:St(r,s),value:n[s],index:o},i)}function vm(e,{root:t,path:r,value:n,index:o},i){Object.hasOwn(n,i.value)&&e.stack.push({root:t,path:St(r,i.value),value:n[i.value],index:o+1})}function _S(e,t,r){switch(r.type){case"BracketedSelection":return gm(e,t,r);case"WildcardSelector":return ka(e,t);case"MemberNameShorthand":is(t)&&vm(e,t,r);break;case"NameSelector":is(t)&&Ra(e,t,r);break;case"IndexSelector":os(t)&&Ta(e,t,r);break;default:pr(r)}}function uo(e,t,r,n,o){let i=new ns;i.push({root:t,path:xS(e.capturePaths),value:r,index:0});let s={cache:e.cache,capturePaths:!1,functions:e.functions,regexp:e.regexp,stack:i};for(;i.size>0;){let a=i.pop();if(a.index===n.segments.length){o(a.value,a.path);continue}let{path:c,value:l,index:p}=a,u=n.segments[p];if(_S(s,a,u.node),u.type==="DescendantSegment"){if(Array.isArray(l))for(let f=0;f<l.length;f++)i.push({root:t,path:St(c,f),value:l[f],index:p});else if(l!==null&&typeof l=="object")for(let f of Object.keys(l))i.push({root:t,path:St(c,f),value:l[f],index:p})}}}function Fp(e,t,r,n){let o={cache:new Map,capturePaths:r.capturePaths,functions:{count:mS,search:vS,value:bS,match:gS,length:hS},regexp:"i-regexp",stack:new ns};uo(o,e,e,Rp(t),n)}var dV={capturePaths:!0};function $ce(e,t){let r=[];return Fp(e,t,{capturePaths:!1},n=>{r.push(n)}),r}function PS(e,t){let r=[];return Fp(e,t,dV,(n,o)=>{r.push(SS(o))}),r}import*as Vp from"node:path";import{pathToFileURL as fV}from"node:url";function Ia(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}var $S="#/components/actions/";function ES(e,t,r){let n=Wr(fa),o={problems:[],specVersion:"overlay1",visitorsData:{}},i=new Set,{$self:s,components:a}=t.parsed,c=typeof s=="string"?r.resolveExternalRef(t.source.absoluteRef,s):t.source.absoluteRef,l=(u,f,m)=>{let h=S=>{let $=u[S];if(typeof $!="string"){m({message:`The \`${S}\` field must be a JSONPath expression.`,location:f.child([S])});return}try{return mV(e.parsed,$)}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}yV(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",bm(b,S=>{let $=r.resolveExternalRef(c,S),P=e.source.absoluteRef;if(ce($))return $;if(ce(P)){let A=fV($).href;return r.overlayFiles.add(A),A}return Ia(Vp.relative(Vp.dirname(P),$))});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=xm(e.parsed,S[0].keys),x="copy"}if(b===void 0)return;if(new Set(y.map(({keys:S})=>{let $=xm(e.parsed,S);return Array.isArray($)?"array":T($)?"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 $=hV(e.parsed,S,b,i);if($){m({message:$,location:f.child([x])});return}}},p={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(!T(h)){f({message:"An action must be an object.",location:b});return}if(!B(h)){l(h,b,f);return}let{$ref:x,target:w,description:S,...$}=h,P=Object.keys($).find(q=>!q.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 A=x.startsWith($S)?tt(a?.actions??{},up(x.slice($S.length))):void 0;if(!A){f({message:`Can't find the reusable action \`${x}\`.`,location:b.child(["$ref"])});return}l({...A.fields,target:w},b,f)})}};return Ft({document:t,rootType:n.Root,normalizedVisitors:Lt([{severity:"error",ruleId:"overlay",visitor:p}],n),resolvedRefMap:new Map,ctx:o}),o.problems}function bm(e,t){if(Array.isArray(e))for(let r of e)bm(r,t);else if(T(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 bm(n,t)}function mV(e,t){return[...new Set(PS(e,t))].map(r=>({jsonPath:r,keys:Rp(r).segments.flatMap(({node:n})=>n.type==="BracketedSelection"?n.selectors.flatMap(o=>o.type==="NameSelector"||o.type==="IndexSelector"?[o.value]:[]):[])}))}function hV(e,{jsonPath:t,keys:r},n,o){let i=xm(e,r);if(zp(i)){if(!zp(n))return Sm(n,i,t);Up(e,r.slice(0,-1),o)[r[r.length-1]]=n;return}let s=Up(e,r,o);if(Array.isArray(s)){s.push(...Array.isArray(n)?structuredClone(n):[structuredClone(n)]);return}return T(n)?AS(s,n,t,o):Sm(n,s,t)}function AS(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(T(s)&&T(i)){let a=AS(Up(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(zp(s)&&zp(i))e[o]=i;else return Sm(i,s,`${r}['${o}']`)}}function yV(e,t,r){let n=t.map(({keys:i})=>({parent:Up(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 xm(e,t){return t.reduce((r,n)=>r[n],e)}function Up(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 zp(e){return!T(e)&&!Array.isArray(e)}function Sm(e,t,r){let n=o=>o===null?"null":Array.isArray(o)?"array":typeof o;return`Cannot apply ${n(e)} to ${n(t)} at ${r}.`}var Et=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},ref:{leave(t,{report:r,location:n},o){o.node===void 0&&ss(o,r,n)}},DiscriminatorMapping(t,{report:r,location:n}){for(let o of Object.keys(t)){let i=t[o];Tr(i)||e.includes(i)||r({message:`Discriminator mapping value '${i}' does not point to an existing schema component.`,location:n.child(o),reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}}}};function ss(e,t,r){let n=e.error;n instanceof hn&&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 OS(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Bp(e){let t=T(e)&&et(e.title)?e.title.trim():"",r=OS(t).replace(new RegExp(`[^${fp}]`,"g"),"-");return{title:t,name:r}}function _r(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--&&_r(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)||!_r(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Xo(e){return e.chain?.[0]??{node:e.node,location:e.location}}function wm(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 TS({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,l=new Map,p=wm("Schema",e),u={ref:{leave(w,S,$){if(!$.location||$.node===void 0){ss($,S.report,S.location);return}let P=Xo($);if(P.location.source===r.source&&P.location.source===S.location.source&&S.type.name!=="scalar"&&!t){ao(w.$ref).uri!==null&&w.$ref!==P.location.pointer&&(w.$ref=P.location.pointer);return}if(o&&ce(w.$ref)&&!co(w.$ref))return;let A=wm(S.type.name,e);A?t?(m(A,P,S),da(w,P,S)):(w.$ref=m(A,P,S),f(w,$,S)):da(w,P,S)}},Example:{leave(w,S){if(lp(w)&&w.value===void 0){let $=S.resolve({$ref:w.externalValue});if(!$.location||$.node===void 0){ss($,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"||!Tr(w.defaultMapping))return;let $=S.resolve({$ref:w.defaultMapping});if(!$.location||$.node===void 0){ss($,S.report,S.location.child("defaultMapping"));return}w.defaultMapping=m(p,Xo($),S)},DiscriminatorMapping:{leave(w,S){for(let $ of Object.keys(w)){let P=w[$];if(!Tr(P))continue;let A=S.resolve({$ref:P});if(!A.location||A.node===void 0){ss(A,S.report,S.location.child($));return}w[$]=m(p,Xo(A),S)}}}});function f(w,S,$){let P={resolved:!0,isRemote:!1,node:S.node,chain:S.chain,document:r,nodePointer:w.$ref};n.set(Fn($.location.source.absoluteRef,w.$ref),P),n.set(Fn(r.source.absoluteRef,w.$ref),P)}function m(w,S,$){a[w]=a[w]||{};let P=x(S,w,$);return a[w][P]=S.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${w}/${P}`:`#/${w}/${P}`}function h(w,S,$){if(B(w)){let P=$.resolve(w,c.absolutePointer);if((P.location&&Xo(P).location)?.absolutePointer===S.location.absolutePointer)return!0}return _r(w,S.node)}function y(w,S,$){let{title:P,name:A}=Bp(w.node),q=w.location.child("title");return P===""?{key:A,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:w.location,forceSeverity:"error"}}:S[A]&&!h(S[A],w,$)?{key:A,problem:{message:`Title "${P}" maps to component name \`${A}\`, already used by another schema. Rename one of the titles.`,location:q,from:l.get(A),forceSeverity:i}}:{key:A}}function b(w,S,$){let P=A0(w.location.pointer)||O0(w.location.source.absoluteRef),A=P;for(let q=2;S[A]&&!h(S[A],w,$);q++)A=`${P}-${q}`;return{name:A,prevName:P}}function x(w,S,$){let P=a[S];if(s==="title"&&S===p){let{key:I,problem:k}=y(w,P,$);if(!k)return l.set(I,w.location.child("title")),I;let{name:O}=b(w,P,$);return P[O]||($.report(k),l.set(O,w.location)),O}let{name:A,prevName:q}=b(w,P,$);return!P[A]&&q!==A&&$.report({message:`Two schemas are referenced with the same name but different content. Renamed ${q} to ${A}.`,location:$.location,forceSeverity:i}),A}return u}var gV=["definitions","parameters","responses","securityDefinitions"],Hp=()=>{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]=ao(o).pointer;if(!(!i||!s)&&gV.includes(i))return`${i}/${s}`}function n(o,i=new Set){let s=i.size;for(let[a,{usedIn:c,name:l,componentType:p}]of e)!c.some(f=>f!==a&&!i.has(f))&&p&&(i.add(a),delete o[p][l],e.delete(a),br(o[p])&&delete o[p]);return i.size>s?n(o,i):i.size}return{ref:{leave(o,{location:i,type:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(s.name)){let c=r(o.$ref);if(!c)return;let l=r(i.pointer)??i.pointer,p=e.get(c);p?p.usedIn.push(l):e.set(c,{usedIn:[l],name:a.toString()})}}},Root:{leave(o,i){let s=i.getVisitorData();s.removedCount=n(o)}},NamedSchemas:{Schema(o,{key:i}){o.allOf||t("definitions",i.toString())}},NamedParameters:{Parameter(o,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(o,{key:i}){t("responses",i.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{key:i}){t("securityDefinitions",i.toString())}},SecurityRequirement(o){for(let i of Object.keys(o)){let s=`securityDefinitions/${i}`,a=e.get(s);a?a.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:i})}}}};function RS(e,t){return t in e}function kS(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=ao(e).pointer;if(!(!r||!n))return`${r}/${n}`}var Kp=()=>{let e=new Map;function t(n,o,i=!1){let s=`${n}/${o}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:n,name:o,referencesDiscriminator:i})}function r(n,o=new Set){let i=o.size;for(let[s,{usedIn:a,name:c,componentType:l,referencesDiscriminator:p}]of e)if(!(a.some(f=>f!==s&&!o.has(f))||p)&&l&&n.components&&RS(n.components,l)){o.add(s);let f=n.components[l];delete f[c],e.delete(s),br(f)&&delete n.components[l]}return o.size>i?r(n,o):o.size}return{ref:{leave(n,{location:o,type:i,key:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(i.name)){let a=kS(n.$ref);if(!a)return;let c=kS(o.pointer)??o.pointer,l=e.get(a);l?l.usedIn.push(c):e.set(a,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,o){let i=o.getVisitorData();i.removedCount=r(n),br(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 _m(e){let{document:t,config:r,types:n,externalRefResolver:o,dereference:i=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:l="basename",overlays:p=[]}=e,u=Un(t.parsed),f=$a(u),m=r.getRulesForSpecVersion(f),h=Wr(r.extendTypes(n,u),r),y=Di(m,r,"preprocessors",u),b=Di(m,r,"decorators",u),x={problems:[],specVersion:u,config:r,refTypes:new Map,visitorsData:{}},w=await wr({rootDocument:t,rootType:h.Root,externalRefResolver:o});y.length>0&&(Ft({document:t,rootType:h.Root,normalizedVisitors:Lt(y,h),resolvedRefMap:w,ctx:x}),w=await wr({rootDocument:t,rootType:h.Root,externalRefResolver:o}));let S=(P,A)=>({severity:"error",ruleId:"bundler",visitor:TS({version:f,dereference:A,rootDocument:t,resolvedRefMap:P,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:l})}),$=b.filter(P=>P.ruleId!=="remove-unused-components");if(Ft({document:t,rootType:h.Root,normalizedVisitors:Lt(p.length>0?[S(w,!1)]:[S(w,i),...$],h),resolvedRefMap:w,ctx:x}),p.length>0){for(let I of p){let k=await o.resolveDocument(null,I,!0).catch(se=>{throw new rs(`Failed to load overlay at ${I}: ${se.message}`)});if(k instanceof Error)throw k;let O=T(k.parsed)?k.parsed.overlay:void 0;if(typeof O!="string"||!Tp.test(O))throw new rs(`${I} is not an Overlay 1.0, 1.1, or 1.2 document.`);x.problems.push(...ES(t,k,o))}let P=await wr({rootDocument:t,rootType:h.Root,externalRefResolver:o}),A={...x,problems:[]};Ft({document:t,rootType:h.Root,normalizedVisitors:Lt([S(P,i),...$],h),resolvedRefMap:P,ctx:A});let q=new Set(x.problems.map(({ruleId:I,message:k})=>`${I}:${k}`));x.problems.push(...A.problems.filter(({ruleId:I,message:k})=>!q.has(`${I}:${k}`)))}if(s||r.getDecoratorSettings("remove-unused-components",u).severity!=="off"){let P=await wr({rootDocument:t,rootType:h.Root,externalRefResolver:o}),A=Lt([{severity:"error",ruleId:"remove-unused-components",visitor:f==="oas2"?Hp({}):Kp({})}],h);Ft({document:t,rootType:h.Root,normalizedVisitors:A,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 as="redocly.yaml",IS={extends:["recommended"]},Ca=".redocly.lint-ignore.yaml",CS=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
121
|
-
# See https://redocly.com/docs/cli/ for more information.
|
|
122
|
-
`,Gp="configBundler",Wp="pluginsCollector",NS=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];var ZS={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Na={type:"object",properties:ZS,additionalProperties:!1},vV={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},tl={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:{...ZS,like:Na,dislike:Na,satisfied:Na,neutral:Na,dissatisfied:Na},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:vV},additionalProperties:!1}},additionalProperties:!1},bV={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},Am={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},qS={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:tl,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Am,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:bV,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},Ae={type:"string",uiHint:"color"},Ir={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 xV={rules:Ir,oas2Rules:Ir,oas3_0Rules:Ir,oas3_1Rules:Ir,oas3_2Rules:Ir,async2Rules:Ir,async3Rules:Ir,arazzo1Rules:Ir,arazzo1_1Rules:Ir,overlay1Rules:Ir,openrpc1Rules:Ir,graphqlRules:Ir};var Jr={nodeTypeName:void 0,type:"object",additionalProperties:!0},SV={preprocessors:Jr,oas2Preprocessors:Jr,oas3_0Preprocessors:Jr,oas3_1Preprocessors:Jr,oas3_2Preprocessors:Jr,async2Preprocessors:Jr,async3Preprocessors:Jr,arazzo1Preprocessors:Jr,arazzo1_1Preprocessors:Jr,overlay1Preprocessors:Jr,openrpc1Preprocessors:Jr},Xr={nodeTypeName:void 0,type:"object",additionalProperties:!0};var wV={decorators:Xr,oas2Decorators:Xr,oas3_0Decorators:Xr,oas3_1Decorators:Xr,oas3_2Decorators:Xr,async2Decorators:Xr,async3Decorators:Xr,arazzo1Decorators:Xr,arazzo1_1Decorators:Xr,overlay1Decorators:Xr,openrpc1Decorators:Xr},_V={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"},rl={...xV,...wV,...SV,extends:_V},PV={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"]},$V={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"}}},DS={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},EV={type:"object",properties:{beforeInfo:{type:"array",items:DS},end:{type:"array",items:DS}}},Zo={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Yp={type:"object",properties:{backgroundColor:Ae,borderColor:Ae,color:Ae,tabTextColor:Ae}},AV={type:"object",properties:nl(Zo.properties,["light","dark"])},OV={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"}}},TV={type:"object",properties:{error:Yp,info:Yp,redirect:Yp,success:Yp}},RV={type:"object",properties:ps(Zo.properties,["dark"])},kV={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},IV={type:"object",properties:{accent:Zo,border:AV,error:Zo,http:OV,primary:Zo,responses:TV,secondary:RV,success:Zo,text:kV,tonalOffset:{type:"number"},warning:Zo}},Qp={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},CV={type:"object",properties:{small:Qp,medium:Qp,large:Qp,xlarge:Qp}},bn={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},NV={type:"object",properties:{...ps(bn.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:CV}},jS={type:"object",properties:nl(bn.properties,["fontSize","lineHeight"])},qV={type:"object",properties:{medium:jS,small:jS}},DV={type:"object",properties:{...ps(bn.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:Ae,sizes:qV}},jV={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},MV={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:Ae}},MS={type:"object",properties:{fullWidth:{type:"boolean"}}},LV={type:"object",properties:{buttons:NV,httpBadges:DV,layoutControls:jV,panels:MV,tryItButton:MS,tryItSendButton:MS}},Zp={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},FV={type:"object",properties:{maxWidth:Zp}},UV={type:"object",properties:{maxWidth:Zp,middlePanelMaxWidth:Zp}},zV={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:FV,"three-panel":UV}},LS={type:"object",properties:{backgroundColor:Ae,border:{type:"string"}}},VV={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:Ae,caretSize:{type:"string"},constraints:LS,defaultDetailsWidth:{type:"string"},examples:LS,labelsTextSize:{type:"string"},linesColor:Ae,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:Ae,typeNameColor:Ae,typeTitleColor:Ae}},ew={type:"object",properties:{subItemsColor:Ae,textTransform:{type:"string"},fontWeight:{type:"string"}}},BV={type:"object",properties:nl(ew.properties,["textTransform"])},HV={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},KV={type:"object",properties:{...ps(bn.properties,["fontWeight","lineHeight"]),activeBgColor:Ae,activeTextColor:Ae,backgroundColor:Ae,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:Ae,caretSize:{type:"string"},groupItems:ew,level1items:BV,rightLineColor:Ae,separatorLabelColor:Ae,showAtBreakpoint:{type:"string"},spacing:HV,textColor:Ae,width:{type:"string"}}},Jp={type:"object",properties:{...bn.properties,color:Ae,transform:{type:"string"}}},GV={type:"object",properties:{...bn.properties,backgroundColor:Ae,color:Ae,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},WV={type:"object",properties:ps(bn.properties,["fontSize"])},YV={type:"object",properties:{color:Ae,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},QV={type:"object",properties:{code:GV,fieldName:bn,...nl(bn.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Jp,heading2:Jp,heading3:Jp,headings:WV,lineHeight:{type:"string"},links:YV,optimizeSpeed:{type:"boolean"},rightPanelHeading:Jp,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},JV={type:"object",properties:{color:Ae,...ps(bn.properties,["fontWeight"])}},XV={type:"object",properties:{backgroundColor:Ae,borderRadius:{type:"string"},tokens:JV}},ZV={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},eB={type:"object",properties:{backgroundColor:Ae,color:Ae}},FS={type:"object",properties:{custom:{type:"string"}}},tB={type:"object",properties:{DownloadButton:FS,NextSectionButton:FS}},rB={type:"object",properties:{backgroundColor:Ae,panelBackgroundColor:Ae,panelControlsBackgroundColor:Ae,showAtBreakpoint:{type:"string"},textColor:Ae,width:{type:"string"}}},nB={type:"object",properties:{borderRadius:{type:"string"}}},oB={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},iB={type:"object",properties:{breakpoints:Zp,codeBlock:XV,colors:IV,components:LV,layout:zV,logo:ZV,fab:eB,overrides:tB,rightPanel:rB,schema:VV,shape:nB,sidebar:KV,spacing:oB,typography:QV,links:{type:"object",properties:{color:Ae}},codeSample:{type:"object",properties:{backgroundColor:Ae}}}},sB={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:PV}},required:["languages"]},aB={type:"object",properties:{theme:iB,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:sB,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:$V,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:EV,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 nl(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function ps(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var tw=e=>e,Ot=tw({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),wt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},US={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},Pm={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}}},Om={type:"array",items:{...Pm,properties:{...Pm.properties,items:{type:"array",items:Pm}}}},cB={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},pB={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},lB={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}},uB={type:"object",properties:{facets:lB,...wt.properties},additionalProperties:!1},dB={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},fB={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},mB={type:"object",properties:{items:Om,...wt.properties},additionalProperties:!1},hB={type:"object",additionalProperties:cB},yB={type:"object",properties:{items:Om,copyrightText:{type:"string",uiHint:"textarea"},logo:wt,...wt.properties},additionalProperties:!1},gB={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...wt.properties},additionalProperties:!1},vB={type:"object",properties:{head:{type:"array",items:US},body:{type:"array",items:US}},additionalProperties:!1},bB={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}},xB={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:pB,filters:uB,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:dB},...wt.properties},additionalProperties:!1},SB={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string",uiHint:"textarea"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},wB={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...wt.properties},additionalProperties:!1},_B={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},PB={type:"object",properties:{...wt.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","grok","docs-mcp-claude","docs-mcp-vscode","docs-mcp-cursor","copy-mcp-url"]}}},additionalProperties:!1},$B={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...wt.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...wt.properties},additionalProperties:!1},actions:PB},additionalProperties:!1},EB={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...wt.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...wt.properties},additionalProperties:!1},expand:{type:"object",properties:{...wt.properties},additionalProperties:!1},collapse:{type:"object",properties:{...wt.properties},additionalProperties:!1}},additionalProperties:!1},AB={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"},...wt.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...wt.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...wt.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},OB={...qS,properties:{...qS.properties,...aB.properties}},TB={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},RB={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"]},kB={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},IB={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},CB={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"]},NB={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},qB={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"]},rw={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"]},DB={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:rw}},additionalProperties:!1,required:["trackingId"]},jB={type:"object",properties:{adobe:TB,amplitude:RB,fullstory:kB,heap:IB,rudderstack:CB,segment:NB,gtm:qB,ga:DB}},MB={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},LB={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"},...wt.properties},additionalProperties:!1},FB={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},UB={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},zB={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"}}}},VB={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:zB},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Om,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},zS={type:"object",patternProperties:{".*":VB}},VS={nodeTypeName:Ot.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:Ot.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:Ot.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:Ot.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...rl},additionalProperties:!1}},targets:{nodeTypeName:Ot.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:Ot.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:Ot.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:Ot.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}};var BB=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(BB||{}),HB=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(HB||{});var KB=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(KB||{});var nw="^[a-z0-9]+(?:-[a-z0-9]+)*$",Ape=new RegExp(nw);var GB=63,Ope=`Unique ID cannot exceed ${GB} characters`,ow="redocly",iw=[ow,"corporate","guest"],Tpe=`Unique ID cannot be a reserved word (${iw.join(", ")})`,BS=["REDOCLY","CORPORATE","GUEST"],WB={type:"object",properties:{downloadUrls:Am,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:tl,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},YB={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},QB={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},JB={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},Bn={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:QB},excludes:{type:"array",items:YB},filters:{type:"array",items:JB},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},XB={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},ZB={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:XB},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},e3={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:ZB,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},t3={type:"object",additionalProperties:e3},r3={type:"object",properties:{show:{type:"boolean"},entityTypes:t3,catalogs:{type:"object",properties:{all:Bn,services:Bn,domains:Bn,teams:Bn,users:Bn,apiDescriptions:Bn,dataSchemas:Bn,apiOperations:Bn},additionalProperties:Bn}},additionalProperties:!1},cs={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},n3={type:"object",properties:{name:{type:"string"},items:cs,queries:cs,mutations:cs,subscriptions:cs,types:cs,directives:cs},required:["name"],additionalProperties:!1},o3={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:n3},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},i3={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},s3={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},a3={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:i3,license:s3},additionalProperties:!1},c3={type:"object",properties:{url:{type:"string",format:"uri",pattern:"^https?://"},description:{type:"string"}},required:["url"],additionalProperties:!1},p3={type:"object",properties:{menu:{type:"object",properties:{...o3.properties},additionalProperties:!1},downloadUrls:Am,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:Ae}},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:tl,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:a3,hideReplay:{type:"boolean"},servers:{type:"array",items:c3},corsProxyUrl:{type:"string"}},additionalProperties:!1},HS={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Tm={type:"string",enum:["and","or"]},$m={type:"object",properties:{field:{type:"string"},operator:HS,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:HS,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},l3={type:"object",properties:{operator:Tm,conditions:{type:"array",items:$m}},required:["operator","conditions"],additionalProperties:!1},KS={type:"array",items:{oneOf:[$m,{type:"object",properties:{operator:Tm,conditions:{type:"array",items:{oneOf:[$m,l3]}}},required:["operator","conditions"],additionalProperties:!1}]}},sw={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},u3={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:sw},required:["subject","assertions"],additionalProperties:!1}},d3={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:sw,where:u3,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},f3={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},d3]}},m3={type:"object",properties:{name:{type:"string"},extends:rl.extends,rules:f3},required:["name"],additionalProperties:!1},GS={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},h3={oneOf:[GS,{type:"array",items:GS}]},y3={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[KS,{type:"object",properties:{operator:Tm,conditions:KS},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:m3,minItems:1},trigger:h3},required:["name","key","entities","levels"],additionalProperties:!1},g3={type:"array",items:y3},At={logo:fB,navbar:mB,products:hB,footer:yB,sidebar:gB,scripts:vB,links:bB,feedback:tl,search:xB,aiAssistant:SB,colorMode:wB,palette:_B,navigation:$B,codeSnippet:EB,markdown:AB,openapi:OB,graphql:p3,asyncapi:WB,analytics:jB,consent:MB,userMenu:LB,versionPicker:FB,breadcrumbs:UB,catalog:zS,entitiesCatalog:r3,catalogClassic:zS,scorecard:VS,scorecardClassic:VS,scorecards:g3},v3={type:"object",properties:{imports:{type:"array",items:{type:"string"}},...At},additionalProperties:!0},b3={type:"object",additionalProperties:{type:"string"}},x3={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Xp={type:"string",enum:["error","warn","off"]},S3={type:"object",additionalProperties:!1,properties:{schemaCheck:Xp,statusCodeCheck:Xp,contentTypeCheck:Xp,successCriteriaCheck:Xp}},w3={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},_3={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},P3={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},$3={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}},E3={type:"object",properties:{provider:{type:"string",minLength:1},repository:{type:"string",minLength:1},branch:{type:"string",minLength:1},path:{type:"string"}},required:["provider","repository"],additionalProperties:!1},A3={type:"object",properties:{name:{type:"string",enum:["feedback","discovery","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},O3={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},rules:{type:"string"},sourceRepositories:{oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:E3}]},specialists:{type:"array",items:{type:"object",properties:{name:{type:"string",enum:["config","apiDescription","owasp","docs"]},enabled:{type:"boolean"}},required:["name","enabled"],additionalProperties:!1}}},required:["name"],additionalProperties:!1},T3={type:"object",properties:{enabled:{type:"boolean"},defaultReviewers:{type:"array",items:{type:"string",minLength:1}},rules:{type:"object",properties:{custom:{type:"string"},style:{type:"string"}},additionalProperties:!1},duties:{type:"array",items:{oneOf:[A3,O3]}},mcpServers:$3},additionalProperties:!1},R3={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:[w3,_3]},inputs:b3,servers:x3,severity:S3,slo:P3},required:["path","trigger","agent"],additionalProperties:!1}},agent:T3},additionalProperties:!1},aw={type:"string",enum:["off","info","warn","error"]},qa={type:"array",items:{type:"string"}},k3={type:"object",properties:{severity:aw,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:qa,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:qa,excludes:qa,exceptions:{type:"object",properties:{files:qa,lines:qa},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},I3={oneOf:[aw,k3]},WS={type:"object",additionalProperties:I3},C3={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},N3={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:C3}},additionalProperties:!1},q3={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:N3},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},D3={oneOf:[{type:"boolean"},q3]},j3={type:"object",properties:{rules:WS,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:D3,apiDescriptions:{type:"object",properties:{rules:WS},additionalProperties:!1}},additionalProperties:!1},YS=["GET","HEAD","OPTIONS","POST","PUT","PATCH","DELETE","QUERY","TRACE"],M3={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},L3={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:M3,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},F3={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"]},U3={oneOf:[L3,F3],discriminator:{propertyName:"type"}},z3={type:"object",additionalProperties:U3},cw={oneOf:[{type:"array",items:{type:"string",enum:BS},uniqueItems:!0},{type:"string",enum:BS}]},QS={type:"string",pattern:nw,not:{enum:iw.filter(e=>e!==ow)}},pw={oneOf:[{type:"array",items:QS,uniqueItems:!0},QS]},lw={type:"boolean"},uw={type:"string",pattern:"^https?://.*"},dw={type:"string",pattern:"^https?://.*"},V3={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:Ot.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},B3={type:"object",additionalProperties:V3,nodeTypeName:Ot.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"},H3={type:"string",enum:["info","success","warning","error"]},ze={type:"object",uiHint:"list",additionalProperties:{type:"string"}},K3={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:H3,rbac:ze,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},G3={type:"array",items:K3},fw={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:ze,openapi:At.openapi,graphql:At.graphql,asyncapi:At.asyncapi,theme:{type:"object",properties:{openapi:At.openapi,graphql:At.graphql},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...rl},required:["root"]},W3={type:"object",additionalProperties:!0},Y3={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Q3={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string",uiHint:"textarea"},details:{type:"object",properties:{path:{type:"string",uiHint:"file"},content:{type:"string",uiHint:"textarea"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string",uiHint:"file"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string",uiHint:"file"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},J3={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:Q3},additionalProperties:!1},X3={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Z3={type:"object",properties:{catalogs:{type:"object",properties:{all:ze,services:ze,domains:ze,teams:ze,users:ze,apiDescriptions:ze,dataSchemas:ze,apiOperations:ze},additionalProperties:ze},entitiesTypes:{type:"object",properties:{service:ze,domain:ze,team:ze,user:ze,apiDescription:ze,apiOperation:ze,dataSchema:ze},additionalProperties:ze},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:ze},additionalProperties:!1}},entities:{type:"object",properties:{"**":ze},additionalProperties:ze}},additionalProperties:!1},mw={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:ze,cms:ze,reunite:ze,features:{type:"object",properties:{aiSearch:ze,mcp:ze},additionalProperties:!1},content:{type:"object",properties:{"**":ze},additionalProperties:ze},entitiesCatalog:Z3},additionalProperties:ze},e9={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},t9={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},r9={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[e9,t9]}},additionalProperties:!1,required:["type","apiBaseUrl"]},n9={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},o9={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Em={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:[n9,o9],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},i9={...Em,properties:{...Em.properties,type:{type:"string",const:"APIGEE_EDGE"}}},s9={type:"object",oneOf:[Em,i9,r9],discriminator:{propertyName:"type"}},a9={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:s9}}},JS={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"},showMissingTranslationNotice:{type:"boolean"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},c9={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},p9={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},apiCalls:{type:"object",properties:{hide:{type:"boolean"},allowedHttpMethods:{type:"array",items:{type:"string",enum:YS}},excludeFiles:{type:"array",items:{type:"string"}},excludeOperations:{type:"array",items:{type:"object",properties:{file:{type:"string"},method:{type:"string",enum:YS},path:{type:"string"}},required:["file","path"],additionalProperties:!1}}},additionalProperties:!1}},additionalProperties:!1},l9={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},u9={type:"object",properties:{requiresLogin:lw,logoutReturnUrl:uw,residency:dw,sso:cw,idps:pw,rbac:mw},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},el={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:B3,seo:J3,rbac:mw,apiFunctions:X3,requiresLogin:lw,responseHeaders:{type:"object",additionalProperties:{type:"array",items:c9}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",uiHint:"list",additionalProperties:fw},...rl,ssoDirect:z3,sso:cw,idps:pw,residency:dw,logoutReturnUrl:uw,access:u9,developerOnboarding:a9,removeAttribution:{type:"boolean"},i18n:JS,l10n:JS,metadata:W3,metadataGlobs:Y3,ignore:{type:"array",items:{type:"string"}},theme:v3,reunite:R3,...At,mcp:p9,skills:l9,recheck:j3,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:G3},not:{required:["sso","idps"]},additionalProperties:!0},d9={...el,additionalProperties:!1},ls={$id:"root-redocly-config",...el,properties:{plugins:{type:"array",items:{type:"string"}},...el.properties,env:{type:"object",additionalProperties:d9}},additionalProperties:!1},XS={type:"object",properties:{logo:At.logo,navbar:At.navbar,footer:At.footer,sidebar:At.sidebar,search:At.search,codeSnippet:At.codeSnippet,breadcrumbs:At.breadcrumbs,openapi:At.openapi,feedback:At.feedback,palette:At.palette,mockServer:el.properties.mockServer,analytics:{type:"object",properties:{ga:rw}}},additionalProperties:!0},Rpe={$id:"product-config-override",type:"object",properties:{...XS.properties,apis:{type:"object",additionalProperties:fw},theme:XS},additionalProperties:!1},f9=["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"],dt=tw({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"}),m9={type:"object",nodeTypeName:dt.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},h9={type:"object",nodeTypeName:dt.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},y9={type:"object",nodeTypeName:dt.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},g9={type:"object",nodeTypeName:dt.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},v9={type:"object",properties:{},nodeTypeName:dt.EntityMetadata,additionalProperties:!0},b9={type:"object",nodeTypeName:dt.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},x9={type:"object",nodeTypeName:dt.EntitySlackContact,properties:{channels:{type:"array",items:b9}},required:["channels"],additionalProperties:!1},S9={type:"object",nodeTypeName:dt.EntityContact,properties:{slack:x9},additionalProperties:!1},w9={type:"object",nodeTypeName:dt.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},_9={type:"object",nodeTypeName:dt.EntityRelation,properties:{type:{type:"string",enum:f9},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},fo={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:S9,links:{type:"array",nodeTypeName:dt.EntityLinkList,items:w9},relations:{type:"array",nodeTypeName:dt.EntityRelationList,items:_9},metadata:v9},kpe={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...fo,type:{type:"string",const:"user"},metadata:m9},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:dt.UserEntity},{type:"object",nodeTypeName:dt.ApiOperationEntity,properties:{...fo,type:{type:"string",const:"api-operation"},metadata:y9},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:dt.DataSchemaEntity,properties:{...fo,type:{type:"string",const:"data-schema"},metadata:g9},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:dt.ApiDescriptionEntity,properties:{...fo,type:{type:"string",const:"api-description"},metadata:h9},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:dt.ServiceEntity,properties:{...fo,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:dt.DomainEntity,properties:{...fo,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:dt.TeamEntity,properties:{...fo,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},Ipe={type:"object",nodeTypeName:dt.Entity,properties:{...fo},required:["key","title","type"],additionalProperties:!1};import AY from"node:path";var hw=["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 ol(e){return e.includes("/")}var E$=fn(Wy(),1);var Yy;function $Y(){return Yy||(Yy=new E$.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),Yy}function $$(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>$Y().validate(o,r));return n===-1&&(n=0),t[n]}}function Os(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(T(t.properties)||T(t.additionalProperties)||T(t.items)&&(T(t.items.properties)||T(t.items.additionalProperties)||t.items.oneOf))return EY(e,t,r);if(t.oneOf)if(t.discriminator){let n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);let o={},i=t.oneOf.map((s,a)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);let c=s?.properties?.[n];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);let l=c.const,p=Os(l,s,r);return typeof p=="string"&&(o[l]=p),p});return(s,a)=>{if(T(s)){let c=s[n];if(typeof c=="string"){let l=o[c];if(l&&r[l])return l}}return $$(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>Os(e+"_"+i,o,r));return $$(t.oneOf,n)}return t}function EY(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);let n=t.nodeTypeName??e,o={};for(let[c,l]of Object.entries(t.properties||{}))o[c]=Os(n+"."+c,l,r);let i;T(t.additionalProperties)&&(i=Os(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;T(t.items)&&(T(t.items.properties)||T(t.items.additionalProperties)||t.items.oneOf)&&(s=Os(e+"_items",t.items,r));let a=t.required;return t.oneOf&&t.oneOf.every(c=>!!c.required)&&(a=c=>{let l=t.oneOf.map(u=>[...t.required||[],...u.required]),p=l.findIndex(u=>u.every(f=>c[f]!==void 0));return p===-1&&(p=0),l[p]}),r[n]={properties:o,additionalProperties:i,items:s,required:a,description:t.description,documentationLink:t.documentationLink},n}function Qy(e,t){let r={},n=Os(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var OY=["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"],TY=["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"],RY=["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"],kY=["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"],IY=["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"],CY=["info-contact","spec-ref-siblings"],NY=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],qY=["no-unused-types","type-description"],DY=["struct","no-unresolved-refs"],jY=[...OY,...TY,...RY,...kY,...IY,...CY,...NY,...qY,...DY],MY=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],LY=["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"],A$=[...LY,...MY],O$={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!ce(e)&&!AY.extname(e)?{type:"string"}:{...mc,directResolveAs:{name:"ConfigGovernance",...mc}},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"},mc={properties:O$},FY=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...mc.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),UY={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"},zY=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Vi(mc.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),VY={properties:{headers:{type:"array",items:{type:"string"}}}},BY={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},telemetry:{enum:["on","off"]},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:V("ClientGeneratorOptions"),pagination:"ClientPagination"}},HY={properties:{},additionalProperties:{}},T$={properties:{style:{enum:["cursor","offset","page","link","body-link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},nextLink:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},KY={properties:{...T$.properties,exclude:{type:"array",items:{type:"string"}},operations:V("ClientPaginationRule")}},GY={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(jY.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(ol(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},WY={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"},YY={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"},QY={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(A$.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(ol(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},JY={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},XY={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},ZY={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(A$.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(ol(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},eQ={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"},tQ={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 rQ(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 nQ(e){return{...e[Ot.ScorecardClassicLevel],properties:{...e[Ot.ScorecardClassicLevel]?.properties,...O$}}}var oQ={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"},iQ={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"},sQ={properties:{subject:"Subject",assertions:"Assertions",where:z("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function zl(e,t){let r=Bi.flatMap(o=>{let i=Vo(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=Qy("rootRedoclyConfigSchema",e);return{...aQ,ConfigRoot:FY(n),ConfigApisProperties:zY(n),Subject:rQ([...r,...hw]),...n,[Ot.ScorecardClassicLevel]:nQ(n)}}var aQ={ConfigurableRule:sQ,ConfigApis:UY,ConfigGovernance:mc,ConfigHTTP:VY,Client:BY,ClientGeneratorOptions:HY,ClientPagination:KY,ClientPaginationRule:T$,Where:iQ,BuiltinRule:WY,CustomRule:YY,BuiltinDecorator:JY,CustomDecorator:XY,BuiltinPreprocessor:eQ,CustomPreprocessor:tQ,Schema:be.Schema,SchemaProperties:be.SchemaProperties,PatternProperties:be.PatternProperties,NamedSchemas:be.NamedSchemas,DependentRequired:be.DependentRequired,Discriminator:be.Discriminator,DiscriminatorMapping:be.DiscriminatorMapping,ExternalDocs:be.ExternalDocs,Xml:be.Xml,Rules:GY,Decorators:QY,Preprocessors:ZY,Assertions:oQ},{theme:kue,...cQ}=ls.properties,pQ={...ls,properties:cQ},R$=zl(pQ),xo=Wr(R$);import nee from"node:path";import*as ab from"node:fs";import tee from"node:module";import*as rr from"node:path";import*as JR from"node:url";function Vl(e){return!et(e)}var k$={};var I$={};var C$={};function Bl(e){return Array.isArray(e)&&e.length===0}function Hl(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(T(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&&(br(e)||Bl(e))&&delete n[o]}function So(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=N$(t),e=N$(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function N$(e){return Array.isArray(e)?e:[e]}var lQ="any",Kl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||lQ;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let p of s){let u=B(a[p])?c.resolve(a[p]).node:a[p];if(T(u)){let f=u[e];So(f,t,o)||delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];So(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]&&!So(s?.[e],t,o);return{any:{enter:(s,a)=>{Hl(s,a,i)}}}};var uQ="any",Gl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||uQ;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let p of s){let u=B(a[p])?c.resolve(a[p]).node:a[p];if(T(u)){let f=u[e];So(f,t,o)&&delete a[p]}}s.some(p=>a[p])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];So(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>So(s?.[e],t,o);return{any:{enter:(s,a)=>{Hl(s,a,i)}}}};import*as Wl from"node:fs";import*as Yl from"node:path";function Jy(e){let t=Wl.readFileSync(e,"utf-8");return Ko(t)}function Qn(e,t){return ce(e)||t===void 0?e:Yl.resolve(Yl.dirname(t),e)}function Ts(e){return Wl.readFileSync(e,"utf-8")}var Ql=({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=Ts(Qn(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
|
|
123
|
-
${i.message}`,location:n.child("description")})}}}});var Jl=e=>({Info:{leave(t){if(!T(e))throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});var Xl=({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=Ts(Qn(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
|
|
124
|
-
${s.message}`,location:n.child("operationId").key()})}}}});var dQ="x-internal",Zl=({internalFlagProperty:e=dQ})=>{function t(n,o,i){let{parent:s,key:a}=o,c=!1;if(Array.isArray(n))for(let l=0;l<n.length;l++){if(B(n[l])&&o.resolve(n[l]).node?.[e]){if(T(s.discriminator?.mapping))for(let u in s.discriminator.mapping)i?.[u]===n[l].$ref&&delete s.discriminator.mapping[u];n.splice(l,1),c=!0,l--}n[l]?.[e]&&(n.splice(l,1),c=!0,l--)}else if(T(n))for(let l of Object.keys(n)){if(B(n[l])){let p=o.resolve(n[l]);T(p.node)&&p.node?.[e]&&(delete n[l],c=!0)}T(n[l])&&n[l]?.[e]&&(delete n[l],c=!0)}c&&(br(n)||Bl(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 eu=({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=Ts(Qn(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
125
|
-
${i.message}`})}}}});var q$={"operation-description-override":Xl,"tag-description-override":eu,"info-description-override":Ql,"info-override":Jl,"remove-x-internal":Zl,"filter-in":Kl,"filter-out":Gl,"remove-unused-components":Hp};var j$=({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=D$(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:Jy(Qn(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=D$(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:Jy(Qn(a,r.config?.configPath))}}),t.requestBody=i}}}}});function D$(e,t){if(!B(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}var M$={"operation-description-override":Xl,"tag-description-override":eu,"info-description-override":Ql,"info-override":Jl,"remove-x-internal":Zl,"filter-in":Kl,"filter-out":Gl,"media-type-examples-override":j$,"remove-unused-components":Kp};var L$={};var F$={};var U$=()=>({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 hc(e){return e?Object.keys(e):[]}function mi(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}function yc(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function z$(e,t){let r=t.direction||t,n=t.property;for(let o=1;o<e.length;o++){let i=e[o],s=e[o-1];if(n){let c=e[o][n],l=e[o-1][n];if(!c||!l)return!1;i=c,s=l}if(typeof i=="string"&&typeof s=="string"&&(i=i.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?i>=s:i<=s))return!1}return!0}var _O=fn(Wy(),1),PO=fn(Q$(),1),$O=fn(SO(),1);var GX=["title","description","example","examples","default","deprecated"];function wO(e){return e==="draft4"?"id":"$id"}function WX(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var On=class{instances={};sharedValidators=new Map;validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:l}=n,p=WX(l),u=this.getValidator(r,o,s,a,p);if(!u)return{valid:!0,errors:[]};let f={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,f),errors:(u.errors||[]).map(h)};function h(y){let b=y.message,x=y.keyword==="enum"?y.params.allowedValues:void 0;x&&(b+=` ${x.map($=>`"${$}"`).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 $=y.params.additionalProperty||y.params.unevaluatedProperty;b=`${b} \`${$}\``,y.instancePath+="/"+mn($)}return{...y,message:b,suggest:x}}}getAjv(t,r){if(!this.instances[r]){let n=wO(r),o={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(i,s,a){let c=decodeURI(i.split("#")[0]),l=t({$ref:s},c);return!l||!l.location?!1:{[n]:encodeURI(l.location.source.absoluteRef)+"#"+a,...l.node}}};this.instances[r]=r==="2020"?new _O.default(o):new PO.default(o),(0,$O.default)(this.instances[r])}return this.instances[r]}getValidator(t,r,n,o,i){let s=this.getAjv(n,i);if(B(t)&&!so(t)){let p=n(t,r.source.absoluteRef);p.location&&T(p.node)&&(t=p.node,r=p.location)}let a=T(t)?YX(t,i):void 0;if(a){let p=this.sharedValidators.get(a);if(p)return p;s.setDefaultUnevaluatedProperties(o);let u=s.compile(t);return this.sharedValidators.set(a,u),u}let c=encodeURI(r.absolutePointer),l=wO(i);return s.getSchema(c)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[l]:c,...t},c)),s.getSchema(c)}};function YX(e,t){let r={...e};for(let o of GX)delete r[o];let n=JSON.stringify(r);if(!n.includes('"$ref"'))return`${t}:${n}`}var Cu=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Nu=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),EO=new WeakMap,QX=new Dt(new yn("assertion",""),"#/schema"),Tn={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||T(e))return[];let o=Array.isArray(e)?e:[e],i=mi(t);return o.map(s=>!i?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:et(e)?r:T(n)?r.child(s).key():r.key()}).filter(gt)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||T(e))return[];let o=Array.isArray(e)?e:[e],i=mi(t);return o.map(s=>i?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:et(e)?r:T(n)?r.child(s).key():r.key()}).filter(gt)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||T(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`${JSON.stringify(o)} should be one of the predefined values`,location:et(e)?r:r.child(o).key()}).filter(gt),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(gt),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||T(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(gt)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||T(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`${JSON.stringify(o)} is disallowed`,location:et(e)?r:r.child(o).key()}).filter(gt),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:et(e)?r:r.child(n).key()}).filter(gt):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"||T(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:et(e)?r:r.child(i).key()}).filter(gt)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,o=t.property;return Array.isArray(e)&&e.length>0&&T(e[0])&&!o?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||z$(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})=>yc(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(yc(e,t)>0?yc(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>yc(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=mi(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=EO.get(t);i||(i=new On,EO.set(t,i));let s=B(n)&&o(n)?.location||r,a;try{({errors:a}=i.validate(e,t,{schemaLoc:QX,instancePath:"",resolve:o,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(c){throw new Error(`the 'schema' assertion has an invalid schema: ${c.message}`)}return a.map(c=>{let l=c.instancePath?Yr(s.pointer,c.instancePath.slice(1)):s.pointer,p=new Dt(s.source,l),u=c.keyword==="additionalProperties"||c.keyword==="unevaluatedProperties";return{message:c.message,location:u?p.key():p}})}};function AO(e){return(t,r,n)=>e.call(null,t,r,n)}var zv={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function OO(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&mi(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(gt)}function RO(e){let t=hc(Tn).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:Cu.has(o),runsOnValues:Nu.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 kO({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function IO(e,t,r){let n=kO(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push(TO({assert:i,ctx:r,assertionProperty:s}));else o.push(TO({assert:i,ctx:r}));return o.flat()}function CO(e,t){let r=OO(e.subject),n=r.length?(c,l)=>!r.every(p=>p(l)):void 0,o={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return o;let i={},s=i,a=e.where;for(let c=0;c<a.length;c++){let l=a[c];if(!et(l.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);if(!T(l.assertions))throw new Error(`${e.assertionId} -> where -> [${c}]: 'assertions' (Object) is required`);let p=OO(l.subject),u=RO(l),f=(h,y,b)=>!p.every(x=>x(y))||!!IO(l,u,{...b,node:h}).length,m={...(p.length||u.length)&&{skip:f}};l.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[l.subject?.type]=m}return i[e.subject.type]=o[e.subject.type],s}function NO(e,t){return(r,n)=>{let o=kO(t),i=`${pe.blue(e)} failed because the ${pe.blue(t.subject.type)} ${pe.blue(o.join(", "))} didn't meet the assertions: ${zv.problems}`.replace(/ +/g," "),s=IO(t,RO(t),{...n,node:r});if(s.length)for(let a of JX(s)){let c=t.message||i,p={problems:Vv(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:Bv(n.location.source.absoluteRef)};n.report({message:Hv(c,p),location:XX(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function JX(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 XX(e){return e.length?e[0].location:void 0}function Vv(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
126
|
-
- ${t.message??""}`).join("")}function Bv(e){return ce(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function Hv(e,t){let r=e;for(let n of Object.keys(zv)){let o=zv[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function TO({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 Tn[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return Tn[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var tr=e=>{let t=[],r=Object.values(e).filter(n=>T(n));for(let[n,o]of r.entries()){if(!et(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);if(!T(o.assertions))throw new Error(`${o.assertionId}: 'assertions' (Object) is required`);let i=NO(o.assertionId,o),s=CO(o,i);t.push(s)}return t};function ZX(e){return T(e)||Array.isArray(e)}var Rn=()=>({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=ZX(s);(a?o.some(l=>_r(l,s)):n.has(s))&&t({message:`Duplicated enum value found: '${a?JSON.stringify(s):s}'.`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),a?o.push(s):n.add(s)}}});var jO=fn(DO(),1);function $i(e){return Array.isArray(e)&&e.length>0}var Ei=(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}},Kv=(e,t,r,n,o)=>!!(e.properties&&tt(e.properties,t)!==void 0||e.allOf?.some(i=>to(i,t,r,n,o))||$i(e.anyOf)&&e.anyOf.every(i=>to(i,t,r,new Set(n),o))||$i(e.oneOf)&&e.oneOf.every(i=>to(i,t,r,new Set(n),o))),to=(e,t,r,n=new Set,o)=>{if(B(e)&&Kv(e,t,r,n,o))return!0;let{schema:i,location:s,chain:a}=Ei(e,r,o);if(!i)return!1;if(!n.has(i)&&(n.add(i),Kv(i,t,r,n,s)))return!0;for(let c of a??[])if(!(!T(c.node)||n.has(c.node))&&(n.add(c.node),Kv(c.node,t,r,n,c.location)))return!0;return!1};function Ai(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Ws(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function qu(e,t,r){if(Ws(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(Ws(o))return!0}return!1}function Kc(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return T(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function Oi(e,t){return`${e} object should contain \`${t}\` field.`}function eZ(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function MO(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Ur({fieldName:e,value:t,ctx:r,reference:n}){T(t)&&(t[e]===void 0?r.report({message:Oi(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:MO(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function LO({fieldNames:e,value:t,ctx:r,reference:n}){if(T(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:eZ(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:MO(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,jO.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 Du(e){if(T(e)){if(Pt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(Pt(e.value))return{value:e.value,field:"value"}}}function Ro({example:e,schema:t,options:r,reference:n}){let{location:o,ctx:i,validator:s,allowAdditionalProperties:a,ajvContext:c}=r,{resolve:l,location:p,report:u,specVersion:f}=i;try{let{valid:m,errors:h}=s.validate(e,t,{schemaLoc:p.child("schema"),instancePath:o.pointer,resolve:l,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 Dt(o.source,y.instancePath),reportOnKey:y.keyword==="unevaluatedProperties"||y.keyword==="additionalProperties"},from:p,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:p.child("schema"),from:p,reference:n})}}var tZ=10;function Gv(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>tZ?`\`${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 Gc({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 Wc(e,t){return t?e.name.toLowerCase():e.name}var kn=()=>({Schema(e,{report:t,location:r}){if(!T(e)||!e.type)return;let n=Array.isArray(e.type)?e.type:[e.type],o=i=>n.some(s=>Kc(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 "${Ai(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 "${Ai(e.const)}".`,location:r.child(["const"]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}});var ko=()=>({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 In=()=>{let e=[],t=new Set,r=(n,o,i)=>{if($i(n.required))for(let[s,a]of n.required.entries())to(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)!T(a)||t.has(a)||(t.add(a),r(a,c,o))}},Schema:{leave(n){e.pop()},enter(n,o){if(e.push(n),!$i(n.required))return;let i=(c,l)=>{let p=u=>Ei(u,o).schema===l;return!!(c.allOf?.some(p)||c.anyOf?.some(p)||c.oneOf?.some(p))},s=(c,l)=>{if(c<0)return;let p=e[c];return i(p,l)?s(c-1,p)??p:void 0},a=s(e.length-2,n);for(let[c,l]of n.required.entries())!to(n,l,o)&&!to(a,l,o)&&o.report({message:`Required property '${l}' is not defined.`,location:o.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var Cn=()=>({Schema(e,{report:t,location:r}){typeof e.type=="string"&&(e.type!=="array"&&e.items&&t({message:`Schema type mismatch: '${e.type}' type should not contain 'items' field.`,location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type!=="object"&&e.properties&&t({message:`Schema type mismatch: '${e.type}' type should not contain 'properties' field.`,location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}))}});var Nn=()=>({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 Nt=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=Ai(e),l=o!==n?o:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:l}),a());return}else if(c!=="object"){r!==Gr&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:l}),a();return}let p=typeof r.required=="function"?r.required(e,i):r.required;for(let m of p||[])e.hasOwnProperty(m)||t({message:`The field \`${m}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});let u=r.allowed?.(e);if(u&&T(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:l,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:l,location:[{reportOnKey:!0}]})}for(let m of Object.keys(e)){let h=n.child([m]),y=e[m],b=tt(r.properties,m);if(b===void 0&&(b=r.additionalProperties),typeof b=="function"&&(b=b(y,m)),Or(b))continue;let x=b,w=Ai(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:l,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++)Gv(x.items?.enum,y[S],m,l,{report:t,location:n.child([m,S])},x.items?.documentationLink);if(x.enum)Gv(x.enum,y,m,l,{report:t,location:n.child([m])},x.documentationLink);else if(x.type&&!Kc(y,x.type,!1))t({message:`Expected type \`${x.type}\` but got \`${w}\`.`,from:l,location:h}),a();else if(w==="array"&&x.items?.type){let S=x.items?.type;for(let $=0;$<y.length;$++){let P=y[$];Kc(P,S,!1)||t({message:`Expected type \`${S}\` but got \`${Ai(P)}\`.`,from:l,location:h.child([$])})}}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:l,location:n.child([m])})}}}});var FO=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||T(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 UO=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=tt(o,"scheme"),s=tt(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 zO=()=>({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 VO=()=>{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 rZ={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function BO(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"){le.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let c=rZ[a];if(c)for(let l of c)(!i||!(l in i))&&t({message:`The \`${l}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}var HO=()=>({Step:{enter(e,t){BO(e?.["x-security"],t)}},Workflow:{enter(e,t){BO(e?.["x-security"],t)}}});var KO=()=>({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 GO=()=>{let e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:l,definedWorkflowOutputs:p}){let u=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,f;for(;(f=u.exec(s))!==null;){let[m,h,y]=f,b=p.get(h);b?b.includes(y)||a({message:`Output key "${y}" is not defined in workflow "${h}". Available outputs: [ ${b.join(", ")} ].`,location:c.child(l)}):a({message:`Workflow "${h}" referenced in runtime expression "${m}" is not defined or has no outputs.`,location:c.child(l)})}}function o({value:s,report:a,location:c,path:l,definedStepOutputs:p}){let u=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,f;for(;(f=u.exec(s))!==null;){let[m,h,y]=f,b=p.get(h);b?b.includes(y)||a({message:`Output key "${y}" is not defined in step "${h}". Available outputs: [ ${b.join(", ")} ].`,location:c.child(l)}):a({message:`Step "${h}" referenced in runtime expression "${m}" is not defined or has no outputs.`,location:c.child(l)})}}function i(s,a,c=[]){if(typeof s=="string")n({value:s,report:a.report,location:a.location,path:c,definedWorkflowOutputs:e}),o({value:s,report:a.report,location:a.location,path:c,definedStepOutputs:t});else if(T(s)||Array.isArray(s))for(let[l,p]of Object.entries(s))i(p,a,[...c,l])}return{Step:{enter(s,{report:a,location:c}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:a,location:c}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,a){r.push(()=>{i(s,a)})}},ActionParameters:{enter(s,a){r.push(()=>{i(s,a)})}},RequestBody:{enter(s,a){r.push(()=>{i(s,a)})}},CriterionObject:{enter(s,a){r.push(()=>{i(s.condition,a)})}},Outputs:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedSecurity:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedOperation:{enter(s,a){r.push(()=>{i(s,a)})}},Root:{leave(){for(let s of r)s()}}}};var WO=()=>{function e(t,{report:r,location:n}){if(!t)return;let o=new Set;for(let i of t)o.has(i?.name)&&r({message:"The parameter `name` must be unique amongst listed parameters.",location:n.child([t.indexOf(i)])}),o.has(i?.reference)&&r({message:"The parameter `reference` must be unique amongst listed parameters.",location:n.child([t.indexOf(i)])}),o.add(i?.name??i?.reference)}return{Parameters:{enter:e},ActionParameters:{enter:e}}};var YO=()=>{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 QO=()=>{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 JO=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var nZ=["x-operation","operationId","operationPath","channelPath","workflowId"],XO=()=>({Step:{enter(e,{report:t,location:r}){let n=nZ.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 ZO=()=>({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 eT=()=>({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 tT=()=>({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 rT=()=>{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 nT=()=>{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 oT={assertions:tr,"criteria-unique":KO,"no-criteria-xpath":FO,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":Nn,"no-enum-type-mismatch":kn,"no-mixed-number-range-constraints":ko,"no-required-schema-properties-undefined":In,"no-schema-type-mismatch":Cn,"no-unresolved-refs":Et,"no-x-security-both-scheme-and-scheme-name":UO,"no-x-security-scheme-name-without-openapi":zO,"outputs-defined":GO,"parameters-unique":WO,"requestBody-replacements-unique":YO,"sourceDescription-name-unique":QO,"sourceDescription-type":U$,"sourceDescriptions-not-empty":JO,"spec-step-mutually-exclusive-fields":XO,"step-onFailure-unique":ZO,"step-onSuccess-unique":eT,"stepId-unique":tT,struct:Nt,"workflow-dependsOn":rT,"workflowId-unique":nT,"x-security-scheme-name-reference":VO,"x-security-scheme-required-values":HO},iT={};var zr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:Oi("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var Io=()=>{let e;return{Root:{enter(t){e=Un(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?LO({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Ur({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var Co=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=Wc(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}};var No=()=>({Root:{PathItem:{Operation(e,t){Ur({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function oZ(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 Ys=e=>{let t=new Map,r=[];return{Root:{leave(n,{report:o}){for(let{schemeName:i,scopes:s,location:a}of r){let c=t.get(i);if(c?.type==="oauth2"){if(e.requireScopes&&s.length===0){o({message:`The "${i}" security requirement must list at least one scope.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let l=0;l<s.length;l++){let p=s[l];c.definedScopes.includes(p)||o({message:`The "${p}" scope is not defined in the "${i}" security scheme.`,location:a.child([l]),suggest:Ti(p,c.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:o,resolve:i,location:s}){t.set(o.toString(),{type:n.type,definedScopes:n.type==="oauth2"?oZ(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 qo=()=>({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 Do=()=>({Tag(e,t){Ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var jo=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)Wc(t.tags[o],e)>Wc(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 sT=()=>({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 aT=()=>({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 cT="https://redocly.com/docs/cli/rules/async/security-defined",pT=()=>{let e=new Map,t=new Map,r=[],n,o=!1;return{Root:{leave(i,{report:s}){for(let[c,l]of e.entries())if(!l.defined)for(let p of l.from)s({message:`There is no \`${c}\` security scheme defined.`,location:p.key(),reference:cT});let a=[...t.keys()];for(let{location:c,channelServers:l}of r){let p=l??a;p.length>0&&p.every(f=>t.get(f))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:cT})}}},SecurityScheme(i,{key:s}){i!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=e.get(a),l=s.child([a]);c?c.from.push(l):e.set(a,{from:[l]})}},Components:{enter(){o=!0},leave(){o=!1}},Server(i,{key:s}){o||t.set(s.toString(),Ws(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}){qu(i,a)||r.push({location:s,channelServers:n})}}}};var lT={struct:Nt,"no-unresolved-refs":Et,assertions:tr,"info-contact":zr,"info-license-strict":Io,"operation-operationId":No,"security-defined":pT,"channels-kebab-case":sT,"no-channel-trailing-slash":aT,"tag-description":Do,"tags-alphabetical":jo,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":Nn,"no-duplicated-tag-names":Co,"no-required-schema-properties-undefined":In,"no-enum-type-mismatch":kn,"no-mixed-number-range-constraints":ko,"no-schema-type-mismatch":Cn,"security-scopes-defined":Ys,"spec-ref-siblings":qo},uT={};var dT=()=>({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 fT=()=>({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 mT="#/components/securitySchemes/",iZ="#/components/",Wv="https://redocly.com/docs/cli/rules/async/security-defined";function sZ(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function aZ(e){if(!e.startsWith(mT))return!1;let t=e.slice(mT.length);return t!==""&&!t.includes("/")}var hT=()=>{let e=[],t,r,n,o,i,s=(a,c,l)=>{let p=a.channel,u=B(p)?c(p,l):void 0,m=(B(p)?u?.node:p)?.servers,h,y;return m&&m.length>0?(h=m,y=u?.location?.source.absoluteRef??l):(h=t?Object.values(t):[],y=r),h.length===0?!1:h.every(b=>{let x=B(b)?c(b,y).node:b;return Ws(x)})};return{Root:{enter(a,{location:c,resolve:l}){let p=a?.servers;if(B(p)){let f=l(p);t=f.node??void 0,r=f.location?.source.absoluteRef}else t=p,r=void 0;let u=a?.operations;if(B(u)){let f=l(u);n=f.node??void 0,o=f.location?.source.absoluteRef,i=f.location}else n=u,o=void 0,i=c.child(["operations"])},leave(a,{report:c,resolve:l}){for(let p of e){if((p.local||p.refPointer.startsWith(iZ))&&!aZ(p.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:p.location.key(),reference:Wv});continue}p.resolved||c({message:`There is no \`${p.name}\` security scheme defined.`,location:p.location.key(),reference:Wv})}if(n&&i){let p=i;for(let[u,f]of Object.entries(n)){let m,h;if(B(f)){let y=l(f,o);m=y.node,h=y.location?.source.absoluteRef}else m=f,h=o;m&&(qu(m,l,h)||s(m,l,h)||c({message:"Every operation should have security defined on it.",location:p.child([u]).key(),reference:Wv}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:l}){if(a)for(let p=0;p<a.length;p++){let u=a[p];if(!B(u))continue;let f=c.child([p]),m=l(u),h=sZ(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 cZ(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 yT=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"?cZ(a.node,n,a.location):[]})}},Root:{leave(r,{report:n}){for(let{scheme:o,location:i,availableScopes:s}of t.values()){if(o.type!=="oauth2")continue;if(e.requireScopes&&!o.scopes?.length){n({message:"The security scheme must list at least one scope.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}let a=o.scopes||[];for(let c=0;c<a.length;c++){let l=a[c];s.includes(l)||n({message:`The "${l}" scope is not defined in the available scopes of the security scheme flows.`,location:i.child(["scopes",c]),suggest:Ti(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var gT={struct:Nt,"no-unresolved-refs":Et,assertions:tr,"info-contact":zr,"info-license-strict":Io,"operation-operationId":No,"security-defined":hT,"channels-kebab-case":dT,"no-channel-trailing-slash":fT,"tag-description":Do,"tags-alphabetical":jo,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":Nn,"no-duplicated-tag-names":Co,"no-required-schema-properties-undefined":In,"no-enum-type-mismatch":kn,"no-mixed-number-range-constraints":ko,"no-schema-type-mismatch":Cn,"security-scopes-defined":yT,"spec-ref-siblings":qo},vT={};function xT(e){return hc(Tn).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Cu.has(t),runsOnValues:Nu.has(t)}))}var ST=e=>{let t=Object.values(e).filter(T),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;if(!T(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);let i=xT(n),s=pZ(n);r.push({[o]:(a,c)=>{lZ(a,c,s)&&uZ(a,c,n,i)}})}return r};function pZ(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!et(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!T(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:xT(t)}}):[]}function lZ(e,t,r){let n=r,o=r.at(-1);if(o&&o.kind===e.kind){if(!bT(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&&bT(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function bT(e,t,r){let{value:n}=wT(e,t.definition.subject.property),o=new Dt(r.source,"#/");return t.assertsToApply.every(i=>Tn[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function uZ(e,t,r,n){let o=_T(r.subject.property),{value:i,locNode:s}=wT(e,r.subject.property),a=new Dt(t.source,"#/"),c=n.flatMap(p=>Tn[p.name](i,p.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let l=`${pe.blue(r.assertionId)} failed because the ${pe.blue(r.subject.type)} ${pe.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:Hv(r.message??l,{problems:Vv(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:Bv(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Yv(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 wT(e,t){let r=_T(t);if(r===void 0)return Yv(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>Yv(i).value),locNode:e};let o=Yv(n);return{value:o.value,locNode:dZ(o.locNode)?o.locNode:e}}function dZ(e){return T(e)&&"kind"in e}function _T(e){return Array.isArray(e)?e[0]:e}var fZ=["Query","Mutation","Subscription"];function mZ(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var PT=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=p=>t.add(mZ(p)),i=p=>e.set(p.name.value,p.name),s=p=>{for(let u of p.interfaces??[])o(u);for(let u of p.fields??[]){o(u.type);for(let f of u.arguments??[])o(f.type)}},a=p=>{for(let u of p.types??[])o(u)},c=p=>{for(let u of p.fields??[])o(u.type)},l=p=>{for(let u of p.operationTypes??[])r.add(u.type.name.value)};return{SchemaDefinition:p=>{n=!0,l(p)},SchemaExtension:l,DirectiveDefinition:p=>{for(let u of p.arguments??[])o(u.type)},ObjectTypeDefinition:p=>{i(p),s(p)},ObjectTypeExtension:s,InterfaceTypeDefinition:p=>{i(p),s(p)},InterfaceTypeExtension:s,UnionTypeDefinition:p=>{i(p),a(p)},UnionTypeExtension:a,InputObjectTypeDefinition:p=>{i(p),c(p)},InputObjectTypeExtension:c,EnumTypeDefinition:i,ScalarTypeDefinition:i,Document:{leave:(p,u)=>{if(!n)for(let f of fZ)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 Qs=fn(VC(),1),$T=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,Qs.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){hZ(n,t);return}for(let n of(0,Qs.validateSchema)(r))ET(n,t)}}});function hZ(e,t){if(e instanceof Qs.GraphQLError)ET(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function ET(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 AT=()=>{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 OT={struct:$T,assertions:ST,"no-unused-types":PT,"type-description":AT};var Js=()=>({Info(e,{report:t}){e.license||t({message:Oi("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var ju=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let o of Object.keys(e)){let i=yZ(o),s=`${i.segments.length}:${i.variableCount}`,a=n.get(s);a||(a=[],n.set(s,a));let c;for(let l of a)if(gZ(l,i)){c=l;break}c&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${c.path}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),a.push(i)}}});function yZ(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 gZ(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 Mu(e){return e.startsWith("{")&&e.endsWith("}")}function TT(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(gt).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 vZ=["get","head","post","put","patch","delete","options","trace"],Lu=({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||Mu(c))continue;let l=p=>e?TT(c).has(p):c.toLocaleLowerCase().includes(p);for(let p of vZ)l(p)&&o({message:`path \`${s}\` should not contain http verb ${p}`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}});var Fu=()=>({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 Uu=e=>{let t=new On;return{Parameter:{leave(r,n){if(Pt(r.example)&&Ro({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"}),T(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=Du(i);s&&Ro({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 zu=e=>{let t=new On;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)Ro({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(Pt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Ro({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 Vu=()=>({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 Bu=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){let o=Object.keys(r||{});Gc({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||{});Gc({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}});var Hu=({validateWebhooks:e,excludedMethods:t=[]})=>{let r=new Set(t.map(o=>o.toLowerCase())),n={skip:(o,i)=>r.has(String(i).toLowerCase()),Responses(o,{report:i}){Gc({responseCodes:Object.keys(o||{}),codeRange:"4XX",report:i,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}};return{Paths:{Operation:n,Callback:{Operation:n}},WebhooksMap:{skip:()=>!e,Operation:n,Callback:{Operation:n}}}};var Ku=()=>({Operation(e,t){Ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var Gu=()=>{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 bZ=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Wu=()=>({Operation(e,{report:t,location:r}){e.operationId&&!bZ.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 Yu=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
127
|
-
Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:i.PathItem.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),e.add(`${r.in}___${r.name}`)},Operation:{enter(){t=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;t.has(s)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:i.Operation.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(s)}}}}};var Qu=()=>({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 Ju=()=>({Operation(e,t){Ur({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var Xu=()=>{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 Zu=()=>({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 ed=()=>({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 xZ=["get","head","post","put","patch","delete","options","query","trace"],td=e=>{let t=e&&e.order||xZ;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 rd=()=>({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 SZ=/\{([a-zA-Z0-9_.-]+)\}+/g,wZ=2,Xs=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){RT(e,n)},leave(){_Z(e)},Parameter(r,{report:n,location:o,rawLocation:i}){kT({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:IT(e,new Set)}}},RT=(e,t)=>{e.current={path:t,templateParams:PZ(t),definedParams:new Set}},_Z=e=>{e.current=null},kT=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),CT({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},IT=(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>=wZ)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,RT(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:l}){kT({parameter:s,pathContext:e,report:a,location:c,rawLocation:l})},get Operation(){return IT(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||EZ({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}){$Z(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),CT({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},PZ=e=>new Set(Array.from(e.matchAll(SZ)).map(t=>t[1])),$Z=(e,t)=>{T(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},CT=({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"})}},EZ=({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 NT=fn(Kd(),1);var nd=e=>{let{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:o,key:i,location:s}){let a=i.toString();if(a.startsWith("/")){let c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(let l of c)r&&r.includes(l)||!Mu(l)&&NT.default.isSingular(l)&&o({message:`path segment \`${l}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}};var od=()=>({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 id=()=>{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 ro(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var sd=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[ro(i)]||t[ro(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 qT=["string","integer","number","boolean","null"],ad=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(tt(e,i)).node;!s||!AZ(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 AZ(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>qT.includes(t)):qT.includes(e.type)}var cd=e=>{let t=new Map,r=[],n=!0,o;return{Root:{leave(i,{report:s}){for(let[a,c]of t.entries())if(!c.defined)for(let l of c.from)s({message:`There is no \`${a}\` security scheme defined.`,location:l.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(i.security||n))for(let a of r)s({message:"Every operation should have security defined on it or on the root level.",location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(i,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=t.get(a),l=s.child([a]);c?c.from.push(l):t.set(a,{from:[l]})}},PathItem:{enter(i,{key:s}){o=s},Operation(i,{location:s,key:a}){let c=e.exceptions?.some(l=>l.path===o&&(!l.methods||l.methods?.some(p=>p.toLowerCase()===a)));!i?.security&&!c&&(n=!1,r.push(s))}}}};var pd=()=>{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 DT=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 Zs({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 Mo({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 jT=({allowedValues:e})=>({Root(t,r){Zs({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){Zs({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var MT=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[ro(r)]||t[ro(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 LT=({allowedValues:e})=>({Root(t,r){Zs({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){Zs({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var FT={struct:Nt,"no-invalid-schema-examples":zu,"no-invalid-parameter-examples":Uu,"info-contact":zr,"info-license":Js,"info-license-strict":Io,"tag-description":Do,"tags-alphabetical":jo,"paths-kebab-case":od,"no-enum-type-mismatch":kn,"boolean-parameter-prefixes":DT,"no-path-trailing-slash":Vu,"operation-2xx-response":Bu,"operation-4xx-response":Hu,assertions:tr,"operation-operationId-unique":Gu,"operation-parameters-unique":Yu,"path-parameters-defined":Xs,"operation-tag-defined":Xu,"path-declaration-must-exist":ed,"operation-operationId-url-safe":Wu,"operation-operationId":No,"operation-summary":Ju,"operation-description":Ku,"path-not-include-query":rd,"path-params-defined":Xs,"parameter-description":Zu,"operation-singular-tag":Qu,"security-defined":cd,"security-scopes-defined":Ys,"no-unresolved-refs":Et,"no-identical-paths":Fu,"no-ambiguous-paths":ju,"path-http-verbs-order":td,"no-http-verbs-in-paths":Lu,"request-mime-type":jT,"response-mime-type":LT,"path-segment-plural":nd,"response-contains-header":sd,"response-contains-property":MT,"scalar-property-missing-example":ad,"required-string-property-missing-min-length":id,"spec-strict-refs":pd,"spec-ref-siblings":qo,"no-required-schema-properties-undefined":In,"no-schema-type-mismatch":Cn,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":Nn,"no-duplicated-tag-names":Co},UT={};var zT=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=B(t.schema)?r.resolve(t.schema).node:t.schema;n&&OZ(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 OZ(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 VT=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 ea="Schema",Qv="Parameter",Jv="Response",Xv="RequestBody",TZ={[ea]:"schemas",[Qv]:"parameters",[Jv]:"responses",[Xv]:"requestBodies"},BT=e=>{let t=new Map,r=new Map,n=e.strategy==="title",o,i=[];e.schemas!=="off"&&i.push(ea),e.parameters!=="off"&&i.push(Qv),e.responses!=="off"&&i.push(Jv),e.requestBodies!=="off"&&i.push(Xv);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=Xo(b);if(p(y,x.location,h)){let{title:w,name:S}=Bp(x.node);if(w){c(y,S,x.location,x.location.child("title"));return}r.set(x.location.absolutePointer.toString(),x.location),l(y,x.location);return}l(y,b.location)}}},Root:{enter(u,{location:f}){o=f.source.absoluteRef},leave(u,f){t.forEach((m,h,y)=>{if(m.size>1){let b=IZ(h),x=RZ(b.typeName),w=x?e[x]:null;for(let[S,$]of m){let P=Array.from(m.keys()).filter(q=>q!==S).map(q=>`- ${q}`).join(`
|
|
128
|
-
`),A={message:`Component '${x}/${b.componentName}' is not unique. It is also defined at:
|
|
129
|
-
${P}`,location:$,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};w&&(A.forceSeverity=w),f.report(A)}}});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(p(ea,f)){c(ea,String(m),h.NamedSchemas.child(m));return}l(ea,f)}}),e.responses!="off"&&(s.NamedResponses={Response(u,{location:f}){l(Jv,f)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(u,{location:f}){l(Qv,f)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(u,{location:f}){l(Xv,f)}}),s;function a(u){let f=u.split("/").slice(-1)[0];return ga(f)?f.slice(0,f.lastIndexOf(".")):f}function c(u,f,m,h=m){let y=kZ(u,f),b=t.get(y)??new Map,x=m.absolutePointer.toString();b.has(x)||b.set(x,h),t.set(y,b)}function l(u,f){let m=a(f.absolutePointer.toString());c(u,m,f)}function p(u,f,m=f){return n&&u===ea&&(f.source.absoluteRef!==o||m.source.absoluteRef!==o)}};function RZ(e){return TZ[e]??null}function kZ(e,t){return`${e}/${t}`}function IZ(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var HT=()=>({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 KT=()=>({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 CZ=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"]),JT=()=>({AllOf(e,t){let r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!NZ(e[0],t.resolve))&&Zv(e,"allOf",t),eb(e,"allOf",t),tb(e,"allOf",t))},AnyOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let n=T(r.discriminator);e.length<2&&!n&&Zv(e,"anyOf",t),eb(e,"anyOf",t),tb(e,"anyOf",t),n&>(e,"anyOf",t)},OneOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let{discriminator:n}=r,o=T(n);e.length<2&&!o&&Zv(e,"oneOf",t),eb(e,"oneOf",t),tb(e,"oneOf",t),o&>(e,"oneOf",t),ud(r)&&qZ(e,t),DZ(e,o?n:void 0,t)}});function Zv(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 NZ(e,t){return T(Yc(e,t)?.schema.discriminator)}function eb(e,t,r){for(let[n,o]of e.entries())T(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 GT(e,t,r){for(let[n,o]of e.entries())B(o)||T(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 tb(e,t,r){for(let n=1;n<e.length;n++){let o=e.findIndex(i=>_r(i,e[n]));o<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${o+1}.`,location:r.location.child([n])})}}function qZ(e,t){e.some(n=>{let o=Yc(n,t.resolve);return o?ud(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 DZ(e,t,r){let{resolve:n,report:o,location:i}=r,s=r.specVersion!=="oas3_2",a=e.map(c=>Yc(c,n));for(let c=0;c<a.length-1;c++){let l=a[c];if(l)for(let p=c+1;p<a.length;p++){let u=a[p];if(!u||_r(e[c],e[p]))continue;let f=jZ(l,u,n,t,s);f&&o({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${WT(e[c],c)} and ${WT(e[p],p)}. ${f}`,location:i.key()})}}}function WT(e,t){return B(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function jZ(e,t,r,n,o){let i=e.schema,s=t.schema;if(ld(i)||ld(s)||XT(i,s))return null;if(ud(i)&&ud(s))return"Both schemas accept `null`.";let a=Jc(i),c=Jc(s);if(a&&c){let p=a.filter(u=>c.some(f=>_r(u,f)));return`Both schemas allow the values ${JSON.stringify(p)}.`}if(n)return o?MZ(i,s,n):null;let l=LZ(e,t,r);if(l)return l;if(!i.properties&&!s.properties){let p=eR(i,s);if(p?.length)return`Both schemas accept ${p.map(u=>`\`${u}\``).join(", ")}.`}return null}function MZ(e,t,r){let{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:Pt(tt(e.properties??{},n))&&Pt(tt(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 LZ(e,t,r){let n=FZ(e,t);if(!n||YT(e.schema,n.leftProperties,n.rightRequired)||YT(t.schema,n.rightProperties,n.leftRequired)||UZ(n)||n.sharedNames.length===0)return null;let o=zZ(n,r);if(!o)return null;let{optionalDistinguishingNames:i,ambiguousNames:s}=o;if(i.length>0){let a=s.length>0?` Other shared properties: ${rb(s)}.`:"";return`Add ${rb(i)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${a}`}return s.length>0?`Both schemas define ${rb(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function FZ(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=>tt(n,o))}}function UZ({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){let o=[...r].some(s=>!tt(t,s)&&!n.has(s)),i=[...n].some(s=>!tt(e,s)&&!r.has(s));return o&&i}function zZ({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:o,rightRequired:i,sharedNames:s},a){let c=[],l=[];for(let p of s){let u=o.has(p)&&i.has(p),f=Yc(tt(r,p),a,e),m=Yc(tt(n,p),a,t);if(!(!f||!m)&&!(ld(f.schema)||ld(m.schema))){if(XT(f.schema,m.schema)){if(u)return null;c.push(p);continue}l.push(p)}}return{optionalDistinguishingNames:c,ambiguousNames:l}}function YT(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!tt(t,n))}function XT(e,t){let r=Jc(e),n=Jc(t);return r&&n?!r.some(o=>n.some(i=>_r(o,i))):eR(e,t)?.length===0}function Yc(e,t,r){if(B(e)){let{node:n,location:o}=t(e,r);return T(n)?{schema:n,source:o?.source.absoluteRef}:void 0}return T(e)?{schema:e,source:r}:void 0}function ld(e){return Object.keys(e).some(t=>!CZ.has(t)&&!t.startsWith("x-"))}function ZT(e){return"nullable"in e&&e.nullable===!0}function Qc(e){let t=e.type;if(t===void 0)return;let r=new Set(Array.isArray(t)?t:[t]);return ZT(e)&&r.add("null"),r}function eR(e,t){let r=Qc(e),n=Qc(t);if(!r||!n)return;let o=[...r].filter(i=>n.has(i));return o.length===0&&VZ(e,t)?["integer"]:o}function VZ(e,t){let r=Qc(e),n=Qc(t);return r?.has("integer")&&n?.has("number")?QT(t):r?.has("number")&&n?.has("integer")?QT(e):!1}function QT(e){let t=Jc(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function ud(e){return ZT(e)||Qc(e)?.has("null")===!0}function Jc(e){if(e.enum)return e.enum;let t="const"in e?e.const:void 0;return Pt(t)?[t]:void 0}function rb(e){return e.map(t=>`\`${t}\``).join(", ")}var tR=e=>{let t=new On,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(Pt(i.example))l(i.example,a.child("example"));else if(T(i.examples))for(let p of Object.keys(i.examples))l(i.examples[p],a.child(["examples",p]),!0);function l(p,u,f){if(B(p)){let h=c(p);if(!h.location)return;u=h.location,p=h.node}let m=p;if(f){let h=Du(p);if(!h)return;m=h.value,u=u.child(h.field)}Ro({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 rR=()=>({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 nR=()=>({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 iR=()=>({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=oR(o);i&&n.push(...i)}else{let o=oR(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 oR(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 sR=()=>({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 aR=()=>{let e=new Map,t=new Map,r=new Set;function n(o,i,s=!1){e.set(o.absolutePointer,{used:e.get(o.absolutePointer)?.used||!1,referencesDiscriminator:s,location:o,name:i})}return{ref(o,{type:i,resolve:s,key:a,location:c}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(i.name)){let l=s(o);if(!l.location)return;e.set(l.location.absolutePointer,{used:!0,name:a.toString(),location:c})}},Root:{leave(o,{report:i}){e.forEach(s=>{!s.used&&!s.referencesDiscriminator&&i({message:`Component: "${s.name}" is never used.`,location:s.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((s,a)=>{r.has(a)||i({message:`Security scheme: "${a}" is never used.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(o,{location:i,key:s,resolve:a}){let c=o.allOf?.some(l=>B(l)&&a(l)?.node?.discriminator);n(i,s.toString(),c)}},NamedParameters:{Parameter(o,{location:i,key:s}){n(i,s.toString())}},NamedResponses:{Response(o,{location:i,key:s}){n(i,s.toString())}},NamedExamples:{Example(o,{location:i,key:s}){n(i,s.toString())}},NamedRequestBodies:{RequestBody(o,{location:i,key:s}){n(i,s.toString())}},NamedHeaders:{Header(o,{location:i,key:s}){n(i,s.toString())}},NamedMediaTypes:{MediaTypesMap(o,{location:i,key:s}){n(i,s.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{rawLocation:i,key:s}){t.set(s.toString(),i)}},SecurityRequirement(o){for(let i of Object.keys(o))r.add(i)}}};var cR=()=>({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 nb="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",pR=()=>({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:nb})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Ur({fieldName:"schema",value:e,ctx:t,reference:nb}),!e.schema)return;let{schema:r,location:n}=Ei(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(let o of["type","title"])to(e.schema,o,t)||t.report({message:Oi("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:nb})}}}});var lR=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Mo({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){Mo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Mo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var uR=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[ro(r)]||t[ro(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 dR=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Mo({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){Mo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Mo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var fR=()=>{let e=`^[${fp}]+$`;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 mR=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){let n=t.discriminator?.propertyName;if(!n)return;let o=t.discriminator?.defaultMapping;if(o===void 0){let i=new Set,s=(a,c)=>{let l=Ei(a,r,c);return!!(!l.schema||i.has(l.schema)||(i.add(l.schema),l.schema.required?.includes(n)||l.schema.allOf?.some(p=>s(p,l.location))||l.schema.oneOf?.every(p=>s(p,l.location))||l.schema.anyOf?.every(p=>s(p,l.location))))};s(t)||r.report({message:`Discriminator with optional property '${n}' must include a defaultMapping field.`,location:r.location.child("discriminator"),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}else r.resolve({$ref:o}).node===void 0&&!e.includes(o)&&r.report({message:`defaultMapping value '${o}' does not point to an existing schema component.`,location:r.location.child(["discriminator","defaultMapping"]),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}}}};var hR=()=>({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 yR=()=>({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 gR=()=>{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 vR(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function bR(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 xR(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 SR=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,bR(vR(n.parameters||[]),o)},Parameter(n,o){xR(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+vR(n.parameters||[]);bR(i,o)},Parameter(n,o){xR(n,o.location,t,o)}}}}};var wR=()=>({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 _R={struct:Nt,"info-contact":zr,"info-license":Js,"info-license-strict":Io,"operation-2xx-response":Bu,"operation-4xx-response":Hu,"operation-4xx-problem-details-rfc7807":pR,assertions:tr,"operation-operationId-unique":Gu,"operation-parameters-unique":Yu,"operation-tag-defined":Xu,"no-example-value-and-externalValue":KT,"no-mixed-number-range-constraints":ko,"no-enum-type-mismatch":kn,"no-path-trailing-slash":Vu,"no-empty-servers":HT,"path-declaration-must-exist":ed,"operation-operationId-url-safe":Wu,"operation-operationId":No,"operation-summary":Ju,"tags-alphabetical":jo,"no-server-example.com":rR,"no-server-trailing-slash":nR,"tag-description":Do,"operation-description":Ku,"no-unused-components":aR,"path-not-include-query":rd,"path-parameters-defined":Xs,"path-params-defined":Xs,"parameter-description":Zu,"operation-singular-tag":Qu,"security-defined":cd,"security-scopes-defined":Ys,"no-unresolved-refs":Et,"paths-kebab-case":od,"boolean-parameter-prefixes":VT,"path-http-verbs-order":td,"no-illogical-composition-keywords":JT,"no-invalid-media-type-examples":tR,"no-identical-paths":Fu,"no-ambiguous-paths":ju,"no-undefined-server-variable":sR,"no-server-variables-empty-enum":iR,"no-http-verbs-in-paths":Lu,"request-mime-type":lR,"response-mime-type":dR,"path-segment-plural":nd,"no-invalid-schema-examples":zu,"no-invalid-parameter-examples":Uu,"response-contains-header":sd,"response-contains-property":uR,"scalar-property-missing-example":ad,"spec-components-invalid-map-name":fR,"required-string-property-missing-min-length":id,"spec-strict-refs":pd,"component-name-unique":BT,"array-parameter-serialization":zT,"no-required-schema-properties-undefined":In,"no-schema-type-mismatch":Cn,"no-duplicated-enum-values":Rn,"no-unsafe-markdown":Nn,"no-duplicated-tag-names":Co,"nullable-type-sibling":cR,"spec-no-invalid-tag-parents":gR,"spec-no-invalid-encoding-combinations":yR,"spec-discriminator-defaultMapping":mR,"spec-example-values":hR,"spec-querystring-parameters":SR,"spec-ref-siblings":wR},PR={};var $R=()=>{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 ER=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=new Set;e.params.forEach((i,s)=>{let a=r(i);if(!a.node)return;let c=a.node,l=c.name;l&&(o.has(l)&&t({message:`Parameter names must be unique. Duplicate parameter name '${c.name}' found.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),o.add(l))})}}});var AR=()=>({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 OR={struct:Nt,"no-unresolved-refs":Et,assertions:tr,"info-license":Js,"no-unused-components":$R,"info-contact":zr,"spec-no-duplicated-method-params":ER,"spec-no-required-params-after-optional":AR,"spec-ref-siblings":qo},TR={};var BZ=["$ref","target","description"],RR=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name==="ReusableAction"){for(let o of Object.keys(e))BZ.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 kR={"info-contact":zr,struct:Nt,"no-unresolved-refs":Et,"spec-ref-siblings":RR,assertions:tr},IR={};var HZ={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"}},CR=HZ;var KZ={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"}},NR=KZ;var GZ={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"}},qR=GZ;var WZ={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"}},DR=WZ;var YZ={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"}},jR=YZ;var QZ={recommended:DR,"recommended-strict":qR,minimal:NR,all:CR,spec:jR},ob={id:"",rules:{oas3:_R,oas2:FT,async2:lT,async3:gT,arazzo1:oT,overlay1:kR,openrpc1:OR,graphql:OT},preprocessors:{oas3:PR,oas2:UT,async2:uT,async3:vT,arazzo1:iT,overlay1:IR,openrpc1:TR},decorators:{oas3:M$,oas2:q$,async2:I$,async3:C$,arazzo1:k$,overlay1:F$,openrpc1:L$},configs:QZ};function dd(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}import*as MR from"node:url";var ib=new Map,JZ="v",XZ=0;function LR(e){return ib.has(e)}function FR(e){return ib.get(e)}function UR(e,t){ib.set(e,t)}async function zR(e){let t=MR.pathToFileURL(e);return t.searchParams.set(JZ,String(XZ)),import(t.href)}var Xc="recheck";function VR(e){return e.startsWith(`${Xc}/`)}function ZZ(e,t){let r=typeof e=="string"&&T(t)?{severity:e}:e;if(!T(r))return t;if(typeof t=="string")return{...r,severity:t};if(!T(t))return t;let n={...r,...t};return T(r.assertions)&&T(t.assertions)&&(n.assertions={...r.assertions,...t.assertions}),n}function eee(e,t){let r=T(e)?{...e}:{};if(T(t))for(let[n,o]of Object.entries(t))r[n]=ZZ(r[n],o);return r}function BR(e,t){if(!T(e)||t==null)return e;if(!T(t))return t;let{rules:r,...n}=t;return{...e,...n,rules:eee(e.rules,r)}}var Re=(e,t)=>{if(t)for(let r of Object.keys(t))T(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Le(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&(T(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function HR(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function ot(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function fd(e){let t={rules:{}},r={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{},recheck:t};for(let n of e){if(T(n)&&"extends"in n&&n.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
130
|
-
${JSON.stringify(n,null,2)}`);Re(r.rules,n.rules),Re(r.oas2Rules,n.oas2Rules),Le(r.oas2Rules,n.rules),Re(r.oas3_0Rules,n.oas3_0Rules),Le(r.oas3_0Rules,n.rules),Re(r.oas3_1Rules,n.oas3_1Rules),Le(r.oas3_1Rules,n.rules),Re(r.oas3_2Rules,n.oas3_2Rules),Le(r.oas3_2Rules,n.rules),Re(r.async2Rules,n.async2Rules),Le(r.async2Rules,n.rules),Re(r.async3Rules,n.async3Rules),Le(r.async3Rules,n.rules),Re(r.arazzo1Rules,n.arazzo1Rules),Le(r.arazzo1Rules,n.rules),Re(r.arazzo1_1Rules,n.arazzo1_1Rules),Le(r.arazzo1_1Rules,n.rules),Re(r.overlay1Rules,n.overlay1Rules),Le(r.overlay1Rules,n.rules),Re(r.openrpc1Rules,n.openrpc1Rules),Le(r.openrpc1Rules,n.rules),Re(r.graphqlRules,n.graphqlRules),Le(r.graphqlRules,n.rules),Re(r.preprocessors,n.preprocessors),Re(r.oas2Preprocessors,n.oas2Preprocessors),Le(r.oas2Preprocessors,n.preprocessors),Re(r.oas3_0Preprocessors,n.oas3_0Preprocessors),Le(r.oas3_0Preprocessors,n.preprocessors),Re(r.oas3_1Preprocessors,n.oas3_1Preprocessors),Le(r.oas3_1Preprocessors,n.preprocessors),Re(r.oas3_2Preprocessors,n.oas3_2Preprocessors),Le(r.oas3_2Preprocessors,n.preprocessors),Re(r.async2Preprocessors,n.async2Preprocessors),Le(r.async2Preprocessors,n.preprocessors),Re(r.async3Preprocessors,n.async3Preprocessors),Le(r.async3Preprocessors,n.preprocessors),Re(r.arazzo1Preprocessors,n.arazzo1Preprocessors),Le(r.arazzo1Preprocessors,n.preprocessors),Re(r.arazzo1_1Preprocessors,n.arazzo1_1Preprocessors),Le(r.arazzo1_1Preprocessors,n.preprocessors),Re(r.overlay1Preprocessors,n.overlay1Preprocessors),Le(r.overlay1Preprocessors,n.preprocessors),Re(r.openrpc1Preprocessors,n.openrpc1Preprocessors),Le(r.openrpc1Preprocessors,n.preprocessors),Re(r.decorators,n.decorators),Re(r.oas2Decorators,n.oas2Decorators),Le(r.oas2Decorators,n.decorators),Re(r.oas3_0Decorators,n.oas3_0Decorators),Le(r.oas3_0Decorators,n.decorators),Re(r.oas3_1Decorators,n.oas3_1Decorators),Le(r.oas3_1Decorators,n.decorators),Re(r.oas3_2Decorators,n.oas3_2Decorators),Le(r.oas3_2Decorators,n.decorators),Re(r.async2Decorators,n.async2Decorators),Le(r.async2Decorators,n.decorators),Re(r.async3Decorators,n.async3Decorators),Le(r.async3Decorators,n.decorators),Re(r.arazzo1Decorators,n.arazzo1Decorators),Le(r.arazzo1Decorators,n.decorators),Re(r.arazzo1_1Decorators,n.arazzo1_1Decorators),Le(r.arazzo1_1Decorators,n.decorators),Re(r.overlay1Decorators,n.overlay1Decorators),Le(r.overlay1Decorators,n.decorators),Re(r.openrpc1Decorators,n.openrpc1Decorators),Le(r.openrpc1Decorators,n.decorators),t=BR(t,n.recheck)}return r.recheck=t,r}function KR(e){return new Map(JSON.parse(JSON.stringify([...e])))}function sb(e){return T(e)&&"id"in e}function GR(e){return typeof e=="function"}async function cb({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:o,plugins:i=[]}){let s=e===void 0?IS:e.parsed;if(n!==void 0&&T(s)&&(s.extends=n),T(s)&&(s?.extends?.some(Vl)||s?.scorecardClassic?.levels?.some(h=>h?.extends?.some(Vl))||s?.scorecard?.levels?.some(h=>h?.extends?.some(Vl))))throw new Error("Configuration format not detected in extends: values must be strings.");let a=e??{source:new yn(t??"",JSON.stringify(s)),parsed:s},c=await wr({rootDocument:a,rootType:xo.ConfigRoot,externalRefResolver:r??new cr(dd(s?.resolve))}),l=[],p,u="";xt?p=[...(s?.plugins||[]).filter(y=>!et(y)),ob,...i]:(u=rr.dirname(t??""),l=YR(a,c,u),p=[...await XR(l.map(y=>WR(y)?y.absolutePath:y),u,o),ob,...i]);let f=QR(a,KR(c),p,o);f.apis&&!o&&(f.apis=Object.fromEntries(Object.entries(f.apis).map(([h,y])=>{let b=fd([f,y]);return[h,{...y,...b}]})));let m=l.length?l.map(h=>WR(h)&&h.isModule?h.rawPath:h.absolutePath&&rr.relative(u,h.absolutePath)).filter(Pt):void 0;return{resolvedConfig:{...f,plugins:m},resolvedRefMap:c,plugins:p}}function ree(e){for(let t of NS){let r=rr.resolve(e,t);if(ab.existsSync(r))return t}}function WR(e){return"isModule"in e}var md=(e,t,r)=>{if(!et(e))return e;let n=rr.resolve(rr.dirname(t),e);if(ab.existsSync(n))return{absolutePath:n,rawPath:e,isModule:!1};try{return{absolutePath:tee.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?rr.dirname(JR.fileURLToPath(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function XR(e,t,r=!1){if(!e)return[];let n=async c=>{if(!et(c))return c;try{let l=rr.isAbsolute(c)?c:md(c,rr.join(t,as),t).absolutePath;if(!LR(l)){let p=await zR(l),u=p.default||p,f={contentDir:t},m=Array.isArray(u)?u:[u];for(let b of m)b?.id&&sb(b)&&le.info(`Deprecated plugin format detected: ${b.id}
|
|
131
|
-
`);let h=sb(u)?u:GR(u)?await u(f):await u?.default?.(f),y=Array.isArray(h)?h:[h];h&&UR(l,y.map(b=>({...b,path:c,absolutePath:l})))}return FR(l)}catch(l){throw new Error(`Failed to load plugin "${c}": ${l.message}
|
|
132
|
-
|
|
133
|
-
${l.stack}`)}},o=new Map,i=ree(t);i&&e.push(i);let s=new Set;if(r){let c=[];for(let l of e){if(!et(l)){c.push(l);continue}let p=rr.isAbsolute(l)?l:md(l,rr.join(t,as),t).absolutePath;s.has(p)||(s.add(p),c.push({absolutePath:p}))}return c}return(await Promise.all(e.map(async c=>{if(et(c)){if(ce(c))throw new Error(pe.red("We don't support remote plugins yet."));if(s.has(c))return;s.add(c)}let l=await n(c);if(!l)return;let p=Array.isArray(l)?l:[l];return(await Promise.all(p.map(async u=>{if(!u)return;let f=u.id;if(typeof f!="string")throw new Error(pe.red(`Plugin must define \`id\` property in ${pe.blue(c.toString())}.`));if(f===Xc)throw new Error(`Plugin id "${f}" is reserved for Recheck presets.`);let m=u.absolutePath??c.toString(),h=o.get(f);if(h){if(m!==h)throw new Error(pe.red(`Plugin "id" must be unique. Plugin ${pe.blue(m)} uses id "${pe.blue(f)}" already seen in ${pe.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=ot(u.rules.oas3,f)),u.rules.oas2&&(y.rules.oas2=ot(u.rules.oas2,f)),u.rules.async2&&(y.rules.async2=ot(u.rules.async2,f)),u.rules.async3&&(y.rules.async3=ot(u.rules.async3,f)),u.rules.arazzo1&&(y.rules.arazzo1=ot(u.rules.arazzo1,f)),u.rules.overlay1&&(y.rules.overlay1=ot(u.rules.overlay1,f)),u.rules.openrpc1&&(y.rules.openrpc1=ot(u.rules.openrpc1,f)),u.rules.graphql&&(y.rules.graphql=ot(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=ot(u.preprocessors.oas3,f)),u.preprocessors.oas2&&(y.preprocessors.oas2=ot(u.preprocessors.oas2,f)),u.preprocessors.async2&&(y.preprocessors.async2=ot(u.preprocessors.async2,f)),u.preprocessors.async3&&(y.preprocessors.async3=ot(u.preprocessors.async3,f)),u.preprocessors.arazzo1&&(y.preprocessors.arazzo1=ot(u.preprocessors.arazzo1,f)),u.preprocessors.overlay1&&(y.preprocessors.overlay1=ot(u.preprocessors.overlay1,f)),u.preprocessors.openrpc1&&(y.preprocessors.openrpc1=ot(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=ot(u.decorators.oas3,f)),u.decorators.oas2&&(y.decorators.oas2=ot(u.decorators.oas2,f)),u.decorators.async2&&(y.decorators.async2=ot(u.decorators.async2,f)),u.decorators.async3&&(y.decorators.async3=ot(u.decorators.async3,f)),u.decorators.arazzo1&&(y.decorators.arazzo1=ot(u.decorators.arazzo1,f)),u.decorators.overlay1&&(y.decorators.overlay1=ot(u.decorators.overlay1,f)),u.decorators.openrpc1&&(y.decorators.openrpc1=ot(u.decorators.openrpc1,f))}return u.assertions&&(y.assertions=u.assertions),{...u,...y}}))).filter(Pt)}))).filter(Pt).flat()}function ZR(e,t){let{pluginId:r,configName:n}=HR(e),o=t.find(s=>s.id===r);if(!o)throw new Error(`Invalid config ${pe.red(e)}: plugin ${r} is not included.`);let i=o.configs?.[n];if(!i)throw new Error(r?`Invalid config ${pe.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${pe.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=r.some(i=>i.id===Xc),o=(e.extends||[]).filter(gt).map(i=>{if(!ce(i)&&!nee.extname(i))return VR(i)&&!n?null:ZR(i,r);let s=t.resolve({$ref:i});return s.location&&s.node!==void 0?s.node:null}).filter(gt);return fd([...o.map(i=>pb({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function hd(e,t){if(T(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>md(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var e1=Lt([{severity:"error",ruleId:Wp,visitor:{ref:{},ConfigGovernance:{leave(e,t){hd(e,t)}},ConfigApisProperties:{leave(e,t){hd(e,t)}},[Ot.ScorecardClassicLevel]:{leave(e,t){hd(e,t)}},ConfigRoot:{leave(e,t){hd(e,t)}}}}],xo);function yd(e,t){if(T(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 t1=Lt([{severity:"error",ruleId:Gp,visitor:{ref:{leave(e,t,r){da(e,r,t)}},ConfigGovernance:{leave(e,t){yd(e,t)}},ConfigApisProperties:{leave(e,t){yd(e,t)}},[Ot.ScorecardClassicLevel]:{leave(e,t){yd(e,t)}},ConfigRoot:{leave(e,t){yd(e,t)}}}}],xo);function YR(e,t,r){let n={plugins:[],rootConfigDir:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Wp]:n}};return Ft({document:e,rootType:xo.ConfigRoot,normalizedVisitors:e1,resolvedRefMap:t,ctx:o}),n.plugins}function QR(e,t,r,n=!1){let o={plugins:r,skipPluginEval:n},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Gp]:o}};return Ft({document:e,rootType:xo.ConfigRoot,normalizedVisitors:t1,resolvedRefMap:t,ctx:i}),e.parsed??{}}async function oee(e){let{ref:t,doc:r,externalRefResolver:n=new cr(e.config.resolve),base:o=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
134
|
-
`);let i=r===void 0?await n.resolveDocument(o,t,!0):r;if(i instanceof Error)throw i;return e.collectSpecData?.(i),_m({document:i,...e,externalRefResolver:n,types:Vo(Un(i.parsed))})}import*as dn from"node:path";var Ni=fn(Sk(),1);var zre=150,Vre=3;function Ad(e,t){Pa.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-Vre+1,0);c<2&&(c=0);let l=[],p=0;for(let f=s;f<=a&&!(c>0&&f>=a-c);f++){let m=i[f-1]||"";m!==""&&(p=Ed(m));let h=f===s?r.col-1:p,y=f===a?n.col-1:m.length;l.push([`${f}`,u(m,h,y,pe.red)]),t||l.push(["",wk(m,h,y)])}return c>0&&(l.push(["\u2026",`${Db(p)}${pe.gray(`< ${c} more lines >`)}`]),l.push([`${a}`,u(i[a-1],-1,n.col-1,pe.red)]),t||l.push(["",wk(i[a-1],-1,n.col-1)])),Bre([[`${s-2}`,u(i[s-1-2])],[`${s-1}`,u(i[s-1-1])],...l,[`${a+1}`,u(i[a-1+1])],[`${a+2}`,u(i[a-1+2])]]);function u(f,m=-1,h=1/0,y=pe.gray){return!t||!f?f:(m===-1&&(m=Ed(f)),h=Math.min(h,f.length),f.substr(0,m)+y(f.substring(m,h))+f.substr(h))}}function Bre(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:Ed(i)));return t.map(([o,i])=>pe.gray(Kre(r,o)+" |")+(i?" "+Hre(i.substring(n)):"")).join(`
|
|
135
|
-
`)}function Hre(e,t=zre){let r=e.length-t;if(r>0){let n=pe.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function wk(e,t=-1,r=1/0){return t===-1&&(t=Ed(e)),r=Math.min(r,e.length),Db(t)+"^".repeat(Math.max(r-t,1))}function Db(e){return" ".repeat(e)}function Kre(e,t){return Db(e-t.length)+t}function Ed(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function Dn(e){if(e.pointer===void 0)return e;let{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(Ni.safeLoad),i=$k(o,r,!!n);return{...e,pointer:void 0,...Wre(t,i?.startPosition??1,i?.endPosition??1)}}var _k=new WeakMap;function Gre(e){let t=_k.get(e);if(!t){t=[0];for(let r=0;r<e.body.length;r++)e.body[r]===`
|
|
136
|
-
`&&t.push(r+1);_k.set(e,t)}return t}function Pk(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 Wre(e,t,r){if(t===r)return{start:{line:1,col:1},end:{line:1,col:1}};let n=Gre(e),o=Pk(e,n,t),i=Pk(e,n,r-1);return{start:o,end:{line:i.line,col:i.col+1}}}function $k(e,t,r){let n=Gd(t.substr(2));if(e===void 0)return;let o=e;for(let i of n)if(o.kind===Ni.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===Ni.Kind.SEQ){let s=o.items[parseInt(i,10)];if(!s)break;o=s}if(r){let i=o.parent;return!i||i.kind===Ni.Kind.SEQ?o:i.kind===Ni.Kind.MAPPING?i.key:o}else return o}var Yre={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},Ek={warn:e=>pe.bgYellow(pe.black(e)),error:pe.bgRed},Ak={warn:pe.yellow,error:pe.red},ca={warn:"Warning",error:"Error"},Qre={error:"critical",warn:"minor"},Jre=+(wa.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function Od(e){return e==="error"?1:2}function Ok(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 Xre(e,t){let{maxProblems:r=100,cwd:n=xt?"":process.cwd(),format:o="codeframe",color:i=Pa.enabled,totals:s=Ok(e),version:a="2.0",command:c}=t;Pa.enabled=i;let l=e.length;e=e.filter(S=>!S.ignored);let p=l-e.length;if(e=e.sort((S,$)=>Od(S.severity)-Od($.severity)).slice(0,r),!l&&o!=="json"&&o!=="junit")return;switch(o){case"json":f();break;case"codeframe":for(let S=0;S<e.length;S++){let $=e[S];c==="bundle"||c==="check-config"||c==="split"?le.info(`${h($,S)}
|
|
137
|
-
`):le.output(`${h($,S)}
|
|
138
|
-
`)}break;case"stylish":{let S=jb(e);for(let[$,{ruleIdPad:P,locationPad:A,fileProblems:q}]of Object.entries(S)){le.output(`${pe.blue(ce($)?$:dn.relative(n,$))}:
|
|
139
|
-
`);for(let I=0;I<q.length;I++){let k=q[I];le.output(`${y(k,A,P)}
|
|
140
|
-
`)}le.output(`
|
|
141
|
-
`)}break}case"markdown":{let S=jb(e);for(let[$,{fileProblems:P}]of Object.entries(S)){le.output(`## Lint: ${ce($)?$:dn.relative(n,$)}
|
|
142
|
-
|
|
143
|
-
`),le.output(`| Severity | Location | Problem | Message |
|
|
144
|
-
`),le.output(`|---|---|---|---|
|
|
145
|
-
`);for(let A=0;A<P.length;A++){let q=P[A];le.output(`${b(q)}
|
|
146
|
-
`)}le.output(`
|
|
147
|
-
`),s.errors>0?le.output(`Validation failed
|
|
148
|
-
Errors: ${s.errors}
|
|
149
|
-
`):le.output(`Validation successful
|
|
150
|
-
`),s.warnings>0&&le.output(`Warnings: ${s.warnings}
|
|
151
|
-
`),le.output(`
|
|
152
|
-
`)}break}case"checkstyle":{let S=jb(e);le.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
153
|
-
`),le.output(`<checkstyle version="4.3">
|
|
154
|
-
`);for(let[$,{fileProblems:P}]of Object.entries(S))le.output(`<file name="${un(ce($)?$:dn.relative(n,$))}">
|
|
155
|
-
`),P.forEach(x),le.output(`</file>
|
|
156
|
-
`);le.output(`</checkstyle>
|
|
157
|
-
`);break}case"junit":{let S=e.filter(A=>A.severity==="error").length,$=e.filter(A=>A.severity==="warn").length,P={};for(let A of e){let q=A.location[0].source.absoluteRef;P[q]||(P[q]=[]),P[q].push(A)}le.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
158
|
-
`),le.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${S}" failures="${$}" skipped="0">
|
|
159
|
-
`);for(let[A,q]of Object.entries(P)){let I=ce(A)?A:dn.relative(n,A),k=q.filter(se=>se.severity==="error").length,O=q.filter(se=>se.severity==="warn").length;le.output(`<testsuite name="${un(I)}" tests="${q.length}" errors="${k}" failures="${O}">
|
|
160
|
-
`),q.forEach(se=>w(se,I)),le.output(`</testsuite>
|
|
161
|
-
`)}le.output(`</testsuites>
|
|
162
|
-
`);break}case"codeclimate":u();break;case"summary":Zre(e);break;case"github-actions":tne(e,n)}l-p>r&&le.info(`< ... ${l-r} more problems hidden > ${pe.gray("increase with `--max-problems N`")}
|
|
163
|
-
`);function u(){let S=e.map($=>{let P=$.location[0],A=Dn(P);return{description:$.message,location:{path:ce(P.source.absoluteRef)?P.source.absoluteRef:dn.relative(n,P.source.absoluteRef),lines:{begin:A.start.line}},severity:Qre[$.severity],fingerprint:`${$.ruleId}${$.location.length>0?"-"+$.location[0].pointer:""}`}});le.output(JSON.stringify(S,null,2))}function f(){let S={totals:s,version:a,problems:e.map($=>{let P={...$,location:$.location.map(A=>{let{start:q,end:I}=Dn(A);return{...A,start:q,end:I,source:{ref:ce(A.source.absoluteRef)?A.source.absoluteRef:dn.relative(n,A.source.absoluteRef)}}}),from:$.from?{...$.from,source:{ref:ce($.from?.source.absoluteRef)?$.from?.source.absoluteRef:dn.relative(n,$.from?.source.absoluteRef||n)}}:void 0};if(wa.FORMAT_JSON_WITH_CODEFRAMES){let A=$.location[0],q=Dn(A);P.codeframe=Ad(q,i)}return P})};le.output(JSON.stringify(S,null,2))}function m(S){let{severity:$}=S;if(!Ek[$])throw new Error(Yre.INVALID_SEVERITY_LEVEL);return Ek[$]}function h(S,$){let P=m(S),A=S.location[0],q=ce(A.source.absoluteRef)?A.source.absoluteRef:dn.relative(n,A.source.absoluteRef),I=Dn(A),k=A.pointer?pe.gray(`at ${A.pointer}`):"",O=`${q}:${I.start.line}:${I.start.col}`;return`[${$+1}] ${P(O)} ${k}
|
|
164
|
-
|
|
165
|
-
${S.message}
|
|
166
|
-
|
|
167
|
-
`+Tk(S)+Ad(I,i)+`
|
|
168
|
-
|
|
169
|
-
`+ene(n,S.from)+`${ca[S.severity]} was generated by the ${pe.blue(S.ruleId)} rule.
|
|
170
|
-
|
|
171
|
-
`+(S.reference?`Reference: ${pe.blue(S.reference)}
|
|
172
|
-
|
|
173
|
-
`:"")}function y(S,$,P){let A=Ak[S.severity];if(!ca[S.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let q=A(ca[S.severity].toLowerCase().padEnd(7)),{start:I}=S.location[0];return` ${`${I.line}:${I.col}`.padEnd($)} ${q} ${S.ruleId.padEnd(P)} ${S.message}`}function b(S){if(!ca[S.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let $=ca[S.severity].toLowerCase(),{start:P}=S.location[0];return`| ${$} | line ${`${P.line}:${P.col}`} | [${S.ruleId}](https://redocly.com/docs/cli/rules/${S.ruleId}/) | ${S.message.replaceAll(`
|
|
174
|
-
`,"<br>")} |`}function x(S){let{line:$,col:P}=S.location[0].start,A=S.severity=="warn"?"warning":"error",q=un(S.message),I=un(S.ruleId);le.output(`<error line="${$}" column="${P}" severity="${A}" message="${q}" source="${I}" />
|
|
175
|
-
`)}function w(S,$){let P=S.location[0],{start:A}=Dn(P),q=S.severity==="error"?"error":"failure",I=un(S.ruleId),k=un(S.message),O=[`Rule: ${I}`,`Severity: ${un(S.severity)}`,`File: ${un($)}`,`Line: ${A.line}`,`Column: ${A.col}`];P.pointer&&O.push(`Pointer: ${un(P.pointer)}`),O.push(`Message: ${k}`),le.output(`<testcase classname="${I}" name="${I}" file="${un($)}" line="${A.line}">
|
|
176
|
-
`),le.output(`<${q} message="${k}" type="${I}">${O.join(`
|
|
177
|
-
`)}</${q}>
|
|
178
|
-
`),le.output(`</testcase>
|
|
179
|
-
`)}}function Zre(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])=>Od(n.severity)-Od(o.severity)||o.count-n.count);for(let[n,o]of r){let i=Ak[o.severity],s=i(ca[o.severity].toLowerCase().padEnd(7));le.output(`${s} ${n}: ${o.count}
|
|
180
|
-
`)}le.output(`
|
|
181
|
-
`)}function ene(e,t){if(!t)return"";let r=dn.relative(e,t.source.absoluteRef),n=Dn(t),o=`${r}:${n.start.line}:${n.start.col}`,i=t.pointer?pe.gray(`at ${t.pointer}`):"";return`referenced from ${pe.blue(o)} ${i}
|
|
182
|
-
|
|
183
|
-
`}function Tk(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
184
|
-
|
|
185
|
-
`:`Did you mean:
|
|
186
|
-
- ${e.suggest.slice(0,Jre).join(`
|
|
187
|
-
- `)}
|
|
188
|
-
|
|
189
|
-
`}var jb=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(Dn)};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 un(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 tne(e,t){for(let s of e)for(let a of s.location.map(Dn)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}let l=Tk(s),p=s.reference?`Reference: ${s.reference}
|
|
190
|
-
|
|
191
|
-
`:"",u=s.message+(l!==""||p!==""?`
|
|
192
|
-
|
|
193
|
-
`:"")+l+p,f={title:s.ruleId,file:ce(a.source.absoluteRef)?a.source.absoluteRef:dn.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};le.output(`::${c} ${r(f)}::${o(u)}
|
|
194
|
-
`)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,c])=>`${a}=${i(c)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}var{theme:P_e,...rne}=ls.properties,nne={...ls,properties:rne};async function Rk(e){let{ref:t,externalRefResolver:r=new cr(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Td({document:n,...e,externalRefResolver:r})}async function one(e){let{source:t,absoluteRef:r,externalRefResolver:n=new cr(e.config.resolve)}=e,o=Go(t,r||"/");return Td({document:o,...e,externalRefResolver:n})}async function Td(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(es(t.source.absoluteRef)){let{lintGraphqlDocument:m}=await import("./UYZXI3NO.js");return m({document:t,config:o})}let i=Un(t.parsed),s=o.getRulesForSpecVersion($a(i)),a=Wr(o.extendTypes(r??Vo(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},l=Di(s,o,"preprocessors",i),p=Di(s,o,"rules",i),u=await wr({rootDocument:t,rootType:a.Root,externalRefResolver:n});l.length>0&&(Ft({document:t,rootType:a.Root,normalizedVisitors:Lt(l,a),resolvedRefMap:u,ctx:c}),u=await wr({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let f=Lt(p,a);return Ft({document:t,rootType:a.Root,normalizedVisitors:f,resolvedRefMap:u,ctx:c}),c.problems.map(m=>o.addProblemToIgnore(m))}async function ine(e){let{severity:t,externalRefResolver:r=new cr,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=Wr(e.externalConfigTypes||zl(nne,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Nt({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Et({severity:"error"})}],a=Lt(s,i),c=n.resolvedRefMap||await wr({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return Ft({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}import*as sne from"node:fs";import*as Mb from"node:path";function ane(e){return(Mb.extname(e)===".yaml"||Mb.extname(e)===".yml")&&!!sne?.existsSync?.(e)}function cne(e){return T(e)&&!br(e)}async function pne(e){return new Promise(t=>setTimeout(t,e))}function Br(e,t){if(B(t.parent))return;let r=t.key.toString(),n=e.counts??={};n[r]=(n[r]??0)+1}function Lb(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 lne=e=>({SpecExtension:{enter(t,r){Br(e.xExtensions,r)}},XCodeSampleList:{enter(t,r){Br(e.xExtensions,r)}},ExamplesMap:{enter(t,r){r.key.toString()==="x-examples"&&Br(e.xExtensions,r)}},EnumDescriptions:{enter(t,r){Br(e.xExtensions,r)}},TagGroups:{enter(t,r){Br(e.xExtensions,r)}},Logo:{enter(t,r){Br(e.xExtensions,r)}},XServerList:{enter(t,r){Br(e.xExtensions,r)}},XUsePkce:{enter(t,r){Br(e.xExtensions,r)}},Operation:{enter(t,r){r.key.toString()==="x-query"&&Br(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"&&Br(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(){Lb(e)}}}),une=e=>({SpecExtension:{enter(t,r){Br(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(){Lb(e)}}}),dne=e=>({SpecExtension:{enter(t,r){Br(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(){Lb(e)}}});import*as Ck from"node:fs";import*as oo from"node:path";function Ik(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&T(i)){let s=i;if(t){kk(t,s);for(let a of s.where||[])kk(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function kk(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}.`);Tn[r]=AO(i.assertions[o])}}var np=class e{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;recheck;_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=dd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>Ik({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.recheck=t.recheck??{rules:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!T(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?oo.dirname(this.configPath):process.cwd(),n=ce(t)?t:oo.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?oo.dirname(this.configPath):process.cwd(),r=oo.join(t,Ca),n={};for(let o of Object.keys(this.ignore)){let i=ce(o)?o:Ia(oo.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}Ck.writeFileSync(r,CS+Pp(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 op from"node:fs";import*as Nk from"node:path";function fne(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=ce(n)?n:dp(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 qk(e,t){let r=e?Wd(e):xt?"":process.cwd(),n=r?dp(r,Ca):Ca;if(op?.existsSync&&!ce(n)&&!op.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:fne(o.parsed||{},r)}async function mne(e={}){let{configPath:t=Dk(),customExtends:r,externalRefResolver:n,skipPluginEval:o,plugins:i}=e,s=n??new cr,a=t?await s.resolveDocument(null,t,!0):void 0;if(a instanceof Error)throw a;let{resolvedConfig:c,resolvedRefMap:l,plugins:p}=await cb({rawConfigDocument:a?Mk(a):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o,plugins:i}),u=await qk(t,s);return new np(c,{configPath:t,document:a,resolvedRefMap:l,plugins:p,ignore:u})}function Dk(e){if(!op?.existsSync)return;let t=e?Nk.resolve(e,as):as;return op.existsSync(t)?t:void 0}async function jk(e,{configPath:t,externalRefResolver:r,ignore:n,plugins:o}={}){let s=Go(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(s.parsed=e);let{resolvedConfig:a,resolvedRefMap:c,plugins:l}=await cb({rawConfigDocument:Mk(s),configPath:t,externalRefResolver:r,plugins:o});return new np(a,{configPath:t,document:s,resolvedRefMap:c,plugins:l,ignore:n})}function Mk(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{ane as a,_r as b,T as c,br as d,$i as e,cne as f,et as g,gt as h,hc as i,pne as j,BC as k,HC as l,xt as m,Ia as n,mi as o,Wr as p,B as q,up as r,mn as s,ce as t,Tr as u,Vo as v,re as w,vs as x,Qa as y,bs as z,Nh as A,tP as B,ry as C,_y as D,Fy as E,l$ as F,By as G,Wy as H,lne as I,une as J,dne as K,Ko as L,Pp as M,hn as N,es as O,ga as P,yn as Q,_a as R,cr as S,wr as T,yO as U,SO as V,cz as W,pz as X,yz as Y,gz as Z,vz as _,bz as $,xz as aa,Sz as ba,wz as ca,_z as da,om as ea,le as fa,$a as ga,Un as ha,Lt as ia,Ft as ja,$ce as ka,rs as la,cm as ma,_m as na,oee as oa,mne as pa,jk as qa,Dn as ra,Ok as sa,Xre as ta,un as ua,Rk as va,one as wa,Td as xa,ine as ya};
|
|
195
|
-
/*! Bundled license information:
|
|
196
|
-
|
|
197
|
-
js-yaml/dist/js-yaml.mjs:
|
|
198
|
-
(*! js-yaml 5.4.3 https://github.com/nodeca/js-yaml @license MIT *)
|
|
199
|
-
*/
|