@redocly/replay 0.29.0-next.7 → 0.29.0-next.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (62) hide show
  1. package/dist/{replay-AiChatProvider-PrZdp8BS.js → replay-AiChatProvider-BDqzEpdu.js} +6 -6
  2. package/dist/{replay-AiChatProvider-CsMz9Ny8.js → replay-AiChatProvider-DAWT4hAb.js} +1 -1
  3. package/dist/{replay-AiChatSqliteDBStorage-Ch8nYYAX.js → replay-AiChatSqliteDBStorage-BJ0kltvn.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-2UcwycP7.js → replay-AiChatSqliteDBStorage-Dkz4d7Rx.js} +1 -1
  5. package/dist/{replay-AiPanel-jeLVfdPf.js → replay-AiPanel-C5wMkLIc.js} +31 -19
  6. package/dist/{replay-AiPanel-BVP0e_Ra.js → replay-AiPanel-CkVIJhGF.js} +2 -2
  7. package/dist/{replay-FileWatcher-CCeuRwSI.js → replay-FileWatcher-D3FVyQbX.js} +2 -2
  8. package/dist/{replay-FileWatcher-ByAuX5yb.js → replay-FileWatcher-DW7u83d1.js} +1 -1
  9. package/dist/{replay-SemanticSearchService-CWnYSg2x.js → replay-SemanticSearchService-DAt35B37.js} +1 -1
  10. package/dist/{replay-SemanticSearchService-CqpTIrD8.js → replay-SemanticSearchService-DgroPziI.js} +1 -1
  11. package/dist/{replay-SqliteDBStorage-8Q5sVT__.js → replay-SqliteDBStorage-BG22uvLP.js} +1 -1
  12. package/dist/{replay-SqliteDBStorage-DlhoTUy-.js → replay-SqliteDBStorage-CXZGasJG.js} +1 -1
  13. package/dist/{replay-TauriFileSystemAdapter-CsxsNEHS.js → replay-TauriFileSystemAdapter-BY888O_1.js} +1 -1
  14. package/dist/{replay-TauriFileSystemAdapter-D2TWeqg4.js → replay-TauriFileSystemAdapter-CGGDSxKe.js} +1 -1
  15. package/dist/{replay-TauriRootStorage-DVr-1sCz.js → replay-TauriRootStorage-CnLeXsev.js} +1 -1
  16. package/dist/{replay-TauriRootStorage-DU5cTkJu.js → replay-TauriRootStorage-DaKRlo3-.js} +2 -2
  17. package/dist/{replay-agent-loop-BIWlrZnE.js → replay-agent-loop-CzPV4LI2.js} +3 -3
  18. package/dist/{replay-agent-loop-BclAkqxN.js → replay-agent-loop-D1h5J-uE.js} +1 -1
  19. package/dist/{replay-ai-chat-mappers-tMl4GKpA.js → replay-ai-chat-mappers-BlVOCvVt.js} +1 -1
  20. package/dist/{replay-ai-chat-mappers-IIq8wpuk.js → replay-ai-chat-mappers-DsLIxLaN.js} +1 -1
  21. package/dist/{replay-create-model-CJJtDY2W.js → replay-create-model-KIUQ2An5.js} +3 -3
  22. package/dist/{replay-create-model-Dbu-RKR1.js → replay-create-model-_BaJNmZq.js} +3 -3
  23. package/dist/{replay-db-CiDc3f4H.js → replay-db-CroFZCLK.js} +1 -1
  24. package/dist/{replay-db-DuJyF4Fr.js → replay-db-DoLsw4tF.js} +1 -1
  25. package/dist/{replay-external-resolver-CUHRd2KI.js → replay-external-resolver-BwZvmuC9.js} +1 -1
  26. package/dist/{replay-external-resolver-hjlmO2_f.js → replay-external-resolver-DUzbkx07.js} +2 -2
  27. package/dist/{replay-index-CI5fXezW.js → replay-index-54ROnLOe.js} +1133 -1133
  28. package/dist/{replay-index-BiX81nFD.js → replay-index-AuXMzqmR.js} +1 -1
  29. package/dist/{replay-index-MZZGINEM.js → replay-index-B1cRNYAB.js} +1 -1
  30. package/dist/replay-index-B8puA2u2.js +1 -0
  31. package/dist/{replay-index-BvHpl6n6.js → replay-index-BBDKuDcc.js} +1 -1
  32. package/dist/{replay-index-DV7TIbcG.js → replay-index-BI0q2SFK.js} +1 -1
  33. package/dist/replay-index-Cj1-cwJH.js +4 -0
  34. package/dist/{replay-index-BJkWpnD3.js → replay-index-DjHbio61.js} +1 -1
  35. package/dist/{replay-index-BRps0K8N.js → replay-index-SX6LT-jT.js} +55 -59
  36. package/dist/{replay-index-jO1drB_G.js → replay-index-VCzOY16S.js} +18955 -19206
  37. package/dist/{replay-index-PvlFMxhx.js → replay-index-zSldZ9CB.js} +1 -1
  38. package/dist/{replay-index-twpStg_q.js → replay-index-zmQXrIpO.js} +1 -1
  39. package/dist/replay-lint-C8g-xqrP.js +130 -0
  40. package/dist/{replay-lint-DG6Bpj__.js → replay-lint-YAy8-Dtq.js} +11410 -9532
  41. package/dist/{replay-lint-graphql-DCVDIu3K.js → replay-lint-graphql-Bpd88C9w.js} +2 -2
  42. package/dist/{replay-lint-graphql-y5Q8AbLi.js → replay-lint-graphql-CZBwQl0k.js} +1 -1
  43. package/dist/{replay-periodic-revalidation-BwkTngTv.js → replay-periodic-revalidation-BzoE_vj1.js} +1 -1
  44. package/dist/{replay-periodic-revalidation-8ApdHWIQ.js → replay-periodic-revalidation-CNYI9Ked.js} +1 -1
  45. package/dist/{replay-resolve-mFgjNvXW.js → replay-resolve-DrE6Bsmy.js} +8 -8
  46. package/dist/{replay-resolve-DXK9kMSh.js → replay-resolve-jATjJR5l.js} +1 -1
  47. package/dist/{replay-respect-run-C_EkBybE.js → replay-respect-run-DIYJQvbB.js} +3515 -4982
  48. package/dist/replay-respect-run-tWrs79VV.js +73 -0
  49. package/dist/{replay-tauri-path-DQJXzOyo.js → replay-tauri-path-6SQ7odaf.js} +2 -2
  50. package/dist/{replay-tauri-path-9izlvCOU.js → replay-tauri-path-Duj7dsaA.js} +1 -1
  51. package/dist/{replay-useAiChatQueries-BIfk0TxI.js → replay-useAiChatQueries-B1XeG3iY.js} +4 -4
  52. package/dist/{replay-useAiChatQueries-d02SKxxb.js → replay-useAiChatQueries-__VXRF5i.js} +1 -1
  53. package/dist/{replay-validate-key-BBw0AkiP.js → replay-validate-key-BGMRyGdn.js} +1 -1
  54. package/dist/{replay-validate-key-DO3mXt_J.js → replay-validate-key-Dl8sa_9N.js} +2 -2
  55. package/dist/replay.cjs +1 -1
  56. package/dist/replay.d.ts +32 -1
  57. package/dist/replay.js +1 -1
  58. package/package.json +4 -4
  59. package/dist/replay-index-BKy0VJhC.js +0 -1
  60. package/dist/replay-index-DUwBFEXC.js +0 -4
  61. package/dist/replay-lint-DviuCvyd.js +0 -121
  62. package/dist/replay-respect-run-Xc6vPsJi.js +0 -82
@@ -0,0 +1,130 @@
1
+ "use strict";const Y=require("./replay-index-54ROnLOe.js"),j=require("./replay-resolve-jATjJR5l.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 mr(e){return Y.isPlainObject(e)&&Object.keys(e).length===0}function Ur(e){return Array.isArray(e)&&e.length>0}function nt(e){return typeof e=="string"}function Vs(e){return e?Object.keys(e):[]}function uy(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:{}},dy=Ai.exports,oc;function fy(){return oc||(oc=1,(function(e,t){(function(r,n){typeof uy=="function"?e.exports=n():r.pluralize=n()})(dy,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 my=fy();const vu=Y.getDefaultExportFromCjs(my);function hy(e,t,r){return e.split(" ").map(n=>vu(n,t,r)).join(" ")}function Hs(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function Nr(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const yy=/^[0-9][0-9Xx]{2}$/,gy={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-"},by={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-"},vy={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},wy={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},xy={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Sy={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Py={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},$y={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-"},Ay={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},Ey={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},Oy={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Ry={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-"},_y={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-"},Ty={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>yy.test(t)?"Response":void 0},ky={properties:{description:{type:"string"},schema:"Schema",headers:j.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Iy={properties:{},additionalProperties:{isExample:!0}},qy={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-"},Cy={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},jy={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},My={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-"},Dy={properties:{},additionalProperties:{type:"string"}},Ny={properties:{},additionalProperties:"Schema"},Ly={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},Uy={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},Fy={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-"},zy={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},By={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},wu={Root:gy,Tag:Cy,TagList:j.listOf("Tag"),TagGroups:j.listOf("TagGroup"),TagGroup:jy,ExternalDocs:Oy,Example:By,ExamplesMap:j.mapOf("Example"),EnumDescriptions:Dy,SecurityRequirement:zy,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:by,Contact:wy,License:xy,Logo:vy,Paths:Sy,PathItem:Py,Parameter:Ry,ParameterItems:_y,ParameterList:j.listOf("Parameter"),Operation:$y,Examples:Iy,Header:qy,Responses:Ty,Response:ky,Schema:My,Xml:Ly,SchemaProperties:Ny,NamedSchemas:j.mapOf("Schema"),NamedResponses:j.mapOf("Response"),NamedParameters:j.mapOf("Parameter"),NamedSecuritySchemes:j.mapOf("SecurityScheme"),SecurityScheme:Fy,Scopes:Uy,XCodeSample:Ay,XCodeSampleList:j.listOf("XCodeSample"),XServerList:j.listOf("XServer"),XServer:Ey},Vy=/^[0-9][0-9Xx]{2}$/,Hy={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."},Ky={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."},Wy={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"},Qy={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"},Gy={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."},Yy={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."},Jy={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."},Xy={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"},Zy={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."},eg={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."},tg={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."},rg={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"},ng={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},ig={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"},og={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"},sg={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"},ag={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."},cg={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."},pg={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},lg={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"},ug={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"},dg={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"},fg={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"},mg={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."},hg={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Vy.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"},yg={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."},gg={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."},Ks="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",xu=j.listOf("Schema",{name:"AllOf",description:Ks}),Su=j.listOf("Schema",{name:"AnyOf",description:Ks}),Pu=j.listOf("Schema",{name:"OneOf",description:Ks}),bg={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:xu,anyOf:Su,oneOf:Pu,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"},vg={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."},wg={properties:{},additionalProperties:"Schema"},xg={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"},Sg={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."},Pg={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"},$g={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."},Ag={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."},Eg={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."},Og={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."},Rg={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},_g={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-"},Tg={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"},St={Root:Hy,Tag:Ky,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:Wy,ExternalDocs:Qy,Server:Gy,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:Yy,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:Jy,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:Xy,Contact:eg,License:tg,Paths:rg,PathItem:ig,Parameter:og,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:sg,Callback:j.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:j.mapOf("Callback"),RequestBody:cg,MediaTypesMap:pg,MediaType:lg,Example:ug,ExamplesMap:j.mapOf("Example"),Encoding:dg,EncodingMap:j.mapOf("Encoding"),EnumDescriptions:fg,Header:mg,HeadersMap:j.mapOf("Header"),Responses:hg,Response:yg,Link:gg,Logo:Zy,Schema:bg,AllOf:xu,AnyOf:Su,OneOf:Pu,Xml:vg,SchemaProperties:wg,DiscriminatorMapping:xg,Discriminator:Sg,Components:Pg,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:$g,PasswordFlow:Ag,ClientCredentials:Eg,AuthorizationCode:Og,OAuth2Flows:Rg,SecurityScheme:_g,XCodeSample:ag,XCodeSampleList:j.listOf("XCodeSample"),XUsePkce:Tg,WebhooksMap:ng},kg={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."},Ig={...St.License,properties:{...St.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},qg={...St.Info,properties:{...St.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Cg={...St.Components,properties:{...St.Components.properties,pathItems:"NamedPathItems"}},jg={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."},Mg={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-"},sc={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Dg={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-"},Ng={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Fe={...St,Info:qg,Root:kg,Schema:Mg,SchemaProperties:sc,PatternProperties:sc,License:Ig,Components:Cg,NamedPathItems:j.mapOf("PathItem"),SecurityScheme:Dg,Operation:jg,DependentRequired:Ng},Lg={...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."}}},Ug={...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."},Fg={...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."},zg={...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."},Bg={...Fe.OAuth2Flows,properties:{...Fe.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Vg={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."},Hg={...St.PathItem,properties:{...St.PathItem.properties,query:"Operation",additionalOperations:j.mapOf("Operation")}},Kg={...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"]}}},Wg={...Fe.Response,properties:{...Fe.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Qg={...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"}},Gg={...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}}}},Yg={extensionsPrefix:"x-",properties:{...Fe.Components.properties,mediaTypes:"NamedMediaTypes"}},Jg={...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."}}},Xg={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."},Zg={...Fe.Schema,properties:{...Fe.Schema.properties,xml:"Xml"}},rt={...Fe,Root:Lg,Tag:Ug,Server:Fg,SecurityScheme:zg,OAuth2Flows:Bg,DeviceAuthorization:Vg,PathItem:Hg,Parameter:Kg,Response:Wg,MediaType:Qg,Discriminator:Gg,Example:Jg,Xml:Xg,Schema:Zg,Components:Yg,NamedMediaTypes:j.mapOf("MediaTypesMap")},eb={properties:{},description:"Protocol-specific information for an HTTP channel."},tb={properties:{},description:"Protocol-specific information for an HTTP server."},rb={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},nb={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."},ib={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},ob={properties:{},description:"Protocol-specific information for a WebSockets server."},sb={properties:{},description:"Protocol-specific information for a WebSockets message."},ab={properties:{},description:"Protocol-specific information for a WebSockets operation."},cb={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"}}},pb={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},lb={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},ub={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},db={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},fb={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},mb={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},hb={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},yb={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},gb={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."},bb={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."},vb={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."},wb={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},xb={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},Sb={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."},Pb={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},$b={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},Ab={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},Eb={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},Ob={properties:{},description:"Protocol-specific information for an MQTT channel."},Rb={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},_b={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."},Tb={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."},kb={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."},Ib={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},qb={properties:{sessionExpiryInterval:e=>Y.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Cb={properties:{},description:"Protocol-specific information for an MQTT 5 message."},jb={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Mb={properties:{},description:"Protocol-specific information for a NATS channel."},Db={properties:{},description:"Protocol-specific information for a NATS server."},Nb={properties:{},description:"Protocol-specific information for a NATS message."},Lb={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},Ub={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Fb={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},zb={properties:{jmsConnectionFactory:{type:"string"},properties:j.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Bb={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Vb={properties:{},description:"Protocol-specific information for a JMS operation."},Hb={properties:{},description:"Protocol-specific information for a Solace channel."},Kb={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Wb={properties:{},description:"Protocol-specific information for a Solace message."},Qb={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"}}}},Gb={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."},Yb={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."},Jb={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},Xb={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},Zb={properties:{statements:j.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},ev={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},tv={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},rv={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."},nv={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."},iv={properties:{topic:"SnsIdentifier",consumers:j.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},ov={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},sv={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},av={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},cv={properties:{statements:j.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},$u={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)."},pv={...$u,required:["name"],description:"Describes an SQS queue (operation-level definition)."},lv={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},uv={properties:{queues:j.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},dv={properties:{},description:"Protocol-specific information for a STOMP channel."},fv={properties:{},description:"Protocol-specific information for a STOMP server."},mv={properties:{},description:"Protocol-specific information for a STOMP message."},hv={properties:{},description:"Protocol-specific information for a STOMP operation."},yv={properties:{},description:"Protocol-specific information for a Redis channel."},gv={properties:{},description:"Protocol-specific information for a Redis server."},bv={properties:{},description:"Protocol-specific information for a Redis message."},vv={properties:{},description:"Protocol-specific information for a Redis operation."},wv={properties:{},description:"Protocol-specific information for a Mercure channel."},xv={properties:{},description:"Protocol-specific information for a Mercure server."},Sv={properties:{},description:"Protocol-specific information for a Mercure message."},Pv={properties:{},description:"Protocol-specific information for a Mercure operation."},$v={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."},Av={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},Ev={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},Ov={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."},Rv={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."},_v={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},Tv={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."},kv={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."},Iv={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},qv={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},Cv={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},jv={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},Mv={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."},Dv={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},Nv={properties:{},description:"Protocol-specific information for a ROS 2 channel."},Lv={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."},Uv={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."},Fv={properties:{},description:"Protocol-specific information for a ROS 2 message."},zv={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."},Bv={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."},Vv={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."},Hv={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:tb,HttpChannelBinding:eb,HttpMessageBinding:rb,HttpOperationBinding:nb,WsServerBinding:ob,WsChannelBinding:ib,WsMessageBinding:sb,WsOperationBinding:ab,KafkaServerBinding:lb,KafkaTopicConfiguration:cb,KafkaChannelBinding:pb,KafkaMessageBinding:ub,KafkaOperationBinding:db,AnypointmqServerBinding:mb,AnypointmqChannelBinding:fb,AnypointmqMessageBinding:hb,AnypointmqOperationBinding:yb,AmqpServerBinding:wb,AmqpChannelExchange:gb,AmqpChannelQueue:bb,AmqpChannelBinding:vb,AmqpMessageBinding:xb,AmqpOperationBinding:Sb,Amqp1ServerBinding:$b,Amqp1ChannelBinding:Pb,Amqp1MessageBinding:Ab,Amqp1OperationBinding:Eb,MqttServerBindingLastWill:Rb,MqttServerBinding:_b,MqttChannelBinding:Ob,MqttMessageBinding:Tb,MqttOperationBinding:kb,Mqtt5ServerBinding:qb,Mqtt5ChannelBinding:Ib,Mqtt5MessageBinding:Cb,Mqtt5OperationBinding:jb,NatsServerBinding:Db,NatsChannelBinding:Mb,NatsMessageBinding:Nb,NatsOperationBinding:Lb,JmsServerBindingProperty:Fb,JmsServerBinding:zb,JmsChannelBinding:Ub,JmsMessageBinding:Bb,JmsOperationBinding:Vb,SolaceServerBinding:Kb,SolaceChannelBinding:Hb,SolaceMessageBinding:Wb,SolaceDestination:Qb,SolaceOperationBinding:Gb,StompServerBinding:fv,StompChannelBinding:dv,StompMessageBinding:mv,StompOperationBinding:hv,RedisServerBinding:gv,RedisChannelBinding:yv,RedisMessageBinding:bv,RedisOperationBinding:vv,MercureServerBinding:xv,MercureChannelBinding:wv,MercureMessageBinding:Sv,MercureOperationBinding:Pv,SnsIdentifier:Yb,SnsOrdering:Jb,SnsStatement:Xb,SnsPolicy:Zb,SnsChannelBinding:ev,SnsRedrivePolicy:tv,SnsDeliveryPolicy:rv,SnsConsumer:nv,SnsOperationBinding:iv,SqsIdentifier:ov,SqsRedrivePolicy:sv,SqsStatement:av,SqsPolicy:cv,SqsQueue:$u,SqsOperationQueue:pv,SqsChannelBinding:lv,SqsOperationBinding:uv,IbmmqServerBinding:$v,IbmmqChannelQueue:Av,IbmmqChannelTopic:Ev,IbmmqChannelBinding:Ov,IbmmqMessageBinding:Rv,GooglepubsubMessageStoragePolicy:_v,GooglepubsubSchemaSettings:Tv,GooglepubsubChannelBinding:kv,GooglepubsubSchema:Iv,GooglepubsubMessageBinding:qv,PulsarServerBinding:Cv,PulsarRetention:jv,PulsarChannelBinding:Mv,ServerBindings:zv,ChannelBindings:Bv,MessageBindings:Hv,OperationBindings:Vv},Kv={Ros2ServerBinding:Dv,Ros2ChannelBinding:Nv,Ros2OperationBinding:Uv,Ros2QosPolicies:Lv,Ros2MessageBinding:Fv},Ws={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"}},Qs={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Gs={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Ys={properties:{},additionalProperties:e=>typeof e=="string"&&j.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Js={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Wv={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"]},Qv={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."},Gv={properties:{},additionalProperties:"Channel"},Au={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."},Eu={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."},Yv={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."},Jv={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."},Ou={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Ru={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."},Xv={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."},_u={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."},Tu={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."},Zv={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."},ku={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."},e0={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."},t0={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."},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",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."},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",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."},Iu={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."},i0={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"}},o0={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."},s0={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."},a0={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."},c0={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."},qu={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},p0={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."},Cu={...Et,Root:Wv,Tag:Au,TagList:j.listOf("Tag"),ServerMap:Ou,ExternalDocs:Eu,Server:Jv,ServerVariable:Ru,ServerVariablesMap:j.mapOf("ServerVariable"),SecurityRequirement:Yv,SecurityRequirementList:j.listOf("SecurityRequirement"),Info:Xv,Contact:_u,License:Tu,ChannelMap:Gv,Channel:Qv,Parameter:Zv,ParametersMap:j.mapOf("Parameter"),Operation:n0,Schema:Ws,MessageExample:Iu,SchemaProperties:Qs,DiscriminatorMapping:Ys,Discriminator:Js,Components:i0,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:o0,PasswordFlow:s0,ClientCredentials:a0,AuthorizationCode:c0,SecuritySchemeFlows:qu,SecurityScheme:p0,Message:e0,OperationTrait:t0,OperationTraitList:j.listOf("OperationTrait"),MessageTrait:r0,MessageTraitList:j.listOf("MessageTrait"),MessageExampleList:j.listOf("MessageExample"),CorrelationId:ku,Dependencies:Gs},l0={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."},u0={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."},d0={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."},f0={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."},m0={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."},h0={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."},y0={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."},g0={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."},b0={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"]},v0={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."},w0={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."},x0={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."},S0={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."},P0={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."},$0={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."},A0={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."},E0={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."},O0={...Et.ServerBindings,properties:{...Et.ServerBindings.properties,ros2:"Ros2ServerBinding"}},R0={...Et.ChannelBindings,properties:{...Et.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},_0={...Et.OperationBindings,properties:{...Et.OperationBindings.properties,ros2:"Ros2OperationBinding"}},T0={...Et.MessageBindings,properties:{...Et.MessageBindings.properties,ros2:"Ros2MessageBinding"}},k0={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},I0={properties:{},additionalProperties:e=>Y.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema"},ju={...Et,...Kv,ServerBindings:O0,ChannelBindings:R0,OperationBindings:_0,MessageBindings:T0,CorrelationId:ku,SecuritySchemeFlows:qu,ServerVariable:Ru,Contact:_u,License:Tu,MessageExample:Iu,Tag:Au,Dependencies:Gs,Schema:Ws,MultiFormatSchema:k0,Discriminator:Js,DiscriminatorMapping:Ys,SchemaProperties:Qs,ServerMap:Ou,ExternalDocs:Eu,Root:l0,Channel:u0,Parameter:m0,Info:f0,Server:d0,MessageTrait:g0,Operation:b0,OperationReply:v0,OperationReplyAddress:w0,Components:x0,ImplicitFlow:S0,PasswordFlow:P0,ClientCredentials:$0,AuthorizationCode:A0,SecurityScheme:E0,Message:h0,OperationTrait:y0,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:I0,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")},q0={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-"},C0={properties:{},additionalProperties:"Parameter"},j0={properties:{},additionalProperties:"SuccessActionObject"},M0={properties:{},additionalProperties:"FailureActionObject"},D0={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},N0=j.mapOf("Schema"),L0={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."},U0={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},F0={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."},z0={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."},B0={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."},V0={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."},H0={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},K0={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."},W0=j.listOf("Workflow"),Q0=j.listOf("Step"),G0={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."},Y0={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_.-]+$."},J0={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."},X0={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."},Z0={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."},ew={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."},tw={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."},rw={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},nw={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},iw={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."},ow={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},sw={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."},aw={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},it={Root:q0,Info:L0,SourceDescriptions:U0,OpenAPISourceDescription:F0,ArazzoSourceDescription:z0,Parameters:H0,Parameter:V0,ReusableObject:B0,Workflows:W0,Workflow:K0,Steps:Q0,Step:G0,RequestBody:J0,Replacement:X0,ExtendedOperation:ew,ExtendedSecurityList:j.listOf("ExtendedSecurity"),ExtendedSecurity:Z0,Outputs:Y0,CriterionObject:tw,XPathCriterion:nw,JSONPathCriterion:rw,SuccessActionObject:iw,OnSuccessActionList:ow,FailureActionObject:sw,OnFailureActionList:aw,Schema:rt.Schema,NamedSchemas:j.mapOf("Schema"),ExternalDocs:rt.ExternalDocs,DiscriminatorMapping:rt.DiscriminatorMapping,Discriminator:rt.Discriminator,DependentRequired:rt.DependentRequired,SchemaProperties:rt.SchemaProperties,PatternProperties:rt.SchemaProperties,Components:D0,NamedInputs:N0,NamedParameters:C0,NamedSuccessActions:j0,NamedFailureActions:M0,Xml:rt.Xml,SecurityScheme:rt.SecurityScheme,OAuth2Flows:rt.OAuth2Flows,ImplicitFlow:rt.ImplicitFlow,PasswordFlow:rt.PasswordFlow,ClientCredentials:rt.ClientCredentials,AuthorizationCode:rt.AuthorizationCode,DeviceAuthorization:rt.DeviceAuthorization},cw={...it.Root,properties:{...it.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."}}},pw={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},lw={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."},uw={...it.Parameter,properties:{...it.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.'}}},dw={...it.Step,properties:{...it.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"]},fw={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},mw={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},hw={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},yw={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"]},gw=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Xs=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:gw(n)},bw={...it.CriterionObject,properties:{...it.CriterionObject.properties,type:Xs(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},vw={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:Xs(["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."},ww={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_.-]+$."},xw={...it.Replacement,properties:{...it.Replacement.properties,value:e=>Y.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Xs(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},Sw={...it.SuccessActionObject,properties:{...it.SuccessActionObject.properties,parameters:"Parameters"}},Pw={...it.FailureActionObject,properties:{...it.FailureActionObject.properties,parameters:"Parameters"}},Mu={...it,Root:cw,SourceDescriptions:pw,AsyncAPISourceDescription:lw,Parameter:uw,Step:dw,CriterionObject:bw,JSONPathExpression:fw,XPathExpression:mw,JSONPointerExpression:hw,ExpressionType:yw,SelectorObject:vw,Outputs:ww,Replacement:xw,SuccessActionObject:Sw,FailureActionObject:Pw};function Zs(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}const $w={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."},Aw={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."},Ew={properties:{},items:e=>j.isRef(e)?"ReusableAction":"Action"},Du={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"},Ow={properties:{actions:"ReusableActions"},extensionsPrefix:"x-",description:"A set of components to reuse across the Overlay document."},Rw=j.mapOf("ReusableAction"),_w={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`."},Tw={properties:Zs(Du.properties,["target"]),extensionsPrefix:"x-",description:"The fields of a reusable action: an action without a `target`."},ea={Root:$w,Info:Aw,Actions:Ew,Action:Du,Components:Ow,ReusableActions:Rw,ReusableAction:_w,ReusableActionFields:Tw},kw={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."},Iw={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."},qw={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."},Cw={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."},jw={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."},Mw={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."},Dw={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."},Nw={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."},Lw={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."},Uw={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."},Fw={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."},zw={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."},Bw={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."},Vw={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."},Hw={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."},Nu={Root:kw,Info:Iw,Contact:qw,License:Cw,Server:jw,ServerList:j.listOf("Server"),ServerVariable:Mw,ServerVariablesMap:j.mapOf("ServerVariable"),Method:Dw,MethodList:j.listOf("Method"),ContentDescriptor:Nw,ContentDescriptorList:j.listOf("ContentDescriptor"),ExamplePairing:Lw,ExamplePairingList:j.listOf("ExamplePairing"),Example:Uw,ExampleList:j.listOf("Example"),Link:Fw,LinkList:j.listOf("Link"),ErrorObject:zw,ErrorList:j.listOf("ErrorObject"),Components:Bw,Tag:Vw,TagList:j.listOf("Tag"),ExternalDocs:Hw,Schema:Ws,SchemaProperties:Qs,Dependencies:Gs,DiscriminatorMapping:Ys,Discriminator:Js,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 Lu={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Rr={type:"object",properties:Lu,additionalProperties:!1},Kw={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Gr={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:{...Lu,like:Rr,dislike:Rr,satisfied:Rr,neutral:Rr,dissatisfied:Rr},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:Kw},additionalProperties:!1}},additionalProperties:!1},Ww={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},ta={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},As={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Gr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ta,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:Ww,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},nr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Qw={type:"object",properties:{name:{type:"string"},items:nr,queries:nr,mutations:nr,subscriptions:nr,types:nr,directives:nr},required:["name"],additionalProperties:!1},Gw={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Qw},otherItemsGroupName:{type:"string"}}},Yw={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Jw={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Xw={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Yw,license:Jw},additionalProperties:!1},Ti={type:"object",properties:{menu:{type:"object",properties:{...Gw.properties},additionalProperties:!1},downloadUrls:ta,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Gr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Xw},additionalProperties:!1},Zw={type:"object",properties:{downloadUrls:ta,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:Gr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},ex={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"]},tx={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"}}},ac={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},rx={type:"object",properties:{beforeInfo:{type:"array",items:ac},end:{type:"array",items:ac}}},Gt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},un={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},nx={type:"object",properties:Xi(Gt.properties,["light","dark"])},ix={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"}}},ox={type:"object",properties:{error:un,info:un,redirect:un,success:un}},sx={type:"object",properties:br(Gt.properties,["dark"])},ax={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},cx={type:"object",properties:{accent:Gt,border:nx,error:Gt,http:ix,primary:Gt,responses:ox,secondary:sx,success:Gt,text:ax,tonalOffset:{type:"number"},warning:Gt}},dn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},px={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"}}},lx={type:"object",properties:{...br(Ot.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:px}},cc={type:"object",properties:Xi(Ot.properties,["fontSize","lineHeight"])},ux={type:"object",properties:{medium:cc,small:cc}},dx={type:"object",properties:{...br(Ot.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:ux}},fx={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},mx={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},pc={type:"object",properties:{fullWidth:{type:"boolean"}}},hx={type:"object",properties:{buttons:lx,httpBadges:dx,layoutControls:fx,panels:mx,tryItButton:pc,tryItSendButton:pc}},ki={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},yx={type:"object",properties:{maxWidth:ki}},gx={type:"object",properties:{maxWidth:ki,middlePanelMaxWidth:ki}},bx={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:yx,"three-panel":gx}},lc={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},vx={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:lc,defaultDetailsWidth:{type:"string"},examples:lc,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Uu={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},wx={type:"object",properties:Xi(Uu.properties,["textTransform"])},xx={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Sx={type:"object",properties:{...br(Ot.properties,["fontWeight","lineHeight"]),activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Uu,level1items:wx,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:xx,textColor:{type:"string"},width:{type:"string"}}},fn={type:"object",properties:{...Ot.properties,color:{type:"string"},transform:{type:"string"}}},Px={type:"object",properties:{...Ot.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},$x={type:"object",properties:br(Ot.properties,["fontSize"])},Ax={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Ex={type:"object",properties:{code:Px,fieldName:Ot,...Xi(Ot.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:fn,heading2:fn,heading3:fn,headings:$x,lineHeight:{type:"string"},links:Ax,optimizeSpeed:{type:"boolean"},rightPanelHeading:fn,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Ox={type:"object",properties:{color:{type:"string"},...br(Ot.properties,["fontWeight"])}},Rx={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Ox}},_x={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Tx={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},uc={type:"object",properties:{custom:{type:"string"}}},kx={type:"object",properties:{DownloadButton:uc,NextSectionButton:uc}},Ix={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},qx={type:"object",properties:{borderRadius:{type:"string"}}},Cx={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},jx={type:"object",properties:{breakpoints:ki,codeBlock:Rx,colors:cx,components:hx,layout:bx,logo:_x,fab:Tx,overrides:kx,rightPanel:Ix,schema:vx,shape:qx,sidebar:Sx,spacing:Cx,typography:Ex,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},Mx={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:ex}},required:["languages"]},Dx={properties:{theme:jx,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:Mx,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:tx,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:rx,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 Xi(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function br(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var dt={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"},Nx={rules:dt,oas2Rules:dt,oas3_0Rules:dt,oas3_1Rules:dt,oas3_2Rules:dt,async2Rules:dt,async3Rules:dt,arazzo1Rules:dt,arazzo1_1Rules:dt,overlay1Rules:dt,openrpc1Rules:dt,graphqlRules:dt},ht={nodeTypeName:void 0,type:"object",additionalProperties:!0},Lx={preprocessors:ht,oas2Preprocessors:ht,oas3_0Preprocessors:ht,oas3_1Preprocessors:ht,oas3_2Preprocessors:ht,async2Preprocessors:ht,async3Preprocessors:ht,arazzo1Preprocessors:ht,arazzo1_1Preprocessors:ht,overlay1Preprocessors:ht,openrpc1Preprocessors:ht},yt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Ux={decorators:yt,oas2Decorators:yt,oas3_0Decorators:yt,oas3_1Decorators:yt,oas3_2Decorators:yt,async2Decorators:yt,async3Decorators:yt,arazzo1Decorators:yt,arazzo1_1Decorators:yt,overlay1Decorators:yt,openrpc1Decorators:yt},Fx={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={...Nx,...Ux,...Lx,extends:Fx},Fu=e=>e,at=Fu({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),et={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},dc={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},Ro={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}}},ra={type:"array",items:{...Ro,properties:{...Ro.properties,items:{type:"array",items:Ro}}}},zx={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}},Hx={type:"object",properties:{facets:Vx,...et.properties},additionalProperties:!1},Kx={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},zu={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},Bu={type:"object",properties:{items:ra,...et.properties},additionalProperties:!1},Vu={type:"object",additionalProperties:zx},Hu={type:"object",properties:{items:ra,copyrightText:{type:"string"},logo:et,...et.properties},additionalProperties:!1},Ku={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...et.properties},additionalProperties:!1},Wu={type:"object",properties:{head:{type:"array",items:dc},body:{type:"array",items:dc}},additionalProperties:!1},Qu={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}},Gu={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Bx,filters:Hx,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Kx},...et.properties},additionalProperties:!1},Yu={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Ju={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...et.properties},additionalProperties:!1},Xu={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Wx={type:"object",properties:{...et.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Zu={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},actions:Wx},additionalProperties:!1},ed={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...et.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...et.properties},additionalProperties:!1},expand:{type:"object",properties:{...et.properties},additionalProperties:!1},collapse:{type:"object",properties:{...et.properties},additionalProperties:!1}},additionalProperties:!1},td={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"},...et.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...et.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...et.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Ii={...As,properties:{...As.properties,...Dx.properties}};({...As.properties});var Qx={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Gx={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"]},Yx={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Jx={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Xx={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"]},Zx={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},eS={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"]},tS={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"]},rS={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:tS}},additionalProperties:!1,required:["trackingId"]},rd={type:"object",properties:{adobe:Qx,amplitude:Gx,fullstory:Yx,heap:Jx,rudderstack:Xx,segment:Zx,gtm:eS,ga:rS}},nS={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},nd={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"},...et.properties},additionalProperties:!1},id={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},od={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},iS={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"}}}},oS={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:iS},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ra,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},qi={type:"object",patternProperties:{".*":oS}},Ci={nodeTypeName:at.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:at.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:at.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:at.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:at.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:at.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:at.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:at.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},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},sd={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},fc={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},na={type:"string",enum:["and","or"]},Es={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"]}}}}}},fS={type:"object",properties:{operator:na,conditions:{type:"array",items:Es}},required:["operator","conditions"],additionalProperties:!1},mc={type:"array",items:{oneOf:[Es,{type:"object",properties:{operator:na,conditions:{type:"array",items:{oneOf:[Es,fS]}}},required:["operator","conditions"],additionalProperties:!1}]}},ad={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},mS={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:ad},required:["subject","assertions"],additionalProperties:!1}},hS={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:ad,where:mS,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},yS={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},hS]}},gS={type:"object",properties:{name:{type:"string"},extends:Zi.extends,rules:yS},required:["name"],additionalProperties:!1},hc={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},bS={oneOf:[hc,{type:"array",items:hc}]},vS={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[mc,{type:"object",properties:{operator:na,conditions:mc},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:gS,minItems:1},trigger:bS},required:["name","key","entities","levels"],additionalProperties:!1},cd={type:"array",items:vS},At={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:zu,navbar:Bu,products:Vu,footer:Hu,sidebar:Ku,scripts:Wu,links:Qu,feedback:Gr,search:Gu,aiAssistant:Yu,colorMode:Ju,palette:Xu,navigation:Zu,codeSnippet:ed,markdown:td,openapi:Ii,asyncapi:Zw,graphql:Ti,analytics:rd,userMenu:nd,versionPicker:id,breadcrumbs:od,catalog:qi,entitiesCatalog:sd,catalogClassic:qi,scorecard:Ci,scorecardClassic:Ci,scorecards:cd},additionalProperties:!0},wS=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(wS||{}),xS=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(xS||{}),SS=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(SS||{}),PS="^[a-z0-9]+(?:-[a-z0-9]+)*$",pd="redocly",$S=[pd,"corporate","guest"],yc=["REDOCLY","CORPORATE","GUEST"],AS={type:"object",additionalProperties:{type:"string"}},ES={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},mn={type:"string",enum:["error","warn","off"]},OS={type:"object",additionalProperties:!1,properties:{schemaCheck:mn,statusCodeCheck:mn,contentTypeCheck:mn,successCriteriaCheck:mn}},RS={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},_S={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},TS={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},kS={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}},IS={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:[RS,_S]},inputs:AS,servers:ES,severity:OS,slo:TS},required:["path","trigger","agent"],additionalProperties:!1}},mcpServers:kS},additionalProperties:!1},ld={type:"string",enum:["off","info","warn","error"]},_r={type:"array",items:{type:"string"}},qS={type:"object",properties:{severity:ld,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:_r,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:_r,excludes:_r,exceptions:{type:"object",properties:{files:_r,lines:_r},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},CS={oneOf:[ld,qS]},gc={type:"object",additionalProperties:CS},jS={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},MS={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:jS}},additionalProperties:!1},DS={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:MS},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},NS={oneOf:[{type:"boolean"},DS]},LS={type:"object",properties:{rules:gc,excludes:{type:"array",items:{type:"string",minLength:1}},markdoc:NS,apiDescriptions:{type:"object",properties:{rules:gc},additionalProperties:!1}},additionalProperties:!1},US={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},FS={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:US,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},zS={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"]},BS={oneOf:[FS,zS],discriminator:{propertyName:"type"}},VS={type:"object",additionalProperties:BS},ud={oneOf:[{type:"array",items:{type:"string",enum:yc},uniqueItems:!0},{type:"string",enum:yc}]},bc={type:"string",pattern:PS,not:{enum:$S.filter(e=>e!==pd)}},dd={oneOf:[{type:"array",items:bc,uniqueItems:!0},bc]},fd={type:"boolean"},md={type:"string",pattern:"^https?://.*"},hd={type:"string",pattern:"^https?://.*"},HS={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:at.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},KS={type:"object",additionalProperties:HS,nodeTypeName:at.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"},WS={type:"string",enum:["info","success","warning","error"]},Ke={type:"object",additionalProperties:{type:"string"}},QS={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:WS,rbac:Ke,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},GS={type:"array",items:QS},YS={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},overlays:{type:"array",items:{type:"string"}},rbac:Ke,openapi:Ii,graphql:Ti,theme:{type:"object",properties:{openapi:Ii,graphql:Ti},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Zi},required:["root"]},JS={type:"object",additionalProperties:!0},XS={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},ZS={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},eP={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:ZS},additionalProperties:!1},tP={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},rP={type:"object",properties:{catalogs:{type:"object",properties:{all:Ke,services:Ke,domains:Ke,teams:Ke,users:Ke,apiDescriptions:Ke,dataSchemas:Ke,apiOperations:Ke},additionalProperties:Ke},entitiesTypes:{type:"object",properties:{service:Ke,domain:Ke,team:Ke,user:Ke,apiDescription:Ke,apiOperation:Ke,dataSchema:Ke},additionalProperties:Ke},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Ke},additionalProperties:!1}},entities:{type:"object",properties:{"**":Ke},additionalProperties:Ke}},additionalProperties:!1},yd={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Ke,cms:Ke,reunite:Ke,features:{type:"object",properties:{aiSearch:Ke,mcp:Ke},additionalProperties:!1},content:{type:"object",properties:{"**":Ke},additionalProperties:Ke},entitiesCatalog:rP},additionalProperties:Ke},nP={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},iP={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},oP={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[nP,iP]}},additionalProperties:!1,required:["type","apiBaseUrl"]},sP={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},aP={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Os={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:[sP,aP],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},cP={...Os,properties:{...Os.properties,type:{type:"string",const:"APIGEE_EDGE"}}},pP={type:"object",oneOf:[Os,cP,oP],discriminator:{propertyName:"type"}},lP={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:pP}}},vc={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"]},uP={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},dP={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},fP={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},mP={type:"object",properties:{requiresLogin:fd,logoutReturnUrl:md,residency:hd,sso:ud,idps:dd,rbac:yd},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ji={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:KS,seo:eP,rbac:yd,apiFunctions:tP,requiresLogin:fd,responseHeaders:{type:"object",additionalProperties:{type:"array",items:uP}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",additionalProperties:YS},...Zi,ssoDirect:VS,sso:ud,idps:dd,residency:hd,logoutReturnUrl:md,access:mP,developerOnboarding:lP,removeAttribution:{type:"boolean"},i18n:vc,l10n:vc,metadata:JS,metadataGlobs:XS,ignore:{type:"array",items:{type:"string"}},theme:At,reunite:IS,logo:zu,navbar:Bu,products:Vu,footer:Hu,sidebar:Ku,scripts:Wu,links:Qu,feedback:Gr,search:Gu,aiAssistant:Yu,colorMode:Ju,palette:Xu,navigation:Zu,codeSnippet:ed,markdown:td,openapi:Ii,graphql:Ti,analytics:rd,consent:nS,userMenu:nd,versionPicker:id,breadcrumbs:od,catalog:qi,entitiesCatalog:sd,catalogClassic:qi,scorecard:Ci,scorecardClassic:Ci,scorecards:cd,mcp:dP,skills:fP,recheck:LS,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:GS},not:{required:["sso","idps"]},additionalProperties:!0},hP={...ji,additionalProperties:!1},eo={$id:"root-redocly-config",...ji,properties:{plugins:{type:"array",items:{type:"string"}},...ji.properties,env:{type:"object",additionalProperties:hP}},additionalProperties:!1};At.properties.logo,At.properties.navbar,At.properties.footer,At.properties.sidebar,At.properties.search,At.properties.codeSnippet,At.properties.breadcrumbs,At.properties.openapi,At.properties.feedback,ji.properties.mockServer;var yP=["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"],Xe=Fu({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"}),gP={type:"object",nodeTypeName:Xe.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},bP={type:"object",nodeTypeName:Xe.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},vP={type:"object",nodeTypeName:Xe.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},wP={type:"object",nodeTypeName:Xe.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},xP={type:"object",properties:{},nodeTypeName:Xe.EntityMetadata,additionalProperties:!0},SP={type:"object",nodeTypeName:Xe.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},PP={type:"object",nodeTypeName:Xe.EntitySlackContact,properties:{channels:{type:"array",items:SP}},required:["channels"],additionalProperties:!1},$P={type:"object",nodeTypeName:Xe.EntityContact,properties:{slack:PP},additionalProperties:!1},AP={type:"object",nodeTypeName:Xe.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},EP={type:"object",nodeTypeName:Xe.EntityRelation,properties:{type:{type:"string",enum:yP},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:$P,links:{type:"array",nodeTypeName:Xe.EntityLinkList,items:AP},relations:{type:"array",nodeTypeName:Xe.EntityRelationList,items:EP},metadata:xP},OP={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Ft,type:{type:"string",const:"user"},metadata:gP},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Xe.UserEntity},{type:"object",nodeTypeName:Xe.ApiOperationEntity,properties:{...Ft,type:{type:"string",const:"api-operation"},metadata:vP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Xe.DataSchemaEntity,properties:{...Ft,type:{type:"string",const:"data-schema"},metadata:wP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Xe.ApiDescriptionEntity,properties:{...Ft,type:{type:"string",const:"api-description"},metadata:bP},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Xe.ServiceEntity,properties:{...Ft,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Xe.DomainEntity,properties:{...Ft,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Xe.TeamEntity,properties:{...Ft,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},RP={type:"object",nodeTypeName:Xe.Entity,properties:{...Ft},required:["key","title","type"],additionalProperties:!1};const _P=["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"],gd="a-zA-Z0-9\\.\\-_",TP={oas2:wu,oas3_0:St,oas3_1:Fe,oas3_2:rt,async2:Cu,async3:ju,arazzo1:it,arazzo1_1:Mu,overlay1:ea,openrpc1:Nu};function Yr(e){return e==="graphql"?{}:TP[e]}function ia(e){return e.includes("/")}var hn={exports:{}},_o={},kt={},Vt={},To={},ko={},Io={},wc;function Mi(){return wc||(wc=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})(Io)),Io}var qo={},xc;function Sc(){return xc||(xc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Mi();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})(qo)),qo}var Pc;function ke(){return Pc||(Pc=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=Mi(),r=Sc();var n=Mi();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=Sc();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})`}})(ko)),ko}var je={},$c;function Ne(){if($c)return je;$c=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=Mi();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={},Ac;function pt(){if(Ac)return yn;Ac=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 Ec;function to(){return Ec||(Ec=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=pt();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])}})(To)),To}var Oc;function kP(){if(Oc)return Vt;Oc=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.boolOrEmptySchema=Vt.topBoolOrEmptySchema=void 0;const e=to(),t=ke(),r=pt(),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 tt={},Ht={},Rc;function bd(){if(Rc)return Ht;Rc=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={},_c;function vd(){if(_c)return It;_c=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 Tc;function Di(){if(Tc)return tt;Tc=1,Object.defineProperty(tt,"__esModule",{value:!0}),tt.reportTypeError=tt.checkDataTypes=tt.checkDataType=tt.coerceAndCheckDataType=tt.getJSONTypes=tt.getSchemaTypes=tt.DataType=void 0;const e=bd(),t=vd(),r=to(),n=ke(),i=Ne();var o;(function(S){S[S.Correct=0]="Correct",S[S.Wrong=1]="Wrong"})(o||(tt.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}tt.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(","))}tt.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}tt.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
+ || (${H} == "string" && ${k} && ${k} == +${k})`).assign(G,(0,n._)`+${k}`);return;case"integer":b.elseIf((0,n._)`${H} === "boolean" || ${k} === null
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)}}tt.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}tt.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)}tt.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 tt}var Tr={},kc;function IP(){if(kc)return Tr;kc=1,Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.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))}Tr.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 Tr}var gt={},Qe={},kr={},Ic;function wd(){if(Ic)return kr;Ic=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.getSkipCondition=void 0;const e=ke(),t=pt();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 kr.getSkipCondition=r,kr}var qc;function $t(){if(qc)return Qe;qc=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.validateUnion=Qe.validateArray=Qe.usePattern=Qe.callValidateCode=Qe.schemaProperties=Qe.allSchemaProperties=Qe.noPropertyInData=Qe.propertyInData=Qe.isOwnProperty=Qe.hasPropFunc=Qe.reportMissingProp=Qe.checkMissingProp=Qe.checkReportMissingProp=void 0;const e=ke(),t=Ne(),r=pt(),n=Ne(),i=wd();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()})}Qe.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}`)}))}Qe.checkMissingProp=s;function c(v,O){v.setParams({missingProperty:O},!0),v.error()}Qe.reportMissingProp=c;function p(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Qe.hasPropFunc=p;function l(v,O,b){return(0,e._)`${p(v)}.call(${O}, ${b})`}Qe.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}Qe.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}Qe.noPropertyInData=h;function y(v){return v?Object.keys(v).filter(O=>O!=="__proto__"):[]}Qe.allSchemaProperties=y;function g(v,O){return y(O).filter(b=>!(0,t.alwaysValidSchema)(v,O[b]))}Qe.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})`}Qe.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})`})}Qe.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)})}}Qe.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 Qe.validateUnion=S,Qe}var Cc;function qP(){if(Cc)return gt;Cc=1,Object.defineProperty(gt,"__esModule",{value:!0}),gt.validateKeywordUsage=gt.validSchemaType=gt.funcKeywordCode=gt.macroKeywordCode=void 0;const e=ke(),t=pt(),r=$t(),n=to();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))}gt.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)}}gt.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")}gt.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 gt.validateKeywordUsage=h,gt}var qt={},jc;function CP(){if(jc)return qt;jc=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 st={},Co={exports:{}},Mc;function jP(){if(Mc)return Co.exports;Mc=1;var e=Co.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 Co.exports}var Dc;function ro(){if(Dc)return st;Dc=1,Object.defineProperty(st,"__esModule",{value:!0}),st.getSchemaRefs=st.resolveUrl=st.normalizeId=st._getFullPath=st.getFullPath=st.inlineRef=void 0;const e=Ne(),t=Y.requireFastDeepEqual(),r=jP(),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}st.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)}st.getFullPath=p;function l(x,P){return x.serialize(P).split("#")[0]+"#"}st._getFullPath=l;const d=/#\/?$/;function h(x){return x?x.replace(d,""):""}st.normalizeId=h;function y(x,P,A){return A=h(A),x.resolve(P,A)}st.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 st.getSchemaRefs=$,st}var Nc;function vr(){if(Nc)return kt;Nc=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.getData=kt.KeywordCxt=kt.validateFunctionCode=void 0;const e=kP(),t=Di(),r=vd(),n=Di(),i=IP(),o=qP(),s=CP(),c=ke(),p=pt(),l=ro(),d=Ne(),h=to();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={},Lc;function Jr(){if(Lc)return gn;Lc=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={},Uc;function wr(){if(Uc)return bn;Uc=1,Object.defineProperty(bn,"__esModule",{value:!0});const e=ro();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 ut={},Fc;function no(){if(Fc)return ut;Fc=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.resolveSchema=ut.getCompilingSchema=ut.resolveRef=ut.compileSchema=ut.SchemaEnv=void 0;const e=ke(),t=Jr(),r=pt(),n=ro(),i=Ne(),o=vr();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={}}}ut.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)}}ut.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)}ut.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}ut.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)}}ut.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 ut}const MP="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",DP="Meta-schema for $data reference (JSON AnySchema extension proposal)",NP="object",LP=["$data"],UP={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},FP=!1,zP={$id:MP,description:DP,type:NP,required:LP,properties:UP,additionalProperties:FP};var vn={},Ir={exports:{}},jo,zc;function xd(){if(zc)return jo;zc=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 jo={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},jo}var Mo,Bc;function BP(){if(Bc)return Mo;Bc=1;const{isUUID:e}=xd(),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 Mo={wsIsSecure:i,SCHEMES:v,isValidSchemeName:n,getSchemeHandler:O},Mo}var Vc;function VP(){if(Vc)return Ir.exports;Vc=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}=xd(),{SCHEMES:y,getSchemeHandler:g}=BP(),$=/^[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 Ir.exports=qe,Ir.exports.default=qe,Ir.exports.fastUri=qe,Ir.exports}var Hc;function HP(){if(Hc)return vn;Hc=1,Object.defineProperty(vn,"__esModule",{value:!0});const e=VP();return e.code='require("ajv/dist/runtime/uri").default',vn.default=e,vn}var Kc;function oa(){return Kc||(Kc=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=vr();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=wr(),o=bd(),s=no(),c=ke(),p=ro(),l=Di(),d=Ne(),h=zP,y=HP(),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 We=_.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:We)!==null&&K!==void 0?K:!0,strictNumbers:(re=(V=_.strictNumbers)!==null&&V!==void 0?V:We)!==null&&re!==void 0?re:!0,strictTypes:($e=(we=_.strictTypes)!==null&&we!==void 0?we:We)!==null&&$e!==void 0?$e:"log",strictTuples:(W=(z=_.strictTuples)!==null&&z!==void 0?z:We)!==null&&W!==void 0?W:"log",strictRequired:(oe=(J=_.strictRequired)!==null&&J!==void 0?J:We)!==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]}}})(_o)),_o}var wn={},xn={},Sn={},Wc;function KP(){if(Wc)return Sn;Wc=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={},Qc;function io(){if(Qc)return Ut;Qc=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.callRef=Ut.getValidate=void 0;const e=wr(),t=$t(),r=ke(),n=pt(),i=no(),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 Gc;function Sd(){if(Gc)return xn;Gc=1,Object.defineProperty(xn,"__esModule",{value:!0});const e=KP(),t=io(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return xn.default=r,xn}var Pn={},$n={},Yc;function WP(){if(Yc)return $n;Yc=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={},Jc;function QP(){if(Jc)return An;Jc=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={},Xc;function GP(){if(Xc)return On;Xc=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 Zc;function YP(){if(Zc)return En;Zc=1,Object.defineProperty(En,"__esModule",{value:!0});const e=ke(),t=Ne(),r=GP(),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={},ep;function JP(){if(ep)return Rn;ep=1,Object.defineProperty(Rn,"__esModule",{value:!0});const e=$t(),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={},tp;function XP(){if(tp)return _n;tp=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={},rp;function ZP(){if(rp)return Tn;rp=1,Object.defineProperty(Tn,"__esModule",{value:!0});const e=$t(),t=wd(),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={},np;function e$(){if(np)return kn;np=1,Object.defineProperty(kn,"__esModule",{value:!0});const e=ke(),t=pt(),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={},ip;function t$(){if(ip)return In;ip=1,Object.defineProperty(In,"__esModule",{value:!0});const e=ke(),t=pt(),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={},op;function r$(){if(op)return qn;op=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={},sp;function sa(){if(sp)return jn;sp=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 ap;function n$(){if(ap)return Cn;ap=1,Object.defineProperty(Cn,"__esModule",{value:!0});const e=Di(),t=ke(),r=Ne(),n=sa(),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={},cp;function i$(){if(cp)return Mn;cp=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=sa(),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={},pp;function o$(){if(pp)return Dn;pp=1,Object.defineProperty(Dn,"__esModule",{value:!0});const e=ke(),t=Ne(),r=sa(),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 lp;function aa(){if(lp)return Pn;lp=1,Object.defineProperty(Pn,"__esModule",{value:!0});const e=WP(),t=QP(),r=YP(),n=JP(),i=XP(),o=ZP(),s=e$(),c=t$(),p=r$(),l=n$(),d=i$(),h=o$(),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={},ir={},up;function Pd(){if(up)return ir;up=1,Object.defineProperty(ir,"__esModule",{value:!0}),ir.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 ir.validateAdditionalItems=i,ir.default=n,ir}var Ln={},or={},dp;function $d(){if(dp)return or;dp=1,Object.defineProperty(or,"__esModule",{value:!0}),or.validateTuple=void 0;const e=ke(),t=Ne(),r=$t(),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 or.validateTuple=i,or.default=n,or}var fp;function s$(){if(fp)return Ln;fp=1,Object.defineProperty(Ln,"__esModule",{value:!0});const e=$d(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return Ln.default=t,Ln}var Un={},mp;function a$(){if(mp)return Un;mp=1,Object.defineProperty(Un,"__esModule",{value:!0});const e=ke(),t=Ne(),r=$t(),n=Pd(),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={},hp;function c$(){if(hp)return Fn;hp=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 Do={},yp;function ca(){return yp||(yp=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ke(),r=Ne(),n=$t();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
+ missingProperty: ${h},
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})(Do)),Do}var zn={},gp;function p$(){if(gp)return zn;gp=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={},bp;function Ad(){if(bp)return Bn;bp=1,Object.defineProperty(Bn,"__esModule",{value:!0});const e=$t(),t=ke(),r=pt(),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={},vp;function l$(){if(vp)return Vn;vp=1,Object.defineProperty(Vn,"__esModule",{value:!0});const e=vr(),t=$t(),r=Ne(),n=Ad(),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={},wp;function u$(){if(wp)return Hn;wp=1,Object.defineProperty(Hn,"__esModule",{value:!0});const e=$t(),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={},xp;function d$(){if(xp)return Kn;xp=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={},Sp;function f$(){if(Sp)return Wn;Sp=1,Object.defineProperty(Wn,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$t().validateUnion,error:{message:"must match a schema in anyOf"}};return Wn.default=t,Wn}var Qn={},Pp;function m$(){if(Pp)return Qn;Pp=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={},$p;function h$(){if($p)return Gn;$p=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={},Ap;function y$(){if(Ap)return Yn;Ap=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={},Ep;function g$(){if(Ep)return Jn;Ep=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 Op;function pa(){if(Op)return Nn;Op=1,Object.defineProperty(Nn,"__esModule",{value:!0});const e=Pd(),t=s$(),r=$d(),n=a$(),i=c$(),o=ca(),s=p$(),c=Ad(),p=l$(),l=u$(),d=d$(),h=f$(),y=m$(),g=h$(),$=y$(),x=g$();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={},sr={},Rp;function Ed(){if(Rp)return sr;Rp=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.dynamicAnchor=void 0;const e=ke(),t=pt(),r=no(),n=io(),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))}sr.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 sr.default=i,sr}var ar={},_p;function Od(){if(_p)return ar;_p=1,Object.defineProperty(ar,"__esModule",{value:!0}),ar.dynamicRef=void 0;const e=ke(),t=pt(),r=io(),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 ar.dynamicRef=i,ar.default=n,ar}var Zn={},Tp;function b$(){if(Tp)return Zn;Tp=1,Object.defineProperty(Zn,"__esModule",{value:!0});const e=Ed(),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={},kp;function v$(){if(kp)return ei;kp=1,Object.defineProperty(ei,"__esModule",{value:!0});const e=Od(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return ei.default=t,ei}var Ip;function w$(){if(Ip)return Xn;Ip=1,Object.defineProperty(Xn,"__esModule",{value:!0});const e=Ed(),t=Od(),r=b$(),n=v$(),i=[e.default,t.default,r.default,n.default];return Xn.default=i,Xn}var ti={},ri={},qp;function x$(){if(qp)return ri;qp=1,Object.defineProperty(ri,"__esModule",{value:!0});const e=ca(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return ri.default=t,ri}var ni={},Cp;function S$(){if(Cp)return ni;Cp=1,Object.defineProperty(ni,"__esModule",{value:!0});const e=ca(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return ni.default=t,ni}var ii={},jp;function P$(){if(jp)return ii;jp=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 Mp;function $$(){if(Mp)return ti;Mp=1,Object.defineProperty(ti,"__esModule",{value:!0});const e=x$(),t=S$(),r=P$(),n=[e.default,t.default,r.default];return ti.default=n,ti}var oi={},si={},Dp;function A$(){if(Dp)return si;Dp=1,Object.defineProperty(si,"__esModule",{value:!0});const e=ke(),t=Ne(),r=pt(),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={},Np;function E$(){if(Np)return ai;Np=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 Lp;function Rd(){if(Lp)return oi;Lp=1,Object.defineProperty(oi,"__esModule",{value:!0});const e=A$(),t=E$(),r=[e.default,t.default];return oi.default=r,oi}var ci={},pi={},Up;function O$(){if(Up)return pi;Up=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 Fp;function la(){if(Fp)return ci;Fp=1,Object.defineProperty(ci,"__esModule",{value:!0});const t=[O$().default];return ci.default=t,ci}var Kt={},zp;function _d(){return zp||(zp=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 Bp;function R$(){if(Bp)return wn;Bp=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=Sd(),t=aa(),r=pa(),n=w$(),i=$$(),o=Rd(),s=la(),c=_d(),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={},qr={},Vp;function _$(){if(Vp)return qr;Vp=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(qr.DiscrError=e={})),qr}var Hp;function ua(){if(Hp)return li;Hp=1,Object.defineProperty(li,"__esModule",{value:!0});const e=ke(),t=_$(),r=no(),n=wr(),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 T$="https://json-schema.org/draft/2020-12/schema",k$="https://json-schema.org/draft/2020-12/schema",I$={"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},q$="meta",C$="Core and Validation specifications meta-schema",j$=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],M$=["object","boolean"],D$="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",N$={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}},L$={$schema:T$,$id:k$,$vocabulary:I$,$dynamicAnchor:q$,title:C$,allOf:j$,type:M$,$comment:D$,properties:N$},U$="https://json-schema.org/draft/2020-12/schema",F$="https://json-schema.org/draft/2020-12/meta/applicator",z$={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},B$="meta",V$="Applicator vocabulary meta-schema",H$=["object","boolean"],K$={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"}},W$={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Q$={$schema:U$,$id:F$,$vocabulary:z$,$dynamicAnchor:B$,title:V$,type:H$,properties:K$,$defs:W$},G$="https://json-schema.org/draft/2020-12/schema",Y$="https://json-schema.org/draft/2020-12/meta/unevaluated",J$={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},X$="meta",Z$="Unevaluated applicator vocabulary meta-schema",eA=["object","boolean"],tA={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},rA={$schema:G$,$id:Y$,$vocabulary:J$,$dynamicAnchor:X$,title:Z$,type:eA,properties:tA},nA="https://json-schema.org/draft/2020-12/schema",iA="https://json-schema.org/draft/2020-12/meta/content",oA={"https://json-schema.org/draft/2020-12/vocab/content":!0},sA="meta",aA="Content vocabulary meta-schema",cA=["object","boolean"],pA={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},lA={$schema:nA,$id:iA,$vocabulary:oA,$dynamicAnchor:sA,title:aA,type:cA,properties:pA},uA="https://json-schema.org/draft/2020-12/schema",dA="https://json-schema.org/draft/2020-12/meta/core",fA={"https://json-schema.org/draft/2020-12/vocab/core":!0},mA="meta",hA="Core vocabulary meta-schema",yA=["object","boolean"],gA={$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"}}},bA={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},vA={$schema:uA,$id:dA,$vocabulary:fA,$dynamicAnchor:mA,title:hA,type:yA,properties:gA,$defs:bA},wA="https://json-schema.org/draft/2020-12/schema",xA="https://json-schema.org/draft/2020-12/meta/format-annotation",SA={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},PA="meta",$A="Format vocabulary meta-schema for annotation results",AA=["object","boolean"],EA={format:{type:"string"}},OA={$schema:wA,$id:xA,$vocabulary:SA,$dynamicAnchor:PA,title:$A,type:AA,properties:EA},RA="https://json-schema.org/draft/2020-12/schema",_A="https://json-schema.org/draft/2020-12/meta/meta-data",TA={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},kA="meta",IA="Meta-data vocabulary meta-schema",qA=["object","boolean"],CA={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}},jA={$schema:RA,$id:_A,$vocabulary:TA,$dynamicAnchor:kA,title:IA,type:qA,properties:CA},MA="https://json-schema.org/draft/2020-12/schema",DA="https://json-schema.org/draft/2020-12/meta/validation",NA={"https://json-schema.org/draft/2020-12/vocab/validation":!0},LA="meta",UA="Validation vocabulary meta-schema",FA=["object","boolean"],zA={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"}}},BA={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:[]}},VA={$schema:MA,$id:DA,$vocabulary:NA,$dynamicAnchor:LA,title:UA,type:FA,properties:zA,$defs:BA};var Kp;function HA(){if(Kp)return ui;Kp=1,Object.defineProperty(ui,"__esModule",{value:!0});const e=L$,t=Q$,r=rA,n=lA,i=vA,o=OA,s=jA,c=VA,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 Wp;function KA(){return Wp||(Wp=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=oa(),n=R$(),i=ua(),o=HA(),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=vr();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=wr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(hn,hn.exports)),hn.exports}var Td=KA();const kd=Y.getDefaultExportFromCjs(Td);let No;function WA(){return No||(No=new Td.Ajv2020({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0})),No}function Qp(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>WA().validate(i,r));return n===-1&&(n=0),t[n]}}function ur(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 QA(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=ur(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 Qp(t.oneOf,o)(s,c)}}else{const n=t.oneOf.map((i,o)=>ur(e+"_"+o,i,r));return Qp(t.oneOf,n)}return t}function QA(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]=ur(n+"."+p,l,r);let o;Y.isPlainObject(t.additionalProperties)&&(o=ur(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=ur(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 Id(e,t){const r={},n=ur(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const GA=["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"],YA=["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"],JA=["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"],XA=["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"],ZA=["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"],eE=["info-contact","spec-ref-siblings"],tE=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],rE=["no-unused-types","type-description"],nE=["struct","no-unresolved-refs"],iE=[...GA,...YA,...JA,...XA,...ZA,...eE,...tE,...rE,...nE],oE=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],sE=["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"],qd=[...sE,...oE],Cd={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!j.isAbsoluteUrl(e)&&!Y.path.extname(e)?{type:"string"}:{...Fr,directResolveAs:{name:"ConfigGovernance",...Fr}},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"},Fr={properties:Cd},aE=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...Fr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),cE={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"},pE=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Zs(Fr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),lE={properties:{headers:{type:"array",items:{type:"string"}}}},uE={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"}},dE={properties:{},additionalProperties:{}},jd={properties:{style:{enum:["cursor","offset","page","link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},fE={properties:{...jd.properties,exclude:{type:"array",items:{type:"string"}},operations:j.mapOf("ClientPaginationRule")}},mE={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(iE.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(ia(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},hE={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"},yE={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"},gE={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(qd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(ia(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},bE={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},vE={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},wE={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(qd.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(ia(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},xE={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"},SE={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 PE(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[at.ScorecardClassicLevel],properties:{...e[at.ScorecardClassicLevel]?.properties,...Cd}}}const AE={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"},EE={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"},OE={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 da(e,t){const r=Ei.flatMap(i=>{const o=Yr(i),s=t?t.extendTypes(o,i):o;return Object.keys(s)}),{ctx:n}=Id("rootRedoclyConfigSchema",e);return{...RE,ConfigRoot:aE(n),ConfigApisProperties:pE(n),Subject:PE([...r,..._P]),...n,[at.ScorecardClassicLevel]:$E(n)}}const RE={ConfigurableRule:OE,ConfigApis:cE,ConfigGovernance:Fr,ConfigHTTP:lE,Client:uE,ClientGeneratorOptions:dE,ClientPagination:fE,ClientPaginationRule:jd,Where:EE,BuiltinRule:hE,CustomRule:yE,BuiltinDecorator:bE,CustomDecorator:vE,BuiltinPreprocessor:xE,CustomPreprocessor:SE,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:mE,Decorators:gE,Preprocessors:wE,Assertions:AE},{theme:hk,..._E}=eo.properties,TE={...eo,properties:_E},Md=da(TE),Xr=j.normalizeTypes(Md),Rs="redocly.yaml",Dd={extends:["recommended"]},Ni=".redocly.lint-ignore.yaml",Nd=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
9
+ # See https://redocly.com/docs/cli/ for more information.
10
+ `,fa="configBundler",ma="pluginsCollector",Ld=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function Ud(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 kE(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={},Gp;function IE(){if(Gp)return hi;Gp=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={},Yp;function qE(){if(Yp)return yi;Yp=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 Jp;function CE(){if(Jp)return mi;Jp=1,Object.defineProperty(mi,"__esModule",{value:!0});const e=io(),t=pa(),r=Rd(),n=la(),i=aa(),o=IE(),s=qE(),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 jE="http://json-schema.org/draft-04/schema#",ME="http://json-schema.org/draft-04/schema#",DE="Core schema meta-schema",NE={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}},LE="object",UE={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:"#"}},FE={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},zE={id:jE,$schema:ME,description:DE,definitions:NE,type:LE,properties:UE,dependencies:FE,default:{}};var Xp;function BE(){return Xp||(Xp=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=oa(),n=CE(),i=ua(),o=zE,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=vr();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=wr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(fi,fi.exports)),fi.exports}var VE=BE();const HE=Y.getDefaultExportFromCjs(VE);var gi={exports:{}},Lo={},Zp;function KE(){return Zp||(Zp=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}}})(Lo)),Lo}var Uo={},bi={exports:{}},vi={},el;function WE(){if(el)return vi;el=1,Object.defineProperty(vi,"__esModule",{value:!0});const e=Sd(),t=aa(),r=pa(),n=la(),i=_d(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return vi.default=o,vi}const QE="http://json-schema.org/draft-07/schema#",GE="http://json-schema.org/draft-07/schema#",YE="Core schema meta-schema",JE={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:[]}},XE=["object","boolean"],ZE={$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:"#"}},eO={$schema:QE,$id:GE,title:YE,definitions:JE,type:XE,properties:ZE,default:!0};var tl;function tO(){return tl||(tl=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=oa(),n=WE(),i=ua(),o=eO,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=vr();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=wr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(bi,bi.exports)),bi.exports}var rl;function rO(){return rl||(rl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=tO(),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})(Uo)),Uo}var nl;function nO(){return nl||(nl=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=KE(),n=rO(),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 iO=nO();const oO=Y.getDefaultExportFromCjs(iO),sO=["title","description","example","examples","default","deprecated"];function il(e){return e==="draft4"?"id":"$id"}function aO(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class oo{instances={};sharedValidators=new Map;validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:s,allowAdditionalProperties:c,ajvContext:p,specVersion:l}=n,d=aO(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=il(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 kd(i):new HE(i),oO(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)?cO(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=il(o);return s.getSchema(p)||(s.setDefaultUnevaluatedProperties(i),s.addSchema({[l]:p,...t},p)),s.getSchema(p)}}function cO(e,t){const r={...e};for(const i of sO)delete r[i];const n=JSON.stringify(r);if(!n.includes('"$ref"'))return`${t}:${n}`}const Fd=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),zd=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),ol=new WeakMap,pO=new j.Location(new j.Source("assertion",""),"#/schema"),Xt={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||Y.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=Nr(t);return i.map(s=>!o?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:nt(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=Nr(t);return i.map(s=>o?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:nt(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:nt(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:nt(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:nt(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:nt(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"||kE(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=Nr(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=ol.get(t);o||(o=new oo,ol.set(t,o));const s=j.isRef(n)&&i(n)?.location||r;let c;try{({errors:c}=o.validate(e,t,{schemaLoc:pO,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 lO(e){return(t,r,n)=>e.call(null,t,r,n)}function uO(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){sl(t,s);for(const c of s.where||[])sl(t,c)}n.push({...s,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function sl(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}.`);Xt[r]=lO(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=Ud(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>uO({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({...Zs(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,Ni),n={};for(const i of Object.keys(this.ignore)){const o=j.isAbsoluteUrl(i)?i:Hs(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,Nd+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 ft(e){return e!==void 0}function zr(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(ft)}const dO={},fO={},mO={};function Bd(e){return Array.isArray(e)&&e.length===0}function Vd(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&&(mr(e)||Bd(e))&&delete n[i]}function dr(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=al(t),e=al(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function al(e){return Array.isArray(e)?e:[e]}const hO="any",Hd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||hO;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];dr(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];dr(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]&&!dr(s?.[e],t,i);return{any:{enter:(s,c)=>{Vd(s,c,o)}}}},yO="any",Kd=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||yO;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];dr(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];dr(p,t,i)&&delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=s=>dr(s?.[e],t,i);return{any:{enter:(s,c)=>{Vd(s,c,o)}}}};function cl(e){const t=(void 0)(e,"utf-8");return j.parseYaml(t)}function Br(e,t){return j.isAbsoluteUrl(e)||t===void 0?e:Y.pathBrowserifyExports.resolve(Y.pathBrowserifyExports.dirname(t),e)}function ha(e){return(void 0)(e,"utf-8")}const Wd=({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=ha(Br(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
11
+ ${o.message}`,location:n.child("description")})}}}}),Qd=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)}}}),Gd=({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=ha(Br(s,i?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${o}".
12
+ ${s.message}`,location:n.child("operationId").key()})}}}}),gO="x-internal",Yd=({internalFlagProperty:e=gO})=>{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&&(mr(n)||Bd(n))&&delete s[c]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}},Jd=({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=ha(Br(i,n?.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${t.name}".
13
+ ${o.message}`})}}}}),bO=["definitions","parameters","responses","securityDefinitions"],Xd=()=>{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)&&bO.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),mr(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})}}}},vO={"operation-description-override":Gd,"tag-description-override":Jd,"info-description-override":Wd,"info-override":Qd,"remove-x-internal":Yd,"filter-in":Hd,"filter-out":Kd,"remove-unused-components":Xd},wO=({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=pl(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:cl(Br(p,r.config?.configPath))}}),t.responses[o]=s)}if(i.request&&t.requestBody){const o=pl(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:cl(Br(c,r.config?.configPath))}}),t.requestBody=o}}}}});function pl(e,t){if(!j.isRef(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function xO(e,t){return t in e}function ll(e){if(!e.startsWith("#/components/"))return;const[t,r,n]=j.parseRef(e).pointer;if(!(!r||!n))return`${r}/${n}`}const Zd=()=>{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&&xO(n.components,l)){i.add(s);const y=n.components[l];delete y[p],e.delete(s),mr(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=ll(n.$ref);if(!c)return;const p=ll(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),mr(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})}}}},SO={"operation-description-override":Gd,"tag-description-override":Jd,"info-description-override":Wd,"info-override":Qd,"remove-x-internal":Yd,"filter-in":Hd,"filter-out":Kd,"media-type-examples-override":wO,"remove-unused-components":Zd},PO={},$O={},AO=()=>({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 EO(e){return e}const _s=void 0,De=new Proxy(Y.tty,{get(e,t){return j.isBrowser?EO:e[t]}});class OO{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
+ `):process.stdout.write(`
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
+ `).map(i=>n.repeat(r)+i).join(`
17
+ `)}}const Me=new OO,Ts={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function ul(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,i=n&&Nr(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 ef(e){const t=Vs(Xt).filter(i=>e.assertions[i]!==void 0).map(i=>({name:i,conditions:e.assertions[i],runsOnKeys:Fd.has(i),runsOnValues:zd.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 tf({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function rf(e,t,r){const n=tf(e),i=[];for(const o of t)if(n.length)for(const s of n)i.push(dl({assert:o,ctx:r,assertionProperty:s}));else i.push(dl({assert:o,ctx:r}));return i.flat()}function RO(e,t){const r=ul(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(!nt(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=ul(l.subject),h=ef(l),y=($,x,P)=>!d.every(A=>A(x))||!!rf(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 _O(e,t){return(r,n)=>{const i=tf(t),o=`${De.blue(e)} failed because the ${De.blue(t.subject.type)} ${De.blue(i.join(", "))} didn't meet the assertions: ${Ts.problems}`.replace(/ +/g," "),s=rf(t,ef(t),{...n,node:r});if(s.length)for(const c of TO(s)){const p=t.message||o,d={problems:nf(c),assertionName:e,nodeType:t.subject.type,property:i.join(", "),key:String(n.key),pointer:n.location.pointer,file:of(n.location.source.absoluteRef)};n.report({message:sf(p,d),location:kO(c)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function TO(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 kO(e){return e.length?e[0].location:void 0}function nf(e){return e.length===1?e[0].message??"":e.map(t=>`
18
+ - ${t.message??""}`).join("")}function of(e){return j.isAbsoluteUrl(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function sf(e,t){let r=e;for(const n of Object.keys(Ts)){const i=Ts[n],o=t[n];i&&(r=r.split(i).join(o))}return r}function dl({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 Xt[e.name](i,e.conditions,{...t,baseLocation:s,rawValue:o})}else{const i=Array.isArray(t.node)?t.node:Object.keys(t.node);return Xt[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(!nt(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=_O(i.assertionId,i),s=RO(i,o);t.push(s)}return t};function IO(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=IO(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 Fo,fl;function qO(){return fl||(fl=1,Fo=(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}})()),Fo}var CO=qO();const jO=Y.getDefaultExportFromCjs(CO),so=(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}},zo=(e,t,r,n,i)=>!!(e.properties&&j.getOwn(e.properties,t)!==void 0||e.allOf?.some(o=>Jt(o,t,r,n,i))||Ur(e.anyOf)&&e.anyOf.every(o=>Jt(o,t,r,new Set(n),i))||Ur(e.oneOf)&&e.oneOf.every(o=>Jt(o,t,r,new Set(n),i))),Jt=(e,t,r,n=new Set,i)=>{if(j.isRef(e)&&zo(e,t,r,n,i))return!0;const{schema:o,location:s,chain:c}=so(e,r,i);if(!o)return!1;if(!n.has(o)&&(n.add(o),zo(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),zo(p.node,t,r,n,p.location)))return!0;return!1};function Lr(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Li(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function af(e,t,r){if(Li(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(Li(i))return!0}return!1}function ks(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 ao(e,t){return`${e} object should contain \`${t}\` field.`}function MO(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function cf(e,t){return`${e} object \`${t}\` must be non-empty string.`}function xr({fieldName:e,value:t,ctx:r,reference:n}){Y.isPlainObject(t)&&(t[e]===void 0?r.report({message:ao(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:cf(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function DO({fieldNames:e,value:t,ctx:r,reference:n}){if(Y.isPlainObject(t)){e.some(i=>t.hasOwnProperty(i))||r.report({message:MO(r.type.name,e),location:r.location.key(),reference:n});for(const i of e)t.hasOwnProperty(i)&&!t[i]&&r.report({message:cf(r.type.name,i),location:r.location.child([i]).key(),reference:n})}}function co(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=jO(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 pf(e){if(Y.isPlainObject(e)){if(ft(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(ft(e.value))return{value:e.value,field:"value"}}}function Vr({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 NO=10;function ml(e,t,r,n,{report:i,location:o},s){if(e&&!e.includes(t)){const c=e.length>NO?`\`${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:co(t,e)})}}function Ui({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 Is(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=>ks(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 "${Lr(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 "${Lr(e.const)}".`,location:r.child(["const"]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}),po=()=>({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(Ur(n.required))for(const[s,c]of n.required.entries())Jt(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),!Ur(n.required))return;const o=(p,l)=>{const d=h=>so(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())!Jt(n,l,i)&&!Jt(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&&lr(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;lr(o,t,n.child(i))}}});function lr(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=Lr(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=Lr(x);if(A===void 0){if(g.startsWith("x-"))continue;t({message:`Property \`${g}\` is not expected here.`,suggest:co(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++)ml(A.items?.enum,x[v],g,l,{report:t,location:n.child([g,v])},A.items?.documentationLink);if(A.enum)ml(A.enum,x,g,l,{report:t,location:n.child([g])},A.documentationLink);else if(A.type&&!ks(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];ks(b,v,!1)||t({message:`Expected type \`${v}\` but got \`${Lr(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])})}}}}),LO=()=>({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"})}}}),UO=()=>{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)}}}},FO=()=>({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"})}}}),zO=()=>{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"})}}}}}},BO={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function hl(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=BO[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 VO=()=>({Step:{enter(e,t){hl(e?.["x-security"],t)}},Workflow:{enter(e,t){hl(e?.["x-security"],t)}}}),HO=()=>({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)}}}}),KO=()=>{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()}}}},WO=()=>({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)}}}),QO=()=>{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)}}}}},GO=()=>{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)}}}},YO=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),JO=["x-operation","operationId","operationPath","channelPath","workflowId"],XO=()=>({Step:{enter(e,{report:t,location:r}){const n=JO.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"})}}}),ZO=()=>({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)}}}),eR=()=>({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)}}}),tR=()=>({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)}}}}),rR=()=>{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)}}}}},nR=()=>{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))}}}},iR={assertions:zt,"criteria-unique":HO,"no-criteria-xpath":LO,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-enum-type-mismatch":tn,"no-mixed-number-range-constraints":po,"no-required-schema-properties-undefined":rn,"no-schema-type-mismatch":nn,"no-unresolved-refs":Dt,"no-x-security-both-scheme-and-scheme-name":UO,"no-x-security-scheme-name-without-openapi":FO,"outputs-defined":KO,"parameters-unique":WO,"requestBody-replacements-unique":QO,"sourceDescription-name-unique":GO,"sourceDescription-type":AO,"sourceDescriptions-not-empty":YO,"spec-step-mutually-exclusive-fields":XO,"step-onFailure-unique":ZO,"step-onSuccess-unique":eR,"stepId-unique":tR,struct:Nt,"workflow-dependsOn":rR,"workflowId-unique":nR,"x-security-scheme-name-reference":zO,"x-security-scheme-required-values":VO},oR={},Sr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:ao("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),lf=/^1\.[012]\.\d+(-.+)?$/;function ya(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 Pr(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"&&lf.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}const lo=()=>{let e;return{Root:{enter(t){e=Pr(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?DO({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):xr({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},uo=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const i=Is(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}},fo=()=>({Root:{PathItem:{Operation(e,t){xr({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function sR(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 ga=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:co(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"?sR(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])})}}},mo=()=>({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"})}}}),ho=()=>({Tag(e,t){xr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),yo=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)Is(t.tags[i],e)>Is(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"})}}),aR=()=>({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"})}}),cR=()=>({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"})}}),yl="https://redocly.com/docs/cli/rules/async/security-defined",pR=()=>{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:yl});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:yl})}}},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(),Li(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}){af(o,c)||r.push({location:s,channelServers:n})}}}},lR={struct:Nt,"no-unresolved-refs":Dt,assertions:zt,"info-contact":Sr,"info-license-strict":lo,"operation-operationId":fo,"security-defined":pR,"channels-kebab-case":aR,"no-channel-trailing-slash":cR,"tag-description":ho,"tags-alphabetical":yo,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-duplicated-tag-names":uo,"no-required-schema-properties-undefined":rn,"no-enum-type-mismatch":tn,"no-mixed-number-range-constraints":po,"no-schema-type-mismatch":nn,"security-scopes-defined":ga,"spec-ref-siblings":mo},uR={},dR=()=>({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"})}}),fR=()=>({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"})}}),gl="#/components/securitySchemes/",mR="#/components/",Bo="https://redocly.com/docs/cli/rules/async/security-defined";function hR(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function yR(e){if(!e.startsWith(gl))return!1;const t=e.slice(gl.length);return t!==""&&!t.includes("/")}const gR=()=>{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 Li(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(mR))&&!yR(d.refPointer)){p({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:d.location.key(),reference:Bo});continue}d.resolved||p({message:`There is no \`${d.name}\` security scheme defined.`,location:d.location.key(),reference:Bo})}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&&(af(g,l,$)||s(g,l,$)||p({message:"Every operation should have security defined on it.",location:d.child([h]).key(),reference:Bo}))}}}},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),$=hR(h.$ref),x=$.split("/").pop()??h.$ref;e.push({location:y,name:x,refPointer:$,resolved:g.node!=null,local:h.$ref.startsWith("#")})}}}}};function bR(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 vR=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"?bR(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:co(l,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},wR={struct:Nt,"no-unresolved-refs":Dt,assertions:zt,"info-contact":Sr,"info-license-strict":lo,"operation-operationId":fo,"security-defined":gR,"channels-kebab-case":dR,"no-channel-trailing-slash":fR,"tag-description":ho,"tags-alphabetical":yo,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-duplicated-tag-names":uo,"no-required-schema-properties-undefined":rn,"no-enum-type-mismatch":tn,"no-mixed-number-range-constraints":po,"no-schema-type-mismatch":nn,"security-scopes-defined":vR,"spec-ref-siblings":mo},xR={};function uf(e){return Vs(Xt).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Fd.has(t),runsOnValues:zd.has(t)}))}const SR=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=uf(n),s=PR(n);r.push({[i]:(c,p)=>{$R(c,p,s)&&AR(c,p,n,o)}})}return r};function PR(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!nt(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!Y.isPlainObject(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:uf(t)}}):[]}function $R(e,t,r){let n=r;const i=r.at(-1);if(i&&i.kind===e.kind){if(!bl(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&&bl(p,s,t)){c=!0;break}}if(!c)return!1}return!0}function bl(e,t,r){const{value:n}=df(e,t.definition.subject.property),i=new j.Location(r.source,"#/");return t.assertsToApply.every(o=>Xt[o.name](n,o.conditions,{baseLocation:i,rawValue:n}).length===0)}function AR(e,t,r,n){const i=ff(r.subject.property),{value:o,locNode:s}=df(e,r.subject.property),c=new j.Location(t.source,"#/"),p=n.flatMap(d=>Xt[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:sf(r.message??l,{problems:nf(p),assertionName:r.assertionId,nodeType:r.subject.type,property:i??"",key:"",pointer:"",file:of(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Vo(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 df(e,t){const r=ff(t);if(r===void 0)return Vo(e);const n=e[r];if(Array.isArray(n))return{value:n.map(o=>Vo(o).value),locNode:e};const i=Vo(n);return{value:i.value,locNode:ER(i.locNode)?i.locNode:e}}function ER(e){return Y.isPlainObject(e)&&"kind"in e}function ff(e){return Array.isArray(e)?e[0]:e}const OR=["Query","Mutation","Subscription"];function RR(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const _R=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const i=d=>t.add(RR(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 OR)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})}}}},TR=()=>({Document:{enter:(e,t)=>{let r;try{r=Y.buildASTSchema(e,{assumeValidSDL:!1})}catch(n){kR(n,t);return}for(const n of Y.validateSchema(r))mf(n,t)}}});function kR(e,t){if(e instanceof Y.GraphQLError)mf(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function mf(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 IR=()=>{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}},qR={struct:TR,assertions:SR,"no-unused-types":_R,"type-description":IR},ba=()=>({Info(e,{report:t}){e.license||t({message:ao("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),hf=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const i of Object.keys(e)){const o=CR(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(jR(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 CR(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 jR(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 yf(e){return e.startsWith("{")&&e.endsWith("}")}function MR(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 DR=["get","head","post","put","patch","delete","options","trace"],gf=({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||yf(p))continue;const l=d=>e?MR(p).has(d):p.toLocaleLowerCase().includes(d);for(const d of DR)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"})}}}),bf=()=>({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)}}}),vf=e=>{const t=new oo;return{Parameter:{leave(r,n){if(ft(r.example)&&Vr({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=pf(o);s&&Vr({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"})}}}}},wf=e=>{const t=new oo;return{Schema:{leave(r,n){const i=r.examples;if(Array.isArray(i))for(const o of i)Vr({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(ft(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Vr({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"})}}}}},xf=()=>({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"})}}),Sf=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){const i=Object.keys(r||{});Ui({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||{});Ui({responseCodes:i,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}}),Pf=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});Ui({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||{});Ui({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),$f=()=>({Operation(e,t){xr({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),Af=()=>{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))}}},NR=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Ef=()=>({Operation(e,{report:t,location:r}){e.operationId&&!NR.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"})}}),Of=()=>{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)}}}}},Rf=()=>({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"})}}),_f=()=>({Operation(e,t){xr({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),Tf=()=>{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"})}}},kf=()=>({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"})}}),If=()=>({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"})}}),LR=["get","head","post","put","patch","delete","options","query","trace"],qf=e=>{const t=e&&e.order||LR;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"})}}}},Cf=()=>({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"})}}}),UR=/\{([a-zA-Z0-9_.-]+)\}+/g,FR=2,Fi=()=>{const e={current:null};return{PathItem:{enter(r,{key:n}){jf(e,n)},leave(){zR(e)},Parameter(r,{report:n,location:i,rawLocation:o}){Mf({parameter:r,pathContext:e,report:n,location:i,rawLocation:o})},Operation:Df(e,new Set)}}},jf=(e,t)=>{e.current={path:t,templateParams:BR(t),definedParams:new Set}},zR=e=>{e.current=null},Mf=({parameter:e,pathContext:t,report:r,location:n,rawLocation:i})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),Nf({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:i}))},Df=(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>=FR)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,jf(e,c)},leave(){e.current=o},Parameter(s,{report:c,location:p,rawLocation:l}){Mf({parameter:s,pathContext:e,report:c,location:p,rawLocation:l})},get Operation(){return Df(e,t,r+1)}}};return{enter(){t=new Set},leave(o,{report:s,location:c}){!e.current||!t||HR({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}){VR(o,t),o.in==="path"&&o.name&&e.current&&(t.add(o.name),Nf({paramName:o.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:c,rawLocation:p}))},Callback:{get PathItem(){return i()}}}},BR=e=>new Set(Array.from(e.matchAll(UR)).map(t=>t[1])),VR=(e,t)=>{Y.isPlainObject(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},Nf=({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"})}},HR=({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"})},Lf=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)||!yf(l)&&vu.isSingular(l)&&i({message:`path segment \`${l}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},Uf=()=>({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"})}}),Ff=()=>{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 hr(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const zf=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{const s=t[o]||t[hr(o)]||t[hr(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"})}}}}},vl=["string","integer","number","boolean","null"],Bf=()=>({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||!KR(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 KR(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>vl.includes(t)):vl.includes(e.type)}const Vf=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))}}}},Hf=()=>{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"})}}},WR=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 zi({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 fr({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 QR=({allowedValues:e})=>({Root(t,r){zi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){zi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),GR=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[hr(r)]||t[hr(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"})}}}}},YR=({allowedValues:e})=>({Root(t,r){zi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){zi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),JR={struct:Nt,"no-invalid-schema-examples":wf,"no-invalid-parameter-examples":vf,"info-contact":Sr,"info-license":ba,"info-license-strict":lo,"tag-description":ho,"tags-alphabetical":yo,"paths-kebab-case":Uf,"no-enum-type-mismatch":tn,"boolean-parameter-prefixes":WR,"no-path-trailing-slash":xf,"operation-2xx-response":Sf,"operation-4xx-response":Pf,assertions:zt,"operation-operationId-unique":Af,"operation-parameters-unique":Of,"path-parameters-defined":Fi,"operation-tag-defined":Tf,"path-declaration-must-exist":If,"operation-operationId-url-safe":Ef,"operation-operationId":fo,"operation-summary":_f,"operation-description":$f,"path-not-include-query":Cf,"path-params-defined":Fi,"parameter-description":kf,"operation-singular-tag":Rf,"security-defined":Vf,"security-scopes-defined":ga,"no-unresolved-refs":Dt,"no-identical-paths":bf,"no-ambiguous-paths":hf,"path-http-verbs-order":qf,"no-http-verbs-in-paths":gf,"request-mime-type":QR,"response-mime-type":YR,"path-segment-plural":Lf,"response-contains-header":zf,"response-contains-property":GR,"scalar-property-missing-example":Bf,"required-string-property-missing-min-length":Ff,"spec-strict-refs":Hf,"spec-ref-siblings":mo,"no-required-schema-properties-undefined":rn,"no-schema-type-mismatch":nn,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-duplicated-tag-names":uo},XR={},ZR=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=j.isRef(t.schema)?r.resolve(t.schema).node:t.schema;n&&e_(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 e_(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 t_=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 r_(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Kf(e){const t=Y.isPlainObject(e)&&nt(e.title)?e.title.trim():"",r=r_(t).replace(new RegExp(`[^${gd}]`,"g"),"-");return{title:t,name:r}}function Mr(e){return e.chain?.[0]??{node:e.node,location:e.location}}const cr="Schema",qs="Parameter",Cs="Response",js="RequestBody",n_={[cr]:"schemas",[qs]:"parameters",[Cs]:"responses",[js]:"requestBodies"},i_=e=>{const t=new Map,r=new Map,n=e.strategy==="title";let i;const o=[];e.schemas!=="off"&&o.push(cr),e.parameters!=="off"&&o.push(qs),e.responses!=="off"&&o.push(Cs),e.requestBodies!=="off"&&o.push(js);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=Mr(P);if(d(x,A.location,$)){const{title:S,name:v}=Kf(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=a_($),A=o_(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
+ `),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(cr,y)){p(cr,String(g),$.NamedSchemas.child(g));return}l(cr,y)}}),e.responses!="off"&&(s.NamedResponses={Response(h,{location:y}){l(Cs,y)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(h,{location:y}){l(qs,y)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(h,{location:y}){l(js,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=s_(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===cr&&(y.source.absoluteRef!==i||g.source.absoluteRef!==i)}};function o_(e){return n_[e]??null}function s_(e,t){return`${e}/${t}`}function a_(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const c_=()=>({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"})}}),p_=()=>({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"})}}),l_=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"]),u_=()=>({AllOf(e,t){const r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!d_(e[0],t.resolve))&&Ho(e,"allOf",t),Ko(e,"allOf",t),Wo(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&&Ho(e,"anyOf",t),Ko(e,"anyOf",t),Wo(e,"anyOf",t),n&&wl(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&&Ho(e,"oneOf",t),Ko(e,"oneOf",t),Wo(e,"oneOf",t),i&&wl(e,"oneOf",t),Vi(r)&&f_(e,t),m_(e,i?n:void 0,t)}});function Ho(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 d_(e,t){return Y.isPlainObject(Hr(e,t)?.schema.discriminator)}function Ko(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 wl(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 Wo(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 f_(e,t){e.some(n=>{const i=Hr(n,t.resolve);return i?Vi(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 m_(e,t,r){const{resolve:n,report:i,location:o}=r,s=r.specVersion!=="oas3_2",c=e.map(p=>Hr(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=h_(l,h,n,t,s);y&&i({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${xl(e[p],p)} and ${xl(e[d],d)}. ${y}`,location:o.key()})}}}function xl(e,t){return j.isRef(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function h_(e,t,r,n,i){const o=e.schema,s=t.schema;if(Bi(o)||Bi(s)||Wf(o,s))return null;if(Vi(o)&&Vi(s))return"Both schemas accept `null`.";const c=Wr(o),p=Wr(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?y_(o,s,n):null;const l=g_(e,t,r);if(l)return l;if(!o.properties&&!s.properties){const d=Gf(o,s);if(d?.length)return`Both schemas accept ${d.map(h=>`\`${h}\``).join(", ")}.`}return null}function y_(e,t,r){const{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:ft(j.getOwn(e.properties??{},n))&&ft(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 g_(e,t,r){const n=b_(e,t);if(!n||Sl(e.schema,n.leftProperties,n.rightRequired)||Sl(t.schema,n.rightProperties,n.leftRequired)||v_(n)||n.sharedNames.length===0)return null;const i=w_(n,r);if(!i)return null;const{optionalDistinguishingNames:o,ambiguousNames:s}=i;if(o.length>0){const c=s.length>0?` Other shared properties: ${Qo(s)}.`:"";return`Add ${Qo(o)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${c}`}return s.length>0?`Both schemas define ${Qo(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function b_(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 v_({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 w_({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=Hr(j.getOwn(r,d),c,e),g=Hr(j.getOwn(n,d),c,t);if(!(!y||!g)&&!(Bi(y.schema)||Bi(g.schema))){if(Wf(y.schema,g.schema)){if(h)return null;p.push(d);continue}l.push(d)}}return{optionalDistinguishingNames:p,ambiguousNames:l}}function Sl(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!j.getOwn(t,n))}function Wf(e,t){const r=Wr(e),n=Wr(t);return r&&n?!r.some(i=>n.some(o=>Mt(i,o))):Gf(e,t)?.length===0}function Hr(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 Bi(e){return Object.keys(e).some(t=>!l_.has(t)&&!t.startsWith("x-"))}function Qf(e){return"nullable"in e&&e.nullable===!0}function Kr(e){const t=e.type;if(t===void 0)return;const r=new Set(Array.isArray(t)?t:[t]);return Qf(e)&&r.add("null"),r}function Gf(e,t){const r=Kr(e),n=Kr(t);if(!r||!n)return;const i=[...r].filter(o=>n.has(o));return i.length===0&&x_(e,t)?["integer"]:i}function x_(e,t){const r=Kr(e),n=Kr(t);return r?.has("integer")&&n?.has("number")?Pl(t):r?.has("number")&&n?.has("integer")?Pl(e):!1}function Pl(e){const t=Wr(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function Vi(e){return Qf(e)||Kr(e)?.has("null")===!0}function Wr(e){if(e.enum)return e.enum;const t="const"in e?e.const:void 0;return ft(t)?[t]:void 0}function Qo(e){return e.map(t=>`\`${t}\``).join(", ")}const S_=e=>{const t=new oo,r=i=>i.schema===void 0,n=i=>(o,s)=>{const{location:c,resolve:p}=s;if(ft(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 $=pf(d);if(!$)return;g=$.value,h=h.child($.field)}Vr({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"})}}}},P_=()=>({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"})}}),$_=()=>({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"})}}),A_=()=>({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=$l(i);o&&n.push(...o)}else{const i=$l(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 $l(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 E_=()=>({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"})}}),O_=()=>{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)}}},R_=()=>({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"})}}}),Go="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",__=()=>({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:Go})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(xr({fieldName:"schema",value:e,ctx:t,reference:Go}),!e.schema)return;const{schema:r,location:n}=so(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const i of["type","title"])Jt(e.schema,i,t)||t.report({message:ao("SchemaProperties",i),location:r.properties?n.child(["properties",i]).key():n.key(),reference:Go})}}}}),T_=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){fr({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){fr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){fr({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),k_=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[hr(r)]||t[hr(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"})}}}}}},I_=({allowedValues:e})=>({Paths:{Response:{leave(t,r){fr({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){fr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){fr({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),q_=()=>{const e=`^[${gd}]+$`;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")}}}},C_=()=>{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=so(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"})}}}},j_=()=>({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"})}}),M_=()=>({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"})}}}),D_=()=>{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 Al(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function El(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 Ol(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 N_=()=>{let e={},t={},r=0;return{PathItem:{enter(n,i){e={},t={},r=0,El(Al(n.parameters||[]),i)},Parameter(n,i){Ol(n,i.location,e,i),n.in==="querystring"&&(r+=1)},Operation:{enter(n,i){t={...e};const o=r+Al(n.parameters||[]);El(o,i)},Parameter(n,i){Ol(n,i.location,t,i)}}}}},L_=()=>({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"}))}}}),U_={struct:Nt,"info-contact":Sr,"info-license":ba,"info-license-strict":lo,"operation-2xx-response":Sf,"operation-4xx-response":Pf,"operation-4xx-problem-details-rfc7807":__,assertions:zt,"operation-operationId-unique":Af,"operation-parameters-unique":Of,"operation-tag-defined":Tf,"no-example-value-and-externalValue":p_,"no-mixed-number-range-constraints":po,"no-enum-type-mismatch":tn,"no-path-trailing-slash":xf,"no-empty-servers":c_,"path-declaration-must-exist":If,"operation-operationId-url-safe":Ef,"operation-operationId":fo,"operation-summary":_f,"tags-alphabetical":yo,"no-server-example.com":P_,"no-server-trailing-slash":$_,"tag-description":ho,"operation-description":$f,"no-unused-components":O_,"path-not-include-query":Cf,"path-parameters-defined":Fi,"path-params-defined":Fi,"parameter-description":kf,"operation-singular-tag":Rf,"security-defined":Vf,"security-scopes-defined":ga,"no-unresolved-refs":Dt,"paths-kebab-case":Uf,"boolean-parameter-prefixes":t_,"path-http-verbs-order":qf,"no-illogical-composition-keywords":u_,"no-invalid-media-type-examples":S_,"no-identical-paths":bf,"no-ambiguous-paths":hf,"no-undefined-server-variable":E_,"no-server-variables-empty-enum":A_,"no-http-verbs-in-paths":gf,"request-mime-type":T_,"response-mime-type":I_,"path-segment-plural":Lf,"no-invalid-schema-examples":wf,"no-invalid-parameter-examples":vf,"response-contains-header":zf,"response-contains-property":k_,"scalar-property-missing-example":Bf,"spec-components-invalid-map-name":q_,"required-string-property-missing-min-length":Ff,"spec-strict-refs":Hf,"component-name-unique":i_,"array-parameter-serialization":ZR,"no-required-schema-properties-undefined":rn,"no-schema-type-mismatch":nn,"no-duplicated-enum-values":en,"no-unsafe-markdown":on,"no-duplicated-tag-names":uo,"nullable-type-sibling":R_,"spec-no-invalid-tag-parents":D_,"spec-no-invalid-encoding-combinations":M_,"spec-discriminator-defaultMapping":C_,"spec-example-values":j_,"spec-querystring-parameters":N_,"spec-ref-siblings":L_},F_={},z_=()=>{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())}}}},B_=()=>({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))})}}}),V_=()=>({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})}}}),H_={struct:Nt,"no-unresolved-refs":Dt,assertions:zt,"info-license":ba,"no-unused-components":z_,"info-contact":Sr,"spec-no-duplicated-method-params":B_,"spec-no-required-params-after-optional":V_,"spec-ref-siblings":mo},K_={},W_=["$ref","target","description"],Q_=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name==="ReusableAction"){for(const i of Object.keys(e))W_.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"})}}}}),G_={"info-contact":Sr,struct:Nt,"no-unresolved-refs":Dt,"spec-ref-siblings":Q_,assertions:zt},Y_={},J_={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"}},X_={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"}},Z_={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"}},e1={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"}},t1={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"}},r1={recommended:e1,"recommended-strict":Z_,minimal:X_,all:J_,spec:t1},Rl={id:"",rules:{oas3:U_,oas2:JR,async2:lR,async3:wR,arazzo1:iR,overlay1:G_,openrpc1:H_,graphql:qR},preprocessors:{oas3:F_,oas2:XR,async2:uR,async3:xR,arazzo1:oR,overlay1:Y_,openrpc1:K_},decorators:{oas3:SO,oas2:vO,async2:fO,async3:mO,arazzo1:dO,overlay1:$O,openrpc1:PO},configs:r1},n1={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function wt(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,n1[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 va="recheck";function i1(e){return e.startsWith(`${va}/`)}function o1(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 s1(e,t){const r=Y.isPlainObject(e)?{...e}:{};if(Y.isPlainObject(t))for(const[n,i]of Object.entries(t))r[n]=o1(r[n],i);return r}function a1(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:s1(e.rules,r)}}const Be=(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 He(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 c1(e){if(e.indexOf("/")>-1){const[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Je(e,t){if(!t)return e;const r={};for(const n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Yf(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)}`);Be(r.rules,n.rules),Be(r.oas2Rules,n.oas2Rules),He(r.oas2Rules,n.rules),Be(r.oas3_0Rules,n.oas3_0Rules),He(r.oas3_0Rules,n.rules),Be(r.oas3_1Rules,n.oas3_1Rules),He(r.oas3_1Rules,n.rules),Be(r.oas3_2Rules,n.oas3_2Rules),He(r.oas3_2Rules,n.rules),Be(r.async2Rules,n.async2Rules),He(r.async2Rules,n.rules),Be(r.async3Rules,n.async3Rules),He(r.async3Rules,n.rules),Be(r.arazzo1Rules,n.arazzo1Rules),He(r.arazzo1Rules,n.rules),Be(r.arazzo1_1Rules,n.arazzo1_1Rules),He(r.arazzo1_1Rules,n.rules),Be(r.overlay1Rules,n.overlay1Rules),He(r.overlay1Rules,n.rules),Be(r.openrpc1Rules,n.openrpc1Rules),He(r.openrpc1Rules,n.rules),Be(r.graphqlRules,n.graphqlRules),He(r.graphqlRules,n.rules),Be(r.preprocessors,n.preprocessors),Be(r.oas2Preprocessors,n.oas2Preprocessors),He(r.oas2Preprocessors,n.preprocessors),Be(r.oas3_0Preprocessors,n.oas3_0Preprocessors),He(r.oas3_0Preprocessors,n.preprocessors),Be(r.oas3_1Preprocessors,n.oas3_1Preprocessors),He(r.oas3_1Preprocessors,n.preprocessors),Be(r.oas3_2Preprocessors,n.oas3_2Preprocessors),He(r.oas3_2Preprocessors,n.preprocessors),Be(r.async2Preprocessors,n.async2Preprocessors),He(r.async2Preprocessors,n.preprocessors),Be(r.async3Preprocessors,n.async3Preprocessors),He(r.async3Preprocessors,n.preprocessors),Be(r.arazzo1Preprocessors,n.arazzo1Preprocessors),He(r.arazzo1Preprocessors,n.preprocessors),Be(r.arazzo1_1Preprocessors,n.arazzo1_1Preprocessors),He(r.arazzo1_1Preprocessors,n.preprocessors),Be(r.overlay1Preprocessors,n.overlay1Preprocessors),He(r.overlay1Preprocessors,n.preprocessors),Be(r.openrpc1Preprocessors,n.openrpc1Preprocessors),He(r.openrpc1Preprocessors,n.preprocessors),Be(r.decorators,n.decorators),Be(r.oas2Decorators,n.oas2Decorators),He(r.oas2Decorators,n.decorators),Be(r.oas3_0Decorators,n.oas3_0Decorators),He(r.oas3_0Decorators,n.decorators),Be(r.oas3_1Decorators,n.oas3_1Decorators),He(r.oas3_1Decorators,n.decorators),Be(r.oas3_2Decorators,n.oas3_2Decorators),He(r.oas3_2Decorators,n.decorators),Be(r.async2Decorators,n.async2Decorators),He(r.async2Decorators,n.decorators),Be(r.async3Decorators,n.async3Decorators),He(r.async3Decorators,n.decorators),Be(r.arazzo1Decorators,n.arazzo1Decorators),He(r.arazzo1Decorators,n.decorators),Be(r.arazzo1_1Decorators,n.arazzo1_1Decorators),He(r.arazzo1_1Decorators,n.decorators),Be(r.overlay1Decorators,n.overlay1Decorators),He(r.overlay1Decorators,n.decorators),Be(r.openrpc1Decorators,n.openrpc1Decorators),He(r.openrpc1Decorators,n.decorators),t=a1(t,n.recheck)}return r.recheck=t,r}class p1 extends Error{}function l1(e){return new Map(JSON.parse(JSON.stringify([...e])))}function _l(e){return Y.isPlainObject(e)&&"id"in e}function u1(e){return typeof e=="function"}function Jf({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=r.some(o=>o.id===va),i=(e.extends||[]).filter(j.isTruthy).map(o=>{if(!j.isAbsoluteUrl(o)&&!Y.path.extname(o))return i1(o)&&!n?null:vT(o,r);const s=t.resolve({$ref:o});return s.location&&s.node!==void 0?s.node:null}).filter(j.isTruthy);return Yf([...i.map(o=>Jf({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=>zs(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const d1=wt([{severity:"error",ruleId:ma,visitor:{ref:{},ConfigGovernance:{leave(e,t){wi(e,t)}},ConfigApisProperties:{leave(e,t){wi(e,t)}},[at.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=Jf({node:e,ctx:t,plugins:r});Object.assign(e,i),delete e.extends}}const f1=wt([{severity:"error",ruleId:fa,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)}},[at.ScorecardClassicLevel]:{leave(e,t){xi(e,t)}},ConfigRoot:{leave(e,t){xi(e,t)}}}}],Xr);function Tl(e,t){return{prev:e,value:t}}function kl(e){return e?.prev??null}function m1(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function h1(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 xt(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=Tl(V.activatedOn,J);let oe=V.parent;for(;oe;)oe.activatedOn.value.nextLevelTypeActivated=Tl(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=kl(V.activatedOn),V.parent){let re=V.parent;for(;re;)re.activatedOn.value.nextLevelTypeActivated=kl(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:h1(R),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{l.add(`${M.absolutePointer}${M.pointer}`)},getVisitorData:()=>Le(C)},m1(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 y1(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function yr(e,t,r,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,yr.prototype),i.expected=t,i.found=r,i.location=n,i.name="SyntaxError",i}y1(yr,Error);function Yo(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,r+=r.repeat(t),e+r.slice(0,t))}yr.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=Yo("",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
+ --> `+s+`
24
+ `+p+` |
25
+ `+o.line+" | "+l+`
26
+ `+p+" | "+Yo("",i.column-1," ")+Yo("",h,"^")}else t+=`
27
+ at `+s}return t};yr.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 g1(e,t){t=t!==void 0?t:{};var r={},n=t.grammarSource,i={jsonpath_query:vo},o=vo,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=Ve("$",!1),ae=Ze([[" ",`
28
+ `],"\r"," "],!1,!1),ce=Ve(".",!1),he=Ve("..",!1),ye=Ve("[",!1),ge=Ve(",",!1),Ee=Ve("]",!1),We=Ve("*",!1),a=Ze([["A","Z"],"_",["a","z"],["€","퟿"],["","￿"]],!1,!1),u=Ze([["\uD800","\uDBFF"]],!1,!1),f=Ze([["\uDC00","\uDFFF"]],!1,!1),T=Ve(":",!1),N=Ve("?",!1),L=Ze([["0","9"]],!1,!1),B=Ve('"',!1),se=Ve("'",!1),le=Ve("0",!1),Re=Ve("-",!1),fe=Ze([["1","9"]],!1,!1),xe=Ve("||",!1),ze=Ze([[" ","!"],["#","&"],["(","["],["]","퟿"],["","￿"]],!1,!1),_e=Ve("\\",!1),Ce=Ze(["/","\\","b","f","n","r","t"],!1,!1),Ge=Ve("u",!1),er=Ve("&&",!1),tr=Ze([["A","C"],["E","F"]],!1,!0),bo=Ve("D",!0),Em=Ze([["0","7"]],!1,!1),Om=Ze([["8","9"]],!1,!1),Rm=Ze([["A","B"]],!1,!0),_m=Ze([["C","F"]],!1,!0),Ea=Ve("(",!1),Oa=Ve(")",!1),Tm=Ze([["A","F"]],!1,!0),km=Ve("!",!1),Im=Ve("==",!1),qm=Ve("!=",!1),Cm=Ve("<=",!1),jm=Ve(">=",!1),Mm=Ze(["<",">"],!1,!1),Dm=Ve("-0",!1),Nm=Ve("true",!1),Lm=Ve("false",!1),Um=Ve("null",!1),Fm=Ve("@",!1),zm=Ze([["0","9"],"_",["a","z"]],!1,!1),Bm=Ve("e",!0),Vm=Ze(["+","-"],!1,!1),Hm=Ze([["a","z"]],!1,!1),Km=function(m){return{type:"JsonPathQuery",segments:m}},Ra=function(m){return m},Wm=function(m){return m},Qm=function(m){return{type:"ChildSegment",node:m}},Gm=function(m){return{type:"DescendantSegment",node:m}},_a=function(m,E){return E},Ym=function(m,E){return[m,...E]},Jm=function(m){return{type:"BracketedSelection",selectors:m}},Xm=function(){return{type:"WildcardSelector"}},Zm=function(m){return{type:"MemberNameShorthand",value:m}},eh=function(m){return{type:"NameSelector",value:m}},th=function(m,E,U){return U},rh=function(m,E,U){return{start:m,end:E,step:U}},nh=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)}},ih=function(m){return{type:"IndexSelector",value:Number.parseInt(m,10)}},oh=function(m){return{type:"FilterSelector",value:m}},sh=function(m){return m},ah=function(m){return m},ch=function(m){return m.join("")},ph=function(){return'"'},lh=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)}},uh=function(){return"'"},dh=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)}},Ta=function(m,E){return E},fh=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])}},ka=function(m,E){return E},mh=function(m,E){return[m,...E]},hh=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])}},yh=function(){return String.fromCharCode(Number.parseInt(Dh(),16))},gh=function(m,E){return String.fromCharCode(Number.parseInt(m,16))+String.fromCharCode(Number.parseInt(E,16))},bh=function(m){return m},vh=function(m,E){return m!==null?{type:"LogicalNotExpr",expression:E}:E},wh=function(m,E,U){return{type:"ComparisonExpr",left:m,op:E,right:U}},xh=function(m,E){return m!==null?{type:"LogicalNotExpr",expression:{type:"TestExpr",expression:E}}:{type:"TestExpr",expression:E}},Sh=function(m){return{type:"FilterQuery",value:m}},Ia=function(m,E,U){return U},Ph=function(m,E,U){return[E,...U]},$h=function(m,E){return{type:"FunctionExpr",name:m,arguments:E}},Ah=function(m){return{type:"Literal",value:m}},Eh=function(m){return{type:"RelQuery",segments:m}},Oh=function(m){return Number(m)},Rh=function(){return!0},_h=function(){return!1},Th=function(){return null},kh=function(m){return{type:"RelSingularQuery",segments:m}},Ih=function(m){return{type:"AbsSingularQuery",segments:m}},qa=function(m){return{type:"SingularQuerySegment",node:m}},qh=function(m){return m},Ch=function(m){return m},jh=function(m){return m},Mh=function(m){return{type:"IndexSelector",selector:m}},I=t.peg$currPos|0,Oe=I,rr=[{line:1,column:1}],mt=I,pn=t.peg$maxFailExpected||[],ve=t.peg$silentFails|0,Er;if(t.startRule){if(!(t.startRule in i))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');o=i[t.startRule]}function Dh(){return e.substring(Oe,I)}function Ve(m,E){return{type:"literal",text:m,ignoreCase:E}}function Ze(m,E,U){return{type:"class",parts:m,inverted:E,ignoreCase:U}}function Nh(){return{type:"end"}}function Ca(m){var E=rr[m],U;if(E)return E;if(m>=rr.length)U=rr.length-1;else for(U=m;!rr[--U];);for(E=rr[U],E={line:E.line,column:E.column};U<m;)e.charCodeAt(U)===10?(E.line++,E.column=1):E.column++,U++;return rr[m]=E,E}function ja(m,E,U){var Q=Ca(m),ne=Ca(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<mt||(I>mt&&(mt=I,pn=[]),pn.push(m))}function Lh(m,E,U){return new yr(yr.buildMessage(m,E),m,E,U)}function vo(){var m,E,U;return m=I,E=Ma(),E!==r?(U=Da(),Oe=m,m=Km(U)):(I=m,m=r),m}function Ma(){var m;return e.charCodeAt(I)===36?(m=s,I++):(m=r,ve===0&&be(pe)),m}function Da(){var m,E,U;for(m=[],E=I,Ue(),U=Na(),U!==r?(Oe=E,E=Ra(U)):(I=E,E=r);E!==r;)m.push(E),E=I,Ue(),U=Na(),U!==r?(Oe=E,E=Ra(U)):(I=E,E=r);return m}function Ue(){var m,E;for(m=[],E=La();E!==r;)m.push(E),E=La();return m}function Na(){var m;return m=Uh(),m===r&&(m=Fh()),m}function La(){var m;return m=e.charAt(I),R.test(m)?I++:(m=r,ve===0&&be(ae)),m}function Uh(){var m,E,U,Q;return m=I,E=Ua(),E===r&&(E=I,e.charCodeAt(I)===46?(U=c,I++):(U=r,ve===0&&be(ce)),U!==r?(Q=wo(),Q===r&&(Q=xo()),Q!==r?(Oe=E,E=Wm(Q)):(I=E,E=r)):(I=E,E=r)),E!==r&&(Oe=m,E=Qm(E)),m=E,m}function Fh(){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=Ua(),U===r&&(U=wo(),U===r&&(U=xo())),U!==r?(Oe=m,m=Gm(U)):(I=m,m=r)):(I=m,m=r),m}function Ua(){var m,E,U,Q,ne,ue,Te,Ye;if(m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r){if(U=I,Ue(),Q=So(),Q!==r){for(ne=[],ue=I,Ue(),e.charCodeAt(I)===44?(Te=d,I++):(Te=r,ve===0&&be(ge)),Te!==r?(Ue(),Ye=So(),Ye!==r?(Oe=ue,ue=_a(Q,Ye)):(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(),Ye=So(),Ye!==r?(Oe=ue,ue=_a(Q,Ye)):(I=ue,ue=r)):(I=ue,ue=r);Oe=U,U=Ym(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=Jm(U)):(I=m,m=r)):(I=m,m=r)}else I=m,m=r;return m}function wo(){var m,E;return m=I,e.charCodeAt(I)===42?(E=y,I++):(E=r,ve===0&&be(We)),E!==r&&(Oe=m,E=Xm()),m=E,m}function xo(){var m,E,U,Q,ne,ue;if(m=I,E=I,U=I,Q=Fa(),Q!==r){for(ne=[],ue=za();ue!==r;)ne.push(ue),ue=za();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=Zm(E)),m=E,m}function So(){var m;return m=Ba(),m===r&&(m=wo(),m===r&&(m=zh(),m===r&&(m=Va(),m===r&&(m=Bh())))),m}function Fa(){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 za(){var m;return m=Fa(),m===r&&(m=Rt()),m}function Ba(){var m,E;return m=I,E=Ha(),E!==r&&(Oe=m,E=eh(E)),m=E,m}function zh(){var m,E,U,Q,ne,ue,Te,Ye,lt;return m=I,E=I,U=I,Q=I,ne=Or(),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,Ye=Or(),Ye!==r?(lt=Ue(),Ye=[Ye,lt],Te=Ye):(I=Te,Te=r),Te===r&&(Te=null),ue=e.substring(ue,I),Te=I,e.charCodeAt(I)===58?(Ye=g,I++):(Ye=r,ve===0&&be(T)),Ye!==r?(lt=I,Ue(),Or(),lt=e.substring(lt,I),Oe=Te,Te=th(U,ue,lt)):(I=Te,Te=r),Te===r&&(Te=null),Oe=E,E=rh(U,ue,Te)):(I=E,E=r),E!==r&&(Oe=m,E=nh(E)),m=E,m}function Va(){var m,E,U;return m=I,E=I,U=Or(),U!==r?E=e.substring(E,I):E=U,E!==r&&(Oe=m,E=ih(E)),m=E,m}function Bh(){var m,E,U;return m=I,e.charCodeAt(I)===63?(E=$,I++):(E=r,ve===0&&be(N)),E!==r?(Ue(),U=Po(),U!==r?(Oe=m,m=oh(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 Ha(){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=Ka();ne!==r;)Q.push(ne),ne=Ka();e.charCodeAt(I)===34?(ne=x,I++):(ne=r,ve===0&&be(B)),ne!==r?(Oe=E,E=sh(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=Wa();ne!==r;)Q.push(ne),ne=Wa();e.charCodeAt(I)===39?(ne=P,I++):(ne=r,ve===0&&be(se)),ne!==r?(Oe=E,E=ah(Q)):(I=E,E=r)}else I=E,E=r;return E!==r&&(Oe=m,E=ch(E)),m=E,m}function Or(){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=Vh(),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 Ka(){var m,E,U;return m=I,E=Qa(),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=ph()):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,E=ln(),E!==r?(U=Ga(),U!==r?(Oe=m,m=lh(U)):(I=m,m=r)):(I=m,m=r)))),m}function Wa(){var m,E,U;return m=I,E=Qa(),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=uh()):(I=m,m=r)):(I=m,m=r),m===r&&(m=I,E=ln(),E!==r?(U=Ga(),U!==r?(Oe=m,m=dh(U)):(I=m,m=r)):(I=m,m=r)))),m}function Vh(){var m;return m=e.charAt(I),K.test(m)?I++:(m=r,ve===0&&be(fe)),m}function Po(){var m,E,U,Q,ne,ue;if(m=I,E=$o(),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=$o(),ue!==r?(Oe=Q,Q=Ta(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=$o(),ue!==r?(Oe=Q,Q=Ta(E,ue)):(I=Q,Q=r)):(I=Q,Q=r);Oe=m,m=fh(E,U)}else I=m,m=r;return m}function Qa(){var m,E,U;return m=e.charAt(I),V.test(m)?I++:(m=r,ve===0&&be(ze)),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 Ga(){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(Ge)),E!==r?(U=Hh(),U!==r?(E=[E,U],m=E):(I=m,m=r)):(I=m,m=r)),m}function $o(){var m,E,U,Q,ne,ue,Te;if(m=I,E=I,U=Ao(),U!==r){for(Q=[],ne=I,Ue(),e.substr(I,2)===k?(ue=k,I+=2):(ue=r,ve===0&&be(er)),ue!==r?(Ue(),Te=Ao(),Te!==r?(Oe=ne,ne=ka(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(er)),ue!==r?(Ue(),Te=Ao(),Te!==r?(Oe=ne,ne=ka(U,Te)):(I=ne,ne=r)):(I=ne,ne=r);Oe=E,E=mh(U,Q)}else I=E,E=r;return E!==r&&(Oe=m,E=hh(E)),m=E,m}function Hh(){var m,E,U,Q,ne,ue,Te;return m=I,E=I,U=Kh(),U!==r&&(Oe=E,U=yh()),E=U,E===r&&(E=I,U=I,Q=Wh(),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(Ge)),ne!==r?(ue=I,Te=Qh(),Te!==r?ue=e.substring(ue,I):ue=Te,ue!==r?(Oe=E,E=gh(U,ue)):(I=E,E=r)):(I=E,E=r)):(I=E,E=r)):(I=E,E=r)),E!==r&&(Oe=m,E=bh(E)),m=E,m}function Ao(){var m;return m=Gh(),m===r&&(m=Yh(),m===r&&(m=Jh())),m}function Kh(){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(tr))),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(bo)),E!==r)if(U=e.charAt(I),$e.test(U)?I++:(U=r,ve===0&&be(Em)),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 Wh(){var m,E,U,Q,ne,ue;if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(bo)),E!==r)if(U=e.charAt(I),z.test(U)?I++:(U=r,ve===0&&be(Om)),U===r&&(U=e.charAt(I),W.test(U)?I++:(U=r,ve===0&&be(Rm))),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 Qh(){var m,E,U,Q,ne,ue;if(m=I,E=e.charAt(I),E.toLowerCase()===M?I++:(E=r,ve===0&&be(bo)),E!==r)if(U=e.charAt(I),J.test(U)?I++:(U=r,ve===0&&be(_m)),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 Gh(){var m,E,U,Q,ne,ue;return m=I,E=I,U=Ya(),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(Ea)),U!==r?(Q=Ue(),ne=Po(),ne!==r?(Ue(),e.charCodeAt(I)===41?(ue=G,I++):(ue=r,ve===0&&be(Oa)),ue!==r?(Oe=m,m=vh(E,ne)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}function Yh(){var m,E,U,Q;return m=I,E=Ja(),E!==r?(Ue(),U=Xh(),U!==r?(Ue(),Q=Ja(),Q!==r?(Oe=m,m=wh(E,U,Q)):(I=m,m=r)):(I=m,m=r)):(I=m,m=r),m}function Jh(){var m,E,U,Q;return m=I,E=I,U=Ya(),U!==r?(Q=Ue(),U=[U,Q],E=U):(I=E,E=r),E===r&&(E=null),U=Xa(),U===r&&(U=Eo()),U!==r?(Oe=m,m=xh(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(Tm))),m}function Ya(){var m;return e.charCodeAt(I)===33?(m=Z,I++):(m=r,ve===0&&be(km)),m}function Ja(){var m;return m=Za(),m===r&&(m=Zh(),m===r&&(m=Eo())),m}function Xh(){var m;return e.substr(I,2)===te?(m=te,I+=2):(m=r,ve===0&&be(Im)),m===r&&(e.substr(I,2)===de?(m=de,I+=2):(m=r,ve===0&&be(qm)),m===r&&(e.substr(I,2)===ee?(m=ee,I+=2):(m=r,ve===0&&be(Cm)),m===r&&(e.substr(I,2)===ie?(m=ie,I+=2):(m=r,ve===0&&be(jm)),m===r&&(m=e.charAt(I),me.test(m)?I++:(m=r,ve===0&&be(Mm)))))),m}function Xa(){var m,E;return m=I,E=ey(),E===r&&(E=vo()),E!==r&&(Oe=m,E=Sh(E)),m=E,m}function Eo(){var m,E,U,Q,ne,ue,Te,Ye,lt;if(m=I,E=ty(),E!==r)if(e.charCodeAt(I)===40?(U=H,I++):(U=r,ve===0&&be(Ea)),U!==r){if(Ue(),Q=I,ne=Oo(),ne!==r){for(ue=[],Te=I,Ue(),e.charCodeAt(I)===44?(Ye=d,I++):(Ye=r,ve===0&&be(ge)),Ye!==r?(Ue(),lt=Oo(),lt!==r?(Oe=Te,Te=Ia(E,ne,lt)):(I=Te,Te=r)):(I=Te,Te=r);Te!==r;)ue.push(Te),Te=I,Ue(),e.charCodeAt(I)===44?(Ye=d,I++):(Ye=r,ve===0&&be(ge)),Ye!==r?(Ue(),lt=Oo(),lt!==r?(Oe=Te,Te=Ia(E,ne,lt)):(I=Te,Te=r)):(I=Te,Te=r);Oe=Q,Q=Ph(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(Oa)),ue!==r?(Oe=m,m=$h(E,Q)):(I=m,m=r)}else I=m,m=r;else I=m,m=r;return m}function Za(){var m,E;return m=I,E=ry(),E===r&&(E=Ha(),E===r&&(E=ny(),E===r&&(E=iy(),E===r&&(E=oy())))),E!==r&&(Oe=m,E=Ah(E)),m=E,m}function Zh(){var m;return m=sy(),m===r&&(m=ay()),m}function ey(){var m,E,U;return m=I,E=ec(),E!==r?(U=Da(),U!==r?(Oe=m,m=Eh(U)):(I=m,m=r)):(I=m,m=r),m}function ty(){var m,E,U,Q,ne;if(m=I,E=I,U=ly(),U!==r){for(Q=[],ne=tc();ne!==r;)Q.push(ne),ne=tc();U=[U,Q],E=U}else I=E,E=r;return E!==r?m=e.substring(m,I):m=E,m}function Oo(){var m;return m=Za(),m===r&&(m=Xa(),m===r&&(m=Eo(),m===r&&(m=Po()))),m}function ry(){var m,E,U,Q,ne,ue;return m=I,E=I,U=I,Q=Or(),Q===r&&(e.substr(I,2)===Pe?(Q=Pe,I+=2):(Q=r,ve===0&&be(Dm))),Q!==r?(ne=cy(),ne===r&&(ne=null),ue=py(),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=Oh(E)),m=E,m}function ny(){var m,E;return m=I,e.substr(I,4)===Ie?(E=Ie,I+=4):(E=r,ve===0&&be(Nm)),E!==r&&(Oe=m,E=Rh()),m=E,m}function iy(){var m,E;return m=I,e.substr(I,5)===Le?(E=Le,I+=5):(E=r,ve===0&&be(Lm)),E!==r&&(Oe=m,E=_h()),m=E,m}function oy(){var m,E;return m=I,e.substr(I,4)===Se?(E=Se,I+=4):(E=r,ve===0&&be(Um)),E!==r&&(Oe=m,E=Th()),m=E,m}function sy(){var m,E,U;return m=I,E=ec(),E!==r?(U=rc(),Oe=m,m=kh(U)):(I=m,m=r),m}function ay(){var m,E,U;return m=I,E=Ma(),E!==r?(U=rc(),Oe=m,m=Ih(U)):(I=m,m=r),m}function ec(){var m;return e.charCodeAt(I)===64?(m=qe,I++):(m=r,ve===0&&be(Fm)),m}function tc(){var m;return m=e.charAt(I),Ae.test(m)?I++:(m=r,ve===0&&be(zm)),m}function cy(){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 py(){var m,E,U,Q,ne;if(m=I,E=e.charAt(I),E.toLowerCase()===_?I++:(E=r,ve===0&&be(Bm)),E!==r){if(U=e.charAt(I),F.test(U)?I++:(U=r,ve===0&&be(Vm)),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 rc(){var m,E,U,Q;for(m=I,E=[],U=I,Ue(),Q=nc(),Q===r&&(Q=ic()),Q!==r?(Oe=U,U=qa(Q)):(I=U,U=r);U!==r;)E.push(U),U=I,Ue(),Q=nc(),Q===r&&(Q=ic()),Q!==r?(Oe=U,U=qa(Q)):(I=U,U=r);return Oe=m,E=qh(E),m=E,m}function ly(){var m;return m=e.charAt(I),X.test(m)?I++:(m=r,ve===0&&be(Hm)),m}function nc(){var m,E,U,Q;return m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r?(U=Ba(),U!==r?(e.charCodeAt(I)===93?(Q=h,I++):(Q=r,ve===0&&be(Ee)),Q!==r?(Oe=m,m=Ch(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=xo(),U!==r?(Oe=m,m=jh(U)):(I=m,m=r)):(I=m,m=r)),m}function ic(){var m,E,U,Q;return m=I,e.charCodeAt(I)===91?(E=l,I++):(E=r,ve===0&&be(ye)),E!==r?(U=Va(),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}if(Er=o(),t.peg$library)return{peg$result:Er,peg$currPos:I,peg$FAILED:r,peg$maxFailExpected:pn,peg$maxFailPos:mt};if(Er!==r&&I===e.length)return Er;throw Er!==r&&I<e.length&&be(Nh()),Lh(pn,mt<e.length?e.charAt(mt):null,mt<e.length?ja(mt,mt+1):ja(mt,mt))}function Xf(e){return g1(e)}class b1{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),Hi=e=>sn(e.value),Zf=new WeakSet,ct=e=>typeof e=="object"&&e!==null&&Zf.has(e),v1=e=>{switch(typeof e){case"string":case"number":case"boolean":return!0;case"object":return e===null||sn(e)||em(e);default:return!1}},em=e=>Array.isArray(e)&&!ct(e),tm=()=>{const e=[];return Zf.add(e),e},$r=Symbol("Nothing"),w1={declaration:function(t,r){return ct(r)?r.length:0},definition:{parameters:["NodesType"],returnType:"ValueType"}};function x1(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 S1={declaration:function(t,r){return typeof r=="string"?x1(r):Array.isArray(r)?r.length:sn(r)?Object.keys(r).length:$r},definition:{parameters:["ValueType"],returnType:"ValueType"}};function rm(e){return e===92}function P1(e,t){let r=!1,n=t;for(;n<e.length;){const i=e.charCodeAt(n);if(n++,rm(i)){r=!0;continue}if(i===93){if(!r)break;r=!1}}return n}function $1(e){let t=e;for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);rm(n)?r++:n===91?r=P1(e,r):n===46&&(t=`${e.slice(0,r)}[^
31
+ \r]${e.slice(r+1)}`)}return t}function nm({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($1(t),"u");return r[t]=n,n}catch{return r[t]=null,null}}const A1={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:nm(t,`^${n}$`)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}},E1={declaration:function(t,r,n){return typeof r!="string"||typeof n!="string"?!1:nm(t,n)?.test(r)===!0},definition:{parameters:["ValueType","ValueType"],returnType:"LogicalType"}},O1={declaration:function(t,r){return r.length===1?r[0]:$r},definition:{parameters:["NodesType"],returnType:"ValueType"}},Ms=[];function Pt(e,t){return e===Ms?Ms:typeof t=="number"?[...e,t]:[...e,k1(t)]}function R1(e){return e?[]:Ms}const _1=/[\u0000-\u001f'\\]/g;function T1(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 k1(e){return e.replace(_1,T1)}function I1(e){let t="$";for(const r of e)typeof r=="number"?t+=`[${r}]`:t+=`['${r}']`;return t}function Zt(e){throw new TypeError(`Unexpected node type: ${e.type}`)}function Bt(e){throw new TypeError(`Unexpected comparison operator: ${e}`)}function im(e,t){throw new Error(t)}function Ri(e){switch(typeof e){case"object":if(e===null)return"null";if(ct(e))return"NodeList";if(em(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===$r)return"Nothing";throw new TypeError(`Unknown type: ${e}`)}}function q1(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(!gr(e[r],t[r]))return!1;return!0}function C1(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)||!gr(e[i],t[i]))return!1;return!0}function gr(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 C1(e,t);case"array":case"NodeList":return q1(e,t);default:return!1}}function om(e,t,r){switch(r){case"==":case">=":case"<=":return!ct(e)&&!ct(t)&&gr(e,t);case"<":case">":return!1;case"!=":return!om(e,t,"==");default:Bt(r)}}function sm(e,t,r){switch(r){case"==":case"<=":case">=":return ct(e)&&(ct(t)&&gr(e,t)||t===$r);case"<":case">":return!1;case"!=":return!sm(e,t,"==");default:Bt(r)}}function am(e,t,r){switch(r){case"==":case"<=":case">=":return t===$r||ct(t)&&t.length===0;case"<":case">":return!1;case"!=":return!am(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 j1(e,t,r){switch(r){case"==":case"<=":case">=":return gr(e,t);case"<":case">":return!1;case"!=":return!gr(e,t);default:Bt(r)}}function cm(e,t,r){switch(r){case"==":case"<=":case">=":return e===t;case"<":case">":return!1;case"!=":return!cm(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 M1(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 D1(e,t,r){const n=ct(e)&&e.length===1?e[0]:e,i=Ri(n),o=ct(t)&&t.length===1?t[0]:t;switch(i){case"string":return M1(n,o,r);case"number":return Qt(n,o,r);case"boolean":case"null":return cm(n,o,r);case"object":return j1(n,o,r);case"array":return om(n,o,r);case"Nothing":return am(n,o,r);case"NodeList":return sm(n,o,r);default:im(i,"Unknown type")}}function pm(e,t,r){const n=tm();switch(r.value.type){case"RelQuery":Wi(e,t.root,t.value,r.value,i=>{n.push(i)});break;case"JsonPathQuery":Wi(e,t.root,t.root,r.value,i=>{n.push(i)});break;default:Zt(r.value)}return n}function N1(e,t,r){switch(r.expression.type){case"FilterQuery":return pm(e,t,r.expression).length>0;case"FunctionExpr":return wa(e,t,r.expression)===!0;default:Zt(r.expression)}}function Yt(e,t,r){switch(r.type){case"LogicalNotExpr":return!Yt(e,t,r.expression);case"LogicalAndExpr":return Yt(e,t,r.left)&&Yt(e,t,r.right);case"LogicalOrExpr":return Yt(e,t,r.left)||Yt(e,t,r.right);case"TestExpr":return N1(e,t,r);case"ComparisonExpr":return lm(e,t,r);default:Zt(r)}}function L1(e,t,r){switch(r.type){case"FunctionExpr":return wa(e,t,r);case"FilterQuery":return pm(e,t,r);case"LogicalNotExpr":case"LogicalAndExpr":case"LogicalOrExpr":case"TestExpr":return Yt(e,t,r);case"Literal":return r.value;default:Zt(r)}}function U1(e){return ct(e)?e.length===1?e[0]:$r:e}function wa(e,t,r){if(!F1(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=L1(e,t,r.arguments[o]),c=n.definition.parameters[o];switch(c){case"ValueType":if(!ct(s)&&!v1(s))return!1;i.push(U1(s));break;case"NodesType":if(!ct(s))return!1;i.push(s);break;case"LogicalType":if(typeof s=="boolean")i.push(s);else if(ct(s))i.push(s.length>0);else return!1;break;default:im(c,"Unknown function argument type")}}return n.declaration(e,...i)}function F1(e,t){return Object.hasOwn(e,t)}function Il(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=tm();return Wi(e,t.root,n,r,o=>{i.push(o)}),i}case"FunctionExpr":return wa(e,t,r);default:Zt(r)}}function lm(e,t,r){const n=Il(e,t,r.left),i=Il(e,t,r.right);return D1(n,i,r.op)}function um(e,t,r){if(r.value.type==="ComparisonExpr"){if(!lm(e,t,r.value))return}else if(!Yt(e,t,r.value))return;e.stack.push({root:t.root,path:t.path,value:t.value,index:t.index+1})}function z1(e,t){return e<0?t+e:e}function dm(e,t,r){const n=z1(r.value,t.value.length);n>=0&&n<t.value.length&&e.stack.push({root:t.root,path:Pt(t.path,n),value:t.value[n],index:t.index+1})}function fm(e,{root:t,path:r,value:n,index:i},o){Object.hasOwn(n,o.value)&&e.stack.push({root:t,path:Pt(r,o.value),value:n[o.value],index:i+1})}function Ki(e,t){return e>=0?e:t+e}function B1(e,t,r,n){const i=Ki(e,n),o=Ki(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 V1(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:Ki(o.start,n.length),d=o.end===null?p:Ki(o.end,n.length),[h,y]=B1(l,d,s,n.length);if(s>0){let g=h;for(;g<y;)e.stack.push({root:t,path:Pt(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:Pt(r,g),value:n[g],index:i+1}),g+=s}}function mm(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:Pt(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:Pt(r,o),value:n[o],index:i+1})}function H1(e,t,r){for(const n of r.selectors)switch(n.type){case"NameSelector":Hi(t)&&fm(e,t,n);break;case"SliceSelector":Oi(t)&&V1(e,t,n);break;case"IndexSelector":{Oi(t)&&dm(e,t,n);break}case"WildcardSelector":mm(e,t);break;case"FilterSelector":{Oi(t)?K1(e,t,n):Hi(t)&&W1(e,t,n);break}default:Zt(n)}}function K1(e,{root:t,path:r,value:n,index:i},o){for(let s=0;s<n.length;s++)um(e,{root:t,path:Pt(r,s),value:n[s],index:i},o)}function W1(e,{root:t,path:r,value:n,index:i},o){for(const s of Object.keys(n))um(e,{root:t,path:Pt(r,s),value:n[s],index:i},o)}function Q1(e,{root:t,path:r,value:n,index:i},o){Object.hasOwn(n,o.value)&&e.stack.push({root:t,path:Pt(r,o.value),value:n[o.value],index:i+1})}function G1(e,t,r){switch(r.type){case"BracketedSelection":return H1(e,t,r);case"WildcardSelector":return mm(e,t);case"MemberNameShorthand":Hi(t)&&Q1(e,t,r);break;case"NameSelector":Hi(t)&&fm(e,t,r);break;case"IndexSelector":Oi(t)&&dm(e,t,r);break;default:Zt(r)}}function Wi(e,t,r,n,i){const o=new b1;o.push({root:t,path:R1(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(G1(s,c,h.node),h.type==="DescendantSegment"){if(Array.isArray(l))for(let y=0;y<l.length;y++)o.push({root:t,path:Pt(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:Pt(p,y),value:l[y],index:d})}}}function hm(e,t,r,n){const i={cache:new Map,capturePaths:r.capturePaths,functions:{count:w1,search:E1,value:O1,match:A1,length:S1},regexp:"i-regexp"};Wi(i,e,e,Xf(t),n)}const Y1={capturePaths:!0};function J1(e,t){const r=[];return hm(e,t,{capturePaths:!1},n=>{r.push(n)}),r}function X1(e,t){const r=[];return hm(e,t,Y1,(n,i)=>{r.push(I1(i))}),r}const ql="#/components/actions/";function Z1(e,t,r){const n=j.normalizeTypes(ea),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 eT(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}rT(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",Ds(P,v=>{const O=r.resolveExternalRef(p,v),b=e.source.absoluteRef;return j.isAbsoluteUrl(O)||j.isAbsoluteUrl(b)?O:Hs(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=Ns(e.parsed,v[0].keys),A="copy"}if(P===void 0)return;if(new Set(x.map(({keys:v})=>{const O=Ns(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=tT(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(ql)?j.getOwn(c?.actions??{},j.unescapePointerFragment(A.slice(ql.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 xt({document:t,rootType:n.Root,normalizedVisitors:wt([{severity:"error",ruleId:"overlay",visitor:d}],n),resolvedRefMap:new Map,ctx:i}),i.problems}function Ds(e,t){if(Array.isArray(e))for(const r of e)Ds(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 Ds(n,t)}function eT(e,t){return[...new Set(X1(e,t))].map(r=>({jsonPath:r,keys:Xf(r).segments.flatMap(({node:n})=>n.type==="BracketedSelection"?n.selectors.flatMap(i=>i.type==="NameSelector"||i.type==="IndexSelector"?[i.value]:[]):[])}))}function tT(e,{jsonPath:t,keys:r},n,i){const o=Ns(e,r);if(Gi(o)){if(!Gi(n))return Ls(n,o,t);Qi(e,r.slice(0,-1),i)[r[r.length-1]]=n;return}const s=Qi(e,r,i);if(Array.isArray(s)){s.push(...Array.isArray(n)?structuredClone(n):[structuredClone(n)]);return}return Y.isPlainObject(n)?ym(s,n,t,i):Ls(n,s,t)}function ym(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=ym(Qi(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(Gi(s)&&Gi(o))e[i]=o;else return Ls(o,s,`${r}['${i}']`)}}function rT(e,t,r){const n=t.map(({keys:o})=>({parent:Qi(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 Ns(e,t){return t.reduce((r,n)=>r[n],e)}function Qi(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 Gi(e){return!Y.isPlainObject(e)&&!Array.isArray(e)}function Ls(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 Us(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 nT({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:i,componentRenamingConflicts:o="warn",componentNamesStrategy:s="basename"}){let c,p;const l=new Map,d=Us("Schema",e),h={ref:{leave(S,v,O){if(!O.location||O.node===void 0){lr(O,v.report,v.location);return}const b=Mr(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=Us(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){lr(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){lr(O,v.report,v.location.child("defaultMapping"));return}S.defaultMapping=g(d,Mr(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){lr(k,v.report,v.location.child(O));return}S[O]=g(d,Mr(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&&Mr(b).location)?.absolutePointer===v.location.absolutePointer)return!0}return Mt(S,v.node)}function x(S,v,O){const{title:b,name:k}=Kf(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 Fs extends Error{}class iT extends Error{}async function xa(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=Pr(t.parsed),y=ya(h),g=r.getRulesForSpecVersion(y),$=j.normalizeTypes(r.extendTypes(n,h),r),x=zr(g,r,"preprocessors",h),P=zr(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&&(xt({document:t,rootType:$.Root,normalizedVisitors:wt(x,$),resolvedRefMap:S,ctx:A}),S=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}));const v=(b,k)=>({severity:"error",ruleId:"bundler",visitor:nT({version:y,dereference:k,rootDocument:t,resolvedRefMap:b,keepUrlRefs:c,componentRenamingConflicts:p,componentNamesStrategy:l})}),O=P.filter(b=>b.ruleId!=="remove-unused-components");if(xt({document:t,rootType:$.Root,normalizedVisitors:wt(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 Fs(`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"||!lf.test(Z))throw new Fs(`${H} is not an Overlay 1.0, 1.1, or 1.2 document.`);A.problems.push(...Z1(t,G,i))}const b=await j.resolveDocument({rootDocument:t,rootType:$.Root,externalRefResolver:i}),k={...A,problems:[]};xt({document:t,rootType:$.Root,normalizedVisitors:wt([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=wt([{severity:"error",ruleId:"remove-unused-components",visitor:y==="oas2"?Xd():Zd()}],$);xt({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 oT(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ma]:n}};return xt({document:e,rootType:Xr.ConfigRoot,normalizedVisitors:d1,resolvedRefMap:t,ctx:i}),n.plugins}function sT(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[fa]:i}};return xt({document:e,rootType:Xr.ConfigRoot,normalizedVisitors:f1,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function aT(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),xa({document:o,...e,externalRefResolver:n,types:Yr(Pr(o.parsed))})}async function cT(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,types:Yr(Pr(i.parsed))})}function Jo(e){return!nt(e)}const Qr=new Map,_i="v";let Sa=0,Cl=!1;function pT(){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 lT(){if(!Cl){if(Cl=!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}pT()}}function uT(e){return Qr.has(e)}function dT(e){return Qr.get(e)}function fT(e,t){Qr.set(e,t)}function mT(){return Sa}function hT(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 yT=()=>{const e=[...Qr.keys()];for(const t of e)hT(t);Qr.clear(),Sa+=1,lT()};async function gT(e){const t=(void 0)(e);return t.searchParams.set(_i,String(Sa)),import(t.href)}async function gm({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i,plugins:o=[]}){const s=e===void 0?Dd:e.parsed;if(n!==void 0&&Y.isPlainObject(s)&&(s.extends=n),Y.isPlainObject(s)&&(s?.extends?.some(Jo)||s?.scorecardClassic?.levels?.some($=>$?.extends?.some(Jo))||s?.scorecard?.levels?.some($=>$?.extends?.some(Jo))))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(Ud(s?.resolve))});let l=[],d,h="";j.isBrowser?d=[...(s?.plugins||[]).filter(x=>!nt(x)),Rl,...o]:(h=Y.pathBrowserifyExports.dirname(t??""),l=oT(c,p,h),d=[...await bm(l.map(x=>jl(x)?x.absolutePath:x),h,i),Rl,...o]);const y=sT(c,l1(p),d,i);y.apis&&!i&&(y.apis=Object.fromEntries(Object.entries(y.apis).map(([$,x])=>{const P=Yf([y,x]);return[$,{...x,...P}]})));const g=l.length?l.map($=>jl($)&&$.isModule?$.rawPath:$.absolutePath&&Y.pathBrowserifyExports.relative(h,$.absolutePath)).filter(ft):void 0;return{resolvedConfig:{...y,plugins:g},resolvedRefMap:p,plugins:d}}function bT(e){for(const t of Ld)(void 0)(Y.pathBrowserifyExports.resolve(e,t))}function jl(e){return"isModule"in e}const zs=(e,t,r)=>{if(!nt(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-C8g-xqrP.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-C8g-xqrP.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-C8g-xqrP.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function bm(e,t,r=!1){if(!e)return[];const n=async p=>{if(!nt(p))return p;try{const l=Y.pathBrowserifyExports.isAbsolute(p)?p:zs(p,Y.pathBrowserifyExports.join(t,Rs),t).absolutePath;if(!uT(l)){const d=await gT(l),h=d.default||d,y={contentDir:t},g=Array.isArray(h)?h:[h];for(const P of g)P?.id&&_l(P)&&Me.info(`Deprecated plugin format detected: ${P.id}
34
+ `);const $=_l(h)?h:u1(h)?await h(y):await h?.default?.(y),x=Array.isArray($)?$:[$];$&&fT(l,x.map(P=>({...P,path:p,absolutePath:l})))}return dT(l)}catch(l){throw new Error(`Failed to load plugin "${p}": ${l.message}
35
+
36
+ ${l.stack}`)}},i=new Map,o=bT(t);o&&e.push(o);const s=new Set;if(r){const p=[];for(const l of e){if(!nt(l)){p.push(l);continue}const d=Y.pathBrowserifyExports.isAbsolute(l)?l:zs(l,Y.pathBrowserifyExports.join(t,Rs),t).absolutePath;s.has(d)||(s.add(d),p.push({absolutePath:d}))}return p}return(await Promise.all(e.map(async p=>{if(nt(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===va)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=Je(h.rules.oas3,y)),h.rules.oas2&&(x.rules.oas2=Je(h.rules.oas2,y)),h.rules.async2&&(x.rules.async2=Je(h.rules.async2,y)),h.rules.async3&&(x.rules.async3=Je(h.rules.async3,y)),h.rules.arazzo1&&(x.rules.arazzo1=Je(h.rules.arazzo1,y)),h.rules.overlay1&&(x.rules.overlay1=Je(h.rules.overlay1,y)),h.rules.openrpc1&&(x.rules.openrpc1=Je(h.rules.openrpc1,y)),h.rules.graphql&&(x.rules.graphql=Je(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=Je(h.preprocessors.oas3,y)),h.preprocessors.oas2&&(x.preprocessors.oas2=Je(h.preprocessors.oas2,y)),h.preprocessors.async2&&(x.preprocessors.async2=Je(h.preprocessors.async2,y)),h.preprocessors.async3&&(x.preprocessors.async3=Je(h.preprocessors.async3,y)),h.preprocessors.arazzo1&&(x.preprocessors.arazzo1=Je(h.preprocessors.arazzo1,y)),h.preprocessors.overlay1&&(x.preprocessors.overlay1=Je(h.preprocessors.overlay1,y)),h.preprocessors.openrpc1&&(x.preprocessors.openrpc1=Je(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=Je(h.decorators.oas3,y)),h.decorators.oas2&&(x.decorators.oas2=Je(h.decorators.oas2,y)),h.decorators.async2&&(x.decorators.async2=Je(h.decorators.async2,y)),h.decorators.async3&&(x.decorators.async3=Je(h.decorators.async3,y)),h.decorators.arazzo1&&(x.decorators.arazzo1=Je(h.decorators.arazzo1,y)),h.decorators.overlay1&&(x.decorators.overlay1=Je(h.decorators.overlay1,y)),h.decorators.openrpc1&&(x.decorators.openrpc1=Je(h.decorators.openrpc1,y))}return h.assertions&&(x.assertions=h.assertions),{...h,...x}}))).filter(ft)}))).filter(ft).flat()}function vT(e,t){const{pluginId:r,configName:n}=c1(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 wT(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 vm(e,t){const r=e?j.getDir(e):j.isBrowser?"":process.cwd(),n=r?j.resolvePath(r,Ni):Ni,i=await t.resolveDocument(null,n,!0);return i instanceof Error||!i.parsed?{}:wT(i.parsed||{},r)}async function xT(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 gm({rawConfigDocument:c?wm(c):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:i,plugins:o}),h=await vm(t,s);return new Zr(p,{configPath:t,document:c,resolvedRefMap:l,plugins:d,ignore:h})}function ST(e){}async function PT(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 gm({rawConfigDocument:wm(s),configPath:t,externalRefResolver:r,plugins:i});return new Zr(c,{configPath:t,document:s,resolvedRefMap:p,plugins:l,ignore:n})}function wm(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 Xo={},bt={},Zo={},Ml;function go(){return Ml||(Ml=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})(Zo)),Zo}var Ct={},Dl;function Ar(){if(Dl)return Ct;Dl=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 es,Nl;function an(){if(Nl)return es;Nl=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 es=e,es}var ts,Ll;function $T(){if(Ll)return ts;Ll=1;var e=Ar(),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
+ …\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
+ …\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
+ `+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 ts=t,ts}var Si={},Pi={},Ul;function ot(){if(Ul)return Pi;Ul=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 Fl;function cn(){if(Fl)return Si;Fl=1,Object.defineProperty(Si,"__esModule",{value:!0});var e=Ar(),t=an(),r=ot();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 rs,zl;function AT(){if(zl)return rs;zl=1;var e=ot();return rs=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),rs}var ns,Bl;function ET(){if(Bl)return ns;Bl=1;var e=ot();return ns=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),ns}var is,Vl;function OT(){if(Vl)return is;Vl=1;var e=ot();return is=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),is}var os,Hl;function RT(){if(Hl)return os;Hl=1;var e=cn();return os=new e.Schema({explicit:[AT(),ET(),OT()]}),os}var ss,Kl;function _T(){if(Kl)return ss;Kl=1;var e=ot();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 ss=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"}),ss}var as,Wl;function TT(){if(Wl)return as;Wl=1;var e=ot();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 as=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"}),as}var cs,Ql;function kT(){if(Ql)return cs;Ql=1;var e=Ar(),t=ot();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 cs=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"]}}),cs}var ps,Gl;function IT(){if(Gl)return ps;Gl=1;var e=Ar(),t=ot(),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 ps=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o,defaultStyle:"lowercase"}),ps}var ls,Yl;function qT(){if(Yl)return ls;Yl=1;var e=cn();return ls=new e.Schema({include:[RT()],implicit:[_T(),TT(),kT(),IT()]}),ls}var us,Jl;function CT(){if(Jl)return us;Jl=1;var e=cn();return us=new e.Schema({include:[qT()]}),us}var ds,Xl;function jT(){if(Xl)return ds;Xl=1;var e=ot(),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 ds=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:i}),ds}var fs,Zl;function MT(){if(Zl)return fs;Zl=1;var e=ot();function t(r){return r==="<<"||r===null}return fs=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),fs}var ms={},Cr={},eu;function DT(){if(eu)return Cr;eu=1,Cr.byteLength=c,Cr.toByteArray=l,Cr.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 Cr}var $i={};var tu;function NT(){return tu||(tu=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 ru;function LT(){return ru||(ru=1,(function(e){const t=DT(),r=NT(),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"?We:a}function We(){throw new Error("BigInt not supported")}})(ms)),ms}var hs,nu;function UT(){if(nu)return hs;nu=1;var e=LT().Buffer,t=ot(),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 hs=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:i,predicate:s,represent:o}),hs}var ys,iu;function FT(){if(iu)return ys;iu=1;var e=ot(),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 ys=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i}),ys}var gs,ou;function zT(){if(ou)return gs;ou=1;var e=ot(),t=go(),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 gs=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:i}),gs}var bs,su;function BT(){if(su)return bs;su=1;var e=ot(),t=go();function r(i){return i===null?!0:i.kind==t.Kind.MAP}function n(i){return i!==null?i:{}}return bs=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),bs}var vs,au;function Pa(){if(au)return vs;au=1;var e=cn(),t=new e.Schema({include:[CT()],implicit:[jT(),MT()],explicit:[UT(),FT(),zT(),BT()]});return vs=t,vs}var ws,cu;function VT(){if(cu)return ws;cu=1;var e=ot();function t(){return!0}function r(){}function n(){return""}function i(o){return typeof o>"u"}return ws=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),ws}var xs,pu;function HT(){if(pu)return xs;pu=1;var e=ot();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 xs=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),xs}var Ss,lu;function xm(){if(lu)return Ss;lu=1;var e=cn(),t=new e.Schema({include:[Pa()],explicit:[VT(),HT()]});return e.Schema.DEFAULT=t,Ss=t,Ss}var uu;function KT(){if(uu)return bt;uu=1,Object.defineProperty(bt,"__esModule",{value:!0});var e=go(),t=Ar(),r=an(),n=$T(),i=Pa(),o=xm(),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
+ `: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
+ `){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
+ `,f-1))}function $e(a,u,f){var T,N,L,B,se,le,Re,fe,xe=a.kind,ze=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=ze,!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,ze,_e,Ce,Ge;if(Ge=a.input.charCodeAt(a.position),Ge===91)le=93,xe=!1,L=e.newItems(),L.startPosition=a.position;else if(Ge===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),Ge=a.input.charCodeAt(++a.position);Ge!==0;){if(V(a,!0,u),Ge=a.input.charCodeAt(a.position),Ge===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 er=a.position;_(a,"missed comma between flow collection entries"),a.position=er+1}if(_e=ze=Ce=null,Re=fe=!1,Ge===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,ze=a.result,V(a,!0,u),Ge=a.input.charCodeAt(a.position),(fe||a.line===T)&&Ge===58&&(Re=!0,Ge=a.input.charCodeAt(++a.position),V(a,!0,u),ae(a,u,c,!1,!0),Ce=a.result),xe)w(a,L,_e,ze,Ce);else if(Re){var tr=w(a,null,_e,ze,Ce);tr.parent=L,L.items.push(tr)}else ze&&(ze.parent=L),L.items.push(ze);L.endPosition=a.position+1,V(a,!0,u),Ge=a.input.charCodeAt(a.position),Ge===44?(f=!0,Ge=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(`
45
+ `,se):N===h&&L&&(xe.value+=`
46
+ `);break}for(T?O(fe)?(le=!0,xe.value+=t.repeat(`
47
+ `,se+1)):le?(le=!1,xe.value+=t.repeat(`
48
+ `,se+1)):se===0?L&&(xe.value+=" "):xe.value+=t.repeat(`
49
+ `,se):L&&(xe.value+=t.repeat(`
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 ze=a.position-1;;){var _e=a.input[ze];if(_e=="\r"||_e==`
51
+ `||_e!=" "&&_e!=" ")break;ze--}return xe.endPosition=ze,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,ze=!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?(ze&&(w(a,le,Re,fe,null),Re=fe=xe=null),_e=!0,ze=!0,N=!0):ze?(ze=!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"),ze&&(w(a,le,Re,fe,null),Re=fe=xe=null),_e=!0,ze=!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)&&(ze?fe=a.result:xe=a.result),ze||(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 ze&&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,ze,_e,Ce,Ge;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 er=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,Ge=a.position-a.lineStart,le===1?se&&(me(a,Ge)||Ae(a,Ge,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,Ge))),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,ze=a.implicitTypes.length;xe<ze;xe+=1){_e=a.implicitTypes[xe];var tr=a.result.value;if(_e.resolve(tr)){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,er,"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
+ `),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])}bt.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]}}bt.load=ge;function Ee(a,u,f){f===void 0&&(f={}),ye(a,u,t.extend({schema:i},f))}bt.safeLoadAll=Ee;function We(a,u){return u===void 0&&(u={}),ge(a,t.extend({schema:i},u))}return bt.safeLoad=We,bt.loadAll=ye,bt.load=ge,bt.safeLoadAll=Ee,bt.safeLoad=We,bt}var jr={},du;function WT(){if(du)return jr;du=1,Object.defineProperty(jr,"__esModule",{value:!0});var e=Ar(),t=an(),r=xm(),n=Pa(),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
+ `,ae),ce===-1?(ye=F.slice(ae),ae=ge):(ye=F.slice(ae,ce+1),ae=ce+1),ye.length&&ye!==`
55
+ `&&(he+=pe),he+=ye;return he}function qe(F,X){return`
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,We,a,u,f,T,N,L,B,se,le,Re,fe,xe,ze,_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,We=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),We.takeUpTo(B),We.escapeChar())}if(ae&&_(F,X)&&(ae=!1),xe="",(ye||ge)&&(ze=0,X.charCodeAt(X.length-1)===c&&(ze+=1,X.charCodeAt(X.length-2)===c&&(ze+=1)),ze===0?xe="-":ze===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+`
57
+ `+Se(_e,T);else if(ge)xe||(X=X.replace(/\n$/,"")),F.dump="|"+xe+`
58
+ `+Se(X,T);else if(We)We.finish(),F.dump='"'+We.result+'"';else throw new Error("Failed to dump scalar value")}function q(F,X){var pe="",ae=0,ce=F.length,he=/\n+$/.exec(F),ye;for(he&&(ce=he.index+1);ae<ce;)ye=F.indexOf(`
59
+ `,ae),ye>ce||ye===-1?(pe&&(pe+=`
60
+
61
+ `),pe+=w(F.slice(ae,ce),X),ae=ce):(pe&&(pe+=`
62
+
63
+ `),pe+=w(F.slice(ae,ye),X),ae=ye+1);return he&&he[0]!==`
64
+ `&&(pe+=he[0]),pe}function w(F,X){if(F==="")return F;for(var pe=/[^\s] [^\s]/g,ae="",ce=0,he=0,ye=pe.exec(F),ge,Ee,We;ye;)ge=ye.index,ge-he>X&&(ce!==he?Ee=ce:Ee=ge,ae&&(ae+=`
65
+ `),We=F.slice(he,Ee),ae+=We,he=Ee+1),ce=ge+1,ye=pe.exec(F);return ae&&(ae+=`
66
+ `),he!==ce&&F.length-he>X?ae+=F.slice(he,ce)+`
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,We,a;for(ye=0,ge=he.length;ye<ge;ye+=1)a="",ye!==0&&(a+=", "),Ee=he[ye],We=pe[Ee],W(F,X,Ee,!1,!1)&&(F.dump.length>1024&&(a+="? "),a+=F.dump+": ",W(F,X,We,!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,We,a,u,f;for(ge=0,Ee=ye.length;ge<Ee;ge+=1)f="",(!ae||ge!==0)&&(f+=qe(F,X)),We=ye[ge],a=pe[We],W(F,X+1,We,!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
+ `:"")+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
+ `:"")+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
+ `:""}jr.dump=me;function Ae(F,X){return me(F,e.extend({schema:n},X))}return jr.safeDump=Ae,jr}var Ps={},fu;function QT(){return fu||(fu=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})(Ps)),Ps}var mu;function GT(){return mu||(mu=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=KT();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=WT();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=an(),t(go()),t(QT())})(Xo)),Xo}var Dr=GT();const YT=150,JT=3;function Bs(e,t){_s.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-JT+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=Yi(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(["",hu(g,$,x)])}return p>0&&(l.push(["…",`${$a(d)}${De.gray(`< ${p} more lines >`)}`]),l.push([`${c}`,h(o[c-1],-1,n.col-1,De.red)]),t||l.push(["",hu(o[c-1],-1,n.col-1)])),XT([[`${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=Yi(y)),$=Math.min($,y.length),y.substr(0,g)+x(y.substring(g,$))+y.substr($))}}function XT(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:Yi(o)));return t.map(([i,o])=>De.gray(ek(r,i)+" |")+(o?" "+ZT(o.substring(n)):"")).join(`
71
+ `)}function ZT(e,t=YT){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 hu(e,t=-1,r=1/0){return t===-1&&(t=Yi(e)),r=Math.min(r,e.length),$a(t)+"^".repeat(Math.max(r-t,1))}function $a(e){return" ".repeat(e)}function ek(e,t){return $a(e-t.length)+t}function Yi(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(Dr.safeLoad),o=Sm(i,r,!!n);return{...e,pointer:void 0,...rk(t,o?.startPosition??1,o?.endPosition??1)}}const yu=new WeakMap;function tk(e){let t=yu.get(e);if(!t){t=[0];for(let r=0;r<e.body.length;r++)e.body[r]===`
72
+ `&&t.push(r+1);yu.set(e,t)}return t}function gu(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 rk(e,t,r){if(t===r)return{start:{line:1,col:1},end:{line:1,col:1}};const n=tk(e),i=gu(e,n,t),o=gu(e,n,r-1);return{start:i,end:{line:o.line,col:o.col+1}}}function Sm(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===Dr.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===Dr.Kind.SEQ){const s=i.items[parseInt(o,10)];if(!s)break;i=s}if(r){const o=i.parent;return!o||o.kind===Dr.Kind.SEQ?i:o.kind===Dr.Kind.MAPPING?o.key:i}else return i}const nk={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},bu={warn:e=>De.bgYellow(De.black(e)),error:De.bgRed},Pm={warn:De.yellow,error:De.red},pr={warn:"Warning",error:"Error"},ik={error:"critical",warn:"minor"},ok=+(j.env.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function Ji(e){return e==="error"?1:2}function $m(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 sk(e,t){const{maxProblems:r=100,cwd:n=j.isBrowser?"":process.cwd(),format:i="codeframe",color:o=_s.enabled,totals:s=$m(e),version:c="2.0",command:p}=t;_s.enabled=o;const l=e.length;e=e.filter(v=>!v.ignored);const d=l-e.length;if(e=e.sort((v,O)=>Ji(v.severity)-Ji(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"?Me.info(`${$(O,v)}
73
+ `):Me.output(`${$(O,v)}
74
+ `)}break;case"stylish":{const v=$s(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
+ `);for(let H=0;H<M.length;H++){const G=M[H];Me.output(`${x(G,k,b)}
76
+ `)}Me.output(`
77
+ `)}break}case"markdown":{const v=$s(e);for(const[O,{fileProblems:b}]of Object.entries(v)){Me.output(`## Lint: ${j.isAbsoluteUrl(O)?O:Y.pathBrowserifyExports.relative(n,O)}
78
+
79
+ `),Me.output(`| Severity | Location | Problem | Message |
80
+ `),Me.output(`|---|---|---|---|
81
+ `);for(let k=0;k<b.length;k++){const M=b[k];Me.output(`${P(M)}
82
+ `)}Me.output(`
83
+ `),s.errors>0?Me.output(`Validation failed
84
+ Errors: ${s.errors}
85
+ `):Me.output(`Validation successful
86
+ `),s.warnings>0&&Me.output(`Warnings: ${s.warnings}
87
+ `),Me.output(`
88
+ `)}break}case"checkstyle":{const v=$s(e);Me.output(`<?xml version="1.0" encoding="UTF-8"?>
89
+ `),Me.output(`<checkstyle version="4.3">
90
+ `);for(const[O,{fileProblems:b}]of Object.entries(v))Me.output(`<file name="${vt(j.isAbsoluteUrl(O)?O:Y.pathBrowserifyExports.relative(n,O))}">
91
+ `),b.forEach(A),Me.output(`</file>
92
+ `);Me.output(`</checkstyle>
93
+ `);break}case"junit":{const v=e.filter(k=>k.severity==="error").length,O=e.filter(k=>k.severity==="warn").length,b={};for(const k of e){const M=k.location[0].source.absoluteRef;b[M]||(b[M]=[]),b[M].push(k)}Me.output(`<?xml version="1.0" encoding="UTF-8"?>
94
+ `),Me.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${v}" failures="${O}" skipped="0">
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="${vt(H)}" tests="${M.length}" errors="${G}" failures="${Z}">
96
+ `),M.forEach(te=>S(te,H)),Me.output(`</testsuite>
97
+ `)}Me.output(`</testsuites>
98
+ `);break}case"codeclimate":h();break;case"summary":ak(e);break;case"github-actions":pk(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:ik[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=Bs(M,o)}return b})};Me.output(JSON.stringify(v,null,2))}function g(v){const{severity:O}=v;if(!bu[O])throw new Error(nk.INVALID_SEVERITY_LEVEL);return bu[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
+
101
+ ${v.message}
102
+
103
+ `+Am(v)+Bs(H,o)+`
104
+
105
+ `+ck(n,v.from)+`${pr[v.severity]} was generated by the ${De.blue(v.ruleId)} rule.
106
+
107
+ `+(v.reference?`Reference: ${De.blue(v.reference)}
108
+
109
+ `:"")}function x(v,O,b){const k=Pm[v.severity];if(!pr[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const M=k(pr[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(!pr[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const O=pr[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
+ `,"<br>")} |`}function A(v){const{line:O,col:b}=v.location[0].start,k=v.severity=="warn"?"warning":"error",M=vt(v.message),H=vt(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}=jt(b),M=v.severity==="error"?"error":"failure",H=vt(v.ruleId),G=vt(v.message),Z=[`Rule: ${H}`,`Severity: ${vt(v.severity)}`,`File: ${vt(O)}`,`Line: ${k.line}`,`Column: ${k.col}`];b.pointer&&Z.push(`Pointer: ${vt(b.pointer)}`),Z.push(`Message: ${G}`),Me.output(`<testcase classname="${H}" name="${H}" file="${vt(O)}" line="${k.line}">
112
+ `),Me.output(`<${M} message="${G}" type="${H}">${Z.join(`
113
+ `)}</${M}>
114
+ `),Me.output(`</testcase>
115
+ `)}}function ak(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])=>Ji(n.severity)-Ji(i.severity)||i.count-n.count);for(const[n,i]of r){const o=Pm[i.severity],s=o(pr[i.severity].toLowerCase().padEnd(7));Me.output(`${s} ${n}: ${i.count}
116
+ `)}Me.output(`
117
+ `)}function ck(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
+
119
+ `}function Am(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
120
+
121
+ `:`Did you mean:
122
+ - ${e.suggest.slice(0,ok).join(`
123
+ - `)}
124
+
125
+ `}const $s=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 vt(e){return e.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu,t=>{switch(t){case"<":return"&lt;";case">":return"&gt;";case"&":return"&amp;";case'"':return"&quot;";case"'":return"&apos;";default:return`&#${t.charCodeAt(0)};`}})}function pk(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=Am(s),d=s.reference?`Reference: ${s.reference}
126
+
127
+ `:"",h=s.message+(l!==""||d!==""?`
128
+
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:gk,...lk}=eo.properties,uk={...eo,properties:lk};async function dk(e){const{ref:t,externalRefResolver:r=new j.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Aa({document:n,...e,externalRefResolver:r})}async function fk(e){const{source:t,absoluteRef:r,externalRefResolver:n=new j.BaseResolver(e.config.resolve)}=e,i=j.makeDocumentFromString(t,r||"/");return Aa({document:i,...e,externalRefResolver:n})}async function Aa(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-CZBwQl0k.js"));return g({document:t,config:i})}const o=Pr(t.parsed),s=i.getRulesForSpecVersion(ya(o)),c=j.normalizeTypes(i.extendTypes(r??Yr(o),o),i),p={problems:[],specVersion:o,config:i,visitorsData:{}},l=zr(s,i,"preprocessors",o),d=zr(s,i,"rules",o);let h=await j.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n});l.length>0&&(xt({document:t,rootType:c.Root,normalizedVisitors:wt(l,c),resolvedRefMap:h,ctx:p}),h=await j.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const y=wt(d,c);return xt({document:t,rootType:c.Root,normalizedVisitors:y,resolvedRefMap:h,ctx:p}),p.problems.map(g=>i.addProblemToIgnore(g))}async function mk(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||da(uk,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:Nt()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Dt()}],c=wt(s,o),p=n.resolvedRefMap||await j.resolveDocument({rootDocument:n.document,rootType:o.ConfigRoot,externalRefResolver:r});return xt({document:n.document,rootType:o.ConfigRoot,normalizedVisitors:c,resolvedRefMap:p,ctx:i}),i.problems}exports.AbortFlowError=iT;exports.Ajv=kd;exports.Arazzo1Types=it;exports.Arazzo1_1Types=Mu;exports.Assertions=zt;exports.AsyncApi2Types=Cu;exports.AsyncApi3Types=ju;exports.CONFIG_BUNDLER_VISITOR_ID=fa;exports.CONFIG_FILE_NAME=Rs;exports.Config=Zr;exports.ConfigTypes=Md;exports.ConfigValidationError=p1;exports.DEFAULT_CONFIG=Dd;exports.DEFAULT_PROJECT_PLUGIN_PATHS=Ld;exports.Ei=RP;exports.HandledError=Fs;exports.IGNORE_BANNER=Nd;exports.IGNORE_FILE=Ni;exports.NoUnresolvedRefs=Dt;exports.Oas2Types=wu;exports.Oas3Types=St;exports.Oas3_1Types=Fe;exports.Oas3_2Types=rt;exports.OpenRpcTypes=Nu;exports.Overlay1Types=ea;exports.PLUGINS_COLLECTOR_VISITOR_ID=ma;exports.Struct=Nt;exports.bundle=aT;exports.bundleDocument=xa;exports.bundleFromString=cT;exports.clearPluginsCache=yT;exports.createConfig=PT;exports.createConfigTypes=da;exports.dequal=Mt;exports.detectSpec=Pr;exports.findConfig=ST;exports.formatProblems=sk;exports.getAstNodeByPointer=Sm;exports.getCodeframe=Bs;exports.getLineColLocation=jt;exports.getMajorSpecVersion=ya;exports.getNodeTypesFromJSONSchema=Id;exports.getPluginCacheVersion=mT;exports.getTotals=$m;exports.getTypes=Yr;exports.initRules=zr;exports.isEmptyObject=mr;exports.isNotEmptyArray=Ur;exports.isString=nt;exports.keysOf=Vs;exports.lint=dk;exports.lintConfig=mk;exports.lintDocument=Aa;exports.lintFromString=fk;exports.loadConfig=xT;exports.loadIgnoreConfig=vm;exports.logger=Me;exports.mapTypeToComponent=Us;exports.normalizeVisitors=wt;exports.pluralize=hy;exports.query=J1;exports.regexFromString=Nr;exports.resolvePlugins=bm;exports.slash=Hs;exports.t=Xe;exports.walkDocument=xt;exports.xi=OP;exports.xmlEscape=vt;