@redocly/replay 0.30.0-next.3 → 0.30.0-next.5
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/dist/{replay-AiChatProvider-CWRYLrWy.js → replay-AiChatProvider-CIywyLHq.js} +1 -1
- package/dist/{replay-AiChatProvider-BbeaHRwQ.js → replay-AiChatProvider-DIgkY3kh.js} +6 -6
- package/dist/{replay-AiChatSqliteDBStorage-DBTGTXZH.js → replay-AiChatSqliteDBStorage-BEWFNvvr.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-BM-5OZ4O.js → replay-AiChatSqliteDBStorage-BFITaKcX.js} +1 -1
- package/dist/{replay-AiPanel-nh0M9JvX.js → replay-AiPanel-B_XizDaL.js} +4 -4
- package/dist/{replay-AiPanel-Y0J1o3Uf.js → replay-AiPanel-Bsu1sdgq.js} +1 -1
- package/dist/{replay-FileWatcher-bBmPl9A0.js → replay-FileWatcher-CDiK_231.js} +2 -2
- package/dist/{replay-FileWatcher-vVWj74Zn.js → replay-FileWatcher-DYuN1l9G.js} +1 -1
- package/dist/{replay-SemanticSearchService-BQRB5pp0.js → replay-SemanticSearchService-CWnTWVrh.js} +1 -1
- package/dist/{replay-SemanticSearchService-BzbZTohw.js → replay-SemanticSearchService-hGPvL8ZA.js} +1 -1
- package/dist/{replay-SqliteDBStorage-8m1vyb9m.js → replay-SqliteDBStorage-DUgfGXQS.js} +1 -1
- package/dist/{replay-SqliteDBStorage-HFH3g_5D.js → replay-SqliteDBStorage-DqCad-jO.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-CB72UKls.js → replay-TauriFileSystemAdapter-DbStHrcq.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-DDR2Z2U5.js → replay-TauriFileSystemAdapter-NsUe7OA2.js} +1 -1
- package/dist/{replay-TauriRootStorage-CWX3A0qv.js → replay-TauriRootStorage-D4stEcJc.js} +2 -2
- package/dist/{replay-TauriRootStorage-DmA-Hhq7.js → replay-TauriRootStorage-hyP1w9HP.js} +1 -1
- package/dist/{replay-agent-loop-BxutEf07.js → replay-agent-loop-YDWUOapv.js} +1 -1
- package/dist/{replay-agent-loop-BQt0orJh.js → replay-agent-loop-wlfFhx7A.js} +3 -3
- package/dist/{replay-ai-chat-mappers-BaCjjGdP.js → replay-ai-chat-mappers-C1MxdxUZ.js} +1 -1
- package/dist/{replay-ai-chat-mappers-7zd5zn-K.js → replay-ai-chat-mappers-CX9Tbjaq.js} +1 -1
- package/dist/{replay-create-model-DzXJLI6B.js → replay-create-model-B46oXIt0.js} +3 -3
- package/dist/{replay-create-model-CR-UkkMa.js → replay-create-model-CpeHx32p.js} +3 -3
- package/dist/{replay-db-CBiMhO1x.js → replay-db-DyBtcH0M.js} +1 -1
- package/dist/{replay-db-BS39ID6W.js → replay-db-_sfKkGQN.js} +1 -1
- package/dist/{replay-external-resolver-CqOlCFOQ.js → replay-external-resolver-BVlse8p4.js} +1 -1
- package/dist/{replay-external-resolver-u2WAvgWp.js → replay-external-resolver-D7Wt_iae.js} +2 -2
- package/dist/{replay-index-BD3Gq77D.js → replay-index-B5qx5bDS.js} +1 -1
- package/dist/{replay-index-WzX6AQvz.js → replay-index-BHtfLbOG.js} +13779 -13762
- package/dist/{replay-index-BcVo0t1H.js → replay-index-CMFKqCDF.js} +1058 -1058
- package/dist/{replay-index-BsoZa2bE.js → replay-index-CPj7VXy4.js} +1 -1
- package/dist/{replay-index-CjApMgZf.js → replay-index-CXJlqm6N.js} +1 -1
- package/dist/replay-index-Cby2I8sk.js +4 -0
- package/dist/{replay-index-D4Qkl6NP.js → replay-index-CdCv9u0A.js} +1 -1
- package/dist/{replay-index-DKf2J9m0.js → replay-index-CjQB3EDL.js} +1 -1
- package/dist/{replay-index-FM2geYgb.js → replay-index-Cx8oraX2.js} +14 -14
- package/dist/{replay-index-Bw_xRKJf.js → replay-index-DDciZQv-.js} +1 -1
- package/dist/{replay-index-KpMbpH5S.js → replay-index-DojX0a8W.js} +1 -1
- package/dist/{replay-index-D0uYtq-0.js → replay-index-waj9vpTT.js} +1 -1
- package/dist/{replay-lint-V30-67Bp.js → replay-lint-CTr--PY8.js} +44 -44
- package/dist/{replay-lint-Ca1QI84w.js → replay-lint-GlL55UxQ.js} +3137 -3138
- package/dist/{replay-lint-graphql-BUeKJQC4.js → replay-lint-graphql-BAbZ5zlw.js} +2 -2
- package/dist/{replay-lint-graphql-9yYJo29b.js → replay-lint-graphql-C6bTArZZ.js} +1 -1
- package/dist/{replay-periodic-revalidation-BmUDQyLb.js → replay-periodic-revalidation-BIL4A6wA.js} +1 -1
- package/dist/{replay-periodic-revalidation-Bc4WtN_i.js → replay-periodic-revalidation-BmcwS5Zr.js} +1 -1
- package/dist/{replay-resolve-DNoL01ak.js → replay-resolve-DM1hJihD.js} +1 -1
- package/dist/{replay-resolve-4SFNGxcL.js → replay-resolve-DyEp5KUi.js} +1 -1
- package/dist/{replay-respect-run-DoD_1ER5.js → replay-respect-run-C683sR_D.js} +1 -1
- package/dist/{replay-respect-run-lsRWmAUx.js → replay-respect-run-DYbP2ssj.js} +3 -3
- package/dist/{replay-tauri-path-BNIGLyxA.js → replay-tauri-path-CPxazvK7.js} +2 -2
- package/dist/{replay-tauri-path-BvmBzezt.js → replay-tauri-path-acwDFL6X.js} +1 -1
- package/dist/{replay-useAiChatQueries-DY9PuM7r.js → replay-useAiChatQueries-ATPMv4Ui.js} +1 -1
- package/dist/{replay-useAiChatQueries-BkecPRUX.js → replay-useAiChatQueries-CWkTkF35.js} +4 -4
- package/dist/{replay-validate-key-DG_wN-FG.js → replay-validate-key-AU0r5ni5.js} +1 -1
- package/dist/{replay-validate-key-B98-1SUC.js → replay-validate-key-a3_b2aYk.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +1 -1
- package/package.json +4 -4
- package/dist/replay-index-B4RGIbsR.js +0 -4
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
"use strict";const Y=require("./replay-index-BcVo0t1H.js"),j=require("./replay-resolve-DNoL01ak.js");var Tt=typeof document<"u"?document.currentScript:null;function Dt(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--&&Dt(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)||!Dt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function hr(e){return Y.isPlainObject(e)&&Object.keys(e).length===0}function Fr(e){return Array.isArray(e)&&e.length>0}function it(e){return typeof e=="string"}function Hs(e){return e?Object.keys(e):[]}function fy(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ei={exports:{}},my=Ei.exports,ac;function hy(){return ac||(ac=1,(function(e,t){(function(r,n){typeof fy=="function"?e.exports=n():r.pluralize=n()})(my,function(){var r=[],n=[],i={},o={},s={};function c(x){return typeof x=="string"?new RegExp("^"+x+"$","i"):x}function p(x,P){return x===P?P:x===x.toLowerCase()?P.toLowerCase():x===x.toUpperCase()?P.toUpperCase():x[0]===x[0].toUpperCase()?P.charAt(0).toUpperCase()+P.substr(1).toLowerCase():P.toLowerCase()}function l(x,P){return x.replace(/\$(\d{1,2})/g,function(A,S){return P[S]||""})}function d(x,P){return x.replace(P[0],function(A,S){var v=l(P[1],arguments);return p(A===""?x[S-1]:A,v)})}function h(x,P,A){if(!x.length||i.hasOwnProperty(x))return P;for(var S=A.length;S--;){var v=A[S];if(v[0].test(P))return d(P,v)}return P}function y(x,P,A){return function(S){var v=S.toLowerCase();return P.hasOwnProperty(v)?p(S,v):x.hasOwnProperty(v)?p(S,x[v]):h(v,S,A)}}function g(x,P,A,S){return function(v){var O=v.toLowerCase();return P.hasOwnProperty(O)?!0:x.hasOwnProperty(O)?!1:h(O,O,A)===O}}function $(x,P,A){var S=P===1?$.singular(x):$.plural(x);return(A?P+" ":"")+S}return $.plural=y(s,o,r),$.isPlural=g(s,o,r),$.singular=y(o,s,n),$.isSingular=g(o,s,n),$.addPluralRule=function(x,P){r.push([c(x),P])},$.addSingularRule=function(x,P){n.push([c(x),P])},$.addUncountableRule=function(x){if(typeof x=="string"){i[x.toLowerCase()]=!0;return}$.addPluralRule(x,"$0"),$.addSingularRule(x,"$0")},$.addIrregularRule=function(x,P){P=P.toLowerCase(),x=x.toLowerCase(),s[x]=P,o[P]=x},[["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(x){return $.addIrregularRule(x[0],x[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(x){return $.addPluralRule(x[0],x[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(x){return $.addSingularRule(x[0],x[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($.addUncountableRule),$})})(Ei)),Ei.exports}var yy=hy();const xu=Y.getDefaultExportFromCjs(yy);function gy(e,t,r){return e.split(" ").map(n=>xu(n,t,r)).join(" ")}function Ks(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function Lr(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const by=/^[0-9][0-9Xx]{2}$/,vy={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-"},wy={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-"},xy={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},Sy={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Py={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},$y={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Ay={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Ey={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-"},Oy={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Ry={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},_y={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Ty={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-"},ky={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-"},Iy={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>by.test(t)?"Response":void 0},qy={properties:{description:{type:"string"},schema:"Schema",headers:j.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Cy={properties:{},additionalProperties:{isExample:!0}},jy={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 Y.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},My={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Dy={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},Ny={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?j.listOf("Schema"):"Schema",allOf:j.listOf("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-"},Ly={properties:{},additionalProperties:{type:"string"}},Uy={properties:{},additionalProperties:"Schema"},Fy={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},zy={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},By={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-"},Vy={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Hy={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Su={Root:vy,Tag:My,TagList:j.listOf("Tag"),TagGroups:j.listOf("TagGroup"),TagGroup:Dy,ExternalDocs:_y,Example:Hy,ExamplesMap:j.mapOf("Example"),EnumDescriptions:Ly,SecurityRequirement:Vy,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:wy,Contact:Sy,License:Py,Logo:xy,Paths:$y,PathItem:Ay,Parameter:Ty,ParameterItems:ky,ParameterList:j.listOf("Parameter"),Operation:Ey,Examples:Cy,Header:jy,Responses:Iy,Response:qy,Schema:Ny,Xml:Fy,SchemaProperties:Uy,NamedSchemas:j.mapOf("Schema"),NamedResponses:j.mapOf("Response"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),SecurityScheme:By,Scopes:zy,XCodeSample:Oy,XCodeSampleList:j.listOf("XCodeSample"),XServerList:j.listOf("XServer"),XServer:Ry},Ky=/^[0-9][0-9Xx]{2}$/,Wy={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."},Qy={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."},Gy={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"},Yy={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"},Jy={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."},Xy={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."},Zy={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."},eg={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"},tg={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."},rg={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."},ng={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."},ig={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"},og={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},sg={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"},ag={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"},cg={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"},pg={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."},lg={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."},ug={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},dg={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"},fg={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"},mg={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 – application/octet-stream; for other primitive types – text/plain; for object - application/json; for array – 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"},hg={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"},yg={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."},gg={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Ky.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"},bg={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."},vg={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’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations."},Ws="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",Pu=j.listOf("Schema",{name:"AllOf",description:Ws}),$u=j.listOf("Schema",{name:"AnyOf",description:Ws}),Au=j.listOf("Schema",{name:"OneOf",description:Ws}),wg={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:Pu,anyOf:$u,oneOf:Au,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?j.listOf("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"},xg={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."},Sg={properties:{},additionalProperties:"Schema"},Pg={properties:{},additionalProperties:e=>typeof e=="string"&&j.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},$g={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."},Ag={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"},Eg={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."},Og={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."},Rg={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."},_g={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."},Tg={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},kg={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-"},Ig={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"},Pt={Root:Wy,Tag:Qy,TagList:j.listOf("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:j.listOf("TagGroup"),TagGroup:Gy,ExternalDocs:Yy,Server:Jy,ServerList:j.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:Xy,ServerVariablesMap:j.mapOf("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:Zy,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:eg,Contact:rg,License:ng,Paths:ig,PathItem:sg,Parameter:ag,ParameterList:j.listOf("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’s components/parameters."}),Operation:cg,Callback:j.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:j.mapOf("Callback"),RequestBody:lg,MediaTypesMap:ug,MediaType:dg,Example:fg,ExamplesMap:j.mapOf("Example"),Encoding:mg,EncodingMap:j.mapOf("Encoding"),EnumDescriptions:hg,Header:yg,HeadersMap:j.mapOf("Header"),Responses:gg,Response:bg,Link:vg,Logo:tg,Schema:wg,AllOf:Pu,AnyOf:$u,OneOf:Au,Xml:xg,SchemaProperties:Sg,DiscriminatorMapping:Pg,Discriminator:$g,Components:Ag,LinksMap:j.mapOf("Link"),NamedSchemas:j.mapOf("Schema"),NamedResponses:j.mapOf("Response"),NamedParameters:j.mapOf("Parameter"),NamedExamples:j.mapOf("Example"),NamedRequestBodies:j.mapOf("RequestBody"),NamedHeaders:j.mapOf("Header"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedLinks:j.mapOf("Link"),NamedCallbacks:j.mapOf("Callback"),ImplicitFlow:Eg,PasswordFlow:Og,ClientCredentials:Rg,AuthorizationCode:_g,OAuth2Flows:Tg,SecurityScheme:kg,XCodeSample:pg,XCodeSampleList:j.listOf("XCodeSample"),XUsePkce:Ig,WebhooksMap:og},qg={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."},Cg={...Pt.License,properties:{...Pt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},jg={...Pt.Info,properties:{...Pt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Mg={...Pt.Components,properties:{...Pt.Components.properties,pathItems:"NamedPathItems"}},Dg={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."},Ng={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:j.listOf("Schema",{name:"AllOf"}),anyOf:j.listOf("Schema",{name:"AnyOf"}),oneOf:j.listOf("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:j.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:j.listOf("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-"},cc={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Lg={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-"},Ug={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Fe={...Pt,Info:jg,Root:qg,Schema:Ng,SchemaProperties:cc,PatternProperties:cc,License:Cg,Components:Mg,NamedPathItems:j.mapOf("PathItem"),SecurityScheme:Lg,Operation:Dg,DependentRequired:Ug},Fg={...Fe.Root,properties:{...Fe.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."}}},zg={...Fe.Tag,properties:{...Fe.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."},Bg={...Fe.Server,properties:{...Fe.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."},Vg={...Fe.SecurityScheme,properties:{...Fe.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."},Hg={...Fe.OAuth2Flows,properties:{...Fe.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Kg={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:j.mapOf("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."},Wg={...Pt.PathItem,properties:{...Pt.PathItem.properties,query:"Operation",additionalOperations:j.mapOf("Operation")}},Qg={...Fe.Parameter,properties:{...Fe.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"]}}},Gg={...Fe.Response,properties:{...Fe.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Yg={...Fe.MediaType,properties:{...Fe.MediaType.properties,itemSchema:"Schema",prefixEncoding:j.listOf("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"}},Jg={...Fe.Discriminator,properties:{...Fe.Discriminator.properties,defaultMapping:e=>{const 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 j.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Xg={extensionsPrefix:"x-",properties:{...Fe.Components.properties,mediaTypes:"NamedMediaTypes"}},Zg={...Fe.Example,properties:{...Fe.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."}}},eb={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’s default field values."},tb={...Fe.Schema,properties:{...Fe.Schema.properties,xml:"Xml"}},nt={...Fe,Root:Fg,Tag:zg,Server:Bg,SecurityScheme:Vg,OAuth2Flows:Hg,DeviceAuthorization:Kg,PathItem:Wg,Parameter:Qg,Response:Gg,MediaType:Yg,Discriminator:Jg,Example:Zg,Xml:eb,Schema:tb,Components:Xg,NamedMediaTypes:j.mapOf("MediaTypesMap")},rb={properties:{},description:"Protocol-specific information for an HTTP channel."},nb={properties:{},description:"Protocol-specific information for an HTTP server."},ib={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},ob={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."},sb={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},ab={properties:{},description:"Protocol-specific information for a WebSockets server."},cb={properties:{},description:"Protocol-specific information for a WebSockets message."},pb={properties:{},description:"Protocol-specific information for a WebSockets operation."},lb={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"}}},ub={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},db={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},fb={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},mb={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},hb={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},yb={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},gb={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},bb={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},vb={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."},wb={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."},xb={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."},Sb={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Pb={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},$b={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."},Ab={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},Eb={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},Ob={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Rb={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},_b={properties:{},description:"Protocol-specific information for an MQTT channel."},Tb={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},kb={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},Ib={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>Y.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},qb={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},Cb={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},jb={properties:{sessionExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Mb={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Db={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Nb={properties:{},description:"Protocol-specific information for a NATS channel."},Lb={properties:{},description:"Protocol-specific information for a NATS server."},Ub={properties:{},description:"Protocol-specific information for a NATS message."},Fb={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},zb={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Bb={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Vb={properties:{jmsConnectionFactory:{type:"string"},properties:j.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Hb={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Kb={properties:{},description:"Protocol-specific information for a JMS operation."},Wb={properties:{},description:"Protocol-specific information for a Solace channel."},Qb={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Gb={properties:{},description:"Protocol-specific information for a Solace message."},Yb={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"}}}},Jb={properties:{bindingVersion:{type:"string"},destinations:j.listOf("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},Xb={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."},Zb={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},ev={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},tv={properties:{statements:j.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},rv={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},nv={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},iv={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."},ov={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."},sv={properties:{topic:"SnsIdentifier",consumers:j.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},av={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},cv={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},pv={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},lv={properties:{statements:j.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},Eu={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)."},uv={...Eu,required:["name"],description:"Describes an SQS queue (operation-level definition)."},dv={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},fv={properties:{queues:j.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},mv={properties:{},description:"Protocol-specific information for a STOMP channel."},hv={properties:{},description:"Protocol-specific information for a STOMP server."},yv={properties:{},description:"Protocol-specific information for a STOMP message."},gv={properties:{},description:"Protocol-specific information for a STOMP operation."},bv={properties:{},description:"Protocol-specific information for a Redis channel."},vv={properties:{},description:"Protocol-specific information for a Redis server."},wv={properties:{},description:"Protocol-specific information for a Redis message."},xv={properties:{},description:"Protocol-specific information for a Redis operation."},Sv={properties:{},description:"Protocol-specific information for a Mercure channel."},Pv={properties:{},description:"Protocol-specific information for a Mercure server."},$v={properties:{},description:"Protocol-specific information for a Mercure message."},Av={properties:{},description:"Protocol-specific information for a Mercure operation."},Ev={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."},Ov={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},Rv={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},_v={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."},Tv={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."},kv={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},Iv={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."},qv={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."},Cv={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},jv={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},Mv={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},Dv={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},Nv={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."},Lv={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},Uv={properties:{},description:"Protocol-specific information for a ROS 2 channel."},Fv={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."},zv={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."},Bv={properties:{},description:"Protocol-specific information for a ROS 2 message."},Vv={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."},Hv={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."},Kv={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."},Wv={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."},Ot={HttpServerBinding:nb,HttpChannelBinding:rb,HttpMessageBinding:ib,HttpOperationBinding:ob,WsServerBinding:ab,WsChannelBinding:sb,WsMessageBinding:cb,WsOperationBinding:pb,KafkaServerBinding:db,KafkaTopicConfiguration:lb,KafkaChannelBinding:ub,KafkaMessageBinding:fb,KafkaOperationBinding:mb,AnypointmqServerBinding:yb,AnypointmqChannelBinding:hb,AnypointmqMessageBinding:gb,AnypointmqOperationBinding:bb,AmqpServerBinding:Sb,AmqpChannelExchange:vb,AmqpChannelQueue:wb,AmqpChannelBinding:xb,AmqpMessageBinding:Pb,AmqpOperationBinding:$b,Amqp1ServerBinding:Eb,Amqp1ChannelBinding:Ab,Amqp1MessageBinding:Ob,Amqp1OperationBinding:Rb,MqttServerBindingLastWill:Tb,MqttServerBinding:kb,MqttChannelBinding:_b,MqttMessageBinding:Ib,MqttOperationBinding:qb,Mqtt5ServerBinding:jb,Mqtt5ChannelBinding:Cb,Mqtt5MessageBinding:Mb,Mqtt5OperationBinding:Db,NatsServerBinding:Lb,NatsChannelBinding:Nb,NatsMessageBinding:Ub,NatsOperationBinding:Fb,JmsServerBindingProperty:Bb,JmsServerBinding:Vb,JmsChannelBinding:zb,JmsMessageBinding:Hb,JmsOperationBinding:Kb,SolaceServerBinding:Qb,SolaceChannelBinding:Wb,SolaceMessageBinding:Gb,SolaceDestination:Yb,SolaceOperationBinding:Jb,StompServerBinding:hv,StompChannelBinding:mv,StompMessageBinding:yv,StompOperationBinding:gv,RedisServerBinding:vv,RedisChannelBinding:bv,RedisMessageBinding:wv,RedisOperationBinding:xv,MercureServerBinding:Pv,MercureChannelBinding:Sv,MercureMessageBinding:$v,MercureOperationBinding:Av,SnsIdentifier:Xb,SnsOrdering:Zb,SnsStatement:ev,SnsPolicy:tv,SnsChannelBinding:rv,SnsRedrivePolicy:nv,SnsDeliveryPolicy:iv,SnsConsumer:ov,SnsOperationBinding:sv,SqsIdentifier:av,SqsRedrivePolicy:cv,SqsStatement:pv,SqsPolicy:lv,SqsQueue:Eu,SqsOperationQueue:uv,SqsChannelBinding:dv,SqsOperationBinding:fv,IbmmqServerBinding:Ev,IbmmqChannelQueue:Ov,IbmmqChannelTopic:Rv,IbmmqChannelBinding:_v,IbmmqMessageBinding:Tv,GooglepubsubMessageStoragePolicy:kv,GooglepubsubSchemaSettings:Iv,GooglepubsubChannelBinding:qv,GooglepubsubSchema:Cv,GooglepubsubMessageBinding:jv,PulsarServerBinding:Mv,PulsarRetention:Dv,PulsarChannelBinding:Nv,ServerBindings:Vv,ChannelBindings:Hv,MessageBindings:Wv,OperationBindings:Kv},Qv={Ros2ServerBinding:Lv,Ros2ChannelBinding:Uv,Ros2OperationBinding:zv,Ros2QosPolicies:Fv,Ros2MessageBinding:Bv},Qs={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:j.listOf("Schema"),anyOf:j.listOf("Schema"),oneOf:j.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?j.listOf("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"}},Gs={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Ys={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Js={properties:{},additionalProperties:e=>typeof e=="string"&&j.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Xs={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Gv={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"]},Yv={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."},Jv={properties:{},additionalProperties:"Channel"},Ou={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."},Ru={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."},Xv={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."},Zv={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."},_u={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Tu={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."},e0={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."},ku={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."},Iu={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."},t0={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."},qu={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."},r0={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."},n0={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."},i0={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."},o0={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."},Cu={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."},s0={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"}},a0={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."},c0={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."},p0={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."},l0={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."},ju={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},u0={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."},Mu={...Ot,Root:Gv,Tag:Ou,TagList:j.listOf("Tag"),ServerMap:_u,ExternalDocs:Ru,Server:Zv,ServerVariable:Tu,ServerVariablesMap:j.mapOf("ServerVariable"),SecurityRequirement:Xv,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:e0,Contact:ku,License:Iu,ChannelMap:Jv,Channel:Yv,Parameter:t0,ParametersMap:j.mapOf("Parameter"),Operation:o0,Schema:Qs,MessageExample:Cu,SchemaProperties:Gs,DiscriminatorMapping:Js,Discriminator:Xs,Components:s0,NamedSchemas:j.mapOf("Schema"),NamedMessages:j.mapOf("Message"),NamedMessageTraits:j.mapOf("MessageTrait"),NamedOperationTraits:j.mapOf("OperationTrait"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedCorrelationIds:j.mapOf("CorrelationId"),ImplicitFlow:a0,PasswordFlow:c0,ClientCredentials:p0,AuthorizationCode:l0,SecuritySchemeFlows:ju,SecurityScheme:u0,Message:r0,OperationTrait:n0,OperationTraitList:j.listOf("OperationTrait"),MessageTrait:i0,MessageTraitList:j.listOf("MessageTrait"),MessageExampleList:j.listOf("MessageExample"),CorrelationId:qu,Dependencies:Ys},d0={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."},f0={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."},m0={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."},h0={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."},y0={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."},g0={extensionsPrefix:"x-",properties:{headers:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>Y.isPlainObject(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."},b0={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."},v0={extensionsPrefix:"x-",properties:{headers:e=>Y.isPlainObject(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."},w0={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"]},x0={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."},S0={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."},P0={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."},$0={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."},A0={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."},E0={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."},O0={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."},R0={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."},_0={...Ot.ServerBindings,properties:{...Ot.ServerBindings.properties,ros2:"Ros2ServerBinding"}},T0={...Ot.ChannelBindings,properties:{...Ot.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},k0={...Ot.OperationBindings,properties:{...Ot.OperationBindings.properties,ros2:"Ros2OperationBinding"}},I0={...Ot.MessageBindings,properties:{...Ot.MessageBindings.properties,ros2:"Ros2MessageBinding"}},q0={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},C0={properties:{},additionalProperties:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Du={...Ot,...Qv,ServerBindings:_0,ChannelBindings:T0,OperationBindings:k0,MessageBindings:I0,CorrelationId:qu,SecuritySchemeFlows:ju,ServerVariable:Tu,Contact:ku,License:Iu,MessageExample:Cu,Tag:Ou,Dependencies:Ys,Schema:Qs,MultiFormatSchema:q0,Discriminator:Xs,DiscriminatorMapping:Js,SchemaProperties:Gs,ServerMap:_u,ExternalDocs:Ru,Root:d0,Channel:f0,Parameter:y0,Info:h0,Server:m0,MessageTrait:v0,Operation:w0,OperationReply:x0,OperationReplyAddress:S0,Components:P0,ImplicitFlow:$0,PasswordFlow:A0,ClientCredentials:E0,AuthorizationCode:O0,SecurityScheme:R0,Message:g0,OperationTrait:b0,ServerVariablesMap:j.mapOf("ServerVariable"),NamedTags:j.mapOf("Tag"),NamedExternalDocs:j.mapOf("ExternalDocs"),NamedChannels:j.mapOf("Channel"),ParametersMap:j.mapOf("Parameter"),NamedOperations:j.mapOf("Operation"),NamedOperationReplies:j.mapOf("OperationReply"),NamedOperationRelyAddresses:j.mapOf("OperationReplyAddress"),NamedSchemas:C0,NamedMessages:j.mapOf("Message"),NamedMessageTraits:j.mapOf("MessageTrait"),NamedOperationTraits:j.mapOf("OperationTrait"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedCorrelationIds:j.mapOf("CorrelationId"),ServerList:j.listOf("Server"),SecuritySchemeList:j.listOf("SecurityScheme"),MessageList:j.listOf("Message"),OperationTraitList:j.listOf("OperationTrait"),MessageTraitList:j.listOf("MessageTrait"),MessageExampleList:j.listOf("MessageExample"),TagList:j.listOf("Tag")},j0={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-"},M0={properties:{},additionalProperties:"Parameter"},D0={properties:{},additionalProperties:"SuccessActionObject"},N0={properties:{},additionalProperties:"FailureActionObject"},L0={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},U0=j.mapOf("Schema"),F0={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."},z0={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},B0={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."},V0={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."},H0={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."},K0={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."},W0={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Q0={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."},G0=j.listOf("Workflow"),Y0=j.listOf("Step"),J0={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:j.listOf("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."},X0={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_.-]+$."},Z0={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:j.listOf("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."},ew={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."},tw={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."},rw={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."},nw={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."},iw={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},ow={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},sw={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:j.listOf("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."},aw={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},cw={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:j.listOf("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."},pw={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},ot={Root:j0,Info:F0,SourceDescriptions:z0,OpenAPISourceDescription:B0,ArazzoSourceDescription:V0,Parameters:W0,Parameter:K0,ReusableObject:H0,Workflows:G0,Workflow:Q0,Steps:Y0,Step:J0,RequestBody:Z0,Replacement:ew,ExtendedOperation:rw,ExtendedSecurityList:j.listOf("ExtendedSecurity"),ExtendedSecurity:tw,Outputs:X0,CriterionObject:nw,XPathCriterion:ow,JSONPathCriterion:iw,SuccessActionObject:sw,OnSuccessActionList:aw,FailureActionObject:cw,OnFailureActionList:pw,Schema:nt.Schema,NamedSchemas:j.mapOf("Schema"),ExternalDocs:nt.ExternalDocs,DiscriminatorMapping:nt.DiscriminatorMapping,Discriminator:nt.Discriminator,DependentRequired:nt.DependentRequired,SchemaProperties:nt.SchemaProperties,PatternProperties:nt.SchemaProperties,Components:L0,NamedInputs:U0,NamedParameters:M0,NamedSuccessActions:D0,NamedFailureActions:N0,Xml:nt.Xml,SecurityScheme:nt.SecurityScheme,OAuth2Flows:nt.OAuth2Flows,ImplicitFlow:nt.ImplicitFlow,PasswordFlow:nt.PasswordFlow,ClientCredentials:nt.ClientCredentials,AuthorizationCode:nt.AuthorizationCode,DeviceAuthorization:nt.DeviceAuthorization},lw={...ot.Root,properties:{...ot.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."}}},uw={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},dw={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."},fw={...ot.Parameter,properties:{...ot.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},mw={...ot.Step,properties:{...ot.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"]},hw={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},yw={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},gw={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},bw={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"]},vw=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Zs=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:vw(n)},ww={...ot.CriterionObject,properties:{...ot.CriterionObject.properties,type:Zs(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},xw={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:Zs(["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."},Sw={properties:{},additionalProperties:e=>Y.isPlainObject(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_.-]+$."},Pw={...ot.Replacement,properties:{...ot.Replacement.properties,value:e=>Y.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Zs(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},$w={...ot.SuccessActionObject,properties:{...ot.SuccessActionObject.properties,parameters:"Parameters"}},Aw={...ot.FailureActionObject,properties:{...ot.FailureActionObject.properties,parameters:"Parameters"}},Nu={...ot,Root:lw,SourceDescriptions:uw,AsyncAPISourceDescription:dw,Parameter:fw,Step:mw,CriterionObject:ww,JSONPathExpression:hw,XPathExpression:yw,JSONPointerExpression:gw,ExpressionType:bw,SelectorObject:xw,Outputs:Sw,Replacement:Pw,SuccessActionObject:$w,FailureActionObject:Aw};function ea(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}const Ew={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."},Ow={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."},Rw={properties:{},items:e=>j.isRef(e)?"ReusableAction":"Action"},Lu={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"},_w={properties:{actions:"ReusableActions"},extensionsPrefix:"x-",description:"A set of components to reuse across the Overlay document."},Tw=j.mapOf("ReusableAction"),kw={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`."},Iw={properties:ea(Lu.properties,["target"]),extensionsPrefix:"x-",description:"The fields of a reusable action: an action without a `target`."},ta={Root:Ew,Info:Ow,Actions:Rw,Action:Lu,Components:_w,ReusableActions:Tw,ReusableAction:kw,ReusableActionFields:Iw},qw={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."},Cw={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."},jw={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."},Mw={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."},Dw={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."},Nw={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’s 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."},Lw={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."},Uw={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’s 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."},Fw={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."},zw={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."},Bw={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’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between results and other methods."},Vw={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."},Hw={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."},Kw={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."},Ww={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."},Uu={Root:qw,Info:Cw,Contact:jw,License:Mw,Server:Dw,ServerList:j.listOf("Server"),ServerVariable:Nw,ServerVariablesMap:j.mapOf("ServerVariable"),Method:Lw,MethodList:j.listOf("Method"),ContentDescriptor:Uw,ContentDescriptorList:j.listOf("ContentDescriptor"),ExamplePairing:Fw,ExamplePairingList:j.listOf("ExamplePairing"),Example:zw,ExampleList:j.listOf("Example"),Link:Bw,LinkList:j.listOf("Link"),ErrorObject:Vw,ErrorList:j.listOf("ErrorObject"),Components:Hw,Tag:Kw,TagList:j.listOf("Tag"),ExternalDocs:Ww,Schema:Qs,SchemaProperties:Gs,Dependencies:Ys,DiscriminatorMapping:Js,Discriminator:Xs,NamedContentDescriptors:j.mapOf("ContentDescriptor"),NamedSchemas:j.mapOf("Schema"),NamedExamples:j.mapOf("Example"),NamedLinks:j.mapOf("Link"),NamedErrors:j.mapOf("ErrorObject"),NamedExamplePairingObjects:j.mapOf("ExamplePairing"),NamedTags:j.mapOf("Tag")};var Fu={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},_r={type:"object",properties:Fu,additionalProperties:!1},Qw={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Yr={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:{...Fu,like:_r,dislike:_r,satisfied:_r,neutral:_r,dissatisfied:_r},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:Qw},additionalProperties:!1}},additionalProperties:!1},Gw={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},ra={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Es={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Yr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ra,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:Gw,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},ze={type:"string",uiHint:"color"},ft={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"},Yw={rules:ft,oas2Rules:ft,oas3_0Rules:ft,oas3_1Rules:ft,oas3_2Rules:ft,async2Rules:ft,async3Rules:ft,arazzo1Rules:ft,arazzo1_1Rules:ft,overlay1Rules:ft,openrpc1Rules:ft,graphqlRules:ft},yt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Jw={preprocessors:yt,oas2Preprocessors:yt,oas3_0Preprocessors:yt,oas3_1Preprocessors:yt,oas3_2Preprocessors:yt,async2Preprocessors:yt,async3Preprocessors:yt,arazzo1Preprocessors:yt,arazzo1_1Preprocessors:yt,overlay1Preprocessors:yt,openrpc1Preprocessors:yt},gt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Xw={decorators:gt,oas2Decorators:gt,oas3_0Decorators:gt,oas3_1Decorators:gt,oas3_2Decorators:gt,async2Decorators:gt,async3Decorators:gt,arazzo1Decorators:gt,arazzo1_1Decorators:gt,overlay1Decorators:gt,openrpc1Decorators:gt},Zw={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"},Zi={...Yw,...Xw,...Jw,extends:Zw},ir={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},ex={type:"object",properties:{name:{type:"string"},items:ir,queries:ir,mutations:ir,subscriptions:ir,types:ir,directives:ir},required:["name"],additionalProperties:!1},tx={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:ex},otherItemsGroupName:{type:"string"}}},rx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},nx={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},ix={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:rx,license:nx},additionalProperties:!1},ki={type:"object",properties:{menu:{type:"object",properties:{...tx.properties},additionalProperties:!1},downloadUrls:ra,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:ze}},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:Yr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:ix},additionalProperties:!1},na={type:"object",properties:{downloadUrls:ra,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:Yr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},ox={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"]},sx={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"}}},pc={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},ax={type:"object",properties:{beforeInfo:{type:"array",items:pc},end:{type:"array",items:pc}}},Yt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},dn={type:"object",properties:{backgroundColor:ze,borderColor:ze,color:ze,tabTextColor:ze}},cx={type:"object",properties:eo(Yt.properties,["light","dark"])},px={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"}}},lx={type:"object",properties:{error:dn,info:dn,redirect:dn,success:dn}},ux={type:"object",properties:vr(Yt.properties,["dark"])},dx={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},fx={type:"object",properties:{accent:Yt,border:cx,error:Yt,http:px,primary:Yt,responses:lx,secondary:ux,success:Yt,text:dx,tonalOffset:{type:"number"},warning:Yt}},fn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},mx={type:"object",properties:{small:fn,medium:fn,large:fn,xlarge:fn}},Rt={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},hx={type:"object",properties:{...vr(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:mx}},lc={type:"object",properties:eo(Rt.properties,["fontSize","lineHeight"])},yx={type:"object",properties:{medium:lc,small:lc}},gx={type:"object",properties:{...vr(Rt.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:ze,sizes:yx}},bx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},vx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:ze}},uc={type:"object",properties:{fullWidth:{type:"boolean"}}},wx={type:"object",properties:{buttons:hx,httpBadges:gx,layoutControls:bx,panels:vx,tryItButton:uc,tryItSendButton:uc}},Ii={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},xx={type:"object",properties:{maxWidth:Ii}},Sx={type:"object",properties:{maxWidth:Ii,middlePanelMaxWidth:Ii}},Px={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:xx,"three-panel":Sx}},dc={type:"object",properties:{backgroundColor:ze,border:{type:"string"}}},$x={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:ze,caretSize:{type:"string"},constraints:dc,defaultDetailsWidth:{type:"string"},examples:dc,labelsTextSize:{type:"string"},linesColor:ze,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:ze,typeNameColor:ze,typeTitleColor:ze}},zu={type:"object",properties:{subItemsColor:ze,textTransform:{type:"string"},fontWeight:{type:"string"}}},Ax={type:"object",properties:eo(zu.properties,["textTransform"])},Ex={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Ox={type:"object",properties:{...vr(Rt.properties,["fontWeight","lineHeight"]),activeBgColor:ze,activeTextColor:ze,backgroundColor:ze,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:ze,caretSize:{type:"string"},groupItems:zu,level1items:Ax,rightLineColor:ze,separatorLabelColor:ze,showAtBreakpoint:{type:"string"},spacing:Ex,textColor:ze,width:{type:"string"}}},mn={type:"object",properties:{...Rt.properties,color:ze,transform:{type:"string"}}},Rx={type:"object",properties:{...Rt.properties,backgroundColor:ze,color:ze,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},_x={type:"object",properties:vr(Rt.properties,["fontSize"])},Tx={type:"object",properties:{color:ze,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},kx={type:"object",properties:{code:Rx,fieldName:Rt,...eo(Rt.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:mn,heading2:mn,heading3:mn,headings:_x,lineHeight:{type:"string"},links:Tx,optimizeSpeed:{type:"boolean"},rightPanelHeading:mn,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Ix={type:"object",properties:{color:ze,...vr(Rt.properties,["fontWeight"])}},qx={type:"object",properties:{backgroundColor:ze,borderRadius:{type:"string"},tokens:Ix}},Cx={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},jx={type:"object",properties:{backgroundColor:ze,color:ze}},fc={type:"object",properties:{custom:{type:"string"}}},Mx={type:"object",properties:{DownloadButton:fc,NextSectionButton:fc}},Dx={type:"object",properties:{backgroundColor:ze,panelBackgroundColor:ze,panelControlsBackgroundColor:ze,showAtBreakpoint:{type:"string"},textColor:ze,width:{type:"string"}}},Nx={type:"object",properties:{borderRadius:{type:"string"}}},Lx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Ux={type:"object",properties:{breakpoints:Ii,codeBlock:qx,colors:fx,components:wx,layout:Px,logo:Cx,fab:jx,overrides:Mx,rightPanel:Dx,schema:$x,shape:Nx,sidebar:Ox,spacing:Lx,typography:kx,links:{type:"object",properties:{color:ze}},codeSample:{type:"object",properties:{backgroundColor:ze}}}},Fx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ox}},required:["languages"]},zx={properties:{theme:Ux,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:Fx,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:sx,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:ax,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"}}};function eo(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function vr(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Bu=e=>e,ct=Bu({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),tt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},mc={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},_o={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}}},ia={type:"array",items:{..._o,properties:{..._o.properties,items:{type:"array",items:_o}}}},Bx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Vx={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Hx={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}},Kx={type:"object",properties:{facets:Hx,...tt.properties},additionalProperties:!1},Wx={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Vu={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},Hu={type:"object",properties:{items:ia,...tt.properties},additionalProperties:!1},Ku={type:"object",additionalProperties:Bx},Wu={type:"object",properties:{items:ia,copyrightText:{type:"string",uiHint:"textarea"},logo:tt,...tt.properties},additionalProperties:!1},Qu={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...tt.properties},additionalProperties:!1},Gu={type:"object",properties:{head:{type:"array",items:mc},body:{type:"array",items:mc}},additionalProperties:!1},Yu={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}},Ju={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Vx,filters:Kx,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Wx},...tt.properties},additionalProperties:!1},Xu={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},Zu={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...tt.properties},additionalProperties:!1},ed={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Qx={type:"object",properties:{...tt.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode","docs-mcp-claude"]}}},additionalProperties:!1},td={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...tt.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...tt.properties},additionalProperties:!1},actions:Qx},additionalProperties:!1},rd={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...tt.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...tt.properties},additionalProperties:!1},expand:{type:"object",properties:{...tt.properties},additionalProperties:!1},collapse:{type:"object",properties:{...tt.properties},additionalProperties:!1}},additionalProperties:!1},nd={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"},...tt.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...tt.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...tt.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},qi={...Es,properties:{...Es.properties,...zx.properties}};({...Es.properties});var Gx={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Yx={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"]},Jx={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Xx={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Zx={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"]},eS={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},tS={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"]},rS={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"]},nS={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:rS}},additionalProperties:!1,required:["trackingId"]},id={type:"object",properties:{adobe:Gx,amplitude:Yx,fullstory:Jx,heap:Xx,rudderstack:Zx,segment:eS,gtm:tS,ga:nS}},iS={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},od={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"},...tt.properties},additionalProperties:!1},sd={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},ad={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},oS={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"}}}},sS={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:oS},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ia,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Ci={type:"object",patternProperties:{".*":sS}},ji={nodeTypeName:ct.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:ct.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:ct.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:ct.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Zi},additionalProperties:!1}},targets:{nodeTypeName:ct.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:ct.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:ct.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:ct.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}},aS={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},cS={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},pS={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},kt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:cS},excludes:{type:"array",items:aS},filters:{type:"array",items:pS},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},lS={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},uS={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:lS},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},dS={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:uS,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},fS={type:"object",additionalProperties:dS},cd={type:"object",properties:{show:{type:"boolean"},entityTypes:fS,catalogs:{type:"object",properties:{all:kt,services:kt,domains:kt,teams:kt,users:kt,apiDescriptions:kt,dataSchemas:kt,apiOperations:kt},additionalProperties:kt}},additionalProperties:!1},hc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},oa={type:"string",enum:["and","or"]},Os={type:"object",properties:{field:{type:"string"},operator:hc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:hc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},mS={type:"object",properties:{operator:oa,conditions:{type:"array",items:Os}},required:["operator","conditions"],additionalProperties:!1},yc={type:"array",items:{oneOf:[Os,{type:"object",properties:{operator:oa,conditions:{type:"array",items:{oneOf:[Os,mS]}}},required:["operator","conditions"],additionalProperties:!1}]}},pd={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},hS={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:pd},required:["subject","assertions"],additionalProperties:!1}},yS={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:pd,where:hS,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},gS={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},yS]}},bS={type:"object",properties:{name:{type:"string"},extends:Zi.extends,rules:gS},required:["name"],additionalProperties:!1},gc={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},vS={oneOf:[gc,{type:"array",items:gc}]},wS={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[yc,{type:"object",properties:{operator:oa,conditions:yc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:bS,minItems:1},trigger:vS},required:["name","key","entities","levels"],additionalProperties:!1},ld={type:"array",items:wS},Et={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Vu,navbar:Hu,products:Ku,footer:Wu,sidebar:Qu,scripts:Gu,links:Yu,feedback:Yr,search:Ju,aiAssistant:Xu,colorMode:Zu,palette:ed,navigation:td,codeSnippet:rd,markdown:nd,openapi:qi,asyncapi:na,graphql:ki,analytics:id,userMenu:od,versionPicker:sd,breadcrumbs:ad,catalog:Ci,entitiesCatalog:cd,catalogClassic:Ci,scorecard:ji,scorecardClassic:ji,scorecards:ld},additionalProperties:!0},xS=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(xS||{}),SS=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(SS||{}),PS=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(PS||{}),$S="^[a-z0-9]+(?:-[a-z0-9]+)*$",ud="redocly",AS=[ud,"corporate","guest"],bc=["REDOCLY","CORPORATE","GUEST"],ES={type:"object",additionalProperties:{type:"string"}},OS={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},hn={type:"string",enum:["error","warn","off"]},RS={type:"object",additionalProperties:!1,properties:{schemaCheck:hn,statusCodeCheck:hn,contentTypeCheck:hn,successCriteriaCheck:hn}},_S={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},TS={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},kS={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},IS={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}},qS={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},CS={type:"object",properties:{name:{type:"string",enum:["feedback","discovery","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},jS={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},rules:{type:"string"},sourceRepositories:{oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:qS}]},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},MS={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:[CS,jS]}},mcpServers:IS},additionalProperties:!1},DS={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:[_S,TS]},inputs:ES,servers:OS,severity:RS,slo:kS},required:["path","trigger","agent"],additionalProperties:!1}},agent:MS},additionalProperties:!1},dd={type:"string",enum:["off","info","warn","error"]},Tr={type:"array",items:{type:"string"}},NS={type:"object",properties:{severity:dd,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Tr,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Tr,excludes:Tr,exceptions:{type:"object",properties:{files:Tr,lines:Tr},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},LS={oneOf:[dd,NS]},vc={type:"object",additionalProperties:LS},US={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},FS={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:US}},additionalProperties:!1},zS={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:FS},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},BS={oneOf:[{type:"boolean"},zS]},VS={type:"object",properties:{rules:vc,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:BS,apiDescriptions:{type:"object",properties:{rules:vc},additionalProperties:!1}},additionalProperties:!1},HS={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},KS={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:HS,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},WS={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"]},QS={oneOf:[KS,WS],discriminator:{propertyName:"type"}},GS={type:"object",additionalProperties:QS},fd={oneOf:[{type:"array",items:{type:"string",enum:bc},uniqueItems:!0},{type:"string",enum:bc}]},wc={type:"string",pattern:$S,not:{enum:AS.filter(e=>e!==ud)}},md={oneOf:[{type:"array",items:wc,uniqueItems:!0},wc]},hd={type:"boolean"},yd={type:"string",pattern:"^https?://.*"},gd={type:"string",pattern:"^https?://.*"},YS={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:ct.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},JS={type:"object",additionalProperties:YS,nodeTypeName:ct.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"},XS={type:"string",enum:["info","success","warning","error"]},We={type:"object",uiHint:"list",additionalProperties:{type:"string"}},ZS={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:XS,rbac:We,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},eP={type:"array",items:ZS},tP={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:We,openapi:qi,graphql:ki,asyncapi:na,theme:{type:"object",properties:{openapi:qi,graphql:ki},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Zi},required:["root"]},rP={type:"object",additionalProperties:!0},nP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},iP={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},oP={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:iP},additionalProperties:!1},sP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},aP={type:"object",properties:{catalogs:{type:"object",properties:{all:We,services:We,domains:We,teams:We,users:We,apiDescriptions:We,dataSchemas:We,apiOperations:We},additionalProperties:We},entitiesTypes:{type:"object",properties:{service:We,domain:We,team:We,user:We,apiDescription:We,apiOperation:We,dataSchema:We},additionalProperties:We},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:We},additionalProperties:!1}},entities:{type:"object",properties:{"**":We},additionalProperties:We}},additionalProperties:!1},bd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:We,cms:We,reunite:We,features:{type:"object",properties:{aiSearch:We,mcp:We},additionalProperties:!1},content:{type:"object",properties:{"**":We},additionalProperties:We},entitiesCatalog:aP},additionalProperties:We},cP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},pP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},lP={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[cP,pP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},uP={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},dP={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Rs={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:[uP,dP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},fP={...Rs,properties:{...Rs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},mP={type:"object",oneOf:[Rs,fP,lP],discriminator:{propertyName:"type"}},hP={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:mP}}},xc={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},yP={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},gP={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},bP={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},vP={type:"object",properties:{requiresLogin:hd,logoutReturnUrl:yd,residency:gd,sso:fd,idps:md,rbac:bd},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Mi={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:JS,seo:oP,rbac:bd,apiFunctions:sP,requiresLogin:hd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:yP}},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:tP},...Zi,ssoDirect:GS,sso:fd,idps:md,residency:gd,logoutReturnUrl:yd,access:vP,developerOnboarding:hP,removeAttribution:{type:"boolean"},i18n:xc,l10n:xc,metadata:rP,metadataGlobs:nP,ignore:{type:"array",items:{type:"string"}},theme:Et,reunite:DS,logo:Vu,navbar:Hu,products:Ku,footer:Wu,sidebar:Qu,scripts:Gu,links:Yu,feedback:Yr,search:Ju,aiAssistant:Xu,colorMode:Zu,palette:ed,navigation:td,codeSnippet:rd,markdown:nd,openapi:qi,graphql:ki,asyncapi:na,analytics:id,consent:iS,userMenu:od,versionPicker:sd,breadcrumbs:ad,catalog:Ci,entitiesCatalog:cd,catalogClassic:Ci,scorecard:ji,scorecardClassic:ji,scorecards:ld,mcp:gP,skills:bP,recheck:VS,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:eP},not:{required:["sso","idps"]},additionalProperties:!0},wP={...Mi,additionalProperties:!1},to={$id:"root-redocly-config",...Mi,properties:{plugins:{type:"array",items:{type:"string"}},...Mi.properties,env:{type:"object",additionalProperties:wP}},additionalProperties:!1};Et.properties.logo,Et.properties.navbar,Et.properties.footer,Et.properties.sidebar,Et.properties.search,Et.properties.codeSnippet,Et.properties.breadcrumbs,Et.properties.openapi,Et.properties.feedback,Mi.properties.mockServer;var xP=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],Ze=Bu({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"}),SP={type:"object",nodeTypeName:Ze.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},PP={type:"object",nodeTypeName:Ze.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},$P={type:"object",nodeTypeName:Ze.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},AP={type:"object",nodeTypeName:Ze.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},EP={type:"object",properties:{},nodeTypeName:Ze.EntityMetadata,additionalProperties:!0},OP={type:"object",nodeTypeName:Ze.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},RP={type:"object",nodeTypeName:Ze.EntitySlackContact,properties:{channels:{type:"array",items:OP}},required:["channels"],additionalProperties:!1},_P={type:"object",nodeTypeName:Ze.EntityContact,properties:{slack:RP},additionalProperties:!1},TP={type:"object",nodeTypeName:Ze.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},kP={type:"object",nodeTypeName:Ze.EntityRelation,properties:{type:{type:"string",enum:xP},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={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:_P,links:{type:"array",nodeTypeName:Ze.EntityLinkList,items:TP},relations:{type:"array",nodeTypeName:Ze.EntityRelationList,items:kP},metadata:EP},IP={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{type:"string",const:"user"},metadata:SP},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ze.UserEntity},{type:"object",nodeTypeName:Ze.ApiOperationEntity,properties:{...zt,type:{type:"string",const:"api-operation"},metadata:$P},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.DataSchemaEntity,properties:{...zt,type:{type:"string",const:"data-schema"},metadata:AP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.ApiDescriptionEntity,properties:{...zt,type:{type:"string",const:"api-description"},metadata:PP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.ServiceEntity,properties:{...zt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.DomainEntity,properties:{...zt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.TeamEntity,properties:{...zt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},qP={type:"object",nodeTypeName:Ze.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};const CP=["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"],Oi=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],vd="a-zA-Z0-9\\.\\-_",jP={oas2:Su,oas3_0:Pt,oas3_1:Fe,oas3_2:nt,async2:Mu,async3:Du,arazzo1:ot,arazzo1_1:Nu,overlay1:ta,openrpc1:Uu};function Jr(e){return e==="graphql"?{}:jP[e]}function sa(e){return e.includes("/")}var yn={exports:{}},To={},It={},Ht={},ko={},Io={},qo={},Sc;function Di(){return Sc||(Sc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(S){if(super(),!e.IDENTIFIER.test(S))throw new Error("CodeGen: name must be a valid identifier");this.str=S}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(S){super(),this._items=typeof S=="string"?[S]:S}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const S=this._items[0];return S===""||S==='""'}get str(){var S;return(S=this._str)!==null&&S!==void 0?S:this._str=this._items.reduce((v,O)=>`${v}${O}`,"")}get names(){var S;return(S=this._names)!==null&&S!==void 0?S:this._names=this._items.reduce((v,O)=>(O instanceof r&&(v[O.str]=(v[O.str]||0)+1),v),{})}}e._Code=n,e.nil=new n("");function i(A,...S){const v=[A[0]];let O=0;for(;O<S.length;)c(v,S[O]),v.push(A[++O]);return new n(v)}e._=i;const o=new n("+");function s(A,...S){const v=[g(A[0])];let O=0;for(;O<S.length;)v.push(o),c(v,S[O]),v.push(o,g(A[++O]));return p(v),new n(v)}e.str=s;function c(A,S){S instanceof n?A.push(...S._items):S instanceof r?A.push(S):A.push(h(S))}e.addCodeArg=c;function p(A){let S=1;for(;S<A.length-1;){if(A[S]===o){const v=l(A[S-1],A[S+1]);if(v!==void 0){A.splice(S-1,3,v);continue}A[S++]="+"}S++}}function l(A,S){if(S==='""')return A;if(A==='""')return S;if(typeof A=="string")return S instanceof r||A[A.length-1]!=='"'?void 0:typeof S!="string"?`${A.slice(0,-1)}${S}"`:S[0]==='"'?A.slice(0,-1)+S.slice(1):void 0;if(typeof S=="string"&&S[0]==='"'&&!(A instanceof r))return`"${A}${S.slice(1)}`}function d(A,S){return S.emptyStr()?A:A.emptyStr()?S:s`${A}${S}`}e.strConcat=d;function h(A){return typeof A=="number"||typeof A=="boolean"||A===null?A:g(Array.isArray(A)?A.join(","):A)}function y(A){return new n(g(A))}e.stringify=y;function g(A){return JSON.stringify(A).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=g;function $(A){return typeof A=="string"&&e.IDENTIFIER.test(A)?new n(`.${A}`):i`[${A}]`}e.getProperty=$;function x(A){if(typeof A=="string"&&e.IDENTIFIER.test(A))return new n(`${A}`);throw new Error(`CodeGen: invalid export name: ${A}, use explicit $id name mapping`)}e.getEsmExportName=x;function P(A){return new n(A.toString())}e.regexpCode=P})(qo)),qo}var Co={},Pc;function $c(){return Pc||(Pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Di();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(p){p[p.Started=0]="Started",p[p.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:d}={}){this._names={},this._prefixes=l,this._parent=d}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const d=this._names[l]||this._nameGroup(l);return`${l}${d.index++}`}_nameGroup(l){var d,h;if(!((h=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||h===void 0)&&h.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,d){super(d),this.prefix=l}setValue(l,{property:d,itemIndex:h}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(d)}[${h}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class c extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,d){var h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(l),{prefix:g}=y,$=(h=d.key)!==null&&h!==void 0?h:d.ref;let x=this._values[g];if(x){const S=x.get($);if(S)return S}else x=this._values[g]=new Map;x.set($,y);const P=this._scope[g]||(this._scope[g]=[]),A=P.length;return P[A]=d.ref,y.setValue(d,{property:g,itemIndex:A}),y}getValue(l,d){const h=this._values[l];if(h)return h.get(d)}scopeRefs(l,d=this._values){return this._reduceValues(d,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${l}${h.scopePath}`})}scopeCode(l=this._values,d,h){return this._reduceValues(l,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},d,h)}_reduceValues(l,d,h={},y){let g=t.nil;for(const $ in l){const x=l[$];if(!x)continue;const P=h[$]=h[$]||new Map;x.forEach(A=>{if(P.has(A))return;P.set(A,n.Started);let S=d(A);if(S){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;g=(0,t._)`${g}${v} ${A} = ${S};${this.opts._n}`}else if(S=y?.(A))g=(0,t._)`${g}${S}${this.opts._n}`;else throw new r(A);P.set(A,n.Completed)})}return g}}e.ValueScope=c})(Co)),Co}var Ac;function ke(){return Ac||(Ac=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Di(),r=$c();var n=Di();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=$c();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(w,D){return this}}class s extends o{constructor(w,D,K){super(),this.varKind=w,this.name=D,this.rhs=K}render({es5:w,_n:D}){const K=w?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${K} ${this.name}${V};`+D}optimizeNames(w,D){if(w[this.name.str])return this.rhs&&(this.rhs=ie(this.rhs,w,D)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends o{constructor(w,D,K){super(),this.lhs=w,this.rhs=D,this.sideEffects=K}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,D){if(!(this.lhs instanceof t.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=ie(this.rhs,w,D),this}get names(){const w=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ee(w,this.rhs)}}class p extends c{constructor(w,D,K,V){super(w,K,V),this.op=D}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class l extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class d extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class h extends o{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class y extends o{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,D){return this.code=ie(this.code,w,D),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class g extends o{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((D,K)=>D+K.render(w),"")}optimizeNodes(){const{nodes:w}=this;let D=w.length;for(;D--;){const K=w[D].optimizeNodes();Array.isArray(K)?w.splice(D,1,...K):K?w[D]=K:w.splice(D,1)}return w.length>0?this:void 0}optimizeNames(w,D){const{nodes:K}=this;let V=K.length;for(;V--;){const re=K[V];re.optimizeNames(w,D)||(Pe(w,re.names),K.splice(V,1))}return K.length>0?this:void 0}get names(){return this.nodes.reduce((w,D)=>de(w,D.names),{})}}class $ extends g{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class x extends g{}class P extends ${}P.kind="else";class A extends ${constructor(w,D){super(D),this.condition=w}render(w){let D=`if(${this.condition})`+super.render(w);return this.else&&(D+="else "+this.else.render(w)),D}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let D=this.else;if(D){const K=D.optimizeNodes();D=this.else=Array.isArray(K)?new P(K):K}if(D)return w===!1?D instanceof A?D:D.nodes:this.nodes.length?this:new A(Ie(w),D instanceof A?[D]:D.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,D){var K;if(this.else=(K=this.else)===null||K===void 0?void 0:K.optimizeNames(w,D),!!(super.optimizeNames(w,D)||this.else))return this.condition=ie(this.condition,w,D),this}get names(){const w=super.names;return ee(w,this.condition),this.else&&de(w,this.else.names),w}}A.kind="if";class S extends ${}S.kind="for";class v extends S{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iteration=ie(this.iteration,w,D),this}get names(){return de(super.names,this.iteration.names)}}class O extends S{constructor(w,D,K,V){super(),this.varKind=w,this.name=D,this.from=K,this.to=V}render(w){const D=w.es5?r.varKinds.var:this.varKind,{name:K,from:V,to:re}=this;return`for(${D} ${K}=${V}; ${K}<${re}; ${K}++)`+super.render(w)}get names(){const w=ee(super.names,this.from);return ee(w,this.to)}}class b extends S{constructor(w,D,K,V){super(),this.loop=w,this.varKind=D,this.name=K,this.iterable=V}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iterable=ie(this.iterable,w,D),this}get names(){return de(super.names,this.iterable.names)}}class k extends ${constructor(w,D,K){super(),this.name=w,this.args=D,this.async=K}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}k.kind="func";class M extends g{render(w){return"return "+super.render(w)}}M.kind="return";class H extends ${render(w){let D="try"+super.render(w);return this.catch&&(D+=this.catch.render(w)),this.finally&&(D+=this.finally.render(w)),D}optimizeNodes(){var w,D;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(D=this.finally)===null||D===void 0||D.optimizeNodes(),this}optimizeNames(w,D){var K,V;return super.optimizeNames(w,D),(K=this.catch)===null||K===void 0||K.optimizeNames(w,D),(V=this.finally)===null||V===void 0||V.optimizeNames(w,D),this}get names(){const w=super.names;return this.catch&&de(w,this.catch.names),this.finally&&de(w,this.finally.names),w}}class G extends ${constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}G.kind="catch";class Z extends ${render(w){return"finally"+super.render(w)}}Z.kind="finally";class te{constructor(w,D={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...D,_n:D.lines?`
|
|
2
|
-
`:""},this._extScope=w,this._scope=new r.Scope({parent:w}),this._nodes=[new x]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,D){const K=this._extScope.value(w,D);return(this._values[K.prefix]||(this._values[K.prefix]=new Set)).add(K),K}getScopeValue(w,D){return this._extScope.getValue(w,D)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,D,K,V){const re=this._scope.toName(D);return K!==void 0&&V&&(this._constants[re.str]=K),this._leafNode(new s(w,re,K)),re}const(w,D,K){return this._def(r.varKinds.const,w,D,K)}let(w,D,K){return this._def(r.varKinds.let,w,D,K)}var(w,D,K){return this._def(r.varKinds.var,w,D,K)}assign(w,D,K){return this._leafNode(new c(w,D,K))}add(w,D){return this._leafNode(new p(w,e.operators.ADD,D))}code(w){return typeof w=="function"?w():w!==t.nil&&this._leafNode(new y(w)),this}object(...w){const D=["{"];for(const[K,V]of w)D.length>1&&D.push(","),D.push(K),(K!==V||this.opts.es5)&&(D.push(":"),(0,t.addCodeArg)(D,V));return D.push("}"),new t._Code(D)}if(w,D,K){if(this._blockNode(new A(w)),D&&K)this.code(D).else().code(K).endIf();else if(D)this.code(D).endIf();else if(K)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(w){return this._elseNode(new A(w))}else(){return this._elseNode(new P)}endIf(){return this._endBlockNode(A,P)}_for(w,D){return this._blockNode(w),D&&this.code(D).endFor(),this}for(w,D){return this._for(new v(w),D)}forRange(w,D,K,V,re=this.opts.es5?r.varKinds.var:r.varKinds.let){const we=this._scope.toName(w);return this._for(new O(re,we,D,K),()=>V(we))}forOf(w,D,K,V=r.varKinds.const){const re=this._scope.toName(w);if(this.opts.es5){const we=D instanceof t.Name?D:this.var("_arr",D);return this.forRange("_i",0,(0,t._)`${we}.length`,$e=>{this.var(re,(0,t._)`${we}[${$e}]`),K(re)})}return this._for(new b("of",V,re,D),()=>K(re))}forIn(w,D,K,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(w,(0,t._)`Object.keys(${D})`,K);const re=this._scope.toName(w);return this._for(new b("in",V,re,D),()=>K(re))}endFor(){return this._endBlockNode(S)}label(w){return this._leafNode(new l(w))}break(w){return this._leafNode(new d(w))}return(w){const D=new M;if(this._blockNode(D),this.code(w),D.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(M)}try(w,D,K){if(!D&&!K)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new H;if(this._blockNode(V),this.code(w),D){const re=this.name("e");this._currNode=V.catch=new G(re),D(re)}return K&&(this._currNode=V.finally=new Z,this.code(K)),this._endBlockNode(G,Z)}throw(w){return this._leafNode(new h(w))}block(w,D){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(D),this}endBlock(w){const D=this._blockStarts.pop();if(D===void 0)throw new Error("CodeGen: not in self-balancing block");const K=this._nodes.length-D;if(K<0||w!==void 0&&K!==w)throw new Error(`CodeGen: wrong number of nodes: ${K} vs ${w} expected`);return this._nodes.length=D,this}func(w,D=t.nil,K,V){return this._blockNode(new k(w,D,K)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,D){const K=this._currNode;if(K instanceof w||D&&K instanceof D)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${D?`${w.kind}/${D.kind}`:w.kind}"`)}_elseNode(w){const D=this._currNode;if(!(D instanceof A))throw new Error('CodeGen: "else" without "if"');return this._currNode=D.else=w,this}get _root(){return this._nodes[0]}get _currNode(){const w=this._nodes;return w[w.length-1]}set _currNode(w){const D=this._nodes;D[D.length-1]=w}}e.CodeGen=te;function de(q,w){for(const D in w)q[D]=(q[D]||0)+(w[D]||0);return q}function ee(q,w){return w instanceof t._CodeOrName?de(q,w.names):q}function ie(q,w,D){if(q instanceof t.Name)return K(q);if(!V(q))return q;return new t._Code(q._items.reduce((re,we)=>(we instanceof t.Name&&(we=K(we)),we instanceof t._Code?re.push(...we._items):re.push(we),re),[]));function K(re){const we=D[re.str];return we===void 0||w[re.str]!==1?re:(delete w[re.str],we)}function V(re){return re instanceof t._Code&&re._items.some(we=>we instanceof t.Name&&w[we.str]===1&&D[we.str]!==void 0)}}function Pe(q,w){for(const D in w)q[D]=(q[D]||0)-(w[D]||0)}function Ie(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${C(q)}`}e.not=Ie;const Le=R(e.operators.AND);function Se(...q){return q.reduce(Le)}e.and=Se;const qe=R(e.operators.OR);function _(...q){return q.reduce(qe)}e.or=_;function R(q){return(w,D)=>w===t.nil?D:D===t.nil?w:(0,t._)`${C(w)} ${q} ${C(D)}`}function C(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Io)),Io}var je={},Ec;function Ne(){if(Ec)return je;Ec=1,Object.defineProperty(je,"__esModule",{value:!0}),je.checkStrictMode=je.getErrorPath=je.Type=je.useFunc=je.setEvaluated=je.evaluatedPropsToName=je.mergeEvaluated=je.eachItem=je.unescapeJsonPointer=je.escapeJsonPointer=je.escapeFragment=je.unescapeFragment=je.schemaRefOrVal=je.schemaHasRulesButRef=je.schemaHasRules=je.checkUnknownRules=je.alwaysValidSchema=je.toHash=void 0;const e=ke(),t=Di();function r(b){const k={};for(const M of b)k[M]=!0;return k}je.toHash=r;function n(b,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(i(b,k),!o(k,b.self.RULES.all))}je.alwaysValidSchema=n;function i(b,k=b.schema){const{opts:M,self:H}=b;if(!M.strictSchema||typeof k=="boolean")return;const G=H.RULES.keywords;for(const Z in k)G[Z]||O(b,`unknown keyword: "${Z}"`)}je.checkUnknownRules=i;function o(b,k){if(typeof b=="boolean")return!b;for(const M in b)if(k[M])return!0;return!1}je.schemaHasRules=o;function s(b,k){if(typeof b=="boolean")return!b;for(const M in b)if(M!=="$ref"&&k.all[M])return!0;return!1}je.schemaHasRulesButRef=s;function c({topSchemaRef:b,schemaPath:k},M,H,G){if(!G){if(typeof M=="number"||typeof M=="boolean")return M;if(typeof M=="string")return(0,e._)`${M}`}return(0,e._)`${b}${k}${(0,e.getProperty)(H)}`}je.schemaRefOrVal=c;function p(b){return h(decodeURIComponent(b))}je.unescapeFragment=p;function l(b){return encodeURIComponent(d(b))}je.escapeFragment=l;function d(b){return typeof b=="number"?`${b}`:b.replace(/~/g,"~0").replace(/\//g,"~1")}je.escapeJsonPointer=d;function h(b){return b.replace(/~1/g,"/").replace(/~0/g,"~")}je.unescapeJsonPointer=h;function y(b,k){if(Array.isArray(b))for(const M of b)k(M);else k(b)}je.eachItem=y;function g({mergeNames:b,mergeToName:k,mergeValues:M,resultToName:H}){return(G,Z,te,de)=>{const ee=te===void 0?Z:te instanceof e.Name?(Z instanceof e.Name?b(G,Z,te):k(G,Z,te),te):Z instanceof e.Name?(k(G,te,Z),Z):M(Z,te);return de===e.Name&&!(ee instanceof e.Name)?H(G,ee):ee}}je.mergeEvaluated={props:g({mergeNames:(b,k,M)=>b.if((0,e._)`${M} !== true && ${k} !== undefined`,()=>{b.if((0,e._)`${k} === true`,()=>b.assign(M,!0),()=>b.assign(M,(0,e._)`${M} || {}`).code((0,e._)`Object.assign(${M}, ${k})`))}),mergeToName:(b,k,M)=>b.if((0,e._)`${M} !== true`,()=>{k===!0?b.assign(M,!0):(b.assign(M,(0,e._)`${M} || {}`),x(b,M,k))}),mergeValues:(b,k)=>b===!0?!0:{...b,...k},resultToName:$}),items:g({mergeNames:(b,k,M)=>b.if((0,e._)`${M} !== true && ${k} !== undefined`,()=>b.assign(M,(0,e._)`${k} === true ? true : ${M} > ${k} ? ${M} : ${k}`)),mergeToName:(b,k,M)=>b.if((0,e._)`${M} !== true`,()=>b.assign(M,k===!0?!0:(0,e._)`${M} > ${k} ? ${M} : ${k}`)),mergeValues:(b,k)=>b===!0?!0:Math.max(b,k),resultToName:(b,k)=>b.var("items",k)})};function $(b,k){if(k===!0)return b.var("props",!0);const M=b.var("props",(0,e._)`{}`);return k!==void 0&&x(b,M,k),M}je.evaluatedPropsToName=$;function x(b,k,M){Object.keys(M).forEach(H=>b.assign((0,e._)`${k}${(0,e.getProperty)(H)}`,!0))}je.setEvaluated=x;const P={};function A(b,k){return b.scopeValue("func",{ref:k,code:P[k.code]||(P[k.code]=new t._Code(k.code))})}je.useFunc=A;var S;(function(b){b[b.Num=0]="Num",b[b.Str=1]="Str"})(S||(je.Type=S={}));function v(b,k,M){if(b instanceof e.Name){const H=k===S.Num;return M?H?(0,e._)`"[" + ${b} + "]"`:(0,e._)`"['" + ${b} + "']"`:H?(0,e._)`"/" + ${b}`:(0,e._)`"/" + ${b}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return M?(0,e.getProperty)(b).toString():"/"+d(b)}je.getErrorPath=v;function O(b,k,M=b.opts.strictSchema){if(M){if(k=`strict mode: ${k}`,M===!0)throw new Error(k);b.self.logger.warn(k)}}return je.checkStrictMode=O,je}var gn={},Oc;function lt(){if(Oc)return gn;Oc=1,Object.defineProperty(gn,"__esModule",{value:!0});const e=ke(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),isAllOfVariant:new e.Name("isAllOfVariant"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return gn.default=t,gn}var Rc;function ro(){return Rc||(Rc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ke(),r=Ne(),n=lt();e.keywordError={message:({keyword:P})=>(0,t.str)`must pass "${P}" keyword validation`},e.keyword$DataError={message:({keyword:P,schemaType:A})=>A?(0,t.str)`"${P}" keyword must be ${A} ($data)`:(0,t.str)`"${P}" keyword is invalid ($data)`};function i(P,A=e.keywordError,S,v){const{it:O}=P,{gen:b,compositeRule:k,allErrors:M}=O,H=h(P,A,S);v??(k||M)?p(b,H):l(O,(0,t._)`[${H}]`)}e.reportError=i;function o(P,A=e.keywordError,S){const{it:v}=P,{gen:O,compositeRule:b,allErrors:k}=v,M=h(P,A,S);p(O,M),b||k||l(v,n.default.vErrors)}e.reportExtraError=o;function s(P,A){P.assign(n.default.errors,A),P.if((0,t._)`${n.default.vErrors} !== null`,()=>P.if(A,()=>P.assign((0,t._)`${n.default.vErrors}.length`,A),()=>P.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function c({gen:P,keyword:A,schemaValue:S,data:v,errsCount:O,it:b}){if(O===void 0)throw new Error("ajv implementation error");const k=P.name("err");P.forRange("i",O,n.default.errors,M=>{P.const(k,(0,t._)`${n.default.vErrors}[${M}]`),P.if((0,t._)`${k}.instancePath === undefined`,()=>P.assign((0,t._)`${k}.instancePath`,(0,t.strConcat)(n.default.instancePath,b.errorPath))),P.assign((0,t._)`${k}.schemaPath`,(0,t.str)`${b.errSchemaPath}/${A}`),b.opts.verbose&&(P.assign((0,t._)`${k}.schema`,S),P.assign((0,t._)`${k}.data`,v))})}e.extendErrors=c;function p(P,A){const S=P.const("err",A);P.if((0,t._)`${n.default.vErrors} === null`,()=>P.assign(n.default.vErrors,(0,t._)`[${S}]`),(0,t._)`${n.default.vErrors}.push(${S})`),P.code((0,t._)`${n.default.errors}++`)}function l(P,A){const{gen:S,validateName:v,schemaEnv:O}=P;O.$async?S.throw((0,t._)`new ${P.ValidationError}(${A})`):(S.assign((0,t._)`${v}.errors`,A),S.return(!1))}const d={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function h(P,A,S){const{createErrors:v}=P.it;return v===!1?(0,t._)`{}`:y(P,A,S)}function y(P,A,S={}){const{gen:v,it:O}=P,b=[g(O,S),$(P,S)];return x(P,A,b),v.object(...b)}function g({errorPath:P},{instancePath:A}){const S=A?(0,t.str)`${P}${(0,r.getErrorPath)(A,r.Type.Str)}`:P;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,S)]}function $({keyword:P,it:{errSchemaPath:A}},{schemaPath:S,parentSchema:v}){let O=v?A:(0,t.str)`${A}/${P}`;return S&&(O=(0,t.str)`${O}${(0,r.getErrorPath)(S,r.Type.Str)}`),[d.schemaPath,O]}function x(P,{params:A,message:S},v){const{keyword:O,data:b,schemaValue:k,it:M}=P,{opts:H,propertyName:G,topSchemaRef:Z,schemaPath:te}=M;v.push([d.keyword,O],[d.params,typeof A=="function"?A(P):A||(0,t._)`{}`]),H.messages&&v.push([d.message,typeof S=="function"?S(P):S]),H.verbose&&v.push([d.schema,k],[d.parentSchema,(0,t._)`${Z}${te}`],[n.default.data,b]),G&&v.push([d.propertyName,G])}})(ko)),ko}var _c;function MP(){if(_c)return Ht;_c=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.boolOrEmptySchema=Ht.topBoolOrEmptySchema=void 0;const e=ro(),t=ke(),r=lt(),n={message:"boolean schema is false"};function i(c){const{gen:p,schema:l,validateName:d}=c;l===!1?s(c,!1):typeof l=="object"&&l.$async===!0?p.return(r.default.data):(p.assign((0,t._)`${d}.errors`,null),p.return(!0))}Ht.topBoolOrEmptySchema=i;function o(c,p){const{gen:l,schema:d}=c;d===!1?(l.var(p,!1),s(c)):l.var(p,!0)}Ht.boolOrEmptySchema=o;function s(c,p){const{gen:l,data:d}=c,h={gen:l,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(h,n,void 0,p)}return Ht}var rt={},Kt={},Tc;function wd(){if(Tc)return Kt;Tc=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.getRules=Kt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}Kt.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return Kt.getRules=n,Kt}var qt={},kc;function xd(){if(kc)return qt;kc=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.shouldUseRule=qt.shouldUseGroup=qt.schemaHasRulesForType=void 0;function e({schema:n,self:i},o){const s=i.RULES.types[o];return s&&s!==!0&&t(n,s)}qt.schemaHasRulesForType=e;function t(n,i){return i.rules.some(o=>r(n,o))}qt.shouldUseGroup=t;function r(n,i){var o;return n[i.keyword]!==void 0||((o=i.definition.implements)===null||o===void 0?void 0:o.some(s=>n[s]!==void 0))}return qt.shouldUseRule=r,qt}var Ic;function Ni(){if(Ic)return rt;Ic=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.reportTypeError=rt.checkDataTypes=rt.checkDataType=rt.coerceAndCheckDataType=rt.getJSONTypes=rt.getSchemaTypes=rt.DataType=void 0;const e=wd(),t=xd(),r=ro(),n=ke(),i=Ne();var o;(function(S){S[S.Correct=0]="Correct",S[S.Wrong=1]="Wrong"})(o||(rt.DataType=o={}));function s(S){const v=c(S.type);if(v.includes("null")){if(S.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!v.length&&S.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');S.nullable===!0&&v.push("null")}return v}rt.getSchemaTypes=s;function c(S){const v=Array.isArray(S)?S:S?[S]:[];if(v.every(e.isJSONType))return v;throw new Error("type must be JSONType or JSONType[]: "+v.join(","))}rt.getJSONTypes=c;function p(S,v){const{gen:O,data:b,opts:k}=S,M=d(v,k.coerceTypes),H=v.length>0&&!(M.length===0&&v.length===1&&(0,t.schemaHasRulesForType)(S,v[0]));if(H){const G=$(v,b,k.strictNumbers,o.Wrong);O.if(G,()=>{M.length?h(S,v,M):P(S)})}return H}rt.coerceAndCheckDataType=p;const l=new Set(["string","number","integer","boolean","null"]);function d(S,v){return v?S.filter(O=>l.has(O)||v==="array"&&O==="array"):[]}function h(S,v,O){const{gen:b,data:k,opts:M}=S,H=b.let("dataType",(0,n._)`typeof ${k}`),G=b.let("coerced",(0,n._)`undefined`);M.coerceTypes==="array"&&b.if((0,n._)`${H} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>b.assign(k,(0,n._)`${k}[0]`).assign(H,(0,n._)`typeof ${k}`).if($(v,k,M.strictNumbers),()=>b.assign(G,k))),b.if((0,n._)`${G} !== undefined`);for(const te of O)(l.has(te)||te==="array"&&M.coerceTypes==="array")&&Z(te);b.else(),P(S),b.endIf(),b.if((0,n._)`${G} !== undefined`,()=>{b.assign(k,G),y(S,G)});function Z(te){switch(te){case"string":b.elseIf((0,n._)`${H} == "number" || ${H} == "boolean"`).assign(G,(0,n._)`"" + ${k}`).elseIf((0,n._)`${k} === null`).assign(G,(0,n._)`""`);return;case"number":b.elseIf((0,n._)`${H} == "boolean" || ${k} === null
|
|
1
|
+
"use strict";const Y=require("./replay-index-CMFKqCDF.js"),j=require("./replay-resolve-DM1hJihD.js");var _t=typeof document<"u"?document.currentScript:null;function Mt(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--&&Mt(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)||!Mt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function hr(e){return Y.isPlainObject(e)&&Object.keys(e).length===0}function Fr(e){return Array.isArray(e)&&e.length>0}function it(e){return typeof e=="string"}function Us(e){return e?Object.keys(e):[]}function Kh(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Ai={exports:{}},Wh=Ai.exports,tc;function Qh(){return tc||(tc=1,(function(e,t){(function(r,n){typeof Kh=="function"?e.exports=n():r.pluralize=n()})(Wh,function(){var r=[],n=[],i={},o={},s={};function c(x){return typeof x=="string"?new RegExp("^"+x+"$","i"):x}function p(x,P){return x===P?P:x===x.toLowerCase()?P.toLowerCase():x===x.toUpperCase()?P.toUpperCase():x[0]===x[0].toUpperCase()?P.charAt(0).toUpperCase()+P.substr(1).toLowerCase():P.toLowerCase()}function l(x,P){return x.replace(/\$(\d{1,2})/g,function(A,S){return P[S]||""})}function d(x,P){return x.replace(P[0],function(A,S){var v=l(P[1],arguments);return p(A===""?x[S-1]:A,v)})}function h(x,P,A){if(!x.length||i.hasOwnProperty(x))return P;for(var S=A.length;S--;){var v=A[S];if(v[0].test(P))return d(P,v)}return P}function y(x,P,A){return function(S){var v=S.toLowerCase();return P.hasOwnProperty(v)?p(S,v):x.hasOwnProperty(v)?p(S,x[v]):h(v,S,A)}}function g(x,P,A,S){return function(v){var O=v.toLowerCase();return P.hasOwnProperty(O)?!0:x.hasOwnProperty(O)?!1:h(O,O,A)===O}}function $(x,P,A){var S=P===1?$.singular(x):$.plural(x);return(A?P+" ":"")+S}return $.plural=y(s,o,r),$.isPlural=g(s,o,r),$.singular=y(o,s,n),$.isSingular=g(o,s,n),$.addPluralRule=function(x,P){r.push([c(x),P])},$.addSingularRule=function(x,P){n.push([c(x),P])},$.addUncountableRule=function(x){if(typeof x=="string"){i[x.toLowerCase()]=!0;return}$.addPluralRule(x,"$0"),$.addSingularRule(x,"$0")},$.addIrregularRule=function(x,P){P=P.toLowerCase(),x=x.toLowerCase(),s[x]=P,o[P]=x},[["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(x){return $.addIrregularRule(x[0],x[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(x){return $.addPluralRule(x[0],x[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(x){return $.addSingularRule(x[0],x[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($.addUncountableRule),$})})(Ai)),Ai.exports}var Gh=Qh();const bu=Y.getDefaultExportFromCjs(Gh);function Yh(e,t,r){return e.split(" ").map(n=>bu(n,t,r)).join(" ")}function Fs(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function Lr(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const Jh=/^[0-9][0-9Xx]{2}$/,Xh={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-"},Zh={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-"},ey={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},ty={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},ry={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},ny={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},iy={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},oy={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-"},sy={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},ay={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},cy={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},py={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-"},ly={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-"},uy={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Jh.test(t)?"Response":void 0},dy={properties:{description:{type:"string"},schema:"Schema",headers:j.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},fy={properties:{},additionalProperties:{isExample:!0}},my={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 Y.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},hy={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},yy={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},gy={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?j.listOf("Schema"):"Schema",allOf:j.listOf("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-"},by={properties:{},additionalProperties:{type:"string"}},vy={properties:{},additionalProperties:"Schema"},wy={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},xy={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},Sy={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-"},Py={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},$y={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},vu={Root:Xh,Tag:hy,TagList:j.listOf("Tag"),TagGroups:j.listOf("TagGroup"),TagGroup:yy,ExternalDocs:cy,Example:$y,ExamplesMap:j.mapOf("Example"),EnumDescriptions:by,SecurityRequirement:Py,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:Zh,Contact:ty,License:ry,Logo:ey,Paths:ny,PathItem:iy,Parameter:py,ParameterItems:ly,ParameterList:j.listOf("Parameter"),Operation:oy,Examples:fy,Header:my,Responses:uy,Response:dy,Schema:gy,Xml:wy,SchemaProperties:vy,NamedSchemas:j.mapOf("Schema"),NamedResponses:j.mapOf("Response"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),SecurityScheme:Sy,Scopes:xy,XCodeSample:sy,XCodeSampleList:j.listOf("XCodeSample"),XServerList:j.listOf("XServer"),XServer:ay},Ay=/^[0-9][0-9Xx]{2}$/,Ey={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."},Oy={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."},Ry={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"},_y={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"},Ty={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."},ky={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."},Iy={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."},qy={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"},Cy={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."},jy={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."},My={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."},Dy={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"},Ny={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},Ly={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"},Uy={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"},Fy={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"},zy={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."},By={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."},Vy={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},Hy={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"},Ky={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"},Wy={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 – application/octet-stream; for other primitive types – text/plain; for object - application/json; for array – 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"},Qy={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"},Gy={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."},Yy={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Ay.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"},Jy={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."},Xy={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’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations."},zs="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",wu=j.listOf("Schema",{name:"AllOf",description:zs}),xu=j.listOf("Schema",{name:"AnyOf",description:zs}),Su=j.listOf("Schema",{name:"OneOf",description:zs}),Zy={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:wu,anyOf:xu,oneOf:Su,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?j.listOf("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"},eg={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."},tg={properties:{},additionalProperties:"Schema"},rg={properties:{},additionalProperties:e=>typeof e=="string"&&j.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},ng={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."},ig={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"},og={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."},sg={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."},ag={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."},cg={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."},pg={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},lg={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-"},ug={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"},Pt={Root:Ey,Tag:Oy,TagList:j.listOf("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:j.listOf("TagGroup"),TagGroup:Ry,ExternalDocs:_y,Server:Ty,ServerList:j.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:ky,ServerVariablesMap:j.mapOf("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:Iy,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:qy,Contact:jy,License:My,Paths:Dy,PathItem:Ly,Parameter:Uy,ParameterList:j.listOf("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’s components/parameters."}),Operation:Fy,Callback:j.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:j.mapOf("Callback"),RequestBody:By,MediaTypesMap:Vy,MediaType:Hy,Example:Ky,ExamplesMap:j.mapOf("Example"),Encoding:Wy,EncodingMap:j.mapOf("Encoding"),EnumDescriptions:Qy,Header:Gy,HeadersMap:j.mapOf("Header"),Responses:Yy,Response:Jy,Link:Xy,Logo:Cy,Schema:Zy,AllOf:wu,AnyOf:xu,OneOf:Su,Xml:eg,SchemaProperties:tg,DiscriminatorMapping:rg,Discriminator:ng,Components:ig,LinksMap:j.mapOf("Link"),NamedSchemas:j.mapOf("Schema"),NamedResponses:j.mapOf("Response"),NamedParameters:j.mapOf("Parameter"),NamedExamples:j.mapOf("Example"),NamedRequestBodies:j.mapOf("RequestBody"),NamedHeaders:j.mapOf("Header"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedLinks:j.mapOf("Link"),NamedCallbacks:j.mapOf("Callback"),ImplicitFlow:og,PasswordFlow:sg,ClientCredentials:ag,AuthorizationCode:cg,OAuth2Flows:pg,SecurityScheme:lg,XCodeSample:zy,XCodeSampleList:j.listOf("XCodeSample"),XUsePkce:ug,WebhooksMap:Ny},dg={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."},fg={...Pt.License,properties:{...Pt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},mg={...Pt.Info,properties:{...Pt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},hg={...Pt.Components,properties:{...Pt.Components.properties,pathItems:"NamedPathItems"}},yg={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."},gg={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:j.listOf("Schema",{name:"AllOf"}),anyOf:j.listOf("Schema",{name:"AnyOf"}),oneOf:j.listOf("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:j.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:j.listOf("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-"},rc={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},bg={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-"},vg={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Fe={...Pt,Info:mg,Root:dg,Schema:gg,SchemaProperties:rc,PatternProperties:rc,License:fg,Components:hg,NamedPathItems:j.mapOf("PathItem"),SecurityScheme:bg,Operation:yg,DependentRequired:vg},wg={...Fe.Root,properties:{...Fe.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."}}},xg={...Fe.Tag,properties:{...Fe.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."},Sg={...Fe.Server,properties:{...Fe.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."},Pg={...Fe.SecurityScheme,properties:{...Fe.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."},$g={...Fe.OAuth2Flows,properties:{...Fe.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Ag={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:j.mapOf("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."},Eg={...Pt.PathItem,properties:{...Pt.PathItem.properties,query:"Operation",additionalOperations:j.mapOf("Operation")}},Og={...Fe.Parameter,properties:{...Fe.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"]}}},Rg={...Fe.Response,properties:{...Fe.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},_g={...Fe.MediaType,properties:{...Fe.MediaType.properties,itemSchema:"Schema",prefixEncoding:j.listOf("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"}},Tg={...Fe.Discriminator,properties:{...Fe.Discriminator.properties,defaultMapping:e=>{const 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 j.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},kg={extensionsPrefix:"x-",properties:{...Fe.Components.properties,mediaTypes:"NamedMediaTypes"}},Ig={...Fe.Example,properties:{...Fe.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."}}},qg={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’s default field values."},Cg={...Fe.Schema,properties:{...Fe.Schema.properties,xml:"Xml"}},nt={...Fe,Root:wg,Tag:xg,Server:Sg,SecurityScheme:Pg,OAuth2Flows:$g,DeviceAuthorization:Ag,PathItem:Eg,Parameter:Og,Response:Rg,MediaType:_g,Discriminator:Tg,Example:Ig,Xml:qg,Schema:Cg,Components:kg,NamedMediaTypes:j.mapOf("MediaTypesMap")},jg={properties:{},description:"Protocol-specific information for an HTTP channel."},Mg={properties:{},description:"Protocol-specific information for an HTTP server."},Dg={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},Ng={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."},Lg={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},Ug={properties:{},description:"Protocol-specific information for a WebSockets server."},Fg={properties:{},description:"Protocol-specific information for a WebSockets message."},zg={properties:{},description:"Protocol-specific information for a WebSockets operation."},Bg={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"}}},Vg={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},Hg={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},Kg={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},Wg={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},Qg={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},Gg={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},Yg={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},Jg={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},Xg={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."},Zg={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."},eb={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."},tb={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},rb={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},nb={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."},ib={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},ob={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},sb={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},ab={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},cb={properties:{},description:"Protocol-specific information for an MQTT channel."},pb={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},lb={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},ub={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>Y.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},db={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},fb={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},mb={properties:{sessionExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},hb={properties:{},description:"Protocol-specific information for an MQTT 5 message."},yb={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},gb={properties:{},description:"Protocol-specific information for a NATS channel."},bb={properties:{},description:"Protocol-specific information for a NATS server."},vb={properties:{},description:"Protocol-specific information for a NATS message."},wb={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},xb={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Sb={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Pb={properties:{jmsConnectionFactory:{type:"string"},properties:j.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},$b={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Ab={properties:{},description:"Protocol-specific information for a JMS operation."},Eb={properties:{},description:"Protocol-specific information for a Solace channel."},Ob={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Rb={properties:{},description:"Protocol-specific information for a Solace message."},_b={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"}}}},Tb={properties:{bindingVersion:{type:"string"},destinations:j.listOf("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},kb={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."},Ib={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},qb={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},Cb={properties:{statements:j.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},jb={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},Mb={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},Db={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."},Nb={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."},Lb={properties:{topic:"SnsIdentifier",consumers:j.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},Ub={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},Fb={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},zb={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},Bb={properties:{statements:j.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},Pu={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)."},Vb={...Pu,required:["name"],description:"Describes an SQS queue (operation-level definition)."},Hb={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},Kb={properties:{queues:j.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},Wb={properties:{},description:"Protocol-specific information for a STOMP channel."},Qb={properties:{},description:"Protocol-specific information for a STOMP server."},Gb={properties:{},description:"Protocol-specific information for a STOMP message."},Yb={properties:{},description:"Protocol-specific information for a STOMP operation."},Jb={properties:{},description:"Protocol-specific information for a Redis channel."},Xb={properties:{},description:"Protocol-specific information for a Redis server."},Zb={properties:{},description:"Protocol-specific information for a Redis message."},ev={properties:{},description:"Protocol-specific information for a Redis operation."},tv={properties:{},description:"Protocol-specific information for a Mercure channel."},rv={properties:{},description:"Protocol-specific information for a Mercure server."},nv={properties:{},description:"Protocol-specific information for a Mercure message."},iv={properties:{},description:"Protocol-specific information for a Mercure operation."},ov={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."},sv={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},av={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},cv={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."},pv={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."},lv={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},uv={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."},dv={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."},fv={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},mv={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},hv={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},yv={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},gv={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."},bv={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},vv={properties:{},description:"Protocol-specific information for a ROS 2 channel."},wv={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."},xv={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."},Sv={properties:{},description:"Protocol-specific information for a ROS 2 message."},Pv={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."},$v={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."},Av={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."},Ev={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."},Et={HttpServerBinding:Mg,HttpChannelBinding:jg,HttpMessageBinding:Dg,HttpOperationBinding:Ng,WsServerBinding:Ug,WsChannelBinding:Lg,WsMessageBinding:Fg,WsOperationBinding:zg,KafkaServerBinding:Hg,KafkaTopicConfiguration:Bg,KafkaChannelBinding:Vg,KafkaMessageBinding:Kg,KafkaOperationBinding:Wg,AnypointmqServerBinding:Gg,AnypointmqChannelBinding:Qg,AnypointmqMessageBinding:Yg,AnypointmqOperationBinding:Jg,AmqpServerBinding:tb,AmqpChannelExchange:Xg,AmqpChannelQueue:Zg,AmqpChannelBinding:eb,AmqpMessageBinding:rb,AmqpOperationBinding:nb,Amqp1ServerBinding:ob,Amqp1ChannelBinding:ib,Amqp1MessageBinding:sb,Amqp1OperationBinding:ab,MqttServerBindingLastWill:pb,MqttServerBinding:lb,MqttChannelBinding:cb,MqttMessageBinding:ub,MqttOperationBinding:db,Mqtt5ServerBinding:mb,Mqtt5ChannelBinding:fb,Mqtt5MessageBinding:hb,Mqtt5OperationBinding:yb,NatsServerBinding:bb,NatsChannelBinding:gb,NatsMessageBinding:vb,NatsOperationBinding:wb,JmsServerBindingProperty:Sb,JmsServerBinding:Pb,JmsChannelBinding:xb,JmsMessageBinding:$b,JmsOperationBinding:Ab,SolaceServerBinding:Ob,SolaceChannelBinding:Eb,SolaceMessageBinding:Rb,SolaceDestination:_b,SolaceOperationBinding:Tb,StompServerBinding:Qb,StompChannelBinding:Wb,StompMessageBinding:Gb,StompOperationBinding:Yb,RedisServerBinding:Xb,RedisChannelBinding:Jb,RedisMessageBinding:Zb,RedisOperationBinding:ev,MercureServerBinding:rv,MercureChannelBinding:tv,MercureMessageBinding:nv,MercureOperationBinding:iv,SnsIdentifier:kb,SnsOrdering:Ib,SnsStatement:qb,SnsPolicy:Cb,SnsChannelBinding:jb,SnsRedrivePolicy:Mb,SnsDeliveryPolicy:Db,SnsConsumer:Nb,SnsOperationBinding:Lb,SqsIdentifier:Ub,SqsRedrivePolicy:Fb,SqsStatement:zb,SqsPolicy:Bb,SqsQueue:Pu,SqsOperationQueue:Vb,SqsChannelBinding:Hb,SqsOperationBinding:Kb,IbmmqServerBinding:ov,IbmmqChannelQueue:sv,IbmmqChannelTopic:av,IbmmqChannelBinding:cv,IbmmqMessageBinding:pv,GooglepubsubMessageStoragePolicy:lv,GooglepubsubSchemaSettings:uv,GooglepubsubChannelBinding:dv,GooglepubsubSchema:fv,GooglepubsubMessageBinding:mv,PulsarServerBinding:hv,PulsarRetention:yv,PulsarChannelBinding:gv,ServerBindings:Pv,ChannelBindings:$v,MessageBindings:Ev,OperationBindings:Av},Ov={Ros2ServerBinding:bv,Ros2ChannelBinding:vv,Ros2OperationBinding:xv,Ros2QosPolicies:wv,Ros2MessageBinding:Sv},Bs={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:j.listOf("Schema"),anyOf:j.listOf("Schema"),oneOf:j.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?j.listOf("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"}},Vs={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Hs={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Ks={properties:{},additionalProperties:e=>typeof e=="string"&&j.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Ws={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Rv={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"]},_v={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."},Tv={properties:{},additionalProperties:"Channel"},$u={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."},Au={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."},kv={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."},Iv={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."},Eu={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Ou={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."},qv={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."},Ru={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."},_u={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."},Cv={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."},Tu={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."},jv={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."},Mv={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."},Dv={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."},Nv={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."},ku={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."},Lv={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"}},Uv={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."},Fv={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."},zv={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."},Bv={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."},Iu={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},Vv={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."},qu={...Et,Root:Rv,Tag:$u,TagList:j.listOf("Tag"),ServerMap:Eu,ExternalDocs:Au,Server:Iv,ServerVariable:Ou,ServerVariablesMap:j.mapOf("ServerVariable"),SecurityRequirement:kv,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:qv,Contact:Ru,License:_u,ChannelMap:Tv,Channel:_v,Parameter:Cv,ParametersMap:j.mapOf("Parameter"),Operation:Nv,Schema:Bs,MessageExample:ku,SchemaProperties:Vs,DiscriminatorMapping:Ks,Discriminator:Ws,Components:Lv,NamedSchemas:j.mapOf("Schema"),NamedMessages:j.mapOf("Message"),NamedMessageTraits:j.mapOf("MessageTrait"),NamedOperationTraits:j.mapOf("OperationTrait"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedCorrelationIds:j.mapOf("CorrelationId"),ImplicitFlow:Uv,PasswordFlow:Fv,ClientCredentials:zv,AuthorizationCode:Bv,SecuritySchemeFlows:Iu,SecurityScheme:Vv,Message:jv,OperationTrait:Mv,OperationTraitList:j.listOf("OperationTrait"),MessageTrait:Dv,MessageTraitList:j.listOf("MessageTrait"),MessageExampleList:j.listOf("MessageExample"),CorrelationId:Tu,Dependencies:Hs},Hv={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."},Kv={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."},Wv={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."},Qv={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."},Gv={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."},Yv={extensionsPrefix:"x-",properties:{headers:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>Y.isPlainObject(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."},Jv={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."},Xv={extensionsPrefix:"x-",properties:{headers:e=>Y.isPlainObject(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."},Zv={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"]},e0={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."},t0={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."},r0={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."},n0={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."},i0={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."},o0={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."},s0={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."},a0={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."},c0={...Et.ServerBindings,properties:{...Et.ServerBindings.properties,ros2:"Ros2ServerBinding"}},p0={...Et.ChannelBindings,properties:{...Et.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},l0={...Et.OperationBindings,properties:{...Et.OperationBindings.properties,ros2:"Ros2OperationBinding"}},u0={...Et.MessageBindings,properties:{...Et.MessageBindings.properties,ros2:"Ros2MessageBinding"}},d0={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},f0={properties:{},additionalProperties:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Cu={...Et,...Ov,ServerBindings:c0,ChannelBindings:p0,OperationBindings:l0,MessageBindings:u0,CorrelationId:Tu,SecuritySchemeFlows:Iu,ServerVariable:Ou,Contact:Ru,License:_u,MessageExample:ku,Tag:$u,Dependencies:Hs,Schema:Bs,MultiFormatSchema:d0,Discriminator:Ws,DiscriminatorMapping:Ks,SchemaProperties:Vs,ServerMap:Eu,ExternalDocs:Au,Root:Hv,Channel:Kv,Parameter:Gv,Info:Qv,Server:Wv,MessageTrait:Xv,Operation:Zv,OperationReply:e0,OperationReplyAddress:t0,Components:r0,ImplicitFlow:n0,PasswordFlow:i0,ClientCredentials:o0,AuthorizationCode:s0,SecurityScheme:a0,Message:Yv,OperationTrait:Jv,ServerVariablesMap:j.mapOf("ServerVariable"),NamedTags:j.mapOf("Tag"),NamedExternalDocs:j.mapOf("ExternalDocs"),NamedChannels:j.mapOf("Channel"),ParametersMap:j.mapOf("Parameter"),NamedOperations:j.mapOf("Operation"),NamedOperationReplies:j.mapOf("OperationReply"),NamedOperationRelyAddresses:j.mapOf("OperationReplyAddress"),NamedSchemas:f0,NamedMessages:j.mapOf("Message"),NamedMessageTraits:j.mapOf("MessageTrait"),NamedOperationTraits:j.mapOf("OperationTrait"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),NamedCorrelationIds:j.mapOf("CorrelationId"),ServerList:j.listOf("Server"),SecuritySchemeList:j.listOf("SecurityScheme"),MessageList:j.listOf("Message"),OperationTraitList:j.listOf("OperationTrait"),MessageTraitList:j.listOf("MessageTrait"),MessageExampleList:j.listOf("MessageExample"),TagList:j.listOf("Tag")},m0={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-"},h0={properties:{},additionalProperties:"Parameter"},y0={properties:{},additionalProperties:"SuccessActionObject"},g0={properties:{},additionalProperties:"FailureActionObject"},b0={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},v0=j.mapOf("Schema"),w0={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."},x0={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},S0={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."},P0={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."},$0={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."},A0={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."},E0={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},O0={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."},R0=j.listOf("Workflow"),_0=j.listOf("Step"),T0={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:j.listOf("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."},k0={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_.-]+$."},I0={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:j.listOf("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."},q0={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."},C0={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."},j0={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."},M0={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."},D0={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},N0={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},L0={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:j.listOf("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."},U0={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},F0={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:j.listOf("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."},z0={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},ot={Root:m0,Info:w0,SourceDescriptions:x0,OpenAPISourceDescription:S0,ArazzoSourceDescription:P0,Parameters:E0,Parameter:A0,ReusableObject:$0,Workflows:R0,Workflow:O0,Steps:_0,Step:T0,RequestBody:I0,Replacement:q0,ExtendedOperation:j0,ExtendedSecurityList:j.listOf("ExtendedSecurity"),ExtendedSecurity:C0,Outputs:k0,CriterionObject:M0,XPathCriterion:N0,JSONPathCriterion:D0,SuccessActionObject:L0,OnSuccessActionList:U0,FailureActionObject:F0,OnFailureActionList:z0,Schema:nt.Schema,NamedSchemas:j.mapOf("Schema"),ExternalDocs:nt.ExternalDocs,DiscriminatorMapping:nt.DiscriminatorMapping,Discriminator:nt.Discriminator,DependentRequired:nt.DependentRequired,SchemaProperties:nt.SchemaProperties,PatternProperties:nt.SchemaProperties,Components:b0,NamedInputs:v0,NamedParameters:h0,NamedSuccessActions:y0,NamedFailureActions:g0,Xml:nt.Xml,SecurityScheme:nt.SecurityScheme,OAuth2Flows:nt.OAuth2Flows,ImplicitFlow:nt.ImplicitFlow,PasswordFlow:nt.PasswordFlow,ClientCredentials:nt.ClientCredentials,AuthorizationCode:nt.AuthorizationCode,DeviceAuthorization:nt.DeviceAuthorization},B0={...ot.Root,properties:{...ot.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."}}},V0={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},H0={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."},K0={...ot.Parameter,properties:{...ot.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},W0={...ot.Step,properties:{...ot.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"]},Q0={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},G0={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},Y0={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},J0={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"]},X0=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Qs=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:X0(n)},Z0={...ot.CriterionObject,properties:{...ot.CriterionObject.properties,type:Qs(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},ew={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:Qs(["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."},tw={properties:{},additionalProperties:e=>Y.isPlainObject(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_.-]+$."},rw={...ot.Replacement,properties:{...ot.Replacement.properties,value:e=>Y.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Qs(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},nw={...ot.SuccessActionObject,properties:{...ot.SuccessActionObject.properties,parameters:"Parameters"}},iw={...ot.FailureActionObject,properties:{...ot.FailureActionObject.properties,parameters:"Parameters"}},ju={...ot,Root:B0,SourceDescriptions:V0,AsyncAPISourceDescription:H0,Parameter:K0,Step:W0,CriterionObject:Z0,JSONPathExpression:Q0,XPathExpression:G0,JSONPointerExpression:Y0,ExpressionType:J0,SelectorObject:ew,Outputs:tw,Replacement:rw,SuccessActionObject:nw,FailureActionObject:iw};function Gs(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}const ow={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."},sw={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."},aw={properties:{},items:e=>j.isRef(e)?"ReusableAction":"Action"},Mu={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"},cw={properties:{actions:"ReusableActions"},extensionsPrefix:"x-",description:"A set of components to reuse across the Overlay document."},pw=j.mapOf("ReusableAction"),lw={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`."},uw={properties:Gs(Mu.properties,["target"]),extensionsPrefix:"x-",description:"The fields of a reusable action: an action without a `target`."},Ys={Root:ow,Info:sw,Actions:aw,Action:Mu,Components:cw,ReusableActions:pw,ReusableAction:lw,ReusableActionFields:uw},dw={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."},fw={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."},mw={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."},hw={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."},yw={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."},gw={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’s 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."},bw={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."},vw={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’s 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."},ww={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."},xw={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."},Sw={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’s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between results and other methods."},Pw={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."},$w={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."},Aw={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."},Ew={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."},Du={Root:dw,Info:fw,Contact:mw,License:hw,Server:yw,ServerList:j.listOf("Server"),ServerVariable:gw,ServerVariablesMap:j.mapOf("ServerVariable"),Method:bw,MethodList:j.listOf("Method"),ContentDescriptor:vw,ContentDescriptorList:j.listOf("ContentDescriptor"),ExamplePairing:ww,ExamplePairingList:j.listOf("ExamplePairing"),Example:xw,ExampleList:j.listOf("Example"),Link:Sw,LinkList:j.listOf("Link"),ErrorObject:Pw,ErrorList:j.listOf("ErrorObject"),Components:$w,Tag:Aw,TagList:j.listOf("Tag"),ExternalDocs:Ew,Schema:Bs,SchemaProperties:Vs,Dependencies:Hs,DiscriminatorMapping:Ks,Discriminator:Ws,NamedContentDescriptors:j.mapOf("ContentDescriptor"),NamedSchemas:j.mapOf("Schema"),NamedExamples:j.mapOf("Example"),NamedLinks:j.mapOf("Link"),NamedErrors:j.mapOf("ErrorObject"),NamedExamplePairingObjects:j.mapOf("ExamplePairing"),NamedTags:j.mapOf("Tag")};var Nu={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},_r={type:"object",properties:Nu,additionalProperties:!1},Ow={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Qi={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:{...Nu,like:_r,dislike:_r,satisfied:_r,neutral:_r,dissatisfied:_r},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:Ow},additionalProperties:!1}},additionalProperties:!1},Rw={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},Js={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},nc={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Qi,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Js,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:Rw,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},ze={type:"string",uiHint:"color"},ft={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"},_w={rules:ft,oas2Rules:ft,oas3_0Rules:ft,oas3_1Rules:ft,oas3_2Rules:ft,async2Rules:ft,async3Rules:ft,arazzo1Rules:ft,arazzo1_1Rules:ft,overlay1Rules:ft,openrpc1Rules:ft,graphqlRules:ft},yt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Tw={preprocessors:yt,oas2Preprocessors:yt,oas3_0Preprocessors:yt,oas3_1Preprocessors:yt,oas3_2Preprocessors:yt,async2Preprocessors:yt,async3Preprocessors:yt,arazzo1Preprocessors:yt,arazzo1_1Preprocessors:yt,overlay1Preprocessors:yt,openrpc1Preprocessors:yt},gt={nodeTypeName:void 0,type:"object",additionalProperties:!0},kw={decorators:gt,oas2Decorators:gt,oas3_0Decorators:gt,oas3_1Decorators:gt,oas3_2Decorators:gt,async2Decorators:gt,async3Decorators:gt,arazzo1Decorators:gt,arazzo1_1Decorators:gt,overlay1Decorators:gt,openrpc1Decorators:gt},Iw={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"},Gi={..._w,...kw,...Tw,extends:Iw},qw={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"]},Cw={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"}}},ic={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},jw={type:"object",properties:{beforeInfo:{type:"array",items:ic},end:{type:"array",items:ic}}},Gt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},un={type:"object",properties:{backgroundColor:ze,borderColor:ze,color:ze,tabTextColor:ze}},Mw={type:"object",properties:Yi(Gt.properties,["light","dark"])},Dw={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"}}},Nw={type:"object",properties:{error:un,info:un,redirect:un,success:un}},Lw={type:"object",properties:vr(Gt.properties,["dark"])},Uw={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Fw={type:"object",properties:{accent:Gt,border:Mw,error:Gt,http:Dw,primary:Gt,responses:Nw,secondary:Lw,success:Gt,text:Uw,tonalOffset:{type:"number"},warning:Gt}},dn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},zw={type:"object",properties:{small:dn,medium:dn,large:dn,xlarge:dn}},Ot={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},Bw={type:"object",properties:{...vr(Ot.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:zw}},oc={type:"object",properties:Yi(Ot.properties,["fontSize","lineHeight"])},Vw={type:"object",properties:{medium:oc,small:oc}},Hw={type:"object",properties:{...vr(Ot.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:ze,sizes:Vw}},Kw={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},Ww={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:ze}},sc={type:"object",properties:{fullWidth:{type:"boolean"}}},Qw={type:"object",properties:{buttons:Bw,httpBadges:Hw,layoutControls:Kw,panels:Ww,tryItButton:sc,tryItSendButton:sc}},Ti={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},Gw={type:"object",properties:{maxWidth:Ti}},Yw={type:"object",properties:{maxWidth:Ti,middlePanelMaxWidth:Ti}},Jw={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:Gw,"three-panel":Yw}},ac={type:"object",properties:{backgroundColor:ze,border:{type:"string"}}},Xw={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:ze,caretSize:{type:"string"},constraints:ac,defaultDetailsWidth:{type:"string"},examples:ac,labelsTextSize:{type:"string"},linesColor:ze,nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:ze,typeNameColor:ze,typeTitleColor:ze}},Lu={type:"object",properties:{subItemsColor:ze,textTransform:{type:"string"},fontWeight:{type:"string"}}},Zw={type:"object",properties:Yi(Lu.properties,["textTransform"])},ex={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},tx={type:"object",properties:{...vr(Ot.properties,["fontWeight","lineHeight"]),activeBgColor:ze,activeTextColor:ze,backgroundColor:ze,borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:ze,caretSize:{type:"string"},groupItems:Lu,level1items:Zw,rightLineColor:ze,separatorLabelColor:ze,showAtBreakpoint:{type:"string"},spacing:ex,textColor:ze,width:{type:"string"}}},fn={type:"object",properties:{...Ot.properties,color:ze,transform:{type:"string"}}},rx={type:"object",properties:{...Ot.properties,backgroundColor:ze,color:ze,wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},nx={type:"object",properties:vr(Ot.properties,["fontSize"])},ix={type:"object",properties:{color:ze,hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},ox={type:"object",properties:{code:rx,fieldName:Ot,...Yi(Ot.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:fn,heading2:fn,heading3:fn,headings:nx,lineHeight:{type:"string"},links:ix,optimizeSpeed:{type:"boolean"},rightPanelHeading:fn,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},sx={type:"object",properties:{color:ze,...vr(Ot.properties,["fontWeight"])}},ax={type:"object",properties:{backgroundColor:ze,borderRadius:{type:"string"},tokens:sx}},cx={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},px={type:"object",properties:{backgroundColor:ze,color:ze}},cc={type:"object",properties:{custom:{type:"string"}}},lx={type:"object",properties:{DownloadButton:cc,NextSectionButton:cc}},ux={type:"object",properties:{backgroundColor:ze,panelBackgroundColor:ze,panelControlsBackgroundColor:ze,showAtBreakpoint:{type:"string"},textColor:ze,width:{type:"string"}}},dx={type:"object",properties:{borderRadius:{type:"string"}}},fx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},mx={type:"object",properties:{breakpoints:Ti,codeBlock:ax,colors:Fw,components:Qw,layout:Jw,logo:cx,fab:px,overrides:lx,rightPanel:ux,schema:Xw,shape:dx,sidebar:tx,spacing:fx,typography:ox,links:{type:"object",properties:{color:ze}},codeSample:{type:"object",properties:{backgroundColor:ze}}}},hx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:qw}},required:["languages"]},yx={properties:{theme:mx,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:hx,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:Cw,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:jw,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"}}};function Yi(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function vr(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Uu=e=>e,ct=Uu({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),tt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},pc={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},Ao={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}}},Xs={type:"array",items:{...Ao,properties:{...Ao.properties,items:{type:"array",items:Ao}}}},gx={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},bx={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},vx={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}},wx={type:"object",properties:{facets:vx,...tt.properties},additionalProperties:!1},xx={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Sx={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},Px={type:"object",properties:{items:Xs,...tt.properties},additionalProperties:!1},$x={type:"object",additionalProperties:gx},Ax={type:"object",properties:{items:Xs,copyrightText:{type:"string",uiHint:"textarea"},logo:tt,...tt.properties},additionalProperties:!1},Ex={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...tt.properties},additionalProperties:!1},Ox={type:"object",properties:{head:{type:"array",items:pc},body:{type:"array",items:pc}},additionalProperties:!1},Rx={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}},_x={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:bx,filters:wx,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:xx},...tt.properties},additionalProperties:!1},Fu=["GET","HEAD","OPTIONS","POST","PUT","PATCH","DELETE","QUERY","TRACE"],zu={type:"array",items:{type:"string",enum:Fu}},Tx={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},mcp:{type:"object",properties:{apiCalls:{type:"object",properties:{hide:{type:"boolean"},allowedHttpMethods:zu},additionalProperties:!1}},additionalProperties:!1}},additionalProperties:!1},kx={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...tt.properties},additionalProperties:!1},Ix={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},qx={type:"object",properties:{...tt.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode","docs-mcp-claude"]}}},additionalProperties:!1},Cx={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...tt.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...tt.properties},additionalProperties:!1},actions:qx},additionalProperties:!1},jx={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...tt.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...tt.properties},additionalProperties:!1},expand:{type:"object",properties:{...tt.properties},additionalProperties:!1},collapse:{type:"object",properties:{...tt.properties},additionalProperties:!1}},additionalProperties:!1},Mx={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"},...tt.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...tt.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...tt.properties},additionalProperties:!1},template:{type:"object",uiHint:"list",additionalProperties:{type:"string"}}},additionalProperties:!1},Dx={...nc,properties:{...nc.properties,...yx.properties}},Nx={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Lx={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"]},Ux={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Fx={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},zx={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"]},Bx={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Vx={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"]},Hx={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"]},Kx={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:Hx}},additionalProperties:!1,required:["trackingId"]},Wx={type:"object",properties:{adobe:Nx,amplitude:Lx,fullstory:Ux,heap:Fx,rudderstack:zx,segment:Bx,gtm:Vx,ga:Kx}},Qx={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},Gx={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"},...tt.properties},additionalProperties:!1},Yx={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Jx={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},Xx={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"}}}},Zx={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Xx},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Xs,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},lc={type:"object",patternProperties:{".*":Zx}},uc={nodeTypeName:ct.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:ct.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:ct.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:ct.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Gi},additionalProperties:!1}},targets:{nodeTypeName:ct.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:ct.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:ct.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:ct.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string",uiHint:"file"}},fromProjectUrl:{type:"string",format:"uri"}}},eS=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(eS||{}),tS=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(tS||{}),rS=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(rS||{}),nS="^[a-z0-9]+(?:-[a-z0-9]+)*$",Bu="redocly",iS=[Bu,"corporate","guest"],dc=["REDOCLY","CORPORATE","GUEST"],oS={type:"object",properties:{downloadUrls:Js,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:Qi,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},sS={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},aS={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},cS={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},Tt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:aS},excludes:{type:"array",items:sS},filters:{type:"array",items:cS},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},pS={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},lS={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:pS},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},uS={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:lS,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},dS={type:"object",additionalProperties:uS},fS={type:"object",properties:{show:{type:"boolean"},entityTypes:dS,catalogs:{type:"object",properties:{all:Tt,services:Tt,domains:Tt,teams:Tt,users:Tt,apiDescriptions:Tt,dataSchemas:Tt,apiOperations:Tt},additionalProperties:Tt}},additionalProperties:!1},ir={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},mS={type:"object",properties:{name:{type:"string"},items:ir,queries:ir,mutations:ir,subscriptions:ir,types:ir,directives:ir},required:["name"],additionalProperties:!1},hS={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:mS},otherItemsGroupName:{type:"string"}}},yS={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},gS={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},bS={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string",uiHint:"textarea"},termsOfService:{type:"string",format:"uri"},contact:yS,license:gS},additionalProperties:!1},vS={type:"object",properties:{url:{type:"string",format:"uri",pattern:"^https?://"},description:{type:"string"}},required:["url"],additionalProperties:!1},wS={type:"object",properties:{menu:{type:"object",properties:{...hS.properties},additionalProperties:!1},downloadUrls:Js,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:ze}},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:Qi,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:bS,hideReplay:{type:"boolean"},servers:{type:"array",items:vS},corsProxyUrl:{type:"string"}},additionalProperties:!1},fc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Zs={type:"string",enum:["and","or"]},Ss={type:"object",properties:{field:{type:"string"},operator:fc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:fc,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},xS={type:"object",properties:{operator:Zs,conditions:{type:"array",items:Ss}},required:["operator","conditions"],additionalProperties:!1},mc={type:"array",items:{oneOf:[Ss,{type:"object",properties:{operator:Zs,conditions:{type:"array",items:{oneOf:[Ss,xS]}}},required:["operator","conditions"],additionalProperties:!1}]}},Vu={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},SS={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:Vu},required:["subject","assertions"],additionalProperties:!1}},PS={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:Vu,where:SS,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},$S={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},PS]}},AS={type:"object",properties:{name:{type:"string"},extends:Gi.extends,rules:$S},required:["name"],additionalProperties:!1},hc={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},ES={oneOf:[hc,{type:"array",items:hc}]},OS={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[mc,{type:"object",properties:{operator:Zs,conditions:mc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:AS,minItems:1},trigger:ES},required:["name","key","entities","levels"],additionalProperties:!1},RS={type:"array",items:OS},Yt={logo:Sx,navbar:Px,products:$x,footer:Ax,sidebar:Ex,scripts:Ox,links:Rx,feedback:Qi,search:_x,aiAssistant:Tx,colorMode:kx,palette:Ix,navigation:Cx,codeSnippet:jx,markdown:Mx,openapi:Dx,graphql:wS,asyncapi:oS,analytics:Wx,consent:Qx,userMenu:Gx,versionPicker:Yx,breadcrumbs:Jx,catalog:lc,entitiesCatalog:fS,catalogClassic:lc,scorecard:uc,scorecardClassic:uc,scorecards:RS},_S={type:"object",properties:{imports:{type:"array",items:{type:"string"}},...Yt},additionalProperties:!0},TS={type:"object",additionalProperties:{type:"string"}},kS={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},mn={type:"string",enum:["error","warn","off"]},IS={type:"object",additionalProperties:!1,properties:{schemaCheck:mn,statusCodeCheck:mn,contentTypeCheck:mn,successCriteriaCheck:mn}},qS={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},CS={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},jS={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},MS={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}},DS={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},NS={type:"object",properties:{name:{type:"string",enum:["feedback","discovery","followUpOnPullRequest","updateFromCodeChanges"]},enabled:{type:"boolean"}},required:["name"],additionalProperties:!1},LS={type:"object",properties:{name:{type:"string",enum:["review"]},enabled:{type:"boolean"},rules:{type:"string"},sourceRepositories:{oneOf:[{type:"string",enum:["none","all"]},{type:"array",items:DS}]},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},US={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:[NS,LS]}},mcpServers:MS},additionalProperties:!1},FS={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:[qS,CS]},inputs:TS,servers:kS,severity:IS,slo:jS},required:["path","trigger","agent"],additionalProperties:!1}},agent:US},additionalProperties:!1},Hu={type:"string",enum:["off","info","warn","error"]},Tr={type:"array",items:{type:"string"}},zS={type:"object",properties:{severity:Hu,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Tr,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Tr,excludes:Tr,exceptions:{type:"object",properties:{files:Tr,lines:Tr},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},BS={oneOf:[Hu,zS]},yc={type:"object",additionalProperties:BS},VS={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},HS={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:VS}},additionalProperties:!1},KS={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:HS},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},WS={oneOf:[{type:"boolean"},KS]},QS={type:"object",properties:{rules:yc,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:WS,apiDescriptions:{type:"object",properties:{rules:yc},additionalProperties:!1}},additionalProperties:!1},GS={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},YS={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:GS,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},JS={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"]},XS={oneOf:[YS,JS],discriminator:{propertyName:"type"}},ZS={type:"object",additionalProperties:XS},Ku={oneOf:[{type:"array",items:{type:"string",enum:dc},uniqueItems:!0},{type:"string",enum:dc}]},gc={type:"string",pattern:nS,not:{enum:iS.filter(e=>e!==Bu)}},Wu={oneOf:[{type:"array",items:gc,uniqueItems:!0},gc]},Qu={type:"boolean"},Gu={type:"string",pattern:"^https?://.*"},Yu={type:"string",pattern:"^https?://.*"},eP={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:ct.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},tP={type:"object",additionalProperties:eP,nodeTypeName:ct.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"},rP={type:"string",enum:["info","success","warning","error"]},We={type:"object",uiHint:"list",additionalProperties:{type:"string"}},nP={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:rP,rbac:We,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},iP={type:"array",items:nP},oP={type:"object",properties:{root:{type:"string",uiHint:"file"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:We,openapi:Yt.openapi,graphql:Yt.graphql,asyncapi:Yt.asyncapi,theme:{type:"object",properties:{openapi:Yt.openapi,graphql:Yt.graphql},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Gi},required:["root"]},sP={type:"object",additionalProperties:!0},aP={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},cP={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},pP={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:cP},additionalProperties:!1},lP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},uP={type:"object",properties:{catalogs:{type:"object",properties:{all:We,services:We,domains:We,teams:We,users:We,apiDescriptions:We,dataSchemas:We,apiOperations:We},additionalProperties:We},entitiesTypes:{type:"object",properties:{service:We,domain:We,team:We,user:We,apiDescription:We,apiOperation:We,dataSchema:We},additionalProperties:We},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:We},additionalProperties:!1}},entities:{type:"object",properties:{"**":We},additionalProperties:We}},additionalProperties:!1},Ju={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:We,cms:We,reunite:We,features:{type:"object",properties:{aiSearch:We,mcp:We},additionalProperties:!1},content:{type:"object",properties:{"**":We},additionalProperties:We},entitiesCatalog:uP},additionalProperties:We},dP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},fP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},mP={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[dP,fP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},hP={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},yP={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Ps={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:[hP,yP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},gP={...Ps,properties:{...Ps.properties,type:{type:"string",const:"APIGEE_EDGE"}}},bP={type:"object",oneOf:[Ps,gP,mP],discriminator:{propertyName:"type"}},vP={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:bP}}},bc={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},wP={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},xP={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:zu,excludeFiles:{type:"array",items:{type:"string"}},excludeOperations:{type:"array",items:{type:"object",properties:{file:{type:"string"},method:{type:"string",enum:Fu},path:{type:"string"}},required:["file","path"],additionalProperties:!1}}},additionalProperties:!1}},additionalProperties:!1},SP={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},PP={type:"object",properties:{requiresLogin:Qu,logoutReturnUrl:Gu,residency:Yu,sso:Ku,idps:Wu,rbac:Ju},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ki={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:tP,seo:pP,rbac:Ju,apiFunctions:lP,requiresLogin:Qu,responseHeaders:{type:"object",additionalProperties:{type:"array",items:wP}},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:oP},...Gi,ssoDirect:ZS,sso:Ku,idps:Wu,residency:Yu,logoutReturnUrl:Gu,access:PP,developerOnboarding:vP,removeAttribution:{type:"boolean"},i18n:bc,l10n:bc,metadata:sP,metadataGlobs:aP,ignore:{type:"array",items:{type:"string"}},theme:_S,reunite:FS,...Yt,mcp:xP,skills:SP,recheck:QS,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:iP},not:{required:["sso","idps"]},additionalProperties:!0},$P={...ki,additionalProperties:!1},Ji={$id:"root-redocly-config",...ki,properties:{plugins:{type:"array",items:{type:"string"}},...ki.properties,env:{type:"object",additionalProperties:$P}},additionalProperties:!1};ki.properties.mockServer;var AP=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],Ze=Uu({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"}),EP={type:"object",nodeTypeName:Ze.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},OP={type:"object",nodeTypeName:Ze.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},RP={type:"object",nodeTypeName:Ze.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},_P={type:"object",nodeTypeName:Ze.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},TP={type:"object",properties:{},nodeTypeName:Ze.EntityMetadata,additionalProperties:!0},kP={type:"object",nodeTypeName:Ze.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},IP={type:"object",nodeTypeName:Ze.EntitySlackContact,properties:{channels:{type:"array",items:kP}},required:["channels"],additionalProperties:!1},qP={type:"object",nodeTypeName:Ze.EntityContact,properties:{slack:IP},additionalProperties:!1},CP={type:"object",nodeTypeName:Ze.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},jP={type:"object",nodeTypeName:Ze.EntityRelation,properties:{type:{type:"string",enum:AP},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Ft={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:qP,links:{type:"array",nodeTypeName:Ze.EntityLinkList,items:CP},relations:{type:"array",nodeTypeName:Ze.EntityRelationList,items:jP},metadata:TP},MP={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Ft,type:{type:"string",const:"user"},metadata:EP},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ze.UserEntity},{type:"object",nodeTypeName:Ze.ApiOperationEntity,properties:{...Ft,type:{type:"string",const:"api-operation"},metadata:RP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.DataSchemaEntity,properties:{...Ft,type:{type:"string",const:"data-schema"},metadata:_P},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.ApiDescriptionEntity,properties:{...Ft,type:{type:"string",const:"api-description"},metadata:OP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.ServiceEntity,properties:{...Ft,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.DomainEntity,properties:{...Ft,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ze.TeamEntity,properties:{...Ft,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},DP={type:"object",nodeTypeName:Ze.Entity,properties:{...Ft},required:["key","title","type"],additionalProperties:!1};const NP=["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"],Ei=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Xu="a-zA-Z0-9\\.\\-_",LP={oas2:vu,oas3_0:Pt,oas3_1:Fe,oas3_2:nt,async2:qu,async3:Cu,arazzo1:ot,arazzo1_1:ju,overlay1:Ys,openrpc1:Du};function Yr(e){return e==="graphql"?{}:LP[e]}function ea(e){return e.includes("/")}var hn={exports:{}},Eo={},kt={},Vt={},Oo={},Ro={},_o={},vc;function Ii(){return vc||(vc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(S){if(super(),!e.IDENTIFIER.test(S))throw new Error("CodeGen: name must be a valid identifier");this.str=S}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(S){super(),this._items=typeof S=="string"?[S]:S}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const S=this._items[0];return S===""||S==='""'}get str(){var S;return(S=this._str)!==null&&S!==void 0?S:this._str=this._items.reduce((v,O)=>`${v}${O}`,"")}get names(){var S;return(S=this._names)!==null&&S!==void 0?S:this._names=this._items.reduce((v,O)=>(O instanceof r&&(v[O.str]=(v[O.str]||0)+1),v),{})}}e._Code=n,e.nil=new n("");function i(A,...S){const v=[A[0]];let O=0;for(;O<S.length;)c(v,S[O]),v.push(A[++O]);return new n(v)}e._=i;const o=new n("+");function s(A,...S){const v=[g(A[0])];let O=0;for(;O<S.length;)v.push(o),c(v,S[O]),v.push(o,g(A[++O]));return p(v),new n(v)}e.str=s;function c(A,S){S instanceof n?A.push(...S._items):S instanceof r?A.push(S):A.push(h(S))}e.addCodeArg=c;function p(A){let S=1;for(;S<A.length-1;){if(A[S]===o){const v=l(A[S-1],A[S+1]);if(v!==void 0){A.splice(S-1,3,v);continue}A[S++]="+"}S++}}function l(A,S){if(S==='""')return A;if(A==='""')return S;if(typeof A=="string")return S instanceof r||A[A.length-1]!=='"'?void 0:typeof S!="string"?`${A.slice(0,-1)}${S}"`:S[0]==='"'?A.slice(0,-1)+S.slice(1):void 0;if(typeof S=="string"&&S[0]==='"'&&!(A instanceof r))return`"${A}${S.slice(1)}`}function d(A,S){return S.emptyStr()?A:A.emptyStr()?S:s`${A}${S}`}e.strConcat=d;function h(A){return typeof A=="number"||typeof A=="boolean"||A===null?A:g(Array.isArray(A)?A.join(","):A)}function y(A){return new n(g(A))}e.stringify=y;function g(A){return JSON.stringify(A).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=g;function $(A){return typeof A=="string"&&e.IDENTIFIER.test(A)?new n(`.${A}`):i`[${A}]`}e.getProperty=$;function x(A){if(typeof A=="string"&&e.IDENTIFIER.test(A))return new n(`${A}`);throw new Error(`CodeGen: invalid export name: ${A}, use explicit $id name mapping`)}e.getEsmExportName=x;function P(A){return new n(A.toString())}e.regexpCode=P})(_o)),_o}var To={},wc;function xc(){return wc||(wc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Ii();class r extends Error{constructor(l){super(`CodeGen: "code" for ${l} not defined`),this.value=l.value}}var n;(function(p){p[p.Started=0]="Started",p[p.Completed=1]="Completed"})(n||(e.UsedValueState=n={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class i{constructor({prefixes:l,parent:d}={}){this._names={},this._prefixes=l,this._parent=d}toName(l){return l instanceof t.Name?l:this.name(l)}name(l){return new t.Name(this._newName(l))}_newName(l){const d=this._names[l]||this._nameGroup(l);return`${l}${d.index++}`}_nameGroup(l){var d,h;if(!((h=(d=this._parent)===null||d===void 0?void 0:d._prefixes)===null||h===void 0)&&h.has(l)||this._prefixes&&!this._prefixes.has(l))throw new Error(`CodeGen: prefix "${l}" is not allowed in this scope`);return this._names[l]={prefix:l,index:0}}}e.Scope=i;class o extends t.Name{constructor(l,d){super(d),this.prefix=l}setValue(l,{property:d,itemIndex:h}){this.value=l,this.scopePath=(0,t._)`.${new t.Name(d)}[${h}]`}}e.ValueScopeName=o;const s=(0,t._)`\n`;class c extends i{constructor(l){super(l),this._values={},this._scope=l.scope,this.opts={...l,_n:l.lines?s:t.nil}}get(){return this._scope}name(l){return new o(l,this._newName(l))}value(l,d){var h;if(d.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(l),{prefix:g}=y,$=(h=d.key)!==null&&h!==void 0?h:d.ref;let x=this._values[g];if(x){const S=x.get($);if(S)return S}else x=this._values[g]=new Map;x.set($,y);const P=this._scope[g]||(this._scope[g]=[]),A=P.length;return P[A]=d.ref,y.setValue(d,{property:g,itemIndex:A}),y}getValue(l,d){const h=this._values[l];if(h)return h.get(d)}scopeRefs(l,d=this._values){return this._reduceValues(d,h=>{if(h.scopePath===void 0)throw new Error(`CodeGen: name "${h}" has no value`);return(0,t._)`${l}${h.scopePath}`})}scopeCode(l=this._values,d,h){return this._reduceValues(l,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},d,h)}_reduceValues(l,d,h={},y){let g=t.nil;for(const $ in l){const x=l[$];if(!x)continue;const P=h[$]=h[$]||new Map;x.forEach(A=>{if(P.has(A))return;P.set(A,n.Started);let S=d(A);if(S){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;g=(0,t._)`${g}${v} ${A} = ${S};${this.opts._n}`}else if(S=y?.(A))g=(0,t._)`${g}${S}${this.opts._n}`;else throw new r(A);P.set(A,n.Completed)})}return g}}e.ValueScope=c})(To)),To}var Sc;function ke(){return Sc||(Sc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Ii(),r=xc();var n=Ii();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var i=xc();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class o{optimizeNodes(){return this}optimizeNames(w,D){return this}}class s extends o{constructor(w,D,K){super(),this.varKind=w,this.name=D,this.rhs=K}render({es5:w,_n:D}){const K=w?r.varKinds.var:this.varKind,V=this.rhs===void 0?"":` = ${this.rhs}`;return`${K} ${this.name}${V};`+D}optimizeNames(w,D){if(w[this.name.str])return this.rhs&&(this.rhs=ie(this.rhs,w,D)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends o{constructor(w,D,K){super(),this.lhs=w,this.rhs=D,this.sideEffects=K}render({_n:w}){return`${this.lhs} = ${this.rhs};`+w}optimizeNames(w,D){if(!(this.lhs instanceof t.Name&&!w[this.lhs.str]&&!this.sideEffects))return this.rhs=ie(this.rhs,w,D),this}get names(){const w=this.lhs instanceof t.Name?{}:{...this.lhs.names};return ee(w,this.rhs)}}class p extends c{constructor(w,D,K,V){super(w,K,V),this.op=D}render({_n:w}){return`${this.lhs} ${this.op}= ${this.rhs};`+w}}class l extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`${this.label}:`+w}}class d extends o{constructor(w){super(),this.label=w,this.names={}}render({_n:w}){return`break${this.label?` ${this.label}`:""};`+w}}class h extends o{constructor(w){super(),this.error=w}render({_n:w}){return`throw ${this.error};`+w}get names(){return this.error.names}}class y extends o{constructor(w){super(),this.code=w}render({_n:w}){return`${this.code};`+w}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(w,D){return this.code=ie(this.code,w,D),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class g extends o{constructor(w=[]){super(),this.nodes=w}render(w){return this.nodes.reduce((D,K)=>D+K.render(w),"")}optimizeNodes(){const{nodes:w}=this;let D=w.length;for(;D--;){const K=w[D].optimizeNodes();Array.isArray(K)?w.splice(D,1,...K):K?w[D]=K:w.splice(D,1)}return w.length>0?this:void 0}optimizeNames(w,D){const{nodes:K}=this;let V=K.length;for(;V--;){const re=K[V];re.optimizeNames(w,D)||(Pe(w,re.names),K.splice(V,1))}return K.length>0?this:void 0}get names(){return this.nodes.reduce((w,D)=>de(w,D.names),{})}}class $ extends g{render(w){return"{"+w._n+super.render(w)+"}"+w._n}}class x extends g{}class P extends ${}P.kind="else";class A extends ${constructor(w,D){super(D),this.condition=w}render(w){let D=`if(${this.condition})`+super.render(w);return this.else&&(D+="else "+this.else.render(w)),D}optimizeNodes(){super.optimizeNodes();const w=this.condition;if(w===!0)return this.nodes;let D=this.else;if(D){const K=D.optimizeNodes();D=this.else=Array.isArray(K)?new P(K):K}if(D)return w===!1?D instanceof A?D:D.nodes:this.nodes.length?this:new A(Ie(w),D instanceof A?[D]:D.nodes);if(!(w===!1||!this.nodes.length))return this}optimizeNames(w,D){var K;if(this.else=(K=this.else)===null||K===void 0?void 0:K.optimizeNames(w,D),!!(super.optimizeNames(w,D)||this.else))return this.condition=ie(this.condition,w,D),this}get names(){const w=super.names;return ee(w,this.condition),this.else&&de(w,this.else.names),w}}A.kind="if";class S extends ${}S.kind="for";class v extends S{constructor(w){super(),this.iteration=w}render(w){return`for(${this.iteration})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iteration=ie(this.iteration,w,D),this}get names(){return de(super.names,this.iteration.names)}}class O extends S{constructor(w,D,K,V){super(),this.varKind=w,this.name=D,this.from=K,this.to=V}render(w){const D=w.es5?r.varKinds.var:this.varKind,{name:K,from:V,to:re}=this;return`for(${D} ${K}=${V}; ${K}<${re}; ${K}++)`+super.render(w)}get names(){const w=ee(super.names,this.from);return ee(w,this.to)}}class b extends S{constructor(w,D,K,V){super(),this.loop=w,this.varKind=D,this.name=K,this.iterable=V}render(w){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(w)}optimizeNames(w,D){if(super.optimizeNames(w,D))return this.iterable=ie(this.iterable,w,D),this}get names(){return de(super.names,this.iterable.names)}}class k extends ${constructor(w,D,K){super(),this.name=w,this.args=D,this.async=K}render(w){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(w)}}k.kind="func";class M extends g{render(w){return"return "+super.render(w)}}M.kind="return";class H extends ${render(w){let D="try"+super.render(w);return this.catch&&(D+=this.catch.render(w)),this.finally&&(D+=this.finally.render(w)),D}optimizeNodes(){var w,D;return super.optimizeNodes(),(w=this.catch)===null||w===void 0||w.optimizeNodes(),(D=this.finally)===null||D===void 0||D.optimizeNodes(),this}optimizeNames(w,D){var K,V;return super.optimizeNames(w,D),(K=this.catch)===null||K===void 0||K.optimizeNames(w,D),(V=this.finally)===null||V===void 0||V.optimizeNames(w,D),this}get names(){const w=super.names;return this.catch&&de(w,this.catch.names),this.finally&&de(w,this.finally.names),w}}class G extends ${constructor(w){super(),this.error=w}render(w){return`catch(${this.error})`+super.render(w)}}G.kind="catch";class Z extends ${render(w){return"finally"+super.render(w)}}Z.kind="finally";class te{constructor(w,D={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...D,_n:D.lines?`
|
|
2
|
+
`:""},this._extScope=w,this._scope=new r.Scope({parent:w}),this._nodes=[new x]}toString(){return this._root.render(this.opts)}name(w){return this._scope.name(w)}scopeName(w){return this._extScope.name(w)}scopeValue(w,D){const K=this._extScope.value(w,D);return(this._values[K.prefix]||(this._values[K.prefix]=new Set)).add(K),K}getScopeValue(w,D){return this._extScope.getValue(w,D)}scopeRefs(w){return this._extScope.scopeRefs(w,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(w,D,K,V){const re=this._scope.toName(D);return K!==void 0&&V&&(this._constants[re.str]=K),this._leafNode(new s(w,re,K)),re}const(w,D,K){return this._def(r.varKinds.const,w,D,K)}let(w,D,K){return this._def(r.varKinds.let,w,D,K)}var(w,D,K){return this._def(r.varKinds.var,w,D,K)}assign(w,D,K){return this._leafNode(new c(w,D,K))}add(w,D){return this._leafNode(new p(w,e.operators.ADD,D))}code(w){return typeof w=="function"?w():w!==t.nil&&this._leafNode(new y(w)),this}object(...w){const D=["{"];for(const[K,V]of w)D.length>1&&D.push(","),D.push(K),(K!==V||this.opts.es5)&&(D.push(":"),(0,t.addCodeArg)(D,V));return D.push("}"),new t._Code(D)}if(w,D,K){if(this._blockNode(new A(w)),D&&K)this.code(D).else().code(K).endIf();else if(D)this.code(D).endIf();else if(K)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(w){return this._elseNode(new A(w))}else(){return this._elseNode(new P)}endIf(){return this._endBlockNode(A,P)}_for(w,D){return this._blockNode(w),D&&this.code(D).endFor(),this}for(w,D){return this._for(new v(w),D)}forRange(w,D,K,V,re=this.opts.es5?r.varKinds.var:r.varKinds.let){const we=this._scope.toName(w);return this._for(new O(re,we,D,K),()=>V(we))}forOf(w,D,K,V=r.varKinds.const){const re=this._scope.toName(w);if(this.opts.es5){const we=D instanceof t.Name?D:this.var("_arr",D);return this.forRange("_i",0,(0,t._)`${we}.length`,$e=>{this.var(re,(0,t._)`${we}[${$e}]`),K(re)})}return this._for(new b("of",V,re,D),()=>K(re))}forIn(w,D,K,V=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(w,(0,t._)`Object.keys(${D})`,K);const re=this._scope.toName(w);return this._for(new b("in",V,re,D),()=>K(re))}endFor(){return this._endBlockNode(S)}label(w){return this._leafNode(new l(w))}break(w){return this._leafNode(new d(w))}return(w){const D=new M;if(this._blockNode(D),this.code(w),D.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(M)}try(w,D,K){if(!D&&!K)throw new Error('CodeGen: "try" without "catch" and "finally"');const V=new H;if(this._blockNode(V),this.code(w),D){const re=this.name("e");this._currNode=V.catch=new G(re),D(re)}return K&&(this._currNode=V.finally=new Z,this.code(K)),this._endBlockNode(G,Z)}throw(w){return this._leafNode(new h(w))}block(w,D){return this._blockStarts.push(this._nodes.length),w&&this.code(w).endBlock(D),this}endBlock(w){const D=this._blockStarts.pop();if(D===void 0)throw new Error("CodeGen: not in self-balancing block");const K=this._nodes.length-D;if(K<0||w!==void 0&&K!==w)throw new Error(`CodeGen: wrong number of nodes: ${K} vs ${w} expected`);return this._nodes.length=D,this}func(w,D=t.nil,K,V){return this._blockNode(new k(w,D,K)),V&&this.code(V).endFunc(),this}endFunc(){return this._endBlockNode(k)}optimize(w=1){for(;w-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(w){return this._currNode.nodes.push(w),this}_blockNode(w){this._currNode.nodes.push(w),this._nodes.push(w)}_endBlockNode(w,D){const K=this._currNode;if(K instanceof w||D&&K instanceof D)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${D?`${w.kind}/${D.kind}`:w.kind}"`)}_elseNode(w){const D=this._currNode;if(!(D instanceof A))throw new Error('CodeGen: "else" without "if"');return this._currNode=D.else=w,this}get _root(){return this._nodes[0]}get _currNode(){const w=this._nodes;return w[w.length-1]}set _currNode(w){const D=this._nodes;D[D.length-1]=w}}e.CodeGen=te;function de(q,w){for(const D in w)q[D]=(q[D]||0)+(w[D]||0);return q}function ee(q,w){return w instanceof t._CodeOrName?de(q,w.names):q}function ie(q,w,D){if(q instanceof t.Name)return K(q);if(!V(q))return q;return new t._Code(q._items.reduce((re,we)=>(we instanceof t.Name&&(we=K(we)),we instanceof t._Code?re.push(...we._items):re.push(we),re),[]));function K(re){const we=D[re.str];return we===void 0||w[re.str]!==1?re:(delete w[re.str],we)}function V(re){return re instanceof t._Code&&re._items.some(we=>we instanceof t.Name&&w[we.str]===1&&D[we.str]!==void 0)}}function Pe(q,w){for(const D in w)q[D]=(q[D]||0)-(w[D]||0)}function Ie(q){return typeof q=="boolean"||typeof q=="number"||q===null?!q:(0,t._)`!${C(q)}`}e.not=Ie;const Le=R(e.operators.AND);function Se(...q){return q.reduce(Le)}e.and=Se;const qe=R(e.operators.OR);function _(...q){return q.reduce(qe)}e.or=_;function R(q){return(w,D)=>w===t.nil?D:D===t.nil?w:(0,t._)`${C(w)} ${q} ${C(D)}`}function C(q){return q instanceof t.Name?q:(0,t._)`(${q})`}})(Ro)),Ro}var je={},Pc;function Ne(){if(Pc)return je;Pc=1,Object.defineProperty(je,"__esModule",{value:!0}),je.checkStrictMode=je.getErrorPath=je.Type=je.useFunc=je.setEvaluated=je.evaluatedPropsToName=je.mergeEvaluated=je.eachItem=je.unescapeJsonPointer=je.escapeJsonPointer=je.escapeFragment=je.unescapeFragment=je.schemaRefOrVal=je.schemaHasRulesButRef=je.schemaHasRules=je.checkUnknownRules=je.alwaysValidSchema=je.toHash=void 0;const e=ke(),t=Ii();function r(b){const k={};for(const M of b)k[M]=!0;return k}je.toHash=r;function n(b,k){return typeof k=="boolean"?k:Object.keys(k).length===0?!0:(i(b,k),!o(k,b.self.RULES.all))}je.alwaysValidSchema=n;function i(b,k=b.schema){const{opts:M,self:H}=b;if(!M.strictSchema||typeof k=="boolean")return;const G=H.RULES.keywords;for(const Z in k)G[Z]||O(b,`unknown keyword: "${Z}"`)}je.checkUnknownRules=i;function o(b,k){if(typeof b=="boolean")return!b;for(const M in b)if(k[M])return!0;return!1}je.schemaHasRules=o;function s(b,k){if(typeof b=="boolean")return!b;for(const M in b)if(M!=="$ref"&&k.all[M])return!0;return!1}je.schemaHasRulesButRef=s;function c({topSchemaRef:b,schemaPath:k},M,H,G){if(!G){if(typeof M=="number"||typeof M=="boolean")return M;if(typeof M=="string")return(0,e._)`${M}`}return(0,e._)`${b}${k}${(0,e.getProperty)(H)}`}je.schemaRefOrVal=c;function p(b){return h(decodeURIComponent(b))}je.unescapeFragment=p;function l(b){return encodeURIComponent(d(b))}je.escapeFragment=l;function d(b){return typeof b=="number"?`${b}`:b.replace(/~/g,"~0").replace(/\//g,"~1")}je.escapeJsonPointer=d;function h(b){return b.replace(/~1/g,"/").replace(/~0/g,"~")}je.unescapeJsonPointer=h;function y(b,k){if(Array.isArray(b))for(const M of b)k(M);else k(b)}je.eachItem=y;function g({mergeNames:b,mergeToName:k,mergeValues:M,resultToName:H}){return(G,Z,te,de)=>{const ee=te===void 0?Z:te instanceof e.Name?(Z instanceof e.Name?b(G,Z,te):k(G,Z,te),te):Z instanceof e.Name?(k(G,te,Z),Z):M(Z,te);return de===e.Name&&!(ee instanceof e.Name)?H(G,ee):ee}}je.mergeEvaluated={props:g({mergeNames:(b,k,M)=>b.if((0,e._)`${M} !== true && ${k} !== undefined`,()=>{b.if((0,e._)`${k} === true`,()=>b.assign(M,!0),()=>b.assign(M,(0,e._)`${M} || {}`).code((0,e._)`Object.assign(${M}, ${k})`))}),mergeToName:(b,k,M)=>b.if((0,e._)`${M} !== true`,()=>{k===!0?b.assign(M,!0):(b.assign(M,(0,e._)`${M} || {}`),x(b,M,k))}),mergeValues:(b,k)=>b===!0?!0:{...b,...k},resultToName:$}),items:g({mergeNames:(b,k,M)=>b.if((0,e._)`${M} !== true && ${k} !== undefined`,()=>b.assign(M,(0,e._)`${k} === true ? true : ${M} > ${k} ? ${M} : ${k}`)),mergeToName:(b,k,M)=>b.if((0,e._)`${M} !== true`,()=>b.assign(M,k===!0?!0:(0,e._)`${M} > ${k} ? ${M} : ${k}`)),mergeValues:(b,k)=>b===!0?!0:Math.max(b,k),resultToName:(b,k)=>b.var("items",k)})};function $(b,k){if(k===!0)return b.var("props",!0);const M=b.var("props",(0,e._)`{}`);return k!==void 0&&x(b,M,k),M}je.evaluatedPropsToName=$;function x(b,k,M){Object.keys(M).forEach(H=>b.assign((0,e._)`${k}${(0,e.getProperty)(H)}`,!0))}je.setEvaluated=x;const P={};function A(b,k){return b.scopeValue("func",{ref:k,code:P[k.code]||(P[k.code]=new t._Code(k.code))})}je.useFunc=A;var S;(function(b){b[b.Num=0]="Num",b[b.Str=1]="Str"})(S||(je.Type=S={}));function v(b,k,M){if(b instanceof e.Name){const H=k===S.Num;return M?H?(0,e._)`"[" + ${b} + "]"`:(0,e._)`"['" + ${b} + "']"`:H?(0,e._)`"/" + ${b}`:(0,e._)`"/" + ${b}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return M?(0,e.getProperty)(b).toString():"/"+d(b)}je.getErrorPath=v;function O(b,k,M=b.opts.strictSchema){if(M){if(k=`strict mode: ${k}`,M===!0)throw new Error(k);b.self.logger.warn(k)}}return je.checkStrictMode=O,je}var yn={},$c;function lt(){if($c)return yn;$c=1,Object.defineProperty(yn,"__esModule",{value:!0});const e=ke(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),isAllOfVariant:new e.Name("isAllOfVariant"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return yn.default=t,yn}var Ac;function Xi(){return Ac||(Ac=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ke(),r=Ne(),n=lt();e.keywordError={message:({keyword:P})=>(0,t.str)`must pass "${P}" keyword validation`},e.keyword$DataError={message:({keyword:P,schemaType:A})=>A?(0,t.str)`"${P}" keyword must be ${A} ($data)`:(0,t.str)`"${P}" keyword is invalid ($data)`};function i(P,A=e.keywordError,S,v){const{it:O}=P,{gen:b,compositeRule:k,allErrors:M}=O,H=h(P,A,S);v??(k||M)?p(b,H):l(O,(0,t._)`[${H}]`)}e.reportError=i;function o(P,A=e.keywordError,S){const{it:v}=P,{gen:O,compositeRule:b,allErrors:k}=v,M=h(P,A,S);p(O,M),b||k||l(v,n.default.vErrors)}e.reportExtraError=o;function s(P,A){P.assign(n.default.errors,A),P.if((0,t._)`${n.default.vErrors} !== null`,()=>P.if(A,()=>P.assign((0,t._)`${n.default.vErrors}.length`,A),()=>P.assign(n.default.vErrors,null)))}e.resetErrorsCount=s;function c({gen:P,keyword:A,schemaValue:S,data:v,errsCount:O,it:b}){if(O===void 0)throw new Error("ajv implementation error");const k=P.name("err");P.forRange("i",O,n.default.errors,M=>{P.const(k,(0,t._)`${n.default.vErrors}[${M}]`),P.if((0,t._)`${k}.instancePath === undefined`,()=>P.assign((0,t._)`${k}.instancePath`,(0,t.strConcat)(n.default.instancePath,b.errorPath))),P.assign((0,t._)`${k}.schemaPath`,(0,t.str)`${b.errSchemaPath}/${A}`),b.opts.verbose&&(P.assign((0,t._)`${k}.schema`,S),P.assign((0,t._)`${k}.data`,v))})}e.extendErrors=c;function p(P,A){const S=P.const("err",A);P.if((0,t._)`${n.default.vErrors} === null`,()=>P.assign(n.default.vErrors,(0,t._)`[${S}]`),(0,t._)`${n.default.vErrors}.push(${S})`),P.code((0,t._)`${n.default.errors}++`)}function l(P,A){const{gen:S,validateName:v,schemaEnv:O}=P;O.$async?S.throw((0,t._)`new ${P.ValidationError}(${A})`):(S.assign((0,t._)`${v}.errors`,A),S.return(!1))}const d={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function h(P,A,S){const{createErrors:v}=P.it;return v===!1?(0,t._)`{}`:y(P,A,S)}function y(P,A,S={}){const{gen:v,it:O}=P,b=[g(O,S),$(P,S)];return x(P,A,b),v.object(...b)}function g({errorPath:P},{instancePath:A}){const S=A?(0,t.str)`${P}${(0,r.getErrorPath)(A,r.Type.Str)}`:P;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,S)]}function $({keyword:P,it:{errSchemaPath:A}},{schemaPath:S,parentSchema:v}){let O=v?A:(0,t.str)`${A}/${P}`;return S&&(O=(0,t.str)`${O}${(0,r.getErrorPath)(S,r.Type.Str)}`),[d.schemaPath,O]}function x(P,{params:A,message:S},v){const{keyword:O,data:b,schemaValue:k,it:M}=P,{opts:H,propertyName:G,topSchemaRef:Z,schemaPath:te}=M;v.push([d.keyword,O],[d.params,typeof A=="function"?A(P):A||(0,t._)`{}`]),H.messages&&v.push([d.message,typeof S=="function"?S(P):S]),H.verbose&&v.push([d.schema,k],[d.parentSchema,(0,t._)`${Z}${te}`],[n.default.data,b]),G&&v.push([d.propertyName,G])}})(Oo)),Oo}var Ec;function UP(){if(Ec)return Vt;Ec=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.boolOrEmptySchema=Vt.topBoolOrEmptySchema=void 0;const e=Xi(),t=ke(),r=lt(),n={message:"boolean schema is false"};function i(c){const{gen:p,schema:l,validateName:d}=c;l===!1?s(c,!1):typeof l=="object"&&l.$async===!0?p.return(r.default.data):(p.assign((0,t._)`${d}.errors`,null),p.return(!0))}Vt.topBoolOrEmptySchema=i;function o(c,p){const{gen:l,schema:d}=c;d===!1?(l.var(p,!1),s(c)):l.var(p,!0)}Vt.boolOrEmptySchema=o;function s(c,p){const{gen:l,data:d}=c,h={gen:l,keyword:"false schema",data:d,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(h,n,void 0,p)}return Vt}var rt={},Ht={},Oc;function Zu(){if(Oc)return Ht;Oc=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.getRules=Ht.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(i){return typeof i=="string"&&t.has(i)}Ht.isJSONType=r;function n(){const i={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...i,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},i.number,i.string,i.array,i.object],post:{rules:[]},all:{},keywords:{}}}return Ht.getRules=n,Ht}var It={},Rc;function ed(){if(Rc)return It;Rc=1,Object.defineProperty(It,"__esModule",{value:!0}),It.shouldUseRule=It.shouldUseGroup=It.schemaHasRulesForType=void 0;function e({schema:n,self:i},o){const s=i.RULES.types[o];return s&&s!==!0&&t(n,s)}It.schemaHasRulesForType=e;function t(n,i){return i.rules.some(o=>r(n,o))}It.shouldUseGroup=t;function r(n,i){var o;return n[i.keyword]!==void 0||((o=i.definition.implements)===null||o===void 0?void 0:o.some(s=>n[s]!==void 0))}return It.shouldUseRule=r,It}var _c;function qi(){if(_c)return rt;_c=1,Object.defineProperty(rt,"__esModule",{value:!0}),rt.reportTypeError=rt.checkDataTypes=rt.checkDataType=rt.coerceAndCheckDataType=rt.getJSONTypes=rt.getSchemaTypes=rt.DataType=void 0;const e=Zu(),t=ed(),r=Xi(),n=ke(),i=Ne();var o;(function(S){S[S.Correct=0]="Correct",S[S.Wrong=1]="Wrong"})(o||(rt.DataType=o={}));function s(S){const v=c(S.type);if(v.includes("null")){if(S.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!v.length&&S.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');S.nullable===!0&&v.push("null")}return v}rt.getSchemaTypes=s;function c(S){const v=Array.isArray(S)?S:S?[S]:[];if(v.every(e.isJSONType))return v;throw new Error("type must be JSONType or JSONType[]: "+v.join(","))}rt.getJSONTypes=c;function p(S,v){const{gen:O,data:b,opts:k}=S,M=d(v,k.coerceTypes),H=v.length>0&&!(M.length===0&&v.length===1&&(0,t.schemaHasRulesForType)(S,v[0]));if(H){const G=$(v,b,k.strictNumbers,o.Wrong);O.if(G,()=>{M.length?h(S,v,M):P(S)})}return H}rt.coerceAndCheckDataType=p;const l=new Set(["string","number","integer","boolean","null"]);function d(S,v){return v?S.filter(O=>l.has(O)||v==="array"&&O==="array"):[]}function h(S,v,O){const{gen:b,data:k,opts:M}=S,H=b.let("dataType",(0,n._)`typeof ${k}`),G=b.let("coerced",(0,n._)`undefined`);M.coerceTypes==="array"&&b.if((0,n._)`${H} == 'object' && Array.isArray(${k}) && ${k}.length == 1`,()=>b.assign(k,(0,n._)`${k}[0]`).assign(H,(0,n._)`typeof ${k}`).if($(v,k,M.strictNumbers),()=>b.assign(G,k))),b.if((0,n._)`${G} !== undefined`);for(const te of O)(l.has(te)||te==="array"&&M.coerceTypes==="array")&&Z(te);b.else(),P(S),b.endIf(),b.if((0,n._)`${G} !== undefined`,()=>{b.assign(k,G),y(S,G)});function Z(te){switch(te){case"string":b.elseIf((0,n._)`${H} == "number" || ${H} == "boolean"`).assign(G,(0,n._)`"" + ${k}`).elseIf((0,n._)`${k} === null`).assign(G,(0,n._)`""`);return;case"number":b.elseIf((0,n._)`${H} == "boolean" || ${k} === null
|
|
3
3
|
|| (${H} == "string" && ${k} && ${k} == +${k})`).assign(G,(0,n._)`+${k}`);return;case"integer":b.elseIf((0,n._)`${H} === "boolean" || ${k} === null
|
|
4
4
|
|| (${H} === "string" && ${k} && ${k} == +${k} && !(${k} % 1))`).assign(G,(0,n._)`+${k}`);return;case"boolean":b.elseIf((0,n._)`${k} === "false" || ${k} === 0 || ${k} === null`).assign(G,!1).elseIf((0,n._)`${k} === "true" || ${k} === 1`).assign(G,!0);return;case"null":b.elseIf((0,n._)`${k} === "" || ${k} === 0 || ${k} === false`),b.assign(G,null);return;case"array":b.elseIf((0,n._)`${H} === "string" || ${H} === "number"
|
|
5
|
-
|| ${H} === "boolean" || ${k} === null`).assign(G,(0,n._)`[${k}]`)}}}function y({gen:S,parentData:v,parentDataProperty:O},b){S.if((0,n._)`${v} !== undefined`,()=>S.assign((0,n._)`${v}[${O}]`,b))}function g(S,v,O,b=o.Correct){const k=b===o.Correct?n.operators.EQ:n.operators.NEQ;let M;switch(S){case"null":return(0,n._)`${v} ${k} null`;case"array":M=(0,n._)`Array.isArray(${v})`;break;case"object":M=(0,n._)`${v} && typeof ${v} == "object" && !Array.isArray(${v})`;break;case"integer":M=H((0,n._)`!(${v} % 1) && !isNaN(${v})`);break;case"number":M=H();break;default:return(0,n._)`typeof ${v} ${k} ${S}`}return b===o.Correct?M:(0,n.not)(M);function H(G=n.nil){return(0,n.and)((0,n._)`typeof ${v} == "number"`,G,O?(0,n._)`isFinite(${v})`:n.nil)}}rt.checkDataType=g;function $(S,v,O,b){if(S.length===1)return g(S[0],v,O,b);let k;const M=(0,i.toHash)(S);if(M.array&&M.object){const H=(0,n._)`typeof ${v} != "object"`;k=M.null?H:(0,n._)`!${v} || ${H}`,delete M.null,delete M.array,delete M.object}else k=n.nil;M.number&&delete M.integer;for(const H in M)k=(0,n.and)(k,g(H,v,O,b));return k}rt.checkDataTypes=$;const x={message:({schema:S})=>`must be ${S}`,params:({schema:S,schemaValue:v})=>typeof S=="string"?(0,n._)`{type: ${S}}`:(0,n._)`{type: ${v}}`};function P(S){const v=A(S);(0,r.reportError)(v,x)}rt.reportTypeError=P;function A(S){const{gen:v,data:O,schema:b}=S,k=(0,i.schemaRefOrVal)(S,b,"type");return{gen:v,keyword:"type",data:O,schema:b.type,schemaCode:k,schemaValue:k,parentSchema:b,params:{},it:S}}return rt}var kr={},qc;function DP(){if(qc)return kr;qc=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.assignDefaults=void 0;const e=ke(),t=Ne();function r(i,o){const{properties:s,items:c}=i.schema;if(o==="object"&&s)for(const p in s)n(i,p,s[p].default);else o==="array"&&Array.isArray(c)&&c.forEach((p,l)=>n(i,l,p.default))}kr.assignDefaults=r;function n(i,o,s){const{gen:c,compositeRule:p,data:l,opts:d}=i;if(s===void 0)return;const h=(0,e._)`${l}${(0,e.getProperty)(o)}`;if(p){(0,t.checkStrictMode)(i,`default is ignored for: ${h}`);return}let y=(0,e._)`${h} === undefined`;d.useDefaults==="empty"&&(y=(0,e._)`${y} || ${h} === null || ${h} === ""`),c.if(y,(0,e._)`${h} = ${(0,e.stringify)(s)}`)}return kr}var bt={},Ge={},Ir={},Cc;function Sd(){if(Cc)return Ir;Cc=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.getSkipCondition=void 0;const e=ke(),t=lt();function r(n,i){var o;const s=(o=n.properties)===null||o===void 0?void 0:o[i];if(!s)return;const c=s.readOnly===!0,p=s.writeOnly===!0;if(!c&&!p)return;const l=[],d=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return c&&l.push((0,e._)`${d} === "request"`),p&&l.push((0,e._)`${d} === "response"`),(0,e.or)(...l)}return Ir.getSkipCondition=r,Ir}var jc;function At(){if(jc)return Ge;jc=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.validateUnion=Ge.validateArray=Ge.usePattern=Ge.callValidateCode=Ge.schemaProperties=Ge.allSchemaProperties=Ge.noPropertyInData=Ge.propertyInData=Ge.isOwnProperty=Ge.hasPropFunc=Ge.reportMissingProp=Ge.checkMissingProp=Ge.checkReportMissingProp=void 0;const e=ke(),t=Ne(),r=lt(),n=Ne(),i=Sd();function o(v,O){const{gen:b,data:k,it:M}=v;b.if(h(b,k,O,M.opts.ownProperties),()=>{v.setParams({missingProperty:(0,e._)`${O}`},!0),v.error()})}Ge.checkReportMissingProp=o;function s({gen:v,data:O,it:{opts:b},parentSchema:k},M,H){return(0,e.or)(...M.map(G=>{var Z;return(0,e.and)((0,e.not)((Z=(0,i.getSkipCondition)(k,G))!==null&&Z!==void 0?Z:(0,e._)`false`),h(v,O,G,b.ownProperties),(0,e._)`${H} = ${G}`)}))}Ge.checkMissingProp=s;function c(v,O){v.setParams({missingProperty:O},!0),v.error()}Ge.reportMissingProp=c;function p(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ge.hasPropFunc=p;function l(v,O,b){return(0,e._)`${p(v)}.call(${O}, ${b})`}Ge.isOwnProperty=l;function d(v,O,b,k){const M=(0,e._)`${O}${(0,e.getProperty)(b)} !== undefined`;return k?(0,e._)`${M} && ${l(v,O,b)}`:M}Ge.propertyInData=d;function h(v,O,b,k){const M=(0,e._)`${O}${(0,e.getProperty)(b)} === undefined`;return k?(0,e.or)(M,(0,e.not)(l(v,O,b))):M}Ge.noPropertyInData=h;function y(v){return v?Object.keys(v).filter(O=>O!=="__proto__"):[]}Ge.allSchemaProperties=y;function g(v,O){return y(O).filter(b=>!(0,t.alwaysValidSchema)(v,O[b]))}Ge.schemaProperties=g;function $({schemaCode:v,data:O,it:{gen:b,topSchemaRef:k,schemaPath:M,errorPath:H},it:G},Z,te,de){const ee=de?(0,e._)`${v}, ${O}, ${k}${M}`:O,ie=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,H)],[r.default.parentData,G.parentData],[r.default.parentDataProperty,G.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,G.isAllOfVariant?1:0]];G.opts.dynamicRef&&ie.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const Pe=(0,e._)`${ee}, ${b.object(...ie)}`;return te!==e.nil?(0,e._)`${Z}.call(${te}, ${Pe})`:(0,e._)`${Z}(${Pe})`}Ge.callValidateCode=$;const x=(0,e._)`new RegExp`;function P({gen:v,it:{opts:O}},b){const k=O.unicodeRegExp?"u":"",{regExp:M}=O.code,H=M(b,k);return v.scopeValue("pattern",{key:H.toString(),ref:H,code:(0,e._)`${M.code==="new RegExp"?x:(0,n.useFunc)(v,M)}(${b}, ${k})`})}Ge.usePattern=P;function A(v){const{gen:O,data:b,keyword:k,it:M}=v,H=O.name("valid");if(M.allErrors){const Z=O.let("valid",!0);return G(()=>O.assign(Z,!1)),Z}return O.var(H,!0),G(()=>O.break()),H;function G(Z){const te=O.const("len",(0,e._)`${b}.length`);O.forRange("i",0,te,de=>{v.subschema({keyword:k,dataProp:de,dataPropType:t.Type.Num},H),O.if((0,e.not)(H),Z)})}}Ge.validateArray=A;function S(v){const{gen:O,schema:b,keyword:k,parentSchema:M,it:H}=v;if(!Array.isArray(b))throw new Error("ajv implementation error");if(H.opts.discriminator&&M.discriminator||b.some(de=>(0,t.alwaysValidSchema)(H,de))&&!H.opts.unevaluated)return;const Z=O.let("valid",!1),te=O.name("_valid");O.block(()=>b.forEach((de,ee)=>{const ie=v.subschema({keyword:k,schemaProp:ee,compositeRule:!0},te);O.assign(Z,(0,e._)`${Z} || ${te}`),v.mergeValidEvaluated(ie,te)||O.if((0,e.not)(Z))})),v.result(Z,()=>v.reset(),()=>v.error(!0))}return Ge.validateUnion=S,Ge}var Mc;function NP(){if(Mc)return bt;Mc=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.validateKeywordUsage=bt.validSchemaType=bt.funcKeywordCode=bt.macroKeywordCode=void 0;const e=ke(),t=lt(),r=At(),n=ro();function i(y,g){const{gen:$,keyword:x,schema:P,parentSchema:A,it:S}=y,v=g.macro.call(S.self,P,A,S),O=l($,x,v);S.opts.validateSchema!==!1&&S.self.validateSchema(v,!0);const b=$.name("valid");y.subschema({schema:v,schemaPath:e.nil,errSchemaPath:`${S.errSchemaPath}/${x}`,topSchemaRef:O,compositeRule:!0},b),y.pass(b,()=>y.error(!0))}bt.macroKeywordCode=i;function o(y,g){var $;const{gen:x,keyword:P,schema:A,parentSchema:S,$data:v,it:O}=y;p(O,g);const b=!v&&g.compile?g.compile.call(O.self,A,S,O):g.validate,k=l(x,P,b),M=x.let("valid");y.block$data(M,H),y.ok(($=g.valid)!==null&&$!==void 0?$:M);function H(){if(g.errors===!1)te(),g.modifying&&s(y),de(()=>y.error());else{const ee=g.async?G():Z();g.modifying&&s(y),de(()=>c(y,ee))}}function G(){const ee=x.let("ruleErrs",null);return x.try(()=>te((0,e._)`await `),ie=>x.assign(M,!1).if((0,e._)`${ie} instanceof ${O.ValidationError}`,()=>x.assign(ee,(0,e._)`${ie}.errors`),()=>x.throw(ie))),ee}function Z(){const ee=(0,e._)`${k}.errors`;return x.assign(ee,null),te(e.nil),ee}function te(ee=g.async?(0,e._)`await `:e.nil){const ie=O.opts.passContext?t.default.this:t.default.self,Pe=!("compile"in g&&!v||g.schema===!1);x.assign(M,(0,e._)`${ee}${(0,r.callValidateCode)(y,k,ie,Pe)}`,g.modifying)}function de(ee){var ie;x.if((0,e.not)((ie=g.valid)!==null&&ie!==void 0?ie:M),ee)}}bt.funcKeywordCode=o;function s(y){const{gen:g,data:$,it:x}=y;g.if(x.parentData,()=>g.assign($,(0,e._)`${x.parentData}[${x.parentDataProperty}]`))}function c(y,g){const{gen:$}=y;$.if((0,e._)`Array.isArray(${g})`,()=>{$.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${g} : ${t.default.vErrors}.concat(${g})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(y)},()=>y.error())}function p({schemaEnv:y},g){if(g.async&&!y.$async)throw new Error("async keyword in sync schema")}function l(y,g,$){if($===void 0)throw new Error(`keyword "${g}" failed to compile`);return y.scopeValue("keyword",typeof $=="function"?{ref:$}:{ref:$,code:(0,e.stringify)($)})}function d(y,g,$=!1){return!g.length||g.some(x=>x==="array"?Array.isArray(y):x==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==x||$&&typeof y>"u")}bt.validSchemaType=d;function h({schema:y,opts:g,self:$,errSchemaPath:x},P,A){if(Array.isArray(P.keyword)?!P.keyword.includes(A):P.keyword!==A)throw new Error("ajv implementation error");const S=P.dependencies;if(S?.some(v=>!Object.prototype.hasOwnProperty.call(y,v)))throw new Error(`parent schema must have dependencies of ${A}: ${S.join(",")}`);if(P.validateSchema&&!P.validateSchema(y[A])){const O=`keyword "${A}" value is invalid at path "${x}": `+$.errorsText(P.validateSchema.errors);if(g.validateSchema==="log")$.logger.error(O);else throw new Error(O)}}return bt.validateKeywordUsage=h,bt}var Ct={},Dc;function LP(){if(Dc)return Ct;Dc=1,Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.extendSubschemaMode=Ct.extendSubschemaData=Ct.getSubschema=void 0;const e=ke(),t=Ne();function r(o,{keyword:s,schemaProp:c,schema:p,schemaPath:l,errSchemaPath:d,topSchemaRef:h}){if(s!==void 0&&p!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const y=o.schema[s];return c===void 0?{schema:y,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:y[c],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(c)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,t.escapeFragment)(c)}`}}if(p!==void 0){if(l===void 0||d===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:p,schemaPath:l,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}Ct.getSubschema=r;function n(o,s,{dataProp:c,dataPropType:p,data:l,dataTypes:d,propertyName:h}){if(l!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=s;if(c!==void 0){const{errorPath:$,dataPathArr:x,opts:P}=s,A=y.let("data",(0,e._)`${s.data}${(0,e.getProperty)(c)}`,!0);g(A),o.errorPath=(0,e.str)`${$}${(0,t.getErrorPath)(c,p,P.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${c}`,o.dataPathArr=[...x,o.parentDataProperty]}if(l!==void 0){const $=l instanceof e.Name?l:y.let("data",l,!0);g($),h!==void 0&&(o.propertyName=h)}d&&(o.dataTypes=d);function g($){o.data=$,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,$]}}Ct.extendSubschemaData=n;function i(o,{jtdDiscriminator:s,jtdMetadata:c,compositeRule:p,createErrors:l,allErrors:d}){p!==void 0&&(o.compositeRule=p),l!==void 0&&(o.createErrors=l),d!==void 0&&(o.allErrors=d),o.jtdDiscriminator=s,o.jtdMetadata=c}return Ct.extendSubschemaMode=i,Ct}var at={},jo={exports:{}},Nc;function UP(){if(Nc)return jo.exports;Nc=1;var e=jo.exports=function(n,i,o){typeof i=="function"&&(o=i,i={}),o=i.cb||o;var s=typeof o=="function"?o:o.pre||function(){},c=o.post||function(){};t(i,s,c,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(n,i,o,s,c,p,l,d,h,y){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,c,p,l,d,h,y);for(var g in s){var $=s[g];if(Array.isArray($)){if(g in e.arrayKeywords)for(var x=0;x<$.length;x++)t(n,i,o,$[x],c+"/"+g+"/"+x,p,c,g,s,x)}else if(g in e.propsKeywords){if($&&typeof $=="object")for(var P in $)t(n,i,o,$[P],c+"/"+g+"/"+r(P),p,c,g,s,P)}else(g in e.keywords||n.allKeys&&!(g in e.skipKeywords))&&t(n,i,o,$,c+"/"+g,p,c,g,s)}o(s,c,p,l,d,h,y)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return jo.exports}var Lc;function no(){if(Lc)return at;Lc=1,Object.defineProperty(at,"__esModule",{value:!0}),at.getSchemaRefs=at.resolveUrl=at.normalizeId=at._getFullPath=at.getFullPath=at.inlineRef=void 0;const e=Ne(),t=Y.requireFastDeepEqual(),r=UP(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(x,P=!0){return typeof x=="boolean"?!0:P===!0?!s(x):P?c(x)<=P:!1}at.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(x){for(const P in x){if(o.has(P))return!0;const A=x[P];if(Array.isArray(A)&&A.some(s)||typeof A=="object"&&s(A))return!0}return!1}function c(x){let P=0;for(const A in x){if(A==="$ref")return 1/0;if(P++,!n.has(A)&&(typeof x[A]=="object"&&(0,e.eachItem)(x[A],S=>P+=c(S)),P===1/0))return 1/0}return P}function p(x,P="",A){A!==!1&&(P=h(P));const S=x.parse(P);return l(x,S)}at.getFullPath=p;function l(x,P){return x.serialize(P).split("#")[0]+"#"}at._getFullPath=l;const d=/#\/?$/;function h(x){return x?x.replace(d,""):""}at.normalizeId=h;function y(x,P,A){return A=h(A),x.resolve(P,A)}at.resolveUrl=y;const g=/^[a-z_][-a-z0-9._]*$/i;function $(x,P){if(typeof x=="boolean")return{};const{schemaId:A,uriResolver:S}=this.opts,v=h(x[A]||P),O={"":v},b=p(S,v,!1),k={},M=new Set;return r(x,{allKeys:!0},(Z,te,de,ee)=>{if(ee===void 0)return;const ie=b+te;let Pe=O[ee];typeof Z[A]=="string"&&(Pe=Ie.call(this,Z[A])),Le.call(this,Z.$anchor),Le.call(this,Z.$dynamicAnchor),O[te]=Pe;function Ie(Se){const qe=this.opts.uriResolver.resolve;if(Se=h(Pe?qe(Pe,Se):Se),M.has(Se))throw G(Se);M.add(Se);let _=this.refs[Se];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?H(Z,_.schema,Se):Se!==h(ie)&&(Se[0]==="#"?(H(Z,k[Se],Se),k[Se]=Z):this.refs[Se]=ie),Se}function Le(Se){if(typeof Se=="string"){if(!g.test(Se))throw new Error(`invalid anchor "${Se}"`);Ie.call(this,`#${Se}`)}}}),k;function H(Z,te,de){if(te!==void 0&&!t(Z,te))throw G(de)}function G(Z){return new Error(`reference "${Z}" resolves to more than one schema`)}}return at.getSchemaRefs=$,at}var Uc;function wr(){if(Uc)return It;Uc=1,Object.defineProperty(It,"__esModule",{value:!0}),It.getData=It.KeywordCxt=It.validateFunctionCode=void 0;const e=MP(),t=Ni(),r=xd(),n=Ni(),i=DP(),o=NP(),s=LP(),c=ke(),p=lt(),l=no(),d=Ne(),h=ro();function y(z){if(b(z)&&(M(z),O(z))){P(z);return}g(z,()=>(0,e.topBoolOrEmptySchema)(z))}It.validateFunctionCode=y;function g({gen:z,validateName:W,schema:J,schemaEnv:oe,opts:me},Ae){me.code.es5?z.func(W,(0,c._)`${p.default.data}, ${p.default.valCxt}`,oe.$async,()=>{z.code((0,c._)`"use strict"; ${S(J,me)}`),x(z,me),z.code(Ae)}):z.func(W,(0,c._)`${p.default.data}, ${$(me)}`,oe.$async,()=>z.code(S(J,me)).code(Ae))}function $(z){return(0,c._)`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${z.dynamicRef?(0,c._)`, ${p.default.dynamicAnchors}={}`:c.nil}, ${p.default.isAllOfVariant} = 0}={}`}function x(z,W){z.if(p.default.valCxt,()=>{z.var(p.default.instancePath,(0,c._)`${p.default.valCxt}.${p.default.instancePath}`),z.var(p.default.parentData,(0,c._)`${p.default.valCxt}.${p.default.parentData}`),z.var(p.default.parentDataProperty,(0,c._)`${p.default.valCxt}.${p.default.parentDataProperty}`),z.var(p.default.rootData,(0,c._)`${p.default.valCxt}.${p.default.rootData}`),z.var(p.default.isAllOfVariant,(0,c._)`${p.default.valCxt}.${p.default.isAllOfVariant}`),W.dynamicRef&&z.var(p.default.dynamicAnchors,(0,c._)`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{z.var(p.default.instancePath,(0,c._)`""`),z.var(p.default.parentData,(0,c._)`undefined`),z.var(p.default.parentDataProperty,(0,c._)`undefined`),z.var(p.default.rootData,p.default.data),z.var(p.default.isAllOfVariant,(0,c._)`0`),W.dynamicRef&&z.var(p.default.dynamicAnchors,(0,c._)`{}`)})}function P(z){const{schema:W,opts:J,gen:oe}=z;g(z,()=>{J.$comment&&W.$comment&&ee(z),Z(z),oe.let(p.default.vErrors,null),oe.let(p.default.errors,0),J.unevaluated&&A(z),H(z),ie(z)})}function A(z){const{gen:W,validateName:J}=z;z.evaluated=W.const("evaluated",(0,c._)`${J}.evaluated`),W.if((0,c._)`${z.evaluated}.dynamicProps`,()=>W.assign((0,c._)`${z.evaluated}.props`,(0,c._)`undefined`)),W.if((0,c._)`${z.evaluated}.dynamicItems`,()=>W.assign((0,c._)`${z.evaluated}.items`,(0,c._)`undefined`))}function S(z,W){const J=typeof z=="object"&&z[W.schemaId];return J&&(W.code.source||W.code.process)?(0,c._)`/*# sourceURL=${J} */`:c.nil}function v(z,W){if(b(z)&&(M(z),O(z))){k(z,W);return}(0,e.boolOrEmptySchema)(z,W)}function O({schema:z,self:W}){if(typeof z=="boolean")return!z;for(const J in z)if(W.RULES.all[J])return!0;return!1}function b(z){return typeof z.schema!="boolean"}function k(z,W){const{schema:J,gen:oe,opts:me}=z;me.$comment&&J.$comment&&ee(z),te(z),de(z);const Ae=oe.const("_errs",p.default.errors);H(z,Ae),oe.var(W,(0,c._)`${Ae} === ${p.default.errors}`)}function M(z){(0,d.checkUnknownRules)(z),G(z)}function H(z,W){if(z.opts.jtd)return Ie(z,[],!1,W);const J=(0,t.getSchemaTypes)(z.schema),oe=(0,t.coerceAndCheckDataType)(z,J);Ie(z,J,!oe,W)}function G(z){const{schema:W,errSchemaPath:J,opts:oe,self:me}=z;W.$ref&&oe.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(W,me.RULES)&&me.logger.warn(`$ref: keywords ignored in schema at path "${J}"`)}function Z(z){const{schema:W,opts:J}=z;W.default!==void 0&&J.useDefaults&&J.strictSchema&&(0,d.checkStrictMode)(z,"default is ignored in the schema root")}function te(z){const W=z.schema[z.opts.schemaId];W&&(z.baseId=(0,l.resolveUrl)(z.opts.uriResolver,z.baseId,W))}function de(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function ee({gen:z,schemaEnv:W,schema:J,errSchemaPath:oe,opts:me}){const Ae=J.$comment;if(me.$comment===!0)z.code((0,c._)`${p.default.self}.logger.log(${Ae})`);else if(typeof me.$comment=="function"){const F=(0,c.str)`${oe}/$comment`,X=z.scopeValue("root",{ref:W.root});z.code((0,c._)`${p.default.self}.opts.$comment(${Ae}, ${F}, ${X}.schema)`)}}function ie(z){const{gen:W,schemaEnv:J,validateName:oe,ValidationError:me,opts:Ae}=z;J.$async?W.if((0,c._)`${p.default.errors} === 0`,()=>W.return(p.default.data),()=>W.throw((0,c._)`new ${me}(${p.default.vErrors})`)):(W.assign((0,c._)`${oe}.errors`,p.default.vErrors),Ae.unevaluated&&Pe(z),W.return((0,c._)`${p.default.errors} === 0`))}function Pe({gen:z,evaluated:W,props:J,items:oe}){J instanceof c.Name&&z.assign((0,c._)`${W}.props`,J),oe instanceof c.Name&&z.assign((0,c._)`${W}.items`,oe)}function Ie(z,W,J,oe){const{gen:me,schema:Ae,data:F,allErrors:X,opts:pe,self:ae}=z,{RULES:ce}=ae;if(Ae.$ref&&(pe.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(Ae,ce))){me.block(()=>V(z,"$ref",ce.all.$ref.definition));return}pe.jtd||Se(z,W),me.block(()=>{for(const ye of ce.rules)he(ye);he(ce.post)});function he(ye){(0,r.shouldUseGroup)(Ae,ye)&&(ye.type?(me.if((0,n.checkDataType)(ye.type,F,pe.strictNumbers)),Le(z,ye),W.length===1&&W[0]===ye.type&&J&&(me.else(),(0,n.reportTypeError)(z)),me.endIf()):Le(z,ye),X||me.if((0,c._)`${p.default.errors} === ${oe||0}`))}}function Le(z,W){const{gen:J,schema:oe,opts:{useDefaults:me}}=z;me&&(0,i.assignDefaults)(z,W.type),J.block(()=>{for(const F of W.rules)((0,r.shouldUseRule)(oe,F)||Ae(oe,F))&&V(z,F.keyword,F.definition,W.type)});function Ae(F,X){return!!(X.keyword==="unevaluatedProperties"&&(F.properties||F.patternProperties)&&!z.isAllOfVariant&&z.opts.defaultUnevaluatedProperties===!1)}}function Se(z,W){z.schemaEnv.meta||!z.opts.strictTypes||(qe(z,W),z.opts.allowUnionTypes||_(z,W),R(z,z.dataTypes))}function qe(z,W){if(W.length){if(!z.dataTypes.length){z.dataTypes=W;return}W.forEach(J=>{q(z.dataTypes,J)||D(z,`type "${J}" not allowed by context "${z.dataTypes.join(",")}"`)}),w(z,W)}}function _(z,W){W.length>1&&!(W.length===2&&W.includes("null"))&&D(z,"use allowUnionTypes to allow union type keyword")}function R(z,W){const J=z.self.RULES.all;for(const oe in J){const me=J[oe];if(typeof me=="object"&&(0,r.shouldUseRule)(z.schema,me)){const{type:Ae}=me.definition;Ae.length&&!Ae.some(F=>C(W,F))&&D(z,`missing type "${Ae.join(",")}" for keyword "${oe}"`)}}}function C(z,W){return z.includes(W)||W==="number"&&z.includes("integer")}function q(z,W){return z.includes(W)||W==="integer"&&z.includes("number")}function w(z,W){const J=[];for(const oe of z.dataTypes)q(W,oe)?J.push(oe):W.includes("integer")&&oe==="number"&&J.push("integer");z.dataTypes=J}function D(z,W){const J=z.schemaEnv.baseId+z.errSchemaPath;W+=` at "${J}" (strictTypes)`,(0,d.checkStrictMode)(z,W,z.opts.strictTypes)}class K{constructor(W,J,oe){if((0,o.validateKeywordUsage)(W,J,oe),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=oe,this.data=W.data,this.schema=W.schema[oe],this.$data=J.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(W,this.schema,oe,this.$data),this.schemaType=J.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=J,this.$data)this.schemaCode=W.gen.const("vSchema",$e(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error(`${oe} value must be ${JSON.stringify(J.schemaType)}`);("code"in J?J.trackErrors:J.errors!==!1)&&(this.errsCount=W.gen.const("_errs",p.default.errors))}result(W,J,oe){this.failResult((0,c.not)(W),J,oe)}failResult(W,J,oe){this.gen.if(W),oe?oe():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(W,J){this.failResult((0,c.not)(W),void 0,J)}fail(W){if(W===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(W){if(!this.$data)return this.fail(W);const{schemaCode:J}=this;this.fail((0,c._)`${J} !== undefined && (${(0,c.or)(this.invalid$data(),W)})`)}error(W,J,oe){if(J){this.setParams(J),this._error(W,oe),this.setParams({});return}this._error(W,oe)}_error(W,J){(W?h.reportExtraError:h.reportError)(this,this.def.error,J)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(W){this.allErrors||this.gen.if(W)}setParams(W,J){J?Object.assign(this.params,W):this.params=W}block$data(W,J,oe=c.nil){this.gen.block(()=>{this.check$data(W,oe),J()})}check$data(W=c.nil,J=c.nil){if(!this.$data)return;const{gen:oe,schemaCode:me,schemaType:Ae,def:F}=this;oe.if((0,c.or)((0,c._)`${me} === undefined`,J)),W!==c.nil&&oe.assign(W,!0),(Ae.length||F.validateSchema)&&(oe.elseIf(this.invalid$data()),this.$dataError(),W!==c.nil&&oe.assign(W,!1)),oe.else()}invalid$data(){const{gen:W,schemaCode:J,schemaType:oe,def:me,it:Ae}=this;return(0,c.or)(F(),X());function F(){if(oe.length){if(!(J instanceof c.Name))throw new Error("ajv implementation error");const pe=Array.isArray(oe)?oe:[oe];return(0,c._)`${(0,n.checkDataTypes)(pe,J,Ae.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function X(){if(me.validateSchema){const pe=W.scopeValue("validate$data",{ref:me.validateSchema});return(0,c._)`!${pe}(${J})`}return c.nil}}subschema(W,J,oe){const me=(0,s.getSubschema)(this.it,W);(0,s.extendSubschemaData)(me,this.it,W),(0,s.extendSubschemaMode)(me,W);const Ae={...this.it,...me,items:void 0,props:void 0,isAllOfVariant:oe};return v(Ae,J),Ae}mergeEvaluated(W,J){const{it:oe,gen:me}=this;oe.opts.unevaluated&&(oe.props!==!0&&W.props!==void 0&&(oe.props=d.mergeEvaluated.props(me,W.props,oe.props,J)),oe.items!==!0&&W.items!==void 0&&(oe.items=d.mergeEvaluated.items(me,W.items,oe.items,J)))}mergeValidEvaluated(W,J){const{it:oe,gen:me}=this;if(oe.opts.unevaluated&&(oe.props!==!0||oe.items!==!0))return me.if(J,()=>this.mergeEvaluated(W,c.Name)),!0}}It.KeywordCxt=K;function V(z,W,J,oe){const me=new K(z,J,W);"code"in J?J.code(me,oe):me.$data&&J.validate?(0,o.funcKeywordCode)(me,J):"macro"in J?(0,o.macroKeywordCode)(me,J):(J.compile||J.validate)&&(0,o.funcKeywordCode)(me,J)}const re=/^\/(?:[^~]|~0|~1)*$/,we=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $e(z,{dataLevel:W,dataNames:J,dataPathArr:oe}){let me,Ae;if(z==="")return p.default.rootData;if(z[0]==="/"){if(!re.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);me=z,Ae=p.default.rootData}else{const ae=we.exec(z);if(!ae)throw new Error(`Invalid JSON-pointer: ${z}`);const ce=+ae[1];if(me=ae[2],me==="#"){if(ce>=W)throw new Error(pe("property/index",ce));return oe[W-ce]}if(ce>W)throw new Error(pe("data",ce));if(Ae=J[W-ce],!me)return Ae}let F=Ae;const X=me.split("/");for(const ae of X)ae&&(Ae=(0,c._)`${Ae}${(0,c.getProperty)((0,d.unescapeJsonPointer)(ae))}`,F=(0,c._)`${F} && ${Ae}`);return F;function pe(ae,ce){return`Cannot access ${ae} ${ce} levels up, current level is ${W}`}}return It.getData=$e,It}var bn={},Fc;function Xr(){if(Fc)return bn;Fc=1,Object.defineProperty(bn,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return bn.default=e,bn}var vn={},zc;function xr(){if(zc)return vn;zc=1,Object.defineProperty(vn,"__esModule",{value:!0});const e=no();class t extends Error{constructor(n,i,o,s){super(s||`can't resolve reference ${o} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return vn.default=t,vn}var dt={},Bc;function io(){if(Bc)return dt;Bc=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.resolveSchema=dt.getCompilingSchema=dt.resolveRef=dt.compileSchema=dt.SchemaEnv=void 0;const e=ke(),t=Xr(),r=lt(),n=no(),i=Ne(),o=wr();class s{constructor(A){var S;this.refs={},this.dynamicAnchors={};let v;typeof A.schema=="object"&&(v=A.schema),this.schema=A.schema,this.schemaId=A.schemaId,this.root=A.root||this,this.baseId=(S=A.baseId)!==null&&S!==void 0?S:(0,n.normalizeId)(v?.[A.schemaId||"$id"]),this.schemaPath=A.schemaPath,this.localRefs=A.localRefs,this.meta=A.meta,this.$async=v?.$async,this.refs={}}}dt.SchemaEnv=s;function c(P){const A=d.call(this,P);if(A)return A;const S=(0,n.getFullPath)(this.opts.uriResolver,P.root.baseId),{es5:v,lines:O}=this.opts.code,{ownProperties:b}=this.opts,k=new e.CodeGen(this.scope,{es5:v,lines:O,ownProperties:b});let M;P.$async&&(M=k.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const H=k.scopeName("validate");P.validateName=H;const G={gen:k,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:k.scopeValue("schema",this.opts.code.source===!0?{ref:P.schema,code:(0,e.stringify)(P.schema)}:{ref:P.schema}),validateName:H,ValidationError:M,schema:P.schema,schemaEnv:P,rootId:S,baseId:P.baseId||S,schemaPath:e.nil,errSchemaPath:P.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let Z;try{this._compilations.add(P),(0,o.validateFunctionCode)(G),k.optimize(this.opts.code.optimize);const te=k.toString();Z=`const visitedNodesForRef = new WeakMap(); ${k.scopeRefs(r.default.scope)}return ${te}`,this.opts.code.process&&(Z=this.opts.code.process(Z,P));const ee=new Function(`${r.default.self}`,`${r.default.scope}`,Z)(this,this.scope.get());if(this.scope.value(H,{ref:ee}),ee.errors=null,ee.schema=P.schema,ee.schemaEnv=P,P.$async&&(ee.$async=!0),this.opts.code.source===!0&&(ee.source={validateName:H,validateCode:te,scopeValues:k._values}),this.opts.unevaluated){const{props:ie,items:Pe}=G;ee.evaluated={props:ie instanceof e.Name?void 0:ie,items:Pe instanceof e.Name?void 0:Pe,dynamicProps:ie instanceof e.Name,dynamicItems:Pe instanceof e.Name},ee.source&&(ee.source.evaluated=(0,e.stringify)(ee.evaluated))}return P.validate=ee,P}catch(te){throw delete P.validate,delete P.validateName,Z&&this.logger.error("Error compiling schema, function code:",Z),te}finally{this._compilations.delete(P)}}dt.compileSchema=c;function p(P,A,S){var v;const O=(0,n.resolveUrl)(this.opts.uriResolver,A,S),b=P.refs[O];if(b)return b;let k=y.call(this,P,O);if(k===void 0){const M=(v=P.localRefs)===null||v===void 0?void 0:v[O],{schemaId:H}=this.opts;M&&(k=new s({schema:M,schemaId:H,root:P,baseId:A}))}if(k===void 0&&this.opts.loadSchemaSync){const M=this.opts.loadSchemaSync(A,S,O);M&&!(this.refs[O]||this.schemas[O])&&(this.addSchema(M,O,void 0),k=y.call(this,P,O))}if(k!==void 0)return P.refs[O]=l.call(this,k)}dt.resolveRef=p;function l(P){return(0,n.inlineRef)(P.schema,this.opts.inlineRefs)?P.schema:P.validate?P:c.call(this,P)}function d(P){for(const A of this._compilations)if(h(A,P))return A}dt.getCompilingSchema=d;function h(P,A){return P.schema===A.schema&&P.root===A.root&&P.baseId===A.baseId}function y(P,A){let S;for(;typeof(S=this.refs[A])=="string";)A=S;return S||this.schemas[A]||g.call(this,P,A)}function g(P,A){const S=this.opts.uriResolver.parse(A),v=(0,n._getFullPath)(this.opts.uriResolver,S);let O=(0,n.getFullPath)(this.opts.uriResolver,P.baseId,void 0);if(Object.keys(P.schema).length>0&&v===O)return x.call(this,S,P);const b=(0,n.normalizeId)(v),k=this.refs[b]||this.schemas[b];if(typeof k=="string"){const M=g.call(this,P,k);return typeof M?.schema!="object"?void 0:x.call(this,S,M)}if(typeof k?.schema=="object"){if(k.validate||c.call(this,k),b===(0,n.normalizeId)(A)){const{schema:M}=k,{schemaId:H}=this.opts,G=M[H];return G&&(O=(0,n.resolveUrl)(this.opts.uriResolver,O,G)),new s({schema:M,schemaId:H,root:P,baseId:O})}return x.call(this,S,k)}}dt.resolveSchema=g;const $=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function x(P,{baseId:A,schema:S,root:v}){var O;if(((O=P.fragment)===null||O===void 0?void 0:O[0])!=="/")return;for(const M of P.fragment.slice(1).split("/")){if(typeof S=="boolean")return;const H=S[(0,i.unescapeFragment)(M)];if(H===void 0)return;S=H;const G=typeof S=="object"&&S[this.opts.schemaId];!$.has(M)&&G&&(A=(0,n.resolveUrl)(this.opts.uriResolver,A,G))}let b;if(typeof S!="boolean"&&S.$ref&&!(0,i.schemaHasRulesButRef)(S,this.RULES)){const M=(0,n.resolveUrl)(this.opts.uriResolver,A,S.$ref);b=g.call(this,v,M)}const{schemaId:k}=this.opts;if(b=b||new s({schema:S,schemaId:k,root:v,baseId:A}),b.schema!==b.root.schema)return b}return dt}const FP="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",zP="Meta-schema for $data reference (JSON AnySchema extension proposal)",BP="object",VP=["$data"],HP={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},KP=!1,WP={$id:FP,description:zP,type:BP,required:VP,properties:HP,additionalProperties:KP};var wn={},qr={exports:{}},Mo,Vc;function Pd(){if(Vc)return Mo;Vc=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=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),r=RegExp.prototype.test.bind(/^\d*$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),s=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),c=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),p=new Array(256);{const _="0123456789ABCDEF";for(let R=0;R<256;R++)p[R]="%"+_[R>>4]+_[R&15]}function l(_){return _<2048?p[192|_>>6]+p[128|_&63]:_<65536?p[224|_>>12]+p[128|_>>6&63]+p[128|_&63]:p[240|_>>18]+p[128|_>>12&63]+p[128|_>>6&63]+p[128|_&63]}function d(_){let R="",C=0,q=0;for(q=0;q<_.length;q++)if(C=_[q].charCodeAt(0),C!==48){if(!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";R+=_[q];break}for(q+=1;q<_.length;q++){if(C=_[q].charCodeAt(0),!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";R+=_[q]}return R}const h=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),y=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),g=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),$=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function x(_){if(_.length===0)return!1;for(let R=0;R<_.length;R++)if(!g(_[R])){if(_[R]==="%"&&R+2<_.length&&n(_.slice(R+1,R+3))){R+=2;continue}return!1}return!0}function P(_){let R=-1,C=0,q=-1,w=0;for(let V=0;V<_.length;V++)_[V]==="0"?(q===-1&&(q=V),w++,w>C&&(C=w,R=q)):(q=-1,w=0);if(C<2)return _.join(":");const D=_.slice(0,R).join(":"),K=_.slice(R+C).join(":");return D+"::"+K}function A(_){const R=_.indexOf("::");if(R!==-1&&_.indexOf("::",R+1)!==-1)return;const C=R===-1?_.split(":"):_.slice(0,R).split(":"),q=R===-1?[]:_.slice(R+2).split(":");R!==-1&&(C.length===1&&C[0]===""&&(C.length=0),q.length===1&&q[0]===""&&(q.length=0));const w=C.concat(q);let D=0;for(let V=0;V<w.length;V++){const re=w[V];if(re==="")return;if(re.indexOf(".")!==-1){if(V!==w.length-1||R!==-1&&q.length===0||!t(re))return;D+=2;continue}if(!h(re))return;w[V]=parseInt(re,16).toString(16),D++}if(R===-1)return D!==8?void 0:P(w);if(D>=8)return;const K=w.slice(0,C.length);for(let V=D;V<8;V++)K.push("0");for(let V=C.length;V<w.length;V++)K.push(w[V]);return P(K)}function S(_){const R=_[0]==="["&&_[_.length-1]==="]";if((_[0]==="["||_[_.length-1]==="]")&&!R)return{host:_,isIPV6:!1,error:!0};let q=R?_.slice(1,-1):_;if(R&&y(q))return q=q.toLowerCase(),{host:`[${q}]`,escapedHost:q,isIPV6:!1,isIPVFuture:!0};if(v(q,":")<2)return{host:_,isIPV6:!1,error:R};let w="";const D=q.indexOf("%");if(D!==-1){const V=q.slice(D,D+3).toLowerCase()==="%25"?3:1;if(w=q.slice(D+V),!x(w))return{host:_,isIPV6:!1,error:!0};q=q.slice(0,D)}const K=A(q);return K===void 0?{host:_,isIPV6:!1,error:!0}:{host:K+(w?"%"+w:""),escapedHost:K+(w?"%25"+w:""),isIPV6:!0}}function v(_,R){let C=0;for(let q=0;q<_.length;q++)_[q]===R&&C++;return C}function O(_){let R=_;const C=[];let q=-1,w=0;for(;w=R.length;){if(w===1){if(R===".")break;if(R==="/"){C.push("/");break}else{C.push(R);break}}else if(w===2){if(R[0]==="."){if(R[1]===".")break;if(R[1]==="/"){R=R.slice(2);continue}}else if(R[0]==="/"&&(R[1]==="."||R[1]==="/")){C.push("/");break}}else if(w===3&&R==="/.."){C.length!==0&&C.pop(),C.push("/");break}if(R[0]==="."){if(R[1]==="."){if(R[2]==="/"){R=R.slice(3);continue}}else if(R[1]==="/"){R=R.slice(2);continue}}else if(R[0]==="/"&&R[1]==="."){if(R[2]==="/"){R=R.slice(2);continue}else if(R[2]==="."&&R[3]==="/"){R=R.slice(3),C.length!==0&&C.pop();continue}}if((q=R.indexOf("/",1))===-1){C.push(R);break}else C.push(R.slice(0,q)),R=R.slice(q)}return C.join("")}const b={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,M=/[@/?#]/g;function H(_,R){const C=R?M:k;return C.lastIndex=0,_.replace(C,q=>b[q])}function G(_,R=!1){if(_.indexOf("%")===-1)return _;let C="";for(let q=0;q<_.length;q++){if(_[q]==="%"&&q+2<_.length){const w=_.slice(q+1,q+3);if(n(w)){const D=w.toUpperCase(),K=String.fromCharCode(parseInt(D,16));R&&i(K)?C+=K:C+="%"+D,q+=2;continue}}C+=_[q]}return C}function Z(_){let R="";for(let C=0;C<_.length;C++){const q=_[C];if(q==="%"&&C+2<_.length){const w=_.slice(C+1,C+3);if(n(w)){const D=w.toUpperCase(),K=String.fromCharCode(parseInt(D,16));K!=="."&&i(K)?R+=K:R+="%"+D,C+=2;continue}}if(o(q))R+=q;else{const w=_.charCodeAt(C);if(w<128)R+=Ie(w)?q:p[w];else if(w<55296||w>57343)R+=l(w);else if(w<=56319&&C+1<_.length){const D=_.charCodeAt(C+1);D>=56320&&D<=57343?(R+=l(65536+(w-55296<<10)+(D-56320)),C++):R+=l(65533)}else R+=l(65533)}}return R}function te(_,R=!1){let C="",q=R&&_[0]!=="/";for(let w=0;w<_.length;w++){const D=_[w];if(D==="%"&&w+2<_.length){const K=_.slice(w+1,w+3);if(n(K)){C+="%"+K.toUpperCase(),w+=2;continue}}if(D==="/"&&(q=!1),o(D)&&(D!==":"||!q))C+=D;else{const K=_.charCodeAt(w);if(K<128)C+=p[K];else if(K<55296||K>57343)C+=l(K);else if(K<=56319&&w+1<_.length){const V=_.charCodeAt(w+1);V>=56320&&V<=57343?(C+=l(65536+(K-55296<<10)+(V-56320)),w++):C+=l(65533)}else C+=l(65533)}}return C}function de(_,R){let C="";for(let q=0;q<_.length;q++){const w=_[q];if(w==="%"&&q+2<_.length){const D=_.slice(q+1,q+3);if(n(D)){C+="%"+D.toUpperCase(),q+=2;continue}}if(R(w))C+=w;else{const D=_.charCodeAt(q);if(D<128)C+=p[D];else if(D<55296||D>57343)C+=l(D);else if(D<=56319&&q+1<_.length){const K=_.charCodeAt(q+1);K>=56320&&K<=57343?(C+=l(65536+(D-55296<<10)+(K-56320)),q++):C+=l(65533)}else C+=l(65533)}}return C}function ee(_){return de(_,c)}function ie(_){return de(_,s)}function Pe(_){return de(_,s)}function Ie(_){return _>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||_===42||_===43||_===45||_===46||_===47||_===64||_===95}function Le(_){let R="";for(let C=0;C<_.length;C++){const q=_[C];if(q==="%"&&C+2<_.length){const w=_.slice(C+1,C+3);if(n(w)){const D=w.toUpperCase(),K=String.fromCharCode(parseInt(D,16));i(K)?R+=K:R+="%"+D,C+=2;continue}}if(s(q))R+=q;else{const w=_.charCodeAt(C);if(w<128)R+=Ie(w)?q:p[w];else if(w<55296||w>57343)R+=l(w);else if(w<=56319&&C+1<_.length){const D=_.charCodeAt(C+1);D>=56320&&D<=57343?(R+=l(65536+(w-55296<<10)+(D-56320)),C++):R+=l(65533)}else R+=l(65533)}}return R}function Se(_){let R="";for(let C=0;C<_.length;C++){if(_[C]==="%"&&C+2<_.length){const q=_.slice(C+1,C+3);if(n(q)){R+="%"+q.toUpperCase(),C+=2;continue}}R+=escape(_[C])}return R}function qe(_){const R=[];if(_.userinfo!==void 0&&(R.push(ee(_.userinfo)),R.push("@")),_.host!==void 0){let C=_.host;if(!t(C)){let q=S(C);q.isIPV6!==!0&&q.isIPVFuture!==!0&&(C=G(C,!0),q=S(C)),q.isIPV6===!0||q.isIPVFuture===!0?C=`[${q.escapedHost}]`:C=H(C,!1)}R.push(C)}if(typeof _.port=="number"||typeof _.port=="string"){const C=String(_.port);if(!r(C))throw new TypeError("URI port is malformed.");R.push(":"),R.push(C)}return R.length?R.join(""):void 0}return Mo={nonSimpleDomain:$,recomposeAuthority:qe,reescapeHostDelimiters:H,normalizePercentEncoding:G,normalizePathEncoding:Z,serializePathEncoding:te,normalizeQueryFragmentEncoding:Le,encodeUserinfo:ee,encodeQuery:ie,encodeFragment:Pe,escapePreservingEscapes:Se,removeDotSegments:O,isIPv4:t,isUUID:e,normalizeIPv6:S,stringArrayToHexStripped:d},Mo}var Do,Hc;function QP(){if(Hc)return Do;Hc=1;const{isUUID:e}=Pd(),t=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(b){return r.indexOf(b)!==-1}function i(b){return b.secure===!0?!0:b.secure===!1?!1:b.scheme?b.scheme.length===3&&(b.scheme[0]==="w"||b.scheme[0]==="W")&&(b.scheme[1]==="s"||b.scheme[1]==="S")&&(b.scheme[2]==="s"||b.scheme[2]==="S"):!1}function o(b){return b.host||(b.error=b.error||"HTTP URIs must have a host."),b}function s(b){const k=String(b.scheme).toLowerCase()==="https";return(b.port===(k?443:80)||b.port==="")&&(b.port=void 0),b.path||(b.path="/"),b}function c(b){return b.secure=i(b),b.resourceName=(b.path||"/")+(b.query?"?"+b.query:""),b.path=void 0,b.query=void 0,b}function p(b){if((b.port===(i(b)?443:80)||b.port==="")&&(b.port=void 0),typeof b.secure=="boolean"&&(b.scheme=b.secure?"wss":"ws",b.secure=void 0),b.resourceName){const k=b.resourceName.indexOf("?"),M=k===-1?b.resourceName:b.resourceName.slice(0,k);b.path=M&&M!=="/"?M:void 0,b.query=k===-1?void 0:b.resourceName.slice(k+1),b.resourceName=void 0}return b.fragment=void 0,b}function l(b,k){if(!b.path)return b.error="URN can not be parsed",b;const M=b.path.match(t);if(M&&M[0]===b.path){const H=k.scheme||b.scheme||"urn";b.nid=M[1].toLowerCase(),b.nss=M[2];const G=`${H}:${k.nid||b.nid}`,Z=O(G);b.path=void 0,Z&&(b=Z.parse(b,k))}else b.error=b.error||"URN can not be parsed.";return b}function d(b,k){if(b.nid===void 0)throw new Error("URN without nid cannot be serialized");const M=k.scheme||b.scheme||"urn",H=b.nid.toLowerCase(),G=`${M}:${k.nid||H}`,Z=O(G);Z&&(b=Z.serialize(b,k));const te=b,de=b.nss;return te.path=`${H||k.nid}:${de}`,k.skipEscape=!0,te}function h(b,k){const M=b;return M.uuid=M.nss,M.nss=void 0,!k.tolerant&&(!M.uuid||!e(M.uuid))&&(M.error=M.error||"UUID is not valid."),M}function y(b){const k=b;return k.nss=(b.uuid||"").toLowerCase(),k}const g={scheme:"http",domainHost:!0,parse:o,serialize:s},$={scheme:"https",domainHost:g.domainHost,parse:o,serialize:s},x={scheme:"ws",domainHost:!0,parse:c,serialize:p},P={scheme:"wss",domainHost:x.domainHost,parse:x.parse,serialize:x.serialize},v={http:g,https:$,ws:x,wss:P,urn:{scheme:"urn",parse:l,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:y,skipNormalize:!0}};Object.setPrototypeOf(v,null);function O(b){return b&&(v[b]||v[b.toLowerCase()])||void 0}return Do={wsIsSecure:i,SCHEMES:v,isValidSchemeName:n,getSchemeHandler:O},Do}var Kc;function GP(){if(Kc)return qr.exports;Kc=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,serializePathEncoding:o,normalizeQueryFragmentEncoding:s,encodeQuery:c,encodeFragment:p,reescapeHostDelimiters:l,isIPv4:d,nonSimpleDomain:h}=Pd(),{SCHEMES:y,getSchemeHandler:g}=QP(),$=/^[A-Za-z][A-Za-z0-9+.-]*$/u,x="URI scheme is malformed.";function P(_){const R=unescape(String(_));if(!$.test(R))throw new TypeError(x);return R}function A(_,R){return typeof _=="string"?_=Ie(_,R):typeof _=="object"&&(_=Pe(b(_,R),R)),_}function S(_,R,C){const q=C?Object.assign({scheme:"null"},C):{scheme:"null"},{parsed:w,malformedAuthorityOrPort:D,malformedPercentEncoding:K,malformedSchemeSpecific:V,malformedHost:re,malformedScheme:we}=ie(_,q),{parsed:$e,malformedAuthorityOrPort:z,malformedPercentEncoding:W,malformedSchemeSpecific:J,malformedHost:oe,malformedScheme:me}=ie(R,q);if(D||z||K||W||V||J||re||oe||we||me)throw new Error(w.error||$e.error||"URI is malformed.");const Ae=v(w,$e,q,!0),F=g(C&&C.scheme||Ae.scheme),X=Ae.host,pe=X!==void 0&&X!==""&&(d(X)||e(X).isIPV6);ee(Ae,C||{},F,pe);const ae=X&&X.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(X);if(Ae.error&&!ae)throw new Error(Ae.error);return q.skipEscape=!0,b(Ae,q)}function v(_,R,C,q){const w={};return q||(_=Pe(b(_,C),C),R=Pe(b(R,C),C)),C=C||{},!C.tolerant&&R.scheme?(w.scheme=R.scheme,w.userinfo=R.userinfo,w.host=R.host,w.port=R.port,w.path=t(R.path||""),w.query=R.query):(R.userinfo!==void 0||R.host!==void 0||R.port!==void 0?(w.userinfo=R.userinfo,w.host=R.host,w.port=R.port,w.path=t(R.path||""),w.query=R.query):(R.path?(R.path[0]==="/"?w.path=t(R.path):((_.userinfo!==void 0||_.host!==void 0||_.port!==void 0)&&!_.path?w.path="/"+R.path:_.path?w.path=_.path.slice(0,_.path.lastIndexOf("/")+1)+R.path:w.path=R.path,w.path=t(w.path)),w.query=R.query):(w.path=_.path,R.query!==void 0?w.query=R.query:w.query=_.query),w.userinfo=_.userinfo,w.host=_.host,w.port=_.port),w.scheme=_.scheme),w.fragment=R.fragment,w}function O(_,R,C){const q=Se(_,C),w=Se(R,C);return q!==void 0&&w!==void 0&&q===w}function b(_,R){const C={host:_.host,scheme:_.scheme,userinfo:_.userinfo,port:_.port,path:_.path,query:_.query,nid:_.nid,nss:_.nss,uuid:_.uuid,fragment:_.fragment,reference:_.reference,resourceName:_.resourceName,secure:_.secure,error:""},q=Object.assign({},R),w=[];C.scheme&&(C.scheme=P(C.scheme));const D=g(q.scheme||C.scheme);D&&D.serialize&&D.serialize(C,q);const K=C.userinfo!==void 0||C.host!==void 0||C.port!==void 0,V=!q.skipEscape&&C.scheme===void 0&&!K;C.path!==void 0&&(q.skipEscape?C.path=n(C.path):C.path=o(C.path,V)),q.reference!=="suffix"&&C.scheme&&(C.scheme=P(C.scheme),w.push(C.scheme,":"));const re=r(C);if(re!==void 0&&(q.reference!=="suffix"&&w.push("//"),w.push(re),C.path&&C.path[0]!=="/"&&w.push("/")),C.path!==void 0){let we=C.path;!q.absolutePath&&(!D||!D.absolutePath)&&(we=t(we)),V&&(we=o(we,!0)),re===void 0&&we[0]==="/"&&we[1]==="/"&&(we="/%2F"+we.slice(2)),w.push(we)}return C.query!==void 0&&w.push("?",c(C.query)),C.fragment!==void 0&&w.push("#",p(C.fragment)),w.join("")}const k=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,M=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,H=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function G(_,R){if(R[2]!==void 0&&_.path&&_.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof _.port=="number"&&(_.port<0||_.port>65535))return"URI port is malformed."}function Z(_){if(_===void 0)return!1;let R=_.indexOf("%");for(;R!==-1;){if(R+2>=_.length||!/^[\da-f]{2}$/iu.test(_.slice(R+1,R+3)))return!0;R=_.indexOf("%",R+3)}return!1}function te(_){return _[0]==="["&&_[_.length-1]==="]"}function de(_){const R=_[4];return Z(_[3])||R!==void 0&&!te(R)&&Z(R)||Z(_[6])||Z(_[7])||Z(_[8])}function ee(_,R,C,q){if(!R.unicodeSupport&&(!C||!C.unicodeSupport)&&_.host&&!te(_.host)&&(R.domainHost||C&&C.domainHost)&&q===!1&&h(_.host))try{_.host=new URL("http://"+_.host).hostname}catch(w){return _.error=_.error||"Host's domain name can not be converted to ASCII: "+w,!0}return!1}function ie(_,R){const C=Object.assign({},R),q={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let w=!1,D=!1,K=!1,V=!1,re=!1,we=!1,$e=!1;C.reference==="suffix"&&(C.scheme?_=C.scheme+":"+_:_="//"+_);const z=_.match(M);z!==null&&z[1].indexOf("\\")!==-1&&(q.error="URI authority must not contain a literal backslash.",w=!0);const W=_.match(H);if(W!==null){const oe=W[1],me=oe.replace(/[\t\n\r]/g,"");me.length>=2&&(me.slice(0,2)!=="//"?(q.error=q.error||"URI authority must not contain a literal backslash.",w=!0):oe.length!==me.length&&(q.error=q.error||"URI authority introducer must not contain whitespace.",w=!0))}const J=_.match(k);if(J){if(q.scheme=J[1],q.userinfo=J[3],q.host=J[4],q.port=parseInt(J[5],10),q.path=J[6]||"",q.query=J[7],q.fragment=J[8],q.scheme!==void 0){const Ae=unescape(q.scheme);$.test(Ae)?q.scheme=Ae.toLowerCase():(q.error=q.error||x,we=!0)}D=de(J),D&&(q.error=q.error||"URI contains malformed percent-encoding."),isNaN(q.port)&&(q.port=J[5]);const oe=G(q,J);if(oe!==void 0&&(q.error=q.error||oe,w=!0),q.host)if(d(q.host)===!1){const F=te(q.host),X=q.host.indexOf("[")!==-1||q.host.indexOf("]")!==-1,pe=e(q.host);$e=pe.isIPV6||pe.isIPVFuture===!0,re=X&&(!F||pe.error===!0),q.host=$e?pe.host:pe.host.toLowerCase(),re&&(q.error=q.error||"URI host is malformed.",w=!0)}else $e=!0;q.scheme===void 0&&q.userinfo===void 0&&q.host===void 0&&q.port===void 0&&q.query===void 0&&!q.path?q.reference="same-document":q.scheme===void 0?q.reference="relative":q.fragment===void 0?q.reference="absolute":q.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==q.reference&&(q.error=q.error||"URI is not a "+C.reference+" reference.");const me=g(C.scheme||q.scheme);if(re||(V=ee(q,C,me,$e)),_.indexOf("%")!==-1&&q.host!==void 0&&!re){let Ae=$e?q.host:n(q.host,!0);$e||(Ae=n(Ae.toLowerCase())),q.host=l(Ae,$e)}(!me||me&&!me.skipNormalize)&&(q.path&&(q.path=i(q.path)),q.query&&(q.query=s(q.query)),q.fragment&&(q.fragment=s(q.fragment))),me&&me.parse&&(me.parse(q,C),me===y.urn&&q.nid===void 0&&(K=!0))}else q.error=q.error||"URI can not be parsed.";return{parsed:q,malformedAuthorityOrPort:w,malformedPercentEncoding:D,malformedSchemeSpecific:K,malformedHost:V,malformedScheme:we}}function Pe(_,R){return ie(_,R).parsed}function Ie(_,R){return Le(_,R).normalized}function Le(_,R){const{parsed:C,malformedAuthorityOrPort:q,malformedPercentEncoding:w,malformedSchemeSpecific:D,malformedHost:K,malformedScheme:V}=ie(_,R);return{normalized:q||w||D||K||V?_:b(C,R),malformedAuthorityOrPort:q,malformedPercentEncoding:w,malformedSchemeSpecific:D,malformedHost:K,malformedScheme:V}}function Se(_,R){if(typeof _!="string"&&typeof _!="object")return;let C;try{C=typeof _=="string"?_:b(_,R)}catch{return}const{normalized:q,malformedAuthorityOrPort:w,malformedPercentEncoding:D,malformedSchemeSpecific:K,malformedHost:V,malformedScheme:re}=Le(C,R);return w||D||K||V||re?void 0:q}const qe={SCHEMES:y,normalize:A,resolve:S,resolveComponent:v,equal:O,serialize:b,parse:Pe};return qr.exports=qe,qr.exports.default=qe,qr.exports.fastUri=qe,qr.exports}var Wc;function YP(){if(Wc)return wn;Wc=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=GP();return e.code='require("ajv/dist/runtime/uri").default',wn.default=e,wn}var Qc;function aa(){return Qc||(Qc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=wr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ke();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Xr(),i=xr(),o=wd(),s=io(),c=ke(),p=no(),l=Ni(),d=Ne(),h=WP,y=YP(),g=(_,R)=>new RegExp(_,R);g.code="new RegExp";const $=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],x=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),P={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."},A={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},S=200;function v(_){var R,C,q,w,D,K,V,re,we,$e,z,W,J,oe,me,Ae,F,X,pe,ae,ce,he,ye,ge,Ee;const Qe=_.strict,a=(R=_.code)===null||R===void 0?void 0:R.optimize,u=a===!0||a===void 0?1:a||0,f=(q=(C=_.code)===null||C===void 0?void 0:C.regExp)!==null&&q!==void 0?q:g,T=(w=_.uriResolver)!==null&&w!==void 0?w:y.default;return{strictSchema:(K=(D=_.strictSchema)!==null&&D!==void 0?D:Qe)!==null&&K!==void 0?K:!0,strictNumbers:(re=(V=_.strictNumbers)!==null&&V!==void 0?V:Qe)!==null&&re!==void 0?re:!0,strictTypes:($e=(we=_.strictTypes)!==null&&we!==void 0?we:Qe)!==null&&$e!==void 0?$e:"log",strictTuples:(W=(z=_.strictTuples)!==null&&z!==void 0?z:Qe)!==null&&W!==void 0?W:"log",strictRequired:(oe=(J=_.strictRequired)!==null&&J!==void 0?J:Qe)!==null&&oe!==void 0?oe:!1,code:_.code?{..._.code,optimize:u,regExp:f}:{optimize:u,regExp:f},loopRequired:(me=_.loopRequired)!==null&&me!==void 0?me:S,loopEnum:(Ae=_.loopEnum)!==null&&Ae!==void 0?Ae:S,meta:(F=_.meta)!==null&&F!==void 0?F:!0,messages:(X=_.messages)!==null&&X!==void 0?X:!0,inlineRefs:(pe=_.inlineRefs)!==null&&pe!==void 0?pe:!0,schemaId:(ae=_.schemaId)!==null&&ae!==void 0?ae:"$id",addUsedSchema:(ce=_.addUsedSchema)!==null&&ce!==void 0?ce:!0,validateSchema:(he=_.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(ye=_.validateFormats)!==null&&ye!==void 0?ye:!0,unicodeRegExp:(ge=_.unicodeRegExp)!==null&&ge!==void 0?ge:!0,int32range:(Ee=_.int32range)!==null&&Ee!==void 0?Ee:!0,uriResolver:T}}class O{constructor(R={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,R=this.opts={...R,...v(R)};const{es5:C,lines:q}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:x,es5:C,lines:q}),this.logger=de(R.logger);const w=R.validateFormats;R.validateFormats=!1,this.RULES=(0,o.getRules)(),b.call(this,P,R,"NOT SUPPORTED"),b.call(this,A,R,"DEPRECATED","warn"),this._metaOpts=Z.call(this),R.formats&&H.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),R.keywords&&G.call(this,R.keywords),typeof R.meta=="object"&&this.addMetaSchema(R.meta),M.call(this),R.validateFormats=w}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:C,schemaId:q}=this.opts;let w=h;q==="id"&&(w={...h},w.id=w.$id,delete w.$id),C&&R&&this.addMetaSchema(w,w[q],!1)}defaultMeta(){const{meta:R,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[C]||R:void 0}setDefaultUnevaluatedProperties(R){this.opts.defaultUnevaluatedProperties=R}validate(R,C){let q;if(typeof R=="string"){if(q=this.getSchema(R),!q)throw new Error(`no schema with key or ref "${R}"`)}else q=this.compile(R);const w=q(C);return"$async"in q||(this.errors=q.errors),w}compile(R,C){const q=this._addSchema(R,C);return q.validate||this._compileSchemaEnv(q)}compileAsync(R,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return w.call(this,R,C);async function w($e,z){await D.call(this,$e.$schema);const W=this._addSchema($e,z);return W.validate||K.call(this,W)}async function D($e){$e&&!this.getSchema($e)&&await w.call(this,{$ref:$e},!0)}async function K($e){try{return this._compileSchemaEnv($e)}catch(z){if(!(z instanceof i.default))throw z;return V.call(this,z),await re.call(this,z.missingSchema),K.call(this,$e)}}function V({missingSchema:$e,missingRef:z}){if(this.refs[$e])throw new Error(`AnySchema ${$e} is loaded but ${z} cannot be resolved`)}async function re($e){const z=await we.call(this,$e);this.refs[$e]||await D.call(this,z.$schema),this.refs[$e]||this.addSchema(z,$e,C)}async function we($e){const z=this._loading[$e];if(z)return z;try{return await(this._loading[$e]=q($e))}finally{delete this._loading[$e]}}}addSchema(R,C,q,w=this.opts.validateSchema){if(Array.isArray(R)){for(const K of R)this.addSchema(K,void 0,q,w);return this}let D;if(typeof R=="object"){const{schemaId:K}=this.opts;if(D=R[K],D!==void 0&&typeof D!="string")throw new Error(`schema ${K} must be string`)}return C=(0,p.normalizeId)(C||D),this._checkUnique(C),this.schemas[C]=this._addSchema(R,q,C,w,!0),this}addMetaSchema(R,C,q=this.opts.validateSchema){return this.addSchema(R,C,!0,q),this}validateSchema(R,C){if(typeof R=="boolean")return!0;let q;if(q=R.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const w=this.validate(q,R);if(!w&&C){const D="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(D);else throw new Error(D)}return w}getSchema(R){let C;for(;typeof(C=k.call(this,R))=="string";)R=C;if(C===void 0){const{schemaId:q}=this.opts,w=new s.SchemaEnv({schema:{},schemaId:q});if(C=s.resolveSchema.call(this,w,R),!C)return;this.refs[R]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(R){if(R instanceof RegExp)return this._removeAllSchemas(this.schemas,R),this._removeAllSchemas(this.refs,R),this;switch(typeof R){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=k.call(this,R);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[R],delete this.refs[R],this}case"object":{const C=R;this._cache.delete(C);let q=R[this.opts.schemaId];return q&&(q=(0,p.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const C of R)this.addKeyword(C);return this}addKeyword(R,C){let q;if(typeof R=="string")q=R,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=q);else if(typeof R=="object"&&C===void 0){if(C=R,q=C.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(ie.call(this,q,C),!C)return(0,d.eachItem)(q,D=>Pe.call(this,D)),this;Le.call(this,C);const w={...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)};return(0,d.eachItem)(q,w.type.length===0?D=>Pe.call(this,D,w):D=>w.type.forEach(K=>Pe.call(this,D,w,K))),this}getKeyword(R){const C=this.RULES.all[R];return typeof C=="object"?C.definition:!!C}removeKeyword(R){const{RULES:C}=this;delete C.keywords[R],delete C.all[R];for(const q of C.rules){const w=q.rules.findIndex(D=>D.keyword===R);w>=0&&q.rules.splice(w,1)}return this}addFormat(R,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[R]=C,this}errorsText(R=this.errors,{separator:C=", ",dataVar:q="data"}={}){return!R||R.length===0?"No errors":R.map(w=>`${q}${w.instancePath} ${w.message}`).reduce((w,D)=>w+C+D)}$dataMetaSchema(R,C){const q=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const w of C){const D=w.split("/").slice(1);let K=R;for(const V of D)K=K[V];for(const V in q){const re=q[V];if(typeof re!="object")continue;const{$data:we}=re.definition,$e=K[V];we&&$e&&(K[V]=qe($e))}}return R}_removeAllSchemas(R,C){for(const q in R){const w=R[q];(!C||C.test(q))&&(typeof w=="string"?delete R[q]:w&&!w.meta&&(this._cache.delete(w.schema),delete R[q]))}}_addSchema(R,C,q,w=this.opts.validateSchema,D=this.opts.addUsedSchema){let K;const{schemaId:V}=this.opts;if(typeof R=="object")K=R[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(R);if(re!==void 0)return re;q=(0,p.normalizeId)(K||q);const we=p.getSchemaRefs.call(this,R,q);return re=new s.SchemaEnv({schema:R,schemaId:V,meta:C,baseId:q,localRefs:we}),this._cache.set(re.schema,re),D&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),w&&this.validateSchema(R,!0),re}_checkUnique(R){if(this.schemas[R]||this.refs[R])throw new Error(`schema with key or id "${R}" already exists`)}_compileSchemaEnv(R){if(R.meta?this._compileMetaSchema(R):s.compileSchema.call(this,R),!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const C=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,R)}finally{this.opts=C}}}O.ValidationError=n.default,O.MissingRefError=i.default,e.default=O;function b(_,R,C,q="error"){for(const w in _){const D=w;D in R&&this.logger[q](`${C}: option ${w}. ${_[D]}`)}}function k(_){return _=(0,p.normalizeId)(_),this.schemas[_]||this.refs[_]}function M(){const _=this.opts.schemas;if(_)if(Array.isArray(_))this.addSchema(_);else for(const R in _)this.addSchema(_[R],R)}function H(){for(const _ in this.opts.formats){const R=this.opts.formats[_];R&&this.addFormat(_,R)}}function G(_){if(Array.isArray(_)){this.addVocabulary(_);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in _){const C=_[R];C.keyword||(C.keyword=R),this.addKeyword(C)}}function Z(){const _={...this.opts};for(const R of $)delete _[R];return _}const te={log(){},warn(){},error(){}};function de(_){if(_===!1)return te;if(_===void 0)return console;if(_.log&&_.warn&&_.error)return _;throw new Error("logger must implement log, warn and error methods")}const ee=/^[a-z_$][a-z0-9_$:-]*$/i;function ie(_,R){const{RULES:C}=this;if((0,d.eachItem)(_,q=>{if(C.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!ee.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!R&&R.$data&&!("code"in R||"validate"in R))throw new Error('$data keyword must have "code" or "validate" function')}function Pe(_,R,C){var q;const w=R?.post;if(C&&w)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:D}=this;let K=w?D.post:D.rules.find(({type:re})=>re===C);if(K||(K={type:C,rules:[]},D.rules.push(K)),D.keywords[_]=!0,!R)return;const V={keyword:_,definition:{...R,type:(0,l.getJSONTypes)(R.type),schemaType:(0,l.getJSONTypes)(R.schemaType)}};R.before?Ie.call(this,K,V,R.before):K.rules.push(V),D.all[_]=V,(q=R.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Ie(_,R,C){const q=_.rules.findIndex(w=>w.keyword===C);q>=0?_.rules.splice(q,0,R):(_.rules.push(R),this.logger.warn(`rule ${C} is not defined`))}function Le(_){let{metaSchema:R}=_;R!==void 0&&(_.$data&&this.opts.$data&&(R=qe(R)),_.validateSchema=this.compile(R,!0))}const Se={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function qe(_){return{anyOf:[_,Se]}}})(To)),To}var xn={},Sn={},Pn={},Gc;function JP(){if(Gc)return Pn;Gc=1,Object.defineProperty(Pn,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Pn.default=e,Pn}var Ft={},Yc;function oo(){if(Yc)return Ft;Yc=1,Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.callRef=Ft.getValidate=void 0;const e=xr(),t=At(),r=ke(),n=lt(),i=io(),o=Ne(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:d,schema:h,it:y}=l,{baseId:g,schemaEnv:$,validateName:x,opts:P,self:A}=y,{root:S}=$;if((h==="#"||h==="#/")&&g===S.baseId)return O();const v=i.resolveRef.call(A,S,g,h);if(v===void 0)throw new e.default(y.opts.uriResolver,g,h);if(v instanceof i.SchemaEnv)return b(v);return k(v);function O(){if($===S)return p(l,x,$,$.$async);const M=d.scopeValue("root",{ref:S});return p(l,(0,r._)`${M}.validate`,S,S.$async)}function b(M){const H=c(l,M);p(l,H,M,M.$async)}function k(M){const H=d.scopeValue("schema",P.code.source===!0?{ref:M,code:(0,r.stringify)(M)}:{ref:M}),G=d.name("valid"),Z=l.subschema({schema:M,dataTypes:[],schemaPath:r.nil,topSchemaRef:H,errSchemaPath:h},G,y.isAllOfVariant);l.mergeEvaluated(Z),l.ok(G)}}};function c(l,d){const{gen:h}=l;return d.validate?h.scopeValue("validate",{ref:d.validate}):(0,r._)`${h.scopeValue("wrapper",{ref:d})}.validate`}Ft.getValidate=c;function p(l,d,h,y){const{gen:g,it:$}=l,{allErrors:x,schemaEnv:P,opts:A}=$,S=A.passContext?n.default.this:r.nil;y?v():O();function v(){if(!P.$async)throw new Error("async schema referenced by sync schema");const M=g.let("valid");g.try(()=>{g.code((0,r._)`await ${(0,t.callValidateCode)(l,d,S)}`),k(d),x||g.assign(M,!0)},H=>{g.if((0,r._)`!(${H} instanceof ${$.ValidationError})`,()=>g.throw(H)),b(H),x||g.assign(M,!1)}),l.ok(M)}function O(){const M=g.name("visitedNodes");g.code((0,r._)`const ${M} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${d}) || new Set()`),g.if((0,r._)`!${M}.has(${l.data})`,()=>{g.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${d}, ${M})`),g.code((0,r._)`const dataNode = ${l.data}`),g.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${M}.add(dataNode)`);const H=l.result((0,t.callValidateCode)(l,d,S),()=>k(d),()=>b(d));return g.code((0,r._)`${M}.delete(dataNode)`),H})}function b(M){const H=(0,r._)`${M}.errors`;g.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${H} : ${n.default.vErrors}.concat(${H})`),g.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function k(M){var H;if(!$.opts.unevaluated)return;const G=(H=h?.validate)===null||H===void 0?void 0:H.evaluated;if($.props!==!0)if(G&&!G.dynamicProps)G.props!==void 0&&($.props=o.mergeEvaluated.props(g,G.props,$.props));else{const Z=g.var("props",(0,r._)`${M}.evaluated.props`);$.props=o.mergeEvaluated.props(g,Z,$.props,r.Name)}if($.items!==!0)if(G&&!G.dynamicItems)G.items!==void 0&&($.items=o.mergeEvaluated.items(g,G.items,$.items));else{const Z=g.var("items",(0,r._)`${M}.evaluated.items`);$.items=o.mergeEvaluated.items(g,Z,$.items,r.Name)}}}return Ft.callRef=p,Ft.default=s,Ft}var Jc;function $d(){if(Jc)return Sn;Jc=1,Object.defineProperty(Sn,"__esModule",{value:!0});const e=JP(),t=oo(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Sn.default=r,Sn}var $n={},An={},Xc;function XP(){if(Xc)return An;Xc=1,Object.defineProperty(An,"__esModule",{value:!0});const e=ke(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:o,schemaCode:s})=>(0,e.str)`must be ${r[o].okStr} ${s}`,params:({keyword:o,schemaCode:s})=>(0,e._)`{comparison: ${r[o].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(o){const{keyword:s,data:c,schemaCode:p}=o;o.fail$data((0,e._)`${c} ${r[s].fail} ${p} || isNaN(${c})`)}};return An.default=i,An}var En={},Zc;function ZP(){if(Zc)return En;Zc=1,Object.defineProperty(En,"__esModule",{value:!0});const e=ke(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:o,schemaCode:s,it:c}=n,p=c.opts.multipleOfPrecision,l=i.let("res"),d=p?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${p}`:(0,e._)`${l} !== parseInt(${l})`;n.fail$data((0,e._)`(${s} === 0 || (${l} = ${o}/${s}, ${d}))`)}};return En.default=r,En}var On={},Rn={},ep;function e$(){if(ep)return Rn;ep=1,Object.defineProperty(Rn,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,o;for(;i<r;)n++,o=t.charCodeAt(i++),o>=55296&&o<=56319&&i<r&&(o=t.charCodeAt(i),(o&64512)===56320&&i++);return n}return Rn.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Rn}var tp;function t$(){if(tp)return On;tp=1,Object.defineProperty(On,"__esModule",{value:!0});const e=ke(),t=Ne(),r=e$(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const c=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:c,schemaCode:p,it:l}=o,d=s==="maxLength"?e.operators.GT:e.operators.LT,h=l.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${c})`;o.fail$data((0,e._)`${h} ${d} ${p}`)}};return On.default=i,On}var _n={},rp;function r$(){if(rp)return _n;rp=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=At(),t=Ne(),r=ke(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,r.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,r._)`{pattern: ${o}}`},code(o){const{gen:s,data:c,$data:p,schema:l,schemaCode:d,it:h}=o,y=h.opts.unicodeRegExp?"u":"";if(p){const{regExp:g}=h.opts.code,$=g.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,g),x=s.let("valid");s.try(()=>s.assign(x,(0,r._)`${$}(${d}, ${y}).test(${c})`),()=>s.assign(x,!1)),o.fail$data((0,r._)`!${x}`)}else{const g=(0,e.usePattern)(o,l);o.fail$data((0,r._)`!${g}.test(${c})`)}}};return _n.default=i,_n}var Tn={},np;function n$(){if(np)return Tn;np=1,Object.defineProperty(Tn,"__esModule",{value:!0});const e=ke(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:s}=n,c=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${o}).length ${c} ${s}`)}};return Tn.default=r,Tn}var kn={},ip;function i$(){if(ip)return kn;ip=1,Object.defineProperty(kn,"__esModule",{value:!0});const e=At(),t=Sd(),r=ke(),n=Ne(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,r.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,r._)`{missingProperty: ${s}}`},code(s){const{gen:c,schema:p,schemaCode:l,data:d,$data:h,it:y}=s,{opts:g}=y;if(!h&&p.length===0)return;const $=p.length>=g.loopRequired;if(y.allErrors?x():P(),g.strictRequired){const v=s.parentSchema.properties,{definedProperties:O}=s.it;for(const b of p)if(v?.[b]===void 0&&!O.has(b)){const k=y.schemaEnv.baseId+y.errSchemaPath,M=`required property "${b}" is not defined at "${k}" (strictRequired)`;(0,n.checkStrictMode)(y,M,y.opts.strictRequired)}}function x(){var v;if($||h)s.block$data(r.nil,A);else for(const O of p){const b=(v=(0,t.getSkipCondition)(s.parentSchema,O))!==null&&v!==void 0?v:(0,r._)`false`;c.if((0,r.not)(b),()=>(0,e.checkReportMissingProp)(s,O))}}function P(){const v=c.let("missing");if($||h){const O=c.let("valid",!0);s.block$data(O,()=>S(v,O)),s.ok(O)}else c.if((0,e.checkMissingProp)(s,p,v)),(0,e.reportMissingProp)(s,v),c.else()}function A(){c.forOf("prop",l,v=>{s.setParams({missingProperty:v}),c.if((0,e.noPropertyInData)(c,d,v,g.ownProperties),()=>s.error())})}function S(v,O){s.setParams({missingProperty:v}),c.forOf(v,l,()=>{c.assign(O,(0,e.propertyInData)(c,d,v,g.ownProperties)),c.if((0,r.not)(O),()=>{s.error(),c.break()})},r.nil)}}};return kn.default=o,kn}var In={},op;function o$(){if(op)return In;op=1,Object.defineProperty(In,"__esModule",{value:!0});const e=ke(),t=lt(),n={keyword:"readOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in request context`},code(i){if(i.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;i.fail((0,e._)`${o} === "request"`)}};return In.default=n,In}var qn={},sp;function s$(){if(sp)return qn;sp=1,Object.defineProperty(qn,"__esModule",{value:!0});const e=ke(),t=lt(),n={keyword:"writeOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in response context`},code(i){if(i.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;i.fail((0,e._)`${o} === "response"`)}};return qn.default=n,qn}var Cn={},ap;function a$(){if(ap)return Cn;ap=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=ke(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:s}=n,c=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${o}.length ${c} ${s}`)}};return Cn.default=r,Cn}var jn={},Mn={},cp;function ca(){if(cp)return Mn;cp=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=Y.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',Mn.default=e,Mn}var pp;function c$(){if(pp)return jn;pp=1,Object.defineProperty(jn,"__esModule",{value:!0});const e=Ni(),t=ke(),r=Ne(),n=ca(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${s} are identical)`,params:({params:{i:s,j:c}})=>(0,t._)`{i: ${s}, j: ${c}}`},code(s){const{gen:c,data:p,$data:l,schema:d,parentSchema:h,schemaCode:y,it:g}=s;if(!l&&!d)return;const $=c.let("valid"),x=h.items?(0,e.getSchemaTypes)(h.items):[];s.block$data($,P,(0,t._)`${y} === false`),s.ok($);function P(){const O=c.let("i",(0,t._)`${p}.length`),b=c.let("j");s.setParams({i:O,j:b}),c.assign($,!0),c.if((0,t._)`${O} > 1`,()=>(A()?S:v)(O,b))}function A(){return x.length>0&&!x.some(O=>O==="object"||O==="array")}function S(O,b){const k=c.name("item"),M=(0,e.checkDataTypes)(x,k,g.opts.strictNumbers,e.DataType.Wrong),H=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${O}--;`,()=>{c.let(k,(0,t._)`${p}[${O}]`),c.if(M,(0,t._)`continue`),x.length>1&&c.if((0,t._)`typeof ${k} == "string"`,(0,t._)`${k} += "_"`),c.if((0,t._)`typeof ${H}[${k}] == "number"`,()=>{c.assign(b,(0,t._)`${H}[${k}]`),s.error(),c.assign($,!1).break()}).code((0,t._)`${H}[${k}] = ${O}`)})}function v(O,b){const k=(0,r.useFunc)(c,n.default),M=c.name("outer");c.label(M).for((0,t._)`;${O}--;`,()=>c.for((0,t._)`${b} = ${O}; ${b}--;`,()=>c.if((0,t._)`${k}(${p}[${O}], ${p}[${b}])`,()=>{s.error(),c.assign($,!1).break(M)})))}}};return jn.default=o,jn}var Dn={},lp;function p$(){if(lp)return Dn;lp=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=ca(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:s,data:c,$data:p,schemaCode:l,schema:d}=o;p||d&&typeof d=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${c}, ${l})`):o.fail((0,e._)`${d} !== ${c}`)}};return Dn.default=i,Dn}var Nn={},up;function l$(){if(up)return Nn;up=1,Object.defineProperty(Nn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=ca(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:s,data:c,$data:p,schema:l,schemaCode:d,it:h}=o;if(!p&&l.length===0)throw new Error("enum must have non-empty array");const y=l.length>=h.opts.loopEnum;let g;const $=()=>g??(g=(0,t.useFunc)(s,r.default));let x;if(y||p)x=s.let("valid"),o.block$data(x,P);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const S=s.const("vSchema",d);x=(0,e.or)(...l.map((v,O)=>A(S,O)))}o.pass(x);function P(){s.assign(x,!1),s.forOf("v",d,S=>s.if((0,e._)`${$()}(${c}, ${S})`,()=>s.assign(x,!0).break()))}function A(S,v){const O=l[v];return typeof O=="object"&&O!==null?(0,e._)`${$()}(${c}, ${S}[${v}])`:(0,e._)`${c} === ${O}`}}};return Nn.default=i,Nn}var dp;function pa(){if(dp)return $n;dp=1,Object.defineProperty($n,"__esModule",{value:!0});const e=XP(),t=ZP(),r=t$(),n=r$(),i=n$(),o=i$(),s=o$(),c=s$(),p=a$(),l=c$(),d=p$(),h=l$(),y=[e.default,t.default,r.default,n.default,i.default,o.default,s.default,c.default,p.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,h.default];return $n.default=y,$n}var Ln={},or={},fp;function Ad(){if(fp)return or;fp=1,Object.defineProperty(or,"__esModule",{value:!0}),or.validateAdditionalItems=void 0;const e=ke(),t=Ne(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:s,it:c}=o,{items:p}=s;if(!Array.isArray(p)){(0,t.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(o,p)}};function i(o,s){const{gen:c,schema:p,data:l,keyword:d,it:h}=o;h.items=!0;const y=c.const("len",(0,e._)`${l}.length`);if(p===!1)o.setParams({len:s.length}),o.pass((0,e._)`${y} <= ${s.length}`);else if(typeof p=="object"&&!(0,t.alwaysValidSchema)(h,p)){const $=c.var("valid",(0,e._)`${y} <= ${s.length}`);c.if((0,e.not)($),()=>g($)),o.ok($)}function g($){c.forRange("i",s.length,y,x=>{o.subschema({keyword:d,dataProp:x,dataPropType:t.Type.Num},$),h.allErrors||c.if((0,e.not)($),()=>c.break())})}}return or.validateAdditionalItems=i,or.default=n,or}var Un={},sr={},mp;function Ed(){if(mp)return sr;mp=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.validateTuple=void 0;const e=ke(),t=Ne(),r=At(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:s,it:c}=o;if(Array.isArray(s))return i(o,"additionalItems",s);c.items=!0,!(0,t.alwaysValidSchema)(c,s)&&o.ok((0,r.validateArray)(o))}};function i(o,s,c=o.schema){const{gen:p,parentSchema:l,data:d,keyword:h,it:y}=o;x(l),y.opts.unevaluated&&c.length&&y.items!==!0&&(y.items=t.mergeEvaluated.items(p,c.length,y.items));const g=p.name("valid"),$=p.const("len",(0,e._)`${d}.length`);c.forEach((P,A)=>{(0,t.alwaysValidSchema)(y,P)||(p.if((0,e._)`${$} > ${A}`,()=>o.subschema({keyword:h,schemaProp:A,dataProp:A},g)),o.ok(g))});function x(P){const{opts:A,errSchemaPath:S}=y,v=c.length,O=v===P.minItems&&(v===P.maxItems||P[s]===!1);if(A.strictTuples&&!O){const b=`"${h}" is ${v}-tuple, but minItems or maxItems/${s} are not specified or different at path "${S}"`;(0,t.checkStrictMode)(y,b,A.strictTuples)}}}return sr.validateTuple=i,sr.default=n,sr}var hp;function u$(){if(hp)return Un;hp=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=Ed(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Un.default=t,Un}var Fn={},yp;function d$(){if(yp)return Fn;yp=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=At(),n=Ad(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:c,parentSchema:p,it:l}=s,{prefixItems:d}=p;l.items=!0,!(0,t.alwaysValidSchema)(l,c)&&(d?(0,n.validateAdditionalItems)(s,d):s.ok((0,r.validateArray)(s)))}};return Fn.default=o,Fn}var zn={},gp;function f$(){if(gp)return zn;gp=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:o}})=>o===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${o} valid item(s)`,params:({params:{min:i,max:o}})=>o===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${o}}`},code(i){const{gen:o,schema:s,parentSchema:c,data:p,it:l}=i;let d,h;const{minContains:y,maxContains:g}=c;l.opts.next?(d=y===void 0?1:y,h=g):d=1;const $=o.const("len",(0,e._)`${p}.length`);if(i.setParams({min:d,max:h}),h===void 0&&d===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&d>h){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let v=(0,e._)`${$} >= ${d}`;h!==void 0&&(v=(0,e._)`${v} && ${$} <= ${h}`),i.pass(v);return}l.items=!0;const x=o.name("valid");h===void 0&&d===1?A(x,()=>o.if(x,()=>o.break())):d===0?(o.let(x,!0),h!==void 0&&o.if((0,e._)`${p}.length > 0`,P)):(o.let(x,!1),P()),i.result(x,()=>i.reset());function P(){const v=o.name("_valid"),O=o.let("count",0);A(v,()=>o.if(v,()=>S(O)))}function A(v,O){o.forRange("i",0,$,b=>{i.subschema({keyword:"contains",dataProp:b,dataPropType:t.Type.Num,compositeRule:!0},v),O()})}function S(v){o.code((0,e._)`${v}++`),h===void 0?o.if((0,e._)`${v} >= ${d}`,()=>o.assign(x,!0).break()):(o.if((0,e._)`${v} > ${h}`,()=>o.assign(x,!1).break()),d===1?o.assign(x,!0):o.if((0,e._)`${v} >= ${d}`,()=>o.assign(x,!0)))}}};return zn.default=n,zn}var No={},bp;function la(){return bp||(bp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ke(),r=Ne(),n=At();e.error={message:({params:{property:p,depsCount:l,deps:d}})=>{const h=l===1?"property":"properties";return(0,t.str)`must have ${h} ${d} when property ${p} is present`},params:({params:{property:p,depsCount:l,deps:d,missingProperty:h}})=>(0,t._)`{property: ${p},
|
|
5
|
+
|| ${H} === "boolean" || ${k} === null`).assign(G,(0,n._)`[${k}]`)}}}function y({gen:S,parentData:v,parentDataProperty:O},b){S.if((0,n._)`${v} !== undefined`,()=>S.assign((0,n._)`${v}[${O}]`,b))}function g(S,v,O,b=o.Correct){const k=b===o.Correct?n.operators.EQ:n.operators.NEQ;let M;switch(S){case"null":return(0,n._)`${v} ${k} null`;case"array":M=(0,n._)`Array.isArray(${v})`;break;case"object":M=(0,n._)`${v} && typeof ${v} == "object" && !Array.isArray(${v})`;break;case"integer":M=H((0,n._)`!(${v} % 1) && !isNaN(${v})`);break;case"number":M=H();break;default:return(0,n._)`typeof ${v} ${k} ${S}`}return b===o.Correct?M:(0,n.not)(M);function H(G=n.nil){return(0,n.and)((0,n._)`typeof ${v} == "number"`,G,O?(0,n._)`isFinite(${v})`:n.nil)}}rt.checkDataType=g;function $(S,v,O,b){if(S.length===1)return g(S[0],v,O,b);let k;const M=(0,i.toHash)(S);if(M.array&&M.object){const H=(0,n._)`typeof ${v} != "object"`;k=M.null?H:(0,n._)`!${v} || ${H}`,delete M.null,delete M.array,delete M.object}else k=n.nil;M.number&&delete M.integer;for(const H in M)k=(0,n.and)(k,g(H,v,O,b));return k}rt.checkDataTypes=$;const x={message:({schema:S})=>`must be ${S}`,params:({schema:S,schemaValue:v})=>typeof S=="string"?(0,n._)`{type: ${S}}`:(0,n._)`{type: ${v}}`};function P(S){const v=A(S);(0,r.reportError)(v,x)}rt.reportTypeError=P;function A(S){const{gen:v,data:O,schema:b}=S,k=(0,i.schemaRefOrVal)(S,b,"type");return{gen:v,keyword:"type",data:O,schema:b.type,schemaCode:k,schemaValue:k,parentSchema:b,params:{},it:S}}return rt}var kr={},Tc;function FP(){if(Tc)return kr;Tc=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.assignDefaults=void 0;const e=ke(),t=Ne();function r(i,o){const{properties:s,items:c}=i.schema;if(o==="object"&&s)for(const p in s)n(i,p,s[p].default);else o==="array"&&Array.isArray(c)&&c.forEach((p,l)=>n(i,l,p.default))}kr.assignDefaults=r;function n(i,o,s){const{gen:c,compositeRule:p,data:l,opts:d}=i;if(s===void 0)return;const h=(0,e._)`${l}${(0,e.getProperty)(o)}`;if(p){(0,t.checkStrictMode)(i,`default is ignored for: ${h}`);return}let y=(0,e._)`${h} === undefined`;d.useDefaults==="empty"&&(y=(0,e._)`${y} || ${h} === null || ${h} === ""`),c.if(y,(0,e._)`${h} = ${(0,e.stringify)(s)}`)}return kr}var bt={},Ge={},Ir={},kc;function td(){if(kc)return Ir;kc=1,Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.getSkipCondition=void 0;const e=ke(),t=lt();function r(n,i){var o;const s=(o=n.properties)===null||o===void 0?void 0:o[i];if(!s)return;const c=s.readOnly===!0,p=s.writeOnly===!0;if(!c&&!p)return;const l=[],d=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return c&&l.push((0,e._)`${d} === "request"`),p&&l.push((0,e._)`${d} === "response"`),(0,e.or)(...l)}return Ir.getSkipCondition=r,Ir}var Ic;function At(){if(Ic)return Ge;Ic=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.validateUnion=Ge.validateArray=Ge.usePattern=Ge.callValidateCode=Ge.schemaProperties=Ge.allSchemaProperties=Ge.noPropertyInData=Ge.propertyInData=Ge.isOwnProperty=Ge.hasPropFunc=Ge.reportMissingProp=Ge.checkMissingProp=Ge.checkReportMissingProp=void 0;const e=ke(),t=Ne(),r=lt(),n=Ne(),i=td();function o(v,O){const{gen:b,data:k,it:M}=v;b.if(h(b,k,O,M.opts.ownProperties),()=>{v.setParams({missingProperty:(0,e._)`${O}`},!0),v.error()})}Ge.checkReportMissingProp=o;function s({gen:v,data:O,it:{opts:b},parentSchema:k},M,H){return(0,e.or)(...M.map(G=>{var Z;return(0,e.and)((0,e.not)((Z=(0,i.getSkipCondition)(k,G))!==null&&Z!==void 0?Z:(0,e._)`false`),h(v,O,G,b.ownProperties),(0,e._)`${H} = ${G}`)}))}Ge.checkMissingProp=s;function c(v,O){v.setParams({missingProperty:O},!0),v.error()}Ge.reportMissingProp=c;function p(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ge.hasPropFunc=p;function l(v,O,b){return(0,e._)`${p(v)}.call(${O}, ${b})`}Ge.isOwnProperty=l;function d(v,O,b,k){const M=(0,e._)`${O}${(0,e.getProperty)(b)} !== undefined`;return k?(0,e._)`${M} && ${l(v,O,b)}`:M}Ge.propertyInData=d;function h(v,O,b,k){const M=(0,e._)`${O}${(0,e.getProperty)(b)} === undefined`;return k?(0,e.or)(M,(0,e.not)(l(v,O,b))):M}Ge.noPropertyInData=h;function y(v){return v?Object.keys(v).filter(O=>O!=="__proto__"):[]}Ge.allSchemaProperties=y;function g(v,O){return y(O).filter(b=>!(0,t.alwaysValidSchema)(v,O[b]))}Ge.schemaProperties=g;function $({schemaCode:v,data:O,it:{gen:b,topSchemaRef:k,schemaPath:M,errorPath:H},it:G},Z,te,de){const ee=de?(0,e._)`${v}, ${O}, ${k}${M}`:O,ie=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,H)],[r.default.parentData,G.parentData],[r.default.parentDataProperty,G.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,G.isAllOfVariant?1:0]];G.opts.dynamicRef&&ie.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const Pe=(0,e._)`${ee}, ${b.object(...ie)}`;return te!==e.nil?(0,e._)`${Z}.call(${te}, ${Pe})`:(0,e._)`${Z}(${Pe})`}Ge.callValidateCode=$;const x=(0,e._)`new RegExp`;function P({gen:v,it:{opts:O}},b){const k=O.unicodeRegExp?"u":"",{regExp:M}=O.code,H=M(b,k);return v.scopeValue("pattern",{key:H.toString(),ref:H,code:(0,e._)`${M.code==="new RegExp"?x:(0,n.useFunc)(v,M)}(${b}, ${k})`})}Ge.usePattern=P;function A(v){const{gen:O,data:b,keyword:k,it:M}=v,H=O.name("valid");if(M.allErrors){const Z=O.let("valid",!0);return G(()=>O.assign(Z,!1)),Z}return O.var(H,!0),G(()=>O.break()),H;function G(Z){const te=O.const("len",(0,e._)`${b}.length`);O.forRange("i",0,te,de=>{v.subschema({keyword:k,dataProp:de,dataPropType:t.Type.Num},H),O.if((0,e.not)(H),Z)})}}Ge.validateArray=A;function S(v){const{gen:O,schema:b,keyword:k,parentSchema:M,it:H}=v;if(!Array.isArray(b))throw new Error("ajv implementation error");if(H.opts.discriminator&&M.discriminator||b.some(de=>(0,t.alwaysValidSchema)(H,de))&&!H.opts.unevaluated)return;const Z=O.let("valid",!1),te=O.name("_valid");O.block(()=>b.forEach((de,ee)=>{const ie=v.subschema({keyword:k,schemaProp:ee,compositeRule:!0},te);O.assign(Z,(0,e._)`${Z} || ${te}`),v.mergeValidEvaluated(ie,te)||O.if((0,e.not)(Z))})),v.result(Z,()=>v.reset(),()=>v.error(!0))}return Ge.validateUnion=S,Ge}var qc;function zP(){if(qc)return bt;qc=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.validateKeywordUsage=bt.validSchemaType=bt.funcKeywordCode=bt.macroKeywordCode=void 0;const e=ke(),t=lt(),r=At(),n=Xi();function i(y,g){const{gen:$,keyword:x,schema:P,parentSchema:A,it:S}=y,v=g.macro.call(S.self,P,A,S),O=l($,x,v);S.opts.validateSchema!==!1&&S.self.validateSchema(v,!0);const b=$.name("valid");y.subschema({schema:v,schemaPath:e.nil,errSchemaPath:`${S.errSchemaPath}/${x}`,topSchemaRef:O,compositeRule:!0},b),y.pass(b,()=>y.error(!0))}bt.macroKeywordCode=i;function o(y,g){var $;const{gen:x,keyword:P,schema:A,parentSchema:S,$data:v,it:O}=y;p(O,g);const b=!v&&g.compile?g.compile.call(O.self,A,S,O):g.validate,k=l(x,P,b),M=x.let("valid");y.block$data(M,H),y.ok(($=g.valid)!==null&&$!==void 0?$:M);function H(){if(g.errors===!1)te(),g.modifying&&s(y),de(()=>y.error());else{const ee=g.async?G():Z();g.modifying&&s(y),de(()=>c(y,ee))}}function G(){const ee=x.let("ruleErrs",null);return x.try(()=>te((0,e._)`await `),ie=>x.assign(M,!1).if((0,e._)`${ie} instanceof ${O.ValidationError}`,()=>x.assign(ee,(0,e._)`${ie}.errors`),()=>x.throw(ie))),ee}function Z(){const ee=(0,e._)`${k}.errors`;return x.assign(ee,null),te(e.nil),ee}function te(ee=g.async?(0,e._)`await `:e.nil){const ie=O.opts.passContext?t.default.this:t.default.self,Pe=!("compile"in g&&!v||g.schema===!1);x.assign(M,(0,e._)`${ee}${(0,r.callValidateCode)(y,k,ie,Pe)}`,g.modifying)}function de(ee){var ie;x.if((0,e.not)((ie=g.valid)!==null&&ie!==void 0?ie:M),ee)}}bt.funcKeywordCode=o;function s(y){const{gen:g,data:$,it:x}=y;g.if(x.parentData,()=>g.assign($,(0,e._)`${x.parentData}[${x.parentDataProperty}]`))}function c(y,g){const{gen:$}=y;$.if((0,e._)`Array.isArray(${g})`,()=>{$.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${g} : ${t.default.vErrors}.concat(${g})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(y)},()=>y.error())}function p({schemaEnv:y},g){if(g.async&&!y.$async)throw new Error("async keyword in sync schema")}function l(y,g,$){if($===void 0)throw new Error(`keyword "${g}" failed to compile`);return y.scopeValue("keyword",typeof $=="function"?{ref:$}:{ref:$,code:(0,e.stringify)($)})}function d(y,g,$=!1){return!g.length||g.some(x=>x==="array"?Array.isArray(y):x==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==x||$&&typeof y>"u")}bt.validSchemaType=d;function h({schema:y,opts:g,self:$,errSchemaPath:x},P,A){if(Array.isArray(P.keyword)?!P.keyword.includes(A):P.keyword!==A)throw new Error("ajv implementation error");const S=P.dependencies;if(S?.some(v=>!Object.prototype.hasOwnProperty.call(y,v)))throw new Error(`parent schema must have dependencies of ${A}: ${S.join(",")}`);if(P.validateSchema&&!P.validateSchema(y[A])){const O=`keyword "${A}" value is invalid at path "${x}": `+$.errorsText(P.validateSchema.errors);if(g.validateSchema==="log")$.logger.error(O);else throw new Error(O)}}return bt.validateKeywordUsage=h,bt}var qt={},Cc;function BP(){if(Cc)return qt;Cc=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.extendSubschemaMode=qt.extendSubschemaData=qt.getSubschema=void 0;const e=ke(),t=Ne();function r(o,{keyword:s,schemaProp:c,schema:p,schemaPath:l,errSchemaPath:d,topSchemaRef:h}){if(s!==void 0&&p!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(s!==void 0){const y=o.schema[s];return c===void 0?{schema:y,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}`,errSchemaPath:`${o.errSchemaPath}/${s}`}:{schema:y[c],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(s)}${(0,e.getProperty)(c)}`,errSchemaPath:`${o.errSchemaPath}/${s}/${(0,t.escapeFragment)(c)}`}}if(p!==void 0){if(l===void 0||d===void 0||h===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:p,schemaPath:l,topSchemaRef:h,errSchemaPath:d}}throw new Error('either "keyword" or "schema" must be passed')}qt.getSubschema=r;function n(o,s,{dataProp:c,dataPropType:p,data:l,dataTypes:d,propertyName:h}){if(l!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=s;if(c!==void 0){const{errorPath:$,dataPathArr:x,opts:P}=s,A=y.let("data",(0,e._)`${s.data}${(0,e.getProperty)(c)}`,!0);g(A),o.errorPath=(0,e.str)`${$}${(0,t.getErrorPath)(c,p,P.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${c}`,o.dataPathArr=[...x,o.parentDataProperty]}if(l!==void 0){const $=l instanceof e.Name?l:y.let("data",l,!0);g($),h!==void 0&&(o.propertyName=h)}d&&(o.dataTypes=d);function g($){o.data=$,o.dataLevel=s.dataLevel+1,o.dataTypes=[],s.definedProperties=new Set,o.parentData=s.data,o.dataNames=[...s.dataNames,$]}}qt.extendSubschemaData=n;function i(o,{jtdDiscriminator:s,jtdMetadata:c,compositeRule:p,createErrors:l,allErrors:d}){p!==void 0&&(o.compositeRule=p),l!==void 0&&(o.createErrors=l),d!==void 0&&(o.allErrors=d),o.jtdDiscriminator=s,o.jtdMetadata=c}return qt.extendSubschemaMode=i,qt}var at={},ko={exports:{}},jc;function VP(){if(jc)return ko.exports;jc=1;var e=ko.exports=function(n,i,o){typeof i=="function"&&(o=i,i={}),o=i.cb||o;var s=typeof o=="function"?o:o.pre||function(){},c=o.post||function(){};t(i,s,c,n,"",n)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.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 t(n,i,o,s,c,p,l,d,h,y){if(s&&typeof s=="object"&&!Array.isArray(s)){i(s,c,p,l,d,h,y);for(var g in s){var $=s[g];if(Array.isArray($)){if(g in e.arrayKeywords)for(var x=0;x<$.length;x++)t(n,i,o,$[x],c+"/"+g+"/"+x,p,c,g,s,x)}else if(g in e.propsKeywords){if($&&typeof $=="object")for(var P in $)t(n,i,o,$[P],c+"/"+g+"/"+r(P),p,c,g,s,P)}else(g in e.keywords||n.allKeys&&!(g in e.skipKeywords))&&t(n,i,o,$,c+"/"+g,p,c,g,s)}o(s,c,p,l,d,h,y)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return ko.exports}var Mc;function Zi(){if(Mc)return at;Mc=1,Object.defineProperty(at,"__esModule",{value:!0}),at.getSchemaRefs=at.resolveUrl=at.normalizeId=at._getFullPath=at.getFullPath=at.inlineRef=void 0;const e=Ne(),t=Y.requireFastDeepEqual(),r=VP(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(x,P=!0){return typeof x=="boolean"?!0:P===!0?!s(x):P?c(x)<=P:!1}at.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function s(x){for(const P in x){if(o.has(P))return!0;const A=x[P];if(Array.isArray(A)&&A.some(s)||typeof A=="object"&&s(A))return!0}return!1}function c(x){let P=0;for(const A in x){if(A==="$ref")return 1/0;if(P++,!n.has(A)&&(typeof x[A]=="object"&&(0,e.eachItem)(x[A],S=>P+=c(S)),P===1/0))return 1/0}return P}function p(x,P="",A){A!==!1&&(P=h(P));const S=x.parse(P);return l(x,S)}at.getFullPath=p;function l(x,P){return x.serialize(P).split("#")[0]+"#"}at._getFullPath=l;const d=/#\/?$/;function h(x){return x?x.replace(d,""):""}at.normalizeId=h;function y(x,P,A){return A=h(A),x.resolve(P,A)}at.resolveUrl=y;const g=/^[a-z_][-a-z0-9._]*$/i;function $(x,P){if(typeof x=="boolean")return{};const{schemaId:A,uriResolver:S}=this.opts,v=h(x[A]||P),O={"":v},b=p(S,v,!1),k={},M=new Set;return r(x,{allKeys:!0},(Z,te,de,ee)=>{if(ee===void 0)return;const ie=b+te;let Pe=O[ee];typeof Z[A]=="string"&&(Pe=Ie.call(this,Z[A])),Le.call(this,Z.$anchor),Le.call(this,Z.$dynamicAnchor),O[te]=Pe;function Ie(Se){const qe=this.opts.uriResolver.resolve;if(Se=h(Pe?qe(Pe,Se):Se),M.has(Se))throw G(Se);M.add(Se);let _=this.refs[Se];return typeof _=="string"&&(_=this.refs[_]),typeof _=="object"?H(Z,_.schema,Se):Se!==h(ie)&&(Se[0]==="#"?(H(Z,k[Se],Se),k[Se]=Z):this.refs[Se]=ie),Se}function Le(Se){if(typeof Se=="string"){if(!g.test(Se))throw new Error(`invalid anchor "${Se}"`);Ie.call(this,`#${Se}`)}}}),k;function H(Z,te,de){if(te!==void 0&&!t(Z,te))throw G(de)}function G(Z){return new Error(`reference "${Z}" resolves to more than one schema`)}}return at.getSchemaRefs=$,at}var Dc;function wr(){if(Dc)return kt;Dc=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.getData=kt.KeywordCxt=kt.validateFunctionCode=void 0;const e=UP(),t=qi(),r=ed(),n=qi(),i=FP(),o=zP(),s=BP(),c=ke(),p=lt(),l=Zi(),d=Ne(),h=Xi();function y(z){if(b(z)&&(M(z),O(z))){P(z);return}g(z,()=>(0,e.topBoolOrEmptySchema)(z))}kt.validateFunctionCode=y;function g({gen:z,validateName:W,schema:J,schemaEnv:oe,opts:me},Ae){me.code.es5?z.func(W,(0,c._)`${p.default.data}, ${p.default.valCxt}`,oe.$async,()=>{z.code((0,c._)`"use strict"; ${S(J,me)}`),x(z,me),z.code(Ae)}):z.func(W,(0,c._)`${p.default.data}, ${$(me)}`,oe.$async,()=>z.code(S(J,me)).code(Ae))}function $(z){return(0,c._)`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${z.dynamicRef?(0,c._)`, ${p.default.dynamicAnchors}={}`:c.nil}, ${p.default.isAllOfVariant} = 0}={}`}function x(z,W){z.if(p.default.valCxt,()=>{z.var(p.default.instancePath,(0,c._)`${p.default.valCxt}.${p.default.instancePath}`),z.var(p.default.parentData,(0,c._)`${p.default.valCxt}.${p.default.parentData}`),z.var(p.default.parentDataProperty,(0,c._)`${p.default.valCxt}.${p.default.parentDataProperty}`),z.var(p.default.rootData,(0,c._)`${p.default.valCxt}.${p.default.rootData}`),z.var(p.default.isAllOfVariant,(0,c._)`${p.default.valCxt}.${p.default.isAllOfVariant}`),W.dynamicRef&&z.var(p.default.dynamicAnchors,(0,c._)`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{z.var(p.default.instancePath,(0,c._)`""`),z.var(p.default.parentData,(0,c._)`undefined`),z.var(p.default.parentDataProperty,(0,c._)`undefined`),z.var(p.default.rootData,p.default.data),z.var(p.default.isAllOfVariant,(0,c._)`0`),W.dynamicRef&&z.var(p.default.dynamicAnchors,(0,c._)`{}`)})}function P(z){const{schema:W,opts:J,gen:oe}=z;g(z,()=>{J.$comment&&W.$comment&&ee(z),Z(z),oe.let(p.default.vErrors,null),oe.let(p.default.errors,0),J.unevaluated&&A(z),H(z),ie(z)})}function A(z){const{gen:W,validateName:J}=z;z.evaluated=W.const("evaluated",(0,c._)`${J}.evaluated`),W.if((0,c._)`${z.evaluated}.dynamicProps`,()=>W.assign((0,c._)`${z.evaluated}.props`,(0,c._)`undefined`)),W.if((0,c._)`${z.evaluated}.dynamicItems`,()=>W.assign((0,c._)`${z.evaluated}.items`,(0,c._)`undefined`))}function S(z,W){const J=typeof z=="object"&&z[W.schemaId];return J&&(W.code.source||W.code.process)?(0,c._)`/*# sourceURL=${J} */`:c.nil}function v(z,W){if(b(z)&&(M(z),O(z))){k(z,W);return}(0,e.boolOrEmptySchema)(z,W)}function O({schema:z,self:W}){if(typeof z=="boolean")return!z;for(const J in z)if(W.RULES.all[J])return!0;return!1}function b(z){return typeof z.schema!="boolean"}function k(z,W){const{schema:J,gen:oe,opts:me}=z;me.$comment&&J.$comment&&ee(z),te(z),de(z);const Ae=oe.const("_errs",p.default.errors);H(z,Ae),oe.var(W,(0,c._)`${Ae} === ${p.default.errors}`)}function M(z){(0,d.checkUnknownRules)(z),G(z)}function H(z,W){if(z.opts.jtd)return Ie(z,[],!1,W);const J=(0,t.getSchemaTypes)(z.schema),oe=(0,t.coerceAndCheckDataType)(z,J);Ie(z,J,!oe,W)}function G(z){const{schema:W,errSchemaPath:J,opts:oe,self:me}=z;W.$ref&&oe.ignoreKeywordsWithRef&&(0,d.schemaHasRulesButRef)(W,me.RULES)&&me.logger.warn(`$ref: keywords ignored in schema at path "${J}"`)}function Z(z){const{schema:W,opts:J}=z;W.default!==void 0&&J.useDefaults&&J.strictSchema&&(0,d.checkStrictMode)(z,"default is ignored in the schema root")}function te(z){const W=z.schema[z.opts.schemaId];W&&(z.baseId=(0,l.resolveUrl)(z.opts.uriResolver,z.baseId,W))}function de(z){if(z.schema.$async&&!z.schemaEnv.$async)throw new Error("async schema in sync schema")}function ee({gen:z,schemaEnv:W,schema:J,errSchemaPath:oe,opts:me}){const Ae=J.$comment;if(me.$comment===!0)z.code((0,c._)`${p.default.self}.logger.log(${Ae})`);else if(typeof me.$comment=="function"){const F=(0,c.str)`${oe}/$comment`,X=z.scopeValue("root",{ref:W.root});z.code((0,c._)`${p.default.self}.opts.$comment(${Ae}, ${F}, ${X}.schema)`)}}function ie(z){const{gen:W,schemaEnv:J,validateName:oe,ValidationError:me,opts:Ae}=z;J.$async?W.if((0,c._)`${p.default.errors} === 0`,()=>W.return(p.default.data),()=>W.throw((0,c._)`new ${me}(${p.default.vErrors})`)):(W.assign((0,c._)`${oe}.errors`,p.default.vErrors),Ae.unevaluated&&Pe(z),W.return((0,c._)`${p.default.errors} === 0`))}function Pe({gen:z,evaluated:W,props:J,items:oe}){J instanceof c.Name&&z.assign((0,c._)`${W}.props`,J),oe instanceof c.Name&&z.assign((0,c._)`${W}.items`,oe)}function Ie(z,W,J,oe){const{gen:me,schema:Ae,data:F,allErrors:X,opts:pe,self:ae}=z,{RULES:ce}=ae;if(Ae.$ref&&(pe.ignoreKeywordsWithRef||!(0,d.schemaHasRulesButRef)(Ae,ce))){me.block(()=>V(z,"$ref",ce.all.$ref.definition));return}pe.jtd||Se(z,W),me.block(()=>{for(const ye of ce.rules)he(ye);he(ce.post)});function he(ye){(0,r.shouldUseGroup)(Ae,ye)&&(ye.type?(me.if((0,n.checkDataType)(ye.type,F,pe.strictNumbers)),Le(z,ye),W.length===1&&W[0]===ye.type&&J&&(me.else(),(0,n.reportTypeError)(z)),me.endIf()):Le(z,ye),X||me.if((0,c._)`${p.default.errors} === ${oe||0}`))}}function Le(z,W){const{gen:J,schema:oe,opts:{useDefaults:me}}=z;me&&(0,i.assignDefaults)(z,W.type),J.block(()=>{for(const F of W.rules)((0,r.shouldUseRule)(oe,F)||Ae(oe,F))&&V(z,F.keyword,F.definition,W.type)});function Ae(F,X){return!!(X.keyword==="unevaluatedProperties"&&(F.properties||F.patternProperties)&&!z.isAllOfVariant&&z.opts.defaultUnevaluatedProperties===!1)}}function Se(z,W){z.schemaEnv.meta||!z.opts.strictTypes||(qe(z,W),z.opts.allowUnionTypes||_(z,W),R(z,z.dataTypes))}function qe(z,W){if(W.length){if(!z.dataTypes.length){z.dataTypes=W;return}W.forEach(J=>{q(z.dataTypes,J)||D(z,`type "${J}" not allowed by context "${z.dataTypes.join(",")}"`)}),w(z,W)}}function _(z,W){W.length>1&&!(W.length===2&&W.includes("null"))&&D(z,"use allowUnionTypes to allow union type keyword")}function R(z,W){const J=z.self.RULES.all;for(const oe in J){const me=J[oe];if(typeof me=="object"&&(0,r.shouldUseRule)(z.schema,me)){const{type:Ae}=me.definition;Ae.length&&!Ae.some(F=>C(W,F))&&D(z,`missing type "${Ae.join(",")}" for keyword "${oe}"`)}}}function C(z,W){return z.includes(W)||W==="number"&&z.includes("integer")}function q(z,W){return z.includes(W)||W==="integer"&&z.includes("number")}function w(z,W){const J=[];for(const oe of z.dataTypes)q(W,oe)?J.push(oe):W.includes("integer")&&oe==="number"&&J.push("integer");z.dataTypes=J}function D(z,W){const J=z.schemaEnv.baseId+z.errSchemaPath;W+=` at "${J}" (strictTypes)`,(0,d.checkStrictMode)(z,W,z.opts.strictTypes)}class K{constructor(W,J,oe){if((0,o.validateKeywordUsage)(W,J,oe),this.gen=W.gen,this.allErrors=W.allErrors,this.keyword=oe,this.data=W.data,this.schema=W.schema[oe],this.$data=J.$data&&W.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,d.schemaRefOrVal)(W,this.schema,oe,this.$data),this.schemaType=J.schemaType,this.parentSchema=W.schema,this.params={},this.it=W,this.def=J,this.$data)this.schemaCode=W.gen.const("vSchema",$e(this.$data,W));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,J.schemaType,J.allowUndefined))throw new Error(`${oe} value must be ${JSON.stringify(J.schemaType)}`);("code"in J?J.trackErrors:J.errors!==!1)&&(this.errsCount=W.gen.const("_errs",p.default.errors))}result(W,J,oe){this.failResult((0,c.not)(W),J,oe)}failResult(W,J,oe){this.gen.if(W),oe?oe():this.error(),J?(this.gen.else(),J(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(W,J){this.failResult((0,c.not)(W),void 0,J)}fail(W){if(W===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(W),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(W){if(!this.$data)return this.fail(W);const{schemaCode:J}=this;this.fail((0,c._)`${J} !== undefined && (${(0,c.or)(this.invalid$data(),W)})`)}error(W,J,oe){if(J){this.setParams(J),this._error(W,oe),this.setParams({});return}this._error(W,oe)}_error(W,J){(W?h.reportExtraError:h.reportError)(this,this.def.error,J)}$dataError(){(0,h.reportError)(this,this.def.$dataError||h.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,h.resetErrorsCount)(this.gen,this.errsCount)}ok(W){this.allErrors||this.gen.if(W)}setParams(W,J){J?Object.assign(this.params,W):this.params=W}block$data(W,J,oe=c.nil){this.gen.block(()=>{this.check$data(W,oe),J()})}check$data(W=c.nil,J=c.nil){if(!this.$data)return;const{gen:oe,schemaCode:me,schemaType:Ae,def:F}=this;oe.if((0,c.or)((0,c._)`${me} === undefined`,J)),W!==c.nil&&oe.assign(W,!0),(Ae.length||F.validateSchema)&&(oe.elseIf(this.invalid$data()),this.$dataError(),W!==c.nil&&oe.assign(W,!1)),oe.else()}invalid$data(){const{gen:W,schemaCode:J,schemaType:oe,def:me,it:Ae}=this;return(0,c.or)(F(),X());function F(){if(oe.length){if(!(J instanceof c.Name))throw new Error("ajv implementation error");const pe=Array.isArray(oe)?oe:[oe];return(0,c._)`${(0,n.checkDataTypes)(pe,J,Ae.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function X(){if(me.validateSchema){const pe=W.scopeValue("validate$data",{ref:me.validateSchema});return(0,c._)`!${pe}(${J})`}return c.nil}}subschema(W,J,oe){const me=(0,s.getSubschema)(this.it,W);(0,s.extendSubschemaData)(me,this.it,W),(0,s.extendSubschemaMode)(me,W);const Ae={...this.it,...me,items:void 0,props:void 0,isAllOfVariant:oe};return v(Ae,J),Ae}mergeEvaluated(W,J){const{it:oe,gen:me}=this;oe.opts.unevaluated&&(oe.props!==!0&&W.props!==void 0&&(oe.props=d.mergeEvaluated.props(me,W.props,oe.props,J)),oe.items!==!0&&W.items!==void 0&&(oe.items=d.mergeEvaluated.items(me,W.items,oe.items,J)))}mergeValidEvaluated(W,J){const{it:oe,gen:me}=this;if(oe.opts.unevaluated&&(oe.props!==!0||oe.items!==!0))return me.if(J,()=>this.mergeEvaluated(W,c.Name)),!0}}kt.KeywordCxt=K;function V(z,W,J,oe){const me=new K(z,J,W);"code"in J?J.code(me,oe):me.$data&&J.validate?(0,o.funcKeywordCode)(me,J):"macro"in J?(0,o.macroKeywordCode)(me,J):(J.compile||J.validate)&&(0,o.funcKeywordCode)(me,J)}const re=/^\/(?:[^~]|~0|~1)*$/,we=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function $e(z,{dataLevel:W,dataNames:J,dataPathArr:oe}){let me,Ae;if(z==="")return p.default.rootData;if(z[0]==="/"){if(!re.test(z))throw new Error(`Invalid JSON-pointer: ${z}`);me=z,Ae=p.default.rootData}else{const ae=we.exec(z);if(!ae)throw new Error(`Invalid JSON-pointer: ${z}`);const ce=+ae[1];if(me=ae[2],me==="#"){if(ce>=W)throw new Error(pe("property/index",ce));return oe[W-ce]}if(ce>W)throw new Error(pe("data",ce));if(Ae=J[W-ce],!me)return Ae}let F=Ae;const X=me.split("/");for(const ae of X)ae&&(Ae=(0,c._)`${Ae}${(0,c.getProperty)((0,d.unescapeJsonPointer)(ae))}`,F=(0,c._)`${F} && ${Ae}`);return F;function pe(ae,ce){return`Cannot access ${ae} ${ce} levels up, current level is ${W}`}}return kt.getData=$e,kt}var gn={},Nc;function Jr(){if(Nc)return gn;Nc=1,Object.defineProperty(gn,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return gn.default=e,gn}var bn={},Lc;function xr(){if(Lc)return bn;Lc=1,Object.defineProperty(bn,"__esModule",{value:!0});const e=Zi();class t extends Error{constructor(n,i,o,s){super(s||`can't resolve reference ${o} from id ${i}`),this.missingRef=(0,e.resolveUrl)(n,i,o),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return bn.default=t,bn}var dt={},Uc;function eo(){if(Uc)return dt;Uc=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.resolveSchema=dt.getCompilingSchema=dt.resolveRef=dt.compileSchema=dt.SchemaEnv=void 0;const e=ke(),t=Jr(),r=lt(),n=Zi(),i=Ne(),o=wr();class s{constructor(A){var S;this.refs={},this.dynamicAnchors={};let v;typeof A.schema=="object"&&(v=A.schema),this.schema=A.schema,this.schemaId=A.schemaId,this.root=A.root||this,this.baseId=(S=A.baseId)!==null&&S!==void 0?S:(0,n.normalizeId)(v?.[A.schemaId||"$id"]),this.schemaPath=A.schemaPath,this.localRefs=A.localRefs,this.meta=A.meta,this.$async=v?.$async,this.refs={}}}dt.SchemaEnv=s;function c(P){const A=d.call(this,P);if(A)return A;const S=(0,n.getFullPath)(this.opts.uriResolver,P.root.baseId),{es5:v,lines:O}=this.opts.code,{ownProperties:b}=this.opts,k=new e.CodeGen(this.scope,{es5:v,lines:O,ownProperties:b});let M;P.$async&&(M=k.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const H=k.scopeName("validate");P.validateName=H;const G={gen:k,allErrors:this.opts.allErrors,data:r.default.data,parentData:r.default.parentData,parentDataProperty:r.default.parentDataProperty,dataNames:[r.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:k.scopeValue("schema",this.opts.code.source===!0?{ref:P.schema,code:(0,e.stringify)(P.schema)}:{ref:P.schema}),validateName:H,ValidationError:M,schema:P.schema,schemaEnv:P,rootId:S,baseId:P.baseId||S,schemaPath:e.nil,errSchemaPath:P.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let Z;try{this._compilations.add(P),(0,o.validateFunctionCode)(G),k.optimize(this.opts.code.optimize);const te=k.toString();Z=`const visitedNodesForRef = new WeakMap(); ${k.scopeRefs(r.default.scope)}return ${te}`,this.opts.code.process&&(Z=this.opts.code.process(Z,P));const ee=new Function(`${r.default.self}`,`${r.default.scope}`,Z)(this,this.scope.get());if(this.scope.value(H,{ref:ee}),ee.errors=null,ee.schema=P.schema,ee.schemaEnv=P,P.$async&&(ee.$async=!0),this.opts.code.source===!0&&(ee.source={validateName:H,validateCode:te,scopeValues:k._values}),this.opts.unevaluated){const{props:ie,items:Pe}=G;ee.evaluated={props:ie instanceof e.Name?void 0:ie,items:Pe instanceof e.Name?void 0:Pe,dynamicProps:ie instanceof e.Name,dynamicItems:Pe instanceof e.Name},ee.source&&(ee.source.evaluated=(0,e.stringify)(ee.evaluated))}return P.validate=ee,P}catch(te){throw delete P.validate,delete P.validateName,Z&&this.logger.error("Error compiling schema, function code:",Z),te}finally{this._compilations.delete(P)}}dt.compileSchema=c;function p(P,A,S){var v;const O=(0,n.resolveUrl)(this.opts.uriResolver,A,S),b=P.refs[O];if(b)return b;let k=y.call(this,P,O);if(k===void 0){const M=(v=P.localRefs)===null||v===void 0?void 0:v[O],{schemaId:H}=this.opts;M&&(k=new s({schema:M,schemaId:H,root:P,baseId:A}))}if(k===void 0&&this.opts.loadSchemaSync){const M=this.opts.loadSchemaSync(A,S,O);M&&!(this.refs[O]||this.schemas[O])&&(this.addSchema(M,O,void 0),k=y.call(this,P,O))}if(k!==void 0)return P.refs[O]=l.call(this,k)}dt.resolveRef=p;function l(P){return(0,n.inlineRef)(P.schema,this.opts.inlineRefs)?P.schema:P.validate?P:c.call(this,P)}function d(P){for(const A of this._compilations)if(h(A,P))return A}dt.getCompilingSchema=d;function h(P,A){return P.schema===A.schema&&P.root===A.root&&P.baseId===A.baseId}function y(P,A){let S;for(;typeof(S=this.refs[A])=="string";)A=S;return S||this.schemas[A]||g.call(this,P,A)}function g(P,A){const S=this.opts.uriResolver.parse(A),v=(0,n._getFullPath)(this.opts.uriResolver,S);let O=(0,n.getFullPath)(this.opts.uriResolver,P.baseId,void 0);if(Object.keys(P.schema).length>0&&v===O)return x.call(this,S,P);const b=(0,n.normalizeId)(v),k=this.refs[b]||this.schemas[b];if(typeof k=="string"){const M=g.call(this,P,k);return typeof M?.schema!="object"?void 0:x.call(this,S,M)}if(typeof k?.schema=="object"){if(k.validate||c.call(this,k),b===(0,n.normalizeId)(A)){const{schema:M}=k,{schemaId:H}=this.opts,G=M[H];return G&&(O=(0,n.resolveUrl)(this.opts.uriResolver,O,G)),new s({schema:M,schemaId:H,root:P,baseId:O})}return x.call(this,S,k)}}dt.resolveSchema=g;const $=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function x(P,{baseId:A,schema:S,root:v}){var O;if(((O=P.fragment)===null||O===void 0?void 0:O[0])!=="/")return;for(const M of P.fragment.slice(1).split("/")){if(typeof S=="boolean")return;const H=S[(0,i.unescapeFragment)(M)];if(H===void 0)return;S=H;const G=typeof S=="object"&&S[this.opts.schemaId];!$.has(M)&&G&&(A=(0,n.resolveUrl)(this.opts.uriResolver,A,G))}let b;if(typeof S!="boolean"&&S.$ref&&!(0,i.schemaHasRulesButRef)(S,this.RULES)){const M=(0,n.resolveUrl)(this.opts.uriResolver,A,S.$ref);b=g.call(this,v,M)}const{schemaId:k}=this.opts;if(b=b||new s({schema:S,schemaId:k,root:v,baseId:A}),b.schema!==b.root.schema)return b}return dt}const HP="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",KP="Meta-schema for $data reference (JSON AnySchema extension proposal)",WP="object",QP=["$data"],GP={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},YP=!1,JP={$id:HP,description:KP,type:WP,required:QP,properties:GP,additionalProperties:YP};var vn={},qr={exports:{}},Io,Fc;function rd(){if(Fc)return Io;Fc=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=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),r=RegExp.prototype.test.bind(/^\d*$/u),n=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),i=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),o=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),s=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),c=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),p=new Array(256);{const _="0123456789ABCDEF";for(let R=0;R<256;R++)p[R]="%"+_[R>>4]+_[R&15]}function l(_){return _<2048?p[192|_>>6]+p[128|_&63]:_<65536?p[224|_>>12]+p[128|_>>6&63]+p[128|_&63]:p[240|_>>18]+p[128|_>>12&63]+p[128|_>>6&63]+p[128|_&63]}function d(_){let R="",C=0,q=0;for(q=0;q<_.length;q++)if(C=_[q].charCodeAt(0),C!==48){if(!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";R+=_[q];break}for(q+=1;q<_.length;q++){if(C=_[q].charCodeAt(0),!(C>=48&&C<=57||C>=65&&C<=70||C>=97&&C<=102))return"";R+=_[q]}return R}const h=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),y=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),g=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),$=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function x(_){if(_.length===0)return!1;for(let R=0;R<_.length;R++)if(!g(_[R])){if(_[R]==="%"&&R+2<_.length&&n(_.slice(R+1,R+3))){R+=2;continue}return!1}return!0}function P(_){let R=-1,C=0,q=-1,w=0;for(let V=0;V<_.length;V++)_[V]==="0"?(q===-1&&(q=V),w++,w>C&&(C=w,R=q)):(q=-1,w=0);if(C<2)return _.join(":");const D=_.slice(0,R).join(":"),K=_.slice(R+C).join(":");return D+"::"+K}function A(_){const R=_.indexOf("::");if(R!==-1&&_.indexOf("::",R+1)!==-1)return;const C=R===-1?_.split(":"):_.slice(0,R).split(":"),q=R===-1?[]:_.slice(R+2).split(":");R!==-1&&(C.length===1&&C[0]===""&&(C.length=0),q.length===1&&q[0]===""&&(q.length=0));const w=C.concat(q);let D=0;for(let V=0;V<w.length;V++){const re=w[V];if(re==="")return;if(re.indexOf(".")!==-1){if(V!==w.length-1||R!==-1&&q.length===0||!t(re))return;D+=2;continue}if(!h(re))return;w[V]=parseInt(re,16).toString(16),D++}if(R===-1)return D!==8?void 0:P(w);if(D>=8)return;const K=w.slice(0,C.length);for(let V=D;V<8;V++)K.push("0");for(let V=C.length;V<w.length;V++)K.push(w[V]);return P(K)}function S(_){const R=_[0]==="["&&_[_.length-1]==="]";if((_[0]==="["||_[_.length-1]==="]")&&!R)return{host:_,isIPV6:!1,error:!0};let q=R?_.slice(1,-1):_;if(R&&y(q))return q=q.toLowerCase(),{host:`[${q}]`,escapedHost:q,isIPV6:!1,isIPVFuture:!0};if(v(q,":")<2)return{host:_,isIPV6:!1,error:R};let w="";const D=q.indexOf("%");if(D!==-1){const V=q.slice(D,D+3).toLowerCase()==="%25"?3:1;if(w=q.slice(D+V),!x(w))return{host:_,isIPV6:!1,error:!0};q=q.slice(0,D)}const K=A(q);return K===void 0?{host:_,isIPV6:!1,error:!0}:{host:K+(w?"%"+w:""),escapedHost:K+(w?"%25"+w:""),isIPV6:!0}}function v(_,R){let C=0;for(let q=0;q<_.length;q++)_[q]===R&&C++;return C}function O(_){let R=_;const C=[];let q=-1,w=0;for(;w=R.length;){if(w===1){if(R===".")break;if(R==="/"){C.push("/");break}else{C.push(R);break}}else if(w===2){if(R[0]==="."){if(R[1]===".")break;if(R[1]==="/"){R=R.slice(2);continue}}else if(R[0]==="/"&&(R[1]==="."||R[1]==="/")){C.push("/");break}}else if(w===3&&R==="/.."){C.length!==0&&C.pop(),C.push("/");break}if(R[0]==="."){if(R[1]==="."){if(R[2]==="/"){R=R.slice(3);continue}}else if(R[1]==="/"){R=R.slice(2);continue}}else if(R[0]==="/"&&R[1]==="."){if(R[2]==="/"){R=R.slice(2);continue}else if(R[2]==="."&&R[3]==="/"){R=R.slice(3),C.length!==0&&C.pop();continue}}if((q=R.indexOf("/",1))===-1){C.push(R);break}else C.push(R.slice(0,q)),R=R.slice(q)}return C.join("")}const b={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},k=/[@/?#:]/g,M=/[@/?#]/g;function H(_,R){const C=R?M:k;return C.lastIndex=0,_.replace(C,q=>b[q])}function G(_,R=!1){if(_.indexOf("%")===-1)return _;let C="";for(let q=0;q<_.length;q++){if(_[q]==="%"&&q+2<_.length){const w=_.slice(q+1,q+3);if(n(w)){const D=w.toUpperCase(),K=String.fromCharCode(parseInt(D,16));R&&i(K)?C+=K:C+="%"+D,q+=2;continue}}C+=_[q]}return C}function Z(_){let R="";for(let C=0;C<_.length;C++){const q=_[C];if(q==="%"&&C+2<_.length){const w=_.slice(C+1,C+3);if(n(w)){const D=w.toUpperCase(),K=String.fromCharCode(parseInt(D,16));K!=="."&&i(K)?R+=K:R+="%"+D,C+=2;continue}}if(o(q))R+=q;else{const w=_.charCodeAt(C);if(w<128)R+=Ie(w)?q:p[w];else if(w<55296||w>57343)R+=l(w);else if(w<=56319&&C+1<_.length){const D=_.charCodeAt(C+1);D>=56320&&D<=57343?(R+=l(65536+(w-55296<<10)+(D-56320)),C++):R+=l(65533)}else R+=l(65533)}}return R}function te(_,R=!1){let C="",q=R&&_[0]!=="/";for(let w=0;w<_.length;w++){const D=_[w];if(D==="%"&&w+2<_.length){const K=_.slice(w+1,w+3);if(n(K)){C+="%"+K.toUpperCase(),w+=2;continue}}if(D==="/"&&(q=!1),o(D)&&(D!==":"||!q))C+=D;else{const K=_.charCodeAt(w);if(K<128)C+=p[K];else if(K<55296||K>57343)C+=l(K);else if(K<=56319&&w+1<_.length){const V=_.charCodeAt(w+1);V>=56320&&V<=57343?(C+=l(65536+(K-55296<<10)+(V-56320)),w++):C+=l(65533)}else C+=l(65533)}}return C}function de(_,R){let C="";for(let q=0;q<_.length;q++){const w=_[q];if(w==="%"&&q+2<_.length){const D=_.slice(q+1,q+3);if(n(D)){C+="%"+D.toUpperCase(),q+=2;continue}}if(R(w))C+=w;else{const D=_.charCodeAt(q);if(D<128)C+=p[D];else if(D<55296||D>57343)C+=l(D);else if(D<=56319&&q+1<_.length){const K=_.charCodeAt(q+1);K>=56320&&K<=57343?(C+=l(65536+(D-55296<<10)+(K-56320)),q++):C+=l(65533)}else C+=l(65533)}}return C}function ee(_){return de(_,c)}function ie(_){return de(_,s)}function Pe(_){return de(_,s)}function Ie(_){return _>=48&&_<=57||_>=65&&_<=90||_>=97&&_<=122||_===42||_===43||_===45||_===46||_===47||_===64||_===95}function Le(_){let R="";for(let C=0;C<_.length;C++){const q=_[C];if(q==="%"&&C+2<_.length){const w=_.slice(C+1,C+3);if(n(w)){const D=w.toUpperCase(),K=String.fromCharCode(parseInt(D,16));i(K)?R+=K:R+="%"+D,C+=2;continue}}if(s(q))R+=q;else{const w=_.charCodeAt(C);if(w<128)R+=Ie(w)?q:p[w];else if(w<55296||w>57343)R+=l(w);else if(w<=56319&&C+1<_.length){const D=_.charCodeAt(C+1);D>=56320&&D<=57343?(R+=l(65536+(w-55296<<10)+(D-56320)),C++):R+=l(65533)}else R+=l(65533)}}return R}function Se(_){let R="";for(let C=0;C<_.length;C++){if(_[C]==="%"&&C+2<_.length){const q=_.slice(C+1,C+3);if(n(q)){R+="%"+q.toUpperCase(),C+=2;continue}}R+=escape(_[C])}return R}function qe(_){const R=[];if(_.userinfo!==void 0&&(R.push(ee(_.userinfo)),R.push("@")),_.host!==void 0){let C=_.host;if(!t(C)){let q=S(C);q.isIPV6!==!0&&q.isIPVFuture!==!0&&(C=G(C,!0),q=S(C)),q.isIPV6===!0||q.isIPVFuture===!0?C=`[${q.escapedHost}]`:C=H(C,!1)}R.push(C)}if(typeof _.port=="number"||typeof _.port=="string"){const C=String(_.port);if(!r(C))throw new TypeError("URI port is malformed.");R.push(":"),R.push(C)}return R.length?R.join(""):void 0}return Io={nonSimpleDomain:$,recomposeAuthority:qe,reescapeHostDelimiters:H,normalizePercentEncoding:G,normalizePathEncoding:Z,serializePathEncoding:te,normalizeQueryFragmentEncoding:Le,encodeUserinfo:ee,encodeQuery:ie,encodeFragment:Pe,escapePreservingEscapes:Se,removeDotSegments:O,isIPv4:t,isUUID:e,normalizeIPv6:S,stringArrayToHexStripped:d},Io}var qo,zc;function XP(){if(zc)return qo;zc=1;const{isUUID:e}=rd(),t=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(b){return r.indexOf(b)!==-1}function i(b){return b.secure===!0?!0:b.secure===!1?!1:b.scheme?b.scheme.length===3&&(b.scheme[0]==="w"||b.scheme[0]==="W")&&(b.scheme[1]==="s"||b.scheme[1]==="S")&&(b.scheme[2]==="s"||b.scheme[2]==="S"):!1}function o(b){return b.host||(b.error=b.error||"HTTP URIs must have a host."),b}function s(b){const k=String(b.scheme).toLowerCase()==="https";return(b.port===(k?443:80)||b.port==="")&&(b.port=void 0),b.path||(b.path="/"),b}function c(b){return b.secure=i(b),b.resourceName=(b.path||"/")+(b.query?"?"+b.query:""),b.path=void 0,b.query=void 0,b}function p(b){if((b.port===(i(b)?443:80)||b.port==="")&&(b.port=void 0),typeof b.secure=="boolean"&&(b.scheme=b.secure?"wss":"ws",b.secure=void 0),b.resourceName){const k=b.resourceName.indexOf("?"),M=k===-1?b.resourceName:b.resourceName.slice(0,k);b.path=M&&M!=="/"?M:void 0,b.query=k===-1?void 0:b.resourceName.slice(k+1),b.resourceName=void 0}return b.fragment=void 0,b}function l(b,k){if(!b.path)return b.error="URN can not be parsed",b;const M=b.path.match(t);if(M&&M[0]===b.path){const H=k.scheme||b.scheme||"urn";b.nid=M[1].toLowerCase(),b.nss=M[2];const G=`${H}:${k.nid||b.nid}`,Z=O(G);b.path=void 0,Z&&(b=Z.parse(b,k))}else b.error=b.error||"URN can not be parsed.";return b}function d(b,k){if(b.nid===void 0)throw new Error("URN without nid cannot be serialized");const M=k.scheme||b.scheme||"urn",H=b.nid.toLowerCase(),G=`${M}:${k.nid||H}`,Z=O(G);Z&&(b=Z.serialize(b,k));const te=b,de=b.nss;return te.path=`${H||k.nid}:${de}`,k.skipEscape=!0,te}function h(b,k){const M=b;return M.uuid=M.nss,M.nss=void 0,!k.tolerant&&(!M.uuid||!e(M.uuid))&&(M.error=M.error||"UUID is not valid."),M}function y(b){const k=b;return k.nss=(b.uuid||"").toLowerCase(),k}const g={scheme:"http",domainHost:!0,parse:o,serialize:s},$={scheme:"https",domainHost:g.domainHost,parse:o,serialize:s},x={scheme:"ws",domainHost:!0,parse:c,serialize:p},P={scheme:"wss",domainHost:x.domainHost,parse:x.parse,serialize:x.serialize},v={http:g,https:$,ws:x,wss:P,urn:{scheme:"urn",parse:l,serialize:d,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:h,serialize:y,skipNormalize:!0}};Object.setPrototypeOf(v,null);function O(b){return b&&(v[b]||v[b.toLowerCase()])||void 0}return qo={wsIsSecure:i,SCHEMES:v,isValidSchemeName:n,getSchemeHandler:O},qo}var Bc;function ZP(){if(Bc)return qr.exports;Bc=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,serializePathEncoding:o,normalizeQueryFragmentEncoding:s,encodeQuery:c,encodeFragment:p,reescapeHostDelimiters:l,isIPv4:d,nonSimpleDomain:h}=rd(),{SCHEMES:y,getSchemeHandler:g}=XP(),$=/^[A-Za-z][A-Za-z0-9+.-]*$/u,x="URI scheme is malformed.";function P(_){const R=unescape(String(_));if(!$.test(R))throw new TypeError(x);return R}function A(_,R){return typeof _=="string"?_=Ie(_,R):typeof _=="object"&&(_=Pe(b(_,R),R)),_}function S(_,R,C){const q=C?Object.assign({scheme:"null"},C):{scheme:"null"},{parsed:w,malformedAuthorityOrPort:D,malformedPercentEncoding:K,malformedSchemeSpecific:V,malformedHost:re,malformedScheme:we}=ie(_,q),{parsed:$e,malformedAuthorityOrPort:z,malformedPercentEncoding:W,malformedSchemeSpecific:J,malformedHost:oe,malformedScheme:me}=ie(R,q);if(D||z||K||W||V||J||re||oe||we||me)throw new Error(w.error||$e.error||"URI is malformed.");const Ae=v(w,$e,q,!0),F=g(C&&C.scheme||Ae.scheme),X=Ae.host,pe=X!==void 0&&X!==""&&(d(X)||e(X).isIPV6);ee(Ae,C||{},F,pe);const ae=X&&X.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(X);if(Ae.error&&!ae)throw new Error(Ae.error);return q.skipEscape=!0,b(Ae,q)}function v(_,R,C,q){const w={};return q||(_=Pe(b(_,C),C),R=Pe(b(R,C),C)),C=C||{},!C.tolerant&&R.scheme?(w.scheme=R.scheme,w.userinfo=R.userinfo,w.host=R.host,w.port=R.port,w.path=t(R.path||""),w.query=R.query):(R.userinfo!==void 0||R.host!==void 0||R.port!==void 0?(w.userinfo=R.userinfo,w.host=R.host,w.port=R.port,w.path=t(R.path||""),w.query=R.query):(R.path?(R.path[0]==="/"?w.path=t(R.path):((_.userinfo!==void 0||_.host!==void 0||_.port!==void 0)&&!_.path?w.path="/"+R.path:_.path?w.path=_.path.slice(0,_.path.lastIndexOf("/")+1)+R.path:w.path=R.path,w.path=t(w.path)),w.query=R.query):(w.path=_.path,R.query!==void 0?w.query=R.query:w.query=_.query),w.userinfo=_.userinfo,w.host=_.host,w.port=_.port),w.scheme=_.scheme),w.fragment=R.fragment,w}function O(_,R,C){const q=Se(_,C),w=Se(R,C);return q!==void 0&&w!==void 0&&q===w}function b(_,R){const C={host:_.host,scheme:_.scheme,userinfo:_.userinfo,port:_.port,path:_.path,query:_.query,nid:_.nid,nss:_.nss,uuid:_.uuid,fragment:_.fragment,reference:_.reference,resourceName:_.resourceName,secure:_.secure,error:""},q=Object.assign({},R),w=[];C.scheme&&(C.scheme=P(C.scheme));const D=g(q.scheme||C.scheme);D&&D.serialize&&D.serialize(C,q);const K=C.userinfo!==void 0||C.host!==void 0||C.port!==void 0,V=!q.skipEscape&&C.scheme===void 0&&!K;C.path!==void 0&&(q.skipEscape?C.path=n(C.path):C.path=o(C.path,V)),q.reference!=="suffix"&&C.scheme&&(C.scheme=P(C.scheme),w.push(C.scheme,":"));const re=r(C);if(re!==void 0&&(q.reference!=="suffix"&&w.push("//"),w.push(re),C.path&&C.path[0]!=="/"&&w.push("/")),C.path!==void 0){let we=C.path;!q.absolutePath&&(!D||!D.absolutePath)&&(we=t(we)),V&&(we=o(we,!0)),re===void 0&&we[0]==="/"&&we[1]==="/"&&(we="/%2F"+we.slice(2)),w.push(we)}return C.query!==void 0&&w.push("?",c(C.query)),C.fragment!==void 0&&w.push("#",p(C.fragment)),w.join("")}const k=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,M=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,H=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function G(_,R){if(R[2]!==void 0&&_.path&&_.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof _.port=="number"&&(_.port<0||_.port>65535))return"URI port is malformed."}function Z(_){if(_===void 0)return!1;let R=_.indexOf("%");for(;R!==-1;){if(R+2>=_.length||!/^[\da-f]{2}$/iu.test(_.slice(R+1,R+3)))return!0;R=_.indexOf("%",R+3)}return!1}function te(_){return _[0]==="["&&_[_.length-1]==="]"}function de(_){const R=_[4];return Z(_[3])||R!==void 0&&!te(R)&&Z(R)||Z(_[6])||Z(_[7])||Z(_[8])}function ee(_,R,C,q){if(!R.unicodeSupport&&(!C||!C.unicodeSupport)&&_.host&&!te(_.host)&&(R.domainHost||C&&C.domainHost)&&q===!1&&h(_.host))try{_.host=new URL("http://"+_.host).hostname}catch(w){return _.error=_.error||"Host's domain name can not be converted to ASCII: "+w,!0}return!1}function ie(_,R){const C=Object.assign({},R),q={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let w=!1,D=!1,K=!1,V=!1,re=!1,we=!1,$e=!1;C.reference==="suffix"&&(C.scheme?_=C.scheme+":"+_:_="//"+_);const z=_.match(M);z!==null&&z[1].indexOf("\\")!==-1&&(q.error="URI authority must not contain a literal backslash.",w=!0);const W=_.match(H);if(W!==null){const oe=W[1],me=oe.replace(/[\t\n\r]/g,"");me.length>=2&&(me.slice(0,2)!=="//"?(q.error=q.error||"URI authority must not contain a literal backslash.",w=!0):oe.length!==me.length&&(q.error=q.error||"URI authority introducer must not contain whitespace.",w=!0))}const J=_.match(k);if(J){if(q.scheme=J[1],q.userinfo=J[3],q.host=J[4],q.port=parseInt(J[5],10),q.path=J[6]||"",q.query=J[7],q.fragment=J[8],q.scheme!==void 0){const Ae=unescape(q.scheme);$.test(Ae)?q.scheme=Ae.toLowerCase():(q.error=q.error||x,we=!0)}D=de(J),D&&(q.error=q.error||"URI contains malformed percent-encoding."),isNaN(q.port)&&(q.port=J[5]);const oe=G(q,J);if(oe!==void 0&&(q.error=q.error||oe,w=!0),q.host)if(d(q.host)===!1){const F=te(q.host),X=q.host.indexOf("[")!==-1||q.host.indexOf("]")!==-1,pe=e(q.host);$e=pe.isIPV6||pe.isIPVFuture===!0,re=X&&(!F||pe.error===!0),q.host=$e?pe.host:pe.host.toLowerCase(),re&&(q.error=q.error||"URI host is malformed.",w=!0)}else $e=!0;q.scheme===void 0&&q.userinfo===void 0&&q.host===void 0&&q.port===void 0&&q.query===void 0&&!q.path?q.reference="same-document":q.scheme===void 0?q.reference="relative":q.fragment===void 0?q.reference="absolute":q.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==q.reference&&(q.error=q.error||"URI is not a "+C.reference+" reference.");const me=g(C.scheme||q.scheme);if(re||(V=ee(q,C,me,$e)),_.indexOf("%")!==-1&&q.host!==void 0&&!re){let Ae=$e?q.host:n(q.host,!0);$e||(Ae=n(Ae.toLowerCase())),q.host=l(Ae,$e)}(!me||me&&!me.skipNormalize)&&(q.path&&(q.path=i(q.path)),q.query&&(q.query=s(q.query)),q.fragment&&(q.fragment=s(q.fragment))),me&&me.parse&&(me.parse(q,C),me===y.urn&&q.nid===void 0&&(K=!0))}else q.error=q.error||"URI can not be parsed.";return{parsed:q,malformedAuthorityOrPort:w,malformedPercentEncoding:D,malformedSchemeSpecific:K,malformedHost:V,malformedScheme:we}}function Pe(_,R){return ie(_,R).parsed}function Ie(_,R){return Le(_,R).normalized}function Le(_,R){const{parsed:C,malformedAuthorityOrPort:q,malformedPercentEncoding:w,malformedSchemeSpecific:D,malformedHost:K,malformedScheme:V}=ie(_,R);return{normalized:q||w||D||K||V?_:b(C,R),malformedAuthorityOrPort:q,malformedPercentEncoding:w,malformedSchemeSpecific:D,malformedHost:K,malformedScheme:V}}function Se(_,R){if(typeof _!="string"&&typeof _!="object")return;let C;try{C=typeof _=="string"?_:b(_,R)}catch{return}const{normalized:q,malformedAuthorityOrPort:w,malformedPercentEncoding:D,malformedSchemeSpecific:K,malformedHost:V,malformedScheme:re}=Le(C,R);return w||D||K||V||re?void 0:q}const qe={SCHEMES:y,normalize:A,resolve:S,resolveComponent:v,equal:O,serialize:b,parse:Pe};return qr.exports=qe,qr.exports.default=qe,qr.exports.fastUri=qe,qr.exports}var Vc;function e$(){if(Vc)return vn;Vc=1,Object.defineProperty(vn,"__esModule",{value:!0});const e=ZP();return e.code='require("ajv/dist/runtime/uri").default',vn.default=e,vn}var Hc;function ta(){return Hc||(Hc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=wr();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=ke();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return r.CodeGen}});const n=Jr(),i=xr(),o=Zu(),s=eo(),c=ke(),p=Zi(),l=qi(),d=Ne(),h=JP,y=e$(),g=(_,R)=>new RegExp(_,R);g.code="new RegExp";const $=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],x=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),P={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."},A={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},S=200;function v(_){var R,C,q,w,D,K,V,re,we,$e,z,W,J,oe,me,Ae,F,X,pe,ae,ce,he,ye,ge,Ee;const Qe=_.strict,a=(R=_.code)===null||R===void 0?void 0:R.optimize,u=a===!0||a===void 0?1:a||0,f=(q=(C=_.code)===null||C===void 0?void 0:C.regExp)!==null&&q!==void 0?q:g,T=(w=_.uriResolver)!==null&&w!==void 0?w:y.default;return{strictSchema:(K=(D=_.strictSchema)!==null&&D!==void 0?D:Qe)!==null&&K!==void 0?K:!0,strictNumbers:(re=(V=_.strictNumbers)!==null&&V!==void 0?V:Qe)!==null&&re!==void 0?re:!0,strictTypes:($e=(we=_.strictTypes)!==null&&we!==void 0?we:Qe)!==null&&$e!==void 0?$e:"log",strictTuples:(W=(z=_.strictTuples)!==null&&z!==void 0?z:Qe)!==null&&W!==void 0?W:"log",strictRequired:(oe=(J=_.strictRequired)!==null&&J!==void 0?J:Qe)!==null&&oe!==void 0?oe:!1,code:_.code?{..._.code,optimize:u,regExp:f}:{optimize:u,regExp:f},loopRequired:(me=_.loopRequired)!==null&&me!==void 0?me:S,loopEnum:(Ae=_.loopEnum)!==null&&Ae!==void 0?Ae:S,meta:(F=_.meta)!==null&&F!==void 0?F:!0,messages:(X=_.messages)!==null&&X!==void 0?X:!0,inlineRefs:(pe=_.inlineRefs)!==null&&pe!==void 0?pe:!0,schemaId:(ae=_.schemaId)!==null&&ae!==void 0?ae:"$id",addUsedSchema:(ce=_.addUsedSchema)!==null&&ce!==void 0?ce:!0,validateSchema:(he=_.validateSchema)!==null&&he!==void 0?he:!0,validateFormats:(ye=_.validateFormats)!==null&&ye!==void 0?ye:!0,unicodeRegExp:(ge=_.unicodeRegExp)!==null&&ge!==void 0?ge:!0,int32range:(Ee=_.int32range)!==null&&Ee!==void 0?Ee:!0,uriResolver:T}}class O{constructor(R={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,R=this.opts={...R,...v(R)};const{es5:C,lines:q}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:x,es5:C,lines:q}),this.logger=de(R.logger);const w=R.validateFormats;R.validateFormats=!1,this.RULES=(0,o.getRules)(),b.call(this,P,R,"NOT SUPPORTED"),b.call(this,A,R,"DEPRECATED","warn"),this._metaOpts=Z.call(this),R.formats&&H.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),R.keywords&&G.call(this,R.keywords),typeof R.meta=="object"&&this.addMetaSchema(R.meta),M.call(this),R.validateFormats=w}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:C,schemaId:q}=this.opts;let w=h;q==="id"&&(w={...h},w.id=w.$id,delete w.$id),C&&R&&this.addMetaSchema(w,w[q],!1)}defaultMeta(){const{meta:R,schemaId:C}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[C]||R:void 0}setDefaultUnevaluatedProperties(R){this.opts.defaultUnevaluatedProperties=R}validate(R,C){let q;if(typeof R=="string"){if(q=this.getSchema(R),!q)throw new Error(`no schema with key or ref "${R}"`)}else q=this.compile(R);const w=q(C);return"$async"in q||(this.errors=q.errors),w}compile(R,C){const q=this._addSchema(R,C);return q.validate||this._compileSchemaEnv(q)}compileAsync(R,C){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:q}=this.opts;return w.call(this,R,C);async function w($e,z){await D.call(this,$e.$schema);const W=this._addSchema($e,z);return W.validate||K.call(this,W)}async function D($e){$e&&!this.getSchema($e)&&await w.call(this,{$ref:$e},!0)}async function K($e){try{return this._compileSchemaEnv($e)}catch(z){if(!(z instanceof i.default))throw z;return V.call(this,z),await re.call(this,z.missingSchema),K.call(this,$e)}}function V({missingSchema:$e,missingRef:z}){if(this.refs[$e])throw new Error(`AnySchema ${$e} is loaded but ${z} cannot be resolved`)}async function re($e){const z=await we.call(this,$e);this.refs[$e]||await D.call(this,z.$schema),this.refs[$e]||this.addSchema(z,$e,C)}async function we($e){const z=this._loading[$e];if(z)return z;try{return await(this._loading[$e]=q($e))}finally{delete this._loading[$e]}}}addSchema(R,C,q,w=this.opts.validateSchema){if(Array.isArray(R)){for(const K of R)this.addSchema(K,void 0,q,w);return this}let D;if(typeof R=="object"){const{schemaId:K}=this.opts;if(D=R[K],D!==void 0&&typeof D!="string")throw new Error(`schema ${K} must be string`)}return C=(0,p.normalizeId)(C||D),this._checkUnique(C),this.schemas[C]=this._addSchema(R,q,C,w,!0),this}addMetaSchema(R,C,q=this.opts.validateSchema){return this.addSchema(R,C,!0,q),this}validateSchema(R,C){if(typeof R=="boolean")return!0;let q;if(q=R.$schema,q!==void 0&&typeof q!="string")throw new Error("$schema must be a string");if(q=q||this.opts.defaultMeta||this.defaultMeta(),!q)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const w=this.validate(q,R);if(!w&&C){const D="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(D);else throw new Error(D)}return w}getSchema(R){let C;for(;typeof(C=k.call(this,R))=="string";)R=C;if(C===void 0){const{schemaId:q}=this.opts,w=new s.SchemaEnv({schema:{},schemaId:q});if(C=s.resolveSchema.call(this,w,R),!C)return;this.refs[R]=C}return C.validate||this._compileSchemaEnv(C)}removeSchema(R){if(R instanceof RegExp)return this._removeAllSchemas(this.schemas,R),this._removeAllSchemas(this.refs,R),this;switch(typeof R){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const C=k.call(this,R);return typeof C=="object"&&this._cache.delete(C.schema),delete this.schemas[R],delete this.refs[R],this}case"object":{const C=R;this._cache.delete(C);let q=R[this.opts.schemaId];return q&&(q=(0,p.normalizeId)(q),delete this.schemas[q],delete this.refs[q]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const C of R)this.addKeyword(C);return this}addKeyword(R,C){let q;if(typeof R=="string")q=R,typeof C=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),C.keyword=q);else if(typeof R=="object"&&C===void 0){if(C=R,q=C.keyword,Array.isArray(q)&&!q.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(ie.call(this,q,C),!C)return(0,d.eachItem)(q,D=>Pe.call(this,D)),this;Le.call(this,C);const w={...C,type:(0,l.getJSONTypes)(C.type),schemaType:(0,l.getJSONTypes)(C.schemaType)};return(0,d.eachItem)(q,w.type.length===0?D=>Pe.call(this,D,w):D=>w.type.forEach(K=>Pe.call(this,D,w,K))),this}getKeyword(R){const C=this.RULES.all[R];return typeof C=="object"?C.definition:!!C}removeKeyword(R){const{RULES:C}=this;delete C.keywords[R],delete C.all[R];for(const q of C.rules){const w=q.rules.findIndex(D=>D.keyword===R);w>=0&&q.rules.splice(w,1)}return this}addFormat(R,C){return typeof C=="string"&&(C=new RegExp(C)),this.formats[R]=C,this}errorsText(R=this.errors,{separator:C=", ",dataVar:q="data"}={}){return!R||R.length===0?"No errors":R.map(w=>`${q}${w.instancePath} ${w.message}`).reduce((w,D)=>w+C+D)}$dataMetaSchema(R,C){const q=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const w of C){const D=w.split("/").slice(1);let K=R;for(const V of D)K=K[V];for(const V in q){const re=q[V];if(typeof re!="object")continue;const{$data:we}=re.definition,$e=K[V];we&&$e&&(K[V]=qe($e))}}return R}_removeAllSchemas(R,C){for(const q in R){const w=R[q];(!C||C.test(q))&&(typeof w=="string"?delete R[q]:w&&!w.meta&&(this._cache.delete(w.schema),delete R[q]))}}_addSchema(R,C,q,w=this.opts.validateSchema,D=this.opts.addUsedSchema){let K;const{schemaId:V}=this.opts;if(typeof R=="object")K=R[V];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let re=this._cache.get(R);if(re!==void 0)return re;q=(0,p.normalizeId)(K||q);const we=p.getSchemaRefs.call(this,R,q);return re=new s.SchemaEnv({schema:R,schemaId:V,meta:C,baseId:q,localRefs:we}),this._cache.set(re.schema,re),D&&!q.startsWith("#")&&(q&&this._checkUnique(q),this.refs[q]=re),w&&this.validateSchema(R,!0),re}_checkUnique(R){if(this.schemas[R]||this.refs[R])throw new Error(`schema with key or id "${R}" already exists`)}_compileSchemaEnv(R){if(R.meta?this._compileMetaSchema(R):s.compileSchema.call(this,R),!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const C=this.opts;this.opts=this._metaOpts;try{s.compileSchema.call(this,R)}finally{this.opts=C}}}O.ValidationError=n.default,O.MissingRefError=i.default,e.default=O;function b(_,R,C,q="error"){for(const w in _){const D=w;D in R&&this.logger[q](`${C}: option ${w}. ${_[D]}`)}}function k(_){return _=(0,p.normalizeId)(_),this.schemas[_]||this.refs[_]}function M(){const _=this.opts.schemas;if(_)if(Array.isArray(_))this.addSchema(_);else for(const R in _)this.addSchema(_[R],R)}function H(){for(const _ in this.opts.formats){const R=this.opts.formats[_];R&&this.addFormat(_,R)}}function G(_){if(Array.isArray(_)){this.addVocabulary(_);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in _){const C=_[R];C.keyword||(C.keyword=R),this.addKeyword(C)}}function Z(){const _={...this.opts};for(const R of $)delete _[R];return _}const te={log(){},warn(){},error(){}};function de(_){if(_===!1)return te;if(_===void 0)return console;if(_.log&&_.warn&&_.error)return _;throw new Error("logger must implement log, warn and error methods")}const ee=/^[a-z_$][a-z0-9_$:-]*$/i;function ie(_,R){const{RULES:C}=this;if((0,d.eachItem)(_,q=>{if(C.keywords[q])throw new Error(`Keyword ${q} is already defined`);if(!ee.test(q))throw new Error(`Keyword ${q} has invalid name`)}),!!R&&R.$data&&!("code"in R||"validate"in R))throw new Error('$data keyword must have "code" or "validate" function')}function Pe(_,R,C){var q;const w=R?.post;if(C&&w)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:D}=this;let K=w?D.post:D.rules.find(({type:re})=>re===C);if(K||(K={type:C,rules:[]},D.rules.push(K)),D.keywords[_]=!0,!R)return;const V={keyword:_,definition:{...R,type:(0,l.getJSONTypes)(R.type),schemaType:(0,l.getJSONTypes)(R.schemaType)}};R.before?Ie.call(this,K,V,R.before):K.rules.push(V),D.all[_]=V,(q=R.implements)===null||q===void 0||q.forEach(re=>this.addKeyword(re))}function Ie(_,R,C){const q=_.rules.findIndex(w=>w.keyword===C);q>=0?_.rules.splice(q,0,R):(_.rules.push(R),this.logger.warn(`rule ${C} is not defined`))}function Le(_){let{metaSchema:R}=_;R!==void 0&&(_.$data&&this.opts.$data&&(R=qe(R)),_.validateSchema=this.compile(R,!0))}const Se={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function qe(_){return{anyOf:[_,Se]}}})(Eo)),Eo}var wn={},xn={},Sn={},Kc;function t$(){if(Kc)return Sn;Kc=1,Object.defineProperty(Sn,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Sn.default=e,Sn}var Ut={},Wc;function to(){if(Wc)return Ut;Wc=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.callRef=Ut.getValidate=void 0;const e=xr(),t=At(),r=ke(),n=lt(),i=eo(),o=Ne(),s={keyword:"$ref",schemaType:"string",code(l){const{gen:d,schema:h,it:y}=l,{baseId:g,schemaEnv:$,validateName:x,opts:P,self:A}=y,{root:S}=$;if((h==="#"||h==="#/")&&g===S.baseId)return O();const v=i.resolveRef.call(A,S,g,h);if(v===void 0)throw new e.default(y.opts.uriResolver,g,h);if(v instanceof i.SchemaEnv)return b(v);return k(v);function O(){if($===S)return p(l,x,$,$.$async);const M=d.scopeValue("root",{ref:S});return p(l,(0,r._)`${M}.validate`,S,S.$async)}function b(M){const H=c(l,M);p(l,H,M,M.$async)}function k(M){const H=d.scopeValue("schema",P.code.source===!0?{ref:M,code:(0,r.stringify)(M)}:{ref:M}),G=d.name("valid"),Z=l.subschema({schema:M,dataTypes:[],schemaPath:r.nil,topSchemaRef:H,errSchemaPath:h},G,y.isAllOfVariant);l.mergeEvaluated(Z),l.ok(G)}}};function c(l,d){const{gen:h}=l;return d.validate?h.scopeValue("validate",{ref:d.validate}):(0,r._)`${h.scopeValue("wrapper",{ref:d})}.validate`}Ut.getValidate=c;function p(l,d,h,y){const{gen:g,it:$}=l,{allErrors:x,schemaEnv:P,opts:A}=$,S=A.passContext?n.default.this:r.nil;y?v():O();function v(){if(!P.$async)throw new Error("async schema referenced by sync schema");const M=g.let("valid");g.try(()=>{g.code((0,r._)`await ${(0,t.callValidateCode)(l,d,S)}`),k(d),x||g.assign(M,!0)},H=>{g.if((0,r._)`!(${H} instanceof ${$.ValidationError})`,()=>g.throw(H)),b(H),x||g.assign(M,!1)}),l.ok(M)}function O(){const M=g.name("visitedNodes");g.code((0,r._)`const ${M} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${d}) || new Set()`),g.if((0,r._)`!${M}.has(${l.data})`,()=>{g.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${d}, ${M})`),g.code((0,r._)`const dataNode = ${l.data}`),g.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${M}.add(dataNode)`);const H=l.result((0,t.callValidateCode)(l,d,S),()=>k(d),()=>b(d));return g.code((0,r._)`${M}.delete(dataNode)`),H})}function b(M){const H=(0,r._)`${M}.errors`;g.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${H} : ${n.default.vErrors}.concat(${H})`),g.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function k(M){var H;if(!$.opts.unevaluated)return;const G=(H=h?.validate)===null||H===void 0?void 0:H.evaluated;if($.props!==!0)if(G&&!G.dynamicProps)G.props!==void 0&&($.props=o.mergeEvaluated.props(g,G.props,$.props));else{const Z=g.var("props",(0,r._)`${M}.evaluated.props`);$.props=o.mergeEvaluated.props(g,Z,$.props,r.Name)}if($.items!==!0)if(G&&!G.dynamicItems)G.items!==void 0&&($.items=o.mergeEvaluated.items(g,G.items,$.items));else{const Z=g.var("items",(0,r._)`${M}.evaluated.items`);$.items=o.mergeEvaluated.items(g,Z,$.items,r.Name)}}}return Ut.callRef=p,Ut.default=s,Ut}var Qc;function nd(){if(Qc)return xn;Qc=1,Object.defineProperty(xn,"__esModule",{value:!0});const e=t$(),t=to(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return xn.default=r,xn}var Pn={},$n={},Gc;function r$(){if(Gc)return $n;Gc=1,Object.defineProperty($n,"__esModule",{value:!0});const e=ke(),t=e.operators,r={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},n={message:({keyword:o,schemaCode:s})=>(0,e.str)`must be ${r[o].okStr} ${s}`,params:({keyword:o,schemaCode:s})=>(0,e._)`{comparison: ${r[o].okStr}, limit: ${s}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(o){const{keyword:s,data:c,schemaCode:p}=o;o.fail$data((0,e._)`${c} ${r[s].fail} ${p} || isNaN(${c})`)}};return $n.default=i,$n}var An={},Yc;function n$(){if(Yc)return An;Yc=1,Object.defineProperty(An,"__esModule",{value:!0});const e=ke(),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must be multiple of ${n}`,params:({schemaCode:n})=>(0,e._)`{multipleOf: ${n}}`},code(n){const{gen:i,data:o,schemaCode:s,it:c}=n,p=c.opts.multipleOfPrecision,l=i.let("res"),d=p?(0,e._)`Math.abs(Math.round(${l}) - ${l}) > 1e-${p}`:(0,e._)`${l} !== parseInt(${l})`;n.fail$data((0,e._)`(${s} === 0 || (${l} = ${o}/${s}, ${d}))`)}};return An.default=r,An}var En={},On={},Jc;function i$(){if(Jc)return On;Jc=1,Object.defineProperty(On,"__esModule",{value:!0});function e(t){const r=t.length;let n=0,i=0,o;for(;i<r;)n++,o=t.charCodeAt(i++),o>=55296&&o<=56319&&i<r&&(o=t.charCodeAt(i),(o&64512)===56320&&i++);return n}return On.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',On}var Xc;function o$(){if(Xc)return En;Xc=1,Object.defineProperty(En,"__esModule",{value:!0});const e=ke(),t=Ne(),r=i$(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:s}){const c=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${s} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:s,data:c,schemaCode:p,it:l}=o,d=s==="maxLength"?e.operators.GT:e.operators.LT,h=l.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${c})`;o.fail$data((0,e._)`${h} ${d} ${p}`)}};return En.default=i,En}var Rn={},Zc;function s$(){if(Zc)return Rn;Zc=1,Object.defineProperty(Rn,"__esModule",{value:!0});const e=At(),t=Ne(),r=ke(),i={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:o})=>(0,r.str)`must match pattern "${o}"`,params:({schemaCode:o})=>(0,r._)`{pattern: ${o}}`},code(o){const{gen:s,data:c,$data:p,schema:l,schemaCode:d,it:h}=o,y=h.opts.unicodeRegExp?"u":"";if(p){const{regExp:g}=h.opts.code,$=g.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(s,g),x=s.let("valid");s.try(()=>s.assign(x,(0,r._)`${$}(${d}, ${y}).test(${c})`),()=>s.assign(x,!1)),o.fail$data((0,r._)`!${x}`)}else{const g=(0,e.usePattern)(o,l);o.fail$data((0,r._)`!${g}.test(${c})`)}}};return Rn.default=i,Rn}var _n={},ep;function a$(){if(ep)return _n;ep=1,Object.defineProperty(_n,"__esModule",{value:!0});const e=ke(),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} properties`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:s}=n,c=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${o}).length ${c} ${s}`)}};return _n.default=r,_n}var Tn={},tp;function c$(){if(tp)return Tn;tp=1,Object.defineProperty(Tn,"__esModule",{value:!0});const e=At(),t=td(),r=ke(),n=Ne(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:s}})=>(0,r.str)`must have required property '${s}'`,params:({params:{missingProperty:s}})=>(0,r._)`{missingProperty: ${s}}`},code(s){const{gen:c,schema:p,schemaCode:l,data:d,$data:h,it:y}=s,{opts:g}=y;if(!h&&p.length===0)return;const $=p.length>=g.loopRequired;if(y.allErrors?x():P(),g.strictRequired){const v=s.parentSchema.properties,{definedProperties:O}=s.it;for(const b of p)if(v?.[b]===void 0&&!O.has(b)){const k=y.schemaEnv.baseId+y.errSchemaPath,M=`required property "${b}" is not defined at "${k}" (strictRequired)`;(0,n.checkStrictMode)(y,M,y.opts.strictRequired)}}function x(){var v;if($||h)s.block$data(r.nil,A);else for(const O of p){const b=(v=(0,t.getSkipCondition)(s.parentSchema,O))!==null&&v!==void 0?v:(0,r._)`false`;c.if((0,r.not)(b),()=>(0,e.checkReportMissingProp)(s,O))}}function P(){const v=c.let("missing");if($||h){const O=c.let("valid",!0);s.block$data(O,()=>S(v,O)),s.ok(O)}else c.if((0,e.checkMissingProp)(s,p,v)),(0,e.reportMissingProp)(s,v),c.else()}function A(){c.forOf("prop",l,v=>{s.setParams({missingProperty:v}),c.if((0,e.noPropertyInData)(c,d,v,g.ownProperties),()=>s.error())})}function S(v,O){s.setParams({missingProperty:v}),c.forOf(v,l,()=>{c.assign(O,(0,e.propertyInData)(c,d,v,g.ownProperties)),c.if((0,r.not)(O),()=>{s.error(),c.break()})},r.nil)}}};return Tn.default=o,Tn}var kn={},rp;function p$(){if(rp)return kn;rp=1,Object.defineProperty(kn,"__esModule",{value:!0});const e=ke(),t=lt(),n={keyword:"readOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in request context`},code(i){if(i.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;i.fail((0,e._)`${o} === "request"`)}};return kn.default=n,kn}var In={},np;function l$(){if(np)return In;np=1,Object.defineProperty(In,"__esModule",{value:!0});const e=ke(),t=lt(),n={keyword:"writeOnly",schemaType:"boolean",error:{message:()=>(0,e.str)`must NOT be present in response context`},code(i){if(i.schema!==!0)return;const o=(0,e._)`(${t.default.this} && ${t.default.this}.apiContext)`;i.fail((0,e._)`${o} === "response"`)}};return In.default=n,In}var qn={},ip;function u$(){if(ip)return qn;ip=1,Object.defineProperty(qn,"__esModule",{value:!0});const e=ke(),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:n,schemaCode:i}){const o=n==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${o} than ${i} items`},params:({schemaCode:n})=>(0,e._)`{limit: ${n}}`},code(n){const{keyword:i,data:o,schemaCode:s}=n,c=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${o}.length ${c} ${s}`)}};return qn.default=r,qn}var Cn={},jn={},op;function ra(){if(op)return jn;op=1,Object.defineProperty(jn,"__esModule",{value:!0});const e=Y.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',jn.default=e,jn}var sp;function d$(){if(sp)return Cn;sp=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=qi(),t=ke(),r=Ne(),n=ra(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:s,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${s} are identical)`,params:({params:{i:s,j:c}})=>(0,t._)`{i: ${s}, j: ${c}}`},code(s){const{gen:c,data:p,$data:l,schema:d,parentSchema:h,schemaCode:y,it:g}=s;if(!l&&!d)return;const $=c.let("valid"),x=h.items?(0,e.getSchemaTypes)(h.items):[];s.block$data($,P,(0,t._)`${y} === false`),s.ok($);function P(){const O=c.let("i",(0,t._)`${p}.length`),b=c.let("j");s.setParams({i:O,j:b}),c.assign($,!0),c.if((0,t._)`${O} > 1`,()=>(A()?S:v)(O,b))}function A(){return x.length>0&&!x.some(O=>O==="object"||O==="array")}function S(O,b){const k=c.name("item"),M=(0,e.checkDataTypes)(x,k,g.opts.strictNumbers,e.DataType.Wrong),H=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${O}--;`,()=>{c.let(k,(0,t._)`${p}[${O}]`),c.if(M,(0,t._)`continue`),x.length>1&&c.if((0,t._)`typeof ${k} == "string"`,(0,t._)`${k} += "_"`),c.if((0,t._)`typeof ${H}[${k}] == "number"`,()=>{c.assign(b,(0,t._)`${H}[${k}]`),s.error(),c.assign($,!1).break()}).code((0,t._)`${H}[${k}] = ${O}`)})}function v(O,b){const k=(0,r.useFunc)(c,n.default),M=c.name("outer");c.label(M).for((0,t._)`;${O}--;`,()=>c.for((0,t._)`${b} = ${O}; ${b}--;`,()=>c.if((0,t._)`${k}(${p}[${O}], ${p}[${b}])`,()=>{s.error(),c.assign($,!1).break(M)})))}}};return Cn.default=o,Cn}var Mn={},ap;function f$(){if(ap)return Mn;ap=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=ra(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:s,data:c,$data:p,schemaCode:l,schema:d}=o;p||d&&typeof d=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(s,r.default)}(${c}, ${l})`):o.fail((0,e._)`${d} !== ${c}`)}};return Mn.default=i,Mn}var Dn={},cp;function m$(){if(cp)return Dn;cp=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=ra(),i={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:o})=>(0,e._)`{allowedValues: ${o}}`},code(o){const{gen:s,data:c,$data:p,schema:l,schemaCode:d,it:h}=o;if(!p&&l.length===0)throw new Error("enum must have non-empty array");const y=l.length>=h.opts.loopEnum;let g;const $=()=>g??(g=(0,t.useFunc)(s,r.default));let x;if(y||p)x=s.let("valid"),o.block$data(x,P);else{if(!Array.isArray(l))throw new Error("ajv implementation error");const S=s.const("vSchema",d);x=(0,e.or)(...l.map((v,O)=>A(S,O)))}o.pass(x);function P(){s.assign(x,!1),s.forOf("v",d,S=>s.if((0,e._)`${$()}(${c}, ${S})`,()=>s.assign(x,!0).break()))}function A(S,v){const O=l[v];return typeof O=="object"&&O!==null?(0,e._)`${$()}(${c}, ${S}[${v}])`:(0,e._)`${c} === ${O}`}}};return Dn.default=i,Dn}var pp;function na(){if(pp)return Pn;pp=1,Object.defineProperty(Pn,"__esModule",{value:!0});const e=r$(),t=n$(),r=o$(),n=s$(),i=a$(),o=c$(),s=p$(),c=l$(),p=u$(),l=d$(),d=f$(),h=m$(),y=[e.default,t.default,r.default,n.default,i.default,o.default,s.default,c.default,p.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,h.default];return Pn.default=y,Pn}var Nn={},or={},lp;function id(){if(lp)return or;lp=1,Object.defineProperty(or,"__esModule",{value:!0}),or.validateAdditionalItems=void 0;const e=ke(),t=Ne(),n={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:o}})=>(0,e.str)`must NOT have more than ${o} items`,params:({params:{len:o}})=>(0,e._)`{limit: ${o}}`},code(o){const{parentSchema:s,it:c}=o,{items:p}=s;if(!Array.isArray(p)){(0,t.checkStrictMode)(c,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(o,p)}};function i(o,s){const{gen:c,schema:p,data:l,keyword:d,it:h}=o;h.items=!0;const y=c.const("len",(0,e._)`${l}.length`);if(p===!1)o.setParams({len:s.length}),o.pass((0,e._)`${y} <= ${s.length}`);else if(typeof p=="object"&&!(0,t.alwaysValidSchema)(h,p)){const $=c.var("valid",(0,e._)`${y} <= ${s.length}`);c.if((0,e.not)($),()=>g($)),o.ok($)}function g($){c.forRange("i",s.length,y,x=>{o.subschema({keyword:d,dataProp:x,dataPropType:t.Type.Num},$),h.allErrors||c.if((0,e.not)($),()=>c.break())})}}return or.validateAdditionalItems=i,or.default=n,or}var Ln={},sr={},up;function od(){if(up)return sr;up=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.validateTuple=void 0;const e=ke(),t=Ne(),r=At(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:s,it:c}=o;if(Array.isArray(s))return i(o,"additionalItems",s);c.items=!0,!(0,t.alwaysValidSchema)(c,s)&&o.ok((0,r.validateArray)(o))}};function i(o,s,c=o.schema){const{gen:p,parentSchema:l,data:d,keyword:h,it:y}=o;x(l),y.opts.unevaluated&&c.length&&y.items!==!0&&(y.items=t.mergeEvaluated.items(p,c.length,y.items));const g=p.name("valid"),$=p.const("len",(0,e._)`${d}.length`);c.forEach((P,A)=>{(0,t.alwaysValidSchema)(y,P)||(p.if((0,e._)`${$} > ${A}`,()=>o.subschema({keyword:h,schemaProp:A,dataProp:A},g)),o.ok(g))});function x(P){const{opts:A,errSchemaPath:S}=y,v=c.length,O=v===P.minItems&&(v===P.maxItems||P[s]===!1);if(A.strictTuples&&!O){const b=`"${h}" is ${v}-tuple, but minItems or maxItems/${s} are not specified or different at path "${S}"`;(0,t.checkStrictMode)(y,b,A.strictTuples)}}}return sr.validateTuple=i,sr.default=n,sr}var dp;function h$(){if(dp)return Ln;dp=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=od(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Ln.default=t,Ln}var Un={},fp;function y$(){if(fp)return Un;fp=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=ke(),t=Ne(),r=At(),n=id(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:s}})=>(0,e.str)`must NOT have more than ${s} items`,params:({params:{len:s}})=>(0,e._)`{limit: ${s}}`},code(s){const{schema:c,parentSchema:p,it:l}=s,{prefixItems:d}=p;l.items=!0,!(0,t.alwaysValidSchema)(l,c)&&(d?(0,n.validateAdditionalItems)(s,d):s.ok((0,r.validateArray)(s)))}};return Un.default=o,Un}var Fn={},mp;function g$(){if(mp)return Fn;mp=1,Object.defineProperty(Fn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:i,max:o}})=>o===void 0?(0,e.str)`must contain at least ${i} valid item(s)`:(0,e.str)`must contain at least ${i} and no more than ${o} valid item(s)`,params:({params:{min:i,max:o}})=>o===void 0?(0,e._)`{minContains: ${i}}`:(0,e._)`{minContains: ${i}, maxContains: ${o}}`},code(i){const{gen:o,schema:s,parentSchema:c,data:p,it:l}=i;let d,h;const{minContains:y,maxContains:g}=c;l.opts.next?(d=y===void 0?1:y,h=g):d=1;const $=o.const("len",(0,e._)`${p}.length`);if(i.setParams({min:d,max:h}),h===void 0&&d===0){(0,t.checkStrictMode)(l,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(h!==void 0&&d>h){(0,t.checkStrictMode)(l,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(l,s)){let v=(0,e._)`${$} >= ${d}`;h!==void 0&&(v=(0,e._)`${v} && ${$} <= ${h}`),i.pass(v);return}l.items=!0;const x=o.name("valid");h===void 0&&d===1?A(x,()=>o.if(x,()=>o.break())):d===0?(o.let(x,!0),h!==void 0&&o.if((0,e._)`${p}.length > 0`,P)):(o.let(x,!1),P()),i.result(x,()=>i.reset());function P(){const v=o.name("_valid"),O=o.let("count",0);A(v,()=>o.if(v,()=>S(O)))}function A(v,O){o.forRange("i",0,$,b=>{i.subschema({keyword:"contains",dataProp:b,dataPropType:t.Type.Num,compositeRule:!0},v),O()})}function S(v){o.code((0,e._)`${v}++`),h===void 0?o.if((0,e._)`${v} >= ${d}`,()=>o.assign(x,!0).break()):(o.if((0,e._)`${v} > ${h}`,()=>o.assign(x,!1).break()),d===1?o.assign(x,!0):o.if((0,e._)`${v} >= ${d}`,()=>o.assign(x,!0)))}}};return Fn.default=n,Fn}var Co={},hp;function ia(){return hp||(hp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ke(),r=Ne(),n=At();e.error={message:({params:{property:p,depsCount:l,deps:d}})=>{const h=l===1?"property":"properties";return(0,t.str)`must have ${h} ${d} when property ${p} is present`},params:({params:{property:p,depsCount:l,deps:d,missingProperty:h}})=>(0,t._)`{property: ${p},
|
|
6
6
|
missingProperty: ${h},
|
|
7
7
|
depsCount: ${l},
|
|
8
|
-
deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(p){const[l,d]=o(p);s(p,l),c(p,d)}};function o({schema:p}){const l={},d={};for(const h in p){if(h==="__proto__")continue;const y=Array.isArray(p[h])?l:d;y[h]=p[h]}return[l,d]}function s(p,l=p.schema){const{gen:d,data:h,it:y}=p;if(Object.keys(l).length===0)return;const g=d.let("missing");for(const $ in l){const x=l[$];if(x.length===0)continue;const P=(0,n.propertyInData)(d,h,$,y.opts.ownProperties);p.setParams({property:$,depsCount:x.length,deps:x.join(", ")}),y.allErrors?d.if(P,()=>{for(const A of x)(0,n.checkReportMissingProp)(p,A)}):(d.if((0,t._)`${P} && (${(0,n.checkMissingProp)(p,x,g)})`),(0,n.reportMissingProp)(p,g),d.else())}}e.validatePropertyDeps=s;function c(p,l=p.schema){const{gen:d,data:h,keyword:y,it:g}=p,$=d.name("valid");for(const x in l)(0,r.alwaysValidSchema)(g,l[x])||(d.if((0,n.propertyInData)(d,h,x,g.opts.ownProperties),()=>{const P=p.subschema({keyword:y,schemaProp:x},$);p.mergeValidEvaluated(P,$)},()=>d.var($,!0)),p.ok($))}e.validateSchemaDeps=c,e.default=i})(No)),No}var Bn={},vp;function m$(){if(vp)return Bn;vp=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:o,schema:s,data:c,it:p}=i;if((0,t.alwaysValidSchema)(p,s))return;const l=o.name("valid");o.forIn("key",c,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},l),o.if((0,e.not)(l),()=>{i.error(!0),p.allErrors||o.break()})}),i.ok(l)}};return Bn.default=n,Bn}var Vn={},wp;function Od(){if(wp)return Vn;wp=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=At(),t=ke(),r=lt(),n=Ne(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:c,parentSchema:p,data:l,errsCount:d,it:h}=s,{schema:y=h.opts.defaultAdditionalProperties}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:g,opts:$}=h;if(h.props=!0,$.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,y))return;const x=(0,e.allSchemaProperties)(p.properties),P=(0,e.allSchemaProperties)(p.patternProperties);A(),s.ok((0,t._)`${d} === ${r.default.errors}`);function A(){c.forIn("key",l,k=>{!x.length&&!P.length?O(k):c.if(S(k),()=>O(k))})}function S(k){let M;if(x.length>8){const H=(0,n.schemaRefOrVal)(h,p.properties,"properties");M=(0,e.isOwnProperty)(c,H,k)}else x.length?M=(0,t.or)(...x.map(H=>(0,t._)`${k} === ${H}`)):M=t.nil;return P.length&&(M=(0,t.or)(M,...P.map(H=>(0,t._)`${(0,e.usePattern)(s,H)}.test(${k})`))),(0,t.not)(M)}function v(k){c.code((0,t._)`delete ${l}[${k}]`)}function O(k){if($.removeAdditional==="all"||$.removeAdditional&&y===!1){v(k);return}if(y===!1){s.setParams({additionalProperty:k}),s.error(),g||c.break();return}if(typeof y=="object"&&!(0,n.alwaysValidSchema)(h,y)){const M=c.name("valid");$.removeAdditional==="failing"?(b(k,M,!1),c.if((0,t.not)(M),()=>{s.reset(),v(k)})):(b(k,M),g||c.if((0,t.not)(M),()=>c.break()))}}function b(k,M,H){const G={keyword:"additionalProperties",dataProp:k,dataPropType:n.Type.Str};H===!1&&Object.assign(G,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(G,M)}}};return Vn.default=o,Vn}var Hn={},xp;function h$(){if(xp)return Hn;xp=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=wr(),t=At(),r=Ne(),n=Od(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:c,parentSchema:p,data:l,it:d}=o;(d.opts.removeAdditional==="all"&&p.additionalProperties===void 0||d.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(d,n.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const P of h)d.definedProperties.add(P);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(s,(0,r.toHash)(h),d.props));const y=h.filter(P=>!(0,r.alwaysValidSchema)(d,c[P]));if(y.length===0)return;const g=s.name("valid");for(const P of y)$(P)?x(P):(s.if((0,t.propertyInData)(s,l,P,d.opts.ownProperties)),x(P),d.allErrors||s.else().var(g,!0),s.endIf()),o.it.definedProperties.add(P),o.ok(g);function $(P){return d.opts.useDefaults&&!d.compositeRule&&c[P].default!==void 0}function x(P){o.subschema({keyword:"properties",schemaProp:P,dataProp:P},g)}}};return Hn.default=i,Hn}var Kn={},Sp;function y$(){if(Sp)return Kn;Sp=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=At(),t=ke(),r=Ne(),n=Ne(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:c,data:p,parentSchema:l,it:d}=o,{opts:h}=d,y=(0,e.allSchemaProperties)(c),g=y.filter(O=>(0,r.alwaysValidSchema)(d,c[O]));if(y.length===0||g.length===y.length&&(!d.opts.unevaluated||d.props===!0))return;const $=h.strictSchema&&!h.allowMatchingProperties&&l.properties,x=s.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,n.evaluatedPropsToName)(s,d.props));const{props:P}=d;A();function A(){for(const O of y)$&&S(O),d.allErrors?v(O):(s.var(x,!0),v(O),s.if(x))}function S(O){for(const b in $)new RegExp(O).test(b)&&(0,r.checkStrictMode)(d,`property ${b} matches pattern ${O} (use allowMatchingProperties)`)}function v(O){s.forIn("key",p,b=>{s.if((0,t._)`${(0,e.usePattern)(o,O)}.test(${b})`,()=>{const k=g.includes(O);k||o.subschema({keyword:"patternProperties",schemaProp:O,dataProp:b,dataPropType:n.Type.Str},x),d.opts.unevaluated&&P!==!0?s.assign((0,t._)`${P}[${b}]`,!0):!k&&!d.allErrors&&s.if((0,t.not)(x),()=>s.break())})})}}};return Kn.default=i,Kn}var Wn={},Pp;function g$(){if(Pp)return Wn;Pp=1,Object.defineProperty(Wn,"__esModule",{value:!0});const e=Ne(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:o}=r;if((0,e.alwaysValidSchema)(o,i)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Wn.default=t,Wn}var Qn={},$p;function b$(){if($p)return Qn;$p=1,Object.defineProperty(Qn,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:At().validateUnion,error:{message:"must match a schema in anyOf"}};return Qn.default=t,Qn}var Gn={},Ap;function v$(){if(Ap)return Gn;Ap=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:o,schema:s,parentSchema:c,it:p}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(p.opts.discriminator&&c.discriminator)return;const l=s,d=o.let("valid",!1),h=o.let("passing",null),y=o.name("_valid");i.setParams({passing:h}),o.block(g),i.result(d,()=>i.reset(),()=>i.error(!0));function g(){l.forEach(($,x)=>{let P;(0,t.alwaysValidSchema)(p,$)?o.var(y,!0):P=i.subschema({keyword:"oneOf",schemaProp:x,compositeRule:!0},y),x>0&&o.if((0,e._)`${y} && ${d}`).assign(d,!1).assign(h,(0,e._)`[${h}, ${x}]`).else(),o.if(y,()=>{o.assign(d,!0),o.assign(h,x),P&&i.mergeEvaluated(P,e.Name)})})}}};return Gn.default=n,Gn}var Yn={},Ep;function w$(){if(Ep)return Yn;Ep=1,Object.defineProperty(Yn,"__esModule",{value:!0});const e=Ne(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:o}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=n.name("valid");i.forEach((c,p)=>{if((0,e.alwaysValidSchema)(o,c))return;const l=r.subschema({keyword:"allOf",schemaProp:p},s,!0);r.ok(s),r.mergeEvaluated(l)})}};return Yn.default=t,Yn}var Jn={},Op;function x$(){if(Op)return Jn;Op=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:c,it:p}=o;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(p,'"if" without "then" and "else" is ignored');const l=i(p,"then"),d=i(p,"else");if(!l&&!d)return;const h=s.let("valid",!0),y=s.name("_valid");if(g(),o.reset(),l&&d){const x=s.let("ifClause");o.setParams({ifClause:x}),s.if(y,$("then",x),$("else",x))}else l?s.if(y,$("then")):s.if((0,e.not)(y),$("else"));o.pass(h,()=>o.error(!0));function g(){const x=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},y);o.mergeEvaluated(x)}function $(x,P){return()=>{const A=o.subschema({keyword:x},y);s.assign(h,y),o.mergeValidEvaluated(A,h),P?s.assign(P,(0,e._)`${x}`):o.setParams({ifClause:x})}}}};function i(o,s){const c=o.schema[s];return c!==void 0&&!(0,t.alwaysValidSchema)(o,c)}return Jn.default=n,Jn}var Xn={},Rp;function S$(){if(Rp)return Xn;Rp=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=Ne(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Xn.default=t,Xn}var _p;function ua(){if(_p)return Ln;_p=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=Ad(),t=u$(),r=Ed(),n=d$(),i=f$(),o=la(),s=m$(),c=Od(),p=h$(),l=y$(),d=g$(),h=b$(),y=v$(),g=w$(),$=x$(),x=S$();function P(A=!1){const S=[d.default,h.default,y.default,g.default,$.default,x.default,s.default,c.default,o.default,p.default,l.default];return A?S.push(t.default,n.default):S.push(e.default,r.default),S.push(i.default),S}return Ln.default=P,Ln}var Zn={},ar={},Tp;function Rd(){if(Tp)return ar;Tp=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.dynamicAnchor=void 0;const e=ke(),t=lt(),r=io(),n=oo(),i={keyword:"$dynamicAnchor",schemaType:"string",code:c=>o(c,c.schema)};function o(c,p){const{gen:l,it:d}=c;d.schemaEnv.root.dynamicAnchors[p]=!0;const h=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(p)}`,y=d.errSchemaPath==="#"?d.validateName:s(c);l.if((0,e._)`!${h}`,()=>l.assign(h,y))}ar.dynamicAnchor=o;function s(c){const{schemaEnv:p,schema:l,self:d}=c.it,{root:h,baseId:y,localRefs:g,meta:$}=p.root,{schemaId:x}=d.opts,P=new r.SchemaEnv({schema:l,schemaId:x,root:h,baseId:y,localRefs:g,meta:$});return r.compileSchema.call(d,P),(0,n.getValidate)(c,P)}return ar.default=i,ar}var cr={},kp;function _d(){if(kp)return cr;kp=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.dynamicRef=void 0;const e=ke(),t=lt(),r=oo(),n={keyword:"$dynamicRef",schemaType:"string",code:o=>i(o,o.schema)};function i(o,s){const{gen:c,keyword:p,it:l}=o;if(s[0]!=="#")throw new Error(`"${p}" only supports hash fragment reference`);const d=s.slice(1);if(l.allErrors)h();else{const g=c.let("valid",!1);h(g),o.ok(g)}function h(g){if(l.schemaEnv.root.dynamicAnchors[d]){const $=c.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(d)}`);c.if($,y($,g),y(l.validateName,g))}else y(l.validateName,g)()}function y(g,$){return $?()=>c.block(()=>{(0,r.callRef)(o,g),c.let($,!0)}):()=>(0,r.callRef)(o,g)}}return cr.dynamicRef=i,cr.default=n,cr}var ei={},Ip;function P$(){if(Ip)return ei;Ip=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=Rd(),t=Ne(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return ei.default=r,ei}var ti={},qp;function $$(){if(qp)return ti;qp=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=_d(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return ti.default=t,ti}var Cp;function A$(){if(Cp)return Zn;Cp=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=Rd(),t=_d(),r=P$(),n=$$(),i=[e.default,t.default,r.default,n.default];return Zn.default=i,Zn}var ri={},ni={},jp;function E$(){if(jp)return ni;jp=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=la(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return ni.default=t,ni}var ii={},Mp;function O$(){if(Mp)return ii;Mp=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=la(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return ii.default=t,ii}var oi={},Dp;function R$(){if(Dp)return oi;Dp=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=Ne(),t={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:n,it:i}){n.contains===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "contains" is ignored`)}};return oi.default=t,oi}var Np;function _$(){if(Np)return ri;Np=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=E$(),t=O$(),r=R$(),n=[e.default,t.default,r.default];return ri.default=n,ri}var si={},ai={},Lp;function T$(){if(Lp)return ai;Lp=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=ke(),t=Ne(),r=lt(),i={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:o})=>(0,e._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`},code(o){const{gen:s,schema:c=o.it.opts.defaultUnevaluatedProperties,data:p,errsCount:l,it:d}=o,h=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!l)throw new Error("ajv implementation error");const{allErrors:y,props:g}=d;if(g instanceof e.Name)s.if((0,e._)`${g} !== true`,()=>s.forIn("key",p,A=>s.if(x(g,A),()=>$(A))));else if(g!==!0){const A=()=>s.forIn("key",p,S=>g===void 0?$(S):s.if(P(g,S),()=>$(S)));h&&d.errorPath.emptyStr()&&!d.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,A):(!d.compositeRule||o.schema!==void 0)&&A()}h||(d.props=!0),o.ok((0,e._)`${l} === ${r.default.errors}`);function $(A){if(c===!1){o.setParams({unevaluatedProperty:A}),o.error(),y||s.break();return}if(!(0,t.alwaysValidSchema)(d,c)){const S=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:A,dataPropType:t.Type.Str},S),y||s.if((0,e.not)(S),()=>s.break())}}function x(A,S){return(0,e._)`!${A} || !${A}[${S}]`}function P(A,S){const v=[];for(const O in A)A[O]===!0&&v.push((0,e._)`${S} !== ${O}`);return(0,e.and)(...v)}}};return ai.default=i,ai}var ci={},Up;function k$(){if(Up)return ci;Up=1,Object.defineProperty(ci,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{gen:o,schema:s,data:c,it:p}=i,l=p.items||0;if(l===!0)return;const d=o.const("len",(0,e._)`${c}.length`);if(s===!1)i.setParams({len:l}),i.fail((0,e._)`${d} > ${l}`);else if(typeof s=="object"&&!(0,t.alwaysValidSchema)(p,s)){const y=o.var("valid",(0,e._)`${d} <= ${l}`);o.if((0,e.not)(y),()=>h(y,l)),i.ok(y)}p.items=!0;function h(y,g){o.forRange("i",g,d,$=>{i.subschema({keyword:"unevaluatedItems",dataProp:$,dataPropType:t.Type.Num},y),p.allErrors||o.if((0,e.not)(y),()=>o.break())})}}};return ci.default=n,ci}var Fp;function Td(){if(Fp)return si;Fp=1,Object.defineProperty(si,"__esModule",{value:!0});const e=T$(),t=k$(),r=[e.default,t.default];return si.default=r,si}var pi={},li={},zp;function I$(){if(zp)return li;zp=1,Object.defineProperty(li,"__esModule",{value:!0});const e=ke(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:o,data:s,$data:c,schema:p,schemaCode:l,it:d}=n,{opts:h,errSchemaPath:y,schemaEnv:g,self:$}=d;if(!h.validateFormats)return;c?x():P();function x(){const A=o.scopeValue("formats",{ref:$.formats,code:h.code.formats}),S=o.const("fDef",(0,e._)`${A}[${l}]`),v=o.let("fType"),O=o.let("format");o.if((0,e._)`typeof ${S} == "object" && !(${S} instanceof RegExp)`,()=>o.assign(v,(0,e._)`${S}.type || "string"`).assign(O,(0,e._)`${S}.validate`),()=>o.assign(v,(0,e._)`"string"`).assign(O,S)),n.fail$data((0,e.or)(b(),k()));function b(){return h.strictSchema===!1?e.nil:(0,e._)`${l} && !${O}`}function k(){const M=g.$async?(0,e._)`(${S}.async ? await ${O}(${s}) : ${O}(${s}))`:(0,e._)`${O}(${s})`,H=(0,e._)`(typeof ${O} == "function" ? ${M} : ${O}.test(${s}))`;return(0,e._)`${O} && ${O} !== true && ${v} === ${i} && !${H}`}}function P(){const A=$.formats[p];if(!A){b();return}if(A===!0)return;const[S,v,O]=k(A);S===i&&n.pass(M());function b(){if(h.strictSchema===!1){$.logger.warn(H());return}throw new Error(H());function H(){return`unknown format "${p}" ignored in schema at path "${y}"`}}function k(H){const G=H instanceof RegExp?(0,e.regexpCode)(H):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(p)}`:void 0,Z=o.scopeValue("formats",{key:p,ref:H,code:G});return typeof H=="object"&&!(H instanceof RegExp)?[H.type||"string",H.validate,(0,e._)`${Z}.validate`]:["string",H,Z]}function M(){if(typeof A=="object"&&!(A instanceof RegExp)&&A.async){if(!g.$async)throw new Error("async format in sync schema");return(0,e._)`await ${O}(${s})`}return typeof v=="function"?(0,e._)`${O}(${s})`:(0,e._)`${O}.test(${s})`}}}};return li.default=r,li}var Bp;function da(){if(Bp)return pi;Bp=1,Object.defineProperty(pi,"__esModule",{value:!0});const t=[I$().default];return pi.default=t,pi}var Wt={},Vp;function kd(){return Vp||(Vp=1,Object.defineProperty(Wt,"__esModule",{value:!0}),Wt.contentVocabulary=Wt.metadataVocabulary=void 0,Wt.metadataVocabulary=["title","description","default","deprecated","examples"],Wt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Wt}var Hp;function q$(){if(Hp)return xn;Hp=1,Object.defineProperty(xn,"__esModule",{value:!0});const e=$d(),t=pa(),r=ua(),n=A$(),i=_$(),o=Td(),s=da(),c=kd(),p=[n.default,e.default,t.default,(0,r.default)(!0),s.default,c.metadataVocabulary,c.contentVocabulary,i.default,o.default];return xn.default=p,xn}var ui={},Cr={},Kp;function C$(){if(Kp)return Cr;Kp=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Cr.DiscrError=e={})),Cr}var Wp;function fa(){if(Wp)return ui;Wp=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=ke(),t=C$(),r=io(),n=xr(),i=Ne(),o={message:({params:{discrError:p,tagName:l}})=>p===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf or anyOf`,params:({params:{discrError:p,tag:l,tagName:d}})=>(0,e._)`{error: ${p}, tag: ${d}, tagValue: ${l}}`};function s(p,l){var d;if(!(!p.allOf||!Array.isArray(p.allOf))){for(const h of p.allOf)if(!((d=h?.properties)===null||d===void 0)&&d[l])return h.properties[l]}}const c={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(p){const{gen:l,data:d,schema:h,parentSchema:y,it:g}=p,$=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const x=h.propertyName;if(typeof x!="string")throw new Error("discriminator: requires propertyName");if(!$)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const P=y[$],A=l.let("valid",!1),S=l.const("tag",(0,e._)`${d}${(0,e.getProperty)(x)}`);l.if((0,e._)`typeof ${S} == "string"`,()=>v(),()=>p.error(!1,{discrError:t.DiscrError.Tag,tag:S,tagName:x})),p.ok(A);function v(){const k=b();l.if(!1);for(const M in k)l.elseIf((0,e._)`${S} === ${M}`),l.assign(A,O(k[M]));l.else(),p.error(!1,{discrError:t.DiscrError.Mapping,tag:S,tagName:x}),l.endIf()}function O(k){const M=l.name("valid"),H=p.subschema({keyword:$,schemaProp:k},M);return p.mergeEvaluated(H,e.Name),M}function b(){var k;const M={},H=Z(y);let G=!0;for(let ee=0;ee<P.length;ee++){let ie=P[ee];const Pe=ie?.$ref;if(Pe&&h.mapping){const{mapping:Le}=h,Se=Object.keys(Le).filter(qe=>Le[qe]===ie.$ref);if(Se.length){for(const qe of Se)de(qe,ee);continue}}if(Pe&&!(0,i.schemaHasRulesButRef)(ie,g.self.RULES)&&(ie=r.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,Pe),ie instanceof r.SchemaEnv&&(ie=ie.schema),ie===void 0))throw new n.default(g.opts.uriResolver,g.baseId,Pe);let Ie=(k=ie?.properties)===null||k===void 0?void 0:k[x];if(!Ie&&ie?.allOf&&(Ie=s(ie,x)),typeof Ie!="object")throw new Error(`discriminator: ${$} subschemas (or referenced schemas) must have "properties/${x}" or match mapping`);G=G&&(H||Z(ie)),te(Ie,ee)}if(!G)throw new Error(`discriminator: "${x}" must be required`);return M;function Z(ee){if(Array.isArray(ee.required)&&ee.required.includes(x))return!0;if(ee.allOf&&Array.isArray(ee.allOf))for(const ie of ee.allOf){const Pe=ie;if(Array.isArray(Pe.required)&&Pe.required.includes(x))return!0}return!1}function te(ee,ie){if(ee.const)de(ee.const,ie);else if(ee.enum)for(const Pe of ee.enum)de(Pe,ie);else throw new Error(`discriminator: "properties/${x}" must have "const" or "enum"`)}function de(ee,ie){if(typeof ee!="string"||ee in M)throw new Error(`discriminator: "${x}" values must be unique strings`);M[ee]=ie}}}};return ui.default=c,ui}var di={};const j$="https://json-schema.org/draft/2020-12/schema",M$="https://json-schema.org/draft/2020-12/schema",D$={"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},N$="meta",L$="Core and Validation specifications meta-schema",U$=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],F$=["object","boolean"],z$="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",B$={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}},V$={$schema:j$,$id:M$,$vocabulary:D$,$dynamicAnchor:N$,title:L$,allOf:U$,type:F$,$comment:z$,properties:B$},H$="https://json-schema.org/draft/2020-12/schema",K$="https://json-schema.org/draft/2020-12/meta/applicator",W$={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Q$="meta",G$="Applicator vocabulary meta-schema",Y$=["object","boolean"],J$={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"}},X$={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Z$={$schema:H$,$id:K$,$vocabulary:W$,$dynamicAnchor:Q$,title:G$,type:Y$,properties:J$,$defs:X$},eA="https://json-schema.org/draft/2020-12/schema",tA="https://json-schema.org/draft/2020-12/meta/unevaluated",rA={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},nA="meta",iA="Unevaluated applicator vocabulary meta-schema",oA=["object","boolean"],sA={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},aA={$schema:eA,$id:tA,$vocabulary:rA,$dynamicAnchor:nA,title:iA,type:oA,properties:sA},cA="https://json-schema.org/draft/2020-12/schema",pA="https://json-schema.org/draft/2020-12/meta/content",lA={"https://json-schema.org/draft/2020-12/vocab/content":!0},uA="meta",dA="Content vocabulary meta-schema",fA=["object","boolean"],mA={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},hA={$schema:cA,$id:pA,$vocabulary:lA,$dynamicAnchor:uA,title:dA,type:fA,properties:mA},yA="https://json-schema.org/draft/2020-12/schema",gA="https://json-schema.org/draft/2020-12/meta/core",bA={"https://json-schema.org/draft/2020-12/vocab/core":!0},vA="meta",wA="Core vocabulary meta-schema",xA=["object","boolean"],SA={$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"}}},PA={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},$A={$schema:yA,$id:gA,$vocabulary:bA,$dynamicAnchor:vA,title:wA,type:xA,properties:SA,$defs:PA},AA="https://json-schema.org/draft/2020-12/schema",EA="https://json-schema.org/draft/2020-12/meta/format-annotation",OA={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},RA="meta",_A="Format vocabulary meta-schema for annotation results",TA=["object","boolean"],kA={format:{type:"string"}},IA={$schema:AA,$id:EA,$vocabulary:OA,$dynamicAnchor:RA,title:_A,type:TA,properties:kA},qA="https://json-schema.org/draft/2020-12/schema",CA="https://json-schema.org/draft/2020-12/meta/meta-data",jA={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},MA="meta",DA="Meta-data vocabulary meta-schema",NA=["object","boolean"],LA={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}},UA={$schema:qA,$id:CA,$vocabulary:jA,$dynamicAnchor:MA,title:DA,type:NA,properties:LA},FA="https://json-schema.org/draft/2020-12/schema",zA="https://json-schema.org/draft/2020-12/meta/validation",BA={"https://json-schema.org/draft/2020-12/vocab/validation":!0},VA="meta",HA="Validation vocabulary meta-schema",KA=["object","boolean"],WA={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"}}},QA={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:[]}},GA={$schema:FA,$id:zA,$vocabulary:BA,$dynamicAnchor:VA,title:HA,type:KA,properties:WA,$defs:QA};var Qp;function YA(){if(Qp)return di;Qp=1,Object.defineProperty(di,"__esModule",{value:!0});const e=V$,t=Z$,r=aA,n=hA,i=$A,o=IA,s=UA,c=GA,p=["/properties"];function l(d){return[e,t,r,n,i,h(this,o),s,h(this,c)].forEach(y=>this.addMetaSchema(y,void 0,!1)),this;function h(y,g){return d?y.$dataMetaSchema(g,p):g}}return di.default=l,di}var Gp;function JA(){return Gp||(Gp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const r=aa(),n=q$(),i=fa(),o=YA(),s="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(g={}){super({...g,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:g,meta:$}=this.opts;$&&(o.default.call(this,g),this.refs["http://json-schema.org/schema"]=s)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv2020=c,e.exports=t=c,e.exports.Ajv2020=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var p=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var l=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=Xr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(yn,yn.exports)),yn.exports}var Id=JA();const qd=Y.getDefaultExportFromCjs(Id);let Lo;function XA(){return Lo||(Lo=new Id.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),Lo}function Yp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>XA().validate(i,r));return n===-1&&(n=0),t[n]}}function dr(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"){const{default:n,format:i,...o}=t;return o}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(Y.isPlainObject(t.properties)||Y.isPlainObject(t.additionalProperties)||Y.isPlainObject(t.items)&&(Y.isPlainObject(t.items.properties)||Y.isPlainObject(t.items.additionalProperties)||t.items.oneOf))return ZA(e,t,r);if(t.oneOf)if(t.discriminator){const n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);const i={},o=t.oneOf.map((s,c)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${c} in oneOf.`);const p=s?.properties?.[n];if(!p||typeof p=="boolean")throw new Error(`Unexpected property '${p}' schema in ${e} at position ${c} in oneOf.`);const l=p.const,d=dr(l,s,r);return typeof d=="string"&&(i[l]=d),d});return(s,c)=>{if(Y.isPlainObject(s)){const p=s[n];if(typeof p=="string"){const l=i[p];if(l&&r[l])return l}}return Yp(t.oneOf,o)(s,c)}}else{const n=t.oneOf.map((i,o)=>dr(e+"_"+o,i,r));return Yp(t.oneOf,n)}return t}function ZA(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.`);const n=t.nodeTypeName??e,i={};for(const[p,l]of Object.entries(t.properties||{}))i[p]=dr(n+"."+p,l,r);let o;Y.isPlainObject(t.additionalProperties)&&(o=dr(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let s;Y.isPlainObject(t.items)&&(Y.isPlainObject(t.items.properties)||Y.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(s=dr(e+"_items",t.items,r));let c=t.required;return t.oneOf&&t.oneOf.every(p=>!!p.required)&&(c=p=>{const l=t.oneOf.map(h=>[...t.required||[],...h.required]);let d=l.findIndex(h=>h.every(y=>p[y]!==void 0));return d===-1&&(d=0),l[d]}),r[n]={properties:i,additionalProperties:o,items:s,required:c,description:t.description,documentationLink:t.documentationLink},n}function Cd(e,t){const r={},n=dr(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const eE=["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"],tE=["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"],rE=["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"],nE=["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"],iE=["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"],oE=["info-contact","spec-ref-siblings"],sE=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],aE=["no-unused-types","type-description"],cE=["struct","no-unresolved-refs"],pE=[...eE,...tE,...rE,...nE,...iE,...oE,...sE,...aE,...cE],lE=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],uE=["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"],jd=[...uE,...lE],Md={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!j.isAbsoluteUrl(e)&&!Y.path.extname(e)?{type:"string"}:{...zr,directResolveAs:{name:"ConfigGovernance",...zr}},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"},zr={properties:Md},dE=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...zr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),fE={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"},mE=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...ea(zr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),hE={properties:{headers:{type:"array",items:{type:"string"}}}},yE={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:j.mapOf("ClientGeneratorOptions"),pagination:"ClientPagination"}},gE={properties:{},additionalProperties:{}},Dd={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"}}},bE={properties:{...Dd.properties,exclude:{type:"array",items:{type:"string"}},operations:j.mapOf("ClientPaginationRule")}},vE={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(pE.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(sa(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},wE={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"},xE={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"},SE={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(jd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(sa(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},PE={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},$E={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},AE={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(jd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(sa(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},EE={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"},OE={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 RE(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 _E(e){return{...e[ct.ScorecardClassicLevel],properties:{...e[ct.ScorecardClassicLevel]?.properties,...Md}}}const TE={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"},kE={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"},IE={properties:{subject:"Subject",assertions:"Assertions",where:j.listOf("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 ma(e,t){const r=Oi.flatMap(i=>{const o=Jr(i),s=t?t.extendTypes(o,i):o;return Object.keys(s)}),{ctx:n}=Cd("rootRedoclyConfigSchema",e);return{...qE,ConfigRoot:dE(n),ConfigApisProperties:mE(n),Subject:RE([...r,...CP]),...n,[ct.ScorecardClassicLevel]:_E(n)}}const qE={ConfigurableRule:IE,ConfigApis:fE,ConfigGovernance:zr,ConfigHTTP:hE,Client:yE,ClientGeneratorOptions:gE,ClientPagination:bE,ClientPaginationRule:Dd,Where:kE,BuiltinRule:wE,CustomRule:xE,BuiltinDecorator:PE,CustomDecorator:$E,BuiltinPreprocessor:EE,CustomPreprocessor:OE,Schema:Fe.Schema,SchemaProperties:Fe.SchemaProperties,PatternProperties:Fe.PatternProperties,NamedSchemas:Fe.NamedSchemas,DependentRequired:Fe.DependentRequired,Discriminator:Fe.Discriminator,DiscriminatorMapping:Fe.DiscriminatorMapping,ExternalDocs:Fe.ExternalDocs,Xml:Fe.Xml,Rules:vE,Decorators:SE,Preprocessors:AE,Assertions:TE},{theme:wk,...CE}=to.properties,jE={...to,properties:CE},Nd=ma(jE),Zr=j.normalizeTypes(Nd),_s="redocly.yaml",Ld={extends:["recommended"]},Li=".redocly.lint-ignore.yaml",Ud=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
8
|
+
deps: ${d}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(p){const[l,d]=o(p);s(p,l),c(p,d)}};function o({schema:p}){const l={},d={};for(const h in p){if(h==="__proto__")continue;const y=Array.isArray(p[h])?l:d;y[h]=p[h]}return[l,d]}function s(p,l=p.schema){const{gen:d,data:h,it:y}=p;if(Object.keys(l).length===0)return;const g=d.let("missing");for(const $ in l){const x=l[$];if(x.length===0)continue;const P=(0,n.propertyInData)(d,h,$,y.opts.ownProperties);p.setParams({property:$,depsCount:x.length,deps:x.join(", ")}),y.allErrors?d.if(P,()=>{for(const A of x)(0,n.checkReportMissingProp)(p,A)}):(d.if((0,t._)`${P} && (${(0,n.checkMissingProp)(p,x,g)})`),(0,n.reportMissingProp)(p,g),d.else())}}e.validatePropertyDeps=s;function c(p,l=p.schema){const{gen:d,data:h,keyword:y,it:g}=p,$=d.name("valid");for(const x in l)(0,r.alwaysValidSchema)(g,l[x])||(d.if((0,n.propertyInData)(d,h,x,g.opts.ownProperties),()=>{const P=p.subschema({keyword:y,schemaProp:x},$);p.mergeValidEvaluated(P,$)},()=>d.var($,!0)),p.ok($))}e.validateSchemaDeps=c,e.default=i})(Co)),Co}var zn={},yp;function b$(){if(yp)return zn;yp=1,Object.defineProperty(zn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:i})=>(0,e._)`{propertyName: ${i.propertyName}}`},code(i){const{gen:o,schema:s,data:c,it:p}=i;if((0,t.alwaysValidSchema)(p,s))return;const l=o.name("valid");o.forIn("key",c,d=>{i.setParams({propertyName:d}),i.subschema({keyword:"propertyNames",data:d,dataTypes:["string"],propertyName:d,compositeRule:!0},l),o.if((0,e.not)(l),()=>{i.error(!0),p.allErrors||o.break()})}),i.ok(l)}};return zn.default=n,zn}var Bn={},gp;function sd(){if(gp)return Bn;gp=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=At(),t=ke(),r=lt(),n=Ne(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:s})=>(0,t._)`{additionalProperty: ${s.additionalProperty}}`},code(s){const{gen:c,parentSchema:p,data:l,errsCount:d,it:h}=s,{schema:y=h.opts.defaultAdditionalProperties}=s;if(!d)throw new Error("ajv implementation error");const{allErrors:g,opts:$}=h;if(h.props=!0,$.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(h,y))return;const x=(0,e.allSchemaProperties)(p.properties),P=(0,e.allSchemaProperties)(p.patternProperties);A(),s.ok((0,t._)`${d} === ${r.default.errors}`);function A(){c.forIn("key",l,k=>{!x.length&&!P.length?O(k):c.if(S(k),()=>O(k))})}function S(k){let M;if(x.length>8){const H=(0,n.schemaRefOrVal)(h,p.properties,"properties");M=(0,e.isOwnProperty)(c,H,k)}else x.length?M=(0,t.or)(...x.map(H=>(0,t._)`${k} === ${H}`)):M=t.nil;return P.length&&(M=(0,t.or)(M,...P.map(H=>(0,t._)`${(0,e.usePattern)(s,H)}.test(${k})`))),(0,t.not)(M)}function v(k){c.code((0,t._)`delete ${l}[${k}]`)}function O(k){if($.removeAdditional==="all"||$.removeAdditional&&y===!1){v(k);return}if(y===!1){s.setParams({additionalProperty:k}),s.error(),g||c.break();return}if(typeof y=="object"&&!(0,n.alwaysValidSchema)(h,y)){const M=c.name("valid");$.removeAdditional==="failing"?(b(k,M,!1),c.if((0,t.not)(M),()=>{s.reset(),v(k)})):(b(k,M),g||c.if((0,t.not)(M),()=>c.break()))}}function b(k,M,H){const G={keyword:"additionalProperties",dataProp:k,dataPropType:n.Type.Str};H===!1&&Object.assign(G,{compositeRule:!0,createErrors:!1,allErrors:!1}),s.subschema(G,M)}}};return Bn.default=o,Bn}var Vn={},bp;function v$(){if(bp)return Vn;bp=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=wr(),t=At(),r=Ne(),n=sd(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:s,schema:c,parentSchema:p,data:l,it:d}=o;(d.opts.removeAdditional==="all"&&p.additionalProperties===void 0||d.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(d,n.default,"additionalProperties"));const h=(0,t.allSchemaProperties)(c);for(const P of h)d.definedProperties.add(P);d.opts.unevaluated&&h.length&&d.props!==!0&&(d.props=r.mergeEvaluated.props(s,(0,r.toHash)(h),d.props));const y=h.filter(P=>!(0,r.alwaysValidSchema)(d,c[P]));if(y.length===0)return;const g=s.name("valid");for(const P of y)$(P)?x(P):(s.if((0,t.propertyInData)(s,l,P,d.opts.ownProperties)),x(P),d.allErrors||s.else().var(g,!0),s.endIf()),o.it.definedProperties.add(P),o.ok(g);function $(P){return d.opts.useDefaults&&!d.compositeRule&&c[P].default!==void 0}function x(P){o.subschema({keyword:"properties",schemaProp:P,dataProp:P},g)}}};return Vn.default=i,Vn}var Hn={},vp;function w$(){if(vp)return Hn;vp=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=At(),t=ke(),r=Ne(),n=Ne(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:s,schema:c,data:p,parentSchema:l,it:d}=o,{opts:h}=d,y=(0,e.allSchemaProperties)(c),g=y.filter(O=>(0,r.alwaysValidSchema)(d,c[O]));if(y.length===0||g.length===y.length&&(!d.opts.unevaluated||d.props===!0))return;const $=h.strictSchema&&!h.allowMatchingProperties&&l.properties,x=s.name("valid");d.props!==!0&&!(d.props instanceof t.Name)&&(d.props=(0,n.evaluatedPropsToName)(s,d.props));const{props:P}=d;A();function A(){for(const O of y)$&&S(O),d.allErrors?v(O):(s.var(x,!0),v(O),s.if(x))}function S(O){for(const b in $)new RegExp(O).test(b)&&(0,r.checkStrictMode)(d,`property ${b} matches pattern ${O} (use allowMatchingProperties)`)}function v(O){s.forIn("key",p,b=>{s.if((0,t._)`${(0,e.usePattern)(o,O)}.test(${b})`,()=>{const k=g.includes(O);k||o.subschema({keyword:"patternProperties",schemaProp:O,dataProp:b,dataPropType:n.Type.Str},x),d.opts.unevaluated&&P!==!0?s.assign((0,t._)`${P}[${b}]`,!0):!k&&!d.allErrors&&s.if((0,t.not)(x),()=>s.break())})})}}};return Hn.default=i,Hn}var Kn={},wp;function x$(){if(wp)return Kn;wp=1,Object.defineProperty(Kn,"__esModule",{value:!0});const e=Ne(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:n,schema:i,it:o}=r;if((0,e.alwaysValidSchema)(o,i)){r.fail();return}const s=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),r.failResult(s,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return Kn.default=t,Kn}var Wn={},xp;function S$(){if(xp)return Wn;xp=1,Object.defineProperty(Wn,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:At().validateUnion,error:{message:"must match a schema in anyOf"}};return Wn.default=t,Wn}var Qn={},Sp;function P$(){if(Sp)return Qn;Sp=1,Object.defineProperty(Qn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:i})=>(0,e._)`{passingSchemas: ${i.passing}}`},code(i){const{gen:o,schema:s,parentSchema:c,it:p}=i;if(!Array.isArray(s))throw new Error("ajv implementation error");if(p.opts.discriminator&&c.discriminator)return;const l=s,d=o.let("valid",!1),h=o.let("passing",null),y=o.name("_valid");i.setParams({passing:h}),o.block(g),i.result(d,()=>i.reset(),()=>i.error(!0));function g(){l.forEach(($,x)=>{let P;(0,t.alwaysValidSchema)(p,$)?o.var(y,!0):P=i.subschema({keyword:"oneOf",schemaProp:x,compositeRule:!0},y),x>0&&o.if((0,e._)`${y} && ${d}`).assign(d,!1).assign(h,(0,e._)`[${h}, ${x}]`).else(),o.if(y,()=>{o.assign(d,!0),o.assign(h,x),P&&i.mergeEvaluated(P,e.Name)})})}}};return Qn.default=n,Qn}var Gn={},Pp;function $$(){if(Pp)return Gn;Pp=1,Object.defineProperty(Gn,"__esModule",{value:!0});const e=Ne(),t={keyword:"allOf",schemaType:"array",code(r){const{gen:n,schema:i,it:o}=r;if(!Array.isArray(i))throw new Error("ajv implementation error");const s=n.name("valid");i.forEach((c,p)=>{if((0,e.alwaysValidSchema)(o,c))return;const l=r.subschema({keyword:"allOf",schemaProp:p},s,!0);r.ok(s),r.mergeEvaluated(l)})}};return Gn.default=t,Gn}var Yn={},$p;function A$(){if($p)return Yn;$p=1,Object.defineProperty(Yn,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:o})=>(0,e.str)`must match "${o.ifClause}" schema`,params:({params:o})=>(0,e._)`{failingKeyword: ${o.ifClause}}`},code(o){const{gen:s,parentSchema:c,it:p}=o;c.then===void 0&&c.else===void 0&&(0,t.checkStrictMode)(p,'"if" without "then" and "else" is ignored');const l=i(p,"then"),d=i(p,"else");if(!l&&!d)return;const h=s.let("valid",!0),y=s.name("_valid");if(g(),o.reset(),l&&d){const x=s.let("ifClause");o.setParams({ifClause:x}),s.if(y,$("then",x),$("else",x))}else l?s.if(y,$("then")):s.if((0,e.not)(y),$("else"));o.pass(h,()=>o.error(!0));function g(){const x=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},y);o.mergeEvaluated(x)}function $(x,P){return()=>{const A=o.subschema({keyword:x},y);s.assign(h,y),o.mergeValidEvaluated(A,h),P?s.assign(P,(0,e._)`${x}`):o.setParams({ifClause:x})}}}};function i(o,s){const c=o.schema[s];return c!==void 0&&!(0,t.alwaysValidSchema)(o,c)}return Yn.default=n,Yn}var Jn={},Ap;function E$(){if(Ap)return Jn;Ap=1,Object.defineProperty(Jn,"__esModule",{value:!0});const e=Ne(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:n,it:i}){n.if===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "if" is ignored`)}};return Jn.default=t,Jn}var Ep;function oa(){if(Ep)return Nn;Ep=1,Object.defineProperty(Nn,"__esModule",{value:!0});const e=id(),t=h$(),r=od(),n=y$(),i=g$(),o=ia(),s=b$(),c=sd(),p=v$(),l=w$(),d=x$(),h=S$(),y=P$(),g=$$(),$=A$(),x=E$();function P(A=!1){const S=[d.default,h.default,y.default,g.default,$.default,x.default,s.default,c.default,o.default,p.default,l.default];return A?S.push(t.default,n.default):S.push(e.default,r.default),S.push(i.default),S}return Nn.default=P,Nn}var Xn={},ar={},Op;function ad(){if(Op)return ar;Op=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.dynamicAnchor=void 0;const e=ke(),t=lt(),r=eo(),n=to(),i={keyword:"$dynamicAnchor",schemaType:"string",code:c=>o(c,c.schema)};function o(c,p){const{gen:l,it:d}=c;d.schemaEnv.root.dynamicAnchors[p]=!0;const h=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(p)}`,y=d.errSchemaPath==="#"?d.validateName:s(c);l.if((0,e._)`!${h}`,()=>l.assign(h,y))}ar.dynamicAnchor=o;function s(c){const{schemaEnv:p,schema:l,self:d}=c.it,{root:h,baseId:y,localRefs:g,meta:$}=p.root,{schemaId:x}=d.opts,P=new r.SchemaEnv({schema:l,schemaId:x,root:h,baseId:y,localRefs:g,meta:$});return r.compileSchema.call(d,P),(0,n.getValidate)(c,P)}return ar.default=i,ar}var cr={},Rp;function cd(){if(Rp)return cr;Rp=1,Object.defineProperty(cr,"__esModule",{value:!0}),cr.dynamicRef=void 0;const e=ke(),t=lt(),r=to(),n={keyword:"$dynamicRef",schemaType:"string",code:o=>i(o,o.schema)};function i(o,s){const{gen:c,keyword:p,it:l}=o;if(s[0]!=="#")throw new Error(`"${p}" only supports hash fragment reference`);const d=s.slice(1);if(l.allErrors)h();else{const g=c.let("valid",!1);h(g),o.ok(g)}function h(g){if(l.schemaEnv.root.dynamicAnchors[d]){const $=c.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(d)}`);c.if($,y($,g),y(l.validateName,g))}else y(l.validateName,g)()}function y(g,$){return $?()=>c.block(()=>{(0,r.callRef)(o,g),c.let($,!0)}):()=>(0,r.callRef)(o,g)}}return cr.dynamicRef=i,cr.default=n,cr}var Zn={},_p;function O$(){if(_p)return Zn;_p=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=ad(),t=Ne(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return Zn.default=r,Zn}var ei={},Tp;function R$(){if(Tp)return ei;Tp=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=cd(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return ei.default=t,ei}var kp;function _$(){if(kp)return Xn;kp=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=ad(),t=cd(),r=O$(),n=R$(),i=[e.default,t.default,r.default,n.default];return Xn.default=i,Xn}var ti={},ri={},Ip;function T$(){if(Ip)return ri;Ip=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=ia(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return ri.default=t,ri}var ni={},qp;function k$(){if(qp)return ni;qp=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=ia(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return ni.default=t,ni}var ii={},Cp;function I$(){if(Cp)return ii;Cp=1,Object.defineProperty(ii,"__esModule",{value:!0});const e=Ne(),t={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:n,it:i}){n.contains===void 0&&(0,e.checkStrictMode)(i,`"${r}" without "contains" is ignored`)}};return ii.default=t,ii}var jp;function q$(){if(jp)return ti;jp=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=T$(),t=k$(),r=I$(),n=[e.default,t.default,r.default];return ti.default=n,ti}var oi={},si={},Mp;function C$(){if(Mp)return si;Mp=1,Object.defineProperty(si,"__esModule",{value:!0});const e=ke(),t=Ne(),r=lt(),i={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have unevaluated properties",params:({params:o})=>(0,e._)`{unevaluatedProperty: ${o.unevaluatedProperty}}`},code(o){const{gen:s,schema:c=o.it.opts.defaultUnevaluatedProperties,data:p,errsCount:l,it:d}=o,h=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!l)throw new Error("ajv implementation error");const{allErrors:y,props:g}=d;if(g instanceof e.Name)s.if((0,e._)`${g} !== true`,()=>s.forIn("key",p,A=>s.if(x(g,A),()=>$(A))));else if(g!==!0){const A=()=>s.forIn("key",p,S=>g===void 0?$(S):s.if(P(g,S),()=>$(S)));h&&d.errorPath.emptyStr()&&!d.compositeRule?s.if((0,e._)`${r.default.isAllOfVariant} === 0`,A):(!d.compositeRule||o.schema!==void 0)&&A()}h||(d.props=!0),o.ok((0,e._)`${l} === ${r.default.errors}`);function $(A){if(c===!1){o.setParams({unevaluatedProperty:A}),o.error(),y||s.break();return}if(!(0,t.alwaysValidSchema)(d,c)){const S=s.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:A,dataPropType:t.Type.Str},S),y||s.if((0,e.not)(S),()=>s.break())}}function x(A,S){return(0,e._)`!${A} || !${A}[${S}]`}function P(A,S){const v=[];for(const O in A)A[O]===!0&&v.push((0,e._)`${S} !== ${O}`);return(0,e.and)(...v)}}};return si.default=i,si}var ai={},Dp;function j$(){if(Dp)return ai;Dp=1,Object.defineProperty(ai,"__esModule",{value:!0});const e=ke(),t=Ne(),n={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:{message:({params:{len:i}})=>(0,e.str)`must NOT have more than ${i} items`,params:({params:{len:i}})=>(0,e._)`{limit: ${i}}`},code(i){const{gen:o,schema:s,data:c,it:p}=i,l=p.items||0;if(l===!0)return;const d=o.const("len",(0,e._)`${c}.length`);if(s===!1)i.setParams({len:l}),i.fail((0,e._)`${d} > ${l}`);else if(typeof s=="object"&&!(0,t.alwaysValidSchema)(p,s)){const y=o.var("valid",(0,e._)`${d} <= ${l}`);o.if((0,e.not)(y),()=>h(y,l)),i.ok(y)}p.items=!0;function h(y,g){o.forRange("i",g,d,$=>{i.subschema({keyword:"unevaluatedItems",dataProp:$,dataPropType:t.Type.Num},y),p.allErrors||o.if((0,e.not)(y),()=>o.break())})}}};return ai.default=n,ai}var Np;function pd(){if(Np)return oi;Np=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=C$(),t=j$(),r=[e.default,t.default];return oi.default=r,oi}var ci={},pi={},Lp;function M$(){if(Lp)return pi;Lp=1,Object.defineProperty(pi,"__esModule",{value:!0});const e=ke(),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:n})=>(0,e.str)`must match format "${n}"`,params:({schemaCode:n})=>(0,e._)`{format: ${n}}`},code(n,i){const{gen:o,data:s,$data:c,schema:p,schemaCode:l,it:d}=n,{opts:h,errSchemaPath:y,schemaEnv:g,self:$}=d;if(!h.validateFormats)return;c?x():P();function x(){const A=o.scopeValue("formats",{ref:$.formats,code:h.code.formats}),S=o.const("fDef",(0,e._)`${A}[${l}]`),v=o.let("fType"),O=o.let("format");o.if((0,e._)`typeof ${S} == "object" && !(${S} instanceof RegExp)`,()=>o.assign(v,(0,e._)`${S}.type || "string"`).assign(O,(0,e._)`${S}.validate`),()=>o.assign(v,(0,e._)`"string"`).assign(O,S)),n.fail$data((0,e.or)(b(),k()));function b(){return h.strictSchema===!1?e.nil:(0,e._)`${l} && !${O}`}function k(){const M=g.$async?(0,e._)`(${S}.async ? await ${O}(${s}) : ${O}(${s}))`:(0,e._)`${O}(${s})`,H=(0,e._)`(typeof ${O} == "function" ? ${M} : ${O}.test(${s}))`;return(0,e._)`${O} && ${O} !== true && ${v} === ${i} && !${H}`}}function P(){const A=$.formats[p];if(!A){b();return}if(A===!0)return;const[S,v,O]=k(A);S===i&&n.pass(M());function b(){if(h.strictSchema===!1){$.logger.warn(H());return}throw new Error(H());function H(){return`unknown format "${p}" ignored in schema at path "${y}"`}}function k(H){const G=H instanceof RegExp?(0,e.regexpCode)(H):h.code.formats?(0,e._)`${h.code.formats}${(0,e.getProperty)(p)}`:void 0,Z=o.scopeValue("formats",{key:p,ref:H,code:G});return typeof H=="object"&&!(H instanceof RegExp)?[H.type||"string",H.validate,(0,e._)`${Z}.validate`]:["string",H,Z]}function M(){if(typeof A=="object"&&!(A instanceof RegExp)&&A.async){if(!g.$async)throw new Error("async format in sync schema");return(0,e._)`await ${O}(${s})`}return typeof v=="function"?(0,e._)`${O}(${s})`:(0,e._)`${O}.test(${s})`}}}};return pi.default=r,pi}var Up;function sa(){if(Up)return ci;Up=1,Object.defineProperty(ci,"__esModule",{value:!0});const t=[M$().default];return ci.default=t,ci}var Kt={},Fp;function ld(){return Fp||(Fp=1,Object.defineProperty(Kt,"__esModule",{value:!0}),Kt.contentVocabulary=Kt.metadataVocabulary=void 0,Kt.metadataVocabulary=["title","description","default","deprecated","examples"],Kt.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Kt}var zp;function D$(){if(zp)return wn;zp=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=nd(),t=na(),r=oa(),n=_$(),i=q$(),o=pd(),s=sa(),c=ld(),p=[n.default,e.default,t.default,(0,r.default)(!0),s.default,c.metadataVocabulary,c.contentVocabulary,i.default,o.default];return wn.default=p,wn}var li={},Cr={},Bp;function N$(){if(Bp)return Cr;Bp=1,Object.defineProperty(Cr,"__esModule",{value:!0}),Cr.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Cr.DiscrError=e={})),Cr}var Vp;function aa(){if(Vp)return li;Vp=1,Object.defineProperty(li,"__esModule",{value:!0});const e=ke(),t=N$(),r=eo(),n=xr(),i=Ne(),o={message:({params:{discrError:p,tagName:l}})=>p===t.DiscrError.Tag?`tag "${l}" must be string`:`value of tag "${l}" must be in oneOf or anyOf`,params:({params:{discrError:p,tag:l,tagName:d}})=>(0,e._)`{error: ${p}, tag: ${d}, tagValue: ${l}}`};function s(p,l){var d;if(!(!p.allOf||!Array.isArray(p.allOf))){for(const h of p.allOf)if(!((d=h?.properties)===null||d===void 0)&&d[l])return h.properties[l]}}const c={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(p){const{gen:l,data:d,schema:h,parentSchema:y,it:g}=p,$=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!g.opts.discriminator)throw new Error("discriminator: requires discriminator option");const x=h.propertyName;if(typeof x!="string")throw new Error("discriminator: requires propertyName");if(!$)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const P=y[$],A=l.let("valid",!1),S=l.const("tag",(0,e._)`${d}${(0,e.getProperty)(x)}`);l.if((0,e._)`typeof ${S} == "string"`,()=>v(),()=>p.error(!1,{discrError:t.DiscrError.Tag,tag:S,tagName:x})),p.ok(A);function v(){const k=b();l.if(!1);for(const M in k)l.elseIf((0,e._)`${S} === ${M}`),l.assign(A,O(k[M]));l.else(),p.error(!1,{discrError:t.DiscrError.Mapping,tag:S,tagName:x}),l.endIf()}function O(k){const M=l.name("valid"),H=p.subschema({keyword:$,schemaProp:k},M);return p.mergeEvaluated(H,e.Name),M}function b(){var k;const M={},H=Z(y);let G=!0;for(let ee=0;ee<P.length;ee++){let ie=P[ee];const Pe=ie?.$ref;if(Pe&&h.mapping){const{mapping:Le}=h,Se=Object.keys(Le).filter(qe=>Le[qe]===ie.$ref);if(Se.length){for(const qe of Se)de(qe,ee);continue}}if(Pe&&!(0,i.schemaHasRulesButRef)(ie,g.self.RULES)&&(ie=r.resolveRef.call(g.self,g.schemaEnv.root,g.baseId,Pe),ie instanceof r.SchemaEnv&&(ie=ie.schema),ie===void 0))throw new n.default(g.opts.uriResolver,g.baseId,Pe);let Ie=(k=ie?.properties)===null||k===void 0?void 0:k[x];if(!Ie&&ie?.allOf&&(Ie=s(ie,x)),typeof Ie!="object")throw new Error(`discriminator: ${$} subschemas (or referenced schemas) must have "properties/${x}" or match mapping`);G=G&&(H||Z(ie)),te(Ie,ee)}if(!G)throw new Error(`discriminator: "${x}" must be required`);return M;function Z(ee){if(Array.isArray(ee.required)&&ee.required.includes(x))return!0;if(ee.allOf&&Array.isArray(ee.allOf))for(const ie of ee.allOf){const Pe=ie;if(Array.isArray(Pe.required)&&Pe.required.includes(x))return!0}return!1}function te(ee,ie){if(ee.const)de(ee.const,ie);else if(ee.enum)for(const Pe of ee.enum)de(Pe,ie);else throw new Error(`discriminator: "properties/${x}" must have "const" or "enum"`)}function de(ee,ie){if(typeof ee!="string"||ee in M)throw new Error(`discriminator: "${x}" values must be unique strings`);M[ee]=ie}}}};return li.default=c,li}var ui={};const L$="https://json-schema.org/draft/2020-12/schema",U$="https://json-schema.org/draft/2020-12/schema",F$={"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},z$="meta",B$="Core and Validation specifications meta-schema",V$=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],H$=["object","boolean"],K$="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",W$={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}},Q$={$schema:L$,$id:U$,$vocabulary:F$,$dynamicAnchor:z$,title:B$,allOf:V$,type:H$,$comment:K$,properties:W$},G$="https://json-schema.org/draft/2020-12/schema",Y$="https://json-schema.org/draft/2020-12/meta/applicator",J$={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},X$="meta",Z$="Applicator vocabulary meta-schema",eA=["object","boolean"],tA={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"}},rA={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},nA={$schema:G$,$id:Y$,$vocabulary:J$,$dynamicAnchor:X$,title:Z$,type:eA,properties:tA,$defs:rA},iA="https://json-schema.org/draft/2020-12/schema",oA="https://json-schema.org/draft/2020-12/meta/unevaluated",sA={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},aA="meta",cA="Unevaluated applicator vocabulary meta-schema",pA=["object","boolean"],lA={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},uA={$schema:iA,$id:oA,$vocabulary:sA,$dynamicAnchor:aA,title:cA,type:pA,properties:lA},dA="https://json-schema.org/draft/2020-12/schema",fA="https://json-schema.org/draft/2020-12/meta/content",mA={"https://json-schema.org/draft/2020-12/vocab/content":!0},hA="meta",yA="Content vocabulary meta-schema",gA=["object","boolean"],bA={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},vA={$schema:dA,$id:fA,$vocabulary:mA,$dynamicAnchor:hA,title:yA,type:gA,properties:bA},wA="https://json-schema.org/draft/2020-12/schema",xA="https://json-schema.org/draft/2020-12/meta/core",SA={"https://json-schema.org/draft/2020-12/vocab/core":!0},PA="meta",$A="Core vocabulary meta-schema",AA=["object","boolean"],EA={$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"}}},OA={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},RA={$schema:wA,$id:xA,$vocabulary:SA,$dynamicAnchor:PA,title:$A,type:AA,properties:EA,$defs:OA},_A="https://json-schema.org/draft/2020-12/schema",TA="https://json-schema.org/draft/2020-12/meta/format-annotation",kA={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},IA="meta",qA="Format vocabulary meta-schema for annotation results",CA=["object","boolean"],jA={format:{type:"string"}},MA={$schema:_A,$id:TA,$vocabulary:kA,$dynamicAnchor:IA,title:qA,type:CA,properties:jA},DA="https://json-schema.org/draft/2020-12/schema",NA="https://json-schema.org/draft/2020-12/meta/meta-data",LA={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},UA="meta",FA="Meta-data vocabulary meta-schema",zA=["object","boolean"],BA={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}},VA={$schema:DA,$id:NA,$vocabulary:LA,$dynamicAnchor:UA,title:FA,type:zA,properties:BA},HA="https://json-schema.org/draft/2020-12/schema",KA="https://json-schema.org/draft/2020-12/meta/validation",WA={"https://json-schema.org/draft/2020-12/vocab/validation":!0},QA="meta",GA="Validation vocabulary meta-schema",YA=["object","boolean"],JA={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"}}},XA={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:[]}},ZA={$schema:HA,$id:KA,$vocabulary:WA,$dynamicAnchor:QA,title:GA,type:YA,properties:JA,$defs:XA};var Hp;function eE(){if(Hp)return ui;Hp=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=Q$,t=nA,r=uA,n=vA,i=RA,o=MA,s=VA,c=ZA,p=["/properties"];function l(d){return[e,t,r,n,i,h(this,o),s,h(this,c)].forEach(y=>this.addMetaSchema(y,void 0,!1)),this;function h(y,g){return d?y.$dataMetaSchema(g,p):g}}return ui.default=l,ui}var Kp;function tE(){return Kp||(Kp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv2020=void 0;const r=ta(),n=D$(),i=aa(),o=eE(),s="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(g={}){super({...g,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(g=>this.addVocabulary(g)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:g,meta:$}=this.opts;$&&(o.default.call(this,g),this.refs["http://json-schema.org/schema"]=s)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(s)?s:void 0)}}t.Ajv2020=c,e.exports=t=c,e.exports.Ajv2020=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var p=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var l=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var d=Jr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return d.default}});var h=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(hn,hn.exports)),hn.exports}var ud=tE();const dd=Y.getDefaultExportFromCjs(ud);let jo;function rE(){return jo||(jo=new ud.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),jo}function Wp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>rE().validate(i,r));return n===-1&&(n=0),t[n]}}function dr(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"){const{default:n,format:i,...o}=t;return o}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(Y.isPlainObject(t.properties)||Y.isPlainObject(t.additionalProperties)||Y.isPlainObject(t.items)&&(Y.isPlainObject(t.items.properties)||Y.isPlainObject(t.items.additionalProperties)||t.items.oneOf))return nE(e,t,r);if(t.oneOf)if(t.discriminator){const n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);const i={},o=t.oneOf.map((s,c)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${c} in oneOf.`);const p=s?.properties?.[n];if(!p||typeof p=="boolean")throw new Error(`Unexpected property '${p}' schema in ${e} at position ${c} in oneOf.`);const l=p.const,d=dr(l,s,r);return typeof d=="string"&&(i[l]=d),d});return(s,c)=>{if(Y.isPlainObject(s)){const p=s[n];if(typeof p=="string"){const l=i[p];if(l&&r[l])return l}}return Wp(t.oneOf,o)(s,c)}}else{const n=t.oneOf.map((i,o)=>dr(e+"_"+o,i,r));return Wp(t.oneOf,n)}return t}function nE(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.`);const n=t.nodeTypeName??e,i={};for(const[p,l]of Object.entries(t.properties||{}))i[p]=dr(n+"."+p,l,r);let o;Y.isPlainObject(t.additionalProperties)&&(o=dr(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let s;Y.isPlainObject(t.items)&&(Y.isPlainObject(t.items.properties)||Y.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(s=dr(e+"_items",t.items,r));let c=t.required;return t.oneOf&&t.oneOf.every(p=>!!p.required)&&(c=p=>{const l=t.oneOf.map(h=>[...t.required||[],...h.required]);let d=l.findIndex(h=>h.every(y=>p[y]!==void 0));return d===-1&&(d=0),l[d]}),r[n]={properties:i,additionalProperties:o,items:s,required:c,description:t.description,documentationLink:t.documentationLink},n}function fd(e,t){const r={},n=dr(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const iE=["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"],oE=["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"],sE=["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"],aE=["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"],cE=["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"],pE=["info-contact","spec-ref-siblings"],lE=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],uE=["no-unused-types","type-description"],dE=["struct","no-unresolved-refs"],fE=[...iE,...oE,...sE,...aE,...cE,...pE,...lE,...uE,...dE],mE=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],hE=["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"],md=[...hE,...mE],hd={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!j.isAbsoluteUrl(e)&&!Y.path.extname(e)?{type:"string"}:{...zr,directResolveAs:{name:"ConfigGovernance",...zr}},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"},zr={properties:hd},yE=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...zr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),gE={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"},bE=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Gs(zr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),vE={properties:{headers:{type:"array",items:{type:"string"}}}},wE={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:j.mapOf("ClientGeneratorOptions"),pagination:"ClientPagination"}},xE={properties:{},additionalProperties:{}},yd={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"}}},SE={properties:{...yd.properties,exclude:{type:"array",items:{type:"string"}},operations:j.mapOf("ClientPaginationRule")}},PE={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(fE.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(ea(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},$E={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"},AE={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"},EE={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(md.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(ea(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},OE={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},RE={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},_E={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(md.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(ea(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},TE={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"},kE={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 IE(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 qE(e){return{...e[ct.ScorecardClassicLevel],properties:{...e[ct.ScorecardClassicLevel]?.properties,...hd}}}const CE={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"},jE={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"},ME={properties:{subject:"Subject",assertions:"Assertions",where:j.listOf("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 ca(e,t){const r=Ei.flatMap(i=>{const o=Yr(i),s=t?t.extendTypes(o,i):o;return Object.keys(s)}),{ctx:n}=fd("rootRedoclyConfigSchema",e);return{...DE,ConfigRoot:yE(n),ConfigApisProperties:bE(n),Subject:IE([...r,...NP]),...n,[ct.ScorecardClassicLevel]:qE(n)}}const DE={ConfigurableRule:ME,ConfigApis:gE,ConfigGovernance:zr,ConfigHTTP:vE,Client:wE,ClientGeneratorOptions:xE,ClientPagination:SE,ClientPaginationRule:yd,Where:jE,BuiltinRule:$E,CustomRule:AE,BuiltinDecorator:OE,CustomDecorator:RE,BuiltinPreprocessor:TE,CustomPreprocessor:kE,Schema:Fe.Schema,SchemaProperties:Fe.SchemaProperties,PatternProperties:Fe.PatternProperties,NamedSchemas:Fe.NamedSchemas,DependentRequired:Fe.DependentRequired,Discriminator:Fe.Discriminator,DiscriminatorMapping:Fe.DiscriminatorMapping,ExternalDocs:Fe.ExternalDocs,Xml:Fe.Xml,Rules:PE,Decorators:EE,Preprocessors:_E,Assertions:CE},{theme:$k,...NE}=Ji.properties,LE={...Ji,properties:NE},gd=ca(LE),Xr=j.normalizeTypes(gd),$s="redocly.yaml",bd={extends:["recommended"]},Ci=".redocly.lint-ignore.yaml",vd=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
9
9
|
# See https://redocly.com/docs/cli/ for more information.
|
|
10
|
-
`,ha="configBundler",ya="pluginsCollector",Fd=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function zd(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function fi(e,t){const r=new Set(t);let n=0;for(const i of e)r.has(i)&&n++;return n}function ME(e,t){const r=t.direction||t,n=t.property;for(let i=1;i<e.length;i++){let o=e[i],s=e[i-1];if(n){const p=e[i][n],l=e[i-1][n];if(!p||!l)return!1;o=p,s=l}if(typeof o=="string"&&typeof s=="string"&&(o=o.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?o>=s:o<=s))return!1}return!0}var mi={exports:{}},hi={},yi={},Jp;function DE(){if(Jp)return yi;Jp=1,Object.defineProperty(yi,"__esModule",{value:!0});const e=ke(),t=e.operators,r={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:t.LTE,fail:t.GT},{okStr:"<",ok:t.LT,fail:t.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:t.GTE,fail:t.LT},{okStr:">",ok:t.GT,fail:t.LTE}]}},n={message:s=>(0,e.str)`must be ${o(s).okStr} ${s.schemaCode}`,params:s=>(0,e._)`{comparison: ${o(s).okStr}, limit: ${s.schemaCode}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{data:c,schemaCode:p}=s;s.fail$data((0,e._)`${c} ${o(s).fail} ${p} || isNaN(${c})`)}};function o(s){var c;const p=s.keyword,l=!((c=s.parentSchema)===null||c===void 0)&&c[r[p].exclusive]?1:0;return r[p].ops[l]}return yi.default=i,yi}var gi={},Xp;function NE(){if(Xp)return gi;Xp=1,Object.defineProperty(gi,"__esModule",{value:!0});const e={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},t={keyword:Object.keys(e),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:n}){const i=e[r];if(n[i]===void 0)throw new Error(`${r} can only be used with ${i}`)}};return gi.default=t,gi}var Zp;function LE(){if(Zp)return hi;Zp=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=oo(),t=ua(),r=Td(),n=da(),i=pa(),o=DE(),s=NE(),c=["title","description","default"],p=["$schema","id","$defs",{keyword:"$comment"},"definitions",e.default],l=[...i.default.slice(1),o.default,s.default],d=[p,l,(0,t.default)(),n.default,c,r.default];return hi.default=d,hi}const UE="http://json-schema.org/draft-04/schema#",FE="http://json-schema.org/draft-04/schema#",zE="Core schema meta-schema",BE={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}},VE="object",HE={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:"#"}},KE={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},WE={id:UE,$schema:FE,description:zE,definitions:BE,type:VE,properties:HE,dependencies:KE,default:{}};var el;function QE(){return el||(el=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=aa(),n=LE(),i=fa(),o=WE,s=["/properties"],c="http://json-schema.org/draft-04/schema";class p extends r.default{constructor($={}){super({...$,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema($,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=p,e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=Xr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var y=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(mi,mi.exports)),mi.exports}var GE=QE();const YE=Y.getDefaultExportFromCjs(GE);var bi={exports:{}},Uo={},tl;function JE(){return tl||(tl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(te,de){return{validate:te,compare:de}}e.fullFormats={date:t(o,s),time:t(p(!0),l),"date-time":t(y(!0),g),"iso-time":t(p(),d),"iso-date-time":t(y(),$),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:A,"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:Z,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:v,int32:{type:"number",validate:k},int64:{type:"number",validate:M},float:{type:"number",validate:H},double:{type:"number",validate:H},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\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,g),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-date-time":t(/^\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,$),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},e.formatNames=Object.keys(e.fullFormats);function r(te){return te%4===0&&(te%100!==0||te%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(te){const de=n.exec(te);if(!de)return!1;const ee=+de[1],ie=+de[2],Pe=+de[3];return ie>=1&&ie<=12&&Pe>=1&&Pe<=(ie===2&&r(ee)?29:i[ie])}function s(te,de){if(te&&de)return te>de?1:te<de?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function p(te){return function(ee){const ie=c.exec(ee);if(!ie)return!1;const Pe=+ie[1],Ie=+ie[2],Le=+ie[3],Se=ie[4],qe=ie[5]==="-"?-1:1,_=+(ie[6]||0),R=+(ie[7]||0);if(_>23||R>59||te&&!Se)return!1;if(Pe<=23&&Ie<=59&&Le<60)return!0;const C=Ie-R*qe,q=Pe-_*qe-(C<0?1:0);return(q===23||q===-1)&&(C===59||C===-1)&&Le<61}}function l(te,de){if(!(te&&de))return;const ee=new Date("2020-01-01T"+te).valueOf(),ie=new Date("2020-01-01T"+de).valueOf();if(ee&&ie)return ee-ie}function d(te,de){if(!(te&&de))return;const ee=c.exec(te),ie=c.exec(de);if(ee&&ie)return te=ee[1]+ee[2]+ee[3],de=ie[1]+ie[2]+ie[3],te>de?1:te<de?-1:0}const h=/t|\s/i;function y(te){const de=p(te);return function(ie){const Pe=ie.split(h);return Pe.length===2&&o(Pe[0])&&de(Pe[1])}}function g(te,de){if(!(te&&de))return;const ee=new Date(te).valueOf(),ie=new Date(de).valueOf();if(ee&&ie)return ee-ie}function $(te,de){if(!(te&&de))return;const[ee,ie]=te.split(h),[Pe,Ie]=de.split(h),Le=s(ee,Pe);if(Le!==void 0)return Le||l(ie,Ie)}const x=/\/|:/,P=/^(?:[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 A(te){return x.test(te)&&P.test(te)}const S=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(te){return S.lastIndex=0,S.test(te)}const O=-2147483648,b=2**31-1;function k(te){return Number.isInteger(te)&&te<=b&&te>=O}function M(te){return Number.isInteger(te)}function H(){return!0}const G=/[^\\]\\Z/;function Z(te){if(G.test(te))return!1;try{return new RegExp(te),!0}catch{return!1}}})(Uo)),Uo}var Fo={},vi={exports:{}},wi={},rl;function XE(){if(rl)return wi;rl=1,Object.defineProperty(wi,"__esModule",{value:!0});const e=$d(),t=pa(),r=ua(),n=da(),i=kd(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return wi.default=o,wi}const ZE="http://json-schema.org/draft-07/schema#",eO="http://json-schema.org/draft-07/schema#",tO="Core schema meta-schema",rO={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:[]}},nO=["object","boolean"],iO={$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:"#"}},oO={$schema:ZE,$id:eO,title:tO,definitions:rO,type:nO,properties:iO,default:!0};var nl;function sO(){return nl||(nl=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=aa(),n=XE(),i=fa(),o=oO,s=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema($,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=p,e.exports=t=p,e.exports.Ajv=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=Xr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var y=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(vi,vi.exports)),vi.exports}var il;function aO(){return il||(il=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=sO(),r=ke(),n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:c,schemaCode:p})=>(0,r.str)`should be ${i[c].okStr} ${p}`,params:({keyword:c,schemaCode:p})=>(0,r._)`{comparison: ${i[c].okStr}, limit: ${p}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(c){const{gen:p,data:l,schemaCode:d,keyword:h,it:y}=c,{opts:g,self:$}=y;if(!g.validateFormats)return;const x=new t.KeywordCxt(y,$.RULES.all.format.definition,"format");x.$data?P():A();function P(){const v=p.scopeValue("formats",{ref:$.formats,code:g.code.formats}),O=p.const("fmt",(0,r._)`${v}[${x.schemaCode}]`);c.fail$data((0,r.or)((0,r._)`typeof ${O} != "object"`,(0,r._)`${O} instanceof RegExp`,(0,r._)`typeof ${O}.compare != "function"`,S(O)))}function A(){const v=x.schema,O=$.formats[v];if(!O||O===!0)return;if(typeof O!="object"||O instanceof RegExp||typeof O.compare!="function")throw new Error(`"${h}": format "${v}" does not define "compare" function`);const b=p.scopeValue("formats",{key:v,ref:O,code:g.code.formats?(0,r._)`${g.code.formats}${(0,r.getProperty)(v)}`:void 0});c.fail$data(S(b))}function S(v){return(0,r._)`${v}.compare(${l}, ${d}) ${i[h].fail} 0`}},dependencies:["format"]};const s=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=s})(Fo)),Fo}var ol;function cO(){return ol||(ol=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=JE(),n=aO(),i=ke(),o=new i.Name("fullFormats"),s=new i.Name("fastFormats"),c=(l,d={keywords:!0})=>{if(Array.isArray(d))return p(l,d,r.fullFormats,o),l;const[h,y]=d.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,o],g=d.formats||r.formatNames;return p(l,g,h,y),d.keywords&&(0,n.default)(l),l};c.get=(l,d="full")=>{const y=(d==="fast"?r.fastFormats:r.fullFormats)[l];if(!y)throw new Error(`Unknown format "${l}"`);return y};function p(l,d,h,y){var g,$;(g=($=l.opts.code).formats)!==null&&g!==void 0||($.formats=(0,i._)`require("ajv-formats/dist/formats").${y}`);for(const x of d)l.addFormat(x,h[x])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(bi,bi.exports)),bi.exports}var pO=cO();const lO=Y.getDefaultExportFromCjs(pO),uO=["title","description","example","examples","default","deprecated"];function sl(e){return e==="draft4"?"id":"$id"}function dO(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class so{instances={};sharedValidators=new Map;validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:s,allowAdditionalProperties:c,ajvContext:p,specVersion:l}=n,d=dO(l),h=this.getValidator(r,i,s,c,d);if(!h)return{valid:!0,errors:[]};const y={instancePath:o,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!h.call(p??{},t,y),errors:(h.errors||[]).map($)};function $(x){let P=x.message;const A=x.keyword==="enum"?x.params.allowedValues:void 0;A&&(P+=` ${A.map(O=>`"${O}"`).join(", ")}`),x.keyword==="type"&&(P=`type ${P}`);const S=x.instancePath.substring(o.length+1),v=S.substring(S.lastIndexOf("/")+1);if(v&&(P=`\`${v}\` property ${P}`),x.keyword==="additionalProperties"||x.keyword==="unevaluatedProperties"){const O=x.params.additionalProperty||x.params.unevaluatedProperty;P=`${P} \`${O}\``,x.instancePath+="/"+j.escapePointerFragment(O)}return{...x,message:P,suggest:A}}}getAjv(t,r){if(!this.instances[r]){const n=sl(r),i={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(o,s,c){const p=decodeURI(o.split("#")[0]),l=t({$ref:s},p);return!l||!l.location?!1:{[n]:encodeURI(l.location.source.absoluteRef)+"#"+c,...l.node}}};this.instances[r]=r==="2020"?new qd(i):new YE(i),lO(this.instances[r])}return this.instances[r]}getValidator(t,r,n,i,o){const s=this.getAjv(n,o);if(j.isRef(t)&&!j.isRefWithSiblings(t)){const d=n(t,r.source.absoluteRef);d.location&&Y.isPlainObject(d.node)&&(t=d.node,r=d.location)}const c=Y.isPlainObject(t)?fO(t,o):void 0;if(c){const d=this.sharedValidators.get(c);if(d)return d;s.setDefaultUnevaluatedProperties(i);const h=s.compile(t);return this.sharedValidators.set(c,h),h}const p=encodeURI(r.absolutePointer),l=sl(o);return s.getSchema(p)||(s.setDefaultUnevaluatedProperties(i),s.addSchema({[l]:p,...t},p)),s.getSchema(p)}}function fO(e,t){const r={...e};for(const i of uO)delete r[i];const n=JSON.stringify(r);if(!n.includes('"$ref"'))return`${t}:${n}`}const Bd=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Vd=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),al=new WeakMap,mO=new j.Location(new j.Source("assertion",""),"#/schema"),Zt={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Lr(t);return i.map(s=>!o?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:it(e)?r:Y.isPlainObject(n)?r.child(s).key():r.key()}).filter(j.isTruthy)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Lr(t);return i.map(s=>o?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:it(e)?r:Y.isPlainObject(n)?r.child(s).key():r.key()}).filter(j.isTruthy)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||Y.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>!t.includes(i)&&{message:`${JSON.stringify(i)} should be one of the predefined values`,location:it(e)?r:r.child(i).key()}).filter(j.isTruthy),defined:(e,t=!0,{baseLocation:r})=>{const 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(j.isTruthy),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const n=Array.isArray(e)?e:[e];return t.map(i=>!n.includes(i)&&{message:`${i} should be in the list`,location:r}).filter(j.isTruthy)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||Y.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>t.includes(i)&&{message:`${JSON.stringify(i)} is disallowed`,location:it(e)?r:r.child(i).key()}).filter(j.isTruthy),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:it(e)?r:r.child(n).key()}).filter(j.isTruthy):e!==t?[{message:`${JSON.stringify(e)} should be equal ${JSON.stringify(t)}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{const 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"||Y.isPlainObject(e))return[];const n=Array.isArray(e)?e:[e],i={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(o=>!o.match(i[t])&&{message:`${JSON.stringify(o)} should use ${t}`,location:it(e)?r:r.child(o).key()}).filter(j.isTruthy)},sortOrder:(e,t,{baseLocation:r})=>{const n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&Y.isPlainObject(e[0])&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||ME(e,t)?[]:[{message:`Should be sorted in ${n==="asc"?"an ascending":"a descending"} order${i?` by property ${i}`:""}`,location:r}]},mutuallyExclusive:(e,t,{baseLocation:r})=>fi(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(fi(e,t)>0?fi(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>fi(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[];const i=n.hasOwnProperty("$ref");if(typeof t=="boolean")return(t?i:!i)?[]:[{message:t?"should use $ref":"should not use $ref",location:i?r:r.key()}];const o=Lr(t);return i&&o?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:i?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:i})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let o=al.get(t);o||(o=new so,al.set(t,o));const s=j.isRef(n)&&i(n)?.location||r;let c;try{({errors:c}=o.validate(e,t,{schemaLoc:mO,instancePath:"",resolve:i,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(p){throw new Error(`the 'schema' assertion has an invalid schema: ${p.message}`)}return c.map(p=>{const l=p.instancePath?j.joinPointer(s.pointer,p.instancePath.slice(1)):s.pointer,d=new j.Location(s.source,l),h=p.keyword==="additionalProperties"||p.keyword==="unevaluatedProperties";return{message:p.message,location:h?d.key():d}})}};function hO(e){return(t,r,n)=>e.call(null,t,r,n)}function yO(e,t){if(!e.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&Y.isPlainObject(o)){const s=o;if(t){cl(t,s);for(const c of s.where||[])cl(t,c)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function cl(e,t){for(const r of Object.keys(t.assertions||{})){const[n,i]=r.split("/");if(!n||!i)continue;const o=e.find(s=>s.id===n);if(!o)throw Error(`Plugin ${n} isn't found.`);if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${n} doesn't export assertions function with name ${i}.`);Zt[r]=hO(o.assertions[i])}}class en{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=zd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>yO({rules:i},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({...ea(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||!Y.isPlainObject(this.resolvedConfig?.apis?.[t]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[t];return new en({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){const r=this.configPath?Y.pathBrowserifyExports.dirname(this.configPath):process.cwd(),n=j.isAbsoluteUrl(t)?t:Y.pathBrowserifyExports.resolve(r,t);delete this.ignore[n]}saveIgnore(){const t=this.configPath?Y.pathBrowserifyExports.dirname(this.configPath):process.cwd(),r=Y.pathBrowserifyExports.join(t,Li),n={};for(const i of Object.keys(this.ignore)){const o=j.isAbsoluteUrl(i)?i:Ks(Y.pathBrowserifyExports.relative(t,i)),s=n[o]=this.ignore[i];for(const c of Object.keys(s))s[c]=Array.from(s[c])}(void 0)(r,Ud+j.stringifyYaml(n))}addIgnore(t){const r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;const i=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(i[t.ruleId]=i[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){const r=t.location[0];if(r.pointer===void 0)return t;const i=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],o=i&&i.has(r.pointer);return o?{...t,ignored:o}:t}extendTypes(t,r){let n=t;for(const i of this.plugins)if(i.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!i.typeExtension.oas3)continue;n=i.typeExtension.oas3(n,r);break;case"oas2":if(!i.typeExtension.oas2)continue;n=i.typeExtension.oas2(n,r);break;case"async2":if(!i.typeExtension.async2)continue;n=i.typeExtension.async2(n,r);break;case"async3":if(!i.typeExtension.async3)continue;n=i.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!i.typeExtension.arazzo1)continue;n=i.typeExtension.arazzo1(n,r);break;case"overlay1":if(!i.typeExtension.overlay1)continue;n=i.typeExtension.overlay1(n,r);break;case"openrpc1":if(!i.typeExtension.openrpc1)continue;n=i.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);const 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);const 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);const n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){const t=[],r=[],n=[];for(const i of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[i]).filter(o=>!this._usedRules.has(o))),r.push(...Object.keys(this.decorators[i]).filter(o=>!this._usedRules.has(o))),n.push(...Object.keys(this.preprocessors[i]).filter(o=>!this._usedRules.has(o)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{const 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":{const 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":{const 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":{const 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":{const 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":{const 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":{const 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":{const 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":{const r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(const r of t||[])for(const n of Oi)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(const i of this.rules[n].assertions)i.assertionId===r&&(i.severity="off")}skipPreprocessors(t){for(const r of t||[])for(const n of Oi)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(const r of t||[])for(const n of Oi)this.decorators[n][r]&&(this.decorators[n][r]="off")}}function mt(e){return e!==void 0}function Br(e,t,r,n){return e.flatMap(i=>Object.keys(i).map(o=>{const s=i[o],c=r==="rules"?t.getRuleSettings(o,n):r==="preprocessors"?t.getPreprocessorSettings(o,n):t.getDecoratorSettings(o,n);if(c.severity==="off")return;const p=c.severity,l=c.message,d=s(c);return Array.isArray(d)?d.map(h=>({severity:p,ruleId:o,message:l,visitor:h})):{severity:p,message:l,ruleId:o,visitor:d}})).flatMap(i=>i).filter(mt)}const gO={},bO={},vO={};function Hd(e){return Array.isArray(e)&&e.length===0}function Kd(e,t,r){const{parent:n,key:i}=t;let o=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(j.isRef(e[s])){const c=t.resolve(e[s]);r(c.node)&&(e.splice(s,1),o=!0,s--)}r(e[s])&&(e.splice(s,1),o=!0,s--)}else if(Y.isPlainObject(e))for(const s of Object.keys(e)){if(j.isRef(e[s])){const c=t.resolve(e[s]);r(c.node)&&(delete e[s],o=!0)}r(e[s])&&(delete e[s],o=!0)}o&&(hr(e)||Hd(e))&&delete n[i]}function fr(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=pl(t),e=pl(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function pl(e){return Array.isArray(e)?e:[e]}const wO="any",Wd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||wO;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const d of s){const h=j.isRef(c[d])?p.resolve(c[d]).node:c[d];if(Y.isPlainObject(h)){const y=h[e];fr(y,t,i)||delete c[d]}}s.some(d=>c[d])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,c){const p=s[e];fr(p,t,i)||delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>s?.[e]&&!fr(s?.[e],t,i);return{any:{enter:(s,c)=>{Kd(s,c,o)}}}},xO="any",Qd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||xO;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const d of s){const h=j.isRef(c[d])?p.resolve(c[d]).node:c[d];if(Y.isPlainObject(h)){const y=h[e];fr(y,t,i)&&delete c[d]}}s.some(d=>c[d])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,c){const p=s[e];fr(p,t,i)&&delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>fr(s?.[e],t,i);return{any:{enter:(s,c)=>{Kd(s,c,o)}}}};function ll(e){const t=(void 0)(e,"utf-8");return j.parseYaml(t)}function Vr(e,t){return j.isAbsoluteUrl(e)||t===void 0?e:Y.pathBrowserifyExports.resolve(Y.pathBrowserifyExports.dirname(t),e)}function ga(e){return(void 0)(e,"utf-8")}const Gd=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:i}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=ga(Vr(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
|
|
11
|
-
${o.message}`,location:n.child("description")})}}}}),
|
|
12
|
-
${s.message}`,location:n.child("operationId").key()})}}}}),
|
|
13
|
-
${o.message}`})}}}}),
|
|
10
|
+
`,pa="configBundler",la="pluginsCollector",wd=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function xd(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function di(e,t){const r=new Set(t);let n=0;for(const i of e)r.has(i)&&n++;return n}function UE(e,t){const r=t.direction||t,n=t.property;for(let i=1;i<e.length;i++){let o=e[i],s=e[i-1];if(n){const p=e[i][n],l=e[i-1][n];if(!p||!l)return!1;o=p,s=l}if(typeof o=="string"&&typeof s=="string"&&(o=o.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?o>=s:o<=s))return!1}return!0}var fi={exports:{}},mi={},hi={},Qp;function FE(){if(Qp)return hi;Qp=1,Object.defineProperty(hi,"__esModule",{value:!0});const e=ke(),t=e.operators,r={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:t.LTE,fail:t.GT},{okStr:"<",ok:t.LT,fail:t.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:t.GTE,fail:t.LT},{okStr:">",ok:t.GT,fail:t.LTE}]}},n={message:s=>(0,e.str)`must be ${o(s).okStr} ${s.schemaCode}`,params:s=>(0,e._)`{comparison: ${o(s).okStr}, limit: ${s.schemaCode}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(s){const{data:c,schemaCode:p}=s;s.fail$data((0,e._)`${c} ${o(s).fail} ${p} || isNaN(${c})`)}};function o(s){var c;const p=s.keyword,l=!((c=s.parentSchema)===null||c===void 0)&&c[r[p].exclusive]?1:0;return r[p].ops[l]}return hi.default=i,hi}var yi={},Gp;function zE(){if(Gp)return yi;Gp=1,Object.defineProperty(yi,"__esModule",{value:!0});const e={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},t={keyword:Object.keys(e),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:n}){const i=e[r];if(n[i]===void 0)throw new Error(`${r} can only be used with ${i}`)}};return yi.default=t,yi}var Yp;function BE(){if(Yp)return mi;Yp=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=to(),t=oa(),r=pd(),n=sa(),i=na(),o=FE(),s=zE(),c=["title","description","default"],p=["$schema","id","$defs",{keyword:"$comment"},"definitions",e.default],l=[...i.default.slice(1),o.default,s.default],d=[p,l,(0,t.default)(),n.default,c,r.default];return mi.default=d,mi}const VE="http://json-schema.org/draft-04/schema#",HE="http://json-schema.org/draft-04/schema#",KE="Core schema meta-schema",WE={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}},QE="object",GE={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:"#"}},YE={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},JE={id:VE,$schema:HE,description:KE,definitions:WE,type:QE,properties:GE,dependencies:YE,default:{}};var Jp;function XE(){return Jp||(Jp=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=ta(),n=BE(),i=aa(),o=JE,s=["/properties"],c="http://json-schema.org/draft-04/schema";class p extends r.default{constructor($={}){super({...$,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema($,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=p,e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=Jr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var y=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(fi,fi.exports)),fi.exports}var ZE=XE();const eO=Y.getDefaultExportFromCjs(ZE);var gi={exports:{}},Mo={},Xp;function tO(){return Xp||(Xp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(te,de){return{validate:te,compare:de}}e.fullFormats={date:t(o,s),time:t(p(!0),l),"date-time":t(y(!0),g),"iso-time":t(p(),d),"iso-date-time":t(y(),$),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:A,"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:Z,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:v,int32:{type:"number",validate:k},int64:{type:"number",validate:M},float:{type:"number",validate:H},double:{type:"number",validate:H},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,s),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,l),"date-time":t(/^\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,g),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d),"iso-date-time":t(/^\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,$),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},e.formatNames=Object.keys(e.fullFormats);function r(te){return te%4===0&&(te%100!==0||te%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(te){const de=n.exec(te);if(!de)return!1;const ee=+de[1],ie=+de[2],Pe=+de[3];return ie>=1&&ie<=12&&Pe>=1&&Pe<=(ie===2&&r(ee)?29:i[ie])}function s(te,de){if(te&&de)return te>de?1:te<de?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function p(te){return function(ee){const ie=c.exec(ee);if(!ie)return!1;const Pe=+ie[1],Ie=+ie[2],Le=+ie[3],Se=ie[4],qe=ie[5]==="-"?-1:1,_=+(ie[6]||0),R=+(ie[7]||0);if(_>23||R>59||te&&!Se)return!1;if(Pe<=23&&Ie<=59&&Le<60)return!0;const C=Ie-R*qe,q=Pe-_*qe-(C<0?1:0);return(q===23||q===-1)&&(C===59||C===-1)&&Le<61}}function l(te,de){if(!(te&&de))return;const ee=new Date("2020-01-01T"+te).valueOf(),ie=new Date("2020-01-01T"+de).valueOf();if(ee&&ie)return ee-ie}function d(te,de){if(!(te&&de))return;const ee=c.exec(te),ie=c.exec(de);if(ee&&ie)return te=ee[1]+ee[2]+ee[3],de=ie[1]+ie[2]+ie[3],te>de?1:te<de?-1:0}const h=/t|\s/i;function y(te){const de=p(te);return function(ie){const Pe=ie.split(h);return Pe.length===2&&o(Pe[0])&&de(Pe[1])}}function g(te,de){if(!(te&&de))return;const ee=new Date(te).valueOf(),ie=new Date(de).valueOf();if(ee&&ie)return ee-ie}function $(te,de){if(!(te&&de))return;const[ee,ie]=te.split(h),[Pe,Ie]=de.split(h),Le=s(ee,Pe);if(Le!==void 0)return Le||l(ie,Ie)}const x=/\/|:/,P=/^(?:[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 A(te){return x.test(te)&&P.test(te)}const S=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(te){return S.lastIndex=0,S.test(te)}const O=-2147483648,b=2**31-1;function k(te){return Number.isInteger(te)&&te<=b&&te>=O}function M(te){return Number.isInteger(te)}function H(){return!0}const G=/[^\\]\\Z/;function Z(te){if(G.test(te))return!1;try{return new RegExp(te),!0}catch{return!1}}})(Mo)),Mo}var Do={},bi={exports:{}},vi={},Zp;function rO(){if(Zp)return vi;Zp=1,Object.defineProperty(vi,"__esModule",{value:!0});const e=nd(),t=na(),r=oa(),n=sa(),i=ld(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return vi.default=o,vi}const nO="http://json-schema.org/draft-07/schema#",iO="http://json-schema.org/draft-07/schema#",oO="Core schema meta-schema",sO={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:[]}},aO=["object","boolean"],cO={$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:"#"}},pO={$schema:nO,$id:iO,title:oO,definitions:sO,type:aO,properties:cO,default:!0};var el;function lO(){return el||(el=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const r=ta(),n=rO(),i=aa(),o=pO,s=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(o,s):o;this.addMetaSchema($,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}t.Ajv=p,e.exports=t=p,e.exports.Ajv=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var l=wr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return l.KeywordCxt}});var d=ke();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var h=Jr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return h.default}});var y=xr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(bi,bi.exports)),bi.exports}var tl;function uO(){return tl||(tl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=lO(),r=ke(),n=r.operators,i={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},o={message:({keyword:c,schemaCode:p})=>(0,r.str)`should be ${i[c].okStr} ${p}`,params:({keyword:c,schemaCode:p})=>(0,r._)`{comparison: ${i[c].okStr}, limit: ${p}}`};e.formatLimitDefinition={keyword:Object.keys(i),type:"string",schemaType:"string",$data:!0,error:o,code(c){const{gen:p,data:l,schemaCode:d,keyword:h,it:y}=c,{opts:g,self:$}=y;if(!g.validateFormats)return;const x=new t.KeywordCxt(y,$.RULES.all.format.definition,"format");x.$data?P():A();function P(){const v=p.scopeValue("formats",{ref:$.formats,code:g.code.formats}),O=p.const("fmt",(0,r._)`${v}[${x.schemaCode}]`);c.fail$data((0,r.or)((0,r._)`typeof ${O} != "object"`,(0,r._)`${O} instanceof RegExp`,(0,r._)`typeof ${O}.compare != "function"`,S(O)))}function A(){const v=x.schema,O=$.formats[v];if(!O||O===!0)return;if(typeof O!="object"||O instanceof RegExp||typeof O.compare!="function")throw new Error(`"${h}": format "${v}" does not define "compare" function`);const b=p.scopeValue("formats",{key:v,ref:O,code:g.code.formats?(0,r._)`${g.code.formats}${(0,r.getProperty)(v)}`:void 0});c.fail$data(S(b))}function S(v){return(0,r._)`${v}.compare(${l}, ${d}) ${i[h].fail} 0`}},dependencies:["format"]};const s=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=s})(Do)),Do}var rl;function dO(){return rl||(rl=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=tO(),n=uO(),i=ke(),o=new i.Name("fullFormats"),s=new i.Name("fastFormats"),c=(l,d={keywords:!0})=>{if(Array.isArray(d))return p(l,d,r.fullFormats,o),l;const[h,y]=d.mode==="fast"?[r.fastFormats,s]:[r.fullFormats,o],g=d.formats||r.formatNames;return p(l,g,h,y),d.keywords&&(0,n.default)(l),l};c.get=(l,d="full")=>{const y=(d==="fast"?r.fastFormats:r.fullFormats)[l];if(!y)throw new Error(`Unknown format "${l}"`);return y};function p(l,d,h,y){var g,$;(g=($=l.opts.code).formats)!==null&&g!==void 0||($.formats=(0,i._)`require("ajv-formats/dist/formats").${y}`);for(const x of d)l.addFormat(x,h[x])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(gi,gi.exports)),gi.exports}var fO=dO();const mO=Y.getDefaultExportFromCjs(fO),hO=["title","description","example","examples","default","deprecated"];function nl(e){return e==="draft4"?"id":"$id"}function yO(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class ro{instances={};sharedValidators=new Map;validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:s,allowAdditionalProperties:c,ajvContext:p,specVersion:l}=n,d=yO(l),h=this.getValidator(r,i,s,c,d);if(!h)return{valid:!0,errors:[]};const y={instancePath:o,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!h.call(p??{},t,y),errors:(h.errors||[]).map($)};function $(x){let P=x.message;const A=x.keyword==="enum"?x.params.allowedValues:void 0;A&&(P+=` ${A.map(O=>`"${O}"`).join(", ")}`),x.keyword==="type"&&(P=`type ${P}`);const S=x.instancePath.substring(o.length+1),v=S.substring(S.lastIndexOf("/")+1);if(v&&(P=`\`${v}\` property ${P}`),x.keyword==="additionalProperties"||x.keyword==="unevaluatedProperties"){const O=x.params.additionalProperty||x.params.unevaluatedProperty;P=`${P} \`${O}\``,x.instancePath+="/"+j.escapePointerFragment(O)}return{...x,message:P,suggest:A}}}getAjv(t,r){if(!this.instances[r]){const n=nl(r),i={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(o,s,c){const p=decodeURI(o.split("#")[0]),l=t({$ref:s},p);return!l||!l.location?!1:{[n]:encodeURI(l.location.source.absoluteRef)+"#"+c,...l.node}}};this.instances[r]=r==="2020"?new dd(i):new eO(i),mO(this.instances[r])}return this.instances[r]}getValidator(t,r,n,i,o){const s=this.getAjv(n,o);if(j.isRef(t)&&!j.isRefWithSiblings(t)){const d=n(t,r.source.absoluteRef);d.location&&Y.isPlainObject(d.node)&&(t=d.node,r=d.location)}const c=Y.isPlainObject(t)?gO(t,o):void 0;if(c){const d=this.sharedValidators.get(c);if(d)return d;s.setDefaultUnevaluatedProperties(i);const h=s.compile(t);return this.sharedValidators.set(c,h),h}const p=encodeURI(r.absolutePointer),l=nl(o);return s.getSchema(p)||(s.setDefaultUnevaluatedProperties(i),s.addSchema({[l]:p,...t},p)),s.getSchema(p)}}function gO(e,t){const r={...e};for(const i of hO)delete r[i];const n=JSON.stringify(r);if(!n.includes('"$ref"'))return`${t}:${n}`}const Sd=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Pd=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),il=new WeakMap,bO=new j.Location(new j.Source("assertion",""),"#/schema"),Zt={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Lr(t);return i.map(s=>!o?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:it(e)?r:Y.isPlainObject(n)?r.child(s).key():r.key()}).filter(j.isTruthy)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Lr(t);return i.map(s=>o?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:it(e)?r:Y.isPlainObject(n)?r.child(s).key():r.key()}).filter(j.isTruthy)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||Y.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>!t.includes(i)&&{message:`${JSON.stringify(i)} should be one of the predefined values`,location:it(e)?r:r.child(i).key()}).filter(j.isTruthy),defined:(e,t=!0,{baseLocation:r})=>{const 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(j.isTruthy),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const n=Array.isArray(e)?e:[e];return t.map(i=>!n.includes(i)&&{message:`${i} should be in the list`,location:r}).filter(j.isTruthy)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||Y.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>t.includes(i)&&{message:`${JSON.stringify(i)} is disallowed`,location:it(e)?r:r.child(i).key()}).filter(j.isTruthy),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:it(e)?r:r.child(n).key()}).filter(j.isTruthy):e!==t?[{message:`${JSON.stringify(e)} should be equal ${JSON.stringify(t)}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{const 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"||Y.isPlainObject(e))return[];const n=Array.isArray(e)?e:[e],i={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(o=>!o.match(i[t])&&{message:`${JSON.stringify(o)} should use ${t}`,location:it(e)?r:r.child(o).key()}).filter(j.isTruthy)},sortOrder:(e,t,{baseLocation:r})=>{const n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&Y.isPlainObject(e[0])&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||UE(e,t)?[]:[{message:`Should be sorted in ${n==="asc"?"an ascending":"a descending"} order${i?` by property ${i}`:""}`,location:r}]},mutuallyExclusive:(e,t,{baseLocation:r})=>di(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(di(e,t)>0?di(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>di(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[];const i=n.hasOwnProperty("$ref");if(typeof t=="boolean")return(t?i:!i)?[]:[{message:t?"should use $ref":"should not use $ref",location:i?r:r.key()}];const o=Lr(t);return i&&o?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:i?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:i})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let o=il.get(t);o||(o=new ro,il.set(t,o));const s=j.isRef(n)&&i(n)?.location||r;let c;try{({errors:c}=o.validate(e,t,{schemaLoc:bO,instancePath:"",resolve:i,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(p){throw new Error(`the 'schema' assertion has an invalid schema: ${p.message}`)}return c.map(p=>{const l=p.instancePath?j.joinPointer(s.pointer,p.instancePath.slice(1)):s.pointer,d=new j.Location(s.source,l),h=p.keyword==="additionalProperties"||p.keyword==="unevaluatedProperties";return{message:p.message,location:h?d.key():d}})}};function vO(e){return(t,r,n)=>e.call(null,t,r,n)}function wO(e,t){if(!e.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&Y.isPlainObject(o)){const s=o;if(t){ol(t,s);for(const c of s.where||[])ol(t,c)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function ol(e,t){for(const r of Object.keys(t.assertions||{})){const[n,i]=r.split("/");if(!n||!i)continue;const o=e.find(s=>s.id===n);if(!o)throw Error(`Plugin ${n} isn't found.`);if(!o.assertions||!o.assertions[i])throw Error(`Plugin ${n} doesn't export assertions function with name ${i}.`);Zt[r]=vO(o.assertions[i])}}class Zr{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=xd(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>wO({rules:i},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({...Gs(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||!Y.isPlainObject(this.resolvedConfig?.apis?.[t]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...s}=r[t];return new Zr({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){const r=this.configPath?Y.pathBrowserifyExports.dirname(this.configPath):process.cwd(),n=j.isAbsoluteUrl(t)?t:Y.pathBrowserifyExports.resolve(r,t);delete this.ignore[n]}saveIgnore(){const t=this.configPath?Y.pathBrowserifyExports.dirname(this.configPath):process.cwd(),r=Y.pathBrowserifyExports.join(t,Ci),n={};for(const i of Object.keys(this.ignore)){const o=j.isAbsoluteUrl(i)?i:Fs(Y.pathBrowserifyExports.relative(t,i)),s=n[o]=this.ignore[i];for(const c of Object.keys(s))s[c]=Array.from(s[c])}(void 0)(r,vd+j.stringifyYaml(n))}addIgnore(t){const r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;const i=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(i[t.ruleId]=i[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){const r=t.location[0];if(r.pointer===void 0)return t;const i=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],o=i&&i.has(r.pointer);return o?{...t,ignored:o}:t}extendTypes(t,r){let n=t;for(const i of this.plugins)if(i.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!i.typeExtension.oas3)continue;n=i.typeExtension.oas3(n,r);break;case"oas2":if(!i.typeExtension.oas2)continue;n=i.typeExtension.oas2(n,r);break;case"async2":if(!i.typeExtension.async2)continue;n=i.typeExtension.async2(n,r);break;case"async3":if(!i.typeExtension.async3)continue;n=i.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!i.typeExtension.arazzo1)continue;n=i.typeExtension.arazzo1(n,r);break;case"overlay1":if(!i.typeExtension.overlay1)continue;n=i.typeExtension.overlay1(n,r);break;case"openrpc1":if(!i.typeExtension.openrpc1)continue;n=i.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);const 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);const 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);const n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){const t=[],r=[],n=[];for(const i of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[i]).filter(o=>!this._usedRules.has(o))),r.push(...Object.keys(this.decorators[i]).filter(o=>!this._usedRules.has(o))),n.push(...Object.keys(this.preprocessors[i]).filter(o=>!this._usedRules.has(o)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{const 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":{const 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":{const 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":{const 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":{const 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":{const 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":{const 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":{const 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":{const r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(const r of t||[])for(const n of Ei)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(const i of this.rules[n].assertions)i.assertionId===r&&(i.severity="off")}skipPreprocessors(t){for(const r of t||[])for(const n of Ei)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(const r of t||[])for(const n of Ei)this.decorators[n][r]&&(this.decorators[n][r]="off")}}function mt(e){return e!==void 0}function Br(e,t,r,n){return e.flatMap(i=>Object.keys(i).map(o=>{const s=i[o],c=r==="rules"?t.getRuleSettings(o,n):r==="preprocessors"?t.getPreprocessorSettings(o,n):t.getDecoratorSettings(o,n);if(c.severity==="off")return;const p=c.severity,l=c.message,d=s(c);return Array.isArray(d)?d.map(h=>({severity:p,ruleId:o,message:l,visitor:h})):{severity:p,message:l,ruleId:o,visitor:d}})).flatMap(i=>i).filter(mt)}const xO={},SO={},PO={};function $d(e){return Array.isArray(e)&&e.length===0}function Ad(e,t,r){const{parent:n,key:i}=t;let o=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(j.isRef(e[s])){const c=t.resolve(e[s]);r(c.node)&&(e.splice(s,1),o=!0,s--)}r(e[s])&&(e.splice(s,1),o=!0,s--)}else if(Y.isPlainObject(e))for(const s of Object.keys(e)){if(j.isRef(e[s])){const c=t.resolve(e[s]);r(c.node)&&(delete e[s],o=!0)}r(e[s])&&(delete e[s],o=!0)}o&&(hr(e)||$d(e))&&delete n[i]}function fr(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=sl(t),e=sl(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function sl(e){return Array.isArray(e)?e:[e]}const $O="any",Ed=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||$O;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const d of s){const h=j.isRef(c[d])?p.resolve(c[d]).node:c[d];if(Y.isPlainObject(h)){const y=h[e];fr(y,t,i)||delete c[d]}}s.some(d=>c[d])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,c){const p=s[e];fr(p,t,i)||delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>s?.[e]&&!fr(s?.[e],t,i);return{any:{enter:(s,c)=>{Ad(s,c,o)}}}},AO="any",Od=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||AO;if(n!==void 0){if(n==="Operation"){const s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const d of s){const h=j.isRef(c[d])?p.resolve(c[d]).node:c[d];if(Y.isPlainObject(h)){const y=h[e];fr(y,t,i)&&delete c[d]}}s.some(d=>c[d])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,c){const p=s[e];fr(p,t,i)&&delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>fr(s?.[e],t,i);return{any:{enter:(s,c)=>{Ad(s,c,o)}}}};function al(e){const t=(void 0)(e,"utf-8");return j.parseYaml(t)}function Vr(e,t){return j.isAbsoluteUrl(e)||t===void 0?e:Y.pathBrowserifyExports.resolve(Y.pathBrowserifyExports.dirname(t),e)}function ua(e){return(void 0)(e,"utf-8")}const Rd=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:i}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=ua(Vr(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
|
|
11
|
+
${o.message}`,location:n.child("description")})}}}}),_d=e=>({Info:{leave(t){if(!Y.isPlainObject(e))throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=e;Object.assign(t,n)}}}),Td=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:i}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');const o=t.operationId;if(e[o])try{const s=e[o];t.description=ua(Vr(s,i?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${o}".
|
|
12
|
+
${s.message}`,location:n.child("operationId").key()})}}}}),EO="x-internal",kd=({internalFlagProperty:e=EO})=>{function t(n,i,o){const{parent:s,key:c}=i;let p=!1;if(Array.isArray(n))for(let l=0;l<n.length;l++){if(j.isRef(n[l])&&i.resolve(n[l]).node?.[e]){if(Y.isPlainObject(s.discriminator?.mapping))for(const h in s.discriminator.mapping)o?.[h]===n[l].$ref&&delete s.discriminator.mapping[h];n.splice(l,1),p=!0,l--}n[l]?.[e]&&(n.splice(l,1),p=!0,l--)}else if(Y.isPlainObject(n))for(const l of Object.keys(n)){if(j.isRef(n[l])){const d=i.resolve(n[l]);Y.isPlainObject(d.node)&&d.node?.[e]&&(delete n[l],p=!0)}Y.isPlainObject(n[l])&&n[l]?.[e]&&(delete n[l],p=!0)}p&&(hr(n)||$d(n))&&delete s[c]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}},Id=({tagNames:e})=>({Tag:{leave(t,{report:r,config:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');const i=e[t.name];if(i)try{t.description=ua(Vr(i,n?.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
13
|
+
${o.message}`})}}}}),OO=["definitions","parameters","responses","securityDefinitions"],qd=()=>{const e=new Map;function t(i,o){const s=`${i}/${o}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:i,name:o})}function r(i){if(!i.startsWith("#/"))return;const[o,s]=j.parseRef(i).pointer;if(!(!o||!s)&&OO.includes(o))return`${o}/${s}`}function n(i,o=new Set){const s=o.size;for(const[c,{usedIn:p,name:l,componentType:d}]of e)!p.some(y=>y!==c&&!o.has(y))&&d&&(o.add(c),delete i[d][l],e.delete(c),hr(i[d])&&delete i[d]);return o.size>s?n(i,o):o.size}return{ref:{leave(i,{location:o,type:s,key:c}){if(["Schema","Parameter","Response","SecurityScheme"].includes(s.name)){const p=r(i.$ref);if(!p)return;const l=r(o.pointer)??o.pointer,d=e.get(p);d?d.usedIn.push(l):e.set(p,{usedIn:[l],name:c.toString()})}}},Root:{leave(i,o){const s=o.getVisitorData();s.removedCount=n(i)}},NamedSchemas:{Schema(i,{key:o}){i.allOf||t("definitions",o.toString())}},NamedParameters:{Parameter(i,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(i,{key:o}){t("responses",o.toString())}},NamedSecuritySchemes:{SecurityScheme(i,{key:o}){t("securityDefinitions",o.toString())}},SecurityRequirement(i){for(const o of Object.keys(i)){const s=`securityDefinitions/${o}`,c=e.get(s);c?c.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:o})}}}},RO={"operation-description-override":Td,"tag-description-override":Id,"info-description-override":Rd,"info-override":_d,"remove-x-internal":kd,"filter-in":Ed,"filter-out":Od,"remove-unused-components":qd},_O=({operationIds:e})=>({Operation:{enter(t,r){const n=t.operationId;if(!n)return;const i=e[n];if(i){if(i.responses&&t.responses)for(const o of Object.keys(i.responses)){const s=cl(t.responses[o],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(i.responses[o]).forEach(c=>{const p=i.responses[o][c];s.content[c]={...s.content[c],examples:al(Vr(p,r.config?.configPath))}}),t.responses[o]=s)}if(i.request&&t.requestBody){const o=cl(t.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(s=>{const c=i.request[s];o.content[s]={...o.content[s],examples:al(Vr(c,r.config?.configPath))}}),t.requestBody=o}}}}});function cl(e,t){if(!j.isRef(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function TO(e,t){return t in e}function pl(e){if(!e.startsWith("#/components/"))return;const[t,r,n]=j.parseRef(e).pointer;if(!(!r||!n))return`${r}/${n}`}const Cd=()=>{const e=new Map;function t(n,i,o=!1){const s=`${n}/${i}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:n,name:i,referencesDiscriminator:o})}function r(n,i=new Set){const o=i.size;for(const[s,{usedIn:c,name:p,componentType:l,referencesDiscriminator:d}]of e)if(!(c.some(y=>y!==s&&!i.has(y))||d)&&l&&n.components&&TO(n.components,l)){i.add(s);const y=n.components[l];delete y[p],e.delete(s),hr(y)&&delete n.components[l]}return i.size>o?r(n,i):i.size}return{ref:{leave(n,{location:i,type:o,key:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(o.name)){const c=pl(n.$ref);if(!c)return;const p=pl(i.pointer)??i.pointer,l=e.get(c);l?l.usedIn.push(p):e.set(c,{usedIn:[p],name:s.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n),hr(n.components)&&delete n.components}},NamedSchemas:{Schema(n,i){const o=n.allOf?.some(s=>j.isRef(s)&&i.resolve(s)?.node?.discriminator);t("schemas",i.key.toString(),o)}},NamedParameters:{Parameter(n,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(n,{key:i}){t("responses",i.toString())}},NamedExamples:{Example(n,{key:i}){t("examples",i.toString())}},NamedRequestBodies:{RequestBody(n,{key:i}){t("requestBodies",i.toString())}},NamedHeaders:{Header(n,{key:i}){t("headers",i.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:i}){t("mediaTypes",i.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:i}){t("securitySchemes",i.toString())}},SecurityRequirement(n){for(const i of Object.keys(n)){const o=`securitySchemes/${i}`,s=e.get(o);s?s.usedIn.push("SecurityRequirement"):e.set(o,{usedIn:["SecurityRequirement"],name:i})}}}},kO={"operation-description-override":Td,"tag-description-override":Id,"info-description-override":Rd,"info-override":_d,"remove-x-internal":kd,"filter-in":Ed,"filter-out":Od,"media-type-examples-override":_O,"remove-unused-components":Cd},IO={},qO={},CO=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;const i=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(const o of e)i.includes(o?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${i.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});function jO(e){return e}const As=void 0,De=new Proxy(Y.tty,{get(e,t){return j.isBrowser?jO:e[t]}});class MO{info(t){return j.isBrowser?console.info(t):process.stderr.write(t)}warn(t){return j.isBrowser?console.warn(t):process.stderr.write(De.yellow(t))}error(t){return j.isBrowser?console.error(t):process.stderr.write(De.red(t))}output(t){return j.isBrowser?console.log(t):process.stdout.write(t)}printNewLine(){j.isBrowser?console.log(`
|
|
14
14
|
`):process.stdout.write(`
|
|
15
15
|
`)}printSeparator(t){const r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),i=j.isBrowser?n:De.gray(n);return j.isBrowser?console.log(i):process.stdout.write(i)}indent(t,r){const n=j.isBrowser?" ":" ";return t.split(`
|
|
16
16
|
`).map(i=>n.repeat(r)+i).join(`
|
|
17
|
-
`)}}const Me=new
|
|
18
|
-
- ${t.message??""}`).join("")}function af(e){return j.isAbsoluteUrl(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function cf(e,t){let r=e;for(const n of Object.keys(ks)){const i=ks[n],o=t[n];i&&(r=r.split(i).join(o))}return r}function ml({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const i=j.isRef(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],o=t.rawNode[r],s=n.child(r);return Zt[e.name](i,e.conditions,{...t,baseLocation:s,rawValue:o})}else{const i=Array.isArray(t.node)?t.node:Object.keys(t.node);return Zt[e.name](i,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const Bt=e=>{const t=[],r=Object.values(e).filter(n=>Y.isPlainObject(n));for(const[n,i]of r.entries()){if(!it(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);if(!Y.isPlainObject(i.assertions))throw new Error(`${i.assertionId}: 'assertions' (Object) is required`);const o=CO(i.assertionId,i),s=qO(i,o);t.push(s)}return t};function DO(e){return Y.isPlainObject(e)||Array.isArray(e)}const tn=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;const n=new Set,i=[];for(const[o,s]of e.enum.entries()){const c=DO(s);(c?i.some(l=>Dt(l,s)):n.has(s))&&t({message:`Duplicated enum value found: '${c?JSON.stringify(s):s}'.`,location:r.child(["enum",o]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),c?i.push(s):n.add(s)}}});var zo,hl;function NO(){return hl||(hl=1,zo=(function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?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 i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var c=0,p,l,d,h,y,g,$,x,P,A,S,v,O=[];for(p=0;p<i;p++)O.push(p+1),O.push(t.charCodeAt(s+p));for(var b=O.length-1;c<o-3;)for(P=r.charCodeAt(s+(l=c)),A=r.charCodeAt(s+(d=c+1)),S=r.charCodeAt(s+(h=c+2)),v=r.charCodeAt(s+(y=c+3)),g=c+=4,p=0;p<b;p+=2)$=O[p],x=O[p+1],l=e($,l,d,P,x),d=e(l,d,h,A,x),h=e(d,h,y,S,x),g=e(h,y,g,v,x),O[p]=g,y=h,h=d,d=l,l=$;for(;c<o;)for(P=r.charCodeAt(s+(l=c)),g=++c,p=0;p<b;p+=2)$=O[p],O[p]=g=e($,l,g,P,O[p+1]),l=$;return g}})()),zo}var LO=NO();const UO=Y.getDefaultExportFromCjs(LO),ao=(e,t,r)=>{if(j.isRef(e)){const 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}},Bo=(e,t,r,n,i)=>!!(e.properties&&j.getOwn(e.properties,t)!==void 0||e.allOf?.some(o=>Xt(o,t,r,n,i))||Fr(e.anyOf)&&e.anyOf.every(o=>Xt(o,t,r,new Set(n),i))||Fr(e.oneOf)&&e.oneOf.every(o=>Xt(o,t,r,new Set(n),i))),Xt=(e,t,r,n=new Set,i)=>{if(j.isRef(e)&&Bo(e,t,r,n,i))return!0;const{schema:o,location:s,chain:c}=ao(e,r,i);if(!o)return!1;if(!n.has(o)&&(n.add(o),Bo(o,t,r,n,s)))return!0;for(const p of c??[])if(!(!Y.isPlainObject(p.node)||n.has(p.node))&&(n.add(p.node),Bo(p.node,t,r,n,p.location)))return!0;return!1};function Ur(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Ui(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function pf(e,t,r){if(Ui(e))return!0;if(!Array.isArray(e?.traits))return!1;for(const n of e.traits){const i=j.isRef(n)?t(n,r).node:n;if(Ui(i))return!0}return!1}function Is(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return Y.isPlainObject(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function co(e,t){return`${e} object should contain \`${t}\` field.`}function FO(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function lf(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Sr({fieldName:e,value:t,ctx:r,reference:n}){Y.isPlainObject(t)&&(t[e]===void 0?r.report({message:co(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:lf(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function zO({fieldNames:e,value:t,ctx:r,reference:n}){if(Y.isPlainObject(t)){e.some(i=>t.hasOwnProperty(i))||r.report({message:FO(r.type.name,e),location:r.location.key(),reference:n});for(const i of e)t.hasOwnProperty(i)&&!t[i]&&r.report({message:lf(r.type.name,i),location:r.location.child([i]).key(),reference:n})}}function po(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];const r=[];for(let n=0;n<t.length;n++){const i=UO(e,t[n]);i<4&&r.push({distance:i,variant:t[n]})}return r.sort((n,i)=>n.distance-i.distance),r.map(n=>n.variant)}function uf(e){if(Y.isPlainObject(e)){if(mt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(mt(e.value))return{value:e.value,field:"value"}}}function Hr({example:e,schema:t,options:r,reference:n}){const{location:i,ctx:o,validator:s,allowAdditionalProperties:c,ajvContext:p}=r,{resolve:l,location:d,report:h,specVersion:y}=o;try{const{valid:g,errors:$}=s.validate(e,t,{schemaLoc:d.child("schema"),instancePath:i.pointer,resolve:l,allowAdditionalProperties:c,ajvContext:p,specVersion:y});if(!g)for(const x of $)h({message:`Example value must conform to the schema: ${x.message}.`,location:{...new j.Location(i.source,x.instancePath),reportOnKey:x.keyword==="unevaluatedProperties"||x.keyword==="additionalProperties"},from:d,suggest:x.suggest,reference:n})}catch(g){if(g.message==="discriminator: requires oneOf or anyOf composite keyword")return;h({message:`Example validation errored: ${g.message}.`,location:d.child("schema"),from:d,reference:n})}}const BO=10;function yl(e,t,r,n,{report:i,location:o},s){if(e&&!e.includes(t)){const c=e.length>BO?`\`${r}\` "${t}" is not a valid value.${s?` See the supported values: ${s}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(p=>`"${p}"`).join(", ")}.`;i({location:o,message:c,from:n,suggest:po(t,e)})}}function Fi({responseCodes:e,codeRange:t,report:r,reference:n,disallowDefault:i=!1}){const o=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(c=>!i&&t==="2XX"&&c==="default"||o.test(c))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function qs(e,t){return t?e.name.toLowerCase():e.name}const rn=()=>({Schema(e,{report:t,location:r}){if(!Y.isPlainObject(e)||!e.type)return;const n=Array.isArray(e.type)?e.type:[e.type],i=o=>n.some(s=>Is(o,s,e.nullable));if(Array.isArray(e.enum))for(const[o,s]of e.enum.entries())i(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 "${Ur(s)}".`,location:r.child(["enum",o]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"});"const"in e&&!i(e.const)&&t({message:`The \`const\` value must be of the same type as the \`type\` field: expected "${n.join('" or "')}" but received "${Ur(e.const)}".`,location:r.child(["const"]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}),lo=()=>({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"})}}),nn=()=>{const e=[],t=new Set,r=(n,i,o)=>{if(Fr(n.required))for(const[s,c]of n.required.entries())Xt(n,c,o,new Set,i)||o.report({message:`Required property '${c}' is not defined.`,location:i.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,i,o){if(i.type.name!=="Schema")return;const s=[{node:n,location:i.location},...o.chain??[]];for(const{node:c,location:p}of s)!Y.isPlainObject(c)||t.has(c)||(t.add(c),r(c,p,i))}},Schema:{leave(n){e.pop()},enter(n,i){if(e.push(n),!Fr(n.required))return;const o=(p,l)=>{const d=h=>ao(h,i).schema===l;return!!(p.allOf?.some(d)||p.anyOf?.some(d)||p.oneOf?.some(d))},s=(p,l)=>{if(p<0)return;const d=e[p];return o(d,l)?s(p-1,d)??d:void 0},c=s(e.length-2,n);for(const[p,l]of n.required.entries())!Xt(n,l,i)&&!Xt(c,l,i)&&i.report({message:`Required property '${l}' is not defined.`,location:i.location.child(["required",p]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}},on=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}}),Nt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&ur(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(const i of Object.keys(e)){const o=r({$ref:e[i]});if(o.node!==void 0)return;ur(o,t,n.child(i))}}});function ur(e,t,r){const n=e.error;n instanceof j.YamlParseError&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});const i=e.error?.message;t({location:r,message:`Can't resolve $ref${i?": "+i:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}const sn=()=>({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"}))}}),Lt=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:s,ignoreNextVisitorsOnNode:c}){const p=Ur(e),l=i!==n?i:void 0;if(r.items){p!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${p}\``,from:l}),c());return}else if(p!=="object"){r!==j.SpecExtension&&t({message:`Expected type \`${r.name}\` (object) but got \`${p}\``,from:l}),c();return}const d=typeof r.required=="function"?r.required(e,o):r.required;for(const g of d||[])e.hasOwnProperty(g)||t({message:`The field \`${g}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});const h=r.allowed?.(e);if(h&&Y.isPlainObject(e))for(const g in e)h.includes(g)||r.extensionsPrefix&&g.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(g)||t({message:`The field \`${g}\` is not allowed here.`,from:l,location:n.child([g]).key()});const y=r.requiredOneOf||null;if(y){let g=!1;for(const $ of y||[])e.hasOwnProperty($)&&(g=!0);g||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(const g of Object.keys(e)){const $=n.child([g]);let x=e[g],P=j.getOwn(r.properties,g);if(P===void 0&&(P=r.additionalProperties),typeof P=="function"&&(P=P(x,g)),j.isNamedType(P))continue;const A=P,S=Ur(x);if(A===void 0){if(g.startsWith("x-"))continue;t({message:`Property \`${g}\` is not expected here.`,suggest:po(g,Object.keys(r.properties)),from:l,location:$.key()});continue}if(A!==null){if(A.resolvable!==!1&&j.isRef(x)&&(x=s(x).node),A.items&&A.items?.enum&&Array.isArray(x))for(let v=0;v<x.length;v++)yl(A.items?.enum,x[v],g,l,{report:t,location:n.child([g,v])},A.items?.documentationLink);if(A.enum)yl(A.enum,x,g,l,{report:t,location:n.child([g])},A.documentationLink);else if(A.type&&!Is(x,A.type,!1))t({message:`Expected type \`${A.type}\` but got \`${S}\`.`,from:l,location:$}),c();else if(S==="array"&&A.items?.type){const v=A.items?.type;for(let O=0;O<x.length;O++){const b=x[O];Is(b,v,!1)||t({message:`Expected type \`${v}\` but got \`${Ur(b)}\`.`,from:l,location:$.child([O])})}}typeof A.minimum=="number"&&A.minimum>e[g]&&t({message:`The value of the ${g} field must be greater than or equal to ${A.minimum}`,from:l,location:n.child([g])})}}}}),VO=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||Y.isPlainObject(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"})}}}),HO=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const i of t){const o=j.getOwn(i,"scheme"),s=j.getOwn(i,"schemeName");o&&s&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(i)]),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)}}}},KO=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;const i=e?.["x-security"];if(i)for(const o of i)"schemeName"in o&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",i.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}}),WO=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){const i=t?.["x-security"];if(!(!i||e<=1)){for(const o of i)if("schemeName"in o){const s=o.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",i.indexOf(o),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}},QO={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function gl(e,{report:t,location:r}){if(e)for(const n of e){if("schemeName"in n)continue;const{scheme:i,values:o}=n,s=i?.type==="http"?i.scheme:i?.type,c=i?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){Me.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const p=QO[c];if(p)for(const l of p)(!o||!(l in o))&&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"})}}const GO=()=>({Step:{enter(e,t){gl(e?.["x-security"],t)}},Workflow:{enter(e,t){gl(e?.["x-security"],t)}}}),YO=()=>({FailureActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}},Step:{enter(e,{report:t,location:r}){const n=e?.successCriteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}}}),JO=()=>{const e=new Map,t=new Map,r=[];function n({value:s,report:c,location:p,path:l,definedWorkflowOutputs:d}){const h=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=h.exec(s))!==null;){const[g,$,x]=y,P=d.get($);P?P.includes(x)||c({message:`Output key "${x}" is not defined in workflow "${$}". Available outputs: [ ${P.join(", ")} ].`,location:p.child(l)}):c({message:`Workflow "${$}" referenced in runtime expression "${g}" is not defined or has no outputs.`,location:p.child(l)})}}function i({value:s,report:c,location:p,path:l,definedStepOutputs:d}){const h=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=h.exec(s))!==null;){const[g,$,x]=y,P=d.get($);P?P.includes(x)||c({message:`Output key "${x}" is not defined in step "${$}". Available outputs: [ ${P.join(", ")} ].`,location:p.child(l)}):c({message:`Step "${$}" referenced in runtime expression "${g}" is not defined or has no outputs.`,location:p.child(l)})}}function o(s,c,p=[]){if(typeof s=="string")n({value:s,report:c.report,location:c.location,path:p,definedWorkflowOutputs:e}),i({value:s,report:c.report,location:c.location,path:p,definedStepOutputs:t});else if(Y.isPlainObject(s)||Array.isArray(s))for(const[l,d]of Object.entries(s))o(d,c,[...p,l])}return{Step:{enter(s,{report:c,location:p}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:c,location:p}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,c){r.push(()=>{o(s,c)})}},RequestBody:{enter(s,c){r.push(()=>{o(s,c)})}},CriterionObject:{enter(s,c){r.push(()=>{o(s.condition,c)})}},Outputs:{enter(s,c){r.push(()=>{o(s,c)})}},ExtendedSecurity:{enter(s,c){r.push(()=>{o(s,c)})}},ExtendedOperation:{enter(s,c){r.push(()=>{o(s,c)})}},Root:{leave(){for(const s of r)s()}}}},XO=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.has(i?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.add(i?.name??i?.reference)}}}),ZO=()=>{const e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(const i of t.replacements)e.has(i.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(i),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(i.target)}}}}},eR=()=>{const e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(const i of t)e.has(i.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(i.name)}}}},tR=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),rR=["x-operation","operationId","operationPath","channelPath","workflowId"],nR=()=>({Step:{enter(e,{report:t,location:r}){const n=rR.filter(i=>Object.hasOwn(e,i));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(i=>`\`${i}\``).join(", ")}.`,location:n.map(i=>r.child([i]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}}),iR=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(i?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(i.name??i.reference)}}}),oR=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(i?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(i?.name??i?.reference)}}}),sR=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;const n=new Set;for(const i of e.steps){if(!i.stepId)return;n.has(i.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(i.stepId)}}}}),aR=()=>{const e=new Set,t=new Set;return{SourceDescriptions:{enter(r){for(const n of r)e.add(n.name)}},Workflows:{enter(r){for(const n of r)t.add(n.workflowId)}},Workflow:{leave(r,{report:n,location:i}){if(!r.dependsOn)return;const o=new Set;for(const s of r.dependsOn){if(s.startsWith("$sourceDescriptions.")){const c=s.split(".")[1];e.has(c)||n({message:`SourceDescription ${c} must be defined in sourceDescriptions.`,location:i.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:i.child(["dependsOn",r.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),o.has(s)&&n({message:"Every workflow in dependsOn must be unique.",location:i.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),o.add(s)}}}}},cR=()=>{const 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))}}}},pR={assertions:Bt,"criteria-unique":YO,"no-criteria-xpath":VO,"no-duplicated-enum-values":tn,"no-unsafe-markdown":sn,"no-enum-type-mismatch":rn,"no-mixed-number-range-constraints":lo,"no-required-schema-properties-undefined":nn,"no-schema-type-mismatch":on,"no-unresolved-refs":Nt,"no-x-security-both-scheme-and-scheme-name":HO,"no-x-security-scheme-name-without-openapi":KO,"outputs-defined":JO,"parameters-unique":XO,"requestBody-replacements-unique":ZO,"sourceDescription-name-unique":eR,"sourceDescription-type":TO,"sourceDescriptions-not-empty":tR,"spec-step-mutually-exclusive-fields":nR,"step-onFailure-unique":iR,"step-onSuccess-unique":oR,"stepId-unique":sR,struct:Lt,"workflow-dependsOn":aR,"workflowId-unique":cR,"x-security-scheme-name-reference":WO,"x-security-scheme-required-values":GO},lR={},Pr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:co("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),df=/^1\.[012]\.\d+(-.+)?$/;function ba(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 $r(e){if(!Y.isPlainObject(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"&&df.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}const uo=()=>{let e;return{Root:{enter(t){e=$r(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?zO({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Sr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},fo=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const i=qs(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}},mo=()=>({Root:{PathItem:{Operation(e,t){Sr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function uR(e,t,r){if("flows"in e&&e.flows){const{node:n,location:i}=j.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,s=Object.values(n??{}).flatMap(c=>{const p=j.isRef(c)?t(c,o).node:c;return Object.keys(p?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}const va=e=>{const t=new Map,r=[];return{Root:{leave(n,{report:i}){for(const{schemeName:o,scopes:s,location:c}of r){const p=t.get(o);if(p?.type==="oauth2"){if(e.requireScopes&&s.length===0){i({message:`The "${o}" security requirement must list at least one scope.`,location:c.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let l=0;l<s.length;l++){const d=s[l];p.definedScopes.includes(d)||i({message:`The "${d}" scope is not defined in the "${o}" security scheme.`,location:c.child([l]),suggest:po(d,p.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:i,resolve:o,location:s}){t.set(i.toString(),{type:n.type,definedScopes:n.type==="oauth2"?uR(n,o,s):[]})},SecurityRequirement(n,{location:i}){for(const[o,s]of Object.entries(n))r.push({schemeName:o,scopes:s||[],location:i.child([o])})}}},ho=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(const i of Object.keys(e))i!=="$ref"&&t({message:`Property \`${i}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(i).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}}),yo=()=>({Tag(e,t){Sr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),go=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)qs(t.tags[i],e)>qs(t.tags[i+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",i]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}}),dR=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),fR=()=>({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"})}}),bl="https://redocly.com/docs/cli/rules/async/security-defined",mR=()=>{const e=new Map,t=new Map,r=[];let n,i=!1;return{Root:{leave(o,{report:s}){for(const[p,l]of e.entries())if(!l.defined)for(const d of l.from)s({message:`There is no \`${p}\` security scheme defined.`,location:d.key(),reference:bl});const c=[...t.keys()];for(const{location:p,channelServers:l}of r){const d=l??c;d.length>0&&d.every(y=>t.get(y))||s({message:"Every operation should have security defined on it.",location:p.key(),reference:bl})}}},SecurityScheme(o,{key:s}){o!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:s}){for(const c of Object.keys(o)){const p=e.get(c),l=s.child([c]);p?p.from.push(l):e.set(c,{from:[l]})}},Components:{enter(){i=!0},leave(){i=!1}},Server(o,{key:s}){i||t.set(s.toString(),Ui(o))},Channel:{skip(){return i},enter(o){n=Array.isArray(o?.servers)&&o.servers.length>0?o.servers:void 0},Operation(o,{location:s,resolve:c}){pf(o,c)||r.push({location:s,channelServers:n})}}}},hR={struct:Lt,"no-unresolved-refs":Nt,assertions:Bt,"info-contact":Pr,"info-license-strict":uo,"operation-operationId":mo,"security-defined":mR,"channels-kebab-case":dR,"no-channel-trailing-slash":fR,"tag-description":yo,"tags-alphabetical":go,"no-duplicated-enum-values":tn,"no-unsafe-markdown":sn,"no-duplicated-tag-names":fo,"no-required-schema-properties-undefined":nn,"no-enum-type-mismatch":rn,"no-mixed-number-range-constraints":lo,"no-schema-type-mismatch":on,"security-scopes-defined":va,"spec-ref-siblings":ho},yR={},gR=()=>({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"})}}),bR=()=>({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"})}}),vl="#/components/securitySchemes/",vR="#/components/",Vo="https://redocly.com/docs/cli/rules/async/security-defined";function wR(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function xR(e){if(!e.startsWith(vl))return!1;const t=e.slice(vl.length);return t!==""&&!t.includes("/")}const SR=()=>{const e=[];let t,r,n,i,o;const s=(c,p,l)=>{const d=c.channel,h=j.isRef(d)?p(d,l):void 0,g=(j.isRef(d)?h?.node:d)?.servers;let $,x;return g&&g.length>0?($=g,x=h?.location?.source.absoluteRef??l):($=t?Object.values(t):[],x=r),$.length===0?!1:$.every(P=>{const A=j.isRef(P)?p(P,x).node:P;return Ui(A)})};return{Root:{enter(c,{location:p,resolve:l}){const d=c?.servers;if(j.isRef(d)){const y=l(d);t=y.node??void 0,r=y.location?.source.absoluteRef}else t=d,r=void 0;const h=c?.operations;if(j.isRef(h)){const y=l(h);n=y.node??void 0,i=y.location?.source.absoluteRef,o=y.location}else n=h,i=void 0,o=p.child(["operations"])},leave(c,{report:p,resolve:l}){for(const d of e){if((d.local||d.refPointer.startsWith(vR))&&!xR(d.refPointer)){p({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:d.location.key(),reference:Vo});continue}d.resolved||p({message:`There is no \`${d.name}\` security scheme defined.`,location:d.location.key(),reference:Vo})}if(n&&o){const d=o;for(const[h,y]of Object.entries(n)){let g,$;if(j.isRef(y)){const x=l(y,i);g=x.node,$=x.location?.source.absoluteRef}else g=y,$=i;g&&(pf(g,l,$)||s(g,l,$)||p({message:"Every operation should have security defined on it.",location:d.child([h]).key(),reference:Vo}))}}}},SecuritySchemeList:{enter(c,{location:p,resolve:l}){if(c)for(let d=0;d<c.length;d++){const h=c[d];if(!j.isRef(h))continue;const y=p.child([d]),g=l(h),$=wR(h.$ref),x=$.split("/").pop()??h.$ref;e.push({location:y,name:x,refPointer:$,resolved:g.node!=null,local:h.$ref.startsWith("#")})}}}}};function PR(e,t,r){if(!e.flows)return[];const{node:n,location:i}=j.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,s=Object.values(n??{}).flatMap(c=>{const p=j.isRef(c)?t(c,o).node:c;return Object.keys(p?.availableScopes||{})});return[...new Set(s)]}const $R=e=>{const t=new Map;return{SecuritySchemeList(r,{resolve:n,location:i}){for(let o=0;o<r.length;o++){const s=r[o],c=j.isRef(s)?n(s):{node:s,location:i.child([o])};!c.node||!c.location||t.set(c.location.absolutePointer,{scheme:c.node,location:c.location,availableScopes:c.node.type==="oauth2"?PR(c.node,n,c.location):[]})}},Root:{leave(r,{report:n}){for(const{scheme:i,location:o,availableScopes:s}of t.values()){if(i.type!=="oauth2")continue;if(e.requireScopes&&!i.scopes?.length){n({message:"The security scheme must list at least one scope.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}const c=i.scopes||[];for(let p=0;p<c.length;p++){const l=c[p];s.includes(l)||n({message:`The "${l}" scope is not defined in the available scopes of the security scheme flows.`,location:o.child(["scopes",p]),suggest:po(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},AR={struct:Lt,"no-unresolved-refs":Nt,assertions:Bt,"info-contact":Pr,"info-license-strict":uo,"operation-operationId":mo,"security-defined":SR,"channels-kebab-case":gR,"no-channel-trailing-slash":bR,"tag-description":yo,"tags-alphabetical":go,"no-duplicated-enum-values":tn,"no-unsafe-markdown":sn,"no-duplicated-tag-names":fo,"no-required-schema-properties-undefined":nn,"no-enum-type-mismatch":rn,"no-mixed-number-range-constraints":lo,"no-schema-type-mismatch":on,"security-scopes-defined":$R,"spec-ref-siblings":ho},ER={};function ff(e){return Hs(Zt).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Bd.has(t),runsOnValues:Vd.has(t)}))}const OR=e=>{const t=Object.values(e).filter(Y.isPlainObject),r=[];for(const n of t){if(n.severity==="off")continue;const i=n.subject?.type;if(!i)continue;if(!Y.isPlainObject(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);const o=ff(n),s=RR(n);r.push({[i]:(c,p)=>{_R(c,p,s)&&TR(c,p,n,o)}})}return r};function RR(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!it(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!Y.isPlainObject(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:ff(t)}}):[]}function _R(e,t,r){let n=r;const i=r.at(-1);if(i&&i.kind===e.kind){if(!wl(e,i,t))return!1;n=r.slice(0,-1)}let o=0;for(const s of n){let c=!1;for(;o<t.ancestors.length;){const p=t.ancestors[o++];if(p.kind===s.kind&&wl(p,s,t)){c=!0;break}}if(!c)return!1}return!0}function wl(e,t,r){const{value:n}=mf(e,t.definition.subject.property),i=new j.Location(r.source,"#/");return t.assertsToApply.every(o=>Zt[o.name](n,o.conditions,{baseLocation:i,rawValue:n}).length===0)}function TR(e,t,r,n){const i=hf(r.subject.property),{value:o,locNode:s}=mf(e,r.subject.property),c=new j.Location(t.source,"#/"),p=n.flatMap(d=>Zt[d.name](o,d.conditions,{baseLocation:c,rawValue:o}));if(!p.length)return;const l=`${De.blue(r.assertionId)} failed because the ${De.blue(r.subject.type)} ${De.blue(i??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:cf(r.message??l,{problems:sf(p),assertionName:r.assertionId,nodeType:r.subject.type,property:i??"",key:"",pointer:"",file:af(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Ho(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 mf(e,t){const r=hf(t);if(r===void 0)return Ho(e);const n=e[r];if(Array.isArray(n))return{value:n.map(o=>Ho(o).value),locNode:e};const i=Ho(n);return{value:i.value,locNode:kR(i.locNode)?i.locNode:e}}function kR(e){return Y.isPlainObject(e)&&"kind"in e}function hf(e){return Array.isArray(e)?e[0]:e}const IR=["Query","Mutation","Subscription"];function qR(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const CR=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const i=d=>t.add(qR(d)),o=d=>e.set(d.name.value,d.name),s=d=>{for(const h of d.interfaces??[])i(h);for(const h of d.fields??[]){i(h.type);for(const y of h.arguments??[])i(y.type)}},c=d=>{for(const h of d.types??[])i(h)},p=d=>{for(const h of d.fields??[])i(h.type)},l=d=>{for(const h of d.operationTypes??[])r.add(h.type.name.value)};return{SchemaDefinition:d=>{n=!0,l(d)},SchemaExtension:l,DirectiveDefinition:d=>{for(const h of d.arguments??[])i(h.type)},ObjectTypeDefinition:d=>{o(d),s(d)},ObjectTypeExtension:s,InterfaceTypeDefinition:d=>{o(d),s(d)},InterfaceTypeExtension:s,UnionTypeDefinition:d=>{o(d),c(d)},UnionTypeExtension:c,InputObjectTypeDefinition:d=>{o(d),p(d)},InputObjectTypeExtension:p,EnumTypeDefinition:o,ScalarTypeDefinition:o,Document:{leave:(d,h)=>{if(!n)for(const y of IR)e.has(y)&&r.add(y);if(r.size!==0)for(const[y,g]of e)t.has(y)||r.has(y)||h.report({message:`Type \`${y}\` is declared but never used.`,node:g})}}}},jR=()=>({Document:{enter:(e,t)=>{let r;try{r=Y.buildASTSchema(e,{assumeValidSDL:!1})}catch(n){MR(n,t);return}for(const n of Y.validateSchema(r))yf(n,t)}}});function MR(e,t){if(e instanceof Y.GraphQLError)yf(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function yf(e,t){const r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}const DR=()=>{const 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}},NR={struct:jR,assertions:OR,"no-unused-types":CR,"type-description":DR},wa=()=>({Info(e,{report:t}){e.license||t({message:co("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),gf=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const i of Object.keys(e)){const o=LR(i),s=`${o.segments.length}:${o.variableCount}`;let c=n.get(s);c||(c=[],n.set(s,c));let p;for(const l of c)if(UR(l,o)){p=l;break}p&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${p.path}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),c.push(o)}}});function LR(e){const t=e.split("/"),r=[];let n=0;for(const i of t){const o=/^{.+?}$/.test(i);r.push(o),o&&n++}return{path:e,segments:t,isVariable:r,variableCount:n}}function UR(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 bf(e){return e.startsWith("{")&&e.endsWith("}")}function FR(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(j.isTruthy).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])}const zR=["get","head","post","put","patch","delete","options","trace"],vf=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:i,location:o}){const s=n.toString();if(!s.startsWith("/")||t?.some(p=>s===p))return;const c=s.split("/");for(const p of c){if(!p||bf(p))continue;const l=d=>e?FR(p).has(d):p.toLocaleLowerCase().includes(d);for(const d of zR)l(d)&&i({message:`path \`${s}\` should not contain http verb ${d}`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}}),wf=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const i of Object.keys(e)){const o=i.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(o);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(o,i)}}}),xf=e=>{const t=new so;return{Parameter:{leave(r,n){if(mt(r.example)&&Hr({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"}),Y.isPlainObject(r.examples))for(const[i,o]of Object.entries(r.examples)){const s=uf(o);s&&Hr({example:s.value,schema:r.schema,options:{location:n.location.child(["examples",i,s.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}},Sf=e=>{const t=new so;return{Schema:{leave(r,n){const i=r.examples;if(Array.isArray(i))for(const o of i)Hr({example:o,schema:r,options:{location:n.location.child(["examples",i.indexOf(o)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(mt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Hr({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"})}}}}},Pf=()=>({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"})}}),$f=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){const i=Object.keys(r||{});Fi({responseCodes:i,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;const i=Object.keys(r||{});Fi({responseCodes:i,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}}),Af=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});Fi({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;const n=Object.keys(t||{});Fi({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),Ef=()=>({Operation(e,t){Sr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),Of=()=>{const 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))}}},BR=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Rf=()=>({Operation(e,{report:t,location:r}){e.operationId&&!BR.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"})}}),_f=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){const s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
19
|
-
Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:o.PathItem.child(["parameters",i]),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:i,parentLocations:o}){const 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:o.Operation.child(["parameters",i]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(s)}}}}},Tf=()=>({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"})}}),kf=()=>({Operation(e,t){Sr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),If=()=>{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 i=0;i<t.tags.length;i++)e.has(t.tags[i])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",i]),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"})}}},qf=()=>({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"})}}),Cf=()=>({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"})}}),VR=["get","head","post","put","patch","delete","options","query","trace"],jf=e=>{const t=e&&e.order||VR;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:i}){const o=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<o.length-1;s++){const c=t.indexOf(o[s]);t.indexOf(o[s+1])<c&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...i.child(o[s+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}},Mf=()=>({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"})}}}),HR=/\{([a-zA-Z0-9_.-]+)\}+/g,KR=2,zi=()=>{const e={current:null};return{PathItem:{enter(r,{key:n}){Df(e,n)},leave(){WR(e)},Parameter(r,{report:n,location:i,rawLocation:o}){Nf({parameter:r,pathContext:e,report:n,location:i,rawLocation:o})},Operation:Lf(e,new Set)}}},Df=(e,t)=>{e.current={path:t,templateParams:QR(t),definedParams:new Set}},WR=e=>{e.current=null},Nf=({parameter:e,pathContext:t,report:r,location:n,rawLocation:i})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),Uf({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:i}))},Lf=(e,t,r=0)=>{const n=(o,s,c)=>{o({message:`Maximum callback nesting depth (${c}) 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>=KR)return{enter:()=>{},leave:(o,{report:s,location:c})=>{n(s,c,r)},Parameter:()=>{},Callback:void 0};const i=()=>{let o=null;return{enter(s,{key:c}){o=e.current,Df(e,c)},leave(){e.current=o},Parameter(s,{report:c,location:p,rawLocation:l}){Nf({parameter:s,pathContext:e,report:c,location:p,rawLocation:l})},get Operation(){return Lf(e,t,r+1)}}};return{enter(){t=new Set},leave(o,{report:s,location:c}){!e.current||!t||YR({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:s,location:c})},Parameter(o,{report:s,location:c,rawLocation:p}){GR(o,t),o.in==="path"&&o.name&&e.current&&(t.add(o.name),Uf({paramName:o.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:c,rawLocation:p}))},Callback:{get PathItem(){return i()}}}},QR=e=>new Set(Array.from(e.matchAll(HR)).map(t=>t[1])),GR=(e,t)=>{Y.isPlainObject(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},Uf=({paramName:e,templateParams:t,path:r,report:n,location:i,rawLocation:o})=>{if(!t.has(e)){const s=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,c=o===i?void 0:o;n({message:s,location:i.child(["name"]),from:c,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},YR=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:i,location:o})=>{const s=new Set([...t,...r]);for(const c of e)s.has(c)||i({message:`The operation does not define the path parameter \`{${c}}\` expected by path \`${n}\`.`,location:o.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})},Ff=e=>{const{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:i,key:o,location:s}){const c=o.toString();if(c.startsWith("/")){const p=c.split("/");p.shift(),t&&p.length>0&&p.pop();for(const l of p)r&&r.includes(l)||!bf(l)&&xu.isSingular(l)&&i({message:`path segment \`${l}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},zf=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}}),Bf=()=>{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:i,report:o}){t.has(n)&&r.type==="string"&&(r?.minLength||o({message:"Property minLength is required.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function yr(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const Vf=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{const s=t[o]||t[yr(o)]||t[yr(o).toLowerCase()]||[];for(const c of s)(!r?.headers||!Object.keys(r?.headers).some(p=>p.toLowerCase()===c.toLowerCase()))&&n({message:`Response object must contain a "${c}" header.`,location:i.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}},xl=["string","integer","number","boolean","null"],Hf=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(const o of Object.keys(e)){const s=i(j.getOwn(e,o)).node;!s||!JR(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(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function JR(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>xl.includes(t)):xl.includes(e.type)}const Kf=e=>{const t=new Map,r=[];let n=!0,i;return{Root:{leave(o,{report:s}){for(const[c,p]of t.entries())if(!p.defined)for(const l of p.from)s({message:`There is no \`${c}\` security scheme defined.`,location:l.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(o.security||n))for(const c of r)s({message:"Every operation should have security defined on it or on the root level.",location:c.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(o,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:s}){for(const c of Object.keys(o)){const p=t.get(c),l=s.child([c]);p?p.from.push(l):t.set(c,{from:[l]})}},PathItem:{enter(o,{key:s}){i=s},Operation(o,{location:s,key:c}){const p=e.exceptions?.some(l=>l.path===i&&(!l.methods||l.methods?.some(d=>d.toLowerCase()===c)));!o?.security&&!p&&(n=!1,r.push(s))}}}},Wf=()=>{const e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:i,type:o}){!e.includes(o.name)&&j.isRef(n)&&r({message:"Field $ref is not expected here.",location:i.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}},XR=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(o,{report:s,location:c}){o.type==="boolean"&&!r.test(o.name)&&s({message:`Boolean parameter \`${o.name}\` should have ${i} prefix.`,location:c.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function Bi({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:s}=r,c=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${c}-mime-type" rule`);if(t[e])for(const p of t[e])n.includes(p)||o({message:`Mime type "${p}" is not allowed`,location:s.child(t[e].indexOf(p)).key(),reference:i})}function mr({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:s}=r,c=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${c}-mime-type" rule`);if(t.content)for(const p of Object.keys(t.content))n.includes(p)||o({message:`Mime type "${p}" is not allowed`,location:s.child("content").child(p).key(),reference:i})}const ZR=({allowedValues:e})=>({Root(t,r){Bi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){Bi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),e1=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},Schema(n,{report:i,location:o}){if(n.type!=="object")return;const s=t[r]||t[yr(r)]||t[yr(r).toLowerCase()]||[];for(const c of s)n.properties?.[c]||i({message:`Response object must contain a top-level "${c}" property.`,location:o.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}},t1=({allowedValues:e})=>({Root(t,r){Bi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){Bi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),r1={struct:Lt,"no-invalid-schema-examples":Sf,"no-invalid-parameter-examples":xf,"info-contact":Pr,"info-license":wa,"info-license-strict":uo,"tag-description":yo,"tags-alphabetical":go,"paths-kebab-case":zf,"no-enum-type-mismatch":rn,"boolean-parameter-prefixes":XR,"no-path-trailing-slash":Pf,"operation-2xx-response":$f,"operation-4xx-response":Af,assertions:Bt,"operation-operationId-unique":Of,"operation-parameters-unique":_f,"path-parameters-defined":zi,"operation-tag-defined":If,"path-declaration-must-exist":Cf,"operation-operationId-url-safe":Rf,"operation-operationId":mo,"operation-summary":kf,"operation-description":Ef,"path-not-include-query":Mf,"path-params-defined":zi,"parameter-description":qf,"operation-singular-tag":Tf,"security-defined":Kf,"security-scopes-defined":va,"no-unresolved-refs":Nt,"no-identical-paths":wf,"no-ambiguous-paths":gf,"path-http-verbs-order":jf,"no-http-verbs-in-paths":vf,"request-mime-type":ZR,"response-mime-type":t1,"path-segment-plural":Ff,"response-contains-header":Vf,"response-contains-property":e1,"scalar-property-missing-example":Hf,"required-string-property-missing-min-length":Bf,"spec-strict-refs":Wf,"spec-ref-siblings":ho,"no-required-schema-properties-undefined":nn,"no-schema-type-mismatch":on,"no-duplicated-enum-values":tn,"no-unsafe-markdown":sn,"no-duplicated-tag-names":fo},n1={},i1=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=j.isRef(t.schema)?r.resolve(t.schema).node:t.schema;n&&o1(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 o1(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))}const s1=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(o,{report:s,parentLocations:c},p){o.type==="boolean"&&!r.test(p.Parameter.name)&&s({message:`Boolean parameter \`${p.Parameter.name}\` should have ${i} prefix.`,location:c.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}};function a1(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Qf(e){const t=Y.isPlainObject(e)&&it(e.title)?e.title.trim():"",r=a1(t).replace(new RegExp(`[^${vd}]`,"g"),"-");return{title:t,name:r}}function Dr(e){return e.chain?.[0]??{node:e.node,location:e.location}}const pr="Schema",Cs="Parameter",js="Response",Ms="RequestBody",c1={[pr]:"schemas",[Cs]:"parameters",[js]:"responses",[Ms]:"requestBodies"},p1=e=>{const t=new Map,r=new Map,n=e.strategy==="title";let i;const o=[];e.schemas!=="off"&&o.push(pr),e.parameters!=="off"&&o.push(Cs),e.responses!=="off"&&o.push(js),e.requestBodies!=="off"&&o.push(Ms);const s={ref:{leave(h,{type:y,resolve:g,location:$}){const x=y.name;if(o.includes(x)){const P=g(h);if(!P.location)return;const A=Dr(P);if(d(x,A.location,$)){const{title:S,name:v}=Qf(A.node);if(S){p(x,v,A.location,A.location.child("title"));return}r.set(A.location.absolutePointer.toString(),A.location),l(x,A.location);return}l(x,P.location)}}},Root:{enter(h,{location:y}){i=y.source.absoluteRef},leave(h,y){t.forEach((g,$,x)=>{if(g.size>1){const P=d1($),A=l1(P.typeName),S=A?e[A]:null;for(const[v,O]of g){const b=Array.from(g.keys()).filter(M=>M!==v).map(M=>`- ${M}`).join(`
|
|
17
|
+
`)}}const Me=new MO,Es={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function ll(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,i=n&&Lr(n),o=i&&(p=>i.test(p.toString())),s=Array.isArray(t)&&(p=>t.includes(p.toString())),c=Array.isArray(r)&&(p=>!r.includes(p.toString()));return[o,s,c].filter(j.isTruthy)}function jd(e){const t=Us(Zt).filter(i=>e.assertions[i]!==void 0).map(i=>({name:i,conditions:e.assertions[i],runsOnKeys:Sd.has(i),runsOnValues:Pd.has(i)})),r=t.find(i=>i.runsOnKeys&&!i.runsOnValues),n=t.find(i=>i.runsOnValues&&!i.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 Md({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function Dd(e,t,r){const n=Md(e),i=[];for(const o of t)if(n.length)for(const s of n)i.push(ul({assert:o,ctx:r,assertionProperty:s}));else i.push(ul({assert:o,ctx:r}));return i.flat()}function DO(e,t){const r=ll(e.subject),n=r.length?(p,l)=>!r.every(d=>d(l)):void 0,i={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return i;let o={};const s=o,c=e.where;for(let p=0;p<c.length;p++){const l=c[p];if(!it(l.subject?.type))throw new Error(`${e.assertionId} -> where -> [${p}]: 'type' (String) is required`);if(!Y.isPlainObject(l.assertions))throw new Error(`${e.assertionId} -> where -> [${p}]: 'assertions' (Object) is required`);const d=ll(l.subject),h=jd(l),y=($,x,P)=>!d.every(A=>A(x))||!!Dd(l,h,{...P,node:$}).length,g={...(d.length||h.length)&&{skip:y}};l.subject.type===e.subject.type&&p===c.length-1?i[e.subject.type]={enter:t,...g.skip&&{skip:g.skip}||n&&{skip:($,x,P)=>!!(g.skip?.($,x,P)||n?.($,x))}}:o=o[l.subject?.type]=g}return o[e.subject.type]=i[e.subject.type],s}function NO(e,t){return(r,n)=>{const i=Md(t),o=`${De.blue(e)} failed because the ${De.blue(t.subject.type)} ${De.blue(i.join(", "))} didn't meet the assertions: ${Es.problems}`.replace(/ +/g," "),s=Dd(t,jd(t),{...n,node:r});if(s.length)for(const c of LO(s)){const p=t.message||o,d={problems:Nd(c),assertionName:e,nodeType:t.subject.type,property:i.join(", "),key:String(n.key),pointer:n.location.pointer,file:Ld(n.location.source.absoluteRef)};n.report({message:Ud(p,d),location:UO(c)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function LO(e){const t={};for(const r of e){if(!r.location)continue;const n=r.location.absolutePointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function UO(e){return e.length?e[0].location:void 0}function Nd(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
18
|
+
- ${t.message??""}`).join("")}function Ld(e){return j.isAbsoluteUrl(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function Ud(e,t){let r=e;for(const n of Object.keys(Es)){const i=Es[n],o=t[n];i&&(r=r.split(i).join(o))}return r}function ul({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const i=j.isRef(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],o=t.rawNode[r],s=n.child(r);return Zt[e.name](i,e.conditions,{...t,baseLocation:s,rawValue:o})}else{const i=Array.isArray(t.node)?t.node:Object.keys(t.node);return Zt[e.name](i,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const zt=e=>{const t=[],r=Object.values(e).filter(n=>Y.isPlainObject(n));for(const[n,i]of r.entries()){if(!it(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);if(!Y.isPlainObject(i.assertions))throw new Error(`${i.assertionId}: 'assertions' (Object) is required`);const o=NO(i.assertionId,i),s=DO(i,o);t.push(s)}return t};function FO(e){return Y.isPlainObject(e)||Array.isArray(e)}const en=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;const n=new Set,i=[];for(const[o,s]of e.enum.entries()){const c=FO(s);(c?i.some(l=>Mt(l,s)):n.has(s))&&t({message:`Duplicated enum value found: '${c?JSON.stringify(s):s}'.`,location:r.child(["enum",o]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),c?i.push(s):n.add(s)}}});var No,dl;function zO(){return dl||(dl=1,No=(function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?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 i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var c=0,p,l,d,h,y,g,$,x,P,A,S,v,O=[];for(p=0;p<i;p++)O.push(p+1),O.push(t.charCodeAt(s+p));for(var b=O.length-1;c<o-3;)for(P=r.charCodeAt(s+(l=c)),A=r.charCodeAt(s+(d=c+1)),S=r.charCodeAt(s+(h=c+2)),v=r.charCodeAt(s+(y=c+3)),g=c+=4,p=0;p<b;p+=2)$=O[p],x=O[p+1],l=e($,l,d,P,x),d=e(l,d,h,A,x),h=e(d,h,y,S,x),g=e(h,y,g,v,x),O[p]=g,y=h,h=d,d=l,l=$;for(;c<o;)for(P=r.charCodeAt(s+(l=c)),g=++c,p=0;p<b;p+=2)$=O[p],O[p]=g=e($,l,g,P,O[p+1]),l=$;return g}})()),No}var BO=zO();const VO=Y.getDefaultExportFromCjs(BO),no=(e,t,r)=>{if(j.isRef(e)){const 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}},Lo=(e,t,r,n,i)=>!!(e.properties&&j.getOwn(e.properties,t)!==void 0||e.allOf?.some(o=>Xt(o,t,r,n,i))||Fr(e.anyOf)&&e.anyOf.every(o=>Xt(o,t,r,new Set(n),i))||Fr(e.oneOf)&&e.oneOf.every(o=>Xt(o,t,r,new Set(n),i))),Xt=(e,t,r,n=new Set,i)=>{if(j.isRef(e)&&Lo(e,t,r,n,i))return!0;const{schema:o,location:s,chain:c}=no(e,r,i);if(!o)return!1;if(!n.has(o)&&(n.add(o),Lo(o,t,r,n,s)))return!0;for(const p of c??[])if(!(!Y.isPlainObject(p.node)||n.has(p.node))&&(n.add(p.node),Lo(p.node,t,r,n,p.location)))return!0;return!1};function Ur(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function ji(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function Fd(e,t,r){if(ji(e))return!0;if(!Array.isArray(e?.traits))return!1;for(const n of e.traits){const i=j.isRef(n)?t(n,r).node:n;if(ji(i))return!0}return!1}function Os(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return Y.isPlainObject(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function io(e,t){return`${e} object should contain \`${t}\` field.`}function HO(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function zd(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Sr({fieldName:e,value:t,ctx:r,reference:n}){Y.isPlainObject(t)&&(t[e]===void 0?r.report({message:io(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:zd(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function KO({fieldNames:e,value:t,ctx:r,reference:n}){if(Y.isPlainObject(t)){e.some(i=>t.hasOwnProperty(i))||r.report({message:HO(r.type.name,e),location:r.location.key(),reference:n});for(const i of e)t.hasOwnProperty(i)&&!t[i]&&r.report({message:zd(r.type.name,i),location:r.location.child([i]).key(),reference:n})}}function oo(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];const r=[];for(let n=0;n<t.length;n++){const i=VO(e,t[n]);i<4&&r.push({distance:i,variant:t[n]})}return r.sort((n,i)=>n.distance-i.distance),r.map(n=>n.variant)}function Bd(e){if(Y.isPlainObject(e)){if(mt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(mt(e.value))return{value:e.value,field:"value"}}}function Hr({example:e,schema:t,options:r,reference:n}){const{location:i,ctx:o,validator:s,allowAdditionalProperties:c,ajvContext:p}=r,{resolve:l,location:d,report:h,specVersion:y}=o;try{const{valid:g,errors:$}=s.validate(e,t,{schemaLoc:d.child("schema"),instancePath:i.pointer,resolve:l,allowAdditionalProperties:c,ajvContext:p,specVersion:y});if(!g)for(const x of $)h({message:`Example value must conform to the schema: ${x.message}.`,location:{...new j.Location(i.source,x.instancePath),reportOnKey:x.keyword==="unevaluatedProperties"||x.keyword==="additionalProperties"},from:d,suggest:x.suggest,reference:n})}catch(g){if(g.message==="discriminator: requires oneOf or anyOf composite keyword")return;h({message:`Example validation errored: ${g.message}.`,location:d.child("schema"),from:d,reference:n})}}const WO=10;function fl(e,t,r,n,{report:i,location:o},s){if(e&&!e.includes(t)){const c=e.length>WO?`\`${r}\` "${t}" is not a valid value.${s?` See the supported values: ${s}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(p=>`"${p}"`).join(", ")}.`;i({location:o,message:c,from:n,suggest:oo(t,e)})}}function Mi({responseCodes:e,codeRange:t,report:r,reference:n,disallowDefault:i=!1}){const o=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(c=>!i&&t==="2XX"&&c==="default"||o.test(c))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Rs(e,t){return t?e.name.toLowerCase():e.name}const tn=()=>({Schema(e,{report:t,location:r}){if(!Y.isPlainObject(e)||!e.type)return;const n=Array.isArray(e.type)?e.type:[e.type],i=o=>n.some(s=>Os(o,s,e.nullable));if(Array.isArray(e.enum))for(const[o,s]of e.enum.entries())i(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 "${Ur(s)}".`,location:r.child(["enum",o]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"});"const"in e&&!i(e.const)&&t({message:`The \`const\` value must be of the same type as the \`type\` field: expected "${n.join('" or "')}" but received "${Ur(e.const)}".`,location:r.child(["const"]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}),so=()=>({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"})}}),rn=()=>{const e=[],t=new Set,r=(n,i,o)=>{if(Fr(n.required))for(const[s,c]of n.required.entries())Xt(n,c,o,new Set,i)||o.report({message:`Required property '${c}' is not defined.`,location:i.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,i,o){if(i.type.name!=="Schema")return;const s=[{node:n,location:i.location},...o.chain??[]];for(const{node:c,location:p}of s)!Y.isPlainObject(c)||t.has(c)||(t.add(c),r(c,p,i))}},Schema:{leave(n){e.pop()},enter(n,i){if(e.push(n),!Fr(n.required))return;const o=(p,l)=>{const d=h=>no(h,i).schema===l;return!!(p.allOf?.some(d)||p.anyOf?.some(d)||p.oneOf?.some(d))},s=(p,l)=>{if(p<0)return;const d=e[p];return o(d,l)?s(p-1,d)??d:void 0},c=s(e.length-2,n);for(const[p,l]of n.required.entries())!Xt(n,l,i)&&!Xt(c,l,i)&&i.report({message:`Required property '${l}' is not defined.`,location:i.location.child(["required",p]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}},nn=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}}),Dt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&ur(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(const i of Object.keys(e)){const o=r({$ref:e[i]});if(o.node!==void 0)return;ur(o,t,n.child(i))}}});function ur(e,t,r){const n=e.error;n instanceof j.YamlParseError&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});const i=e.error?.message;t({location:r,message:`Can't resolve $ref${i?": "+i:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}const on=()=>({any(e,{report:t,location:r}){typeof e.description=="string"&&(/<script\b/i.test(e.description)&&t({message:"Markdown descriptions must not contain '<script>' tags.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/<[a-z][^>]*\bon[a-z]+\s*=/i.test(e.description)&&t({message:"Markdown descriptions must not contain HTML event handler attributes.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/(?:\]\(\s*|\b(?:href|src)\s*=\s*["']?\s*)javascript:/i.test(e.description)&&t({message:"Markdown descriptions must not contain 'javascript:' URLs.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}))}}),Nt=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:s,ignoreNextVisitorsOnNode:c}){const p=Ur(e),l=i!==n?i:void 0;if(r.items){p!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${p}\``,from:l}),c());return}else if(p!=="object"){r!==j.SpecExtension&&t({message:`Expected type \`${r.name}\` (object) but got \`${p}\``,from:l}),c();return}const d=typeof r.required=="function"?r.required(e,o):r.required;for(const g of d||[])e.hasOwnProperty(g)||t({message:`The field \`${g}\` must be present on this level.`,from:l,location:[{reportOnKey:!0}]});const h=r.allowed?.(e);if(h&&Y.isPlainObject(e))for(const g in e)h.includes(g)||r.extensionsPrefix&&g.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(g)||t({message:`The field \`${g}\` is not allowed here.`,from:l,location:n.child([g]).key()});const y=r.requiredOneOf||null;if(y){let g=!1;for(const $ of y||[])e.hasOwnProperty($)&&(g=!0);g||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:l,location:[{reportOnKey:!0}]})}for(const g of Object.keys(e)){const $=n.child([g]);let x=e[g],P=j.getOwn(r.properties,g);if(P===void 0&&(P=r.additionalProperties),typeof P=="function"&&(P=P(x,g)),j.isNamedType(P))continue;const A=P,S=Ur(x);if(A===void 0){if(g.startsWith("x-"))continue;t({message:`Property \`${g}\` is not expected here.`,suggest:oo(g,Object.keys(r.properties)),from:l,location:$.key()});continue}if(A!==null){if(A.resolvable!==!1&&j.isRef(x)&&(x=s(x).node),A.items&&A.items?.enum&&Array.isArray(x))for(let v=0;v<x.length;v++)fl(A.items?.enum,x[v],g,l,{report:t,location:n.child([g,v])},A.items?.documentationLink);if(A.enum)fl(A.enum,x,g,l,{report:t,location:n.child([g])},A.documentationLink);else if(A.type&&!Os(x,A.type,!1))t({message:`Expected type \`${A.type}\` but got \`${S}\`.`,from:l,location:$}),c();else if(S==="array"&&A.items?.type){const v=A.items?.type;for(let O=0;O<x.length;O++){const b=x[O];Os(b,v,!1)||t({message:`Expected type \`${v}\` but got \`${Ur(b)}\`.`,from:l,location:$.child([O])})}}typeof A.minimum=="number"&&A.minimum>e[g]&&t({message:`The value of the ${g} field must be greater than or equal to ${A.minimum}`,from:l,location:n.child([g])})}}}}),QO=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||Y.isPlainObject(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"})}}}),GO=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const i of t){const o=j.getOwn(i,"scheme"),s=j.getOwn(i,"schemeName");o&&s&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(i)]),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)}}}},YO=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;const i=e?.["x-security"];if(i)for(const o of i)"schemeName"in o&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",i.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}}),JO=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){const i=t?.["x-security"];if(!(!i||e<=1)){for(const o of i)if("schemeName"in o){const s=o.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",i.indexOf(o),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}},XO={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function ml(e,{report:t,location:r}){if(e)for(const n of e){if("schemeName"in n)continue;const{scheme:i,values:o}=n,s=i?.type==="http"?i.scheme:i?.type,c=i?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){Me.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const p=XO[c];if(p)for(const l of p)(!o||!(l in o))&&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"})}}const ZO=()=>({Step:{enter(e,t){ml(e?.["x-security"],t)}},Workflow:{enter(e,t){ml(e?.["x-security"],t)}}}),eR=()=>({FailureActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){const n=e?.criteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}},Step:{enter(e,{report:t,location:r}){const n=e?.successCriteria;if(!Array.isArray(n))return;const i=new Set;for(const o of n){const s=JSON.stringify(o);i.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):i.add(s)}}}}),tR=()=>{const e=new Map,t=new Map,r=[];function n({value:s,report:c,location:p,path:l,definedWorkflowOutputs:d}){const h=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=h.exec(s))!==null;){const[g,$,x]=y,P=d.get($);P?P.includes(x)||c({message:`Output key "${x}" is not defined in workflow "${$}". Available outputs: [ ${P.join(", ")} ].`,location:p.child(l)}):c({message:`Workflow "${$}" referenced in runtime expression "${g}" is not defined or has no outputs.`,location:p.child(l)})}}function i({value:s,report:c,location:p,path:l,definedStepOutputs:d}){const h=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=h.exec(s))!==null;){const[g,$,x]=y,P=d.get($);P?P.includes(x)||c({message:`Output key "${x}" is not defined in step "${$}". Available outputs: [ ${P.join(", ")} ].`,location:p.child(l)}):c({message:`Step "${$}" referenced in runtime expression "${g}" is not defined or has no outputs.`,location:p.child(l)})}}function o(s,c,p=[]){if(typeof s=="string")n({value:s,report:c.report,location:c.location,path:p,definedWorkflowOutputs:e}),i({value:s,report:c.report,location:c.location,path:p,definedStepOutputs:t});else if(Y.isPlainObject(s)||Array.isArray(s))for(const[l,d]of Object.entries(s))o(d,c,[...p,l])}return{Step:{enter(s,{report:c,location:p}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:c,location:p}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,c){r.push(()=>{o(s,c)})}},RequestBody:{enter(s,c){r.push(()=>{o(s,c)})}},CriterionObject:{enter(s,c){r.push(()=>{o(s.condition,c)})}},Outputs:{enter(s,c){r.push(()=>{o(s,c)})}},ExtendedSecurity:{enter(s,c){r.push(()=>{o(s,c)})}},ExtendedOperation:{enter(s,c){r.push(()=>{o(s,c)})}},Root:{leave(){for(const s of r)s()}}}},rR=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.has(i?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(i)])}),n.add(i?.name??i?.reference)}}}),nR=()=>{const e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(const i of t.replacements)e.has(i.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(i),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(i.target)}}}}},iR=()=>{const e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(const i of t)e.has(i.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(i.name)}}}},oR=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),sR=["x-operation","operationId","operationPath","channelPath","workflowId"],aR=()=>({Step:{enter(e,{report:t,location:r}){const n=sR.filter(i=>Object.hasOwn(e,i));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(i=>`\`${i}\``).join(", ")}.`,location:n.map(i=>r.child([i]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}}),cR=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(i?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(i.name??i.reference)}}}),pR=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;const n=new Set;for(const i of e)n.has(i?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(i?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(i?.name??i?.reference)}}}),lR=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;const n=new Set;for(const i of e.steps){if(!i.stepId)return;n.has(i.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(i.stepId)}}}}),uR=()=>{const e=new Set,t=new Set;return{SourceDescriptions:{enter(r){for(const n of r)e.add(n.name)}},Workflows:{enter(r){for(const n of r)t.add(n.workflowId)}},Workflow:{leave(r,{report:n,location:i}){if(!r.dependsOn)return;const o=new Set;for(const s of r.dependsOn){if(s.startsWith("$sourceDescriptions.")){const c=s.split(".")[1];e.has(c)||n({message:`SourceDescription ${c} must be defined in sourceDescriptions.`,location:i.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:i.child(["dependsOn",r.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),o.has(s)&&n({message:"Every workflow in dependsOn must be unique.",location:i.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),o.add(s)}}}}},dR=()=>{const 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))}}}},fR={assertions:zt,"criteria-unique":eR,"no-criteria-xpath":QO,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-enum-type-mismatch":tn,"no-mixed-number-range-constraints":so,"no-required-schema-properties-undefined":rn,"no-schema-type-mismatch":nn,"no-unresolved-refs":Dt,"no-x-security-both-scheme-and-scheme-name":GO,"no-x-security-scheme-name-without-openapi":YO,"outputs-defined":tR,"parameters-unique":rR,"requestBody-replacements-unique":nR,"sourceDescription-name-unique":iR,"sourceDescription-type":CO,"sourceDescriptions-not-empty":oR,"spec-step-mutually-exclusive-fields":aR,"step-onFailure-unique":cR,"step-onSuccess-unique":pR,"stepId-unique":lR,struct:Nt,"workflow-dependsOn":uR,"workflowId-unique":dR,"x-security-scheme-name-reference":JO,"x-security-scheme-required-values":ZO},mR={},Pr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:io("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),Vd=/^1\.[012]\.\d+(-.+)?$/;function da(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 $r(e){if(!Y.isPlainObject(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"&&Vd.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}const ao=()=>{let e;return{Root:{enter(t){e=$r(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?KO({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Sr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},co=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const i=Rs(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}},po=()=>({Root:{PathItem:{Operation(e,t){Sr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function hR(e,t,r){if("flows"in e&&e.flows){const{node:n,location:i}=j.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,s=Object.values(n??{}).flatMap(c=>{const p=j.isRef(c)?t(c,o).node:c;return Object.keys(p?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}const fa=e=>{const t=new Map,r=[];return{Root:{leave(n,{report:i}){for(const{schemeName:o,scopes:s,location:c}of r){const p=t.get(o);if(p?.type==="oauth2"){if(e.requireScopes&&s.length===0){i({message:`The "${o}" security requirement must list at least one scope.`,location:c.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let l=0;l<s.length;l++){const d=s[l];p.definedScopes.includes(d)||i({message:`The "${d}" scope is not defined in the "${o}" security scheme.`,location:c.child([l]),suggest:oo(d,p.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:i,resolve:o,location:s}){t.set(i.toString(),{type:n.type,definedScopes:n.type==="oauth2"?hR(n,o,s):[]})},SecurityRequirement(n,{location:i}){for(const[o,s]of Object.entries(n))r.push({schemeName:o,scopes:s||[],location:i.child([o])})}}},lo=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(const i of Object.keys(e))i!=="$ref"&&t({message:`Property \`${i}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(i).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}}),uo=()=>({Tag(e,t){Sr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),fo=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)Rs(t.tags[i],e)>Rs(t.tags[i+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",i]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}}),yR=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}}),gR=()=>({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"})}}),hl="https://redocly.com/docs/cli/rules/async/security-defined",bR=()=>{const e=new Map,t=new Map,r=[];let n,i=!1;return{Root:{leave(o,{report:s}){for(const[p,l]of e.entries())if(!l.defined)for(const d of l.from)s({message:`There is no \`${p}\` security scheme defined.`,location:d.key(),reference:hl});const c=[...t.keys()];for(const{location:p,channelServers:l}of r){const d=l??c;d.length>0&&d.every(y=>t.get(y))||s({message:"Every operation should have security defined on it.",location:p.key(),reference:hl})}}},SecurityScheme(o,{key:s}){o!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:s}){for(const c of Object.keys(o)){const p=e.get(c),l=s.child([c]);p?p.from.push(l):e.set(c,{from:[l]})}},Components:{enter(){i=!0},leave(){i=!1}},Server(o,{key:s}){i||t.set(s.toString(),ji(o))},Channel:{skip(){return i},enter(o){n=Array.isArray(o?.servers)&&o.servers.length>0?o.servers:void 0},Operation(o,{location:s,resolve:c}){Fd(o,c)||r.push({location:s,channelServers:n})}}}},vR={struct:Nt,"no-unresolved-refs":Dt,assertions:zt,"info-contact":Pr,"info-license-strict":ao,"operation-operationId":po,"security-defined":bR,"channels-kebab-case":yR,"no-channel-trailing-slash":gR,"tag-description":uo,"tags-alphabetical":fo,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-duplicated-tag-names":co,"no-required-schema-properties-undefined":rn,"no-enum-type-mismatch":tn,"no-mixed-number-range-constraints":so,"no-schema-type-mismatch":nn,"security-scopes-defined":fa,"spec-ref-siblings":lo},wR={},xR=()=>({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"})}}),SR=()=>({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"})}}),yl="#/components/securitySchemes/",PR="#/components/",Uo="https://redocly.com/docs/cli/rules/async/security-defined";function $R(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function AR(e){if(!e.startsWith(yl))return!1;const t=e.slice(yl.length);return t!==""&&!t.includes("/")}const ER=()=>{const e=[];let t,r,n,i,o;const s=(c,p,l)=>{const d=c.channel,h=j.isRef(d)?p(d,l):void 0,g=(j.isRef(d)?h?.node:d)?.servers;let $,x;return g&&g.length>0?($=g,x=h?.location?.source.absoluteRef??l):($=t?Object.values(t):[],x=r),$.length===0?!1:$.every(P=>{const A=j.isRef(P)?p(P,x).node:P;return ji(A)})};return{Root:{enter(c,{location:p,resolve:l}){const d=c?.servers;if(j.isRef(d)){const y=l(d);t=y.node??void 0,r=y.location?.source.absoluteRef}else t=d,r=void 0;const h=c?.operations;if(j.isRef(h)){const y=l(h);n=y.node??void 0,i=y.location?.source.absoluteRef,o=y.location}else n=h,i=void 0,o=p.child(["operations"])},leave(c,{report:p,resolve:l}){for(const d of e){if((d.local||d.refPointer.startsWith(PR))&&!AR(d.refPointer)){p({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:d.location.key(),reference:Uo});continue}d.resolved||p({message:`There is no \`${d.name}\` security scheme defined.`,location:d.location.key(),reference:Uo})}if(n&&o){const d=o;for(const[h,y]of Object.entries(n)){let g,$;if(j.isRef(y)){const x=l(y,i);g=x.node,$=x.location?.source.absoluteRef}else g=y,$=i;g&&(Fd(g,l,$)||s(g,l,$)||p({message:"Every operation should have security defined on it.",location:d.child([h]).key(),reference:Uo}))}}}},SecuritySchemeList:{enter(c,{location:p,resolve:l}){if(c)for(let d=0;d<c.length;d++){const h=c[d];if(!j.isRef(h))continue;const y=p.child([d]),g=l(h),$=$R(h.$ref),x=$.split("/").pop()??h.$ref;e.push({location:y,name:x,refPointer:$,resolved:g.node!=null,local:h.$ref.startsWith("#")})}}}}};function OR(e,t,r){if(!e.flows)return[];const{node:n,location:i}=j.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,s=Object.values(n??{}).flatMap(c=>{const p=j.isRef(c)?t(c,o).node:c;return Object.keys(p?.availableScopes||{})});return[...new Set(s)]}const RR=e=>{const t=new Map;return{SecuritySchemeList(r,{resolve:n,location:i}){for(let o=0;o<r.length;o++){const s=r[o],c=j.isRef(s)?n(s):{node:s,location:i.child([o])};!c.node||!c.location||t.set(c.location.absolutePointer,{scheme:c.node,location:c.location,availableScopes:c.node.type==="oauth2"?OR(c.node,n,c.location):[]})}},Root:{leave(r,{report:n}){for(const{scheme:i,location:o,availableScopes:s}of t.values()){if(i.type!=="oauth2")continue;if(e.requireScopes&&!i.scopes?.length){n({message:"The security scheme must list at least one scope.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}const c=i.scopes||[];for(let p=0;p<c.length;p++){const l=c[p];s.includes(l)||n({message:`The "${l}" scope is not defined in the available scopes of the security scheme flows.`,location:o.child(["scopes",p]),suggest:oo(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},_R={struct:Nt,"no-unresolved-refs":Dt,assertions:zt,"info-contact":Pr,"info-license-strict":ao,"operation-operationId":po,"security-defined":ER,"channels-kebab-case":xR,"no-channel-trailing-slash":SR,"tag-description":uo,"tags-alphabetical":fo,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-duplicated-tag-names":co,"no-required-schema-properties-undefined":rn,"no-enum-type-mismatch":tn,"no-mixed-number-range-constraints":so,"no-schema-type-mismatch":nn,"security-scopes-defined":RR,"spec-ref-siblings":lo},TR={};function Hd(e){return Us(Zt).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Sd.has(t),runsOnValues:Pd.has(t)}))}const kR=e=>{const t=Object.values(e).filter(Y.isPlainObject),r=[];for(const n of t){if(n.severity==="off")continue;const i=n.subject?.type;if(!i)continue;if(!Y.isPlainObject(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);const o=Hd(n),s=IR(n);r.push({[i]:(c,p)=>{qR(c,p,s)&&CR(c,p,n,o)}})}return r};function IR(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!it(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!Y.isPlainObject(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:Hd(t)}}):[]}function qR(e,t,r){let n=r;const i=r.at(-1);if(i&&i.kind===e.kind){if(!gl(e,i,t))return!1;n=r.slice(0,-1)}let o=0;for(const s of n){let c=!1;for(;o<t.ancestors.length;){const p=t.ancestors[o++];if(p.kind===s.kind&&gl(p,s,t)){c=!0;break}}if(!c)return!1}return!0}function gl(e,t,r){const{value:n}=Kd(e,t.definition.subject.property),i=new j.Location(r.source,"#/");return t.assertsToApply.every(o=>Zt[o.name](n,o.conditions,{baseLocation:i,rawValue:n}).length===0)}function CR(e,t,r,n){const i=Wd(r.subject.property),{value:o,locNode:s}=Kd(e,r.subject.property),c=new j.Location(t.source,"#/"),p=n.flatMap(d=>Zt[d.name](o,d.conditions,{baseLocation:c,rawValue:o}));if(!p.length)return;const l=`${De.blue(r.assertionId)} failed because the ${De.blue(r.subject.type)} ${De.blue(i??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:Ud(r.message??l,{problems:Nd(p),assertionName:r.assertionId,nodeType:r.subject.type,property:i??"",key:"",pointer:"",file:Ld(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Fo(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 Kd(e,t){const r=Wd(t);if(r===void 0)return Fo(e);const n=e[r];if(Array.isArray(n))return{value:n.map(o=>Fo(o).value),locNode:e};const i=Fo(n);return{value:i.value,locNode:jR(i.locNode)?i.locNode:e}}function jR(e){return Y.isPlainObject(e)&&"kind"in e}function Wd(e){return Array.isArray(e)?e[0]:e}const MR=["Query","Mutation","Subscription"];function DR(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const NR=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const i=d=>t.add(DR(d)),o=d=>e.set(d.name.value,d.name),s=d=>{for(const h of d.interfaces??[])i(h);for(const h of d.fields??[]){i(h.type);for(const y of h.arguments??[])i(y.type)}},c=d=>{for(const h of d.types??[])i(h)},p=d=>{for(const h of d.fields??[])i(h.type)},l=d=>{for(const h of d.operationTypes??[])r.add(h.type.name.value)};return{SchemaDefinition:d=>{n=!0,l(d)},SchemaExtension:l,DirectiveDefinition:d=>{for(const h of d.arguments??[])i(h.type)},ObjectTypeDefinition:d=>{o(d),s(d)},ObjectTypeExtension:s,InterfaceTypeDefinition:d=>{o(d),s(d)},InterfaceTypeExtension:s,UnionTypeDefinition:d=>{o(d),c(d)},UnionTypeExtension:c,InputObjectTypeDefinition:d=>{o(d),p(d)},InputObjectTypeExtension:p,EnumTypeDefinition:o,ScalarTypeDefinition:o,Document:{leave:(d,h)=>{if(!n)for(const y of MR)e.has(y)&&r.add(y);if(r.size!==0)for(const[y,g]of e)t.has(y)||r.has(y)||h.report({message:`Type \`${y}\` is declared but never used.`,node:g})}}}},LR=()=>({Document:{enter:(e,t)=>{let r;try{r=Y.buildASTSchema(e,{assumeValidSDL:!1})}catch(n){UR(n,t);return}for(const n of Y.validateSchema(r))Qd(n,t)}}});function UR(e,t){if(e instanceof Y.GraphQLError)Qd(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function Qd(e,t){const r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}const FR=()=>{const 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}},zR={struct:LR,assertions:kR,"no-unused-types":NR,"type-description":FR},ma=()=>({Info(e,{report:t}){e.license||t({message:io("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),Gd=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const i of Object.keys(e)){const o=BR(i),s=`${o.segments.length}:${o.variableCount}`;let c=n.get(s);c||(c=[],n.set(s,c));let p;for(const l of c)if(VR(l,o)){p=l;break}p&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${p.path}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),c.push(o)}}});function BR(e){const t=e.split("/"),r=[];let n=0;for(const i of t){const o=/^{.+?}$/.test(i);r.push(o),o&&n++}return{path:e,segments:t,isVariable:r,variableCount:n}}function VR(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 Yd(e){return e.startsWith("{")&&e.endsWith("}")}function HR(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(j.isTruthy).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])}const KR=["get","head","post","put","patch","delete","options","trace"],Jd=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:i,location:o}){const s=n.toString();if(!s.startsWith("/")||t?.some(p=>s===p))return;const c=s.split("/");for(const p of c){if(!p||Yd(p))continue;const l=d=>e?HR(p).has(d):p.toLocaleLowerCase().includes(d);for(const d of KR)l(d)&&i({message:`path \`${s}\` should not contain http verb ${d}`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}}),Xd=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const i of Object.keys(e)){const o=i.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(o);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(o,i)}}}),Zd=e=>{const t=new ro;return{Parameter:{leave(r,n){if(mt(r.example)&&Hr({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"}),Y.isPlainObject(r.examples))for(const[i,o]of Object.entries(r.examples)){const s=Bd(o);s&&Hr({example:s.value,schema:r.schema,options:{location:n.location.child(["examples",i,s.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}},ef=e=>{const t=new ro;return{Schema:{leave(r,n){const i=r.examples;if(Array.isArray(i))for(const o of i)Hr({example:o,schema:r,options:{location:n.location.child(["examples",i.indexOf(o)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(mt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Hr({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"})}}}}},tf=()=>({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"})}}),rf=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){const i=Object.keys(r||{});Mi({responseCodes:i,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;const i=Object.keys(r||{});Mi({responseCodes:i,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}}),nf=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});Mi({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;const n=Object.keys(t||{});Mi({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),of=()=>({Operation(e,t){Sr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),sf=()=>{const 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))}}},WR=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,af=()=>({Operation(e,{report:t,location:r}){e.operationId&&!WR.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"})}}),cf=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){const s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
19
|
+
Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:o.PathItem.child(["parameters",i]),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:i,parentLocations:o}){const 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:o.Operation.child(["parameters",i]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(s)}}}}},pf=()=>({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"})}}),lf=()=>({Operation(e,t){Sr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),uf=()=>{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 i=0;i<t.tags.length;i++)e.has(t.tags[i])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",i]),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"})}}},df=()=>({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"})}}),ff=()=>({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"})}}),QR=["get","head","post","put","patch","delete","options","query","trace"],mf=e=>{const t=e&&e.order||QR;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:i}){const o=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<o.length-1;s++){const c=t.indexOf(o[s]);t.indexOf(o[s+1])<c&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...i.child(o[s+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}},hf=()=>({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"})}}}),GR=/\{([a-zA-Z0-9_.-]+)\}+/g,YR=2,Di=()=>{const e={current:null};return{PathItem:{enter(r,{key:n}){yf(e,n)},leave(){JR(e)},Parameter(r,{report:n,location:i,rawLocation:o}){gf({parameter:r,pathContext:e,report:n,location:i,rawLocation:o})},Operation:bf(e,new Set)}}},yf=(e,t)=>{e.current={path:t,templateParams:XR(t),definedParams:new Set}},JR=e=>{e.current=null},gf=({parameter:e,pathContext:t,report:r,location:n,rawLocation:i})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),vf({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:i}))},bf=(e,t,r=0)=>{const n=(o,s,c)=>{o({message:`Maximum callback nesting depth (${c}) 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>=YR)return{enter:()=>{},leave:(o,{report:s,location:c})=>{n(s,c,r)},Parameter:()=>{},Callback:void 0};const i=()=>{let o=null;return{enter(s,{key:c}){o=e.current,yf(e,c)},leave(){e.current=o},Parameter(s,{report:c,location:p,rawLocation:l}){gf({parameter:s,pathContext:e,report:c,location:p,rawLocation:l})},get Operation(){return bf(e,t,r+1)}}};return{enter(){t=new Set},leave(o,{report:s,location:c}){!e.current||!t||e1({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:s,location:c})},Parameter(o,{report:s,location:c,rawLocation:p}){ZR(o,t),o.in==="path"&&o.name&&e.current&&(t.add(o.name),vf({paramName:o.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:c,rawLocation:p}))},Callback:{get PathItem(){return i()}}}},XR=e=>new Set(Array.from(e.matchAll(GR)).map(t=>t[1])),ZR=(e,t)=>{Y.isPlainObject(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},vf=({paramName:e,templateParams:t,path:r,report:n,location:i,rawLocation:o})=>{if(!t.has(e)){const s=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,c=o===i?void 0:o;n({message:s,location:i.child(["name"]),from:c,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},e1=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:i,location:o})=>{const s=new Set([...t,...r]);for(const c of e)s.has(c)||i({message:`The operation does not define the path parameter \`{${c}}\` expected by path \`${n}\`.`,location:o.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})},wf=e=>{const{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:i,key:o,location:s}){const c=o.toString();if(c.startsWith("/")){const p=c.split("/");p.shift(),t&&p.length>0&&p.pop();for(const l of p)r&&r.includes(l)||!Yd(l)&&bu.isSingular(l)&&i({message:`path segment \`${l}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},xf=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(i=>i!=="").every(i=>/^{.+}$/.test(i)||/^[a-z0-9-.]+$/.test(i))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}}),Sf=()=>{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:i,report:o}){t.has(n)&&r.type==="string"&&(r?.minLength||o({message:"Property minLength is required.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function yr(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const Pf=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{const s=t[o]||t[yr(o)]||t[yr(o).toLowerCase()]||[];for(const c of s)(!r?.headers||!Object.keys(r?.headers).some(p=>p.toLowerCase()===c.toLowerCase()))&&n({message:`Response object must contain a "${c}" header.`,location:i.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}},bl=["string","integer","number","boolean","null"],$f=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(const o of Object.keys(e)){const s=i(j.getOwn(e,o)).node;!s||!t1(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(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function t1(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>bl.includes(t)):bl.includes(e.type)}const Af=e=>{const t=new Map,r=[];let n=!0,i;return{Root:{leave(o,{report:s}){for(const[c,p]of t.entries())if(!p.defined)for(const l of p.from)s({message:`There is no \`${c}\` security scheme defined.`,location:l.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(o.security||n))for(const c of r)s({message:"Every operation should have security defined on it or on the root level.",location:c.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(o,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:s}){for(const c of Object.keys(o)){const p=t.get(c),l=s.child([c]);p?p.from.push(l):t.set(c,{from:[l]})}},PathItem:{enter(o,{key:s}){i=s},Operation(o,{location:s,key:c}){const p=e.exceptions?.some(l=>l.path===i&&(!l.methods||l.methods?.some(d=>d.toLowerCase()===c)));!o?.security&&!p&&(n=!1,r.push(s))}}}},Ef=()=>{const e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:i,type:o}){!e.includes(o.name)&&j.isRef(n)&&r({message:"Field $ref is not expected here.",location:i.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}},r1=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(o,{report:s,location:c}){o.type==="boolean"&&!r.test(o.name)&&s({message:`Boolean parameter \`${o.name}\` should have ${i} prefix.`,location:c.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function Ni({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:s}=r,c=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${c}-mime-type" rule`);if(t[e])for(const p of t[e])n.includes(p)||o({message:`Mime type "${p}" is not allowed`,location:s.child(t[e].indexOf(p)).key(),reference:i})}function mr({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:s}=r,c=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${c}-mime-type" rule`);if(t.content)for(const p of Object.keys(t.content))n.includes(p)||o({message:`Mime type "${p}" is not allowed`,location:s.child("content").child(p).key(),reference:i})}const n1=({allowedValues:e})=>({Root(t,r){Ni({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){Ni({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),i1=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},Schema(n,{report:i,location:o}){if(n.type!=="object")return;const s=t[r]||t[yr(r)]||t[yr(r).toLowerCase()]||[];for(const c of s)n.properties?.[c]||i({message:`Response object must contain a top-level "${c}" property.`,location:o.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}},o1=({allowedValues:e})=>({Root(t,r){Ni({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){Ni({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),s1={struct:Nt,"no-invalid-schema-examples":ef,"no-invalid-parameter-examples":Zd,"info-contact":Pr,"info-license":ma,"info-license-strict":ao,"tag-description":uo,"tags-alphabetical":fo,"paths-kebab-case":xf,"no-enum-type-mismatch":tn,"boolean-parameter-prefixes":r1,"no-path-trailing-slash":tf,"operation-2xx-response":rf,"operation-4xx-response":nf,assertions:zt,"operation-operationId-unique":sf,"operation-parameters-unique":cf,"path-parameters-defined":Di,"operation-tag-defined":uf,"path-declaration-must-exist":ff,"operation-operationId-url-safe":af,"operation-operationId":po,"operation-summary":lf,"operation-description":of,"path-not-include-query":hf,"path-params-defined":Di,"parameter-description":df,"operation-singular-tag":pf,"security-defined":Af,"security-scopes-defined":fa,"no-unresolved-refs":Dt,"no-identical-paths":Xd,"no-ambiguous-paths":Gd,"path-http-verbs-order":mf,"no-http-verbs-in-paths":Jd,"request-mime-type":n1,"response-mime-type":o1,"path-segment-plural":wf,"response-contains-header":Pf,"response-contains-property":i1,"scalar-property-missing-example":$f,"required-string-property-missing-min-length":Sf,"spec-strict-refs":Ef,"spec-ref-siblings":lo,"no-required-schema-properties-undefined":rn,"no-schema-type-mismatch":nn,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-duplicated-tag-names":co},a1={},c1=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=j.isRef(t.schema)?r.resolve(t.schema).node:t.schema;n&&p1(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 p1(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))}const l1=e=>{const t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(o=>`\`${o}\``),i=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(o,{report:s,parentLocations:c},p){o.type==="boolean"&&!r.test(p.Parameter.name)&&s({message:`Boolean parameter \`${p.Parameter.name}\` should have ${i} prefix.`,location:c.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}};function u1(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Of(e){const t=Y.isPlainObject(e)&&it(e.title)?e.title.trim():"",r=u1(t).replace(new RegExp(`[^${Xu}]`,"g"),"-");return{title:t,name:r}}function Dr(e){return e.chain?.[0]??{node:e.node,location:e.location}}const pr="Schema",_s="Parameter",Ts="Response",ks="RequestBody",d1={[pr]:"schemas",[_s]:"parameters",[Ts]:"responses",[ks]:"requestBodies"},f1=e=>{const t=new Map,r=new Map,n=e.strategy==="title";let i;const o=[];e.schemas!=="off"&&o.push(pr),e.parameters!=="off"&&o.push(_s),e.responses!=="off"&&o.push(Ts),e.requestBodies!=="off"&&o.push(ks);const s={ref:{leave(h,{type:y,resolve:g,location:$}){const x=y.name;if(o.includes(x)){const P=g(h);if(!P.location)return;const A=Dr(P);if(d(x,A.location,$)){const{title:S,name:v}=Of(A.node);if(S){p(x,v,A.location,A.location.child("title"));return}r.set(A.location.absolutePointer.toString(),A.location),l(x,A.location);return}l(x,P.location)}}},Root:{enter(h,{location:y}){i=y.source.absoluteRef},leave(h,y){t.forEach((g,$,x)=>{if(g.size>1){const P=y1($),A=m1(P.typeName),S=A?e[A]:null;for(const[v,O]of g){const b=Array.from(g.keys()).filter(M=>M!==v).map(M=>`- ${M}`).join(`
|
|
20
20
|
`),k={message:`Component '${A}/${P.componentName}' is not unique. It is also defined at:
|
|
21
|
-
${b}`,location:O,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};S&&(k.forceSeverity=S),y.report(k)}}});for(const g of r.values()){const $={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:g,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&($.forceSeverity=e.schemas),y.report($)}}}};return e.schemas!="off"&&(s.NamedSchemas={Schema(h,{location:y,key:g,parentLocations:$}){if(d(pr,y)){p(pr,String(g),$.NamedSchemas.child(g));return}l(pr,y)}}),e.responses!="off"&&(s.NamedResponses={Response(h,{location:y}){l(js,y)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(h,{location:y}){l(Cs,y)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(h,{location:y}){l(Ms,y)}}),s;function c(h){const y=h.split("/").slice(-1)[0];return j.isSupportedExtension(y)?y.slice(0,y.lastIndexOf(".")):y}function p(h,y,g,$=g){const x=u1(h,y),P=t.get(x)??new Map,A=g.absolutePointer.toString();P.has(A)||P.set(A,$),t.set(x,P)}function l(h,y){const g=c(y.absolutePointer.toString());p(h,g,y)}function d(h,y,g=y){return n&&h===pr&&(y.source.absoluteRef!==i||g.source.absoluteRef!==i)}};function l1(e){return c1[e]??null}function u1(e,t){return`${e}/${t}`}function d1(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const f1=()=>({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"})}}),m1=()=>({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"})}}),h1=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"]),y1=()=>({AllOf(e,t){const r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!g1(e[0],t.resolve))&&Ko(e,"allOf",t),Wo(e,"allOf",t),Qo(e,"allOf",t))},AnyOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const n=Y.isPlainObject(r.discriminator);e.length<2&&!n&&Ko(e,"anyOf",t),Wo(e,"anyOf",t),Qo(e,"anyOf",t),n&&Sl(e,"anyOf",t)},OneOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const{discriminator:n}=r,i=Y.isPlainObject(n);e.length<2&&!i&&Ko(e,"oneOf",t),Wo(e,"oneOf",t),Qo(e,"oneOf",t),i&&Sl(e,"oneOf",t),Hi(r)&&b1(e,t),v1(e,i?n:void 0,t)}});function Ko(e,t,r){const 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 g1(e,t){return Y.isPlainObject(Kr(e,t)?.schema.discriminator)}function Wo(e,t,r){for(const[n,i]of e.entries())Y.isPlainObject(i)&&Object.keys(i).length===0&&r.report({message:`Schema in \`${t}\` is empty, so it matches any value.`,location:r.location.child([n])})}function Sl(e,t,r){for(const[n,i]of e.entries())j.isRef(i)||Y.isPlainObject(i)&&"$id"in i||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 Qo(e,t,r){for(let n=1;n<e.length;n++){const i=e.findIndex(o=>Dt(o,e[n]));i<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${i+1}.`,location:r.location.child([n])})}}function b1(e,t){e.some(n=>{const i=Kr(n,t.resolve);return i?Hi(i.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 v1(e,t,r){const{resolve:n,report:i,location:o}=r,s=r.specVersion!=="oas3_2",c=e.map(p=>Kr(p,n));for(let p=0;p<c.length-1;p++){const l=c[p];if(l)for(let d=p+1;d<c.length;d++){const h=c[d];if(!h||Dt(e[p],e[d]))continue;const y=w1(l,h,n,t,s);y&&i({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${Pl(e[p],p)} and ${Pl(e[d],d)}. ${y}`,location:o.key()})}}}function Pl(e,t){return j.isRef(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function w1(e,t,r,n,i){const o=e.schema,s=t.schema;if(Vi(o)||Vi(s)||Gf(o,s))return null;if(Hi(o)&&Hi(s))return"Both schemas accept `null`.";const c=Qr(o),p=Qr(s);if(c&&p){const d=c.filter(h=>p.some(y=>Dt(h,y)));return`Both schemas allow the values ${JSON.stringify(d)}.`}if(n)return i?x1(o,s,n):null;const l=S1(e,t,r);if(l)return l;if(!o.properties&&!s.properties){const d=Jf(o,s);if(d?.length)return`Both schemas accept ${d.map(h=>`\`${h}\``).join(", ")}.`}return null}function x1(e,t,r){const{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:mt(j.getOwn(e.properties??{},n))&&mt(j.getOwn(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 S1(e,t,r){const n=P1(e,t);if(!n||$l(e.schema,n.leftProperties,n.rightRequired)||$l(t.schema,n.rightProperties,n.leftRequired)||$1(n)||n.sharedNames.length===0)return null;const i=A1(n,r);if(!i)return null;const{optionalDistinguishingNames:o,ambiguousNames:s}=i;if(o.length>0){const c=s.length>0?` Other shared properties: ${Go(s)}.`:"";return`Add ${Go(o)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${c}`}return s.length>0?`Both schemas define ${Go(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function P1(e,t){const 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(i=>j.getOwn(n,i))}}function $1({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){const i=[...r].some(s=>!j.getOwn(t,s)&&!n.has(s)),o=[...n].some(s=>!j.getOwn(e,s)&&!r.has(s));return i&&o}function A1({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:i,rightRequired:o,sharedNames:s},c){const p=[],l=[];for(const d of s){const h=i.has(d)&&o.has(d),y=Kr(j.getOwn(r,d),c,e),g=Kr(j.getOwn(n,d),c,t);if(!(!y||!g)&&!(Vi(y.schema)||Vi(g.schema))){if(Gf(y.schema,g.schema)){if(h)return null;p.push(d);continue}l.push(d)}}return{optionalDistinguishingNames:p,ambiguousNames:l}}function $l(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!j.getOwn(t,n))}function Gf(e,t){const r=Qr(e),n=Qr(t);return r&&n?!r.some(i=>n.some(o=>Dt(i,o))):Jf(e,t)?.length===0}function Kr(e,t,r){if(j.isRef(e)){const{node:n,location:i}=t(e,r);return Y.isPlainObject(n)?{schema:n,source:i?.source.absoluteRef}:void 0}return Y.isPlainObject(e)?{schema:e,source:r}:void 0}function Vi(e){return Object.keys(e).some(t=>!h1.has(t)&&!t.startsWith("x-"))}function Yf(e){return"nullable"in e&&e.nullable===!0}function Wr(e){const t=e.type;if(t===void 0)return;const r=new Set(Array.isArray(t)?t:[t]);return Yf(e)&&r.add("null"),r}function Jf(e,t){const r=Wr(e),n=Wr(t);if(!r||!n)return;const i=[...r].filter(o=>n.has(o));return i.length===0&&E1(e,t)?["integer"]:i}function E1(e,t){const r=Wr(e),n=Wr(t);return r?.has("integer")&&n?.has("number")?Al(t):r?.has("number")&&n?.has("integer")?Al(e):!1}function Al(e){const t=Qr(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function Hi(e){return Yf(e)||Wr(e)?.has("null")===!0}function Qr(e){if(e.enum)return e.enum;const t="const"in e?e.const:void 0;return mt(t)?[t]:void 0}function Go(e){return e.map(t=>`\`${t}\``).join(", ")}const O1=e=>{const t=new so,r=i=>i.schema===void 0,n=i=>(o,s)=>{const{location:c,resolve:p}=s;if(mt(o.example))l(o.example,c.child("example"));else if(Y.isPlainObject(o.examples))for(const d of Object.keys(o.examples))l(o.examples[d],c.child(["examples",d]),!0);function l(d,h,y){if(j.isRef(d)){const $=p(d);if(!$.location)return;h=$.location,d=$.node}let g=d;if(y){const $=uf(d);if(!$)return;g=$.value,h=h.child($.field)}Hr({example:g,schema:o.schema,options:{location:h,ctx:s,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:i},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"})}}}},R1=()=>({Server(e,{report:t,location:r}){const 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"})}}),_1=()=>({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"})}}),T1=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;const n=[];if(Array.isArray(e.servers))for(const i of e.servers){const o=El(i);o&&n.push(...o)}else{const i=El(e.servers);if(!i)return;n.push(...i)}for(const i of n)i==="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"}),i==="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 El(e){if(e.variables&&Object.keys(e.variables).length===0)return;const t=[];for(const r in e.variables){const n=e.variables[r];if(!n.enum||(Array.isArray(n.enum)&&n.enum?.length===0&&t.push("empty"),!n.default))continue;const i=e.variables[r].default;n.enum&&!n.enum.includes(i)&&t.push("invalidDefaultValue")}if(t.length)return t}const k1=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;const n=e.url.match(/{[^}]+}/g)?.map(o=>o.slice(1,o.length-1))||[],i=e?.variables&&Object.keys(e.variables)||[];for(const o of n)i.includes(o)||t({message:`The \`${o}\` 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(const o of i)n.includes(o)||t({message:`The \`${o}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",o]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}}),I1=()=>{const e=new Map,t=new Map,r=new Set;function n(i,o,s=!1){e.set(i.absolutePointer,{used:e.get(i.absolutePointer)?.used||!1,referencesDiscriminator:s,location:i,name:o})}return{ref(i,{type:o,resolve:s,key:c,location:p}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(o.name)){const l=s(i);if(!l.location)return;e.set(l.location.absolutePointer,{used:!0,name:c.toString(),location:p})}},Root:{leave(i,{report:o}){e.forEach(s=>{!s.used&&!s.referencesDiscriminator&&o({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,c)=>{r.has(c)||o({message:`Security scheme: "${c}" is never used.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(i,{location:o,key:s,resolve:c}){const p=i.allOf?.some(l=>j.isRef(l)&&c(l)?.node?.discriminator);n(o,s.toString(),p)}},NamedParameters:{Parameter(i,{location:o,key:s}){n(o,s.toString())}},NamedResponses:{Response(i,{location:o,key:s}){n(o,s.toString())}},NamedExamples:{Example(i,{location:o,key:s}){n(o,s.toString())}},NamedRequestBodies:{RequestBody(i,{location:o,key:s}){n(o,s.toString())}},NamedHeaders:{Header(i,{location:o,key:s}){n(o,s.toString())}},NamedMediaTypes:{MediaTypesMap(i,{location:o,key:s}){n(o,s.toString())}},NamedSecuritySchemes:{SecurityScheme(i,{rawLocation:o,key:s}){t.set(s.toString(),o)}},SecurityRequirement(i){for(const o of Object.keys(i))r.add(o)}}},q1=()=>({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"})}}}),Yo="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",C1=()=>({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:Yo})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Sr({fieldName:"schema",value:e,ctx:t,reference:Yo}),!e.schema)return;const{schema:r,location:n}=ao(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const i of["type","title"])Xt(e.schema,i,t)||t.report({message:co("SchemaProperties",i),location:r.properties?n.child(["properties",i]).key():n.key(),reference:Yo})}}}}),j1=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){mr({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){mr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){mr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),M1=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},MediaType:{Schema(n,{report:i,location:o}){if(n.type!=="object")return;const s=t[r]||t[yr(r)]||t[yr(r).toLowerCase()]||[];for(const c of s)n.properties?.[c]||i({message:`Response object must contain a top-level "${c}" property.`,location:o.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}},D1=({allowedValues:e})=>({Paths:{Response:{leave(t,r){mr({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){mr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){mr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),N1=()=>{const e=`^[${vd}]+$`;function t(r,n,i,o){new RegExp(e).test(r)||n({message:`The map key in ${o} "${r}" does not match the regular expression "${e}"`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-components-invalid-map-name"})}return{NamedSchemas:{Schema(r,{key:n,report:i,location:o}){t(n,i,o,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:i,location:o}){t(n,i,o,"parameters")}},NamedResponses:{Response(r,{key:n,report:i,location:o}){t(n,i,o,"responses")}},NamedExamples:{Example(r,{key:n,report:i,location:o}){t(n,i,o,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:i,location:o}){t(n,i,o,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:i,location:o}){t(n,i,o,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:i,location:o}){t(n,i,o,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:i,location:o}){t(n,i,o,"links")}},NamedCallbacks:{Callback(r,{key:n,report:i,location:o}){t(n,i,o,"callbacks")}}}},L1=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){const n=t.discriminator?.propertyName;if(!n)return;const i=t.discriminator?.defaultMapping;if(i===void 0){const o=new Set,s=(c,p)=>{const l=ao(c,r,p);return!!(!l.schema||o.has(l.schema)||(o.add(l.schema),l.schema.required?.includes(n)||l.schema.allOf?.some(d=>s(d,l.location))||l.schema.oneOf?.every(d=>s(d,l.location))||l.schema.anyOf?.every(d=>s(d,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:i}).node===void 0&&!e.includes(i)&&r.report({message:`defaultMapping value '${i}' 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"})}}}},U1=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:i,location:o}){e!==void 0&&t!==void 0&&i({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:o,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),n!==void 0&&t!==void 0&&i({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:o,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&r!==void 0&&i({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:o.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&n!==void 0&&i({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:o.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}}),F1=()=>({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"})}}}),z1=()=>{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}const i=new Set(t.name);let o=t.parent;for(;o!==void 0;){if(i.has(o)){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}i.add(o),o=e.find(s=>s.name===o)?.parent}}}}};function Ol(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function Rl(e,t){const 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 _l(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)}const B1=()=>{let e={},t={},r=0;return{PathItem:{enter(n,i){e={},t={},r=0,Rl(Ol(n.parameters||[]),i)},Parameter(n,i){_l(n,i.location,e,i),n.in==="querystring"&&(r+=1)},Operation:{enter(n,i){t={...e};const o=r+Ol(n.parameters||[]);Rl(o,i)},Parameter(n,i){_l(n,i.location,t,i)}}}}},V1=()=>({ref:{leave(e,{report:t,location:r,type:n,specVersion:i}){const o=i!=="oas3_0";if(!(o&&n.name==="Schema"||n.name==="PathItem"))for(const s of Object.keys(e))s!=="$ref"&&(o&&(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"}))}}}),H1={struct:Lt,"info-contact":Pr,"info-license":wa,"info-license-strict":uo,"operation-2xx-response":$f,"operation-4xx-response":Af,"operation-4xx-problem-details-rfc7807":C1,assertions:Bt,"operation-operationId-unique":Of,"operation-parameters-unique":_f,"operation-tag-defined":If,"no-example-value-and-externalValue":m1,"no-mixed-number-range-constraints":lo,"no-enum-type-mismatch":rn,"no-path-trailing-slash":Pf,"no-empty-servers":f1,"path-declaration-must-exist":Cf,"operation-operationId-url-safe":Rf,"operation-operationId":mo,"operation-summary":kf,"tags-alphabetical":go,"no-server-example.com":R1,"no-server-trailing-slash":_1,"tag-description":yo,"operation-description":Ef,"no-unused-components":I1,"path-not-include-query":Mf,"path-parameters-defined":zi,"path-params-defined":zi,"parameter-description":qf,"operation-singular-tag":Tf,"security-defined":Kf,"security-scopes-defined":va,"no-unresolved-refs":Nt,"paths-kebab-case":zf,"boolean-parameter-prefixes":s1,"path-http-verbs-order":jf,"no-illogical-composition-keywords":y1,"no-invalid-media-type-examples":O1,"no-identical-paths":wf,"no-ambiguous-paths":gf,"no-undefined-server-variable":k1,"no-server-variables-empty-enum":T1,"no-http-verbs-in-paths":vf,"request-mime-type":j1,"response-mime-type":D1,"path-segment-plural":Ff,"no-invalid-schema-examples":Sf,"no-invalid-parameter-examples":xf,"response-contains-header":Vf,"response-contains-property":M1,"scalar-property-missing-example":Hf,"spec-components-invalid-map-name":N1,"required-string-property-missing-min-length":Bf,"spec-strict-refs":Wf,"component-name-unique":p1,"array-parameter-serialization":i1,"no-required-schema-properties-undefined":nn,"no-schema-type-mismatch":on,"no-duplicated-enum-values":tn,"no-unsafe-markdown":sn,"no-duplicated-tag-names":fo,"nullable-type-sibling":q1,"spec-no-invalid-tag-parents":z1,"spec-no-invalid-encoding-combinations":F1,"spec-discriminator-defaultMapping":L1,"spec-example-values":U1,"spec-querystring-parameters":B1,"spec-ref-siblings":V1},K1={},W1=()=>{const 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:i,key:o,location:s}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){const c=i(r);if(!c.location)return;e.set(c.location.absolutePointer,{used:!0,name:o.toString(),location:s})}},Root:{leave(r,{report:n}){e.forEach(i=>{i.used||n({message:`Component: "${i.name}" is never used.`,location:i.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(r,{location:n,key:i}){t(n,i.toString())}},NamedContentDescriptors:{ContentDescriptor(r,{location:n,key:i}){t(n,i.toString())}},NamedExamples:{Example(r,{location:n,key:i}){t(n,i.toString())}},NamedLinks:{Link(r,{location:n,key:i}){t(n,i.toString())}},NamedErrors:{ErrorObject(r,{location:n,key:i}){t(n,i.toString())}},NamedExamplePairingObjects:{ExamplePairing(r,{location:n,key:i}){t(n,i.toString())}},NamedTags:{Tag(r,{location:n,key:i}){t(n,i.toString())}}}},Q1=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;const i=new Set;e.params.forEach((o,s)=>{const c=r(o);if(!c.node)return;const p=c.node,l=p.name;l&&(i.has(l)&&t({message:`Parameter names must be unique. Duplicate parameter name '${p.name}' found.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),i.add(l))})}}}),G1=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let i=!1;e.params.forEach((o,s)=>{const c=r(o);if(!c.node)return;const p=c.node;if(!p.name)return;p.required===!0?i&&t({message:`Required parameter '${p.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"}):i=!0})}}}),Y1={struct:Lt,"no-unresolved-refs":Nt,assertions:Bt,"info-license":wa,"no-unused-components":W1,"info-contact":Pr,"spec-no-duplicated-method-params":Q1,"spec-no-required-params-after-optional":G1,"spec-ref-siblings":ho},J1={},X1=["$ref","target","description"],Z1=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name==="ReusableAction"){for(const i of Object.keys(e))X1.includes(i)||i.startsWith("x-")||t({message:`Property \`${i}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(i).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"})}}}}),e_={"info-contact":Pr,struct:Lt,"no-unresolved-refs":Nt,"spec-ref-siblings":Z1,assertions:Bt},t_={},r_={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"}},n_={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"}},i_={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"}},o_={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"}},s_={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"}},a_={recommended:o_,"recommended-strict":i_,minimal:n_,all:r_,spec:s_},Tl={id:"",rules:{oas3:H1,oas2:r1,async2:hR,async3:AR,arazzo1:pR,overlay1:e_,openrpc1:Y1,graphql:NR},preprocessors:{oas3:K1,oas2:n1,async2:yR,async3:ER,arazzo1:lR,overlay1:t_,openrpc1:J1},decorators:{oas3:OO,oas2:$O,async2:bO,async3:vO,arazzo1:gO,overlay1:_O,openrpc1:RO},configs:a_},c_={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function xt(e,t){const r={};r.any={enter:[],leave:[]};for(const s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:s,severity:c,message:p,visitor:l}of e)o({ruleId:s,severity:c,message:p},l,null);for(const s of Object.keys(r))r[s].enter.sort((c,p)=>p.depth-c.depth),r[s].leave.sort((c,p)=>c.depth-p.depth);return r;function n(s,c,p,l,d=[]){if(d.includes(c))return;d=[...d,c];const h=new Set;for(const g of Object.values(c.properties)){if(g===p){y(s,d);continue}Y.isPlainObject(g)&&g.name!==void 0&&h.add(g)}c.additionalProperties&&typeof c.additionalProperties!="function"&&(c.additionalProperties===p?y(s,d):c.additionalProperties.name!==void 0&&h.add(c.additionalProperties)),c.items&&typeof c.items!="function"&&(c.items===p?y(s,d):c.items.name!==void 0&&h.add(c.items)),c.extensionsPrefix&&h.add(j.SpecExtension);for(const g of Array.from(h.values()))n(s,g,p,l,d);function y(g,$){for(const x of $.slice(1))r[x.name]=r[x.name]||{enter:[],leave:[]},r[x.name].enter.push({...g,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:l}})}}function i(s,c){if(Array.isArray(c)){const p=c.find(l=>s[l])||void 0;return p&&s[p]}return s[c]}function o(s,c,p,l=0){const d=Object.keys(t);if(l===0)d.push("any"),d.push("ref");else{if(c.any)throw new Error("any() is allowed only on top level");if(c.ref)throw new Error("ref() is allowed only on top level")}for(const h of d){const y=c[h]||i(c,c_[h]),g=r[h];if(!y)continue;let $,x,P;const A=Y.isPlainObject(y);if(h==="ref"&&A&&y.skip)throw new Error("ref() visitor does not support skip");typeof y=="function"?$=y:A&&($=y.enter,x=y.leave,P=y.skip);const S=($?1:0)+(x?1:0)+(P?1:0),v=A&&Object.keys(y).length>S,O={activatedOn:null,type:t[h],parent:p,isSkippedLevel:!1};if(v&&o(s,y,O,l+1),p&&n(s,p.type,t[h],p),$||A){if($&&typeof $!="function")throw new Error("DEV: should be function");g.enter.push({...s,visit:$||(()=>{}),skip:P,depth:l,context:O})}if(x){if(typeof x!="function")throw new Error("DEV: should be function");g.leave.push({...s,visit:x,depth:l,context:O})}}}}const xa="recheck";function p_(e){return e.startsWith(`${xa}/`)}function l_(e,t){const r=typeof e=="string"&&Y.isPlainObject(t)?{severity:e}:e;if(!Y.isPlainObject(r))return t;if(typeof t=="string")return{...r,severity:t};if(!Y.isPlainObject(t))return t;const n={...r,...t};return Y.isPlainObject(r.assertions)&&Y.isPlainObject(t.assertions)&&(n.assertions={...r.assertions,...t.assertions}),n}function u_(e,t){const r=Y.isPlainObject(e)?{...e}:{};if(Y.isPlainObject(t))for(const[n,i]of Object.entries(t))r[n]=l_(r[n],i);return r}function d_(e,t){if(!Y.isPlainObject(e)||t==null)return e;if(!Y.isPlainObject(t))return t;const{rules:r,...n}=t;return{...e,...n,rules:u_(e.rules,r)}}const Ve=(e,t)=>{if(t)for(const r of Object.keys(t))Y.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Ke(e,t){if(t)for(const r of Object.keys(t))e.hasOwnProperty(r)&&(Y.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function f_(e){if(e.indexOf("/")>-1){const[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Xe(e,t){if(!t)return e;const r={};for(const n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Xf(e){let t={rules:{}};const 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(const n of e){if(Y.isPlainObject(n)&&"extends"in n&&n.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
22
|
-
${JSON.stringify(n,null,2)}`);Ve(r.rules,n.rules),Ve(r.oas2Rules,n.oas2Rules),Ke(r.oas2Rules,n.rules),Ve(r.oas3_0Rules,n.oas3_0Rules),Ke(r.oas3_0Rules,n.rules),Ve(r.oas3_1Rules,n.oas3_1Rules),Ke(r.oas3_1Rules,n.rules),Ve(r.oas3_2Rules,n.oas3_2Rules),Ke(r.oas3_2Rules,n.rules),Ve(r.async2Rules,n.async2Rules),Ke(r.async2Rules,n.rules),Ve(r.async3Rules,n.async3Rules),Ke(r.async3Rules,n.rules),Ve(r.arazzo1Rules,n.arazzo1Rules),Ke(r.arazzo1Rules,n.rules),Ve(r.arazzo1_1Rules,n.arazzo1_1Rules),Ke(r.arazzo1_1Rules,n.rules),Ve(r.overlay1Rules,n.overlay1Rules),Ke(r.overlay1Rules,n.rules),Ve(r.openrpc1Rules,n.openrpc1Rules),Ke(r.openrpc1Rules,n.rules),Ve(r.graphqlRules,n.graphqlRules),Ke(r.graphqlRules,n.rules),Ve(r.preprocessors,n.preprocessors),Ve(r.oas2Preprocessors,n.oas2Preprocessors),Ke(r.oas2Preprocessors,n.preprocessors),Ve(r.oas3_0Preprocessors,n.oas3_0Preprocessors),Ke(r.oas3_0Preprocessors,n.preprocessors),Ve(r.oas3_1Preprocessors,n.oas3_1Preprocessors),Ke(r.oas3_1Preprocessors,n.preprocessors),Ve(r.oas3_2Preprocessors,n.oas3_2Preprocessors),Ke(r.oas3_2Preprocessors,n.preprocessors),Ve(r.async2Preprocessors,n.async2Preprocessors),Ke(r.async2Preprocessors,n.preprocessors),Ve(r.async3Preprocessors,n.async3Preprocessors),Ke(r.async3Preprocessors,n.preprocessors),Ve(r.arazzo1Preprocessors,n.arazzo1Preprocessors),Ke(r.arazzo1Preprocessors,n.preprocessors),Ve(r.arazzo1_1Preprocessors,n.arazzo1_1Preprocessors),Ke(r.arazzo1_1Preprocessors,n.preprocessors),Ve(r.overlay1Preprocessors,n.overlay1Preprocessors),Ke(r.overlay1Preprocessors,n.preprocessors),Ve(r.openrpc1Preprocessors,n.openrpc1Preprocessors),Ke(r.openrpc1Preprocessors,n.preprocessors),Ve(r.decorators,n.decorators),Ve(r.oas2Decorators,n.oas2Decorators),Ke(r.oas2Decorators,n.decorators),Ve(r.oas3_0Decorators,n.oas3_0Decorators),Ke(r.oas3_0Decorators,n.decorators),Ve(r.oas3_1Decorators,n.oas3_1Decorators),Ke(r.oas3_1Decorators,n.decorators),Ve(r.oas3_2Decorators,n.oas3_2Decorators),Ke(r.oas3_2Decorators,n.decorators),Ve(r.async2Decorators,n.async2Decorators),Ke(r.async2Decorators,n.decorators),Ve(r.async3Decorators,n.async3Decorators),Ke(r.async3Decorators,n.decorators),Ve(r.arazzo1Decorators,n.arazzo1Decorators),Ke(r.arazzo1Decorators,n.decorators),Ve(r.arazzo1_1Decorators,n.arazzo1_1Decorators),Ke(r.arazzo1_1Decorators,n.decorators),Ve(r.overlay1Decorators,n.overlay1Decorators),Ke(r.overlay1Decorators,n.decorators),Ve(r.openrpc1Decorators,n.openrpc1Decorators),Ke(r.openrpc1Decorators,n.decorators),t=d_(t,n.recheck)}return r.recheck=t,r}class m_ extends Error{}function h_(e){return new Map(JSON.parse(JSON.stringify([...e])))}function kl(e){return Y.isPlainObject(e)&&"id"in e}function y_(e){return typeof e=="function"}function Zf({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=r.some(o=>o.id===xa),i=(e.extends||[]).filter(j.isTruthy).map(o=>{if(!j.isAbsoluteUrl(o)&&!Y.path.extname(o))return p_(o)&&!n?null:$T(o,r);const s=t.resolve({$ref:o});return s.location&&s.node!==void 0?s.node:null}).filter(j.isTruthy);return Xf([...i.map(o=>Zf({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function xi(e,t){if(Y.isPlainObject(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>Bs(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const g_=xt([{severity:"error",ruleId:ya,visitor:{ref:{},ConfigGovernance:{leave(e,t){xi(e,t)}},ConfigApisProperties:{leave(e,t){xi(e,t)}},[ct.ScorecardClassicLevel]:{leave(e,t){xi(e,t)}},ConfigRoot:{leave(e,t){xi(e,t)}}}}],Zr);function Si(e,t){if(Y.isPlainObject(e)&&e.extends){const{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;const i=Zf({node:e,ctx:t,plugins:r});Object.assign(e,i),delete e.extends}}const b_=xt([{severity:"error",ruleId:ha,visitor:{ref:{leave(e,t,r){j.replaceRef(e,r,t)}},ConfigGovernance:{leave(e,t){Si(e,t)}},ConfigApisProperties:{leave(e,t){Si(e,t)}},[ct.ScorecardClassicLevel]:{leave(e,t){Si(e,t)}},ConfigRoot:{leave(e,t){Si(e,t)}}}}],Zr);function Il(e,t){return{prev:e,value:t}}function ql(e){return e?.prev??null}function v_(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function w_(e){const 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 St(e){const{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,s={},c=new Set,p=(P,A)=>`${P.name}::${A.absolutePointer}`,l=new Set,d={},h=n.any.enter,y=n.any.leave,g={},$={};for(const P of Object.keys(n))P==="any"||P==="ref"||(g[P]=h.concat(n[P]?.enter||[]),$[P]=(n[P]?.leave||[]).concat(y));x(t.parsed,r,new j.Location(t.source,"#/"),void 0,"");function x(P,A,S,v,O){const b=(Se,qe=M.source.absoluteRef)=>{if(!j.isRef(Se))return{location:S,node:Se};const _=j.makeRefId(qe,Se.$ref),R=i.get(_);if(!R)return{location:void 0,node:void 0};const{resolved:C,node:q,document:w,nodePointer:D,error:K,chain:V}=R;return{location:C?new j.Location(w.source,D):K instanceof j.YamlParseError?new j.Location(K.source,""):void 0,node:q,error:K,chain:V}},k=S;let M=S;const H=j.isRef(P),{node:G,location:Z,error:te,chain:de}=b(P),ee=new Set,ie=j.isRefWithSiblings(P)&&c.has(p(A,S));if(j.isRefWithSiblings(P)&&c.add(p(A,S)),H&&!ie){const Se=n.ref.enter;for(const{visit:qe,ruleId:_,severity:R,message:C,context:q}of Se)ee.add(q),qe(P,{report:D=>Ie(_,R,C,D),resolve:b,rawNode:P,rawLocation:k,location:S,type:A,parent:v,key:O,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Le(_)},{node:G,location:Z,error:te,chain:de}),Z?.source.absoluteRef&&o.refTypes&&o.refTypes.set(Z?.source.absoluteRef,A)}if(G!==void 0&&Z&&A.name!=="scalar"){const Se=(V,re,we,$e)=>{let z=j.getOwn(A.properties,V);const W=A.extensionsPrefix!==void 0&&V.startsWith(A.extensionsPrefix);z===void 0&&!W&&(z=A.additionalProperties),typeof z=="function"&&(z=z(re,V)),W&&!j.isNamedType(z)&&(z=j.SpecExtension),!j.isNamedType(z)&&z?.directResolveAs&&(z=z.directResolveAs,re={$ref:re}),z&&z.name===void 0&&z.resolvable!==!1&&(z={name:"scalar",properties:{}}),!(!j.isNamedType(z)||z.name==="scalar"&&!j.isRef(re))&&x(re,z,we.child([V]),$e,V)};M=Z;const qe=Y.isPlainObject(G)||Array.isArray(G)?G:S.absolutePointer,_=s[A.name]?.has?.(qe);let R=!1;const C=g[A.name]||h.concat(n[A.name]?.enter||[]),q=[],w=`${M.absolutePointer}${M.pointer}`;for(const{context:V,visit:re,skip:we,ruleId:$e,severity:z,message:W}of C){if(l.has(w))break;if(V.isSkippedLevel)V.parent.activatedOn&&!V.parent.activatedOn.value.nextLevelTypeActivated&&!V.seen.has(P)&&(V.seen.add(P),R=!0,q.push(V));else if(V.parent&&V.parent.activatedOn&&V.parent.activatedOn.value.node===d[V.parent.type.name]&&V.activatedOn?.value.withParentNode!==V.parent.activatedOn.value.node&&V.parent.activatedOn.value.nextLevelTypeActivated?.value!==A||!V.parent&&!_){q.push(V);const J={node:G,location:Z,nextLevelTypeActivated:null,withParentNode:V.parent?.activatedOn?.value.node,skipped:(V.parent?.activatedOn?.value.skipped||we?.(G,O,{location:S,rawLocation:k,resolve:b,rawNode:P}))??!1};V.activatedOn=Il(V.activatedOn,J);let oe=V.parent;for(;oe;)oe.activatedOn.value.nextLevelTypeActivated=Il(oe.activatedOn.value.nextLevelTypeActivated,A),oe=oe.parent;J.skipped||(R=!0,ee.add(V),Pe(re,G,P,V,$e,z,W))}}const D=d[A.name];if(d[A.name]=G,R||!_){if(s[A.name]=s[A.name]||new Set,s[A.name].add(qe),Array.isArray(G)){const V=A.items;if(V!==void 0){const re=typeof V=="function";for(let we=0;we<G.length;we++){const $e=Z.child([we]);let z=re?V(G[we],$e.absolutePointer):V,W=G[we];z?.directResolveAs&&(z=z.directResolveAs,W={$ref:W}),j.isNamedType(z)&&x(W,z,$e,G,we)}}}else if(Y.isPlainObject(G)){const V=Object.keys(A.properties);A.additionalProperties?V.push(...Object.keys(G).filter(re=>!V.includes(re))):A.extensionsPrefix&&V.push(...Object.keys(G).filter(re=>re.startsWith(A.extensionsPrefix)&&!V.includes(re)));for(const re of V){const we=G[re];we!==void 0&&Se(re,we,Z,G)}}}if(H&&de?.length){const V=de[0];c.has(p(A,V.location))||x(V.node,A,V.location,void 0,O)}if(j.isRefWithSiblings(P)&&!ie)for(const V of Object.keys(P))V!=="$ref"&&P[V]!==G?.[V]&&Se(V,P[V],S,P);d[A.name]=D;const K=$[A.name]||(n[A.name]?.leave||[]).concat(y);for(const V of q.reverse())if(V.isSkippedLevel)V.seen.delete(G);else if(V.activatedOn=ql(V.activatedOn),V.parent){let re=V.parent;for(;re;)re.activatedOn.value.nextLevelTypeActivated=ql(re.activatedOn.value.nextLevelTypeActivated),re=re.parent}for(const{context:V,visit:re,ruleId:we,severity:$e,message:z}of K)!V.isSkippedLevel&&ee.has(V)&&Pe(re,G,P,V,we,$e,z)}if(M=S,H&&!ie){const Se=n.ref.leave;for(const{visit:qe,ruleId:_,severity:R,context:C,message:q}of Se)ee.has(C)&&qe(P,{report:D=>Ie(_,R,q,D),resolve:b,rawNode:P,rawLocation:k,location:S,type:A,parent:v,key:O,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Le(_)},{node:G,location:Z,error:te,chain:de})}function Pe(Se,qe,_,R,C,q,w){Se(qe,{report:K=>Ie(C,q,w,K),resolve:b,rawNode:_,location:M,rawLocation:k,type:A,parent:v,key:O,parentLocations:w_(R),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{l.add(`${M.absolutePointer}${M.pointer}`)},getVisitorData:()=>Le(C)},v_(R),R)}function Ie(Se,qe,_,R){const q=(R.location?Array.isArray(R.location)?R.location:[R.location]:[{...M,reportOnKey:!1}]).map(D=>({...M,reportOnKey:!1,...D})),w=R.forceSeverity||qe;w!=="off"&&o.problems.push({ruleId:R.ruleId||Se,severity:w,...R,message:_?_.replace("{{message}}",R.message):R.message,suggest:R.suggest||[],location:q})}function Le(Se){return o.visitorsData[Se]=o.visitorsData[Se]||{},o.visitorsData[Se]}}}function x_(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function gr(e,t,r,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,gr.prototype),i.expected=t,i.found=r,i.location=n,i.name="SyntaxError",i}x_(gr,Error);function Jo(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,r+=r.repeat(t),e+r.slice(0,t))}gr.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 i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(r){var c=this.location.end,p=Jo("",o.line.toString().length," "),l=r[i.line-1],d=i.line===c.line?c.column:l.length+1,h=d-i.column||1;t+=`
|
|
21
|
+
${b}`,location:O,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};S&&(k.forceSeverity=S),y.report(k)}}});for(const g of r.values()){const $={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:g,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&($.forceSeverity=e.schemas),y.report($)}}}};return e.schemas!="off"&&(s.NamedSchemas={Schema(h,{location:y,key:g,parentLocations:$}){if(d(pr,y)){p(pr,String(g),$.NamedSchemas.child(g));return}l(pr,y)}}),e.responses!="off"&&(s.NamedResponses={Response(h,{location:y}){l(Ts,y)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(h,{location:y}){l(_s,y)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(h,{location:y}){l(ks,y)}}),s;function c(h){const y=h.split("/").slice(-1)[0];return j.isSupportedExtension(y)?y.slice(0,y.lastIndexOf(".")):y}function p(h,y,g,$=g){const x=h1(h,y),P=t.get(x)??new Map,A=g.absolutePointer.toString();P.has(A)||P.set(A,$),t.set(x,P)}function l(h,y){const g=c(y.absolutePointer.toString());p(h,g,y)}function d(h,y,g=y){return n&&h===pr&&(y.source.absoluteRef!==i||g.source.absoluteRef!==i)}};function m1(e){return d1[e]??null}function h1(e,t){return`${e}/${t}`}function y1(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const g1=()=>({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"})}}),b1=()=>({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"})}}),v1=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"]),w1=()=>({AllOf(e,t){const r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!x1(e[0],t.resolve))&&zo(e,"allOf",t),Bo(e,"allOf",t),Vo(e,"allOf",t))},AnyOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const n=Y.isPlainObject(r.discriminator);e.length<2&&!n&&zo(e,"anyOf",t),Bo(e,"anyOf",t),Vo(e,"anyOf",t),n&&vl(e,"anyOf",t)},OneOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const{discriminator:n}=r,i=Y.isPlainObject(n);e.length<2&&!i&&zo(e,"oneOf",t),Bo(e,"oneOf",t),Vo(e,"oneOf",t),i&&vl(e,"oneOf",t),Ui(r)&&S1(e,t),P1(e,i?n:void 0,t)}});function zo(e,t,r){const 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 x1(e,t){return Y.isPlainObject(Kr(e,t)?.schema.discriminator)}function Bo(e,t,r){for(const[n,i]of e.entries())Y.isPlainObject(i)&&Object.keys(i).length===0&&r.report({message:`Schema in \`${t}\` is empty, so it matches any value.`,location:r.location.child([n])})}function vl(e,t,r){for(const[n,i]of e.entries())j.isRef(i)||Y.isPlainObject(i)&&"$id"in i||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 Vo(e,t,r){for(let n=1;n<e.length;n++){const i=e.findIndex(o=>Mt(o,e[n]));i<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${i+1}.`,location:r.location.child([n])})}}function S1(e,t){e.some(n=>{const i=Kr(n,t.resolve);return i?Ui(i.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 P1(e,t,r){const{resolve:n,report:i,location:o}=r,s=r.specVersion!=="oas3_2",c=e.map(p=>Kr(p,n));for(let p=0;p<c.length-1;p++){const l=c[p];if(l)for(let d=p+1;d<c.length;d++){const h=c[d];if(!h||Mt(e[p],e[d]))continue;const y=$1(l,h,n,t,s);y&&i({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${wl(e[p],p)} and ${wl(e[d],d)}. ${y}`,location:o.key()})}}}function wl(e,t){return j.isRef(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function $1(e,t,r,n,i){const o=e.schema,s=t.schema;if(Li(o)||Li(s)||Rf(o,s))return null;if(Ui(o)&&Ui(s))return"Both schemas accept `null`.";const c=Qr(o),p=Qr(s);if(c&&p){const d=c.filter(h=>p.some(y=>Mt(h,y)));return`Both schemas allow the values ${JSON.stringify(d)}.`}if(n)return i?A1(o,s,n):null;const l=E1(e,t,r);if(l)return l;if(!o.properties&&!s.properties){const d=Tf(o,s);if(d?.length)return`Both schemas accept ${d.map(h=>`\`${h}\``).join(", ")}.`}return null}function A1(e,t,r){const{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:mt(j.getOwn(e.properties??{},n))&&mt(j.getOwn(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 E1(e,t,r){const n=O1(e,t);if(!n||xl(e.schema,n.leftProperties,n.rightRequired)||xl(t.schema,n.rightProperties,n.leftRequired)||R1(n)||n.sharedNames.length===0)return null;const i=_1(n,r);if(!i)return null;const{optionalDistinguishingNames:o,ambiguousNames:s}=i;if(o.length>0){const c=s.length>0?` Other shared properties: ${Ho(s)}.`:"";return`Add ${Ho(o)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${c}`}return s.length>0?`Both schemas define ${Ho(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function O1(e,t){const 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(i=>j.getOwn(n,i))}}function R1({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){const i=[...r].some(s=>!j.getOwn(t,s)&&!n.has(s)),o=[...n].some(s=>!j.getOwn(e,s)&&!r.has(s));return i&&o}function _1({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:i,rightRequired:o,sharedNames:s},c){const p=[],l=[];for(const d of s){const h=i.has(d)&&o.has(d),y=Kr(j.getOwn(r,d),c,e),g=Kr(j.getOwn(n,d),c,t);if(!(!y||!g)&&!(Li(y.schema)||Li(g.schema))){if(Rf(y.schema,g.schema)){if(h)return null;p.push(d);continue}l.push(d)}}return{optionalDistinguishingNames:p,ambiguousNames:l}}function xl(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!j.getOwn(t,n))}function Rf(e,t){const r=Qr(e),n=Qr(t);return r&&n?!r.some(i=>n.some(o=>Mt(i,o))):Tf(e,t)?.length===0}function Kr(e,t,r){if(j.isRef(e)){const{node:n,location:i}=t(e,r);return Y.isPlainObject(n)?{schema:n,source:i?.source.absoluteRef}:void 0}return Y.isPlainObject(e)?{schema:e,source:r}:void 0}function Li(e){return Object.keys(e).some(t=>!v1.has(t)&&!t.startsWith("x-"))}function _f(e){return"nullable"in e&&e.nullable===!0}function Wr(e){const t=e.type;if(t===void 0)return;const r=new Set(Array.isArray(t)?t:[t]);return _f(e)&&r.add("null"),r}function Tf(e,t){const r=Wr(e),n=Wr(t);if(!r||!n)return;const i=[...r].filter(o=>n.has(o));return i.length===0&&T1(e,t)?["integer"]:i}function T1(e,t){const r=Wr(e),n=Wr(t);return r?.has("integer")&&n?.has("number")?Sl(t):r?.has("number")&&n?.has("integer")?Sl(e):!1}function Sl(e){const t=Qr(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function Ui(e){return _f(e)||Wr(e)?.has("null")===!0}function Qr(e){if(e.enum)return e.enum;const t="const"in e?e.const:void 0;return mt(t)?[t]:void 0}function Ho(e){return e.map(t=>`\`${t}\``).join(", ")}const k1=e=>{const t=new ro,r=i=>i.schema===void 0,n=i=>(o,s)=>{const{location:c,resolve:p}=s;if(mt(o.example))l(o.example,c.child("example"));else if(Y.isPlainObject(o.examples))for(const d of Object.keys(o.examples))l(o.examples[d],c.child(["examples",d]),!0);function l(d,h,y){if(j.isRef(d)){const $=p(d);if(!$.location)return;h=$.location,d=$.node}let g=d;if(y){const $=Bd(d);if(!$)return;g=$.value,h=h.child($.field)}Hr({example:g,schema:o.schema,options:{location:h,ctx:s,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:i},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"})}}}},I1=()=>({Server(e,{report:t,location:r}){const 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"})}}),q1=()=>({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"})}}),C1=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;const n=[];if(Array.isArray(e.servers))for(const i of e.servers){const o=Pl(i);o&&n.push(...o)}else{const i=Pl(e.servers);if(!i)return;n.push(...i)}for(const i of n)i==="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"}),i==="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 Pl(e){if(e.variables&&Object.keys(e.variables).length===0)return;const t=[];for(const r in e.variables){const n=e.variables[r];if(!n.enum||(Array.isArray(n.enum)&&n.enum?.length===0&&t.push("empty"),!n.default))continue;const i=e.variables[r].default;n.enum&&!n.enum.includes(i)&&t.push("invalidDefaultValue")}if(t.length)return t}const j1=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;const n=e.url.match(/{[^}]+}/g)?.map(o=>o.slice(1,o.length-1))||[],i=e?.variables&&Object.keys(e.variables)||[];for(const o of n)i.includes(o)||t({message:`The \`${o}\` 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(const o of i)n.includes(o)||t({message:`The \`${o}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",o]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}}),M1=()=>{const e=new Map,t=new Map,r=new Set;function n(i,o,s=!1){e.set(i.absolutePointer,{used:e.get(i.absolutePointer)?.used||!1,referencesDiscriminator:s,location:i,name:o})}return{ref(i,{type:o,resolve:s,key:c,location:p}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(o.name)){const l=s(i);if(!l.location)return;e.set(l.location.absolutePointer,{used:!0,name:c.toString(),location:p})}},Root:{leave(i,{report:o}){e.forEach(s=>{!s.used&&!s.referencesDiscriminator&&o({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,c)=>{r.has(c)||o({message:`Security scheme: "${c}" is never used.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(i,{location:o,key:s,resolve:c}){const p=i.allOf?.some(l=>j.isRef(l)&&c(l)?.node?.discriminator);n(o,s.toString(),p)}},NamedParameters:{Parameter(i,{location:o,key:s}){n(o,s.toString())}},NamedResponses:{Response(i,{location:o,key:s}){n(o,s.toString())}},NamedExamples:{Example(i,{location:o,key:s}){n(o,s.toString())}},NamedRequestBodies:{RequestBody(i,{location:o,key:s}){n(o,s.toString())}},NamedHeaders:{Header(i,{location:o,key:s}){n(o,s.toString())}},NamedMediaTypes:{MediaTypesMap(i,{location:o,key:s}){n(o,s.toString())}},NamedSecuritySchemes:{SecurityScheme(i,{rawLocation:o,key:s}){t.set(s.toString(),o)}},SecurityRequirement(i){for(const o of Object.keys(i))r.add(o)}}},D1=()=>({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"})}}}),Ko="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",N1=()=>({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:Ko})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Sr({fieldName:"schema",value:e,ctx:t,reference:Ko}),!e.schema)return;const{schema:r,location:n}=no(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const i of["type","title"])Xt(e.schema,i,t)||t.report({message:io("SchemaProperties",i),location:r.properties?n.child(["properties",i]).key():n.key(),reference:Ko})}}}}),L1=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){mr({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){mr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){mr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),U1=e=>{const t=e.names||{};let r;return{Operation:{Response:{skip:(n,i)=>`${i}`=="204",enter:(n,i)=>{r=i.key},MediaType:{Schema(n,{report:i,location:o}){if(n.type!=="object")return;const s=t[r]||t[yr(r)]||t[yr(r).toLowerCase()]||[];for(const c of s)n.properties?.[c]||i({message:`Response object must contain a top-level "${c}" property.`,location:o.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}},F1=({allowedValues:e})=>({Paths:{Response:{leave(t,r){mr({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){mr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){mr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),z1=()=>{const e=`^[${Xu}]+$`;function t(r,n,i,o){new RegExp(e).test(r)||n({message:`The map key in ${o} "${r}" does not match the regular expression "${e}"`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-components-invalid-map-name"})}return{NamedSchemas:{Schema(r,{key:n,report:i,location:o}){t(n,i,o,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:i,location:o}){t(n,i,o,"parameters")}},NamedResponses:{Response(r,{key:n,report:i,location:o}){t(n,i,o,"responses")}},NamedExamples:{Example(r,{key:n,report:i,location:o}){t(n,i,o,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:i,location:o}){t(n,i,o,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:i,location:o}){t(n,i,o,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:i,location:o}){t(n,i,o,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:i,location:o}){t(n,i,o,"links")}},NamedCallbacks:{Callback(r,{key:n,report:i,location:o}){t(n,i,o,"callbacks")}}}},B1=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){const n=t.discriminator?.propertyName;if(!n)return;const i=t.discriminator?.defaultMapping;if(i===void 0){const o=new Set,s=(c,p)=>{const l=no(c,r,p);return!!(!l.schema||o.has(l.schema)||(o.add(l.schema),l.schema.required?.includes(n)||l.schema.allOf?.some(d=>s(d,l.location))||l.schema.oneOf?.every(d=>s(d,l.location))||l.schema.anyOf?.every(d=>s(d,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:i}).node===void 0&&!e.includes(i)&&r.report({message:`defaultMapping value '${i}' 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"})}}}},V1=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:i,location:o}){e!==void 0&&t!==void 0&&i({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:o,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),n!==void 0&&t!==void 0&&i({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:o,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&r!==void 0&&i({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:o.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&n!==void 0&&i({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:o.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}}),H1=()=>({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"})}}}),K1=()=>{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}const i=new Set(t.name);let o=t.parent;for(;o!==void 0;){if(i.has(o)){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}i.add(o),o=e.find(s=>s.name===o)?.parent}}}}};function $l(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function Al(e,t){const 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 El(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)}const W1=()=>{let e={},t={},r=0;return{PathItem:{enter(n,i){e={},t={},r=0,Al($l(n.parameters||[]),i)},Parameter(n,i){El(n,i.location,e,i),n.in==="querystring"&&(r+=1)},Operation:{enter(n,i){t={...e};const o=r+$l(n.parameters||[]);Al(o,i)},Parameter(n,i){El(n,i.location,t,i)}}}}},Q1=()=>({ref:{leave(e,{report:t,location:r,type:n,specVersion:i}){const o=i!=="oas3_0";if(!(o&&n.name==="Schema"||n.name==="PathItem"))for(const s of Object.keys(e))s!=="$ref"&&(o&&(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"}))}}}),G1={struct:Nt,"info-contact":Pr,"info-license":ma,"info-license-strict":ao,"operation-2xx-response":rf,"operation-4xx-response":nf,"operation-4xx-problem-details-rfc7807":N1,assertions:zt,"operation-operationId-unique":sf,"operation-parameters-unique":cf,"operation-tag-defined":uf,"no-example-value-and-externalValue":b1,"no-mixed-number-range-constraints":so,"no-enum-type-mismatch":tn,"no-path-trailing-slash":tf,"no-empty-servers":g1,"path-declaration-must-exist":ff,"operation-operationId-url-safe":af,"operation-operationId":po,"operation-summary":lf,"tags-alphabetical":fo,"no-server-example.com":I1,"no-server-trailing-slash":q1,"tag-description":uo,"operation-description":of,"no-unused-components":M1,"path-not-include-query":hf,"path-parameters-defined":Di,"path-params-defined":Di,"parameter-description":df,"operation-singular-tag":pf,"security-defined":Af,"security-scopes-defined":fa,"no-unresolved-refs":Dt,"paths-kebab-case":xf,"boolean-parameter-prefixes":l1,"path-http-verbs-order":mf,"no-illogical-composition-keywords":w1,"no-invalid-media-type-examples":k1,"no-identical-paths":Xd,"no-ambiguous-paths":Gd,"no-undefined-server-variable":j1,"no-server-variables-empty-enum":C1,"no-http-verbs-in-paths":Jd,"request-mime-type":L1,"response-mime-type":F1,"path-segment-plural":wf,"no-invalid-schema-examples":ef,"no-invalid-parameter-examples":Zd,"response-contains-header":Pf,"response-contains-property":U1,"scalar-property-missing-example":$f,"spec-components-invalid-map-name":z1,"required-string-property-missing-min-length":Sf,"spec-strict-refs":Ef,"component-name-unique":f1,"array-parameter-serialization":c1,"no-required-schema-properties-undefined":rn,"no-schema-type-mismatch":nn,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-duplicated-tag-names":co,"nullable-type-sibling":D1,"spec-no-invalid-tag-parents":K1,"spec-no-invalid-encoding-combinations":H1,"spec-discriminator-defaultMapping":B1,"spec-example-values":V1,"spec-querystring-parameters":W1,"spec-ref-siblings":Q1},Y1={},J1=()=>{const 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:i,key:o,location:s}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){const c=i(r);if(!c.location)return;e.set(c.location.absolutePointer,{used:!0,name:o.toString(),location:s})}},Root:{leave(r,{report:n}){e.forEach(i=>{i.used||n({message:`Component: "${i.name}" is never used.`,location:i.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(r,{location:n,key:i}){t(n,i.toString())}},NamedContentDescriptors:{ContentDescriptor(r,{location:n,key:i}){t(n,i.toString())}},NamedExamples:{Example(r,{location:n,key:i}){t(n,i.toString())}},NamedLinks:{Link(r,{location:n,key:i}){t(n,i.toString())}},NamedErrors:{ErrorObject(r,{location:n,key:i}){t(n,i.toString())}},NamedExamplePairingObjects:{ExamplePairing(r,{location:n,key:i}){t(n,i.toString())}},NamedTags:{Tag(r,{location:n,key:i}){t(n,i.toString())}}}},X1=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;const i=new Set;e.params.forEach((o,s)=>{const c=r(o);if(!c.node)return;const p=c.node,l=p.name;l&&(i.has(l)&&t({message:`Parameter names must be unique. Duplicate parameter name '${p.name}' found.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),i.add(l))})}}}),Z1=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let i=!1;e.params.forEach((o,s)=>{const c=r(o);if(!c.node)return;const p=c.node;if(!p.name)return;p.required===!0?i&&t({message:`Required parameter '${p.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"}):i=!0})}}}),e_={struct:Nt,"no-unresolved-refs":Dt,assertions:zt,"info-license":ma,"no-unused-components":J1,"info-contact":Pr,"spec-no-duplicated-method-params":X1,"spec-no-required-params-after-optional":Z1,"spec-ref-siblings":lo},t_={},r_=["$ref","target","description"],n_=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name==="ReusableAction"){for(const i of Object.keys(e))r_.includes(i)||i.startsWith("x-")||t({message:`Property \`${i}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(i).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"})}}}}),i_={"info-contact":Pr,struct:Nt,"no-unresolved-refs":Dt,"spec-ref-siblings":n_,assertions:zt},o_={},s_={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"}},a_={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"}},c_={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"}},p_={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"}},l_={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"}},u_={recommended:p_,"recommended-strict":c_,minimal:a_,all:s_,spec:l_},Ol={id:"",rules:{oas3:G1,oas2:s1,async2:vR,async3:_R,arazzo1:fR,overlay1:i_,openrpc1:e_,graphql:zR},preprocessors:{oas3:Y1,oas2:a1,async2:wR,async3:TR,arazzo1:mR,overlay1:o_,openrpc1:t_},decorators:{oas3:kO,oas2:RO,async2:SO,async3:PO,arazzo1:xO,overlay1:qO,openrpc1:IO},configs:u_},d_={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function xt(e,t){const r={};r.any={enter:[],leave:[]};for(const s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:s,severity:c,message:p,visitor:l}of e)o({ruleId:s,severity:c,message:p},l,null);for(const s of Object.keys(r))r[s].enter.sort((c,p)=>p.depth-c.depth),r[s].leave.sort((c,p)=>c.depth-p.depth);return r;function n(s,c,p,l,d=[]){if(d.includes(c))return;d=[...d,c];const h=new Set;for(const g of Object.values(c.properties)){if(g===p){y(s,d);continue}Y.isPlainObject(g)&&g.name!==void 0&&h.add(g)}c.additionalProperties&&typeof c.additionalProperties!="function"&&(c.additionalProperties===p?y(s,d):c.additionalProperties.name!==void 0&&h.add(c.additionalProperties)),c.items&&typeof c.items!="function"&&(c.items===p?y(s,d):c.items.name!==void 0&&h.add(c.items)),c.extensionsPrefix&&h.add(j.SpecExtension);for(const g of Array.from(h.values()))n(s,g,p,l,d);function y(g,$){for(const x of $.slice(1))r[x.name]=r[x.name]||{enter:[],leave:[]},r[x.name].enter.push({...g,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:l}})}}function i(s,c){if(Array.isArray(c)){const p=c.find(l=>s[l])||void 0;return p&&s[p]}return s[c]}function o(s,c,p,l=0){const d=Object.keys(t);if(l===0)d.push("any"),d.push("ref");else{if(c.any)throw new Error("any() is allowed only on top level");if(c.ref)throw new Error("ref() is allowed only on top level")}for(const h of d){const y=c[h]||i(c,d_[h]),g=r[h];if(!y)continue;let $,x,P;const A=Y.isPlainObject(y);if(h==="ref"&&A&&y.skip)throw new Error("ref() visitor does not support skip");typeof y=="function"?$=y:A&&($=y.enter,x=y.leave,P=y.skip);const S=($?1:0)+(x?1:0)+(P?1:0),v=A&&Object.keys(y).length>S,O={activatedOn:null,type:t[h],parent:p,isSkippedLevel:!1};if(v&&o(s,y,O,l+1),p&&n(s,p.type,t[h],p),$||A){if($&&typeof $!="function")throw new Error("DEV: should be function");g.enter.push({...s,visit:$||(()=>{}),skip:P,depth:l,context:O})}if(x){if(typeof x!="function")throw new Error("DEV: should be function");g.leave.push({...s,visit:x,depth:l,context:O})}}}}const ha="recheck";function f_(e){return e.startsWith(`${ha}/`)}function m_(e,t){const r=typeof e=="string"&&Y.isPlainObject(t)?{severity:e}:e;if(!Y.isPlainObject(r))return t;if(typeof t=="string")return{...r,severity:t};if(!Y.isPlainObject(t))return t;const n={...r,...t};return Y.isPlainObject(r.assertions)&&Y.isPlainObject(t.assertions)&&(n.assertions={...r.assertions,...t.assertions}),n}function h_(e,t){const r=Y.isPlainObject(e)?{...e}:{};if(Y.isPlainObject(t))for(const[n,i]of Object.entries(t))r[n]=m_(r[n],i);return r}function y_(e,t){if(!Y.isPlainObject(e)||t==null)return e;if(!Y.isPlainObject(t))return t;const{rules:r,...n}=t;return{...e,...n,rules:h_(e.rules,r)}}const Ve=(e,t)=>{if(t)for(const r of Object.keys(t))Y.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Ke(e,t){if(t)for(const r of Object.keys(t))e.hasOwnProperty(r)&&(Y.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function g_(e){if(e.indexOf("/")>-1){const[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Xe(e,t){if(!t)return e;const r={};for(const n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function kf(e){let t={rules:{}};const 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(const n of e){if(Y.isPlainObject(n)&&"extends"in n&&n.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
22
|
+
${JSON.stringify(n,null,2)}`);Ve(r.rules,n.rules),Ve(r.oas2Rules,n.oas2Rules),Ke(r.oas2Rules,n.rules),Ve(r.oas3_0Rules,n.oas3_0Rules),Ke(r.oas3_0Rules,n.rules),Ve(r.oas3_1Rules,n.oas3_1Rules),Ke(r.oas3_1Rules,n.rules),Ve(r.oas3_2Rules,n.oas3_2Rules),Ke(r.oas3_2Rules,n.rules),Ve(r.async2Rules,n.async2Rules),Ke(r.async2Rules,n.rules),Ve(r.async3Rules,n.async3Rules),Ke(r.async3Rules,n.rules),Ve(r.arazzo1Rules,n.arazzo1Rules),Ke(r.arazzo1Rules,n.rules),Ve(r.arazzo1_1Rules,n.arazzo1_1Rules),Ke(r.arazzo1_1Rules,n.rules),Ve(r.overlay1Rules,n.overlay1Rules),Ke(r.overlay1Rules,n.rules),Ve(r.openrpc1Rules,n.openrpc1Rules),Ke(r.openrpc1Rules,n.rules),Ve(r.graphqlRules,n.graphqlRules),Ke(r.graphqlRules,n.rules),Ve(r.preprocessors,n.preprocessors),Ve(r.oas2Preprocessors,n.oas2Preprocessors),Ke(r.oas2Preprocessors,n.preprocessors),Ve(r.oas3_0Preprocessors,n.oas3_0Preprocessors),Ke(r.oas3_0Preprocessors,n.preprocessors),Ve(r.oas3_1Preprocessors,n.oas3_1Preprocessors),Ke(r.oas3_1Preprocessors,n.preprocessors),Ve(r.oas3_2Preprocessors,n.oas3_2Preprocessors),Ke(r.oas3_2Preprocessors,n.preprocessors),Ve(r.async2Preprocessors,n.async2Preprocessors),Ke(r.async2Preprocessors,n.preprocessors),Ve(r.async3Preprocessors,n.async3Preprocessors),Ke(r.async3Preprocessors,n.preprocessors),Ve(r.arazzo1Preprocessors,n.arazzo1Preprocessors),Ke(r.arazzo1Preprocessors,n.preprocessors),Ve(r.arazzo1_1Preprocessors,n.arazzo1_1Preprocessors),Ke(r.arazzo1_1Preprocessors,n.preprocessors),Ve(r.overlay1Preprocessors,n.overlay1Preprocessors),Ke(r.overlay1Preprocessors,n.preprocessors),Ve(r.openrpc1Preprocessors,n.openrpc1Preprocessors),Ke(r.openrpc1Preprocessors,n.preprocessors),Ve(r.decorators,n.decorators),Ve(r.oas2Decorators,n.oas2Decorators),Ke(r.oas2Decorators,n.decorators),Ve(r.oas3_0Decorators,n.oas3_0Decorators),Ke(r.oas3_0Decorators,n.decorators),Ve(r.oas3_1Decorators,n.oas3_1Decorators),Ke(r.oas3_1Decorators,n.decorators),Ve(r.oas3_2Decorators,n.oas3_2Decorators),Ke(r.oas3_2Decorators,n.decorators),Ve(r.async2Decorators,n.async2Decorators),Ke(r.async2Decorators,n.decorators),Ve(r.async3Decorators,n.async3Decorators),Ke(r.async3Decorators,n.decorators),Ve(r.arazzo1Decorators,n.arazzo1Decorators),Ke(r.arazzo1Decorators,n.decorators),Ve(r.arazzo1_1Decorators,n.arazzo1_1Decorators),Ke(r.arazzo1_1Decorators,n.decorators),Ve(r.overlay1Decorators,n.overlay1Decorators),Ke(r.overlay1Decorators,n.decorators),Ve(r.openrpc1Decorators,n.openrpc1Decorators),Ke(r.openrpc1Decorators,n.decorators),t=y_(t,n.recheck)}return r.recheck=t,r}class b_ extends Error{}function v_(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Rl(e){return Y.isPlainObject(e)&&"id"in e}function w_(e){return typeof e=="function"}function If({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=r.some(o=>o.id===ha),i=(e.extends||[]).filter(j.isTruthy).map(o=>{if(!j.isAbsoluteUrl(o)&&!Y.path.extname(o))return f_(o)&&!n?null:RT(o,r);const s=t.resolve({$ref:o});return s.location&&s.node!==void 0?s.node:null}).filter(j.isTruthy);return kf([...i.map(o=>If({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function wi(e,t){if(Y.isPlainObject(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>Ns(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const x_=xt([{severity:"error",ruleId:la,visitor:{ref:{},ConfigGovernance:{leave(e,t){wi(e,t)}},ConfigApisProperties:{leave(e,t){wi(e,t)}},[ct.ScorecardClassicLevel]:{leave(e,t){wi(e,t)}},ConfigRoot:{leave(e,t){wi(e,t)}}}}],Xr);function xi(e,t){if(Y.isPlainObject(e)&&e.extends){const{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;const i=If({node:e,ctx:t,plugins:r});Object.assign(e,i),delete e.extends}}const S_=xt([{severity:"error",ruleId:pa,visitor:{ref:{leave(e,t,r){j.replaceRef(e,r,t)}},ConfigGovernance:{leave(e,t){xi(e,t)}},ConfigApisProperties:{leave(e,t){xi(e,t)}},[ct.ScorecardClassicLevel]:{leave(e,t){xi(e,t)}},ConfigRoot:{leave(e,t){xi(e,t)}}}}],Xr);function _l(e,t){return{prev:e,value:t}}function Tl(e){return e?.prev??null}function P_(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function $_(e){const 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 St(e){const{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,s={},c=new Set,p=(P,A)=>`${P.name}::${A.absolutePointer}`,l=new Set,d={},h=n.any.enter,y=n.any.leave,g={},$={};for(const P of Object.keys(n))P==="any"||P==="ref"||(g[P]=h.concat(n[P]?.enter||[]),$[P]=(n[P]?.leave||[]).concat(y));x(t.parsed,r,new j.Location(t.source,"#/"),void 0,"");function x(P,A,S,v,O){const b=(Se,qe=M.source.absoluteRef)=>{if(!j.isRef(Se))return{location:S,node:Se};const _=j.makeRefId(qe,Se.$ref),R=i.get(_);if(!R)return{location:void 0,node:void 0};const{resolved:C,node:q,document:w,nodePointer:D,error:K,chain:V}=R;return{location:C?new j.Location(w.source,D):K instanceof j.YamlParseError?new j.Location(K.source,""):void 0,node:q,error:K,chain:V}},k=S;let M=S;const H=j.isRef(P),{node:G,location:Z,error:te,chain:de}=b(P),ee=new Set,ie=j.isRefWithSiblings(P)&&c.has(p(A,S));if(j.isRefWithSiblings(P)&&c.add(p(A,S)),H&&!ie){const Se=n.ref.enter;for(const{visit:qe,ruleId:_,severity:R,message:C,context:q}of Se)ee.add(q),qe(P,{report:D=>Ie(_,R,C,D),resolve:b,rawNode:P,rawLocation:k,location:S,type:A,parent:v,key:O,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Le(_)},{node:G,location:Z,error:te,chain:de}),Z?.source.absoluteRef&&o.refTypes&&o.refTypes.set(Z?.source.absoluteRef,A)}if(G!==void 0&&Z&&A.name!=="scalar"){const Se=(V,re,we,$e)=>{let z=j.getOwn(A.properties,V);const W=A.extensionsPrefix!==void 0&&V.startsWith(A.extensionsPrefix);z===void 0&&!W&&(z=A.additionalProperties),typeof z=="function"&&(z=z(re,V)),W&&!j.isNamedType(z)&&(z=j.SpecExtension),!j.isNamedType(z)&&z?.directResolveAs&&(z=z.directResolveAs,re={$ref:re}),z&&z.name===void 0&&z.resolvable!==!1&&(z={name:"scalar",properties:{}}),!(!j.isNamedType(z)||z.name==="scalar"&&!j.isRef(re))&&x(re,z,we.child([V]),$e,V)};M=Z;const qe=Y.isPlainObject(G)||Array.isArray(G)?G:S.absolutePointer,_=s[A.name]?.has?.(qe);let R=!1;const C=g[A.name]||h.concat(n[A.name]?.enter||[]),q=[],w=`${M.absolutePointer}${M.pointer}`;for(const{context:V,visit:re,skip:we,ruleId:$e,severity:z,message:W}of C){if(l.has(w))break;if(V.isSkippedLevel)V.parent.activatedOn&&!V.parent.activatedOn.value.nextLevelTypeActivated&&!V.seen.has(P)&&(V.seen.add(P),R=!0,q.push(V));else if(V.parent&&V.parent.activatedOn&&V.parent.activatedOn.value.node===d[V.parent.type.name]&&V.activatedOn?.value.withParentNode!==V.parent.activatedOn.value.node&&V.parent.activatedOn.value.nextLevelTypeActivated?.value!==A||!V.parent&&!_){q.push(V);const J={node:G,location:Z,nextLevelTypeActivated:null,withParentNode:V.parent?.activatedOn?.value.node,skipped:(V.parent?.activatedOn?.value.skipped||we?.(G,O,{location:S,rawLocation:k,resolve:b,rawNode:P}))??!1};V.activatedOn=_l(V.activatedOn,J);let oe=V.parent;for(;oe;)oe.activatedOn.value.nextLevelTypeActivated=_l(oe.activatedOn.value.nextLevelTypeActivated,A),oe=oe.parent;J.skipped||(R=!0,ee.add(V),Pe(re,G,P,V,$e,z,W))}}const D=d[A.name];if(d[A.name]=G,R||!_){if(s[A.name]=s[A.name]||new Set,s[A.name].add(qe),Array.isArray(G)){const V=A.items;if(V!==void 0){const re=typeof V=="function";for(let we=0;we<G.length;we++){const $e=Z.child([we]);let z=re?V(G[we],$e.absolutePointer):V,W=G[we];z?.directResolveAs&&(z=z.directResolveAs,W={$ref:W}),j.isNamedType(z)&&x(W,z,$e,G,we)}}}else if(Y.isPlainObject(G)){const V=Object.keys(A.properties);A.additionalProperties?V.push(...Object.keys(G).filter(re=>!V.includes(re))):A.extensionsPrefix&&V.push(...Object.keys(G).filter(re=>re.startsWith(A.extensionsPrefix)&&!V.includes(re)));for(const re of V){const we=G[re];we!==void 0&&Se(re,we,Z,G)}}}if(H&&de?.length){const V=de[0];c.has(p(A,V.location))||x(V.node,A,V.location,void 0,O)}if(j.isRefWithSiblings(P)&&!ie)for(const V of Object.keys(P))V!=="$ref"&&P[V]!==G?.[V]&&Se(V,P[V],S,P);d[A.name]=D;const K=$[A.name]||(n[A.name]?.leave||[]).concat(y);for(const V of q.reverse())if(V.isSkippedLevel)V.seen.delete(G);else if(V.activatedOn=Tl(V.activatedOn),V.parent){let re=V.parent;for(;re;)re.activatedOn.value.nextLevelTypeActivated=Tl(re.activatedOn.value.nextLevelTypeActivated),re=re.parent}for(const{context:V,visit:re,ruleId:we,severity:$e,message:z}of K)!V.isSkippedLevel&&ee.has(V)&&Pe(re,G,P,V,we,$e,z)}if(M=S,H&&!ie){const Se=n.ref.leave;for(const{visit:qe,ruleId:_,severity:R,context:C,message:q}of Se)ee.has(C)&&qe(P,{report:D=>Ie(_,R,q,D),resolve:b,rawNode:P,rawLocation:k,location:S,type:A,parent:v,key:O,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Le(_)},{node:G,location:Z,error:te,chain:de})}function Pe(Se,qe,_,R,C,q,w){Se(qe,{report:K=>Ie(C,q,w,K),resolve:b,rawNode:_,location:M,rawLocation:k,type:A,parent:v,key:O,parentLocations:$_(R),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{l.add(`${M.absolutePointer}${M.pointer}`)},getVisitorData:()=>Le(C)},P_(R),R)}function Ie(Se,qe,_,R){const q=(R.location?Array.isArray(R.location)?R.location:[R.location]:[{...M,reportOnKey:!1}]).map(D=>({...M,reportOnKey:!1,...D})),w=R.forceSeverity||qe;w!=="off"&&o.problems.push({ruleId:R.ruleId||Se,severity:w,...R,message:_?_.replace("{{message}}",R.message):R.message,suggest:R.suggest||[],location:q})}function Le(Se){return o.visitorsData[Se]=o.visitorsData[Se]||{},o.visitorsData[Se]}}}function A_(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function gr(e,t,r,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,gr.prototype),i.expected=t,i.found=r,i.location=n,i.name="SyntaxError",i}A_(gr,Error);function Wo(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,r+=r.repeat(t),e+r.slice(0,t))}gr.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 i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(r){var c=this.location.end,p=Wo("",o.line.toString().length," "),l=r[i.line-1],d=i.line===c.line?c.column:l.length+1,h=d-i.column||1;t+=`
|
|
23
23
|
--> `+s+`
|
|
24
24
|
`+p+` |
|
|
25
25
|
`+o.line+" | "+l+`
|
|
26
|
-
`+p+" | "+
|
|
27
|
-
at `+s}return t};gr.buildMessage=function(e,t){var r={literal:function(l){return'"'+i(l.text)+'"'},class:function(l){var d=l.parts.map(function(h){return Array.isArray(h)?o(h[0])+"-"+o(h[1]):o(h)});return"["+(l.inverted?"^":"")+d.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 i(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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function o(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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function s(l){return r[l.type](l)}function c(l){var d=l.map(s),h,y;if(d.sort(),d.length>0){for(h=1,y=1;h<d.length;h++)d[h-1]!==d[h]&&(d[y]=d[h],y++);d.length=y}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function p(l){return l?'"'+i(l)+'"':"end of input"}return"Expected "+c(e)+" but "+p(t)+" found."};function
|
|
28
|
-
`],"\r"," "],!1,!1),ce=He(".",!1),he=He("..",!1),ye=He("[",!1),ge=He(",",!1),Ee=He("]",!1),Qe=He("*",!1),a=et([["A","Z"],"_",["a","z"],["",""],["",""]],!1,!1),u=et([["\uD800","\uDBFF"]],!1,!1),f=et([["\uDC00","\uDFFF"]],!1,!1),T=He(":",!1),N=He("?",!1),L=et([["0","9"]],!1,!1),B=He('"',!1),se=He("'",!1),le=He("0",!1),Re=He("-",!1),fe=et([["1","9"]],!1,!1),xe=He("||",!1),Be=et([[" ","!"],["#","&"],["(","["],["]",""],["",""]],!1,!1),_e=He("\\",!1),Ce=et(["/","\\","b","f","n","r","t"],!1,!1),Ye=He("u",!1),tr=He("&&",!1),rr=et([["A","C"],["E","F"]],!1,!0),
|
|
29
|
-
`;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return m.slice(1)}},
|
|
30
|
-
`;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return m.slice(1)}},Ia=function(m,E){return E},hh=function(m,E){return E.length===0?m:{type:"LogicalOrExpr",left:m,right:E.length===1?E[0]:E.slice(1).reduce((U,Q)=>({type:"LogicalOrExpr",left:U,right:Q}),E[0])}},qa=function(m,E){return E},yh=function(m,E){return[m,...E]},gh=function(m){return m.length===1?m[0]:{type:"LogicalAndExpr",left:m[0],right:m.length===2?m[1]:m.slice(2).reduce((E,U)=>({type:"LogicalOrExpr",left:E,right:U}),m[1])}},bh=function(){return String.fromCharCode(Number.parseInt(Lh(),16))},vh=function(m,E){return String.fromCharCode(Number.parseInt(m,16))+String.fromCharCode(Number.parseInt(E,16))},wh=function(m){return m},xh=function(m,E){return m!==null?{type:"LogicalNotExpr",expression:E}:E},Sh=function(m,E,U){return{type:"ComparisonExpr",left:m,op:E,right:U}},Ph=function(m,E){return m!==null?{type:"LogicalNotExpr",expression:{type:"TestExpr",expression:E}}:{type:"TestExpr",expression:E}},$h=function(m){return{type:"FilterQuery",value:m}},Ca=function(m,E,U){return U},Ah=function(m,E,U){return[E,...U]},Eh=function(m,E){return{type:"FunctionExpr",name:m,arguments:E}},Oh=function(m){return{type:"Literal",value:m}},Rh=function(m){return{type:"RelQuery",segments:m}},_h=function(m){return Number(m)},Th=function(){return!0},kh=function(){return!1},Ih=function(){return null},qh=function(m){return{type:"RelSingularQuery",segments:m}},Ch=function(m){return{type:"AbsSingularQuery",segments:m}},ja=function(m){return{type:"SingularQuerySegment",node:m}},jh=function(m){return m},Mh=function(m){return m},Dh=function(m){return m},Nh=function(m){return{type:"IndexSelector",selector:m}},I=t.peg$currPos|0,Oe=I,nr=[{line:1,column:1}],ht=I,ln=t.peg$maxFailExpected||[],ve=t.peg$silentFails|0,Or;if(t.startRule){if(!(t.startRule in i))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');o=i[t.startRule]}function Lh(){return e.substring(Oe,I)}function He(m,E){return{type:"literal",text:m,ignoreCase:E}}function et(m,E,U){return{type:"class",parts:m,inverted:E,ignoreCase:U}}function Uh(){return{type:"end"}}function Ma(m){var E=nr[m],U;if(E)return E;if(m>=nr.length)U=nr.length-1;else for(U=m;!nr[--U];);for(E=nr[U],E={line:E.line,column:E.column};U<m;)e.charCodeAt(U)===10?(E.line++,E.column=1):E.column++,U++;return nr[m]=E,E}function Da(m,E,U){var Q=Ma(m),ne=Ma(E),ue={source:n,start:{offset:m,line:Q.line,column:Q.column},end:{offset:E,line:ne.line,column:ne.column}};return ue}function be(m){I<ht||(I>ht&&(ht=I,ln=[]),ln.push(m))}function Fh(m,E,U){return new gr(gr.buildMessage(m,E),m,E,U)}function wo(){var m,E,U;return m=I,E=Na(),E!==r?(U=La(),Oe=m,m=Qm(U)):(I=m,m=r),m}function Na(){var m;return e.charCodeAt(I)===36?(m=s,I++):(m=r,ve===0&&be(pe)),m}function La(){var m,E,U;for(m=[],E=I,Ue(),U=Ua(),U!==r?(Oe=E,E=Ta(U)):(I=E,E=r);E!==r;)m.push(E),E=I,Ue(),U=Ua(),U!==r?(Oe=E,E=Ta(U)):(I=E,E=r);return m}function Ue(){var m,E;for(m=[],E=Fa();E!==r;)m.push(E),E=Fa();return m}function Ua(){var m;return m=zh(),m===r&&(m=Bh()),m}function Fa(){var m;return m=e.charAt(I),R.test(m)?I++:(m=r,ve===0&&be(ae)),m}function zh(){var m,E,U,Q;return m=I,E=za(),E===r&&(E=I,e.charCodeAt(I)===46?(U=c,I++):(U=r,ve===0&&be(ce)),U!==r?(Q=xo(),Q===r&&(Q=So()),Q!==r?(Oe=E,E=Gm(Q)):(I=E,E=r)):(I=E,E=r)),E!==r&&(Oe=m,E=Ym(E)),m=E,m}function Bh(){var m,E,U;return m=I,e.substr(I,2)===p?(E=p,I+=2):(E=r,ve===0&&be(he)),E!==r?(U=za(),U===r&&(U=xo(),U===r&&(U=So())),U!==r?(Oe=m,m=Jm(U)):(I=m,m=r)):(I=m,m=r),m}function za(){var m,E,U,Q,ne,ue,Te,Je;if(m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r){if(U=I,Ue(),Q=Po(),Q!==r){for(ne=[],ue=I,Ue(),e.charCodeAt(I)===44?(Te=d,I++):(Te=r,ve===0&&be(ge)),Te!==r?(Ue(),Je=Po(),Je!==r?(Oe=ue,ue=ka(Q,Je)):(I=ue,ue=r)):(I=ue,ue=r);ue!==r;)ne.push(ue),ue=I,Ue(),e.charCodeAt(I)===44?(Te=d,I++):(Te=r,ve===0&&be(ge)),Te!==r?(Ue(),Je=Po(),Je!==r?(Oe=ue,ue=ka(Q,Je)):(I=ue,ue=r)):(I=ue,ue=r);Oe=U,U=Xm(Q,ne)}else I=U,U=r;U!==r?(Ue(),e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=Zm(U)):(I=m,m=r)):(I=m,m=r)}else I=m,m=r;return m}function xo(){var m,E;return m=I,e.charCodeAt(I)===42?(E=y,I++):(E=r,ve===0&&be(Qe)),E!==r&&(Oe=m,E=eh()),m=E,m}function So(){var m,E,U,Q,ne,ue;if(m=I,E=I,U=I,Q=Ba(),Q!==r){for(ne=[],ue=Va();ue!==r;)ne.push(ue),ue=Va();Q=[Q,ne],U=Q}else I=U,U=r;return U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=th(E)),m=E,m}function Po(){var m;return m=Ha(),m===r&&(m=xo(),m===r&&(m=Vh(),m===r&&(m=Ka(),m===r&&(m=Hh())))),m}function Ba(){var m,E,U;return m=e.charAt(I),C.test(m)?I++:(m=r,ve===0&&be(a)),m===r&&(m=I,E=e.charAt(I),q.test(E)?I++:(E=r,ve===0&&be(u)),E!==r?(U=e.charAt(I),w.test(U)?I++:(U=r,ve===0&&be(f)),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function Va(){var m;return m=Ba(),m===r&&(m=_t()),m}function Ha(){var m,E;return m=I,E=Wa(),E!==r&&(Oe=m,E=rh(E)),m=E,m}function Vh(){var m,E,U,Q,ne,ue,Te,Je,ut;return m=I,E=I,U=I,Q=I,ne=Rr(),ne!==r?(ue=Ue(),ne=[ne,ue],Q=ne):(I=Q,Q=r),Q===r&&(Q=null),U=e.substring(U,I),e.charCodeAt(I)===58?(Q=g,I++):(Q=r,ve===0&&be(T)),Q!==r?(ne=Ue(),ue=I,Te=I,Je=Rr(),Je!==r?(ut=Ue(),Je=[Je,ut],Te=Je):(I=Te,Te=r),Te===r&&(Te=null),ue=e.substring(ue,I),Te=I,e.charCodeAt(I)===58?(Je=g,I++):(Je=r,ve===0&&be(T)),Je!==r?(ut=I,Ue(),Rr(),ut=e.substring(ut,I),Oe=Te,Te=nh(U,ue,ut)):(I=Te,Te=r),Te===r&&(Te=null),Oe=E,E=ih(U,ue,Te)):(I=E,E=r),E!==r&&(Oe=m,E=oh(E)),m=E,m}function Ka(){var m,E,U;return m=I,E=I,U=Rr(),U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=sh(E)),m=E,m}function Hh(){var m,E,U;return m=I,e.charCodeAt(I)===63?(E=$,I++):(E=r,ve===0&&be(N)),E!==r?(Ue(),U=$o(),U!==r?(Oe=m,m=ah(U)):(I=m,m=r)):(I=m,m=r),m}function _t(){var m;return m=e.charAt(I),D.test(m)?I++:(m=r,ve===0&&be(L)),m}function Wa(){var m,E,U,Q,ne;if(m=I,E=I,e.charCodeAt(I)===34?(U=x,I++):(U=r,ve===0&&be(B)),U!==r){for(Q=[],ne=Qa();ne!==r;)Q.push(ne),ne=Qa();e.charCodeAt(I)===34?(ne=x,I++):(ne=r,ve===0&&be(B)),ne!==r?(Oe=E,E=ch(Q)):(I=E,E=r)}else I=E,E=r;if(E===r)if(E=I,e.charCodeAt(I)===39?(U=P,I++):(U=r,ve===0&&be(se)),U!==r){for(Q=[],ne=Ga();ne!==r;)Q.push(ne),ne=Ga();e.charCodeAt(I)===39?(ne=P,I++):(ne=r,ve===0&&be(se)),ne!==r?(Oe=E,E=ph(Q)):(I=E,E=r)}else I=E,E=r;return E!==r&&(Oe=m,E=lh(E)),m=E,m}function Rr(){var m,E,U,Q,ne;if(e.charCodeAt(I)===48?(m=A,I++):(m=r,ve===0&&be(le)),m===r)if(m=I,e.charCodeAt(I)===45?(E=S,I++):(E=r,ve===0&&be(Re)),E===r&&(E=null),U=Kh(),U!==r){for(Q=[],ne=_t();ne!==r;)Q.push(ne),ne=_t();E=[E,U,Q],m=E}else I=m,m=r;return m}function Qa(){var m,E,U;return m=I,E=Ya(),E!==r?m=e.substring(m,I):m=E,m===r&&(e.charCodeAt(I)===39?(m=P,I++):(m=r,ve===0&&be(se)),m===r&&(m=I,E=un(),E!==r?(e.charCodeAt(I)===34?(U=x,I++):(U=r,ve===0&&be(B)),U!==r?(Oe=m,m=uh()):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,E=un(),E!==r?(U=Ja(),U!==r?(Oe=m,m=dh(U)):(I=m,m=r)):(I=m,m=r)))),m}function Ga(){var m,E,U;return m=I,E=Ya(),E!==r?m=e.substring(m,I):m=E,m===r&&(e.charCodeAt(I)===34?(m=x,I++):(m=r,ve===0&&be(B)),m===r&&(m=I,E=un(),E!==r?(e.charCodeAt(I)===39?(U=P,I++):(U=r,ve===0&&be(se)),U!==r?(Oe=m,m=fh()):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,E=un(),E!==r?(U=Ja(),U!==r?(Oe=m,m=mh(U)):(I=m,m=r)):(I=m,m=r)))),m}function Kh(){var m;return m=e.charAt(I),K.test(m)?I++:(m=r,ve===0&&be(fe)),m}function $o(){var m,E,U,Q,ne,ue;if(m=I,E=Ao(),E!==r){for(U=[],Q=I,Ue(),e.substr(I,2)===v?(ne=v,I+=2):(ne=r,ve===0&&be(xe)),ne!==r?(Ue(),ue=Ao(),ue!==r?(Oe=Q,Q=Ia(E,ue)):(I=Q,Q=r)):(I=Q,Q=r);Q!==r;)U.push(Q),Q=I,Ue(),e.substr(I,2)===v?(ne=v,I+=2):(ne=r,ve===0&&be(xe)),ne!==r?(Ue(),ue=Ao(),ue!==r?(Oe=Q,Q=Ia(E,ue)):(I=Q,Q=r)):(I=Q,Q=r);Oe=m,m=hh(E,U)}else I=m,m=r;return m}function Ya(){var m,E,U;return m=e.charAt(I),V.test(m)?I++:(m=r,ve===0&&be(Be)),m===r&&(m=I,E=e.charAt(I),q.test(E)?I++:(E=r,ve===0&&be(u)),E!==r?(U=e.charAt(I),w.test(U)?I++:(U=r,ve===0&&be(f)),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function un(){var m;return e.charCodeAt(I)===92?(m=O,I++):(m=r,ve===0&&be(_e)),m}function Ja(){var m,E,U;return m=e.charAt(I),re.test(m)?I++:(m=r,ve===0&&be(Ce)),m===r&&(m=I,e.charCodeAt(I)===117?(E=b,I++):(E=r,ve===0&&be(Ye)),E!==r?(U=Wh(),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function Ao(){var m,E,U,Q,ne,ue,Te;if(m=I,E=I,U=Eo(),U!==r){for(Q=[],ne=I,Ue(),e.substr(I,2)===k?(ue=k,I+=2):(ue=r,ve===0&&be(tr)),ue!==r?(Ue(),Te=Eo(),Te!==r?(Oe=ne,ne=qa(U,Te)):(I=ne,ne=r)):(I=ne,ne=r);ne!==r;)Q.push(ne),ne=I,Ue(),e.substr(I,2)===k?(ue=k,I+=2):(ue=r,ve===0&&be(tr)),ue!==r?(Ue(),Te=Eo(),Te!==r?(Oe=ne,ne=qa(U,Te)):(I=ne,ne=r)):(I=ne,ne=r);Oe=E,E=yh(U,Q)}else I=E,E=r;return E!==r&&(Oe=m,E=gh(E)),m=E,m}function Wh(){var m,E,U,Q,ne,ue,Te;return m=I,E=I,U=Qh(),U!==r&&(Oe=E,U=bh()),E=U,E===r&&(E=I,U=I,Q=Gh(),Q!==r?U=e.substring(U,I):U=Q,U!==r?(e.charCodeAt(I)===92?(Q=O,I++):(Q=r,ve===0&&be(_e)),Q!==r?(e.charCodeAt(I)===117?(ne=b,I++):(ne=r,ve===0&&be(Ye)),ne!==r?(ue=I,Te=Yh(),Te!==r?ue=e.substring(ue,I):ue=Te,ue!==r?(Oe=E,E=vh(U,ue)):(I=E,E=r)):(I=E,E=r)):(I=E,E=r)):(I=E,E=r)),E!==r&&(Oe=m,E=wh(E)),m=E,m}function Eo(){var m;return m=Jh(),m===r&&(m=Xh(),m===r&&(m=Zh())),m}function Qh(){var m,E,U,Q,ne,ue;if(m=I,E=_t(),E===r&&(E=e.charAt(I),we.test(E)?I++:(E=r,ve===0&&be(rr))),E!==r){for(U=I,Q=[],ne=Ut();ne!==r;)Q.push(ne),Q.length>=3?ne=r:ne=Ut();Q.length<3?(I=U,U=r):U=Q,U!==r?(E=[E,U],m=E):(I=m,m=r)}else I=m,m=r;if(m===r)if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(vo)),E!==r)if(U=e.charAt(I),$e.test(U)?I++:(U=r,ve===0&&be(Rm)),U!==r){for(Q=I,ne=[],ue=Ut();ue!==r;)ne.push(ue),ne.length>=2?ue=r:ue=Ut();ne.length<2?(I=Q,Q=r):Q=ne,Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Gh(){var m,E,U,Q,ne,ue;if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(vo)),E!==r)if(U=e.charAt(I),z.test(U)?I++:(U=r,ve===0&&be(_m)),U===r&&(U=e.charAt(I),W.test(U)?I++:(U=r,ve===0&&be(Tm))),U!==r){for(Q=I,ne=[],ue=Ut();ue!==r;)ne.push(ue),ne.length>=2?ue=r:ue=Ut();ne.length<2?(I=Q,Q=r):Q=ne,Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Yh(){var m,E,U,Q,ne,ue;if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(vo)),E!==r)if(U=e.charAt(I),J.test(U)?I++:(U=r,ve===0&&be(km)),U!==r){for(Q=I,ne=[],ue=Ut();ue!==r;)ne.push(ue),ne.length>=2?ue=r:ue=Ut();ne.length<2?(I=Q,Q=r):Q=ne,Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Jh(){var m,E,U,Q,ne,ue;return m=I,E=I,U=Xa(),U!==r?(Q=Ue(),U=[U,Q],E=U):(I=E,E=r),E===r&&(E=null),e.charCodeAt(I)===40?(U=H,I++):(U=r,ve===0&&be(Ra)),U!==r?(Q=Ue(),ne=$o(),ne!==r?(Ue(),e.charCodeAt(I)===41?(ue=G,I++):(ue=r,ve===0&&be(_a)),ue!==r?(Oe=m,m=xh(E,ne)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}function Xh(){var m,E,U,Q;return m=I,E=Za(),E!==r?(Ue(),U=ey(),U!==r?(Ue(),Q=Za(),Q!==r?(Oe=m,m=Sh(E,U,Q)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}function Zh(){var m,E,U,Q;return m=I,E=I,U=Xa(),U!==r?(Q=Ue(),U=[U,Q],E=U):(I=E,E=r),E===r&&(E=null),U=ec(),U===r&&(U=Oo()),U!==r?(Oe=m,m=Ph(E,U)):(I=m,m=r),m}function Ut(){var m;return m=_t(),m===r&&(m=e.charAt(I),oe.test(m)?I++:(m=r,ve===0&&be(Im))),m}function Xa(){var m;return e.charCodeAt(I)===33?(m=Z,I++):(m=r,ve===0&&be(qm)),m}function Za(){var m;return m=tc(),m===r&&(m=ty(),m===r&&(m=Oo())),m}function ey(){var m;return e.substr(I,2)===te?(m=te,I+=2):(m=r,ve===0&&be(Cm)),m===r&&(e.substr(I,2)===de?(m=de,I+=2):(m=r,ve===0&&be(jm)),m===r&&(e.substr(I,2)===ee?(m=ee,I+=2):(m=r,ve===0&&be(Mm)),m===r&&(e.substr(I,2)===ie?(m=ie,I+=2):(m=r,ve===0&&be(Dm)),m===r&&(m=e.charAt(I),me.test(m)?I++:(m=r,ve===0&&be(Nm)))))),m}function ec(){var m,E;return m=I,E=ry(),E===r&&(E=wo()),E!==r&&(Oe=m,E=$h(E)),m=E,m}function Oo(){var m,E,U,Q,ne,ue,Te,Je,ut;if(m=I,E=ny(),E!==r)if(e.charCodeAt(I)===40?(U=H,I++):(U=r,ve===0&&be(Ra)),U!==r){if(Ue(),Q=I,ne=Ro(),ne!==r){for(ue=[],Te=I,Ue(),e.charCodeAt(I)===44?(Je=d,I++):(Je=r,ve===0&&be(ge)),Je!==r?(Ue(),ut=Ro(),ut!==r?(Oe=Te,Te=Ca(E,ne,ut)):(I=Te,Te=r)):(I=Te,Te=r);Te!==r;)ue.push(Te),Te=I,Ue(),e.charCodeAt(I)===44?(Je=d,I++):(Je=r,ve===0&&be(ge)),Je!==r?(Ue(),ut=Ro(),ut!==r?(Oe=Te,Te=Ca(E,ne,ut)):(I=Te,Te=r)):(I=Te,Te=r);Oe=Q,Q=Ah(E,ne,ue)}else I=Q,Q=r;Q===r&&(Q=null),ne=Ue(),e.charCodeAt(I)===41?(ue=G,I++):(ue=r,ve===0&&be(_a)),ue!==r?(Oe=m,m=Eh(E,Q)):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function tc(){var m,E;return m=I,E=iy(),E===r&&(E=Wa(),E===r&&(E=oy(),E===r&&(E=sy(),E===r&&(E=ay())))),E!==r&&(Oe=m,E=Oh(E)),m=E,m}function ty(){var m;return m=cy(),m===r&&(m=py()),m}function ry(){var m,E,U;return m=I,E=rc(),E!==r?(U=La(),U!==r?(Oe=m,m=Rh(U)):(I=m,m=r)):(I=m,m=r),m}function ny(){var m,E,U,Q,ne;if(m=I,E=I,U=dy(),U!==r){for(Q=[],ne=nc();ne!==r;)Q.push(ne),ne=nc();U=[U,Q],E=U}else I=E,E=r;return E!==r?m=e.substring(m,I):m=E,m}function Ro(){var m;return m=tc(),m===r&&(m=ec(),m===r&&(m=Oo(),m===r&&(m=$o()))),m}function iy(){var m,E,U,Q,ne,ue;return m=I,E=I,U=I,Q=Rr(),Q===r&&(e.substr(I,2)===Pe?(Q=Pe,I+=2):(Q=r,ve===0&&be(Lm))),Q!==r?(ne=ly(),ne===r&&(ne=null),ue=uy(),ue===r&&(ue=null),Q=[Q,ne,ue],U=Q):(I=U,U=r),U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=_h(E)),m=E,m}function oy(){var m,E;return m=I,e.substr(I,4)===Ie?(E=Ie,I+=4):(E=r,ve===0&&be(Um)),E!==r&&(Oe=m,E=Th()),m=E,m}function sy(){var m,E;return m=I,e.substr(I,5)===Le?(E=Le,I+=5):(E=r,ve===0&&be(Fm)),E!==r&&(Oe=m,E=kh()),m=E,m}function ay(){var m,E;return m=I,e.substr(I,4)===Se?(E=Se,I+=4):(E=r,ve===0&&be(zm)),E!==r&&(Oe=m,E=Ih()),m=E,m}function cy(){var m,E,U;return m=I,E=rc(),E!==r?(U=ic(),Oe=m,m=qh(U)):(I=m,m=r),m}function py(){var m,E,U;return m=I,E=Na(),E!==r?(U=ic(),Oe=m,m=Ch(U)):(I=m,m=r),m}function rc(){var m;return e.charCodeAt(I)===64?(m=qe,I++):(m=r,ve===0&&be(Bm)),m}function nc(){var m;return m=e.charAt(I),Ae.test(m)?I++:(m=r,ve===0&&be(Vm)),m}function ly(){var m,E,U,Q;if(m=I,e.charCodeAt(I)===46?(E=c,I++):(E=r,ve===0&&be(ce)),E!==r){if(U=[],Q=_t(),Q!==r)for(;Q!==r;)U.push(Q),Q=_t();else U=r;U!==r?(E=[E,U],m=E):(I=m,m=r)}else I=m,m=r;return m}function uy(){var m,E,U,Q,ne;if(m=I,E=e.charAt(I),E.toLowerCase()===_?I++:(E=r,ve===0&&be(Hm)),E!==r){if(U=e.charAt(I),F.test(U)?I++:(U=r,ve===0&&be(Km)),U===r&&(U=null),Q=[],ne=_t(),ne!==r)for(;ne!==r;)Q.push(ne),ne=_t();else Q=r;Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;return m}function ic(){var m,E,U,Q;for(m=I,E=[],U=I,Ue(),Q=oc(),Q===r&&(Q=sc()),Q!==r?(Oe=U,U=ja(Q)):(I=U,U=r);U!==r;)E.push(U),U=I,Ue(),Q=oc(),Q===r&&(Q=sc()),Q!==r?(Oe=U,U=ja(Q)):(I=U,U=r);return Oe=m,E=jh(E),m=E,m}function dy(){var m;return m=e.charAt(I),X.test(m)?I++:(m=r,ve===0&&be(Wm)),m}function oc(){var m,E,U,Q;return m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r?(U=Ha(),U!==r?(e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=Mh(U)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,e.charCodeAt(I)===46?(E=c,I++):(E=r,ve===0&&be(ce)),E!==r?(U=So(),U!==r?(Oe=m,m=Dh(U)):(I=m,m=r)):(I=m,m=r)),m}function sc(){var m,E,U,Q;return m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r?(U=Ka(),U!==r?(e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=Nh(U)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}if(Or=o(),t.peg$library)return{peg$result:Or,peg$currPos:I,peg$FAILED:r,peg$maxFailExpected:ln,peg$maxFailPos:ht};if(Or!==r&&I===e.length)return Or;throw Or!==r&&I<e.length&&be(Uh()),Fh(ln,ht<e.length?e.charAt(ht):null,ht<e.length?Da(ht,ht+1):Da(ht,ht))}function em(e){return S_(e)}class P_{head=null;tail=null;size=0;push(t){const 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;const t=this.head.value;return this.head=this.head.next,this.head===null&&(this.tail=null),this.size--,t}}function an(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}const Ri=e=>Array.isArray(e.value),Ki=e=>an(e.value),tm=new WeakSet,pt=e=>typeof e=="object"&&e!==null&&tm.has(e),$_=e=>{switch(typeof e){case"string":case"number":case"boolean":return!0;case"object":return e===null||an(e)||rm(e);default:return!1}},rm=e=>Array.isArray(e)&&!pt(e),nm=()=>{const e=[];return tm.add(e),e},Ar=Symbol("Nothing"),A_={declaration:function(t,r){return pt(r)?r.length:0},definition:{parameters:["NodesType"],returnType:"ValueType"}};function E_(e){let t=0;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);(n>=0&&n<=55295||n>=57344&&n<=1114111)&&t++}return t}const O_={declaration:function(t,r){return typeof r=="string"?E_(r):Array.isArray(r)?r.length:an(r)?Object.keys(r).length:Ar},definition:{parameters:["ValueType"],returnType:"ValueType"}};function im(e){return e===92}function R_(e,t){let r=!1,n=t;for(;n<e.length;){const i=e.charCodeAt(n);if(n++,im(i)){r=!0;continue}if(i===93){if(!r)break;r=!1}}return n}function __(e){let t=e;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);im(n)?r++:n===91?r=R_(e,r):n===46&&(t=`${e.slice(0,r)}[^
|
|
31
|
-
\r]${e.slice(r+1)}`)}return t}function om({cache:e},t){const r=e.get("regexps")??{};if(e.has("regexps")||e.set("regexps",r),Object.hasOwn(r,t))return r[t];try{const n=RegExp(__(t),"u");return r[t]=n,n}catch{return r[t]=null,null}}const T_={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:om(t,`^${n}$`)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}},k_={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:om(t,n)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}},I_={declaration:function(t,r){return r.length===1?r[0]:Ar},definition:{parameters:["NodesType"],returnType:"ValueType"}},Ds=[];function $t(e,t){return e===Ds?Ds:typeof t=="number"?[...e,t]:[...e,M_(t)]}function q_(e){return e?[]:Ds}const C_=/[\u0000-\u001f'\\]/g;function j_(e){const 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 M_(e){return e.replace(C_,j_)}function D_(e){let t="$";for(const r of e)typeof r=="number"?t+=`[${r}]`:t+=`['${r}']`;return t}function er(e){throw new TypeError(`Unexpected node type: ${e.type}`)}function Vt(e){throw new TypeError(`Unexpected comparison operator: ${e}`)}function sm(e,t){throw new Error(t)}function _i(e){switch(typeof e){case"object":if(e===null)return"null";if(pt(e))return"NodeList";if(rm(e))return"array";if(an(e))return"object";throw new TypeError(`Unknown type: ${e}`);case"string":return"string";case"number":return"number";case"boolean":return"boolean";default:if(e===Ar)return"Nothing";throw new TypeError(`Unknown type: ${e}`)}}function N_(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!br(e[r],t[r]))return!1;return!0}function L_(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r)if(!Object.hasOwn(t,i)||!br(e[i],t[i]))return!1;return!0}function br(e,t){if(_i(e)!==_i(t))return!1;switch(_i(e)){case"string":case"number":case"boolean":case"null":return e===t;case"object":return L_(e,t);case"array":case"NodeList":return N_(e,t);default:return!1}}function am(e,t,r){switch(r){case"==":case">=":case"<=":return!pt(e)&&!pt(t)&&br(e,t);case"<":case">":return!1;case"!=":return!am(e,t,"==");default:Vt(r)}}function cm(e,t,r){switch(r){case"==":case"<=":case">=":return pt(e)&&(pt(t)&&br(e,t)||t===Ar);case"<":case">":return!1;case"!=":return!cm(e,t,"==");default:Vt(r)}}function pm(e,t,r){switch(r){case"==":case"<=":case">=":return t===Ar||pt(t)&&t.length===0;case"<":case">":return!1;case"!=":return!pm(e,t,"==");default:Vt(r)}}function Gt(e,t,r){switch(r){case"==":return e===t;case"<":return typeof t=="number"&&e<t;case"!=":return!Gt(e,t,"==");case"<=":return Gt(e,t,"<")||Gt(e,t,"==");case">":return typeof t=="number"&&Gt(t,e,"<");case">=":return typeof t=="number"&&Gt(t,e,"<")||Gt(e,t,"==");default:Vt(r)}}function U_(e,t,r){switch(r){case"==":case"<=":case">=":return br(e,t);case"<":case">":return!1;case"!=":return!br(e,t);default:Vt(r)}}function lm(e,t,r){switch(r){case"==":case"<=":case">=":return e===t;case"<":case">":return!1;case"!=":return!lm(e,t,"==");default:Vt(r)}}function Qt(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;){const i=e.charCodeAt(n),o=t.charCodeAt(n);if(i===o){n++;continue}return e.charCodeAt(n)<t.charCodeAt(n)}return e.length<t.length}default:Vt(r)}}function F_(e,t,r){switch(r){case"==":case"<":return Qt(e,t,r);case"!=":return!Qt(e,t,"==");case"<=":return Qt(e,t,"<")||Qt(e,t,"==");case">":return Qt(t,e,"<");case">=":return Qt(t,e,"<")||Qt(e,t,"==");default:Vt(r)}}function z_(e,t,r){const n=pt(e)&&e.length===1?e[0]:e,i=_i(n),o=pt(t)&&t.length===1?t[0]:t;switch(i){case"string":return F_(n,o,r);case"number":return Gt(n,o,r);case"boolean":case"null":return lm(n,o,r);case"object":return U_(n,o,r);case"array":return am(n,o,r);case"Nothing":return pm(n,o,r);case"NodeList":return cm(n,o,r);default:sm(i,"Unknown type")}}function um(e,t,r){const n=nm();switch(r.value.type){case"RelQuery":Qi(e,t.root,t.value,r.value,i=>{n.push(i)});break;case"JsonPathQuery":Qi(e,t.root,t.root,r.value,i=>{n.push(i)});break;default:er(r.value)}return n}function B_(e,t,r){switch(r.expression.type){case"FilterQuery":return um(e,t,r.expression).length>0;case"FunctionExpr":return Sa(e,t,r.expression)===!0;default:er(r.expression)}}function Jt(e,t,r){switch(r.type){case"LogicalNotExpr":return!Jt(e,t,r.expression);case"LogicalAndExpr":return Jt(e,t,r.left)&&Jt(e,t,r.right);case"LogicalOrExpr":return Jt(e,t,r.left)||Jt(e,t,r.right);case"TestExpr":return B_(e,t,r);case"ComparisonExpr":return dm(e,t,r);default:er(r)}}function V_(e,t,r){switch(r.type){case"FunctionExpr":return Sa(e,t,r);case"FilterQuery":return um(e,t,r);case"LogicalNotExpr":case"LogicalAndExpr":case"LogicalOrExpr":case"TestExpr":return Jt(e,t,r);case"Literal":return r.value;default:er(r)}}function H_(e){return pt(e)?e.length===1?e[0]:Ar:e}function Sa(e,t,r){if(!K_(e.functions,r.name))return!1;const n=e.functions[r.name];if(n.definition.parameters.length!==r.arguments.length)return!1;const i=[];for(let o=0;o<r.arguments.length;o++){const s=V_(e,t,r.arguments[o]),c=n.definition.parameters[o];switch(c){case"ValueType":if(!pt(s)&&!$_(s))return!1;i.push(H_(s));break;case"NodesType":if(!pt(s))return!1;i.push(s);break;case"LogicalType":if(typeof s=="boolean")i.push(s);else if(pt(s))i.push(s.length>0);else return!1;break;default:sm(c,"Unknown function argument type")}}return n.declaration(e,...i)}function K_(e,t){return Object.hasOwn(e,t)}function Cl(e,t,r){switch(r.type){case"Literal":return r.value;case"RelSingularQuery":case"AbsSingularQuery":{const n=r.type==="RelSingularQuery"?t.value:t.root;if(r.segments.length===0)return n;const i=nm();return Qi(e,t.root,n,r,o=>{i.push(o)}),i}case"FunctionExpr":return Sa(e,t,r);default:er(r)}}function dm(e,t,r){const n=Cl(e,t,r.left),i=Cl(e,t,r.right);return z_(n,i,r.op)}function fm(e,t,r){if(r.value.type==="ComparisonExpr"){if(!dm(e,t,r.value))return}else if(!Jt(e,t,r.value))return;e.stack.push({root:t.root,path:t.path,value:t.value,index:t.index+1})}function W_(e,t){return e<0?t+e:e}function mm(e,t,r){const n=W_(r.value,t.value.length);n>=0&&n<t.value.length&&e.stack.push({root:t.root,path:$t(t.path,n),value:t.value[n],index:t.index+1})}function hm(e,{root:t,path:r,value:n,index:i},o){Object.hasOwn(n,o.value)&&e.stack.push({root:t,path:$t(r,o.value),value:n[o.value],index:i+1})}function Wi(e,t){return e>=0?e:t+e}function Q_(e,t,r,n){const i=Wi(e,n),o=Wi(t,n);if(r>=0){const p=Math.min(Math.max(i,0),n),l=Math.min(Math.max(o,0),n);return[p,l]}const s=Math.min(Math.max(i,-1),n-1);return[Math.min(Math.max(o,-1),n-1),s]}function G_(e,{root:t,path:r,value:n,index:i},o){const s=o.step??1,c=s>=0?0:n.length-1,p=s>=0?n.length:-n.length-1,l=o.start===null?c:Wi(o.start,n.length),d=o.end===null?p:Wi(o.end,n.length),[h,y]=Q_(l,d,s,n.length);if(s>0){let g=h;for(;g<y;)e.stack.push({root:t,path:$t(r,g),value:n[g],index:i+1}),g+=s}else if(s<0){let g=y;for(;h<g;)e.stack.push({root:t,path:$t(r,g),value:n[g],index:i+1}),g+=s}}function ym(e,{root:t,path:r,value:n,index:i}){if(Array.isArray(n))for(let o=0;o<n.length;o++)e.stack.push({root:t,path:$t(r,o),value:n[o],index:i+1});else if(an(n))for(const o of Object.keys(n))e.stack.push({root:t,path:$t(r,o),value:n[o],index:i+1})}function Y_(e,t,r){for(const n of r.selectors)switch(n.type){case"NameSelector":Ki(t)&&hm(e,t,n);break;case"SliceSelector":Ri(t)&&G_(e,t,n);break;case"IndexSelector":{Ri(t)&&mm(e,t,n);break}case"WildcardSelector":ym(e,t);break;case"FilterSelector":{Ri(t)?J_(e,t,n):Ki(t)&&X_(e,t,n);break}default:er(n)}}function J_(e,{root:t,path:r,value:n,index:i},o){for(let s=0;s<n.length;s++)fm(e,{root:t,path:$t(r,s),value:n[s],index:i},o)}function X_(e,{root:t,path:r,value:n,index:i},o){for(const s of Object.keys(n))fm(e,{root:t,path:$t(r,s),value:n[s],index:i},o)}function Z_(e,{root:t,path:r,value:n,index:i},o){Object.hasOwn(n,o.value)&&e.stack.push({root:t,path:$t(r,o.value),value:n[o.value],index:i+1})}function eT(e,t,r){switch(r.type){case"BracketedSelection":return Y_(e,t,r);case"WildcardSelector":return ym(e,t);case"MemberNameShorthand":Ki(t)&&Z_(e,t,r);break;case"NameSelector":Ki(t)&&hm(e,t,r);break;case"IndexSelector":Ri(t)&&mm(e,t,r);break;default:er(r)}}function Qi(e,t,r,n,i){const o=new P_;o.push({root:t,path:q_(e.capturePaths),value:r,index:0});const s={cache:e.cache,capturePaths:!1,functions:e.functions,regexp:e.regexp,stack:o};for(;o.size>0;){const c=o.pop();if(c.index===n.segments.length){i(c.value,c.path);continue}const{path:p,value:l,index:d}=c,h=n.segments[d];if(eT(s,c,h.node),h.type==="DescendantSegment"){if(Array.isArray(l))for(let y=0;y<l.length;y++)o.push({root:t,path:$t(p,y),value:l[y],index:d});else if(l!==null&&typeof l=="object")for(const y of Object.keys(l))o.push({root:t,path:$t(p,y),value:l[y],index:d})}}}function gm(e,t,r,n){const i={cache:new Map,capturePaths:r.capturePaths,functions:{count:A_,search:k_,value:I_,match:T_,length:O_},regexp:"i-regexp"};Qi(i,e,e,em(t),n)}const tT={capturePaths:!0};function rT(e,t){const r=[];return gm(e,t,{capturePaths:!1},n=>{r.push(n)}),r}function nT(e,t){const r=[];return gm(e,t,tT,(n,i)=>{r.push(D_(i))}),r}const jl="#/components/actions/";function iT(e,t,r){const n=j.normalizeTypes(ta),i={problems:[],specVersion:"overlay1",visitorsData:{}},o=new Set,{$self:s,components:c}=t.parsed,p=typeof s=="string"?r.resolveExternalRef(t.source.absoluteRef,s):t.source.absoluteRef,l=(h,y,g)=>{const $=v=>{const O=h[v];if(typeof O!="string"){g({message:`The \`${v}\` field must be a JSONPath expression.`,location:y.child([v])});return}try{return oT(e.parsed,O)}catch(b){g({message:`Invalid JSONPath expression: ${b.message}`,location:y.child([v])});return}},x=$("target");if(!x)return;if(h.remove===!0){if(x.some(({keys:v})=>v.length===0)){g({message:"Cannot remove the root of the document.",location:y.child(["target"])});return}aT(e.parsed,x,o);return}if(h.update!==void 0&&h.copy!==void 0){g({message:"An action can't have both `update` and `copy`.",location:y});return}let P,A;if(h.copy===void 0)P=structuredClone(h.update),A="update",Ns(P,v=>{const O=r.resolveExternalRef(p,v),b=e.source.absoluteRef;return j.isAbsoluteUrl(O)||j.isAbsoluteUrl(b)?O:Ks(Y.pathBrowserifyExports.relative(Y.pathBrowserifyExports.dirname(b),O))});else{const v=$("copy");if(!v)return;if(v.length!==1){g({message:`The copy expression must select exactly one node, but it selected ${v.length}.`,location:y.child(["copy"])});return}P=Ls(e.parsed,v[0].keys),A="copy"}if(P===void 0)return;if(new Set(x.map(({keys:v})=>{const O=Ls(e.parsed,v);return Array.isArray(O)?"array":Y.isPlainObject(O)?"object":"primitive"})).size>1){g({message:"The target must select only objects, only arrays, or only primitive values.",location:y.child(["target"])});return}for(const v of x){const O=sT(e.parsed,v,P,o);if(O){g({message:O,location:y.child([A])});return}}},d={Root({actions:h},{report:y,location:g}){if(!Array.isArray(h)){y({message:"The overlay must have a list of `actions`.",location:g.child(["actions"])});return}h.forEach(($,x)=>{const P=g.child(["actions",x]);if(!Y.isPlainObject($)){y({message:"An action must be an object.",location:P});return}if(!j.isRef($)){l($,P,y);return}const{$ref:A,target:S,description:v,...O}=$,b=Object.keys(O).find(M=>!M.startsWith("x-"));if(b){y({message:`Property \`${b}\` is not expected here because it is defined alongside \`$ref\`.`,location:P.child([b]).key()});return}const k=A.startsWith(jl)?j.getOwn(c?.actions??{},j.unescapePointerFragment(A.slice(jl.length))):void 0;if(!k){y({message:`Can't find the reusable action \`${A}\`.`,location:P.child(["$ref"])});return}l({...k.fields,target:S},P,y)})}};return St({document:t,rootType:n.Root,normalizedVisitors:xt([{severity:"error",ruleId:"overlay",visitor:d}],n),resolvedRefMap:new Map,ctx:i}),i.problems}function Ns(e,t){if(Array.isArray(e))for(const r of e)Ns(r,t);else if(Y.isPlainObject(e))for(const[r,n]of Object.entries(e))if(r==="$ref"&&typeof n=="string"){const[i,...o]=n.split("#");i!==""&&(e.$ref=[t(i),...o].join("#"))}else Ns(n,t)}function oT(e,t){return[...new Set(nT(e,t))].map(r=>({jsonPath:r,keys:em(r).segments.flatMap(({node:n})=>n.type==="BracketedSelection"?n.selectors.flatMap(i=>i.type==="NameSelector"||i.type==="IndexSelector"?[i.value]:[]):[])}))}function sT(e,{jsonPath:t,keys:r},n,i){const o=Ls(e,r);if(Yi(o)){if(!Yi(n))return Us(n,o,t);Gi(e,r.slice(0,-1),i)[r[r.length-1]]=n;return}const s=Gi(e,r,i);if(Array.isArray(s)){s.push(...Array.isArray(n)?structuredClone(n):[structuredClone(n)]);return}return Y.isPlainObject(n)?bm(s,n,t,i):Us(n,s,t)}function bm(e,t,r,n){for(const[i,o]of Object.entries(t)){const s=e[i];if(!Object.hasOwn(e,i))e[i]=structuredClone(o);else if(Y.isPlainObject(s)&&Y.isPlainObject(o)){const c=bm(Gi(e,[i],n),o,`${r}['${i}']`,n);if(c)return c}else if(Array.isArray(s)&&Array.isArray(o))e[i]=[...s,...structuredClone(o)];else if(Yi(s)&&Yi(o))e[i]=o;else return Us(o,s,`${r}['${i}']`)}}function aT(e,t,r){const n=t.map(({keys:o})=>({parent:Gi(e,o.slice(0,-1),r),key:o[o.length-1]})),i=o=>typeof o=="number"?o:-1;n.sort((o,s)=>i(s.key)-i(o.key));for(const{parent:o,key:s}of n)Array.isArray(o)?o.splice(s,1):delete o[s]}function Ls(e,t){return t.reduce((r,n)=>r[n],e)}function Gi(e,t,r){let n=e;for(const i of t){if(!r.has(n[i])){const o=Object.assign(Array.isArray(n[i])?[]:{},n[i]);r.add(o),n[i]=o}n=n[i]}return n}function Yi(e){return!Y.isPlainObject(e)&&!Array.isArray(e)}function Us(e,t,r){const n=i=>i===null?"null":Array.isArray(i)?"array":typeof i;return`Cannot apply ${n(e)} to ${n(t)} at ${r}.`}function Fs(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 cT({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:i,componentRenamingConflicts:o="warn",componentNamesStrategy:s="basename"}){let c,p;const l=new Map,d=Fs("Schema",e),h={ref:{leave(S,v,O){if(!O.location||O.node===void 0){ur(O,v.report,v.location);return}const b=Dr(O);if(b.location.source===r.source&&b.location.source===v.location.source&&v.type.name!=="scalar"&&!t){j.parseRef(S.$ref).uri!==null&&S.$ref!==b.location.pointer&&(S.$ref=b.location.pointer);return}if(i&&j.isAbsoluteUrl(S.$ref))return;const k=Fs(v.type.name,e);k?t?(g(k,b,v),j.replaceRef(S,b,v)):(S.$ref=g(k,b,v),y(S,O,v)):j.replaceRef(S,b,v)}},Example:{leave(S,v){if(j.isExternalValue(S)&&S.value===void 0){const O=v.resolve({$ref:S.externalValue});if(!O.location||O.node===void 0){ur(O,v.report,v.location);return}if(i&&j.isAbsoluteUrl(S.externalValue))return;S.value=v.resolve({$ref:S.externalValue}).node,delete S.externalValue}}},Root:{enter(S,v){p=v.location,e==="oas3"?c=S.components=S.components||{}:e==="oas2"?c=S:e==="async2"?c=S.components=S.components||{}:e==="async3"?c=S.components=S.components||{}:e==="arazzo1"?c=S.components=S.components||{}:e==="openrpc1"&&(c=S.components=S.components||{})}}};e==="oas3"&&(h.Discriminator={leave(S,v){if(typeof S.defaultMapping!="string"||!j.isMappingRef(S.defaultMapping))return;const O=v.resolve({$ref:S.defaultMapping});if(!O.location||O.node===void 0){ur(O,v.report,v.location.child("defaultMapping"));return}S.defaultMapping=g(d,Dr(O),v)},DiscriminatorMapping:{leave(S,v){for(const O of Object.keys(S)){const b=S[O];if(!j.isMappingRef(b))continue;const k=v.resolve({$ref:b});if(!k.location||k.node===void 0){ur(k,v.report,v.location.child(O));return}S[O]=g(d,Dr(k),v)}}}});function y(S,v,O){const b={resolved:!0,isRemote:!1,node:v.node,chain:v.chain,document:r,nodePointer:S.$ref};n.set(j.makeRefId(O.location.source.absoluteRef,S.$ref),b),n.set(j.makeRefId(r.source.absoluteRef,S.$ref),b)}function g(S,v,O){c[S]=c[S]||{};const b=A(v,S,O);return c[S][b]=v.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${S}/${b}`:`#/${S}/${b}`}function $(S,v,O){if(j.isRef(S)){const b=O.resolve(S,p.absolutePointer);if((b.location&&Dr(b).location)?.absolutePointer===v.location.absolutePointer)return!0}return Dt(S,v.node)}function x(S,v,O){const{title:b,name:k}=Qf(S.node),M=S.location.child("title");return b===""?{key:k,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:S.location,forceSeverity:"error"}}:v[k]&&!$(v[k],S,O)?{key:k,problem:{message:`Title "${b}" maps to component name \`${k}\`, already used by another schema. Rename one of the titles.`,location:M,from:l.get(k),forceSeverity:o}}:{key:k}}function P(S,v,O){const b=j.pointerBaseName(S.location.pointer)||j.refBaseName(S.location.source.absoluteRef);let k=b;for(let M=2;v[k]&&!$(v[k],S,O);M++)k=`${b}-${M}`;return{name:k,prevName:b}}function A(S,v,O){const b=c[v];if(s==="title"&&v===d){const{key:H,problem:G}=x(S,b,O);if(!G)return l.set(H,S.location.child("title")),H;const{name:Z}=P(S,b,O);return b[Z]||(O.report(G),l.set(Z,S.location)),Z}const{name:k,prevName:M}=P(S,b,O);return!b[k]&&M!==k&&O.report({message:`Two schemas are referenced with the same name but different content. Renamed ${M} to ${k}.`,location:O.location,forceSeverity:o}),k}return h}class zs extends Error{}class pT extends Error{}async function Pa(e){const{document:t,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:c=!1,componentRenamingConflicts:p,componentNamesStrategy:l="basename",overlays:d=[]}=e,h=$r(t.parsed),y=ba(h),g=r.getRulesForSpecVersion(y),$=j.normalizeTypes(r.extendTypes(n,h),r),x=Br(g,r,"preprocessors",h),P=Br(g,r,"decorators",h),A={problems:[],specVersion:h,config:r,refTypes:new Map,visitorsData:{}};let S=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i});x.length>0&&(St({document:t,rootType:$.Root,normalizedVisitors:xt(x,$),resolvedRefMap:S,ctx:A}),S=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}));const v=(b,k)=>({severity:"error",ruleId:"bundler",visitor:cT({version:y,dereference:k,rootDocument:t,resolvedRefMap:b,keepUrlRefs:c,componentRenamingConflicts:p,componentNamesStrategy:l})}),O=P.filter(b=>b.ruleId!=="remove-unused-components");if(St({document:t,rootType:$.Root,normalizedVisitors:xt(d.length>0?[v(S,!1)]:[v(S,o),...O],$),resolvedRefMap:S,ctx:A}),d.length>0){for(const H of d){const G=await i.resolveDocument(null,H,!0).catch(te=>{throw new zs(`Failed to load overlay at ${H}: ${te.message}`)});if(G instanceof Error)throw G;const Z=Y.isPlainObject(G.parsed)?G.parsed.overlay:void 0;if(typeof Z!="string"||!df.test(Z))throw new zs(`${H} is not an Overlay 1.0, 1.1, or 1.2 document.`);A.problems.push(...iT(t,G,i))}const b=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}),k={...A,problems:[]};St({document:t,rootType:$.Root,normalizedVisitors:xt([v(b,o),...O],$),resolvedRefMap:b,ctx:k});const M=new Set(A.problems.map(({ruleId:H,message:G})=>`${H}:${G}`));A.problems.push(...k.problems.filter(({ruleId:H,message:G})=>!M.has(`${H}:${G}`)))}if(s||r.getDecoratorSettings("remove-unused-components",h).severity!=="off"){const b=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}),k=xt([{severity:"error",ruleId:"remove-unused-components",visitor:y==="oas2"?ef():tf()}],$);St({document:t,rootType:$.Root,normalizedVisitors:k,resolvedRefMap:b,ctx:A})}return{bundle:t,problems:A.problems.map(b=>r.addProblemToIgnore(b)),fileDependencies:i.getFiles(),rootType:$.Root,refTypes:A.refTypes,visitorsData:A.visitorsData}}function lT(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ya]:n}};return St({document:e,rootType:Zr.ConfigRoot,normalizedVisitors:g_,resolvedRefMap:t,ctx:i}),n.plugins}function uT(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ha]:i}};return St({document:e,rootType:Zr.ConfigRoot,normalizedVisitors:b_,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function dT(e){const{ref:t,doc:r,externalRefResolver:n=new j.BaseResolver(e.config.resolve),base:i=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
32
|
-
`);const o=r===void 0?await n.resolveDocument(i,t,!0):r;if(o instanceof Error)throw o;return e.collectSpecData?.(o),
|
|
33
|
-
`);return}
|
|
34
|
-
`);const $=
|
|
26
|
+
`+p+" | "+Wo("",i.column-1," ")+Wo("",h,"^")}else t+=`
|
|
27
|
+
at `+s}return t};gr.buildMessage=function(e,t){var r={literal:function(l){return'"'+i(l.text)+'"'},class:function(l){var d=l.parts.map(function(h){return Array.isArray(h)?o(h[0])+"-"+o(h[1]):o(h)});return"["+(l.inverted?"^":"")+d.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 i(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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function o(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(d){return"\\x0"+n(d)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(d){return"\\x"+n(d)})}function s(l){return r[l.type](l)}function c(l){var d=l.map(s),h,y;if(d.sort(),d.length>0){for(h=1,y=1;h<d.length;h++)d[h-1]!==d[h]&&(d[y]=d[h],y++);d.length=y}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}}function p(l){return l?'"'+i(l)+'"':"end of input"}return"Expected "+c(e)+" but "+p(t)+" found."};function E_(e,t){t=t!==void 0?t:{};var r={},n=t.grammarSource,i={jsonpath_query:yo},o=yo,s="$",c=".",p="..",l="[",d=",",h="]",y="*",g=":",$="?",x='"',P="'",A="0",S="-",v="||",O="\\",b="u",k="&&",M="d",H="(",G=")",Z="!",te="==",de="!=",ee="<=",ie=">=",Pe="-0",Ie="true",Le="false",Se="null",qe="@",_="e",R=/^[\t-\n\r ]/,C=/^[A-Z_a-z\x80-\uD7FF\uE000-\uFFFF]/,q=/^[\uD800-\uDBFF]/,w=/^[\uDC00-\uDFFF]/,D=/^[0-9]/,K=/^[1-9]/,V=/^[ -!#-&(-[\]-\uD7FF\uE000-\uFFFF]/,re=/^[\/\\bfnrt]/,we=/^[A-CE-F]/i,$e=/^[0-7]/,z=/^[8-9]/,W=/^[A-B]/i,J=/^[C-F]/i,oe=/^[A-F]/i,me=/^[<>]/,Ae=/^[0-9_a-z]/,F=/^[+\-]/,X=/^[a-z]/,pe=He("$",!1),ae=et([[" ",`
|
|
28
|
+
`],"\r"," "],!1,!1),ce=He(".",!1),he=He("..",!1),ye=He("[",!1),ge=He(",",!1),Ee=He("]",!1),Qe=He("*",!1),a=et([["A","Z"],"_",["a","z"],["",""],["",""]],!1,!1),u=et([["\uD800","\uDBFF"]],!1,!1),f=et([["\uDC00","\uDFFF"]],!1,!1),T=He(":",!1),N=He("?",!1),L=et([["0","9"]],!1,!1),B=He('"',!1),se=He("'",!1),le=He("0",!1),Re=He("-",!1),fe=et([["1","9"]],!1,!1),xe=He("||",!1),Be=et([[" ","!"],["#","&"],["(","["],["]",""],["",""]],!1,!1),_e=He("\\",!1),Ce=et(["/","\\","b","f","n","r","t"],!1,!1),Ye=He("u",!1),tr=He("&&",!1),rr=et([["A","C"],["E","F"]],!1,!0),ho=He("D",!0),am=et([["0","7"]],!1,!1),cm=et([["8","9"]],!1,!1),pm=et([["A","B"]],!1,!0),lm=et([["C","F"]],!1,!0),Sa=He("(",!1),Pa=He(")",!1),um=et([["A","F"]],!1,!0),dm=He("!",!1),fm=He("==",!1),mm=He("!=",!1),hm=He("<=",!1),ym=He(">=",!1),gm=et(["<",">"],!1,!1),bm=He("-0",!1),vm=He("true",!1),wm=He("false",!1),xm=He("null",!1),Sm=He("@",!1),Pm=et([["0","9"],"_",["a","z"]],!1,!1),$m=He("e",!0),Am=et(["+","-"],!1,!1),Em=et([["a","z"]],!1,!1),Om=function(m){return{type:"JsonPathQuery",segments:m}},$a=function(m){return m},Rm=function(m){return m},_m=function(m){return{type:"ChildSegment",node:m}},Tm=function(m){return{type:"DescendantSegment",node:m}},Aa=function(m,E){return E},km=function(m,E){return[m,...E]},Im=function(m){return{type:"BracketedSelection",selectors:m}},qm=function(){return{type:"WildcardSelector"}},Cm=function(m){return{type:"MemberNameShorthand",value:m}},jm=function(m){return{type:"NameSelector",value:m}},Mm=function(m,E,U){return U},Dm=function(m,E,U){return{start:m,end:E,step:U}},Nm=function(m){return{type:"SliceSelector",start:m.start===""?null:Number.parseInt(m.start.trim(),10),end:m.end===""?null:Number.parseInt(m.end.trim(),10),step:m.step===""||m.step===null?null:Number.parseInt(m.step.trim(),10)}},Lm=function(m){return{type:"IndexSelector",value:Number.parseInt(m,10)}},Um=function(m){return{type:"FilterSelector",value:m}},Fm=function(m){return m},zm=function(m){return m},Bm=function(m){return m.join("")},Vm=function(){return'"'},Hm=function(m){switch(m){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
29
|
+
`;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return m.slice(1)}},Km=function(){return"'"},Wm=function(m){switch(m){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
30
|
+
`;case"r":return"\r";case"t":return" ";case"/":return"/";case"\\":return"\\";default:return m.slice(1)}},Ea=function(m,E){return E},Qm=function(m,E){return E.length===0?m:{type:"LogicalOrExpr",left:m,right:E.length===1?E[0]:E.slice(1).reduce((U,Q)=>({type:"LogicalOrExpr",left:U,right:Q}),E[0])}},Oa=function(m,E){return E},Gm=function(m,E){return[m,...E]},Ym=function(m){return m.length===1?m[0]:{type:"LogicalAndExpr",left:m[0],right:m.length===2?m[1]:m.slice(2).reduce((E,U)=>({type:"LogicalOrExpr",left:E,right:U}),m[1])}},Jm=function(){return String.fromCharCode(Number.parseInt(bh(),16))},Xm=function(m,E){return String.fromCharCode(Number.parseInt(m,16))+String.fromCharCode(Number.parseInt(E,16))},Zm=function(m){return m},eh=function(m,E){return m!==null?{type:"LogicalNotExpr",expression:E}:E},th=function(m,E,U){return{type:"ComparisonExpr",left:m,op:E,right:U}},rh=function(m,E){return m!==null?{type:"LogicalNotExpr",expression:{type:"TestExpr",expression:E}}:{type:"TestExpr",expression:E}},nh=function(m){return{type:"FilterQuery",value:m}},Ra=function(m,E,U){return U},ih=function(m,E,U){return[E,...U]},oh=function(m,E){return{type:"FunctionExpr",name:m,arguments:E}},sh=function(m){return{type:"Literal",value:m}},ah=function(m){return{type:"RelQuery",segments:m}},ch=function(m){return Number(m)},ph=function(){return!0},lh=function(){return!1},uh=function(){return null},dh=function(m){return{type:"RelSingularQuery",segments:m}},fh=function(m){return{type:"AbsSingularQuery",segments:m}},_a=function(m){return{type:"SingularQuerySegment",node:m}},mh=function(m){return m},hh=function(m){return m},yh=function(m){return m},gh=function(m){return{type:"IndexSelector",selector:m}},I=t.peg$currPos|0,Oe=I,nr=[{line:1,column:1}],ht=I,pn=t.peg$maxFailExpected||[],ve=t.peg$silentFails|0,Or;if(t.startRule){if(!(t.startRule in i))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');o=i[t.startRule]}function bh(){return e.substring(Oe,I)}function He(m,E){return{type:"literal",text:m,ignoreCase:E}}function et(m,E,U){return{type:"class",parts:m,inverted:E,ignoreCase:U}}function vh(){return{type:"end"}}function Ta(m){var E=nr[m],U;if(E)return E;if(m>=nr.length)U=nr.length-1;else for(U=m;!nr[--U];);for(E=nr[U],E={line:E.line,column:E.column};U<m;)e.charCodeAt(U)===10?(E.line++,E.column=1):E.column++,U++;return nr[m]=E,E}function ka(m,E,U){var Q=Ta(m),ne=Ta(E),ue={source:n,start:{offset:m,line:Q.line,column:Q.column},end:{offset:E,line:ne.line,column:ne.column}};return ue}function be(m){I<ht||(I>ht&&(ht=I,pn=[]),pn.push(m))}function wh(m,E,U){return new gr(gr.buildMessage(m,E),m,E,U)}function yo(){var m,E,U;return m=I,E=Ia(),E!==r?(U=qa(),Oe=m,m=Om(U)):(I=m,m=r),m}function Ia(){var m;return e.charCodeAt(I)===36?(m=s,I++):(m=r,ve===0&&be(pe)),m}function qa(){var m,E,U;for(m=[],E=I,Ue(),U=Ca(),U!==r?(Oe=E,E=$a(U)):(I=E,E=r);E!==r;)m.push(E),E=I,Ue(),U=Ca(),U!==r?(Oe=E,E=$a(U)):(I=E,E=r);return m}function Ue(){var m,E;for(m=[],E=ja();E!==r;)m.push(E),E=ja();return m}function Ca(){var m;return m=xh(),m===r&&(m=Sh()),m}function ja(){var m;return m=e.charAt(I),R.test(m)?I++:(m=r,ve===0&&be(ae)),m}function xh(){var m,E,U,Q;return m=I,E=Ma(),E===r&&(E=I,e.charCodeAt(I)===46?(U=c,I++):(U=r,ve===0&&be(ce)),U!==r?(Q=go(),Q===r&&(Q=bo()),Q!==r?(Oe=E,E=Rm(Q)):(I=E,E=r)):(I=E,E=r)),E!==r&&(Oe=m,E=_m(E)),m=E,m}function Sh(){var m,E,U;return m=I,e.substr(I,2)===p?(E=p,I+=2):(E=r,ve===0&&be(he)),E!==r?(U=Ma(),U===r&&(U=go(),U===r&&(U=bo())),U!==r?(Oe=m,m=Tm(U)):(I=m,m=r)):(I=m,m=r),m}function Ma(){var m,E,U,Q,ne,ue,Te,Je;if(m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r){if(U=I,Ue(),Q=vo(),Q!==r){for(ne=[],ue=I,Ue(),e.charCodeAt(I)===44?(Te=d,I++):(Te=r,ve===0&&be(ge)),Te!==r?(Ue(),Je=vo(),Je!==r?(Oe=ue,ue=Aa(Q,Je)):(I=ue,ue=r)):(I=ue,ue=r);ue!==r;)ne.push(ue),ue=I,Ue(),e.charCodeAt(I)===44?(Te=d,I++):(Te=r,ve===0&&be(ge)),Te!==r?(Ue(),Je=vo(),Je!==r?(Oe=ue,ue=Aa(Q,Je)):(I=ue,ue=r)):(I=ue,ue=r);Oe=U,U=km(Q,ne)}else I=U,U=r;U!==r?(Ue(),e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=Im(U)):(I=m,m=r)):(I=m,m=r)}else I=m,m=r;return m}function go(){var m,E;return m=I,e.charCodeAt(I)===42?(E=y,I++):(E=r,ve===0&&be(Qe)),E!==r&&(Oe=m,E=qm()),m=E,m}function bo(){var m,E,U,Q,ne,ue;if(m=I,E=I,U=I,Q=Da(),Q!==r){for(ne=[],ue=Na();ue!==r;)ne.push(ue),ue=Na();Q=[Q,ne],U=Q}else I=U,U=r;return U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=Cm(E)),m=E,m}function vo(){var m;return m=La(),m===r&&(m=go(),m===r&&(m=Ph(),m===r&&(m=Ua(),m===r&&(m=$h())))),m}function Da(){var m,E,U;return m=e.charAt(I),C.test(m)?I++:(m=r,ve===0&&be(a)),m===r&&(m=I,E=e.charAt(I),q.test(E)?I++:(E=r,ve===0&&be(u)),E!==r?(U=e.charAt(I),w.test(U)?I++:(U=r,ve===0&&be(f)),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function Na(){var m;return m=Da(),m===r&&(m=Rt()),m}function La(){var m,E;return m=I,E=Fa(),E!==r&&(Oe=m,E=jm(E)),m=E,m}function Ph(){var m,E,U,Q,ne,ue,Te,Je,ut;return m=I,E=I,U=I,Q=I,ne=Rr(),ne!==r?(ue=Ue(),ne=[ne,ue],Q=ne):(I=Q,Q=r),Q===r&&(Q=null),U=e.substring(U,I),e.charCodeAt(I)===58?(Q=g,I++):(Q=r,ve===0&&be(T)),Q!==r?(ne=Ue(),ue=I,Te=I,Je=Rr(),Je!==r?(ut=Ue(),Je=[Je,ut],Te=Je):(I=Te,Te=r),Te===r&&(Te=null),ue=e.substring(ue,I),Te=I,e.charCodeAt(I)===58?(Je=g,I++):(Je=r,ve===0&&be(T)),Je!==r?(ut=I,Ue(),Rr(),ut=e.substring(ut,I),Oe=Te,Te=Mm(U,ue,ut)):(I=Te,Te=r),Te===r&&(Te=null),Oe=E,E=Dm(U,ue,Te)):(I=E,E=r),E!==r&&(Oe=m,E=Nm(E)),m=E,m}function Ua(){var m,E,U;return m=I,E=I,U=Rr(),U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=Lm(E)),m=E,m}function $h(){var m,E,U;return m=I,e.charCodeAt(I)===63?(E=$,I++):(E=r,ve===0&&be(N)),E!==r?(Ue(),U=wo(),U!==r?(Oe=m,m=Um(U)):(I=m,m=r)):(I=m,m=r),m}function Rt(){var m;return m=e.charAt(I),D.test(m)?I++:(m=r,ve===0&&be(L)),m}function Fa(){var m,E,U,Q,ne;if(m=I,E=I,e.charCodeAt(I)===34?(U=x,I++):(U=r,ve===0&&be(B)),U!==r){for(Q=[],ne=za();ne!==r;)Q.push(ne),ne=za();e.charCodeAt(I)===34?(ne=x,I++):(ne=r,ve===0&&be(B)),ne!==r?(Oe=E,E=Fm(Q)):(I=E,E=r)}else I=E,E=r;if(E===r)if(E=I,e.charCodeAt(I)===39?(U=P,I++):(U=r,ve===0&&be(se)),U!==r){for(Q=[],ne=Ba();ne!==r;)Q.push(ne),ne=Ba();e.charCodeAt(I)===39?(ne=P,I++):(ne=r,ve===0&&be(se)),ne!==r?(Oe=E,E=zm(Q)):(I=E,E=r)}else I=E,E=r;return E!==r&&(Oe=m,E=Bm(E)),m=E,m}function Rr(){var m,E,U,Q,ne;if(e.charCodeAt(I)===48?(m=A,I++):(m=r,ve===0&&be(le)),m===r)if(m=I,e.charCodeAt(I)===45?(E=S,I++):(E=r,ve===0&&be(Re)),E===r&&(E=null),U=Ah(),U!==r){for(Q=[],ne=Rt();ne!==r;)Q.push(ne),ne=Rt();E=[E,U,Q],m=E}else I=m,m=r;return m}function za(){var m,E,U;return m=I,E=Va(),E!==r?m=e.substring(m,I):m=E,m===r&&(e.charCodeAt(I)===39?(m=P,I++):(m=r,ve===0&&be(se)),m===r&&(m=I,E=ln(),E!==r?(e.charCodeAt(I)===34?(U=x,I++):(U=r,ve===0&&be(B)),U!==r?(Oe=m,m=Vm()):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,E=ln(),E!==r?(U=Ha(),U!==r?(Oe=m,m=Hm(U)):(I=m,m=r)):(I=m,m=r)))),m}function Ba(){var m,E,U;return m=I,E=Va(),E!==r?m=e.substring(m,I):m=E,m===r&&(e.charCodeAt(I)===34?(m=x,I++):(m=r,ve===0&&be(B)),m===r&&(m=I,E=ln(),E!==r?(e.charCodeAt(I)===39?(U=P,I++):(U=r,ve===0&&be(se)),U!==r?(Oe=m,m=Km()):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,E=ln(),E!==r?(U=Ha(),U!==r?(Oe=m,m=Wm(U)):(I=m,m=r)):(I=m,m=r)))),m}function Ah(){var m;return m=e.charAt(I),K.test(m)?I++:(m=r,ve===0&&be(fe)),m}function wo(){var m,E,U,Q,ne,ue;if(m=I,E=xo(),E!==r){for(U=[],Q=I,Ue(),e.substr(I,2)===v?(ne=v,I+=2):(ne=r,ve===0&&be(xe)),ne!==r?(Ue(),ue=xo(),ue!==r?(Oe=Q,Q=Ea(E,ue)):(I=Q,Q=r)):(I=Q,Q=r);Q!==r;)U.push(Q),Q=I,Ue(),e.substr(I,2)===v?(ne=v,I+=2):(ne=r,ve===0&&be(xe)),ne!==r?(Ue(),ue=xo(),ue!==r?(Oe=Q,Q=Ea(E,ue)):(I=Q,Q=r)):(I=Q,Q=r);Oe=m,m=Qm(E,U)}else I=m,m=r;return m}function Va(){var m,E,U;return m=e.charAt(I),V.test(m)?I++:(m=r,ve===0&&be(Be)),m===r&&(m=I,E=e.charAt(I),q.test(E)?I++:(E=r,ve===0&&be(u)),E!==r?(U=e.charAt(I),w.test(U)?I++:(U=r,ve===0&&be(f)),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function ln(){var m;return e.charCodeAt(I)===92?(m=O,I++):(m=r,ve===0&&be(_e)),m}function Ha(){var m,E,U;return m=e.charAt(I),re.test(m)?I++:(m=r,ve===0&&be(Ce)),m===r&&(m=I,e.charCodeAt(I)===117?(E=b,I++):(E=r,ve===0&&be(Ye)),E!==r?(U=Eh(),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function xo(){var m,E,U,Q,ne,ue,Te;if(m=I,E=I,U=So(),U!==r){for(Q=[],ne=I,Ue(),e.substr(I,2)===k?(ue=k,I+=2):(ue=r,ve===0&&be(tr)),ue!==r?(Ue(),Te=So(),Te!==r?(Oe=ne,ne=Oa(U,Te)):(I=ne,ne=r)):(I=ne,ne=r);ne!==r;)Q.push(ne),ne=I,Ue(),e.substr(I,2)===k?(ue=k,I+=2):(ue=r,ve===0&&be(tr)),ue!==r?(Ue(),Te=So(),Te!==r?(Oe=ne,ne=Oa(U,Te)):(I=ne,ne=r)):(I=ne,ne=r);Oe=E,E=Gm(U,Q)}else I=E,E=r;return E!==r&&(Oe=m,E=Ym(E)),m=E,m}function Eh(){var m,E,U,Q,ne,ue,Te;return m=I,E=I,U=Oh(),U!==r&&(Oe=E,U=Jm()),E=U,E===r&&(E=I,U=I,Q=Rh(),Q!==r?U=e.substring(U,I):U=Q,U!==r?(e.charCodeAt(I)===92?(Q=O,I++):(Q=r,ve===0&&be(_e)),Q!==r?(e.charCodeAt(I)===117?(ne=b,I++):(ne=r,ve===0&&be(Ye)),ne!==r?(ue=I,Te=_h(),Te!==r?ue=e.substring(ue,I):ue=Te,ue!==r?(Oe=E,E=Xm(U,ue)):(I=E,E=r)):(I=E,E=r)):(I=E,E=r)):(I=E,E=r)),E!==r&&(Oe=m,E=Zm(E)),m=E,m}function So(){var m;return m=Th(),m===r&&(m=kh(),m===r&&(m=Ih())),m}function Oh(){var m,E,U,Q,ne,ue;if(m=I,E=Rt(),E===r&&(E=e.charAt(I),we.test(E)?I++:(E=r,ve===0&&be(rr))),E!==r){for(U=I,Q=[],ne=Lt();ne!==r;)Q.push(ne),Q.length>=3?ne=r:ne=Lt();Q.length<3?(I=U,U=r):U=Q,U!==r?(E=[E,U],m=E):(I=m,m=r)}else I=m,m=r;if(m===r)if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(ho)),E!==r)if(U=e.charAt(I),$e.test(U)?I++:(U=r,ve===0&&be(am)),U!==r){for(Q=I,ne=[],ue=Lt();ue!==r;)ne.push(ue),ne.length>=2?ue=r:ue=Lt();ne.length<2?(I=Q,Q=r):Q=ne,Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Rh(){var m,E,U,Q,ne,ue;if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(ho)),E!==r)if(U=e.charAt(I),z.test(U)?I++:(U=r,ve===0&&be(cm)),U===r&&(U=e.charAt(I),W.test(U)?I++:(U=r,ve===0&&be(pm))),U!==r){for(Q=I,ne=[],ue=Lt();ue!==r;)ne.push(ue),ne.length>=2?ue=r:ue=Lt();ne.length<2?(I=Q,Q=r):Q=ne,Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function _h(){var m,E,U,Q,ne,ue;if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(ho)),E!==r)if(U=e.charAt(I),J.test(U)?I++:(U=r,ve===0&&be(lm)),U!==r){for(Q=I,ne=[],ue=Lt();ue!==r;)ne.push(ue),ne.length>=2?ue=r:ue=Lt();ne.length<2?(I=Q,Q=r):Q=ne,Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Th(){var m,E,U,Q,ne,ue;return m=I,E=I,U=Ka(),U!==r?(Q=Ue(),U=[U,Q],E=U):(I=E,E=r),E===r&&(E=null),e.charCodeAt(I)===40?(U=H,I++):(U=r,ve===0&&be(Sa)),U!==r?(Q=Ue(),ne=wo(),ne!==r?(Ue(),e.charCodeAt(I)===41?(ue=G,I++):(ue=r,ve===0&&be(Pa)),ue!==r?(Oe=m,m=eh(E,ne)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}function kh(){var m,E,U,Q;return m=I,E=Wa(),E!==r?(Ue(),U=qh(),U!==r?(Ue(),Q=Wa(),Q!==r?(Oe=m,m=th(E,U,Q)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}function Ih(){var m,E,U,Q;return m=I,E=I,U=Ka(),U!==r?(Q=Ue(),U=[U,Q],E=U):(I=E,E=r),E===r&&(E=null),U=Qa(),U===r&&(U=Po()),U!==r?(Oe=m,m=rh(E,U)):(I=m,m=r),m}function Lt(){var m;return m=Rt(),m===r&&(m=e.charAt(I),oe.test(m)?I++:(m=r,ve===0&&be(um))),m}function Ka(){var m;return e.charCodeAt(I)===33?(m=Z,I++):(m=r,ve===0&&be(dm)),m}function Wa(){var m;return m=Ga(),m===r&&(m=Ch(),m===r&&(m=Po())),m}function qh(){var m;return e.substr(I,2)===te?(m=te,I+=2):(m=r,ve===0&&be(fm)),m===r&&(e.substr(I,2)===de?(m=de,I+=2):(m=r,ve===0&&be(mm)),m===r&&(e.substr(I,2)===ee?(m=ee,I+=2):(m=r,ve===0&&be(hm)),m===r&&(e.substr(I,2)===ie?(m=ie,I+=2):(m=r,ve===0&&be(ym)),m===r&&(m=e.charAt(I),me.test(m)?I++:(m=r,ve===0&&be(gm)))))),m}function Qa(){var m,E;return m=I,E=jh(),E===r&&(E=yo()),E!==r&&(Oe=m,E=nh(E)),m=E,m}function Po(){var m,E,U,Q,ne,ue,Te,Je,ut;if(m=I,E=Mh(),E!==r)if(e.charCodeAt(I)===40?(U=H,I++):(U=r,ve===0&&be(Sa)),U!==r){if(Ue(),Q=I,ne=$o(),ne!==r){for(ue=[],Te=I,Ue(),e.charCodeAt(I)===44?(Je=d,I++):(Je=r,ve===0&&be(ge)),Je!==r?(Ue(),ut=$o(),ut!==r?(Oe=Te,Te=Ra(E,ne,ut)):(I=Te,Te=r)):(I=Te,Te=r);Te!==r;)ue.push(Te),Te=I,Ue(),e.charCodeAt(I)===44?(Je=d,I++):(Je=r,ve===0&&be(ge)),Je!==r?(Ue(),ut=$o(),ut!==r?(Oe=Te,Te=Ra(E,ne,ut)):(I=Te,Te=r)):(I=Te,Te=r);Oe=Q,Q=ih(E,ne,ue)}else I=Q,Q=r;Q===r&&(Q=null),ne=Ue(),e.charCodeAt(I)===41?(ue=G,I++):(ue=r,ve===0&&be(Pa)),ue!==r?(Oe=m,m=oh(E,Q)):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Ga(){var m,E;return m=I,E=Dh(),E===r&&(E=Fa(),E===r&&(E=Nh(),E===r&&(E=Lh(),E===r&&(E=Uh())))),E!==r&&(Oe=m,E=sh(E)),m=E,m}function Ch(){var m;return m=Fh(),m===r&&(m=zh()),m}function jh(){var m,E,U;return m=I,E=Ya(),E!==r?(U=qa(),U!==r?(Oe=m,m=ah(U)):(I=m,m=r)):(I=m,m=r),m}function Mh(){var m,E,U,Q,ne;if(m=I,E=I,U=Hh(),U!==r){for(Q=[],ne=Ja();ne!==r;)Q.push(ne),ne=Ja();U=[U,Q],E=U}else I=E,E=r;return E!==r?m=e.substring(m,I):m=E,m}function $o(){var m;return m=Ga(),m===r&&(m=Qa(),m===r&&(m=Po(),m===r&&(m=wo()))),m}function Dh(){var m,E,U,Q,ne,ue;return m=I,E=I,U=I,Q=Rr(),Q===r&&(e.substr(I,2)===Pe?(Q=Pe,I+=2):(Q=r,ve===0&&be(bm))),Q!==r?(ne=Bh(),ne===r&&(ne=null),ue=Vh(),ue===r&&(ue=null),Q=[Q,ne,ue],U=Q):(I=U,U=r),U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=ch(E)),m=E,m}function Nh(){var m,E;return m=I,e.substr(I,4)===Ie?(E=Ie,I+=4):(E=r,ve===0&&be(vm)),E!==r&&(Oe=m,E=ph()),m=E,m}function Lh(){var m,E;return m=I,e.substr(I,5)===Le?(E=Le,I+=5):(E=r,ve===0&&be(wm)),E!==r&&(Oe=m,E=lh()),m=E,m}function Uh(){var m,E;return m=I,e.substr(I,4)===Se?(E=Se,I+=4):(E=r,ve===0&&be(xm)),E!==r&&(Oe=m,E=uh()),m=E,m}function Fh(){var m,E,U;return m=I,E=Ya(),E!==r?(U=Xa(),Oe=m,m=dh(U)):(I=m,m=r),m}function zh(){var m,E,U;return m=I,E=Ia(),E!==r?(U=Xa(),Oe=m,m=fh(U)):(I=m,m=r),m}function Ya(){var m;return e.charCodeAt(I)===64?(m=qe,I++):(m=r,ve===0&&be(Sm)),m}function Ja(){var m;return m=e.charAt(I),Ae.test(m)?I++:(m=r,ve===0&&be(Pm)),m}function Bh(){var m,E,U,Q;if(m=I,e.charCodeAt(I)===46?(E=c,I++):(E=r,ve===0&&be(ce)),E!==r){if(U=[],Q=Rt(),Q!==r)for(;Q!==r;)U.push(Q),Q=Rt();else U=r;U!==r?(E=[E,U],m=E):(I=m,m=r)}else I=m,m=r;return m}function Vh(){var m,E,U,Q,ne;if(m=I,E=e.charAt(I),E.toLowerCase()===_?I++:(E=r,ve===0&&be($m)),E!==r){if(U=e.charAt(I),F.test(U)?I++:(U=r,ve===0&&be(Am)),U===r&&(U=null),Q=[],ne=Rt(),ne!==r)for(;ne!==r;)Q.push(ne),ne=Rt();else Q=r;Q!==r?(E=[E,U,Q],m=E):(I=m,m=r)}else I=m,m=r;return m}function Xa(){var m,E,U,Q;for(m=I,E=[],U=I,Ue(),Q=Za(),Q===r&&(Q=ec()),Q!==r?(Oe=U,U=_a(Q)):(I=U,U=r);U!==r;)E.push(U),U=I,Ue(),Q=Za(),Q===r&&(Q=ec()),Q!==r?(Oe=U,U=_a(Q)):(I=U,U=r);return Oe=m,E=mh(E),m=E,m}function Hh(){var m;return m=e.charAt(I),X.test(m)?I++:(m=r,ve===0&&be(Em)),m}function Za(){var m,E,U,Q;return m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r?(U=La(),U!==r?(e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=hh(U)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,e.charCodeAt(I)===46?(E=c,I++):(E=r,ve===0&&be(ce)),E!==r?(U=bo(),U!==r?(Oe=m,m=yh(U)):(I=m,m=r)):(I=m,m=r)),m}function ec(){var m,E,U,Q;return m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r?(U=Ua(),U!==r?(e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=gh(U)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}if(Or=o(),t.peg$library)return{peg$result:Or,peg$currPos:I,peg$FAILED:r,peg$maxFailExpected:pn,peg$maxFailPos:ht};if(Or!==r&&I===e.length)return Or;throw Or!==r&&I<e.length&&be(vh()),wh(pn,ht<e.length?e.charAt(ht):null,ht<e.length?ka(ht,ht+1):ka(ht,ht))}function qf(e){return E_(e)}class O_{head=null;tail=null;size=0;push(t){const 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;const t=this.head.value;return this.head=this.head.next,this.head===null&&(this.tail=null),this.size--,t}}function sn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}const Oi=e=>Array.isArray(e.value),Fi=e=>sn(e.value),Cf=new WeakSet,pt=e=>typeof e=="object"&&e!==null&&Cf.has(e),R_=e=>{switch(typeof e){case"string":case"number":case"boolean":return!0;case"object":return e===null||sn(e)||jf(e);default:return!1}},jf=e=>Array.isArray(e)&&!pt(e),Mf=()=>{const e=[];return Cf.add(e),e},Ar=Symbol("Nothing"),__={declaration:function(t,r){return pt(r)?r.length:0},definition:{parameters:["NodesType"],returnType:"ValueType"}};function T_(e){let t=0;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);(n>=0&&n<=55295||n>=57344&&n<=1114111)&&t++}return t}const k_={declaration:function(t,r){return typeof r=="string"?T_(r):Array.isArray(r)?r.length:sn(r)?Object.keys(r).length:Ar},definition:{parameters:["ValueType"],returnType:"ValueType"}};function Df(e){return e===92}function I_(e,t){let r=!1,n=t;for(;n<e.length;){const i=e.charCodeAt(n);if(n++,Df(i)){r=!0;continue}if(i===93){if(!r)break;r=!1}}return n}function q_(e){let t=e;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);Df(n)?r++:n===91?r=I_(e,r):n===46&&(t=`${e.slice(0,r)}[^
|
|
31
|
+
\r]${e.slice(r+1)}`)}return t}function Nf({cache:e},t){const r=e.get("regexps")??{};if(e.has("regexps")||e.set("regexps",r),Object.hasOwn(r,t))return r[t];try{const n=RegExp(q_(t),"u");return r[t]=n,n}catch{return r[t]=null,null}}const C_={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Nf(t,`^${n}$`)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}},j_={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:Nf(t,n)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}},M_={declaration:function(t,r){return r.length===1?r[0]:Ar},definition:{parameters:["NodesType"],returnType:"ValueType"}},Is=[];function $t(e,t){return e===Is?Is:typeof t=="number"?[...e,t]:[...e,U_(t)]}function D_(e){return e?[]:Is}const N_=/[\u0000-\u001f'\\]/g;function L_(e){const 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 U_(e){return e.replace(N_,L_)}function F_(e){let t="$";for(const r of e)typeof r=="number"?t+=`[${r}]`:t+=`['${r}']`;return t}function er(e){throw new TypeError(`Unexpected node type: ${e.type}`)}function Bt(e){throw new TypeError(`Unexpected comparison operator: ${e}`)}function Lf(e,t){throw new Error(t)}function Ri(e){switch(typeof e){case"object":if(e===null)return"null";if(pt(e))return"NodeList";if(jf(e))return"array";if(sn(e))return"object";throw new TypeError(`Unknown type: ${e}`);case"string":return"string";case"number":return"number";case"boolean":return"boolean";default:if(e===Ar)return"Nothing";throw new TypeError(`Unknown type: ${e}`)}}function z_(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!br(e[r],t[r]))return!1;return!0}function B_(e,t){const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(const i of r)if(!Object.hasOwn(t,i)||!br(e[i],t[i]))return!1;return!0}function br(e,t){if(Ri(e)!==Ri(t))return!1;switch(Ri(e)){case"string":case"number":case"boolean":case"null":return e===t;case"object":return B_(e,t);case"array":case"NodeList":return z_(e,t);default:return!1}}function Uf(e,t,r){switch(r){case"==":case">=":case"<=":return!pt(e)&&!pt(t)&&br(e,t);case"<":case">":return!1;case"!=":return!Uf(e,t,"==");default:Bt(r)}}function Ff(e,t,r){switch(r){case"==":case"<=":case">=":return pt(e)&&(pt(t)&&br(e,t)||t===Ar);case"<":case">":return!1;case"!=":return!Ff(e,t,"==");default:Bt(r)}}function zf(e,t,r){switch(r){case"==":case"<=":case">=":return t===Ar||pt(t)&&t.length===0;case"<":case">":return!1;case"!=":return!zf(e,t,"==");default:Bt(r)}}function Qt(e,t,r){switch(r){case"==":return e===t;case"<":return typeof t=="number"&&e<t;case"!=":return!Qt(e,t,"==");case"<=":return Qt(e,t,"<")||Qt(e,t,"==");case">":return typeof t=="number"&&Qt(t,e,"<");case">=":return typeof t=="number"&&Qt(t,e,"<")||Qt(e,t,"==");default:Bt(r)}}function V_(e,t,r){switch(r){case"==":case"<=":case">=":return br(e,t);case"<":case">":return!1;case"!=":return!br(e,t);default:Bt(r)}}function Bf(e,t,r){switch(r){case"==":case"<=":case">=":return e===t;case"<":case">":return!1;case"!=":return!Bf(e,t,"==");default:Bt(r)}}function Wt(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;){const i=e.charCodeAt(n),o=t.charCodeAt(n);if(i===o){n++;continue}return e.charCodeAt(n)<t.charCodeAt(n)}return e.length<t.length}default:Bt(r)}}function H_(e,t,r){switch(r){case"==":case"<":return Wt(e,t,r);case"!=":return!Wt(e,t,"==");case"<=":return Wt(e,t,"<")||Wt(e,t,"==");case">":return Wt(t,e,"<");case">=":return Wt(t,e,"<")||Wt(e,t,"==");default:Bt(r)}}function K_(e,t,r){const n=pt(e)&&e.length===1?e[0]:e,i=Ri(n),o=pt(t)&&t.length===1?t[0]:t;switch(i){case"string":return H_(n,o,r);case"number":return Qt(n,o,r);case"boolean":case"null":return Bf(n,o,r);case"object":return V_(n,o,r);case"array":return Uf(n,o,r);case"Nothing":return zf(n,o,r);case"NodeList":return Ff(n,o,r);default:Lf(i,"Unknown type")}}function Vf(e,t,r){const n=Mf();switch(r.value.type){case"RelQuery":Bi(e,t.root,t.value,r.value,i=>{n.push(i)});break;case"JsonPathQuery":Bi(e,t.root,t.root,r.value,i=>{n.push(i)});break;default:er(r.value)}return n}function W_(e,t,r){switch(r.expression.type){case"FilterQuery":return Vf(e,t,r.expression).length>0;case"FunctionExpr":return ya(e,t,r.expression)===!0;default:er(r.expression)}}function Jt(e,t,r){switch(r.type){case"LogicalNotExpr":return!Jt(e,t,r.expression);case"LogicalAndExpr":return Jt(e,t,r.left)&&Jt(e,t,r.right);case"LogicalOrExpr":return Jt(e,t,r.left)||Jt(e,t,r.right);case"TestExpr":return W_(e,t,r);case"ComparisonExpr":return Hf(e,t,r);default:er(r)}}function Q_(e,t,r){switch(r.type){case"FunctionExpr":return ya(e,t,r);case"FilterQuery":return Vf(e,t,r);case"LogicalNotExpr":case"LogicalAndExpr":case"LogicalOrExpr":case"TestExpr":return Jt(e,t,r);case"Literal":return r.value;default:er(r)}}function G_(e){return pt(e)?e.length===1?e[0]:Ar:e}function ya(e,t,r){if(!Y_(e.functions,r.name))return!1;const n=e.functions[r.name];if(n.definition.parameters.length!==r.arguments.length)return!1;const i=[];for(let o=0;o<r.arguments.length;o++){const s=Q_(e,t,r.arguments[o]),c=n.definition.parameters[o];switch(c){case"ValueType":if(!pt(s)&&!R_(s))return!1;i.push(G_(s));break;case"NodesType":if(!pt(s))return!1;i.push(s);break;case"LogicalType":if(typeof s=="boolean")i.push(s);else if(pt(s))i.push(s.length>0);else return!1;break;default:Lf(c,"Unknown function argument type")}}return n.declaration(e,...i)}function Y_(e,t){return Object.hasOwn(e,t)}function kl(e,t,r){switch(r.type){case"Literal":return r.value;case"RelSingularQuery":case"AbsSingularQuery":{const n=r.type==="RelSingularQuery"?t.value:t.root;if(r.segments.length===0)return n;const i=Mf();return Bi(e,t.root,n,r,o=>{i.push(o)}),i}case"FunctionExpr":return ya(e,t,r);default:er(r)}}function Hf(e,t,r){const n=kl(e,t,r.left),i=kl(e,t,r.right);return K_(n,i,r.op)}function Kf(e,t,r){if(r.value.type==="ComparisonExpr"){if(!Hf(e,t,r.value))return}else if(!Jt(e,t,r.value))return;e.stack.push({root:t.root,path:t.path,value:t.value,index:t.index+1})}function J_(e,t){return e<0?t+e:e}function Wf(e,t,r){const n=J_(r.value,t.value.length);n>=0&&n<t.value.length&&e.stack.push({root:t.root,path:$t(t.path,n),value:t.value[n],index:t.index+1})}function Qf(e,{root:t,path:r,value:n,index:i},o){Object.hasOwn(n,o.value)&&e.stack.push({root:t,path:$t(r,o.value),value:n[o.value],index:i+1})}function zi(e,t){return e>=0?e:t+e}function X_(e,t,r,n){const i=zi(e,n),o=zi(t,n);if(r>=0){const p=Math.min(Math.max(i,0),n),l=Math.min(Math.max(o,0),n);return[p,l]}const s=Math.min(Math.max(i,-1),n-1);return[Math.min(Math.max(o,-1),n-1),s]}function Z_(e,{root:t,path:r,value:n,index:i},o){const s=o.step??1,c=s>=0?0:n.length-1,p=s>=0?n.length:-n.length-1,l=o.start===null?c:zi(o.start,n.length),d=o.end===null?p:zi(o.end,n.length),[h,y]=X_(l,d,s,n.length);if(s>0){let g=h;for(;g<y;)e.stack.push({root:t,path:$t(r,g),value:n[g],index:i+1}),g+=s}else if(s<0){let g=y;for(;h<g;)e.stack.push({root:t,path:$t(r,g),value:n[g],index:i+1}),g+=s}}function Gf(e,{root:t,path:r,value:n,index:i}){if(Array.isArray(n))for(let o=0;o<n.length;o++)e.stack.push({root:t,path:$t(r,o),value:n[o],index:i+1});else if(sn(n))for(const o of Object.keys(n))e.stack.push({root:t,path:$t(r,o),value:n[o],index:i+1})}function eT(e,t,r){for(const n of r.selectors)switch(n.type){case"NameSelector":Fi(t)&&Qf(e,t,n);break;case"SliceSelector":Oi(t)&&Z_(e,t,n);break;case"IndexSelector":{Oi(t)&&Wf(e,t,n);break}case"WildcardSelector":Gf(e,t);break;case"FilterSelector":{Oi(t)?tT(e,t,n):Fi(t)&&rT(e,t,n);break}default:er(n)}}function tT(e,{root:t,path:r,value:n,index:i},o){for(let s=0;s<n.length;s++)Kf(e,{root:t,path:$t(r,s),value:n[s],index:i},o)}function rT(e,{root:t,path:r,value:n,index:i},o){for(const s of Object.keys(n))Kf(e,{root:t,path:$t(r,s),value:n[s],index:i},o)}function nT(e,{root:t,path:r,value:n,index:i},o){Object.hasOwn(n,o.value)&&e.stack.push({root:t,path:$t(r,o.value),value:n[o.value],index:i+1})}function iT(e,t,r){switch(r.type){case"BracketedSelection":return eT(e,t,r);case"WildcardSelector":return Gf(e,t);case"MemberNameShorthand":Fi(t)&&nT(e,t,r);break;case"NameSelector":Fi(t)&&Qf(e,t,r);break;case"IndexSelector":Oi(t)&&Wf(e,t,r);break;default:er(r)}}function Bi(e,t,r,n,i){const o=new O_;o.push({root:t,path:D_(e.capturePaths),value:r,index:0});const s={cache:e.cache,capturePaths:!1,functions:e.functions,regexp:e.regexp,stack:o};for(;o.size>0;){const c=o.pop();if(c.index===n.segments.length){i(c.value,c.path);continue}const{path:p,value:l,index:d}=c,h=n.segments[d];if(iT(s,c,h.node),h.type==="DescendantSegment"){if(Array.isArray(l))for(let y=0;y<l.length;y++)o.push({root:t,path:$t(p,y),value:l[y],index:d});else if(l!==null&&typeof l=="object")for(const y of Object.keys(l))o.push({root:t,path:$t(p,y),value:l[y],index:d})}}}function Yf(e,t,r,n){const i={cache:new Map,capturePaths:r.capturePaths,functions:{count:__,search:j_,value:M_,match:C_,length:k_},regexp:"i-regexp"};Bi(i,e,e,qf(t),n)}const oT={capturePaths:!0};function sT(e,t){const r=[];return Yf(e,t,{capturePaths:!1},n=>{r.push(n)}),r}function aT(e,t){const r=[];return Yf(e,t,oT,(n,i)=>{r.push(F_(i))}),r}const Il="#/components/actions/";function cT(e,t,r){const n=j.normalizeTypes(Ys),i={problems:[],specVersion:"overlay1",visitorsData:{}},o=new Set,{$self:s,components:c}=t.parsed,p=typeof s=="string"?r.resolveExternalRef(t.source.absoluteRef,s):t.source.absoluteRef,l=(h,y,g)=>{const $=v=>{const O=h[v];if(typeof O!="string"){g({message:`The \`${v}\` field must be a JSONPath expression.`,location:y.child([v])});return}try{return pT(e.parsed,O)}catch(b){g({message:`Invalid JSONPath expression: ${b.message}`,location:y.child([v])});return}},x=$("target");if(!x)return;if(h.remove===!0){if(x.some(({keys:v})=>v.length===0)){g({message:"Cannot remove the root of the document.",location:y.child(["target"])});return}uT(e.parsed,x,o);return}if(h.update!==void 0&&h.copy!==void 0){g({message:"An action can't have both `update` and `copy`.",location:y});return}let P,A;if(h.copy===void 0)P=structuredClone(h.update),A="update",qs(P,v=>{const O=r.resolveExternalRef(p,v),b=e.source.absoluteRef;return j.isAbsoluteUrl(O)||j.isAbsoluteUrl(b)?O:Fs(Y.pathBrowserifyExports.relative(Y.pathBrowserifyExports.dirname(b),O))});else{const v=$("copy");if(!v)return;if(v.length!==1){g({message:`The copy expression must select exactly one node, but it selected ${v.length}.`,location:y.child(["copy"])});return}P=Cs(e.parsed,v[0].keys),A="copy"}if(P===void 0)return;if(new Set(x.map(({keys:v})=>{const O=Cs(e.parsed,v);return Array.isArray(O)?"array":Y.isPlainObject(O)?"object":"primitive"})).size>1){g({message:"The target must select only objects, only arrays, or only primitive values.",location:y.child(["target"])});return}for(const v of x){const O=lT(e.parsed,v,P,o);if(O){g({message:O,location:y.child([A])});return}}},d={Root({actions:h},{report:y,location:g}){if(!Array.isArray(h)){y({message:"The overlay must have a list of `actions`.",location:g.child(["actions"])});return}h.forEach(($,x)=>{const P=g.child(["actions",x]);if(!Y.isPlainObject($)){y({message:"An action must be an object.",location:P});return}if(!j.isRef($)){l($,P,y);return}const{$ref:A,target:S,description:v,...O}=$,b=Object.keys(O).find(M=>!M.startsWith("x-"));if(b){y({message:`Property \`${b}\` is not expected here because it is defined alongside \`$ref\`.`,location:P.child([b]).key()});return}const k=A.startsWith(Il)?j.getOwn(c?.actions??{},j.unescapePointerFragment(A.slice(Il.length))):void 0;if(!k){y({message:`Can't find the reusable action \`${A}\`.`,location:P.child(["$ref"])});return}l({...k.fields,target:S},P,y)})}};return St({document:t,rootType:n.Root,normalizedVisitors:xt([{severity:"error",ruleId:"overlay",visitor:d}],n),resolvedRefMap:new Map,ctx:i}),i.problems}function qs(e,t){if(Array.isArray(e))for(const r of e)qs(r,t);else if(Y.isPlainObject(e))for(const[r,n]of Object.entries(e))if(r==="$ref"&&typeof n=="string"){const[i,...o]=n.split("#");i!==""&&(e.$ref=[t(i),...o].join("#"))}else qs(n,t)}function pT(e,t){return[...new Set(aT(e,t))].map(r=>({jsonPath:r,keys:qf(r).segments.flatMap(({node:n})=>n.type==="BracketedSelection"?n.selectors.flatMap(i=>i.type==="NameSelector"||i.type==="IndexSelector"?[i.value]:[]):[])}))}function lT(e,{jsonPath:t,keys:r},n,i){const o=Cs(e,r);if(Hi(o)){if(!Hi(n))return js(n,o,t);Vi(e,r.slice(0,-1),i)[r[r.length-1]]=n;return}const s=Vi(e,r,i);if(Array.isArray(s)){s.push(...Array.isArray(n)?structuredClone(n):[structuredClone(n)]);return}return Y.isPlainObject(n)?Jf(s,n,t,i):js(n,s,t)}function Jf(e,t,r,n){for(const[i,o]of Object.entries(t)){const s=e[i];if(!Object.hasOwn(e,i))e[i]=structuredClone(o);else if(Y.isPlainObject(s)&&Y.isPlainObject(o)){const c=Jf(Vi(e,[i],n),o,`${r}['${i}']`,n);if(c)return c}else if(Array.isArray(s)&&Array.isArray(o))e[i]=[...s,...structuredClone(o)];else if(Hi(s)&&Hi(o))e[i]=o;else return js(o,s,`${r}['${i}']`)}}function uT(e,t,r){const n=t.map(({keys:o})=>({parent:Vi(e,o.slice(0,-1),r),key:o[o.length-1]})),i=o=>typeof o=="number"?o:-1;n.sort((o,s)=>i(s.key)-i(o.key));for(const{parent:o,key:s}of n)Array.isArray(o)?o.splice(s,1):delete o[s]}function Cs(e,t){return t.reduce((r,n)=>r[n],e)}function Vi(e,t,r){let n=e;for(const i of t){if(!r.has(n[i])){const o=Object.assign(Array.isArray(n[i])?[]:{},n[i]);r.add(o),n[i]=o}n=n[i]}return n}function Hi(e){return!Y.isPlainObject(e)&&!Array.isArray(e)}function js(e,t,r){const n=i=>i===null?"null":Array.isArray(i)?"array":typeof i;return`Cannot apply ${n(e)} to ${n(t)} at ${r}.`}function Ms(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 dT({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:i,componentRenamingConflicts:o="warn",componentNamesStrategy:s="basename"}){let c,p;const l=new Map,d=Ms("Schema",e),h={ref:{leave(S,v,O){if(!O.location||O.node===void 0){ur(O,v.report,v.location);return}const b=Dr(O);if(b.location.source===r.source&&b.location.source===v.location.source&&v.type.name!=="scalar"&&!t){j.parseRef(S.$ref).uri!==null&&S.$ref!==b.location.pointer&&(S.$ref=b.location.pointer);return}if(i&&j.isAbsoluteUrl(S.$ref))return;const k=Ms(v.type.name,e);k?t?(g(k,b,v),j.replaceRef(S,b,v)):(S.$ref=g(k,b,v),y(S,O,v)):j.replaceRef(S,b,v)}},Example:{leave(S,v){if(j.isExternalValue(S)&&S.value===void 0){const O=v.resolve({$ref:S.externalValue});if(!O.location||O.node===void 0){ur(O,v.report,v.location);return}if(i&&j.isAbsoluteUrl(S.externalValue))return;S.value=v.resolve({$ref:S.externalValue}).node,delete S.externalValue}}},Root:{enter(S,v){p=v.location,e==="oas3"?c=S.components=S.components||{}:e==="oas2"?c=S:e==="async2"?c=S.components=S.components||{}:e==="async3"?c=S.components=S.components||{}:e==="arazzo1"?c=S.components=S.components||{}:e==="openrpc1"&&(c=S.components=S.components||{})}}};e==="oas3"&&(h.Discriminator={leave(S,v){if(typeof S.defaultMapping!="string"||!j.isMappingRef(S.defaultMapping))return;const O=v.resolve({$ref:S.defaultMapping});if(!O.location||O.node===void 0){ur(O,v.report,v.location.child("defaultMapping"));return}S.defaultMapping=g(d,Dr(O),v)},DiscriminatorMapping:{leave(S,v){for(const O of Object.keys(S)){const b=S[O];if(!j.isMappingRef(b))continue;const k=v.resolve({$ref:b});if(!k.location||k.node===void 0){ur(k,v.report,v.location.child(O));return}S[O]=g(d,Dr(k),v)}}}});function y(S,v,O){const b={resolved:!0,isRemote:!1,node:v.node,chain:v.chain,document:r,nodePointer:S.$ref};n.set(j.makeRefId(O.location.source.absoluteRef,S.$ref),b),n.set(j.makeRefId(r.source.absoluteRef,S.$ref),b)}function g(S,v,O){c[S]=c[S]||{};const b=A(v,S,O);return c[S][b]=v.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${S}/${b}`:`#/${S}/${b}`}function $(S,v,O){if(j.isRef(S)){const b=O.resolve(S,p.absolutePointer);if((b.location&&Dr(b).location)?.absolutePointer===v.location.absolutePointer)return!0}return Mt(S,v.node)}function x(S,v,O){const{title:b,name:k}=Of(S.node),M=S.location.child("title");return b===""?{key:k,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:S.location,forceSeverity:"error"}}:v[k]&&!$(v[k],S,O)?{key:k,problem:{message:`Title "${b}" maps to component name \`${k}\`, already used by another schema. Rename one of the titles.`,location:M,from:l.get(k),forceSeverity:o}}:{key:k}}function P(S,v,O){const b=j.pointerBaseName(S.location.pointer)||j.refBaseName(S.location.source.absoluteRef);let k=b;for(let M=2;v[k]&&!$(v[k],S,O);M++)k=`${b}-${M}`;return{name:k,prevName:b}}function A(S,v,O){const b=c[v];if(s==="title"&&v===d){const{key:H,problem:G}=x(S,b,O);if(!G)return l.set(H,S.location.child("title")),H;const{name:Z}=P(S,b,O);return b[Z]||(O.report(G),l.set(Z,S.location)),Z}const{name:k,prevName:M}=P(S,b,O);return!b[k]&&M!==k&&O.report({message:`Two schemas are referenced with the same name but different content. Renamed ${M} to ${k}.`,location:O.location,forceSeverity:o}),k}return h}class Ds extends Error{}class fT extends Error{}async function ga(e){const{document:t,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:s=!1,keepUrlRefs:c=!1,componentRenamingConflicts:p,componentNamesStrategy:l="basename",overlays:d=[]}=e,h=$r(t.parsed),y=da(h),g=r.getRulesForSpecVersion(y),$=j.normalizeTypes(r.extendTypes(n,h),r),x=Br(g,r,"preprocessors",h),P=Br(g,r,"decorators",h),A={problems:[],specVersion:h,config:r,refTypes:new Map,visitorsData:{}};let S=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i});x.length>0&&(St({document:t,rootType:$.Root,normalizedVisitors:xt(x,$),resolvedRefMap:S,ctx:A}),S=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}));const v=(b,k)=>({severity:"error",ruleId:"bundler",visitor:dT({version:y,dereference:k,rootDocument:t,resolvedRefMap:b,keepUrlRefs:c,componentRenamingConflicts:p,componentNamesStrategy:l})}),O=P.filter(b=>b.ruleId!=="remove-unused-components");if(St({document:t,rootType:$.Root,normalizedVisitors:xt(d.length>0?[v(S,!1)]:[v(S,o),...O],$),resolvedRefMap:S,ctx:A}),d.length>0){for(const H of d){const G=await i.resolveDocument(null,H,!0).catch(te=>{throw new Ds(`Failed to load overlay at ${H}: ${te.message}`)});if(G instanceof Error)throw G;const Z=Y.isPlainObject(G.parsed)?G.parsed.overlay:void 0;if(typeof Z!="string"||!Vd.test(Z))throw new Ds(`${H} is not an Overlay 1.0, 1.1, or 1.2 document.`);A.problems.push(...cT(t,G,i))}const b=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}),k={...A,problems:[]};St({document:t,rootType:$.Root,normalizedVisitors:xt([v(b,o),...O],$),resolvedRefMap:b,ctx:k});const M=new Set(A.problems.map(({ruleId:H,message:G})=>`${H}:${G}`));A.problems.push(...k.problems.filter(({ruleId:H,message:G})=>!M.has(`${H}:${G}`)))}if(s||r.getDecoratorSettings("remove-unused-components",h).severity!=="off"){const b=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}),k=xt([{severity:"error",ruleId:"remove-unused-components",visitor:y==="oas2"?qd():Cd()}],$);St({document:t,rootType:$.Root,normalizedVisitors:k,resolvedRefMap:b,ctx:A})}return{bundle:t,problems:A.problems.map(b=>r.addProblemToIgnore(b)),fileDependencies:i.getFiles(),rootType:$.Root,refTypes:A.refTypes,visitorsData:A.visitorsData}}function mT(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[la]:n}};return St({document:e,rootType:Xr.ConfigRoot,normalizedVisitors:x_,resolvedRefMap:t,ctx:i}),n.plugins}function hT(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[pa]:i}};return St({document:e,rootType:Xr.ConfigRoot,normalizedVisitors:S_,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function yT(e){const{ref:t,doc:r,externalRefResolver:n=new j.BaseResolver(e.config.resolve),base:i=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
32
|
+
`);const o=r===void 0?await n.resolveDocument(i,t,!0):r;if(o instanceof Error)throw o;return e.collectSpecData?.(o),ga({document:o,...e,externalRefResolver:n,types:Yr($r(o.parsed))})}async function gT(e){const{source:t,absoluteRef:r,externalRefResolver:n=new j.BaseResolver(e.config.resolve)}=e,i=j.makeDocumentFromString(t,r||"/");return ga({document:i,...e,externalRefResolver:n,types:Yr($r(i.parsed))})}function Qo(e){return!it(e)}const Gr=new Map,_i="v";let ba=0,ql=!1;function bT(){Y.module.registerHooks({resolve(e,t,r){const n=r(e,t);if(!n.url.startsWith("file:")||!t.parentURL)return n;const i=new URL(t.parentURL).searchParams.get(_i);if(!i)return n;const o=new URL(n.url);return o.pathname.includes("/node_modules/")||o.searchParams.has(_i)?n:(o.searchParams.set(_i,i),{...n,url:o.href})}})}function vT(){if(!ql){if(ql=!0,typeof Y.module.registerHooks!="function"){Me.warn(`Redocly plugin reload requires Node.js >= 22.15 (current: ${process.version}). ESM plugins will not pick up edits until the process restarts.
|
|
33
|
+
`);return}bT()}}function wT(e){return Gr.has(e)}function xT(e){return Gr.get(e)}function ST(e,t){Gr.set(e,t)}function PT(){return ba}function $T(e){const t=Y.module.createRequire(e),r=new Set,n=i=>{if(r.has(i))return;r.add(i);const o=t.cache[i];if(o){for(const s of o.children)/[/\\]node_modules[/\\]/.test(s.id)||n(s.id);delete t.cache[i]}};n(e)}const AT=()=>{const e=[...Gr.keys()];for(const t of e)$T(t);Gr.clear(),ba+=1,vT()};async function ET(e){const t=(void 0)(e);return t.searchParams.set(_i,String(ba)),import(t.href)}async function Xf({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i,plugins:o=[]}){const s=e===void 0?bd:e.parsed;if(n!==void 0&&Y.isPlainObject(s)&&(s.extends=n),Y.isPlainObject(s)&&(s?.extends?.some(Qo)||s?.scorecardClassic?.levels?.some($=>$?.extends?.some(Qo))||s?.scorecard?.levels?.some($=>$?.extends?.some(Qo))))throw new Error("Configuration format not detected in extends: values must be strings.");const c=e??{source:new j.Source(t??"",JSON.stringify(s)),parsed:s},p=await j.resolveDocument({rootDocument:c,rootType:Xr.ConfigRoot,externalRefResolver:r??new j.BaseResolver(xd(s?.resolve))});let l=[],d,h="";j.isBrowser?d=[...(s?.plugins||[]).filter(x=>!it(x)),Ol,...o]:(h=Y.pathBrowserifyExports.dirname(t??""),l=mT(c,p,h),d=[...await Zf(l.map(x=>Cl(x)?x.absolutePath:x),h,i),Ol,...o]);const y=hT(c,v_(p),d,i);y.apis&&!i&&(y.apis=Object.fromEntries(Object.entries(y.apis).map(([$,x])=>{const P=kf([y,x]);return[$,{...x,...P}]})));const g=l.length?l.map($=>Cl($)&&$.isModule?$.rawPath:$.absolutePath&&Y.pathBrowserifyExports.relative(h,$.absolutePath)).filter(mt):void 0;return{resolvedConfig:{...y,plugins:g},resolvedRefMap:p,plugins:d}}function OT(e){for(const t of wd)(void 0)(Y.pathBrowserifyExports.resolve(e,t))}function Cl(e){return"isModule"in e}const Ns=(e,t,r)=>{if(!it(e))return e;(void 0)(Y.pathBrowserifyExports.resolve(Y.pathBrowserifyExports.dirname(t),e));try{return{absolutePath:Y.module.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:_t&&_t.tagName.toUpperCase()==="SCRIPT"&&_t.src||new URL("replay-lint-CTr--PY8.js",document.baseURI).href)??__dirname).resolve(e,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:_t&&_t.tagName.toUpperCase()==="SCRIPT"&&_t.src||new URL("replay-lint-CTr--PY8.js",document.baseURI).href)?Y.pathBrowserifyExports.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:_t&&_t.tagName.toUpperCase()==="SCRIPT"&&_t.src||new URL("replay-lint-CTr--PY8.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function Zf(e,t,r=!1){if(!e)return[];const n=async p=>{if(!it(p))return p;try{const l=Y.pathBrowserifyExports.isAbsolute(p)?p:Ns(p,Y.pathBrowserifyExports.join(t,$s),t).absolutePath;if(!wT(l)){const d=await ET(l),h=d.default||d,y={contentDir:t},g=Array.isArray(h)?h:[h];for(const P of g)P?.id&&Rl(P)&&Me.info(`Deprecated plugin format detected: ${P.id}
|
|
34
|
+
`);const $=Rl(h)?h:w_(h)?await h(y):await h?.default?.(y),x=Array.isArray($)?$:[$];$&&ST(l,x.map(P=>({...P,path:p,absolutePath:l})))}return xT(l)}catch(l){throw new Error(`Failed to load plugin "${p}": ${l.message}
|
|
35
35
|
|
|
36
|
-
${l.stack}`)}},i=new Map,o=
|
|
36
|
+
${l.stack}`)}},i=new Map,o=OT(t);o&&e.push(o);const s=new Set;if(r){const p=[];for(const l of e){if(!it(l)){p.push(l);continue}const d=Y.pathBrowserifyExports.isAbsolute(l)?l:Ns(l,Y.pathBrowserifyExports.join(t,$s),t).absolutePath;s.has(d)||(s.add(d),p.push({absolutePath:d}))}return p}return(await Promise.all(e.map(async p=>{if(it(p)){if(j.isAbsoluteUrl(p))throw new Error(De.red("We don't support remote plugins yet."));if(s.has(p))return;s.add(p)}const l=await n(p);if(!l)return;const d=Array.isArray(l)?l:[l];return(await Promise.all(d.map(async h=>{if(!h)return;const y=h.id;if(typeof y!="string")throw new Error(De.red(`Plugin must define \`id\` property in ${De.blue(p.toString())}.`));if(y===ha)throw new Error(`Plugin id "${y}" is reserved for Recheck presets.`);const g=h.absolutePath??p.toString(),$=i.get(y);if($){if(g!==$)throw new Error(De.red(`Plugin "id" must be unique. Plugin ${De.blue(g)} uses id "${De.blue(y)}" already seen in ${De.blue(g)}`));return}i.set(y,g);const x={id:y,...h.configs?{configs:h.configs}:{},...h.typeExtension?{typeExtension:h.typeExtension}:{}};if(h.rules){if(!h.rules.oas3&&!h.rules.oas2&&!h.rules.async2&&!h.rules.async3&&!h.rules.arazzo1&&!h.rules.overlay1&&!h.rules.openrpc1&&!h.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${p}.`);x.rules={},h.rules.oas3&&(x.rules.oas3=Xe(h.rules.oas3,y)),h.rules.oas2&&(x.rules.oas2=Xe(h.rules.oas2,y)),h.rules.async2&&(x.rules.async2=Xe(h.rules.async2,y)),h.rules.async3&&(x.rules.async3=Xe(h.rules.async3,y)),h.rules.arazzo1&&(x.rules.arazzo1=Xe(h.rules.arazzo1,y)),h.rules.overlay1&&(x.rules.overlay1=Xe(h.rules.overlay1,y)),h.rules.openrpc1&&(x.rules.openrpc1=Xe(h.rules.openrpc1,y)),h.rules.graphql&&(x.rules.graphql=Xe(h.rules.graphql,y))}if(h.preprocessors){if(!h.preprocessors.oas3&&!h.preprocessors.oas2&&!h.preprocessors.async2&&!h.preprocessors.async3&&!h.preprocessors.arazzo1&&!h.preprocessors.overlay1&&!h.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${p}.`);x.preprocessors={},h.preprocessors.oas3&&(x.preprocessors.oas3=Xe(h.preprocessors.oas3,y)),h.preprocessors.oas2&&(x.preprocessors.oas2=Xe(h.preprocessors.oas2,y)),h.preprocessors.async2&&(x.preprocessors.async2=Xe(h.preprocessors.async2,y)),h.preprocessors.async3&&(x.preprocessors.async3=Xe(h.preprocessors.async3,y)),h.preprocessors.arazzo1&&(x.preprocessors.arazzo1=Xe(h.preprocessors.arazzo1,y)),h.preprocessors.overlay1&&(x.preprocessors.overlay1=Xe(h.preprocessors.overlay1,y)),h.preprocessors.openrpc1&&(x.preprocessors.openrpc1=Xe(h.preprocessors.openrpc1,y))}if(h.decorators){if(!h.decorators.oas3&&!h.decorators.oas2&&!h.decorators.async2&&!h.decorators.async3&&!h.decorators.arazzo1&&!h.decorators.overlay1&&!h.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${p}.`);x.decorators={},h.decorators.oas3&&(x.decorators.oas3=Xe(h.decorators.oas3,y)),h.decorators.oas2&&(x.decorators.oas2=Xe(h.decorators.oas2,y)),h.decorators.async2&&(x.decorators.async2=Xe(h.decorators.async2,y)),h.decorators.async3&&(x.decorators.async3=Xe(h.decorators.async3,y)),h.decorators.arazzo1&&(x.decorators.arazzo1=Xe(h.decorators.arazzo1,y)),h.decorators.overlay1&&(x.decorators.overlay1=Xe(h.decorators.overlay1,y)),h.decorators.openrpc1&&(x.decorators.openrpc1=Xe(h.decorators.openrpc1,y))}return h.assertions&&(x.assertions=h.assertions),{...h,...x}}))).filter(mt)}))).filter(mt).flat()}function RT(e,t){const{pluginId:r,configName:n}=g_(e),i=t.find(s=>s.id===r);if(!i)throw new Error(`Invalid config ${De.red(e)}: plugin ${r} is not included.`);const o=i.configs?.[n];if(!o)throw new Error(r?`Invalid config ${De.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${De.red(e)}: there is no such built-in config.`);return o}function _T(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const i=e[n],o=j.isAbsoluteUrl(n)?n:j.resolvePath(t,n);r[o]=Object.create(null);for(const s of Object.keys(i))r[o][s]=new Set(i[s])}return r}async function em(e,t){const r=e?j.getDir(e):j.isBrowser?"":process.cwd(),n=r?j.resolvePath(r,Ci):Ci,i=await t.resolveDocument(null,n,!0);return i instanceof Error||!i.parsed?{}:_T(i.parsed||{},r)}async function TT(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n,skipPluginEval:i,plugins:o}=e,s=n??new j.BaseResolver,c=t?await s.resolveDocument(null,t,!0):void 0;if(c instanceof Error)throw c;const{resolvedConfig:p,resolvedRefMap:l,plugins:d}=await Xf({rawConfigDocument:c?tm(c):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:i,plugins:o}),h=await em(t,s);return new Zr(p,{configPath:t,document:c,resolvedRefMap:l,plugins:d,ignore:h})}function kT(e){}async function IT(e,{configPath:t,externalRefResolver:r,ignore:n,plugins:i}={}){const o=typeof e=="string"?e:"",s=j.makeDocumentFromString(o,t??"");typeof e!="string"&&e&&(s.parsed=e);const{resolvedConfig:c,resolvedRefMap:p,plugins:l}=await Xf({rawConfigDocument:tm(s),configPath:t,externalRefResolver:r,plugins:i});return new Zr(c,{configPath:t,document:s,resolvedRefMap:p,plugins:l,ignore:n})}function tm(e){if(!e.parsed)return e;const{plugins:t,resolve:r,...n}=e.parsed,i={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:i}}var Go={},vt={},Yo={},jl;function mo(){return jl||(jl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});var t;(function(p){p[p.SCALAR=0]="SCALAR",p[p.MAPPING=1]="MAPPING",p[p.MAP=2]="MAP",p[p.SEQ=3]="SEQ",p[p.ANCHOR_REF=4]="ANCHOR_REF",p[p.INCLUDE_REF=5]="INCLUDE_REF"})(t=e.Kind||(e.Kind={}));function r(p,l){var d=l?l.endPosition:p.endPosition+1,h={key:p,value:l,startPosition:p.startPosition,endPosition:d,kind:t.MAPPING,parent:null,errors:[]};return h}e.newMapping=r;function n(p,l,d,h){return{errors:[],referencesAnchor:p,value:h,startPosition:l,endPosition:d,kind:t.ANCHOR_REF,parent:null}}e.newAnchorRef=n;function i(p){p===void 0&&(p="");var l={errors:[],startPosition:-1,endPosition:-1,value:""+p,kind:t.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+p};return typeof p!="string"&&(l.valueObject=p),l}e.newScalar=i;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:t.SEQ,parent:null}}e.newItems=o;function s(){return o()}e.newSeq=s;function c(p){return{errors:[],startPosition:-1,endPosition:-1,mappings:p||[],kind:t.MAP,parent:null}}e.newMap=c})(Yo)),Yo}var Ct={},Ml;function Er(){if(Ml)return Ct;Ml=1,Object.defineProperty(Ct,"__esModule",{value:!0});function e(s){return typeof s>"u"||s===null}Ct.isNothing=e;function t(s){return typeof s=="object"&&s!==null}Ct.isObject=t;function r(s){return Array.isArray(s)?s:e(s)?[]:[s]}Ct.toArray=r;function n(s,c){var p,l,d,h;if(c)for(h=Object.keys(c),p=0,l=h.length;p<l;p+=1)d=h[p],s[d]=c[d];return s}Ct.extend=n;function i(s,c){var p="",l;for(l=0;l<c;l+=1)p+=s;return p}Ct.repeat=i;function o(s){return s===0&&Number.NEGATIVE_INFINITY===1/s}return Ct.isNegativeZero=o,Ct}var Jo,Dl;function an(){if(Dl)return Jo;Dl=1;var e=(function(){function t(r,n,i){n===void 0&&(n=null),i===void 0&&(i=!1),this.name="YAMLException",this.reason=r,this.mark=n,this.message=this.toString(!1),this.isWarning=i}return t.isInstance=function(r){if(r!=null&&r.getClassIdentifier&&typeof r.getClassIdentifier=="function")for(var n=0,i=r.getClassIdentifier();n<i.length;n++){var o=i[n];if(o==t.CLASS_IDENTIFIER)return!0}return!1},t.prototype.getClassIdentifier=function(){var r=[];return r.concat(t.CLASS_IDENTIFIER)},t.prototype.toString=function(r){r===void 0&&(r=!1);var n;return n="JS-YAML: "+(this.reason||"(unknown reason)"),!r&&this.mark&&(n+=" "+this.mark.toString()),n},t.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",t})();return Jo=e,Jo}var Xo,Nl;function qT(){if(Nl)return Xo;Nl=1;var e=Er(),t=(function(){function r(n,i,o,s,c){this.name=n,this.buffer=i,this.position=o,this.line=s,this.column=c}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,s,c,p,l;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",s=this.position;s>0&&`\0\r
|
|
37
37
|
\u2028\u2029`.indexOf(this.buffer.charAt(s-1))===-1;)if(s-=1,this.position-s>i/2-1){o=" ... ",s+=5;break}for(c="",p=this.position;p<this.buffer.length&&`\0\r
|
|
38
38
|
\u2028\u2029`.indexOf(this.buffer.charAt(p))===-1;)if(p+=1,p-this.position>i/2-1){c=" ... ",p-=5;break}return l=this.buffer.slice(s,p),e.repeat(" ",n)+o+l+c+`
|
|
39
39
|
`+e.repeat(" ",n+this.position-s+o.length)+"^"},r.prototype.toString=function(n){n===void 0&&(n=!0);var i,o="";return this.name&&(o+='in "'+this.name+'" '),o+="at line "+(this.line+1)+", column "+(this.column+1),n||(i=this.getSnippet(),i&&(o+=`:
|
|
40
|
-
`+i)),o},r})();return rs=t,rs}var Pi={},$i={},zl;function st(){if(zl)return $i;zl=1,Object.defineProperty($i,"__esModule",{value:!0});var e=cn(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(o){var s={};return o!==null&&Object.keys(o).forEach(function(c){o[c].forEach(function(p){s[String(p)]=c})}),s}var i=(function(){function o(s,c){if(c=c||{},Object.keys(c).forEach(function(p){if(t.indexOf(p)===-1)throw new e('Unknown option "'+p+'" is met in definition of "'+s+'" YAML type.')}),this.tag=s,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(p){return p},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.defaultStyle=c.defaultStyle||null,this.styleAliases=n(c.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return o})();return $i.Type=i,$i}var Bl;function pn(){if(Bl)return Pi;Bl=1,Object.defineProperty(Pi,"__esModule",{value:!0});var e=Er(),t=cn(),r=st();function n(s,c,p){var l=[];return s.include.forEach(function(d){p=n(d,c,p)}),s[c].forEach(function(d){p.forEach(function(h,y){h.tag===d.tag&&l.push(y)}),p.push(d)}),p.filter(function(d,h){return l.indexOf(h)===-1})}function i(){var s={},c,p;function l(d){s[d.tag]=d}for(c=0,p=arguments.length;c<p;c+=1)arguments[c].forEach(l);return s}var o=(function(){function s(c){this.include=c.include||[],this.implicit=c.implicit||[],this.explicit=c.explicit||[],this.implicit.forEach(function(p){if(p.loadKind&&p.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=i(this.compiledImplicit,this.compiledExplicit)}return s.DEFAULT=null,s.create=function(){var p,l;switch(arguments.length){case 1:p=s.DEFAULT,l=arguments[0];break;case 2:p=arguments[0],l=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(p=e.toArray(p),l=e.toArray(l),!p.every(function(d){return d instanceof s}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!l.every(function(d){return d instanceof r.Type}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:p,explicit:l})},s})();return Pi.Schema=o,Pi}var ns,Vl;function TT(){if(Vl)return ns;Vl=1;var e=st();return ns=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),ns}var is,Hl;function kT(){if(Hl)return is;Hl=1;var e=st();return is=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),is}var os,Kl;function IT(){if(Kl)return os;Kl=1;var e=st();return os=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),os}var ss,Wl;function qT(){if(Wl)return ss;Wl=1;var e=pn();return ss=new e.Schema({explicit:[TT(),kT(),IT()]}),ss}var as,Ql;function CT(){if(Ql)return as;Ql=1;var e=st();function t(i){if(i===null)return!0;var o=i.length;return o===1&&i==="~"||o===4&&(i==="null"||i==="Null"||i==="NULL")}function r(){return null}function n(i){return i===null}return as=new e.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),as}var cs,Gl;function jT(){if(Gl)return cs;Gl=1;var e=st();function t(i){if(i===null)return!1;var o=i.length;return o===4&&(i==="true"||i==="True"||i==="TRUE")||o===5&&(i==="false"||i==="False"||i==="FALSE")}function r(i){return i==="true"||i==="True"||i==="TRUE"}function n(i){return Object.prototype.toString.call(i)==="[object Boolean]"}return cs=new e.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"False"}},defaultStyle:"lowercase"}),cs}var ps,Yl;function MT(){if(Yl)return ps;Yl=1;var e=Er(),t=st();function r(p){return 48<=p&&p<=57||65<=p&&p<=70||97<=p&&p<=102}function n(p){return 48<=p&&p<=55}function i(p){return 48<=p&&p<=57}function o(p){if(p===null)return!1;var l=p.length,d=0,h=!1,y;if(!l)return!1;if(y=p[d],(y==="-"||y==="+")&&(y=p[++d]),y==="0"){if(d+1===l)return!0;if(y=p[++d],y==="b"){for(d++;d<l;d++)if(y=p[d],y!=="_"){if(y!=="0"&&y!=="1")return!1;h=!0}return h}if(y==="x"){for(d++;d<l;d++)if(y=p[d],y!=="_"){if(!r(p.charCodeAt(d)))return!1;h=!0}return h}for(;d<l;d++)if(y=p[d],y!=="_"){if(!n(p.charCodeAt(d)))return!1;h=!0}return h}for(;d<l;d++)if(y=p[d],y!=="_"){if(y===":")break;if(!i(p.charCodeAt(d)))return!1;h=!0}return h?y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(p.slice(d)):!1}function s(p){var l=p,d=1,h,y,g=[];return l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),h=l[0],(h==="-"||h==="+")&&(h==="-"&&(d=-1),l=l.slice(1),h=l[0]),l==="0"?0:h==="0"?l[1]==="b"?d*parseInt(l.slice(2),2):l[1]==="x"?d*parseInt(l,16):d*parseInt(l,8):l.indexOf(":")!==-1?(l.split(":").forEach(function($){g.unshift(parseInt($,10))}),l=0,y=1,g.forEach(function($){l+=$*y,y*=60}),d*l):d*parseInt(l,10)}function c(p){return Object.prototype.toString.call(p)==="[object Number]"&&p%1===0&&!e.isNegativeZero(p)}return ps=new t.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:s,predicate:c,represent:{binary:function(p){return"0b"+p.toString(2)},octal:function(p){return"0"+p.toString(8)},decimal:function(p){return p.toString(10)},hexadecimal:function(p){return"0x"+p.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),ps}var ls,Jl;function DT(){if(Jl)return ls;Jl=1;var e=Er(),t=st(),r=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 n(c){return!(c===null||!r.test(c))}function i(c){var p,l,d,h;return p=c.replace(/_/g,"").toLowerCase(),l=p[0]==="-"?-1:1,h=[],0<="+-".indexOf(p[0])&&(p=p.slice(1)),p===".inf"?l===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:0<=p.indexOf(":")?(p.split(":").forEach(function(y){h.unshift(parseFloat(y,10))}),p=0,d=1,h.forEach(function(y){p+=y*d,d*=60}),l*p):l*parseFloat(p,10)}function o(c,p){if(isNaN(c))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";return c.toString(10)}function s(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return ls=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o,defaultStyle:"lowercase"}),ls}var us,Xl;function NT(){if(Xl)return us;Xl=1;var e=pn();return us=new e.Schema({include:[qT()],implicit:[CT(),jT(),MT(),DT()]}),us}var ds,Zl;function LT(){if(Zl)return ds;Zl=1;var e=pn();return ds=new e.Schema({include:[NT()]}),ds}var fs,eu;function UT(){if(eu)return fs;eu=1;var e=st(),t=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 r(o){if(o===null)return!1;var s;return s=t.exec(o),s!==null}function n(o){var s,c,p,l,d,h,y,g=0,$=null,x,P,A;if(s=t.exec(o),s===null)throw new Error("Date resolve error");if(c=+s[1],p=+s[2]-1,l=+s[3],!s[4])return new Date(Date.UTC(c,p,l));if(d=+s[4],h=+s[5],y=+s[6],s[7]){for(g=s[7].slice(0,3);g.length<3;)g=g+"0";g=+g}return s[9]&&(x=+s[10],P=+(s[11]||0),$=(x*60+P)*6e4,s[9]==="-"&&($=-$)),A=new Date(Date.UTC(c,p,l,d,h,y,g)),$&&A.setTime(A.getTime()-$),A}function i(o){return o.toISOString()}return fs=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:i}),fs}var ms,tu;function FT(){if(tu)return ms;tu=1;var e=st();function t(r){return r==="<<"||r===null}return ms=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),ms}var hs={},jr={},ru;function zT(){if(ru)return jr;ru=1,jr.byteLength=c,jr.toByteArray=l,jr.fromByteArray=y;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function s(g){var $=g.length;if($%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=g.indexOf("=");x===-1&&(x=$);var P=x===$?0:4-x%4;return[x,P]}function c(g){var $=s(g),x=$[0],P=$[1];return(x+P)*3/4-P}function p(g,$,x){return($+x)*3/4-x}function l(g){var $,x=s(g),P=x[0],A=x[1],S=new r(p(g,P,A)),v=0,O=A>0?P-4:P,b;for(b=0;b<O;b+=4)$=t[g.charCodeAt(b)]<<18|t[g.charCodeAt(b+1)]<<12|t[g.charCodeAt(b+2)]<<6|t[g.charCodeAt(b+3)],S[v++]=$>>16&255,S[v++]=$>>8&255,S[v++]=$&255;return A===2&&($=t[g.charCodeAt(b)]<<2|t[g.charCodeAt(b+1)]>>4,S[v++]=$&255),A===1&&($=t[g.charCodeAt(b)]<<10|t[g.charCodeAt(b+1)]<<4|t[g.charCodeAt(b+2)]>>2,S[v++]=$>>8&255,S[v++]=$&255),S}function d(g){return e[g>>18&63]+e[g>>12&63]+e[g>>6&63]+e[g&63]}function h(g,$,x){for(var P,A=[],S=$;S<x;S+=3)P=(g[S]<<16&16711680)+(g[S+1]<<8&65280)+(g[S+2]&255),A.push(d(P));return A.join("")}function y(g){for(var $,x=g.length,P=x%3,A=[],S=16383,v=0,O=x-P;v<O;v+=S)A.push(h(g,v,v+S>O?O:v+S));return P===1?($=g[x-1],A.push(e[$>>2]+e[$<<4&63]+"==")):P===2&&($=(g[x-2]<<8)+g[x-1],A.push(e[$>>10]+e[$>>4&63]+e[$<<2&63]+"=")),A.join("")}return jr}var Ai={};var nu;function BT(){return nu||(nu=1,Ai.read=function(e,t,r,n,i){var o,s,c=i*8-n-1,p=(1<<c)-1,l=p>>1,d=-7,h=r?i-1:0,y=r?-1:1,g=e[t+h];for(h+=y,o=g&(1<<-d)-1,g>>=-d,d+=c;d>0;o=o*256+e[t+h],h+=y,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=n;d>0;s=s*256+e[t+h],h+=y,d-=8);if(o===0)o=1-l;else{if(o===p)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(g?-1:1)*s*Math.pow(2,o-n)},Ai.write=function(e,t,r,n,i,o){var s,c,p,l=o*8-i-1,d=(1<<l)-1,h=d>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,$=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-s))<1&&(s--,p*=2),s+h>=1?t+=y/p:t+=y*Math.pow(2,1-h),t*p>=2&&(s++,p/=2),s+h>=d?(c=0,s=d):s+h>=1?(c=(t*p-1)*Math.pow(2,i),s=s+h):(c=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+g]=c&255,g+=$,c/=256,i-=8);for(s=s<<i|c,l+=i;l>0;e[r+g]=s&255,g+=$,s/=256,l-=8);e[r+g-$]|=x*128}),Ai}var iu;function VT(){return iu||(iu=1,(function(e){const t=zT(),r=BT(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=S,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,c.TYPED_ARRAY_SUPPORT=o(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const a=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(a,u),a.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function s(a){if(a>i)throw new RangeError('The value "'+a+'" is invalid for option "size"');const u=new Uint8Array(a);return Object.setPrototypeOf(u,c.prototype),u}function c(a,u,f){if(typeof a=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(a)}return p(a,u,f)}c.poolSize=8192;function p(a,u,f){if(typeof a=="string")return y(a,u);if(ArrayBuffer.isView(a))return $(a);if(a==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);if(he(a,ArrayBuffer)||a&&he(a.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(a,SharedArrayBuffer)||a&&he(a.buffer,SharedArrayBuffer)))return x(a,u,f);if(typeof a=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=a.valueOf&&a.valueOf();if(T!=null&&T!==a)return c.from(T,u,f);const N=P(a);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof a[Symbol.toPrimitive]=="function")return c.from(a[Symbol.toPrimitive]("string"),u,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a)}c.from=function(a,u,f){return p(a,u,f)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function l(a){if(typeof a!="number")throw new TypeError('"size" argument must be of type number');if(a<0)throw new RangeError('The value "'+a+'" is invalid for option "size"')}function d(a,u,f){return l(a),a<=0?s(a):u!==void 0?typeof f=="string"?s(a).fill(u,f):s(a).fill(u):s(a)}c.alloc=function(a,u,f){return d(a,u,f)};function h(a){return l(a),s(a<0?0:A(a)|0)}c.allocUnsafe=function(a){return h(a)},c.allocUnsafeSlow=function(a){return h(a)};function y(a,u){if((typeof u!="string"||u==="")&&(u="utf8"),!c.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const f=v(a,u)|0;let T=s(f);const N=T.write(a,u);return N!==f&&(T=T.slice(0,N)),T}function g(a){const u=a.length<0?0:A(a.length)|0,f=s(u);for(let T=0;T<u;T+=1)f[T]=a[T]&255;return f}function $(a){if(he(a,Uint8Array)){const u=new Uint8Array(a);return x(u.buffer,u.byteOffset,u.byteLength)}return g(a)}function x(a,u,f){if(u<0||a.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(a.byteLength<u+(f||0))throw new RangeError('"length" is outside of buffer bounds');let T;return u===void 0&&f===void 0?T=new Uint8Array(a):f===void 0?T=new Uint8Array(a,u):T=new Uint8Array(a,u,f),Object.setPrototypeOf(T,c.prototype),T}function P(a){if(c.isBuffer(a)){const u=A(a.length)|0,f=s(u);return f.length===0||a.copy(f,0,0,u),f}if(a.length!==void 0)return typeof a.length!="number"||ye(a.length)?s(0):g(a);if(a.type==="Buffer"&&Array.isArray(a.data))return g(a.data)}function A(a){if(a>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return a|0}function S(a){return+a!=a&&(a=0),c.alloc(+a)}c.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==c.prototype},c.compare=function(u,f){if(he(u,Uint8Array)&&(u=c.from(u,u.offset,u.byteLength)),he(f,Uint8Array)&&(f=c.from(f,f.offset,f.byteLength)),!c.isBuffer(u)||!c.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===f)return 0;let T=u.length,N=f.length;for(let L=0,B=Math.min(T,N);L<B;++L)if(u[L]!==f[L]){T=u[L],N=f[L];break}return T<N?-1:N<T?1:0},c.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(u,f){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);let T;if(f===void 0)for(f=0,T=0;T<u.length;++T)f+=u[T].length;const N=c.allocUnsafe(f);let L=0;for(T=0;T<u.length;++T){let B=u[T];if(he(B,Uint8Array))L+B.length>N.length?(c.isBuffer(B)||(B=c.from(B)),B.copy(N,L)):Uint8Array.prototype.set.call(N,B,L);else if(c.isBuffer(B))B.copy(N,L);else throw new TypeError('"list" argument must be an Array of Buffers');L+=B.length}return N};function v(a,u){if(c.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||he(a,ArrayBuffer))return a.byteLength;if(typeof a!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof a);const f=a.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&f===0)return 0;let N=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return F(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return ae(a).length;default:if(N)return T?-1:F(a).length;u=(""+u).toLowerCase(),N=!0}}c.byteLength=v;function O(a,u,f){let T=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,u>>>=0,f<=u))return"";for(a||(a="utf8");;)switch(a){case"hex":return qe(this,u,f);case"utf8":case"utf-8":return ie(this,u,f);case"ascii":return Le(this,u,f);case"latin1":case"binary":return Se(this,u,f);case"base64":return ee(this,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,u,f);default:if(T)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),T=!0}}c.prototype._isBuffer=!0;function b(a,u,f){const T=a[u];a[u]=a[f],a[f]=T}c.prototype.swap16=function(){const u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<u;f+=2)b(this,f,f+1);return this},c.prototype.swap32=function(){const u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<u;f+=4)b(this,f,f+3),b(this,f+1,f+2);return this},c.prototype.swap64=function(){const u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<u;f+=8)b(this,f,f+7),b(this,f+1,f+6),b(this,f+2,f+5),b(this,f+3,f+4);return this},c.prototype.toString=function(){const u=this.length;return u===0?"":arguments.length===0?ie(this,0,u):O.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(u){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:c.compare(this,u)===0},c.prototype.inspect=function(){let u="";const f=e.INSPECT_MAX_BYTES;return u=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(u+=" ... "),"<Buffer "+u+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(u,f,T,N,L){if(he(u,Uint8Array)&&(u=c.from(u,u.offset,u.byteLength)),!c.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(f===void 0&&(f=0),T===void 0&&(T=u?u.length:0),N===void 0&&(N=0),L===void 0&&(L=this.length),f<0||T>u.length||N<0||L>this.length)throw new RangeError("out of range index");if(N>=L&&f>=T)return 0;if(N>=L)return-1;if(f>=T)return 1;if(f>>>=0,T>>>=0,N>>>=0,L>>>=0,this===u)return 0;let B=L-N,se=T-f;const le=Math.min(B,se),Re=this.slice(N,L),fe=u.slice(f,T);for(let xe=0;xe<le;++xe)if(Re[xe]!==fe[xe]){B=Re[xe],se=fe[xe];break}return B<se?-1:se<B?1:0};function k(a,u,f,T,N){if(a.length===0)return-1;if(typeof f=="string"?(T=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,ye(f)&&(f=N?0:a.length-1),f<0&&(f=a.length+f),f>=a.length){if(N)return-1;f=a.length-1}else if(f<0)if(N)f=0;else return-1;if(typeof u=="string"&&(u=c.from(u,T)),c.isBuffer(u))return u.length===0?-1:M(a,u,f,T,N);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(a,u,f):Uint8Array.prototype.lastIndexOf.call(a,u,f):M(a,[u],f,T,N);throw new TypeError("val must be string, number or Buffer")}function M(a,u,f,T,N){let L=1,B=a.length,se=u.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(a.length<2||u.length<2)return-1;L=2,B/=2,se/=2,f/=2}function le(fe,xe){return L===1?fe[xe]:fe.readUInt16BE(xe*L)}let Re;if(N){let fe=-1;for(Re=f;Re<B;Re++)if(le(a,Re)===le(u,fe===-1?0:Re-fe)){if(fe===-1&&(fe=Re),Re-fe+1===se)return fe*L}else fe!==-1&&(Re-=Re-fe),fe=-1}else for(f+se>B&&(f=B-se),Re=f;Re>=0;Re--){let fe=!0;for(let xe=0;xe<se;xe++)if(le(a,Re+xe)!==le(u,xe)){fe=!1;break}if(fe)return Re}return-1}c.prototype.includes=function(u,f,T){return this.indexOf(u,f,T)!==-1},c.prototype.indexOf=function(u,f,T){return k(this,u,f,T,!0)},c.prototype.lastIndexOf=function(u,f,T){return k(this,u,f,T,!1)};function H(a,u,f,T){f=Number(f)||0;const N=a.length-f;T?(T=Number(T),T>N&&(T=N)):T=N;const L=u.length;T>L/2&&(T=L/2);let B;for(B=0;B<T;++B){const se=parseInt(u.substr(B*2,2),16);if(ye(se))return B;a[f+B]=se}return B}function G(a,u,f,T){return ce(F(u,a.length-f),a,f,T)}function Z(a,u,f,T){return ce(X(u),a,f,T)}function te(a,u,f,T){return ce(ae(u),a,f,T)}function de(a,u,f,T){return ce(pe(u,a.length-f),a,f,T)}c.prototype.write=function(u,f,T,N){if(f===void 0)N="utf8",T=this.length,f=0;else if(T===void 0&&typeof f=="string")N=f,T=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(T)?(T=T>>>0,N===void 0&&(N="utf8")):(N=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const L=this.length-f;if((T===void 0||T>L)&&(T=L),u.length>0&&(T<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let B=!1;for(;;)switch(N){case"hex":return H(this,u,f,T);case"utf8":case"utf-8":return G(this,u,f,T);case"ascii":case"latin1":case"binary":return Z(this,u,f,T);case"base64":return te(this,u,f,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,u,f,T);default:if(B)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),B=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(a,u,f){return u===0&&f===a.length?t.fromByteArray(a):t.fromByteArray(a.slice(u,f))}function ie(a,u,f){f=Math.min(a.length,f);const T=[];let N=u;for(;N<f;){const L=a[N];let B=null,se=L>239?4:L>223?3:L>191?2:1;if(N+se<=f){let le,Re,fe,xe;switch(se){case 1:L<128&&(B=L);break;case 2:le=a[N+1],(le&192)===128&&(xe=(L&31)<<6|le&63,xe>127&&(B=xe));break;case 3:le=a[N+1],Re=a[N+2],(le&192)===128&&(Re&192)===128&&(xe=(L&15)<<12|(le&63)<<6|Re&63,xe>2047&&(xe<55296||xe>57343)&&(B=xe));break;case 4:le=a[N+1],Re=a[N+2],fe=a[N+3],(le&192)===128&&(Re&192)===128&&(fe&192)===128&&(xe=(L&15)<<18|(le&63)<<12|(Re&63)<<6|fe&63,xe>65535&&xe<1114112&&(B=xe))}}B===null?(B=65533,se=1):B>65535&&(B-=65536,T.push(B>>>10&1023|55296),B=56320|B&1023),T.push(B),N+=se}return Ie(T)}const Pe=4096;function Ie(a){const u=a.length;if(u<=Pe)return String.fromCharCode.apply(String,a);let f="",T=0;for(;T<u;)f+=String.fromCharCode.apply(String,a.slice(T,T+=Pe));return f}function Le(a,u,f){let T="";f=Math.min(a.length,f);for(let N=u;N<f;++N)T+=String.fromCharCode(a[N]&127);return T}function Se(a,u,f){let T="";f=Math.min(a.length,f);for(let N=u;N<f;++N)T+=String.fromCharCode(a[N]);return T}function qe(a,u,f){const T=a.length;(!u||u<0)&&(u=0),(!f||f<0||f>T)&&(f=T);let N="";for(let L=u;L<f;++L)N+=ge[a[L]];return N}function _(a,u,f){const T=a.slice(u,f);let N="";for(let L=0;L<T.length-1;L+=2)N+=String.fromCharCode(T[L]+T[L+1]*256);return N}c.prototype.slice=function(u,f){const T=this.length;u=~~u,f=f===void 0?T:~~f,u<0?(u+=T,u<0&&(u=0)):u>T&&(u=T),f<0?(f+=T,f<0&&(f=0)):f>T&&(f=T),f<u&&(f=u);const N=this.subarray(u,f);return Object.setPrototypeOf(N,c.prototype),N};function R(a,u,f){if(a%1!==0||a<0)throw new RangeError("offset is not uint");if(a+u>f)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(u,f,T){u=u>>>0,f=f>>>0,T||R(u,f,this.length);let N=this[u],L=1,B=0;for(;++B<f&&(L*=256);)N+=this[u+B]*L;return N},c.prototype.readUintBE=c.prototype.readUIntBE=function(u,f,T){u=u>>>0,f=f>>>0,T||R(u,f,this.length);let N=this[u+--f],L=1;for(;f>0&&(L*=256);)N+=this[u+--f]*L;return N},c.prototype.readUint8=c.prototype.readUInt8=function(u,f){return u=u>>>0,f||R(u,1,this.length),this[u]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(u,f){return u=u>>>0,f||R(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(u,f){return u=u>>>0,f||R(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(u,f){return u=u>>>0,f||R(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(u,f){return u=u>>>0,f||R(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readBigUInt64LE=Ee(function(u){u=u>>>0,J(u,"offset");const f=this[u],T=this[u+7];(f===void 0||T===void 0)&&oe(u,this.length-8);const N=f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,L=this[++u]+this[++u]*2**8+this[++u]*2**16+T*2**24;return BigInt(N)+(BigInt(L)<<BigInt(32))}),c.prototype.readBigUInt64BE=Ee(function(u){u=u>>>0,J(u,"offset");const f=this[u],T=this[u+7];(f===void 0||T===void 0)&&oe(u,this.length-8);const N=f*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],L=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+T;return(BigInt(N)<<BigInt(32))+BigInt(L)}),c.prototype.readIntLE=function(u,f,T){u=u>>>0,f=f>>>0,T||R(u,f,this.length);let N=this[u],L=1,B=0;for(;++B<f&&(L*=256);)N+=this[u+B]*L;return L*=128,N>=L&&(N-=Math.pow(2,8*f)),N},c.prototype.readIntBE=function(u,f,T){u=u>>>0,f=f>>>0,T||R(u,f,this.length);let N=f,L=1,B=this[u+--N];for(;N>0&&(L*=256);)B+=this[u+--N]*L;return L*=128,B>=L&&(B-=Math.pow(2,8*f)),B},c.prototype.readInt8=function(u,f){return u=u>>>0,f||R(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,f){u=u>>>0,f||R(u,2,this.length);const T=this[u]|this[u+1]<<8;return T&32768?T|4294901760:T},c.prototype.readInt16BE=function(u,f){u=u>>>0,f||R(u,2,this.length);const T=this[u+1]|this[u]<<8;return T&32768?T|4294901760:T},c.prototype.readInt32LE=function(u,f){return u=u>>>0,f||R(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,f){return u=u>>>0,f||R(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readBigInt64LE=Ee(function(u){u=u>>>0,J(u,"offset");const f=this[u],T=this[u+7];(f===void 0||T===void 0)&&oe(u,this.length-8);const N=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(T<<24);return(BigInt(N)<<BigInt(32))+BigInt(f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),c.prototype.readBigInt64BE=Ee(function(u){u=u>>>0,J(u,"offset");const f=this[u],T=this[u+7];(f===void 0||T===void 0)&&oe(u,this.length-8);const N=(f<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(N)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+T)}),c.prototype.readFloatLE=function(u,f){return u=u>>>0,f||R(u,4,this.length),r.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,f){return u=u>>>0,f||R(u,4,this.length),r.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,f){return u=u>>>0,f||R(u,8,this.length),r.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,f){return u=u>>>0,f||R(u,8,this.length),r.read(this,u,!1,52,8)};function C(a,u,f,T,N,L){if(!c.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>N||u<L)throw new RangeError('"value" argument is out of bounds');if(f+T>a.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(u,f,T,N){if(u=+u,f=f>>>0,T=T>>>0,!N){const se=Math.pow(2,8*T)-1;C(this,u,f,T,se,0)}let L=1,B=0;for(this[f]=u&255;++B<T&&(L*=256);)this[f+B]=u/L&255;return f+T},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(u,f,T,N){if(u=+u,f=f>>>0,T=T>>>0,!N){const se=Math.pow(2,8*T)-1;C(this,u,f,T,se,0)}let L=T-1,B=1;for(this[f+L]=u&255;--L>=0&&(B*=256);)this[f+L]=u/B&255;return f+T},c.prototype.writeUint8=c.prototype.writeUInt8=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,1,255,0),this[f]=u&255,f+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,2,65535,0),this[f]=u&255,this[f+1]=u>>>8,f+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,2,65535,0),this[f]=u>>>8,this[f+1]=u&255,f+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,4,4294967295,0),this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255,f+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,4,4294967295,0),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4};function q(a,u,f,T,N){W(u,T,N,a,f,7);let L=Number(u&BigInt(4294967295));a[f++]=L,L=L>>8,a[f++]=L,L=L>>8,a[f++]=L,L=L>>8,a[f++]=L;let B=Number(u>>BigInt(32)&BigInt(4294967295));return a[f++]=B,B=B>>8,a[f++]=B,B=B>>8,a[f++]=B,B=B>>8,a[f++]=B,f}function w(a,u,f,T,N){W(u,T,N,a,f,7);let L=Number(u&BigInt(4294967295));a[f+7]=L,L=L>>8,a[f+6]=L,L=L>>8,a[f+5]=L,L=L>>8,a[f+4]=L;let B=Number(u>>BigInt(32)&BigInt(4294967295));return a[f+3]=B,B=B>>8,a[f+2]=B,B=B>>8,a[f+1]=B,B=B>>8,a[f]=B,f+8}c.prototype.writeBigUInt64LE=Ee(function(u,f=0){return q(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Ee(function(u,f=0){return w(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(u,f,T,N){if(u=+u,f=f>>>0,!N){const le=Math.pow(2,8*T-1);C(this,u,f,T,le-1,-le)}let L=0,B=1,se=0;for(this[f]=u&255;++L<T&&(B*=256);)u<0&&se===0&&this[f+L-1]!==0&&(se=1),this[f+L]=(u/B>>0)-se&255;return f+T},c.prototype.writeIntBE=function(u,f,T,N){if(u=+u,f=f>>>0,!N){const le=Math.pow(2,8*T-1);C(this,u,f,T,le-1,-le)}let L=T-1,B=1,se=0;for(this[f+L]=u&255;--L>=0&&(B*=256);)u<0&&se===0&&this[f+L+1]!==0&&(se=1),this[f+L]=(u/B>>0)-se&255;return f+T},c.prototype.writeInt8=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,1,127,-128),u<0&&(u=255+u+1),this[f]=u&255,f+1},c.prototype.writeInt16LE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,2,32767,-32768),this[f]=u&255,this[f+1]=u>>>8,f+2},c.prototype.writeInt16BE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,2,32767,-32768),this[f]=u>>>8,this[f+1]=u&255,f+2},c.prototype.writeInt32LE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,4,2147483647,-2147483648),this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24,f+4},c.prototype.writeInt32BE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4},c.prototype.writeBigInt64LE=Ee(function(u,f=0){return q(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Ee(function(u,f=0){return w(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function D(a,u,f,T,N,L){if(f+T>a.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function K(a,u,f,T,N){return u=+u,f=f>>>0,N||D(a,u,f,4),r.write(a,u,f,T,23,4),f+4}c.prototype.writeFloatLE=function(u,f,T){return K(this,u,f,!0,T)},c.prototype.writeFloatBE=function(u,f,T){return K(this,u,f,!1,T)};function V(a,u,f,T,N){return u=+u,f=f>>>0,N||D(a,u,f,8),r.write(a,u,f,T,52,8),f+8}c.prototype.writeDoubleLE=function(u,f,T){return V(this,u,f,!0,T)},c.prototype.writeDoubleBE=function(u,f,T){return V(this,u,f,!1,T)},c.prototype.copy=function(u,f,T,N){if(!c.isBuffer(u))throw new TypeError("argument should be a Buffer");if(T||(T=0),!N&&N!==0&&(N=this.length),f>=u.length&&(f=u.length),f||(f=0),N>0&&N<T&&(N=T),N===T||u.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),u.length-f<N-T&&(N=u.length-f+T);const L=N-T;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,T,N):Uint8Array.prototype.set.call(u,this.subarray(T,N),f),L},c.prototype.fill=function(u,f,T,N){if(typeof u=="string"){if(typeof f=="string"?(N=f,f=0,T=this.length):typeof T=="string"&&(N=T,T=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!c.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(u.length===1){const B=u.charCodeAt(0);(N==="utf8"&&B<128||N==="latin1")&&(u=B)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(f<0||this.length<f||this.length<T)throw new RangeError("Out of range index");if(T<=f)return this;f=f>>>0,T=T===void 0?this.length:T>>>0,u||(u=0);let L;if(typeof u=="number")for(L=f;L<T;++L)this[L]=u;else{const B=c.isBuffer(u)?u:c.from(u,N),se=B.length;if(se===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(L=0;L<T-f;++L)this[L+f]=B[L%se]}return this};const re={};function we(a,u,f){re[a]=class extends f{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${a}]`,this.stack,delete this.name}get code(){return a}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${a}]: ${this.message}`}}}we("ERR_BUFFER_OUT_OF_BOUNDS",function(a){return a?`${a} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),we("ERR_INVALID_ARG_TYPE",function(a,u){return`The "${a}" argument must be of type number. Received type ${typeof u}`},TypeError),we("ERR_OUT_OF_RANGE",function(a,u,f){let T=`The value of "${a}" is out of range.`,N=f;return Number.isInteger(f)&&Math.abs(f)>2**32?N=$e(String(f)):typeof f=="bigint"&&(N=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(N=$e(N)),N+="n"),T+=` It must be ${u}. Received ${N}`,T},RangeError);function $e(a){let u="",f=a.length;const T=a[0]==="-"?1:0;for(;f>=T+4;f-=3)u=`_${a.slice(f-3,f)}${u}`;return`${a.slice(0,f)}${u}`}function z(a,u,f){J(u,"offset"),(a[u]===void 0||a[u+f]===void 0)&&oe(u,a.length-(f+1))}function W(a,u,f,T,N,L){if(a>f||a<u){const B=typeof u=="bigint"?"n":"";let se;throw u===0||u===BigInt(0)?se=`>= 0${B} and < 2${B} ** ${(L+1)*8}${B}`:se=`>= -(2${B} ** ${(L+1)*8-1}${B}) and < 2 ** ${(L+1)*8-1}${B}`,new re.ERR_OUT_OF_RANGE("value",se,a)}z(T,N,L)}function J(a,u){if(typeof a!="number")throw new re.ERR_INVALID_ARG_TYPE(u,"number",a)}function oe(a,u,f){throw Math.floor(a)!==a?(J(a,f),new re.ERR_OUT_OF_RANGE("offset","an integer",a)):u<0?new re.ERR_BUFFER_OUT_OF_BOUNDS:new re.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,a)}const me=/[^+/0-9A-Za-z-_]/g;function Ae(a){if(a=a.split("=")[0],a=a.trim().replace(me,""),a.length<2)return"";for(;a.length%4!==0;)a=a+"=";return a}function F(a,u){u=u||1/0;let f;const T=a.length;let N=null;const L=[];for(let B=0;B<T;++B){if(f=a.charCodeAt(B),f>55295&&f<57344){if(!N){if(f>56319){(u-=3)>-1&&L.push(239,191,189);continue}else if(B+1===T){(u-=3)>-1&&L.push(239,191,189);continue}N=f;continue}if(f<56320){(u-=3)>-1&&L.push(239,191,189),N=f;continue}f=(N-55296<<10|f-56320)+65536}else N&&(u-=3)>-1&&L.push(239,191,189);if(N=null,f<128){if((u-=1)<0)break;L.push(f)}else if(f<2048){if((u-=2)<0)break;L.push(f>>6|192,f&63|128)}else if(f<65536){if((u-=3)<0)break;L.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((u-=4)<0)break;L.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return L}function X(a){const u=[];for(let f=0;f<a.length;++f)u.push(a.charCodeAt(f)&255);return u}function pe(a,u){let f,T,N;const L=[];for(let B=0;B<a.length&&!((u-=2)<0);++B)f=a.charCodeAt(B),T=f>>8,N=f%256,L.push(N),L.push(T);return L}function ae(a){return t.toByteArray(Ae(a))}function ce(a,u,f,T){let N;for(N=0;N<T&&!(N+f>=u.length||N>=a.length);++N)u[N+f]=a[N];return N}function he(a,u){return a instanceof u||a!=null&&a.constructor!=null&&a.constructor.name!=null&&a.constructor.name===u.name}function ye(a){return a!==a}const ge=(function(){const a="0123456789abcdef",u=new Array(256);for(let f=0;f<16;++f){const T=f*16;for(let N=0;N<16;++N)u[T+N]=a[f]+a[N]}return u})();function Ee(a){return typeof BigInt>"u"?Qe:a}function Qe(){throw new Error("BigInt not supported")}})(hs)),hs}var ys,ou;function HT(){if(ou)return ys;ou=1;var e=VT().Buffer,t=st(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
41
|
-
\r`;function n(c){if(c===null)return!1;var p,l,d=0,h=c.length,y=r;for(l=0;l<h;l++)if(p=y.indexOf(c.charAt(l)),!(p>64)){if(p<0)return!1;d+=6}return d%8===0}function i(c){var p,l,d=c.replace(/[\r\n=]/g,""),h=d.length,y=r,g=0,$=[];for(p=0;p<h;p++)p%4===0&&p&&($.push(g>>16&255),$.push(g>>8&255),$.push(g&255)),g=g<<6|y.indexOf(d.charAt(p));return l=h%4*6,l===0?($.push(g>>16&255),$.push(g>>8&255),$.push(g&255)):l===18?($.push(g>>10&255),$.push(g>>2&255)):l===12&&$.push(g>>4&255),e?new e($):$}function o(c){var p="",l=0,d,h,y=c.length,g=r;for(d=0;d<y;d++)d%3===0&&d&&(p+=g[l>>18&63],p+=g[l>>12&63],p+=g[l>>6&63],p+=g[l&63]),l=(l<<8)+c[d];return h=y%3,h===0?(p+=g[l>>18&63],p+=g[l>>12&63],p+=g[l>>6&63],p+=g[l&63]):h===2?(p+=g[l>>10&63],p+=g[l>>4&63],p+=g[l<<2&63],p+=g[64]):h===1&&(p+=g[l>>2&63],p+=g[l<<4&63],p+=g[64],p+=g[64]),p}function s(c){return e&&e.isBuffer(c)}return
|
|
40
|
+
`+i)),o},r})();return Xo=t,Xo}var Si={},Pi={},Ll;function st(){if(Ll)return Pi;Ll=1,Object.defineProperty(Pi,"__esModule",{value:!0});var e=an(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(o){var s={};return o!==null&&Object.keys(o).forEach(function(c){o[c].forEach(function(p){s[String(p)]=c})}),s}var i=(function(){function o(s,c){if(c=c||{},Object.keys(c).forEach(function(p){if(t.indexOf(p)===-1)throw new e('Unknown option "'+p+'" is met in definition of "'+s+'" YAML type.')}),this.tag=s,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(p){return p},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.defaultStyle=c.defaultStyle||null,this.styleAliases=n(c.styleAliases||null),r.indexOf(this.kind)===-1)throw new e('Unknown kind "'+this.kind+'" is specified for "'+s+'" YAML type.')}return o})();return Pi.Type=i,Pi}var Ul;function cn(){if(Ul)return Si;Ul=1,Object.defineProperty(Si,"__esModule",{value:!0});var e=Er(),t=an(),r=st();function n(s,c,p){var l=[];return s.include.forEach(function(d){p=n(d,c,p)}),s[c].forEach(function(d){p.forEach(function(h,y){h.tag===d.tag&&l.push(y)}),p.push(d)}),p.filter(function(d,h){return l.indexOf(h)===-1})}function i(){var s={},c,p;function l(d){s[d.tag]=d}for(c=0,p=arguments.length;c<p;c+=1)arguments[c].forEach(l);return s}var o=(function(){function s(c){this.include=c.include||[],this.implicit=c.implicit||[],this.explicit=c.explicit||[],this.implicit.forEach(function(p){if(p.loadKind&&p.loadKind!=="scalar")throw new t("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=n(this,"implicit",[]),this.compiledExplicit=n(this,"explicit",[]),this.compiledTypeMap=i(this.compiledImplicit,this.compiledExplicit)}return s.DEFAULT=null,s.create=function(){var p,l;switch(arguments.length){case 1:p=s.DEFAULT,l=arguments[0];break;case 2:p=arguments[0],l=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(p=e.toArray(p),l=e.toArray(l),!p.every(function(d){return d instanceof s}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!l.every(function(d){return d instanceof r.Type}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new s({include:p,explicit:l})},s})();return Si.Schema=o,Si}var Zo,Fl;function CT(){if(Fl)return Zo;Fl=1;var e=st();return Zo=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),Zo}var es,zl;function jT(){if(zl)return es;zl=1;var e=st();return es=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),es}var ts,Bl;function MT(){if(Bl)return ts;Bl=1;var e=st();return ts=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),ts}var rs,Vl;function DT(){if(Vl)return rs;Vl=1;var e=cn();return rs=new e.Schema({explicit:[CT(),jT(),MT()]}),rs}var ns,Hl;function NT(){if(Hl)return ns;Hl=1;var e=st();function t(i){if(i===null)return!0;var o=i.length;return o===1&&i==="~"||o===4&&(i==="null"||i==="Null"||i==="NULL")}function r(){return null}function n(i){return i===null}return ns=new e.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"}),ns}var is,Kl;function LT(){if(Kl)return is;Kl=1;var e=st();function t(i){if(i===null)return!1;var o=i.length;return o===4&&(i==="true"||i==="True"||i==="TRUE")||o===5&&(i==="false"||i==="False"||i==="FALSE")}function r(i){return i==="true"||i==="True"||i==="TRUE"}function n(i){return Object.prototype.toString.call(i)==="[object Boolean]"}return is=new e.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:t,construct:r,predicate:n,represent:{lowercase:function(i){return i?"true":"false"},uppercase:function(i){return i?"TRUE":"FALSE"},camelcase:function(i){return i?"True":"False"}},defaultStyle:"lowercase"}),is}var os,Wl;function UT(){if(Wl)return os;Wl=1;var e=Er(),t=st();function r(p){return 48<=p&&p<=57||65<=p&&p<=70||97<=p&&p<=102}function n(p){return 48<=p&&p<=55}function i(p){return 48<=p&&p<=57}function o(p){if(p===null)return!1;var l=p.length,d=0,h=!1,y;if(!l)return!1;if(y=p[d],(y==="-"||y==="+")&&(y=p[++d]),y==="0"){if(d+1===l)return!0;if(y=p[++d],y==="b"){for(d++;d<l;d++)if(y=p[d],y!=="_"){if(y!=="0"&&y!=="1")return!1;h=!0}return h}if(y==="x"){for(d++;d<l;d++)if(y=p[d],y!=="_"){if(!r(p.charCodeAt(d)))return!1;h=!0}return h}for(;d<l;d++)if(y=p[d],y!=="_"){if(!n(p.charCodeAt(d)))return!1;h=!0}return h}for(;d<l;d++)if(y=p[d],y!=="_"){if(y===":")break;if(!i(p.charCodeAt(d)))return!1;h=!0}return h?y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(p.slice(d)):!1}function s(p){var l=p,d=1,h,y,g=[];return l.indexOf("_")!==-1&&(l=l.replace(/_/g,"")),h=l[0],(h==="-"||h==="+")&&(h==="-"&&(d=-1),l=l.slice(1),h=l[0]),l==="0"?0:h==="0"?l[1]==="b"?d*parseInt(l.slice(2),2):l[1]==="x"?d*parseInt(l,16):d*parseInt(l,8):l.indexOf(":")!==-1?(l.split(":").forEach(function($){g.unshift(parseInt($,10))}),l=0,y=1,g.forEach(function($){l+=$*y,y*=60}),d*l):d*parseInt(l,10)}function c(p){return Object.prototype.toString.call(p)==="[object Number]"&&p%1===0&&!e.isNegativeZero(p)}return os=new t.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:s,predicate:c,represent:{binary:function(p){return"0b"+p.toString(2)},octal:function(p){return"0"+p.toString(8)},decimal:function(p){return p.toString(10)},hexadecimal:function(p){return"0x"+p.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),os}var ss,Ql;function FT(){if(Ql)return ss;Ql=1;var e=Er(),t=st(),r=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 n(c){return!(c===null||!r.test(c))}function i(c){var p,l,d,h;return p=c.replace(/_/g,"").toLowerCase(),l=p[0]==="-"?-1:1,h=[],0<="+-".indexOf(p[0])&&(p=p.slice(1)),p===".inf"?l===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:0<=p.indexOf(":")?(p.split(":").forEach(function(y){h.unshift(parseFloat(y,10))}),p=0,d=1,h.forEach(function(y){p+=y*d,d*=60}),l*p):l*parseFloat(p,10)}function o(c,p){if(isNaN(c))switch(p){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===c)switch(p){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===c)switch(p){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(e.isNegativeZero(c))return"-0.0";return c.toString(10)}function s(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return ss=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o,defaultStyle:"lowercase"}),ss}var as,Gl;function zT(){if(Gl)return as;Gl=1;var e=cn();return as=new e.Schema({include:[DT()],implicit:[NT(),LT(),UT(),FT()]}),as}var cs,Yl;function BT(){if(Yl)return cs;Yl=1;var e=cn();return cs=new e.Schema({include:[zT()]}),cs}var ps,Jl;function VT(){if(Jl)return ps;Jl=1;var e=st(),t=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 r(o){if(o===null)return!1;var s;return s=t.exec(o),s!==null}function n(o){var s,c,p,l,d,h,y,g=0,$=null,x,P,A;if(s=t.exec(o),s===null)throw new Error("Date resolve error");if(c=+s[1],p=+s[2]-1,l=+s[3],!s[4])return new Date(Date.UTC(c,p,l));if(d=+s[4],h=+s[5],y=+s[6],s[7]){for(g=s[7].slice(0,3);g.length<3;)g=g+"0";g=+g}return s[9]&&(x=+s[10],P=+(s[11]||0),$=(x*60+P)*6e4,s[9]==="-"&&($=-$)),A=new Date(Date.UTC(c,p,l,d,h,y,g)),$&&A.setTime(A.getTime()-$),A}function i(o){return o.toISOString()}return ps=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:i}),ps}var ls,Xl;function HT(){if(Xl)return ls;Xl=1;var e=st();function t(r){return r==="<<"||r===null}return ls=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),ls}var us={},jr={},Zl;function KT(){if(Zl)return jr;Zl=1,jr.byteLength=c,jr.toByteArray=l,jr.fromByteArray=y;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function s(g){var $=g.length;if($%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var x=g.indexOf("=");x===-1&&(x=$);var P=x===$?0:4-x%4;return[x,P]}function c(g){var $=s(g),x=$[0],P=$[1];return(x+P)*3/4-P}function p(g,$,x){return($+x)*3/4-x}function l(g){var $,x=s(g),P=x[0],A=x[1],S=new r(p(g,P,A)),v=0,O=A>0?P-4:P,b;for(b=0;b<O;b+=4)$=t[g.charCodeAt(b)]<<18|t[g.charCodeAt(b+1)]<<12|t[g.charCodeAt(b+2)]<<6|t[g.charCodeAt(b+3)],S[v++]=$>>16&255,S[v++]=$>>8&255,S[v++]=$&255;return A===2&&($=t[g.charCodeAt(b)]<<2|t[g.charCodeAt(b+1)]>>4,S[v++]=$&255),A===1&&($=t[g.charCodeAt(b)]<<10|t[g.charCodeAt(b+1)]<<4|t[g.charCodeAt(b+2)]>>2,S[v++]=$>>8&255,S[v++]=$&255),S}function d(g){return e[g>>18&63]+e[g>>12&63]+e[g>>6&63]+e[g&63]}function h(g,$,x){for(var P,A=[],S=$;S<x;S+=3)P=(g[S]<<16&16711680)+(g[S+1]<<8&65280)+(g[S+2]&255),A.push(d(P));return A.join("")}function y(g){for(var $,x=g.length,P=x%3,A=[],S=16383,v=0,O=x-P;v<O;v+=S)A.push(h(g,v,v+S>O?O:v+S));return P===1?($=g[x-1],A.push(e[$>>2]+e[$<<4&63]+"==")):P===2&&($=(g[x-2]<<8)+g[x-1],A.push(e[$>>10]+e[$>>4&63]+e[$<<2&63]+"=")),A.join("")}return jr}var $i={};var eu;function WT(){return eu||(eu=1,$i.read=function(e,t,r,n,i){var o,s,c=i*8-n-1,p=(1<<c)-1,l=p>>1,d=-7,h=r?i-1:0,y=r?-1:1,g=e[t+h];for(h+=y,o=g&(1<<-d)-1,g>>=-d,d+=c;d>0;o=o*256+e[t+h],h+=y,d-=8);for(s=o&(1<<-d)-1,o>>=-d,d+=n;d>0;s=s*256+e[t+h],h+=y,d-=8);if(o===0)o=1-l;else{if(o===p)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-l}return(g?-1:1)*s*Math.pow(2,o-n)},$i.write=function(e,t,r,n,i,o){var s,c,p,l=o*8-i-1,d=(1<<l)-1,h=d>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,$=n?1:-1,x=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,s=d):(s=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-s))<1&&(s--,p*=2),s+h>=1?t+=y/p:t+=y*Math.pow(2,1-h),t*p>=2&&(s++,p/=2),s+h>=d?(c=0,s=d):s+h>=1?(c=(t*p-1)*Math.pow(2,i),s=s+h):(c=t*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;e[r+g]=c&255,g+=$,c/=256,i-=8);for(s=s<<i|c,l+=i;l>0;e[r+g]=s&255,g+=$,s/=256,l-=8);e[r+g-$]|=x*128}),$i}var tu;function QT(){return tu||(tu=1,(function(e){const t=KT(),r=WT(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=S,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,c.TYPED_ARRAY_SUPPORT=o(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{const a=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(a,u),a.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function s(a){if(a>i)throw new RangeError('The value "'+a+'" is invalid for option "size"');const u=new Uint8Array(a);return Object.setPrototypeOf(u,c.prototype),u}function c(a,u,f){if(typeof a=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return h(a)}return p(a,u,f)}c.poolSize=8192;function p(a,u,f){if(typeof a=="string")return y(a,u);if(ArrayBuffer.isView(a))return $(a);if(a==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a);if(he(a,ArrayBuffer)||a&&he(a.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(he(a,SharedArrayBuffer)||a&&he(a.buffer,SharedArrayBuffer)))return x(a,u,f);if(typeof a=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const T=a.valueOf&&a.valueOf();if(T!=null&&T!==a)return c.from(T,u,f);const N=P(a);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof a[Symbol.toPrimitive]=="function")return c.from(a[Symbol.toPrimitive]("string"),u,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof a)}c.from=function(a,u,f){return p(a,u,f)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function l(a){if(typeof a!="number")throw new TypeError('"size" argument must be of type number');if(a<0)throw new RangeError('The value "'+a+'" is invalid for option "size"')}function d(a,u,f){return l(a),a<=0?s(a):u!==void 0?typeof f=="string"?s(a).fill(u,f):s(a).fill(u):s(a)}c.alloc=function(a,u,f){return d(a,u,f)};function h(a){return l(a),s(a<0?0:A(a)|0)}c.allocUnsafe=function(a){return h(a)},c.allocUnsafeSlow=function(a){return h(a)};function y(a,u){if((typeof u!="string"||u==="")&&(u="utf8"),!c.isEncoding(u))throw new TypeError("Unknown encoding: "+u);const f=v(a,u)|0;let T=s(f);const N=T.write(a,u);return N!==f&&(T=T.slice(0,N)),T}function g(a){const u=a.length<0?0:A(a.length)|0,f=s(u);for(let T=0;T<u;T+=1)f[T]=a[T]&255;return f}function $(a){if(he(a,Uint8Array)){const u=new Uint8Array(a);return x(u.buffer,u.byteOffset,u.byteLength)}return g(a)}function x(a,u,f){if(u<0||a.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(a.byteLength<u+(f||0))throw new RangeError('"length" is outside of buffer bounds');let T;return u===void 0&&f===void 0?T=new Uint8Array(a):f===void 0?T=new Uint8Array(a,u):T=new Uint8Array(a,u,f),Object.setPrototypeOf(T,c.prototype),T}function P(a){if(c.isBuffer(a)){const u=A(a.length)|0,f=s(u);return f.length===0||a.copy(f,0,0,u),f}if(a.length!==void 0)return typeof a.length!="number"||ye(a.length)?s(0):g(a);if(a.type==="Buffer"&&Array.isArray(a.data))return g(a.data)}function A(a){if(a>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return a|0}function S(a){return+a!=a&&(a=0),c.alloc(+a)}c.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==c.prototype},c.compare=function(u,f){if(he(u,Uint8Array)&&(u=c.from(u,u.offset,u.byteLength)),he(f,Uint8Array)&&(f=c.from(f,f.offset,f.byteLength)),!c.isBuffer(u)||!c.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===f)return 0;let T=u.length,N=f.length;for(let L=0,B=Math.min(T,N);L<B;++L)if(u[L]!==f[L]){T=u[L],N=f[L];break}return T<N?-1:N<T?1:0},c.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(u,f){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return c.alloc(0);let T;if(f===void 0)for(f=0,T=0;T<u.length;++T)f+=u[T].length;const N=c.allocUnsafe(f);let L=0;for(T=0;T<u.length;++T){let B=u[T];if(he(B,Uint8Array))L+B.length>N.length?(c.isBuffer(B)||(B=c.from(B)),B.copy(N,L)):Uint8Array.prototype.set.call(N,B,L);else if(c.isBuffer(B))B.copy(N,L);else throw new TypeError('"list" argument must be an Array of Buffers');L+=B.length}return N};function v(a,u){if(c.isBuffer(a))return a.length;if(ArrayBuffer.isView(a)||he(a,ArrayBuffer))return a.byteLength;if(typeof a!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof a);const f=a.length,T=arguments.length>2&&arguments[2]===!0;if(!T&&f===0)return 0;let N=!1;for(;;)switch(u){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return F(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return ae(a).length;default:if(N)return T?-1:F(a).length;u=(""+u).toLowerCase(),N=!0}}c.byteLength=v;function O(a,u,f){let T=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,u>>>=0,f<=u))return"";for(a||(a="utf8");;)switch(a){case"hex":return qe(this,u,f);case"utf8":case"utf-8":return ie(this,u,f);case"ascii":return Le(this,u,f);case"latin1":case"binary":return Se(this,u,f);case"base64":return ee(this,u,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return _(this,u,f);default:if(T)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),T=!0}}c.prototype._isBuffer=!0;function b(a,u,f){const T=a[u];a[u]=a[f],a[f]=T}c.prototype.swap16=function(){const u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let f=0;f<u;f+=2)b(this,f,f+1);return this},c.prototype.swap32=function(){const u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let f=0;f<u;f+=4)b(this,f,f+3),b(this,f+1,f+2);return this},c.prototype.swap64=function(){const u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let f=0;f<u;f+=8)b(this,f,f+7),b(this,f+1,f+6),b(this,f+2,f+5),b(this,f+3,f+4);return this},c.prototype.toString=function(){const u=this.length;return u===0?"":arguments.length===0?ie(this,0,u):O.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(u){if(!c.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:c.compare(this,u)===0},c.prototype.inspect=function(){let u="";const f=e.INSPECT_MAX_BYTES;return u=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(u+=" ... "),"<Buffer "+u+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(u,f,T,N,L){if(he(u,Uint8Array)&&(u=c.from(u,u.offset,u.byteLength)),!c.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(f===void 0&&(f=0),T===void 0&&(T=u?u.length:0),N===void 0&&(N=0),L===void 0&&(L=this.length),f<0||T>u.length||N<0||L>this.length)throw new RangeError("out of range index");if(N>=L&&f>=T)return 0;if(N>=L)return-1;if(f>=T)return 1;if(f>>>=0,T>>>=0,N>>>=0,L>>>=0,this===u)return 0;let B=L-N,se=T-f;const le=Math.min(B,se),Re=this.slice(N,L),fe=u.slice(f,T);for(let xe=0;xe<le;++xe)if(Re[xe]!==fe[xe]){B=Re[xe],se=fe[xe];break}return B<se?-1:se<B?1:0};function k(a,u,f,T,N){if(a.length===0)return-1;if(typeof f=="string"?(T=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,ye(f)&&(f=N?0:a.length-1),f<0&&(f=a.length+f),f>=a.length){if(N)return-1;f=a.length-1}else if(f<0)if(N)f=0;else return-1;if(typeof u=="string"&&(u=c.from(u,T)),c.isBuffer(u))return u.length===0?-1:M(a,u,f,T,N);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(a,u,f):Uint8Array.prototype.lastIndexOf.call(a,u,f):M(a,[u],f,T,N);throw new TypeError("val must be string, number or Buffer")}function M(a,u,f,T,N){let L=1,B=a.length,se=u.length;if(T!==void 0&&(T=String(T).toLowerCase(),T==="ucs2"||T==="ucs-2"||T==="utf16le"||T==="utf-16le")){if(a.length<2||u.length<2)return-1;L=2,B/=2,se/=2,f/=2}function le(fe,xe){return L===1?fe[xe]:fe.readUInt16BE(xe*L)}let Re;if(N){let fe=-1;for(Re=f;Re<B;Re++)if(le(a,Re)===le(u,fe===-1?0:Re-fe)){if(fe===-1&&(fe=Re),Re-fe+1===se)return fe*L}else fe!==-1&&(Re-=Re-fe),fe=-1}else for(f+se>B&&(f=B-se),Re=f;Re>=0;Re--){let fe=!0;for(let xe=0;xe<se;xe++)if(le(a,Re+xe)!==le(u,xe)){fe=!1;break}if(fe)return Re}return-1}c.prototype.includes=function(u,f,T){return this.indexOf(u,f,T)!==-1},c.prototype.indexOf=function(u,f,T){return k(this,u,f,T,!0)},c.prototype.lastIndexOf=function(u,f,T){return k(this,u,f,T,!1)};function H(a,u,f,T){f=Number(f)||0;const N=a.length-f;T?(T=Number(T),T>N&&(T=N)):T=N;const L=u.length;T>L/2&&(T=L/2);let B;for(B=0;B<T;++B){const se=parseInt(u.substr(B*2,2),16);if(ye(se))return B;a[f+B]=se}return B}function G(a,u,f,T){return ce(F(u,a.length-f),a,f,T)}function Z(a,u,f,T){return ce(X(u),a,f,T)}function te(a,u,f,T){return ce(ae(u),a,f,T)}function de(a,u,f,T){return ce(pe(u,a.length-f),a,f,T)}c.prototype.write=function(u,f,T,N){if(f===void 0)N="utf8",T=this.length,f=0;else if(T===void 0&&typeof f=="string")N=f,T=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(T)?(T=T>>>0,N===void 0&&(N="utf8")):(N=T,T=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const L=this.length-f;if((T===void 0||T>L)&&(T=L),u.length>0&&(T<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let B=!1;for(;;)switch(N){case"hex":return H(this,u,f,T);case"utf8":case"utf-8":return G(this,u,f,T);case"ascii":case"latin1":case"binary":return Z(this,u,f,T);case"base64":return te(this,u,f,T);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return de(this,u,f,T);default:if(B)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),B=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ee(a,u,f){return u===0&&f===a.length?t.fromByteArray(a):t.fromByteArray(a.slice(u,f))}function ie(a,u,f){f=Math.min(a.length,f);const T=[];let N=u;for(;N<f;){const L=a[N];let B=null,se=L>239?4:L>223?3:L>191?2:1;if(N+se<=f){let le,Re,fe,xe;switch(se){case 1:L<128&&(B=L);break;case 2:le=a[N+1],(le&192)===128&&(xe=(L&31)<<6|le&63,xe>127&&(B=xe));break;case 3:le=a[N+1],Re=a[N+2],(le&192)===128&&(Re&192)===128&&(xe=(L&15)<<12|(le&63)<<6|Re&63,xe>2047&&(xe<55296||xe>57343)&&(B=xe));break;case 4:le=a[N+1],Re=a[N+2],fe=a[N+3],(le&192)===128&&(Re&192)===128&&(fe&192)===128&&(xe=(L&15)<<18|(le&63)<<12|(Re&63)<<6|fe&63,xe>65535&&xe<1114112&&(B=xe))}}B===null?(B=65533,se=1):B>65535&&(B-=65536,T.push(B>>>10&1023|55296),B=56320|B&1023),T.push(B),N+=se}return Ie(T)}const Pe=4096;function Ie(a){const u=a.length;if(u<=Pe)return String.fromCharCode.apply(String,a);let f="",T=0;for(;T<u;)f+=String.fromCharCode.apply(String,a.slice(T,T+=Pe));return f}function Le(a,u,f){let T="";f=Math.min(a.length,f);for(let N=u;N<f;++N)T+=String.fromCharCode(a[N]&127);return T}function Se(a,u,f){let T="";f=Math.min(a.length,f);for(let N=u;N<f;++N)T+=String.fromCharCode(a[N]);return T}function qe(a,u,f){const T=a.length;(!u||u<0)&&(u=0),(!f||f<0||f>T)&&(f=T);let N="";for(let L=u;L<f;++L)N+=ge[a[L]];return N}function _(a,u,f){const T=a.slice(u,f);let N="";for(let L=0;L<T.length-1;L+=2)N+=String.fromCharCode(T[L]+T[L+1]*256);return N}c.prototype.slice=function(u,f){const T=this.length;u=~~u,f=f===void 0?T:~~f,u<0?(u+=T,u<0&&(u=0)):u>T&&(u=T),f<0?(f+=T,f<0&&(f=0)):f>T&&(f=T),f<u&&(f=u);const N=this.subarray(u,f);return Object.setPrototypeOf(N,c.prototype),N};function R(a,u,f){if(a%1!==0||a<0)throw new RangeError("offset is not uint");if(a+u>f)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(u,f,T){u=u>>>0,f=f>>>0,T||R(u,f,this.length);let N=this[u],L=1,B=0;for(;++B<f&&(L*=256);)N+=this[u+B]*L;return N},c.prototype.readUintBE=c.prototype.readUIntBE=function(u,f,T){u=u>>>0,f=f>>>0,T||R(u,f,this.length);let N=this[u+--f],L=1;for(;f>0&&(L*=256);)N+=this[u+--f]*L;return N},c.prototype.readUint8=c.prototype.readUInt8=function(u,f){return u=u>>>0,f||R(u,1,this.length),this[u]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(u,f){return u=u>>>0,f||R(u,2,this.length),this[u]|this[u+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(u,f){return u=u>>>0,f||R(u,2,this.length),this[u]<<8|this[u+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(u,f){return u=u>>>0,f||R(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(u,f){return u=u>>>0,f||R(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},c.prototype.readBigUInt64LE=Ee(function(u){u=u>>>0,J(u,"offset");const f=this[u],T=this[u+7];(f===void 0||T===void 0)&&oe(u,this.length-8);const N=f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24,L=this[++u]+this[++u]*2**8+this[++u]*2**16+T*2**24;return BigInt(N)+(BigInt(L)<<BigInt(32))}),c.prototype.readBigUInt64BE=Ee(function(u){u=u>>>0,J(u,"offset");const f=this[u],T=this[u+7];(f===void 0||T===void 0)&&oe(u,this.length-8);const N=f*2**24+this[++u]*2**16+this[++u]*2**8+this[++u],L=this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+T;return(BigInt(N)<<BigInt(32))+BigInt(L)}),c.prototype.readIntLE=function(u,f,T){u=u>>>0,f=f>>>0,T||R(u,f,this.length);let N=this[u],L=1,B=0;for(;++B<f&&(L*=256);)N+=this[u+B]*L;return L*=128,N>=L&&(N-=Math.pow(2,8*f)),N},c.prototype.readIntBE=function(u,f,T){u=u>>>0,f=f>>>0,T||R(u,f,this.length);let N=f,L=1,B=this[u+--N];for(;N>0&&(L*=256);)B+=this[u+--N]*L;return L*=128,B>=L&&(B-=Math.pow(2,8*f)),B},c.prototype.readInt8=function(u,f){return u=u>>>0,f||R(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},c.prototype.readInt16LE=function(u,f){u=u>>>0,f||R(u,2,this.length);const T=this[u]|this[u+1]<<8;return T&32768?T|4294901760:T},c.prototype.readInt16BE=function(u,f){u=u>>>0,f||R(u,2,this.length);const T=this[u+1]|this[u]<<8;return T&32768?T|4294901760:T},c.prototype.readInt32LE=function(u,f){return u=u>>>0,f||R(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},c.prototype.readInt32BE=function(u,f){return u=u>>>0,f||R(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},c.prototype.readBigInt64LE=Ee(function(u){u=u>>>0,J(u,"offset");const f=this[u],T=this[u+7];(f===void 0||T===void 0)&&oe(u,this.length-8);const N=this[u+4]+this[u+5]*2**8+this[u+6]*2**16+(T<<24);return(BigInt(N)<<BigInt(32))+BigInt(f+this[++u]*2**8+this[++u]*2**16+this[++u]*2**24)}),c.prototype.readBigInt64BE=Ee(function(u){u=u>>>0,J(u,"offset");const f=this[u],T=this[u+7];(f===void 0||T===void 0)&&oe(u,this.length-8);const N=(f<<24)+this[++u]*2**16+this[++u]*2**8+this[++u];return(BigInt(N)<<BigInt(32))+BigInt(this[++u]*2**24+this[++u]*2**16+this[++u]*2**8+T)}),c.prototype.readFloatLE=function(u,f){return u=u>>>0,f||R(u,4,this.length),r.read(this,u,!0,23,4)},c.prototype.readFloatBE=function(u,f){return u=u>>>0,f||R(u,4,this.length),r.read(this,u,!1,23,4)},c.prototype.readDoubleLE=function(u,f){return u=u>>>0,f||R(u,8,this.length),r.read(this,u,!0,52,8)},c.prototype.readDoubleBE=function(u,f){return u=u>>>0,f||R(u,8,this.length),r.read(this,u,!1,52,8)};function C(a,u,f,T,N,L){if(!c.isBuffer(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>N||u<L)throw new RangeError('"value" argument is out of bounds');if(f+T>a.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(u,f,T,N){if(u=+u,f=f>>>0,T=T>>>0,!N){const se=Math.pow(2,8*T)-1;C(this,u,f,T,se,0)}let L=1,B=0;for(this[f]=u&255;++B<T&&(L*=256);)this[f+B]=u/L&255;return f+T},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(u,f,T,N){if(u=+u,f=f>>>0,T=T>>>0,!N){const se=Math.pow(2,8*T)-1;C(this,u,f,T,se,0)}let L=T-1,B=1;for(this[f+L]=u&255;--L>=0&&(B*=256);)this[f+L]=u/B&255;return f+T},c.prototype.writeUint8=c.prototype.writeUInt8=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,1,255,0),this[f]=u&255,f+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,2,65535,0),this[f]=u&255,this[f+1]=u>>>8,f+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,2,65535,0),this[f]=u>>>8,this[f+1]=u&255,f+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,4,4294967295,0),this[f+3]=u>>>24,this[f+2]=u>>>16,this[f+1]=u>>>8,this[f]=u&255,f+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,4,4294967295,0),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4};function q(a,u,f,T,N){W(u,T,N,a,f,7);let L=Number(u&BigInt(4294967295));a[f++]=L,L=L>>8,a[f++]=L,L=L>>8,a[f++]=L,L=L>>8,a[f++]=L;let B=Number(u>>BigInt(32)&BigInt(4294967295));return a[f++]=B,B=B>>8,a[f++]=B,B=B>>8,a[f++]=B,B=B>>8,a[f++]=B,f}function w(a,u,f,T,N){W(u,T,N,a,f,7);let L=Number(u&BigInt(4294967295));a[f+7]=L,L=L>>8,a[f+6]=L,L=L>>8,a[f+5]=L,L=L>>8,a[f+4]=L;let B=Number(u>>BigInt(32)&BigInt(4294967295));return a[f+3]=B,B=B>>8,a[f+2]=B,B=B>>8,a[f+1]=B,B=B>>8,a[f]=B,f+8}c.prototype.writeBigUInt64LE=Ee(function(u,f=0){return q(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Ee(function(u,f=0){return w(this,u,f,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(u,f,T,N){if(u=+u,f=f>>>0,!N){const le=Math.pow(2,8*T-1);C(this,u,f,T,le-1,-le)}let L=0,B=1,se=0;for(this[f]=u&255;++L<T&&(B*=256);)u<0&&se===0&&this[f+L-1]!==0&&(se=1),this[f+L]=(u/B>>0)-se&255;return f+T},c.prototype.writeIntBE=function(u,f,T,N){if(u=+u,f=f>>>0,!N){const le=Math.pow(2,8*T-1);C(this,u,f,T,le-1,-le)}let L=T-1,B=1,se=0;for(this[f+L]=u&255;--L>=0&&(B*=256);)u<0&&se===0&&this[f+L+1]!==0&&(se=1),this[f+L]=(u/B>>0)-se&255;return f+T},c.prototype.writeInt8=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,1,127,-128),u<0&&(u=255+u+1),this[f]=u&255,f+1},c.prototype.writeInt16LE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,2,32767,-32768),this[f]=u&255,this[f+1]=u>>>8,f+2},c.prototype.writeInt16BE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,2,32767,-32768),this[f]=u>>>8,this[f+1]=u&255,f+2},c.prototype.writeInt32LE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,4,2147483647,-2147483648),this[f]=u&255,this[f+1]=u>>>8,this[f+2]=u>>>16,this[f+3]=u>>>24,f+4},c.prototype.writeInt32BE=function(u,f,T){return u=+u,f=f>>>0,T||C(this,u,f,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[f]=u>>>24,this[f+1]=u>>>16,this[f+2]=u>>>8,this[f+3]=u&255,f+4},c.prototype.writeBigInt64LE=Ee(function(u,f=0){return q(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Ee(function(u,f=0){return w(this,u,f,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function D(a,u,f,T,N,L){if(f+T>a.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function K(a,u,f,T,N){return u=+u,f=f>>>0,N||D(a,u,f,4),r.write(a,u,f,T,23,4),f+4}c.prototype.writeFloatLE=function(u,f,T){return K(this,u,f,!0,T)},c.prototype.writeFloatBE=function(u,f,T){return K(this,u,f,!1,T)};function V(a,u,f,T,N){return u=+u,f=f>>>0,N||D(a,u,f,8),r.write(a,u,f,T,52,8),f+8}c.prototype.writeDoubleLE=function(u,f,T){return V(this,u,f,!0,T)},c.prototype.writeDoubleBE=function(u,f,T){return V(this,u,f,!1,T)},c.prototype.copy=function(u,f,T,N){if(!c.isBuffer(u))throw new TypeError("argument should be a Buffer");if(T||(T=0),!N&&N!==0&&(N=this.length),f>=u.length&&(f=u.length),f||(f=0),N>0&&N<T&&(N=T),N===T||u.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(T<0||T>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),u.length-f<N-T&&(N=u.length-f+T);const L=N-T;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,T,N):Uint8Array.prototype.set.call(u,this.subarray(T,N),f),L},c.prototype.fill=function(u,f,T,N){if(typeof u=="string"){if(typeof f=="string"?(N=f,f=0,T=this.length):typeof T=="string"&&(N=T,T=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!c.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(u.length===1){const B=u.charCodeAt(0);(N==="utf8"&&B<128||N==="latin1")&&(u=B)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(f<0||this.length<f||this.length<T)throw new RangeError("Out of range index");if(T<=f)return this;f=f>>>0,T=T===void 0?this.length:T>>>0,u||(u=0);let L;if(typeof u=="number")for(L=f;L<T;++L)this[L]=u;else{const B=c.isBuffer(u)?u:c.from(u,N),se=B.length;if(se===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(L=0;L<T-f;++L)this[L+f]=B[L%se]}return this};const re={};function we(a,u,f){re[a]=class extends f{constructor(){super(),Object.defineProperty(this,"message",{value:u.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${a}]`,this.stack,delete this.name}get code(){return a}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${a}]: ${this.message}`}}}we("ERR_BUFFER_OUT_OF_BOUNDS",function(a){return a?`${a} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),we("ERR_INVALID_ARG_TYPE",function(a,u){return`The "${a}" argument must be of type number. Received type ${typeof u}`},TypeError),we("ERR_OUT_OF_RANGE",function(a,u,f){let T=`The value of "${a}" is out of range.`,N=f;return Number.isInteger(f)&&Math.abs(f)>2**32?N=$e(String(f)):typeof f=="bigint"&&(N=String(f),(f>BigInt(2)**BigInt(32)||f<-(BigInt(2)**BigInt(32)))&&(N=$e(N)),N+="n"),T+=` It must be ${u}. Received ${N}`,T},RangeError);function $e(a){let u="",f=a.length;const T=a[0]==="-"?1:0;for(;f>=T+4;f-=3)u=`_${a.slice(f-3,f)}${u}`;return`${a.slice(0,f)}${u}`}function z(a,u,f){J(u,"offset"),(a[u]===void 0||a[u+f]===void 0)&&oe(u,a.length-(f+1))}function W(a,u,f,T,N,L){if(a>f||a<u){const B=typeof u=="bigint"?"n":"";let se;throw u===0||u===BigInt(0)?se=`>= 0${B} and < 2${B} ** ${(L+1)*8}${B}`:se=`>= -(2${B} ** ${(L+1)*8-1}${B}) and < 2 ** ${(L+1)*8-1}${B}`,new re.ERR_OUT_OF_RANGE("value",se,a)}z(T,N,L)}function J(a,u){if(typeof a!="number")throw new re.ERR_INVALID_ARG_TYPE(u,"number",a)}function oe(a,u,f){throw Math.floor(a)!==a?(J(a,f),new re.ERR_OUT_OF_RANGE("offset","an integer",a)):u<0?new re.ERR_BUFFER_OUT_OF_BOUNDS:new re.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${u}`,a)}const me=/[^+/0-9A-Za-z-_]/g;function Ae(a){if(a=a.split("=")[0],a=a.trim().replace(me,""),a.length<2)return"";for(;a.length%4!==0;)a=a+"=";return a}function F(a,u){u=u||1/0;let f;const T=a.length;let N=null;const L=[];for(let B=0;B<T;++B){if(f=a.charCodeAt(B),f>55295&&f<57344){if(!N){if(f>56319){(u-=3)>-1&&L.push(239,191,189);continue}else if(B+1===T){(u-=3)>-1&&L.push(239,191,189);continue}N=f;continue}if(f<56320){(u-=3)>-1&&L.push(239,191,189),N=f;continue}f=(N-55296<<10|f-56320)+65536}else N&&(u-=3)>-1&&L.push(239,191,189);if(N=null,f<128){if((u-=1)<0)break;L.push(f)}else if(f<2048){if((u-=2)<0)break;L.push(f>>6|192,f&63|128)}else if(f<65536){if((u-=3)<0)break;L.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((u-=4)<0)break;L.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return L}function X(a){const u=[];for(let f=0;f<a.length;++f)u.push(a.charCodeAt(f)&255);return u}function pe(a,u){let f,T,N;const L=[];for(let B=0;B<a.length&&!((u-=2)<0);++B)f=a.charCodeAt(B),T=f>>8,N=f%256,L.push(N),L.push(T);return L}function ae(a){return t.toByteArray(Ae(a))}function ce(a,u,f,T){let N;for(N=0;N<T&&!(N+f>=u.length||N>=a.length);++N)u[N+f]=a[N];return N}function he(a,u){return a instanceof u||a!=null&&a.constructor!=null&&a.constructor.name!=null&&a.constructor.name===u.name}function ye(a){return a!==a}const ge=(function(){const a="0123456789abcdef",u=new Array(256);for(let f=0;f<16;++f){const T=f*16;for(let N=0;N<16;++N)u[T+N]=a[f]+a[N]}return u})();function Ee(a){return typeof BigInt>"u"?Qe:a}function Qe(){throw new Error("BigInt not supported")}})(us)),us}var ds,ru;function GT(){if(ru)return ds;ru=1;var e=QT().Buffer,t=st(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
41
|
+
\r`;function n(c){if(c===null)return!1;var p,l,d=0,h=c.length,y=r;for(l=0;l<h;l++)if(p=y.indexOf(c.charAt(l)),!(p>64)){if(p<0)return!1;d+=6}return d%8===0}function i(c){var p,l,d=c.replace(/[\r\n=]/g,""),h=d.length,y=r,g=0,$=[];for(p=0;p<h;p++)p%4===0&&p&&($.push(g>>16&255),$.push(g>>8&255),$.push(g&255)),g=g<<6|y.indexOf(d.charAt(p));return l=h%4*6,l===0?($.push(g>>16&255),$.push(g>>8&255),$.push(g&255)):l===18?($.push(g>>10&255),$.push(g>>2&255)):l===12&&$.push(g>>4&255),e?new e($):$}function o(c){var p="",l=0,d,h,y=c.length,g=r;for(d=0;d<y;d++)d%3===0&&d&&(p+=g[l>>18&63],p+=g[l>>12&63],p+=g[l>>6&63],p+=g[l&63]),l=(l<<8)+c[d];return h=y%3,h===0?(p+=g[l>>18&63],p+=g[l>>12&63],p+=g[l>>6&63],p+=g[l&63]):h===2?(p+=g[l>>10&63],p+=g[l>>4&63],p+=g[l<<2&63],p+=g[64]):h===1&&(p+=g[l>>2&63],p+=g[l<<4&63],p+=g[64],p+=g[64]),p}function s(c){return e&&e.isBuffer(c)}return ds=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o}),ds}var fs,nu;function YT(){if(nu)return fs;nu=1;var e=st(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(o){if(o===null)return!0;var s=[],c,p,l,d,h,y=o;for(c=0,p=y.length;c<p;c+=1){if(l=y[c],h=!1,r.call(l)!=="[object Object]")return!1;for(d in l)if(t.call(l,d))if(!h)h=!0;else return!1;if(!h)return!1;if(s.indexOf(d)===-1)s.push(d);else return!1}return!0}function i(o){return o!==null?o:[]}return fs=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i}),fs}var ms,iu;function JT(){if(iu)return ms;iu=1;var e=st(),t=mo(),r=Object.prototype.toString;function n(o){if(o===null)return!0;if(o.kind!=t.Kind.SEQ)return!1;var s,c,p,l=o.items;for(s=0,c=l.length;s<c;s+=1)if(p=l[s],r.call(p)!=="[object Object]"||!Array.isArray(p.mappings)||p.mappings.length!==1)return!1;return!0}function i(o){if(o===null||!Array.isArray(o.items))return[];var s,c,p,l=o.items;for(p=t.newItems(),p.parent=o.parent,p.startPosition=o.startPosition,p.endPosition=o.endPosition,s=0,c=l.length;s<c;s+=1){var d=l[s],h=d.mappings[0],y=t.newItems();y.parent=p,y.startPosition=h.key.startPosition,y.endPosition=h.value.startPosition,h.key.parent=y,h.value.parent=y,y.items=[h.key,h.value],p.items.push(y)}return p}return ms=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:i}),ms}var hs,ou;function XT(){if(ou)return hs;ou=1;var e=st(),t=mo();function r(i){return i===null?!0:i.kind==t.Kind.MAP}function n(i){return i!==null?i:{}}return hs=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),hs}var ys,su;function va(){if(su)return ys;su=1;var e=cn(),t=new e.Schema({include:[BT()],implicit:[VT(),HT()],explicit:[GT(),YT(),JT(),XT()]});return ys=t,ys}var gs,au;function ZT(){if(au)return gs;au=1;var e=st();function t(){return!0}function r(){}function n(){return""}function i(o){return typeof o>"u"}return gs=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),gs}var bs,cu;function ek(){if(cu)return bs;cu=1;var e=st();function t(o){if(o===null||o.length===0)return!1;var s=o,c=/\/([gim]*)$/.exec(o),p="";if(s[0]==="/"){if(c&&(p=c[1]),p.length>3||s[s.length-p.length-1]!=="/")return!1;s=s.slice(1,s.length-p.length-1)}try{var l=new RegExp(s,p);return!0}catch{return!1}}function r(o){var s=o,c=/\/([gim]*)$/.exec(o),p="";return s[0]==="/"&&(c&&(p=c[1]),s=s.slice(1,s.length-p.length-1)),new RegExp(s,p)}function n(o){var s="/"+o.source+"/";return o.global&&(s+="g"),o.multiline&&(s+="m"),o.ignoreCase&&(s+="i"),s}function i(o){return Object.prototype.toString.call(o)==="[object RegExp]"}return bs=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),bs}var vs,pu;function rm(){if(pu)return vs;pu=1;var e=cn(),t=new e.Schema({include:[va()],explicit:[ZT(),ek()]});return e.Schema.DEFAULT=t,vs=t,vs}var lu;function tk(){if(lu)return vt;lu=1,Object.defineProperty(vt,"__esModule",{value:!0});var e=mo(),t=Er(),r=an(),n=qT(),i=va(),o=rm(),s=Object.prototype.hasOwnProperty,c=1,p=2,l=3,d=4,h=1,y=2,g=3,$=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,x=/[\x85\u2028\u2029]/,P=/[,\[\]\{\}]/,A=/^(?:!|!!|![a-z\-]+!)$/i,S=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function v(a){return a===10||a===13}function O(a){return a===9||a===32}function b(a){return a===9||a===32||a===10||a===13}function k(a){return a===44||a===91||a===93||a===123||a===125}function M(a){var u;return 48<=a&&a<=57?a-48:(u=a|32,97<=u&&u<=102?u-97+10:-1)}function H(a){return a===120?2:a===117?4:a===85?8:0}function G(a){return 48<=a&&a<=57?a-48:-1}function Z(a){return a===48?"\0":a===97?"\x07":a===98?"\b":a===116||a===9?" ":a===110?`
|
|
42
42
|
`:a===118?"\v":a===102?"\f":a===114?"\r":a===101?"\x1B":a===32?" ":a===34?'"':a===47?"/":a===92?"\\":a===78?"
":a===95?" ":a===76?"\u2028":a===80?"\u2029":""}function te(a){return a<=65535?String.fromCharCode(a):String.fromCharCode((a-65536>>10)+55296,(a-65536&1023)+56320)}for(var de=new Array(256),ee=new Array(256),ie=new Array(256),Pe=new Array(256),Ie=0;Ie<256;Ie++)Pe[Ie]=ee[Ie]=Z(Ie),de[Ie]=ee[Ie]?1:0,ie[Ie]=1,de[Ie]||(Pe[Ie]="\\"+String.fromCharCode(Ie));var Le=(function(){function a(u,f){this.errorMap={},this.errors=[],this.lines=[],this.input=u,this.filename=f.filename||null,this.schema=f.schema||o,this.onWarning=f.onWarning||null,this.legacy=f.legacy||!1,this.allowAnyEscape=f.allowAnyEscape||!1,this.ignoreDuplicateKeys=f.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=u.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return a})();function Se(a,u,f){return f===void 0&&(f=!1),new r(u,new n(a.filename,a.input,a.position,a.line,a.position-a.lineStart),f)}function qe(a,u,f,T,N){T===void 0&&(T=!1),N===void 0&&(N=!1);var L=K(a,u);if(L){var B=f+u;if(!a.errorMap[B]){var se=new n(a.filename,a.input,u,L.line,u-L.start);N&&(se.toLineEnd=!0);var le=new r(f,se,T);a.errors.push(le)}}}function _(a,u){var f=Se(a,u),T=f.message+f.mark.position;if(!a.errorMap[T]){a.errors.push(f),a.errorMap[T]=1;for(var N=a.position;;){if(a.position>=a.input.length-1)return;var L=a.input.charAt(a.position);if(L==`
|
|
43
43
|
`){a.position--,a.position==N&&(a.position+=1);return}if(L=="\r"){a.position--,a.position==N&&(a.position+=1);return}a.position++}}}function R(a,u){var f=Se(a,u);a.onWarning&&a.onWarning.call(null,f)}var C={YAML:function(u,f,T){var N,L,B;u.version!==null&&_(u,"duplication of %YAML directive"),T.length!==1&&_(u,"YAML directive accepts exactly one argument"),N=/^([0-9]+)\.([0-9]+)$/.exec(T[0]),N===null&&_(u,"ill-formed argument of the YAML directive"),L=parseInt(N[1],10),B=parseInt(N[2],10),L!==1&&_(u,"found incompatible YAML document (version 1.2 is required)"),u.version=T[0],u.checkLineBreaks=B<2,B!==2&&_(u,"found incompatible YAML document (version 1.2 is required)")},TAG:function(u,f,T){var N,L;T.length!==2&&_(u,"TAG directive accepts exactly two arguments"),N=T[0],L=T[1],A.test(N)||_(u,"ill-formed tag handle (first argument) of the TAG directive"),s.call(u.tagMap,N)&&_(u,'there is a previously declared suffix for "'+N+'" tag handle'),S.test(L)||_(u,"ill-formed tag prefix (second argument) of the TAG directive"),u.tagMap[N]=L}};function q(a,u,f,T){var N,L,B,se,le=a.result;if(le.startPosition==-1&&(le.startPosition=u),u<=f){if(se=a.input.slice(u,f),T)for(N=0,L=se.length;N<L;N+=1)B=se.charCodeAt(N),B===9||32<=B&&B<=1114111||_(a,"expected valid JSON character");else $.test(se)&&_(a,"the stream contains non-printable characters");le.value+=se,le.endPosition=f}}function w(a,u,f,T,N){if(T!=null){u===null&&(u={startPosition:T.startPosition,endPosition:N.endPosition,parent:null,errors:[],mappings:[],kind:e.Kind.MAP});var L=e.newMapping(T,N);return L.parent=u,T.parent=L,N!=null&&(N.parent=L),!a.ignoreDuplicateKeys&&u.mappings.forEach(function(B){B.key&&B.key.value===(L.key&&L.key.value)&&(qe(a,L.key.startPosition,"duplicate key"),qe(a,B.key.startPosition,"duplicate key"))}),u.mappings.push(L),u.endPosition=N?N.endPosition:T.endPosition+1,u}}function D(a){var u;u=a.input.charCodeAt(a.position),u===10?a.position++:u===13?(a.position++,a.input.charCodeAt(a.position)===10&&a.position++):_(a,"a line break is expected"),a.line+=1,a.lineStart=a.position,a.lines.push({start:a.lineStart,line:a.line})}function K(a,u){for(var f,T=0;T<a.lines.length&&!(a.lines[T].start>u);T++)f=a.lines[T];return f||{start:0,line:0}}function V(a,u,f){for(var T=0,N=a.input.charCodeAt(a.position);N!==0;){for(;O(N);)N===9&&a.errors.push(Se(a,"Using tabs can lead to unpredictable results",!0)),N=a.input.charCodeAt(++a.position);if(u&&N===35)do N=a.input.charCodeAt(++a.position);while(N!==10&&N!==13&&N!==0);if(v(N))for(D(a),N=a.input.charCodeAt(a.position),T++,a.lineIndent=0;N===32;)a.lineIndent++,N=a.input.charCodeAt(++a.position);else break}return f!==-1&&T!==0&&a.lineIndent<f&&R(a,"deficient indentation"),T}function re(a){var u=a.position,f;return f=a.input.charCodeAt(u),!!((f===45||f===46)&&a.input.charCodeAt(u+1)===f&&a.input.charCodeAt(u+2)===f&&(u+=3,f=a.input.charCodeAt(u),f===0||b(f)))}function we(a,u,f){f===1?u.value+=" ":f>1&&(u.value+=t.repeat(`
|
|
44
44
|
`,f-1))}function $e(a,u,f){var T,N,L,B,se,le,Re,fe,xe=a.kind,Be=a.result,_e,Ce=e.newScalar();if(Ce.plainScalar=!0,a.result=Ce,_e=a.input.charCodeAt(a.position),b(_e)||k(_e)||_e===35||_e===38||_e===42||_e===33||_e===124||_e===62||_e===39||_e===34||_e===37||_e===64||_e===96||(_e===63||_e===45)&&(N=a.input.charCodeAt(a.position+1),b(N)||f&&k(N)))return!1;for(a.kind="scalar",L=B=a.position,se=!1;_e!==0;){if(_e===58){if(N=a.input.charCodeAt(a.position+1),b(N)||f&&k(N))break}else if(_e===35){if(T=a.input.charCodeAt(a.position-1),b(T))break}else{if(a.position===a.lineStart&&re(a)||f&&k(_e))break;if(v(_e))if(le=a.line,Re=a.lineStart,fe=a.lineIndent,V(a,!1,-1),a.lineIndent>=u){se=!0,_e=a.input.charCodeAt(a.position);continue}else{a.position=B,a.line=le,a.lineStart=Re,a.lineIndent=fe;break}}if(se&&(q(a,L,B,!1),we(a,Ce,a.line-le),L=B=a.position,se=!1),O(_e)||(B=a.position+1),_e=a.input.charCodeAt(++a.position),a.position>=a.input.length)return!1}return q(a,L,B,!1),a.result.startPosition!=-1?(Ce.rawValue=a.input.substring(Ce.startPosition,Ce.endPosition),!0):(a.kind=xe,a.result=Be,!1)}function z(a,u){var f,T,N;if(f=a.input.charCodeAt(a.position),f!==39)return!1;var L=e.newScalar();for(L.singleQuoted=!0,a.kind="scalar",a.result=L,L.startPosition=a.position,a.position++,T=N=a.position;(f=a.input.charCodeAt(a.position))!==0;)if(f===39)if(q(a,T,a.position,!0),f=a.input.charCodeAt(++a.position),L.endPosition=a.position,f===39)T=N=a.position,a.position++;else return!0;else v(f)?(q(a,T,N,!0),we(a,L,V(a,!1,u)),T=N=a.position):a.position===a.lineStart&&re(a)?_(a,"unexpected end of the document within a single quoted scalar"):(a.position++,N=a.position,L.endPosition=a.position);_(a,"unexpected end of the stream within a single quoted scalar")}function W(a,u){var f,T,N,L,B,se;if(se=a.input.charCodeAt(a.position),se!==34)return!1;a.kind="scalar";var le=e.newScalar();for(le.doubleQuoted=!0,a.result=le,le.startPosition=a.position,a.position++,f=T=a.position;(se=a.input.charCodeAt(a.position))!==0;){if(se===34)return q(a,f,a.position,!0),a.position++,le.endPosition=a.position,le.rawValue=a.input.substring(le.startPosition,le.endPosition),!0;if(se===92){if(q(a,f,a.position,!0),se=a.input.charCodeAt(++a.position),v(se))V(a,!1,u);else if(se<256&&(a.allowAnyEscape?ie[se]:de[se]))le.value+=a.allowAnyEscape?Pe[se]:ee[se],a.position++;else if((B=H(se))>0){for(N=B,L=0;N>0;N--)se=a.input.charCodeAt(++a.position),(B=M(se))>=0?L=(L<<4)+B:_(a,"expected hexadecimal character");le.value+=te(L),a.position++}else _(a,"unknown escape sequence");f=T=a.position}else v(se)?(q(a,f,T,!0),we(a,le,V(a,!1,u)),f=T=a.position):a.position===a.lineStart&&re(a)?_(a,"unexpected end of the document within a double quoted scalar"):(a.position++,T=a.position)}_(a,"unexpected end of the stream within a double quoted scalar")}function J(a,u){var f=!0,T,N=a.tag,L,B=a.anchor,se,le,Re,fe,xe,Be,_e,Ce,Ye;if(Ye=a.input.charCodeAt(a.position),Ye===91)le=93,xe=!1,L=e.newItems(),L.startPosition=a.position;else if(Ye===123)le=125,xe=!0,L=e.newMap(),L.startPosition=a.position;else return!1;for(a.anchor!==null&&(L.anchorId=a.anchor,a.anchorMap[a.anchor]=L),Ye=a.input.charCodeAt(++a.position);Ye!==0;){if(V(a,!0,u),Ye=a.input.charCodeAt(a.position),Ye===le)return a.position++,a.tag=N,a.anchor=B,a.kind=xe?"mapping":"sequence",a.result=L,L.endPosition=a.position,!0;if(!f){var tr=a.position;_(a,"missed comma between flow collection entries"),a.position=tr+1}if(_e=Be=Ce=null,Re=fe=!1,Ye===63&&(se=a.input.charCodeAt(a.position+1),b(se)&&(Re=fe=!0,a.position++,V(a,!0,u))),T=a.line,ae(a,u,c,!1,!0),_e=a.tag,Be=a.result,V(a,!0,u),Ye=a.input.charCodeAt(a.position),(fe||a.line===T)&&Ye===58&&(Re=!0,Ye=a.input.charCodeAt(++a.position),V(a,!0,u),ae(a,u,c,!1,!0),Ce=a.result),xe)w(a,L,_e,Be,Ce);else if(Re){var rr=w(a,null,_e,Be,Ce);rr.parent=L,L.items.push(rr)}else Be&&(Be.parent=L),L.items.push(Be);L.endPosition=a.position+1,V(a,!0,u),Ye=a.input.charCodeAt(a.position),Ye===44?(f=!0,Ye=a.input.charCodeAt(++a.position)):f=!1}_(a,"unexpected end of the stream within a flow collection")}function oe(a,u){var f,T,N=h,L=!1,B=u,se=0,le=!1,Re,fe;if(fe=a.input.charCodeAt(a.position),fe===124)T=!1;else if(fe===62)T=!0;else return!1;var xe=e.newScalar();for(a.kind="scalar",a.result=xe,xe.startPosition=a.position;fe!==0;)if(fe=a.input.charCodeAt(++a.position),fe===43||fe===45)h===N?N=fe===43?g:y:_(a,"repeat of a chomping mode identifier");else if((Re=G(fe))>=0)Re===0?_(a,"bad explicit indentation width of a block scalar; it cannot be less than one"):L?_(a,"repeat of an indentation width identifier"):(B=u+Re-1,L=!0);else break;if(O(fe)){do fe=a.input.charCodeAt(++a.position);while(O(fe));if(fe===35)do fe=a.input.charCodeAt(++a.position);while(!v(fe)&&fe!==0)}for(;fe!==0;){for(D(a),a.lineIndent=0,fe=a.input.charCodeAt(a.position);(!L||a.lineIndent<B)&&fe===32;)a.lineIndent++,fe=a.input.charCodeAt(++a.position);if(!L&&a.lineIndent>B&&(B=a.lineIndent),v(fe)){se++;continue}if(a.lineIndent<B){N===g?xe.value+=t.repeat(`
|
|
@@ -50,7 +50,7 @@ ${l.stack}`)}},i=new Map,o=PT(t);o&&e.push(o);const s=new Set;if(r){const p=[];f
|
|
|
50
50
|
`,se+1)),L=!0,se=0,f=a.position;!v(fe)&&fe!==0;)fe=a.input.charCodeAt(++a.position);q(a,f,a.position,!1)}xe.endPosition=a.position;for(var Be=a.position-1;;){var _e=a.input[Be];if(_e=="\r"||_e==`
|
|
51
51
|
`||_e!=" "&&_e!=" ")break;Be--}return xe.endPosition=Be,xe.rawValue=a.input.substring(xe.startPosition,xe.endPosition),!0}function me(a,u){var f,T=a.tag,N=a.anchor,L=e.newItems(),B,se=!1,le;for(a.anchor!==null&&(L.anchorId=a.anchor,a.anchorMap[a.anchor]=L),L.startPosition=a.position,le=a.input.charCodeAt(a.position);le!==0&&!(le!==45||(B=a.input.charCodeAt(a.position+1),!b(B)));){if(se=!0,a.position++,V(a,!0,-1)&&a.lineIndent<=u){L.items.push(null),le=a.input.charCodeAt(a.position);continue}if(f=a.line,ae(a,u,l,!1,!0),a.result&&(a.result.parent=L,L.items.push(a.result)),V(a,!0,-1),le=a.input.charCodeAt(a.position),(a.line===f||a.lineIndent>u)&&le!==0)_(a,"bad indentation of a sequence entry");else if(a.lineIndent<u)break}return L.endPosition=a.position,se?(a.tag=T,a.anchor=N,a.kind="sequence",a.result=L,L.endPosition=a.position,!0):!1}function Ae(a,u,f){var T,N,L,B=a.tag,se=a.anchor,le=e.newMap(),Re=null,fe=null,xe=null,Be=!1,_e=!1,Ce;for(le.startPosition=a.position,a.anchor!==null&&(le.anchorId=a.anchor,a.anchorMap[a.anchor]=le),Ce=a.input.charCodeAt(a.position);Ce!==0;){if(T=a.input.charCodeAt(a.position+1),L=a.line,(Ce===63||Ce===58)&&b(T))Ce===63?(Be&&(w(a,le,Re,fe,null),Re=fe=xe=null),_e=!0,Be=!0,N=!0):Be?(Be=!1,N=!0):_(a,"incomplete explicit mapping pair; a key node is missed"),a.position+=1,Ce=T;else if(ae(a,f,p,!1,!0))if(a.line===L){for(Ce=a.input.charCodeAt(a.position);O(Ce);)Ce=a.input.charCodeAt(++a.position);if(Ce===58)Ce=a.input.charCodeAt(++a.position),b(Ce)||_(a,"a whitespace character is expected after the key-value separator within a block mapping"),Be&&(w(a,le,Re,fe,null),Re=fe=xe=null),_e=!0,Be=!1,N=!1,Re=a.tag,fe=a.result;else{if(a.position==a.lineStart&&re(a))break;if(_e)_(a,"can not read an implicit mapping pair; a colon is missed");else return a.tag=B,a.anchor=se,!0}}else if(_e){for(_(a,"can not read a block mapping entry; a multiline key may not be an implicit key");a.position>0;)if(Ce=a.input.charCodeAt(--a.position),v(Ce)){a.position++;break}}else return a.tag=B,a.anchor=se,!0;else break;if((a.line===L||a.lineIndent>u)&&(ae(a,u,d,!0,N)&&(Be?fe=a.result:xe=a.result),Be||(w(a,le,Re,fe,xe),Re=fe=xe=null),V(a,!0,-1),Ce=a.input.charCodeAt(a.position)),a.lineIndent>u&&Ce!==0)_(a,"bad indentation of a mapping entry");else if(a.lineIndent<u)break}return Be&&w(a,le,Re,fe,null),_e&&(a.tag=B,a.anchor=se,a.kind="mapping",a.result=le),_e}function F(a){var u,f=!1,T=!1,N,L,B;if(B=a.input.charCodeAt(a.position),B!==33)return!1;if(a.tag!==null&&_(a,"duplication of a tag property"),B=a.input.charCodeAt(++a.position),B===60?(f=!0,B=a.input.charCodeAt(++a.position)):B===33?(T=!0,N="!!",B=a.input.charCodeAt(++a.position)):N="!",u=a.position,f){do B=a.input.charCodeAt(++a.position);while(B!==0&&B!==62);a.position<a.length?(L=a.input.slice(u,a.position),B=a.input.charCodeAt(++a.position)):_(a,"unexpected end of the stream within a verbatim tag")}else{for(;B!==0&&!b(B);)B===33&&(T?_(a,"tag suffix cannot contain exclamation marks"):(N=a.input.slice(u-1,a.position+1),A.test(N)||_(a,"named tag handle cannot contain such characters"),T=!0,u=a.position+1)),B=a.input.charCodeAt(++a.position);L=a.input.slice(u,a.position),P.test(L)&&_(a,"tag suffix cannot contain flow indicator characters")}return L&&!S.test(L)&&_(a,"tag name cannot contain such characters: "+L),f?a.tag=L:s.call(a.tagMap,N)?a.tag=a.tagMap[N]+L:N==="!"?a.tag="!"+L:N==="!!"?a.tag="tag:yaml.org,2002:"+L:_(a,'undeclared tag handle "'+N+'"'),!0}function X(a){var u,f;if(f=a.input.charCodeAt(a.position),f!==38)return!1;for(a.anchor!==null&&_(a,"duplication of an anchor property"),f=a.input.charCodeAt(++a.position),u=a.position;f!==0&&!b(f)&&!k(f);)f=a.input.charCodeAt(++a.position);return a.position===u&&_(a,"name of an anchor node must contain at least one character"),a.anchor=a.input.slice(u,a.position),!0}function pe(a){var u,f;a.length,a.input;var T;if(T=a.input.charCodeAt(a.position),T!==42)return!1;for(T=a.input.charCodeAt(++a.position),u=a.position;T!==0&&!b(T)&&!k(T);)T=a.input.charCodeAt(++a.position);return a.position<=u&&(_(a,"name of an alias node must contain at least one character"),a.position=u+1),f=a.input.slice(u,a.position),a.anchorMap.hasOwnProperty(f)||(_(a,'unidentified alias "'+f+'"'),a.position<=u&&(a.position=u+1)),a.result=e.newAnchorRef(f,u,a.position,a.anchorMap[f]),V(a,!0,-1),!0}function ae(a,u,f,T,N){var L,B,se,le=1,Re=!1,fe=!1,xe,Be,_e,Ce,Ye;a.tag=null,a.anchor=null,a.kind=null,a.result=null,L=B=se=d===f||l===f,T&&V(a,!0,-1)&&(Re=!0,a.lineIndent>u?le=1:a.lineIndent===u?le=0:a.lineIndent<u&&(le=-1));var tr=a.position;if(a.position-a.lineStart,le===1)for(;F(a)||X(a);)V(a,!0,-1)?(Re=!0,se=L,a.lineIndent>u?le=1:a.lineIndent===u?le=0:a.lineIndent<u&&(le=-1)):se=!1;if(se&&(se=Re||N),(le===1||d===f)&&(c===f||p===f?Ce=u:Ce=u+1,Ye=a.position-a.lineStart,le===1?se&&(me(a,Ye)||Ae(a,Ye,Ce))||J(a,Ce)?fe=!0:(B&&oe(a,Ce)||z(a,Ce)||W(a,Ce)?fe=!0:pe(a)?(fe=!0,(a.tag!==null||a.anchor!==null)&&_(a,"alias node should not have any properties")):$e(a,Ce,c===f)&&(fe=!0,a.tag===null&&(a.tag="?")),a.anchor!==null&&(a.anchorMap[a.anchor]=a.result,a.result.anchorId=a.anchor)):le===0&&(fe=se&&me(a,Ye))),a.tag!==null&&a.tag!=="!")if(a.tag=="!include")a.result||(a.result=e.newScalar(),a.result.startPosition=a.position,a.result.endPosition=a.position,_(a,"!include without value")),a.result.kind=e.Kind.INCLUDE_REF;else if(a.tag==="?")for(xe=0,Be=a.implicitTypes.length;xe<Be;xe+=1){_e=a.implicitTypes[xe];var rr=a.result.value;if(_e.resolve(rr)){a.result.valueObject=_e.construct(a.result.value),a.tag=_e.tag,a.anchor!==null&&(a.result.anchorId=a.anchor,a.anchorMap[a.anchor]=a.result);break}}else s.call(a.typeMap,a.tag)?(_e=a.typeMap[a.tag],a.result!==null&&_e.kind!==a.kind&&_(a,"unacceptable node kind for !<"+a.tag+'> tag; it should be "'+_e.kind+'", not "'+a.kind+'"'),_e.resolve(a.result)?(a.result=_e.construct(a.result),a.anchor!==null&&(a.result.anchorId=a.anchor,a.anchorMap[a.anchor]=a.result)):_(a,"cannot resolve a node with !<"+a.tag+"> explicit tag")):qe(a,tr,"unknown tag <"+a.tag+">",!1,!0);return a.tag!==null||a.anchor!==null||fe}function ce(a){var u=a.position,f,T,N,L=!1,B;for(a.version=null,a.checkLineBreaks=a.legacy,a.tagMap={},a.anchorMap={};(B=a.input.charCodeAt(a.position))!==0&&(V(a,!0,-1),B=a.input.charCodeAt(a.position),!(a.lineIndent>0||B!==37));){for(L=!0,B=a.input.charCodeAt(++a.position),f=a.position;B!==0&&!b(B);)B=a.input.charCodeAt(++a.position);for(T=a.input.slice(f,a.position),N=[],T.length<1&&_(a,"directive name must not be less than one character in length");B!==0;){for(;O(B);)B=a.input.charCodeAt(++a.position);if(B===35){do B=a.input.charCodeAt(++a.position);while(B!==0&&!v(B));break}if(v(B))break;for(f=a.position;B!==0&&!b(B);)B=a.input.charCodeAt(++a.position);N.push(a.input.slice(f,a.position))}B!==0&&D(a),s.call(C,T)?C[T](a,T,N):(R(a,'unknown document directive "'+T+'"'),a.position++)}if(V(a,!0,-1),a.lineIndent===0&&a.input.charCodeAt(a.position)===45&&a.input.charCodeAt(a.position+1)===45&&a.input.charCodeAt(a.position+2)===45?(a.position+=3,V(a,!0,-1)):L&&_(a,"directives end mark is expected"),ae(a,a.lineIndent-1,d,!1,!0),V(a,!0,-1),a.checkLineBreaks&&x.test(a.input.slice(u,a.position))&&R(a,"non-ASCII line breaks are interpreted as content"),a.documents.push(a.result),a.position===a.lineStart&&re(a)){a.input.charCodeAt(a.position)===46&&(a.position+=3,V(a,!0,-1));return}if(a.position<a.length-1)_(a,"end of the stream or a document separator is expected");else return}function he(a,u){a=String(a),u=u||{};var f=a.length;f!==0&&(a.charCodeAt(f-1)!==10&&a.charCodeAt(f-1)!==13&&(a+=`
|
|
52
52
|
`),a.charCodeAt(0)===65279&&(a=a.slice(1)));var T=new Le(a,u);for(T.input+="\0";T.input.charCodeAt(T.position)===32;)T.lineIndent+=1,T.position+=1;for(;T.position<T.length-1;){var N=T.position;if(ce(T),T.position<=N)for(;T.position<T.length-1;T.position++){var L=T.input.charAt(T.position);if(L==`
|
|
53
|
-
`)break}}var B=T.documents,se=B.length;se>0&&(B[se-1].endPosition=f);for(var le=0,Re=B;le<Re.length;le++){var fe=Re[le];fe.errors=T.errors,fe.startPosition>fe.endPosition&&(fe.startPosition=fe.endPosition)}return B}function ye(a,u,f){f===void 0&&(f={});var T=he(a,f),N,L;for(N=0,L=T.length;N<L;N+=1)u(T[N])}vt.loadAll=ye;function ge(a,u){u===void 0&&(u={});var f=he(a,u);if(f.length!==0){if(f.length===1)return f[0];var T=new r("expected a single document in the stream, but found more");return T.mark=new n("","",0,0,0),T.mark.position=f[0].endPosition,f[0].errors.push(T),f[0]}}vt.load=ge;function Ee(a,u,f){f===void 0&&(f={}),ye(a,u,t.extend({schema:i},f))}vt.safeLoadAll=Ee;function Qe(a,u){return u===void 0&&(u={}),ge(a,t.extend({schema:i},u))}return vt.safeLoad=Qe,vt.loadAll=ye,vt.load=ge,vt.safeLoadAll=Ee,vt.safeLoad=Qe,vt}var Mr={},
|
|
53
|
+
`)break}}var B=T.documents,se=B.length;se>0&&(B[se-1].endPosition=f);for(var le=0,Re=B;le<Re.length;le++){var fe=Re[le];fe.errors=T.errors,fe.startPosition>fe.endPosition&&(fe.startPosition=fe.endPosition)}return B}function ye(a,u,f){f===void 0&&(f={});var T=he(a,f),N,L;for(N=0,L=T.length;N<L;N+=1)u(T[N])}vt.loadAll=ye;function ge(a,u){u===void 0&&(u={});var f=he(a,u);if(f.length!==0){if(f.length===1)return f[0];var T=new r("expected a single document in the stream, but found more");return T.mark=new n("","",0,0,0),T.mark.position=f[0].endPosition,f[0].errors.push(T),f[0]}}vt.load=ge;function Ee(a,u,f){f===void 0&&(f={}),ye(a,u,t.extend({schema:i},f))}vt.safeLoadAll=Ee;function Qe(a,u){return u===void 0&&(u={}),ge(a,t.extend({schema:i},u))}return vt.safeLoad=Qe,vt.loadAll=ye,vt.load=ge,vt.safeLoadAll=Ee,vt.safeLoad=Qe,vt}var Mr={},uu;function rk(){if(uu)return Mr;uu=1,Object.defineProperty(Mr,"__esModule",{value:!0});var e=Er(),t=an(),r=rm(),n=va(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,s=9,c=10,p=13,l=32,d=33,h=34,y=35,g=37,$=38,x=39,P=42,A=44,S=45,v=58,O=62,b=63,k=64,M=91,H=93,G=96,Z=123,te=124,de=125,ee={};ee[0]="\\0",ee[7]="\\a",ee[8]="\\b",ee[9]="\\t",ee[10]="\\n",ee[11]="\\v",ee[12]="\\f",ee[13]="\\r",ee[27]="\\e",ee[34]='\\"',ee[92]="\\\\",ee[133]="\\N",ee[160]="\\_",ee[8232]="\\L",ee[8233]="\\P";var ie=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Pe(F,X){var pe,ae,ce,he,ye,ge,Ee;if(X===null)return{};for(pe={},ae=Object.keys(X),ce=0,he=ae.length;ce<he;ce+=1)ye=ae[ce],ge=String(X[ye]),ye.slice(0,2)==="!!"&&(ye="tag:yaml.org,2002:"+ye.slice(2)),Ee=F.compiledTypeMap[ye],Ee&&o.call(Ee.styleAliases,ge)&&(ge=Ee.styleAliases[ge]),pe[ye]=ge;return pe}function Ie(F){var X,pe,ae;if(X=F.toString(16).toUpperCase(),F<=255)pe="x",ae=2;else if(F<=65535)pe="u",ae=4;else if(F<=4294967295)pe="U",ae=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+pe+e.repeat("0",ae-X.length)+X}function Le(F){this.schema=F.schema||r,this.indent=Math.max(1,F.indent||2),this.skipInvalid=F.skipInvalid||!1,this.flowLevel=e.isNothing(F.flowLevel)?-1:F.flowLevel,this.styleMap=Pe(this.schema,F.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Se(F,X){for(var pe=e.repeat(" ",X),ae=0,ce=-1,he="",ye,ge=F.length;ae<ge;)ce=F.indexOf(`
|
|
54
54
|
`,ae),ce===-1?(ye=F.slice(ae),ae=ge):(ye=F.slice(ae,ce+1),ae=ce+1),ye.length&&ye!==`
|
|
55
55
|
`&&(he+=pe),he+=ye;return he}function qe(F,X){return`
|
|
56
56
|
`+e.repeat(" ",F.indent*X)}function _(F,X){var pe,ae,ce;for(pe=0,ae=F.implicitTypes.length;pe<ae;pe+=1)if(ce=F.implicitTypes[pe],ce.resolve(X))return!0;return!1}function R(F){this.source=F,this.result="",this.checkpoint=0}R.prototype.takeUpTo=function(F){var X;if(F<this.checkpoint)throw X=new Error("position should be > checkpoint"),X.position=F,X.checkpoint=this.checkpoint,X;return this.result+=this.source.slice(this.checkpoint,F),this.checkpoint=F,this},R.prototype.escapeChar=function(){var F,X;return F=this.source.charCodeAt(this.checkpoint),X=ee[F]||Ie(F),this.result+=X,this.checkpoint+=1,this},R.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function C(F,X,pe){var ae,ce,he,ye,ge,Ee,Qe,a,u,f,T,N,L,B,se,le,Re,fe,xe,Be,_e;if(X.length===0){F.dump="''";return}if(X.indexOf("!include")==0){F.dump=""+X;return}if(X.indexOf("!$$$novalue")==0){F.dump="";return}if(ie.indexOf(X)!==-1){F.dump="'"+X+"'";return}for(ae=!0,ce=X.length?X.charCodeAt(0):0,he=l===ce||l===X.charCodeAt(X.length-1),(S===ce||b===ce||k===ce||G===ce)&&(ae=!1),he?(ae=!1,ye=!1,ge=!1):(ye=!0,ge=!0),Ee=!0,Qe=new R(X),a=!1,u=0,f=0,T=F.indent*pe,N=80,T<40?N-=T:N=40,B=0;B<X.length;B++){if(L=X.charCodeAt(B),ae)if(!D(L))ae=!1;else continue;Ee&&L===x&&(Ee=!1),se=ee[L],le=K(L),!(!se&&!le)&&(L!==c&&L!==h&&L!==x?(ye=!1,ge=!1):L===c&&(a=!0,Ee=!1,B>0&&(Re=X.charCodeAt(B-1),Re===l&&(ge=!1,ye=!1)),ye&&(fe=B-u,u=B,fe>f&&(f=fe))),L!==h&&(Ee=!1),Qe.takeUpTo(B),Qe.escapeChar())}if(ae&&_(F,X)&&(ae=!1),xe="",(ye||ge)&&(Be=0,X.charCodeAt(X.length-1)===c&&(Be+=1,X.charCodeAt(X.length-2)===c&&(Be+=1)),Be===0?xe="-":Be===2&&(xe="+")),ge&&f<N&&(ye=!1),a||(ge=!1),ae)F.dump=X;else if(Ee)F.dump="'"+X+"'";else if(ye)_e=q(X,N),F.dump=">"+xe+`
|
|
@@ -67,14 +67,14 @@ ${l.stack}`)}},i=new Map,o=PT(t);o&&e.push(o);const s=new Set;if(r){const p=[];f
|
|
|
67
67
|
`+F.slice(ce+1):ae+=F.slice(he),ae}function D(F){return s!==F&&c!==F&&p!==F&&A!==F&&M!==F&&H!==F&&Z!==F&&de!==F&&y!==F&&$!==F&&P!==F&&d!==F&&te!==F&&O!==F&&x!==F&&h!==F&&g!==F&&v!==F&&!ee[F]&&!K(F)}function K(F){return!(32<=F&&F<=126||F===133||160<=F&&F<=55295||57344<=F&&F<=65533||65536<=F&&F<=1114111)}function V(F,X,pe){var ae="",ce=F.tag,he,ye;for(he=0,ye=pe.length;he<ye;he+=1)W(F,X,pe[he],!1,!1)&&(he!==0&&(ae+=", "),ae+=F.dump);F.tag=ce,F.dump="["+ae+"]"}function re(F,X,pe,ae){var ce="",he=F.tag,ye,ge;for(ye=0,ge=pe.length;ye<ge;ye+=1)W(F,X+1,pe[ye],!0,!0)&&((!ae||ye!==0)&&(ce+=qe(F,X)),ce+="- "+F.dump);F.tag=he,F.dump=ce||"[]"}function we(F,X,pe){var ae="",ce=F.tag,he=Object.keys(pe),ye,ge,Ee,Qe,a;for(ye=0,ge=he.length;ye<ge;ye+=1)a="",ye!==0&&(a+=", "),Ee=he[ye],Qe=pe[Ee],W(F,X,Ee,!1,!1)&&(F.dump.length>1024&&(a+="? "),a+=F.dump+": ",W(F,X,Qe,!1,!1)&&(a+=F.dump,ae+=a));F.tag=ce,F.dump="{"+ae+"}"}function $e(F,X,pe,ae){var ce="",he=F.tag,ye=Object.keys(pe),ge,Ee,Qe,a,u,f;for(ge=0,Ee=ye.length;ge<Ee;ge+=1)f="",(!ae||ge!==0)&&(f+=qe(F,X)),Qe=ye[ge],a=pe[Qe],W(F,X+1,Qe,!0,!0)&&(u=F.tag!==null&&F.tag!=="?"||F.dump&&F.dump.length>1024,u&&(F.dump&&c===F.dump.charCodeAt(0)?f+="?":f+="? "),f+=F.dump,u&&(f+=qe(F,X)),W(F,X+1,a,!0,u)&&(F.dump&&c===F.dump.charCodeAt(0)?f+=":":f+=": ",f+=F.dump,ce+=f));F.tag=he,F.dump=ce||"{}"}function z(F,X,pe){var ae,ce,he,ye,ge,Ee;for(ce=pe?F.explicitTypes:F.implicitTypes,he=0,ye=ce.length;he<ye;he+=1)if(ge=ce[he],(ge.instanceOf||ge.predicate)&&(!ge.instanceOf||typeof X=="object"&&X instanceof ge.instanceOf)&&(!ge.predicate||ge.predicate(X))){if(F.tag=pe?ge.tag:"?",ge.represent){if(Ee=F.styleMap[ge.tag]||ge.defaultStyle,i.call(ge.represent)==="[object Function]")ae=ge.represent(X,Ee);else if(o.call(ge.represent,Ee))ae=ge.represent[Ee](X,Ee);else throw new t("!<"+ge.tag+'> tag resolver accepts not "'+Ee+'" style');F.dump=ae}return!0}return!1}function W(F,X,pe,ae,ce){F.tag=null,F.dump=pe,z(F,pe,!1)||z(F,pe,!0);var he=i.call(F.dump);ae&&(ae=0>F.flowLevel||F.flowLevel>X),(F.tag!==null&&F.tag!=="?"||F.indent!==2&&X>0)&&(ce=!1);var ye=he==="[object Object]"||he==="[object Array]",ge,Ee;if(ye&&(ge=F.duplicates.indexOf(pe),Ee=ge!==-1),Ee&&F.usedDuplicates[ge])F.dump="*ref_"+ge;else{if(ye&&Ee&&!F.usedDuplicates[ge]&&(F.usedDuplicates[ge]=!0),he==="[object Object]")ae&&Object.keys(F.dump).length!==0?($e(F,X,F.dump,ce),Ee&&(F.dump="&ref_"+ge+(X===0?`
|
|
68
68
|
`:"")+F.dump)):(we(F,X,F.dump),Ee&&(F.dump="&ref_"+ge+" "+F.dump));else if(he==="[object Array]")ae&&F.dump.length!==0?(re(F,X,F.dump,ce),Ee&&(F.dump="&ref_"+ge+(X===0?`
|
|
69
69
|
`:"")+F.dump)):(V(F,X,F.dump),Ee&&(F.dump="&ref_"+ge+" "+F.dump));else if(he==="[object String]")F.tag!=="?"&&C(F,F.dump,X);else{if(F.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+he)}F.tag!==null&&F.tag!=="?"&&(F.dump="!<"+F.tag+"> "+F.dump)}return!0}function J(F,X){var pe=[],ae=[],ce,he;for(oe(F,pe,ae),ce=0,he=ae.length;ce<he;ce+=1)X.duplicates.push(pe[ae[ce]]);X.usedDuplicates=new Array(he)}function oe(F,X,pe){i.call(F);var ae,ce,he;if(F!==null&&typeof F=="object")if(ce=X.indexOf(F),ce!==-1)pe.indexOf(ce)===-1&&pe.push(ce);else if(X.push(F),Array.isArray(F))for(ce=0,he=F.length;ce<he;ce+=1)oe(F[ce],X,pe);else for(ae=Object.keys(F),ce=0,he=ae.length;ce<he;ce+=1)oe(F[ae[ce]],X,pe)}function me(F,X){X=X||{};var pe=new Le(X);return J(F,pe),W(pe,0,F,!0,!0)?pe.dump+`
|
|
70
|
-
`:""}Mr.dump=me;function Ae(F,X){return me(F,e.extend({schema:n},X))}return Mr.safeDump=Ae,Mr}var
|
|
71
|
-
`)}function
|
|
72
|
-
`&&t.push(r+1);
|
|
70
|
+
`:""}Mr.dump=me;function Ae(F,X){return me(F,e.extend({schema:n},X))}return Mr.safeDump=Ae,Mr}var ws={},du;function nk(){return du||(du=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});function t(c){if(["true","True","TRUE"].lastIndexOf(c)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(c)>=0)return!1;throw'Invalid boolean "'+c+'"'}e.parseYamlBoolean=t;function r(c){return c.lastIndexOf("0o",0)===0?parseInt(c.substring(2),8):parseInt(c)}function n(c){var p=r(c);if(isNaN(p))throw'Invalid integer "'+c+'"';return p}e.parseYamlInteger=n;function i(c){if([".nan",".NaN",".NAN"].lastIndexOf(c)>=0)return NaN;var p=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,l=p.exec(c);if(l)return l[1]==="-"?-1/0:1/0;var d=parseFloat(c);if(!isNaN(d))return d;throw'Invalid float "'+c+'"'}e.parseYamlFloat=i;var o;(function(c){c[c.null=0]="null",c[c.bool=1]="bool",c[c.int=2]="int",c[c.float=3]="float",c[c.string=4]="string"})(o=e.ScalarType||(e.ScalarType={}));function s(c){if(c===void 0)return o.null;if(c.doubleQuoted||!c.plainScalar||c.singleQuoted)return o.string;var p=c.value;if(["null","Null","NULL","~",""].indexOf(p)>=0||p==null)return o.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(p)>=0)return o.bool;var l=/^[-+]?[0-9]+$/,d=/^0o[0-7]+$/,h=/^0x[0-9a-fA-F]+$/;if(l.test(p)||d.test(p)||h.test(p))return o.int;var y=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,g=/^[-+]?(\.inf|\.Inf|\.INF)$/;return y.test(p)||g.test(p)||[".nan",".NaN",".NAN"].indexOf(p)>=0?o.float:o.string}e.determineScalarType=s})(ws)),ws}var fu;function ik(){return fu||(fu=1,(function(e){function t(i){for(var o in i)e.hasOwnProperty(o)||(e[o]=i[o])}Object.defineProperty(e,"__esModule",{value:!0});var r=tk();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=rk();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=an(),t(mo()),t(nk())})(Go)),Go}var Nr=ik();const ok=150,sk=3;function Ls(e,t){As.enabled=t;const{start:r,end:n={line:r.line,col:r.col+1},source:i}=e,o=i.getLines(),s=r.line,c=Math.max(Math.min(n.line,o.length),r.line);let p=Math.max(c-s-sk+1,0);p<2&&(p=0);const l=[];let d=0;for(let y=s;y<=c&&!(p>0&&y>=c-p);y++){const g=o[y-1]||"";g!==""&&(d=Ki(g));const $=y===s?r.col-1:d,x=y===c?n.col-1:g.length;l.push([`${y}`,h(g,$,x,De.red)]),t||l.push(["",mu(g,$,x)])}return p>0&&(l.push(["…",`${wa(d)}${De.gray(`< ${p} more lines >`)}`]),l.push([`${c}`,h(o[c-1],-1,n.col-1,De.red)]),t||l.push(["",mu(o[c-1],-1,n.col-1)])),ak([[`${s-2}`,h(o[s-1-2])],[`${s-1}`,h(o[s-1-1])],...l,[`${c+1}`,h(o[c-1+1])],[`${c+2}`,h(o[c-1+2])]]);function h(y,g=-1,$=1/0,x=De.gray){return!t||!y?y:(g===-1&&(g=Ki(y)),$=Math.min($,y.length),y.substr(0,g)+x(y.substring(g,$))+y.substr($))}}function ak(e){const t=e.filter(([i,o])=>o!==void 0),r=Math.max(...t.map(([i])=>i.length)),n=Math.min(...t.map(([i,o])=>o===""?1/0:Ki(o)));return t.map(([i,o])=>De.gray(pk(r,i)+" |")+(o?" "+ck(o.substring(n)):"")).join(`
|
|
71
|
+
`)}function ck(e,t=ok){const r=e.length-t;if(r>0){const n=De.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function mu(e,t=-1,r=1/0){return t===-1&&(t=Ki(e)),r=Math.min(r,e.length),wa(t)+"^".repeat(Math.max(r-t,1))}function wa(e){return" ".repeat(e)}function pk(e,t){return wa(e-t.length)+t}function Ki(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function jt(e){if(e.pointer===void 0)return e;const{source:t,pointer:r,reportOnKey:n}=e,i=t.getAst(Nr.safeLoad),o=nm(i,r,!!n);return{...e,pointer:void 0,...uk(t,o?.startPosition??1,o?.endPosition??1)}}const hu=new WeakMap;function lk(e){let t=hu.get(e);if(!t){t=[0];for(let r=0;r<e.body.length;r++)e.body[r]===`
|
|
72
|
+
`&&t.push(r+1);hu.set(e,t)}return t}function yu(e,t,r){let n=0,i=t.length-1;for(;n<i;){const c=Math.floor((n+i+1)/2);t[c]<=r?n=c:i=c-1}const o=t[n];let s=0;return n>0&&e.body[o]==="\r"&&r>o&&(s=1),{line:n+1,col:r-o+1-s}}function uk(e,t,r){if(t===r)return{start:{line:1,col:1},end:{line:1,col:1}};const n=lk(e),i=yu(e,n,t),o=yu(e,n,r-1);return{start:i,end:{line:o.line,col:o.col+1}}}function nm(e,t,r){const n=j.parsePointer(t.substr(2));if(e===void 0)return;let i=e;for(const o of n)if(i.kind===Nr.Kind.MAP){const s=i.mappings.find(c=>c.key.value===o);if(!s||(i=s,!s?.value))break;i=s.value}else if(i.kind===Nr.Kind.SEQ){const s=i.items[parseInt(o,10)];if(!s)break;i=s}if(r){const o=i.parent;return!o||o.kind===Nr.Kind.SEQ?i:o.kind===Nr.Kind.MAPPING?o.key:i}else return i}const dk={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},gu={warn:e=>De.bgYellow(De.black(e)),error:De.bgRed},im={warn:De.yellow,error:De.red},lr={warn:"Warning",error:"Error"},fk={error:"critical",warn:"minor"},mk=+(j.env.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function Wi(e){return e==="error"?1:2}function om(e){let t=0,r=0,n=0;for(const i of e){if(i.ignored){n++;continue}i.severity==="error"&&t++,i.severity==="warn"&&r++}return{errors:t,warnings:r,ignored:n}}function hk(e,t){const{maxProblems:r=100,cwd:n=j.isBrowser?"":process.cwd(),format:i="codeframe",color:o=As.enabled,totals:s=om(e),version:c="2.0",command:p}=t;As.enabled=o;const l=e.length;e=e.filter(v=>!v.ignored);const d=l-e.length;if(e=e.sort((v,O)=>Wi(v.severity)-Wi(O.severity)).slice(0,r),!l&&i!=="json"&&i!=="junit")return;switch(i){case"json":y();break;case"codeframe":for(let v=0;v<e.length;v++){const O=e[v];p==="bundle"||p==="check-config"||p==="split"?Me.info(`${$(O,v)}
|
|
73
73
|
`):Me.output(`${$(O,v)}
|
|
74
|
-
`)}break;case"stylish":{const v=
|
|
74
|
+
`)}break;case"stylish":{const v=xs(e);for(const[O,{ruleIdPad:b,locationPad:k,fileProblems:M}]of Object.entries(v)){Me.output(`${De.blue(j.isAbsoluteUrl(O)?O:Y.pathBrowserifyExports.relative(n,O))}:
|
|
75
75
|
`);for(let H=0;H<M.length;H++){const G=M[H];Me.output(`${x(G,k,b)}
|
|
76
76
|
`)}Me.output(`
|
|
77
|
-
`)}break}case"markdown":{const v=
|
|
77
|
+
`)}break}case"markdown":{const v=xs(e);for(const[O,{fileProblems:b}]of Object.entries(v)){Me.output(`## Lint: ${j.isAbsoluteUrl(O)?O:Y.pathBrowserifyExports.relative(n,O)}
|
|
78
78
|
|
|
79
79
|
`),Me.output(`| Severity | Location | Problem | Message |
|
|
80
80
|
`),Me.output(`|---|---|---|---|
|
|
@@ -85,7 +85,7 @@ Errors: ${s.errors}
|
|
|
85
85
|
`):Me.output(`Validation successful
|
|
86
86
|
`),s.warnings>0&&Me.output(`Warnings: ${s.warnings}
|
|
87
87
|
`),Me.output(`
|
|
88
|
-
`)}break}case"checkstyle":{const v=
|
|
88
|
+
`)}break}case"checkstyle":{const v=xs(e);Me.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
89
89
|
`),Me.output(`<checkstyle version="4.3">
|
|
90
90
|
`);for(const[O,{fileProblems:b}]of Object.entries(v))Me.output(`<file name="${wt(j.isAbsoluteUrl(O)?O:Y.pathBrowserifyExports.relative(n,O))}">
|
|
91
91
|
`),b.forEach(A),Me.output(`</file>
|
|
@@ -95,36 +95,36 @@ Errors: ${s.errors}
|
|
|
95
95
|
`);for(const[k,M]of Object.entries(b)){const H=j.isAbsoluteUrl(k)?k:Y.pathBrowserifyExports.relative(n,k),G=M.filter(te=>te.severity==="error").length,Z=M.filter(te=>te.severity==="warn").length;Me.output(`<testsuite name="${wt(H)}" tests="${M.length}" errors="${G}" failures="${Z}">
|
|
96
96
|
`),M.forEach(te=>S(te,H)),Me.output(`</testsuite>
|
|
97
97
|
`)}Me.output(`</testsuites>
|
|
98
|
-
`);break}case"codeclimate":h();break;case"summary":
|
|
99
|
-
`);function h(){const v=e.map(O=>{const b=O.location[0],k=
|
|
98
|
+
`);break}case"codeclimate":h();break;case"summary":yk(e);break;case"github-actions":bk(e,n)}l-d>r&&Me.info(`< ... ${l-r} more problems hidden > ${De.gray("increase with `--max-problems N`")}
|
|
99
|
+
`);function h(){const v=e.map(O=>{const b=O.location[0],k=jt(b);return{description:O.message,location:{path:j.isAbsoluteUrl(b.source.absoluteRef)?b.source.absoluteRef:Y.pathBrowserifyExports.relative(n,b.source.absoluteRef),lines:{begin:k.start.line}},severity:fk[O.severity],fingerprint:`${O.ruleId}${O.location.length>0?"-"+O.location[0].pointer:""}`}});Me.output(JSON.stringify(v,null,2))}function y(){const v={totals:s,version:c,problems:e.map(O=>{const b={...O,location:O.location.map(k=>{const{start:M,end:H}=jt(k);return{...k,start:M,end:H,source:{ref:j.isAbsoluteUrl(k.source.absoluteRef)?k.source.absoluteRef:Y.pathBrowserifyExports.relative(n,k.source.absoluteRef)}}}),from:O.from?{...O.from,source:{ref:j.isAbsoluteUrl(O.from?.source.absoluteRef)?O.from?.source.absoluteRef:Y.pathBrowserifyExports.relative(n,O.from?.source.absoluteRef||n)}}:void 0};if(j.env.FORMAT_JSON_WITH_CODEFRAMES){const k=O.location[0],M=jt(k);b.codeframe=Ls(M,o)}return b})};Me.output(JSON.stringify(v,null,2))}function g(v){const{severity:O}=v;if(!gu[O])throw new Error(dk.INVALID_SEVERITY_LEVEL);return gu[O]}function $(v,O){const b=g(v),k=v.location[0],M=j.isAbsoluteUrl(k.source.absoluteRef)?k.source.absoluteRef:Y.pathBrowserifyExports.relative(n,k.source.absoluteRef),H=jt(k),G=k.pointer?De.gray(`at ${k.pointer}`):"",Z=`${M}:${H.start.line}:${H.start.col}`;return`[${O+1}] ${b(Z)} ${G}
|
|
100
100
|
|
|
101
101
|
${v.message}
|
|
102
102
|
|
|
103
|
-
`+
|
|
103
|
+
`+sm(v)+Ls(H,o)+`
|
|
104
104
|
|
|
105
|
-
`+
|
|
105
|
+
`+gk(n,v.from)+`${lr[v.severity]} was generated by the ${De.blue(v.ruleId)} rule.
|
|
106
106
|
|
|
107
107
|
`+(v.reference?`Reference: ${De.blue(v.reference)}
|
|
108
108
|
|
|
109
|
-
`:"")}function x(v,O,b){const k=
|
|
109
|
+
`:"")}function x(v,O,b){const k=im[v.severity];if(!lr[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const M=k(lr[v.severity].toLowerCase().padEnd(7)),{start:H}=v.location[0];return` ${`${H.line}:${H.col}`.padEnd(O)} ${M} ${v.ruleId.padEnd(b)} ${v.message}`}function P(v){if(!lr[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const O=lr[v.severity].toLowerCase(),{start:b}=v.location[0];return`| ${O} | line ${`${b.line}:${b.col}`} | [${v.ruleId}](https://redocly.com/docs/cli/rules/${v.ruleId}/) | ${v.message.replaceAll(`
|
|
110
110
|
`,"<br>")} |`}function A(v){const{line:O,col:b}=v.location[0].start,k=v.severity=="warn"?"warning":"error",M=wt(v.message),H=wt(v.ruleId);Me.output(`<error line="${O}" column="${b}" severity="${k}" message="${M}" source="${H}" />
|
|
111
|
-
`)}function S(v,O){const b=v.location[0],{start:k}=
|
|
111
|
+
`)}function S(v,O){const b=v.location[0],{start:k}=jt(b),M=v.severity==="error"?"error":"failure",H=wt(v.ruleId),G=wt(v.message),Z=[`Rule: ${H}`,`Severity: ${wt(v.severity)}`,`File: ${wt(O)}`,`Line: ${k.line}`,`Column: ${k.col}`];b.pointer&&Z.push(`Pointer: ${wt(b.pointer)}`),Z.push(`Message: ${G}`),Me.output(`<testcase classname="${H}" name="${H}" file="${wt(O)}" line="${k.line}">
|
|
112
112
|
`),Me.output(`<${M} message="${G}" type="${H}">${Z.join(`
|
|
113
113
|
`)}</${M}>
|
|
114
114
|
`),Me.output(`</testcase>
|
|
115
|
-
`)}}function
|
|
115
|
+
`)}}function yk(e){const t={};for(const n of e)t[n.ruleId]=t[n.ruleId]||{count:0,severity:n.severity},t[n.ruleId].count++;const r=Object.entries(t).sort(([,n],[,i])=>Wi(n.severity)-Wi(i.severity)||i.count-n.count);for(const[n,i]of r){const o=im[i.severity],s=o(lr[i.severity].toLowerCase().padEnd(7));Me.output(`${s} ${n}: ${i.count}
|
|
116
116
|
`)}Me.output(`
|
|
117
|
-
`)}function
|
|
117
|
+
`)}function gk(e,t){if(!t)return"";const r=Y.pathBrowserifyExports.relative(e,t.source.absoluteRef),n=jt(t),i=`${r}:${n.start.line}:${n.start.col}`,o=t.pointer?De.gray(`at ${t.pointer}`):"";return`referenced from ${De.blue(i)} ${o}
|
|
118
118
|
|
|
119
|
-
`}function
|
|
119
|
+
`}function sm(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
120
120
|
|
|
121
121
|
`:`Did you mean:
|
|
122
|
-
- ${e.suggest.slice(0,
|
|
122
|
+
- ${e.suggest.slice(0,mk).join(`
|
|
123
123
|
- `)}
|
|
124
124
|
|
|
125
|
-
`}const
|
|
125
|
+
`}const xs=e=>{const t={};for(const r of e){const n=r.location[0].source.absoluteRef;t[n]=t[n]||{fileProblems:[],ruleIdPad:0,locationPad:0};const i={...r,location:r.location.map(jt)};t[n].fileProblems.push(i),t[n].ruleIdPad=Math.max(r.ruleId.length,t[n].ruleIdPad),t[n].locationPad=Math.max(Math.max(...i.location.map(o=>`${o.start.line}:${o.start.col}`.length)),t[n].locationPad)}return t};function wt(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 bk(e,t){for(const s of e)for(const c of s.location.map(jt)){let p;switch(s.severity){case"error":p="error";break;case"warn":p="warning";break}const l=sm(s),d=s.reference?`Reference: ${s.reference}
|
|
126
126
|
|
|
127
127
|
`:"",h=s.message+(l!==""||d!==""?`
|
|
128
128
|
|
|
129
129
|
`:"")+l+d,y={title:s.ruleId,file:j.isAbsoluteUrl(c.source.absoluteRef)?c.source.absoluteRef:Y.pathBrowserifyExports.relative(t,c.source.absoluteRef),line:c.start.line,col:c.start.col,endLine:c.end?.line,endColumn:c.end?.col};Me.output(`::${p} ${r(y)}::${i(h)}
|
|
130
|
-
`)}function r(s){return Object.entries(s).filter(([,c])=>c!=null).map(([c,p])=>`${c}=${o(p)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:
|
|
130
|
+
`)}function r(s){return Object.entries(s).filter(([,c])=>c!=null).map(([c,p])=>`${c}=${o(p)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:Ek,...vk}=Ji.properties,wk={...Ji,properties:vk};async function xk(e){const{ref:t,externalRefResolver:r=new j.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),xa({document:n,...e,externalRefResolver:r})}async function Sk(e){const{source:t,absoluteRef:r,externalRefResolver:n=new j.BaseResolver(e.config.resolve)}=e,i=j.makeDocumentFromString(t,r||"/");return xa({document:i,...e,externalRefResolver:n})}async function xa(e){const{document:t,customTypes:r,externalRefResolver:n,config:i}=e;if(j.isGraphqlRef(t.source.absoluteRef)){const{lintGraphqlDocument:g}=await Promise.resolve().then(()=>require("./replay-lint-graphql-C6bTArZZ.js"));return g({document:t,config:i})}const o=$r(t.parsed),s=i.getRulesForSpecVersion(da(o)),c=j.normalizeTypes(i.extendTypes(r??Yr(o),o),i),p={problems:[],specVersion:o,config:i,visitorsData:{}},l=Br(s,i,"preprocessors",o),d=Br(s,i,"rules",o);let h=await j.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n});l.length>0&&(St({document:t,rootType:c.Root,normalizedVisitors:xt(l,c),resolvedRefMap:h,ctx:p}),h=await j.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const y=xt(d,c);return St({document:t,rootType:c.Root,normalizedVisitors:y,resolvedRefMap:h,ctx:p}),p.problems.map(g=>i.addProblemToIgnore(g))}async function Pk(e){const{severity:t,externalRefResolver:r=new j.BaseResolver,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const i={problems:[],specVersion:"config",config:n,visitorsData:{}},o=j.normalizeTypes(e.externalConfigTypes||ca(wk,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Nt()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Dt()}],c=xt(s,o),p=n.resolvedRefMap||await j.resolveDocument({rootDocument:n.document,rootType:o.ConfigRoot,externalRefResolver:r});return St({document:n.document,rootType:o.ConfigRoot,normalizedVisitors:c,resolvedRefMap:p,ctx:i}),i.problems}exports.AbortFlowError=fT;exports.Ai=MP;exports.Ajv=dd;exports.Arazzo1Types=ot;exports.Arazzo1_1Types=ju;exports.Assertions=zt;exports.AsyncApi2Types=qu;exports.AsyncApi3Types=Cu;exports.CONFIG_BUNDLER_VISITOR_ID=pa;exports.CONFIG_FILE_NAME=$s;exports.Config=Zr;exports.ConfigTypes=gd;exports.ConfigValidationError=b_;exports.DEFAULT_CONFIG=bd;exports.DEFAULT_PROJECT_PLUGIN_PATHS=wd;exports.HandledError=Ds;exports.IGNORE_BANNER=vd;exports.IGNORE_FILE=Ci;exports.NoUnresolvedRefs=Dt;exports.Oas2Types=vu;exports.Oas3Types=Pt;exports.Oas3_1Types=Fe;exports.Oas3_2Types=nt;exports.OpenRpcTypes=Du;exports.Overlay1Types=Ys;exports.PLUGINS_COLLECTOR_VISITOR_ID=la;exports.Struct=Nt;exports.bundle=yT;exports.bundleDocument=ga;exports.bundleFromString=gT;exports.clearPluginsCache=AT;exports.createConfig=IT;exports.createConfigTypes=ca;exports.dequal=Mt;exports.detectSpec=$r;exports.findConfig=kT;exports.formatProblems=hk;exports.getAstNodeByPointer=nm;exports.getCodeframe=Ls;exports.getLineColLocation=jt;exports.getMajorSpecVersion=da;exports.getNodeTypesFromJSONSchema=fd;exports.getPluginCacheVersion=PT;exports.getTotals=om;exports.getTypes=Yr;exports.initRules=Br;exports.isEmptyObject=hr;exports.isNotEmptyArray=Fr;exports.isString=it;exports.keysOf=Us;exports.lint=xk;exports.lintConfig=Pk;exports.lintDocument=xa;exports.lintFromString=Sk;exports.loadConfig=TT;exports.loadIgnoreConfig=em;exports.logger=Me;exports.mapTypeToComponent=Ms;exports.normalizeVisitors=xt;exports.o=Ze;exports.pluralize=Yh;exports.qi=DP;exports.query=sT;exports.regexFromString=Lr;exports.resolvePlugins=Zf;exports.slash=Fs;exports.walkDocument=St;exports.xmlEscape=wt;
|