@redocly/replay 0.29.0-next.3 → 0.29.0-next.4

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 (56) hide show
  1. package/dist/{replay-AiChatProvider-Bnz0LDFD.js → replay-AiChatProvider-DR7NuYZo.js} +6 -6
  2. package/dist/{replay-AiChatProvider-C5p3nTV1.js → replay-AiChatProvider-GWJ-n-vh.js} +1 -1
  3. package/dist/{replay-AiChatSqliteDBStorage-Dfbp6Mt_.js → replay-AiChatSqliteDBStorage--C03eLtv.js} +1 -1
  4. package/dist/{replay-AiChatSqliteDBStorage-DYxoSZak.js → replay-AiChatSqliteDBStorage-BFkOn15p.js} +1 -1
  5. package/dist/{replay-AiPanel-BSg5Bap4.js → replay-AiPanel-1tEi12j1.js} +1 -1
  6. package/dist/{replay-AiPanel-C0E1A47H.js → replay-AiPanel-CXIw_O8d.js} +4 -4
  7. package/dist/{replay-FileWatcher-Ba9Ob_Sy.js → replay-FileWatcher-B9PZyA8D.js} +1 -1
  8. package/dist/{replay-FileWatcher-BiAGOR1Z.js → replay-FileWatcher-SUnXmGod.js} +2 -2
  9. package/dist/{replay-SemanticSearchService-sIjG5Wxe.js → replay-SemanticSearchService-BGg8Dbuq.js} +1 -1
  10. package/dist/{replay-SemanticSearchService-IInvoSoP.js → replay-SemanticSearchService-vr1hqPU7.js} +1 -1
  11. package/dist/{replay-SqliteDBStorage-DMoeVRXU.js → replay-SqliteDBStorage-DcIA3sjg.js} +1 -1
  12. package/dist/{replay-SqliteDBStorage-C-ovuJna.js → replay-SqliteDBStorage-lUh6lJSO.js} +1 -1
  13. package/dist/{replay-TauriFileSystemAdapter-CB9S1PNT.js → replay-TauriFileSystemAdapter-C2c2Qy4S.js} +1 -1
  14. package/dist/{replay-TauriFileSystemAdapter-DDo2h7gX.js → replay-TauriFileSystemAdapter-wAZBliTE.js} +1 -1
  15. package/dist/{replay-TauriRootStorage-CR1PyBgZ.js → replay-TauriRootStorage-CwVriXnS.js} +2 -2
  16. package/dist/{replay-TauriRootStorage-BX-XrEN-.js → replay-TauriRootStorage-olGW7jq5.js} +1 -1
  17. package/dist/{replay-agent-loop-BmoYEhOB.js → replay-agent-loop-GDXIQGy5.js} +1 -1
  18. package/dist/{replay-agent-loop-4YtdgkDh.js → replay-agent-loop-QLgzMDfU.js} +3 -3
  19. package/dist/{replay-ai-chat-mappers-42FEVsfw.js → replay-ai-chat-mappers-DFVcviEH.js} +1 -1
  20. package/dist/{replay-ai-chat-mappers-CgjhiNr7.js → replay-ai-chat-mappers-Dkj4vl9T.js} +1 -1
  21. package/dist/{replay-create-model-4Yknbfme.js → replay-create-model-D9NcJ3yx.js} +3 -3
  22. package/dist/{replay-create-model-kF4veQPK.js → replay-create-model-UDURpFQ4.js} +3 -3
  23. package/dist/{replay-db-_hwn1n5t.js → replay-db-CFx-F30d.js} +1 -1
  24. package/dist/{replay-db-B3tQE-B9.js → replay-db-CMt9dX-H.js} +1 -1
  25. package/dist/{replay-external-resolver-DX5JrdGB.js → replay-external-resolver-CPD4hskh.js} +1 -1
  26. package/dist/{replay-external-resolver-DS7qAi0G.js → replay-external-resolver-rqFR7T0O.js} +2 -2
  27. package/dist/{replay-index-BYEUJTGe.js → replay-index-0MfVkwY4.js} +1 -1
  28. package/dist/replay-index-BTZoG4e-.js +4 -0
  29. package/dist/{replay-index-BDRC1QoR.js → replay-index-CLJOTBS9.js} +1051 -1046
  30. package/dist/{replay-index-CtxNTrRQ.js → replay-index-CVhBLstt.js} +1 -1
  31. package/dist/{replay-index-Bwbd4CsO.js → replay-index-DFopWLS5.js} +146 -139
  32. package/dist/replay-index-DFpzg2pO.js +1 -0
  33. package/dist/{replay-index-KN9FLfwz.js → replay-index-DhelzkVo.js} +13856 -13819
  34. package/dist/{replay-index-DD1leCQo.js → replay-index-X5PC09Iq.js} +1 -1
  35. package/dist/{replay-lint-BvndGL38.js → replay-lint-VrViwed0.js} +48 -48
  36. package/dist/{replay-lint-graphql-DKP9oX8y.js → replay-lint-graphql-BytE8Msa.js} +2 -2
  37. package/dist/{replay-lint-graphql-CK8-ZL5Q.js → replay-lint-graphql-Cj0YxKYW.js} +1 -1
  38. package/dist/{replay-lint-C3ireP5A.js → replay-lint-xvdvEmuK.js} +838 -831
  39. package/dist/{replay-periodic-revalidation-BcWBqn6g.js → replay-periodic-revalidation-CBK4GGcK.js} +1 -1
  40. package/dist/{replay-periodic-revalidation-chHSyw20.js → replay-periodic-revalidation-UaQh_EiA.js} +1 -1
  41. package/dist/{replay-resolve-B1Kvf3fM.js → replay-resolve-B-ScAEQ_.js} +1 -1
  42. package/dist/{replay-resolve-DC-rmKvK.js → replay-resolve-DxLYwKrU.js} +1 -1
  43. package/dist/{replay-respect-run-C24QylJ-.js → replay-respect-run-BC7vr1j1.js} +21 -21
  44. package/dist/{replay-respect-run-DDZ9eF0k.js → replay-respect-run-C84RN_GR.js} +430 -421
  45. package/dist/{replay-tauri-path-Bz_q3KUG.js → replay-tauri-path-B-SLo2Ec.js} +2 -2
  46. package/dist/{replay-tauri-path-DBSmio5_.js → replay-tauri-path-Bl15GRY1.js} +1 -1
  47. package/dist/{replay-useAiChatQueries-C_GZ_b68.js → replay-useAiChatQueries-C-ZR0ZaE.js} +1 -1
  48. package/dist/{replay-useAiChatQueries-DQks2tVS.js → replay-useAiChatQueries-gO6Sj7A5.js} +4 -4
  49. package/dist/{replay-validate-key-DScTTPU4.js → replay-validate-key-CuCnpHLS.js} +1 -1
  50. package/dist/{replay-validate-key-c2nCLxiG.js → replay-validate-key-D5QLY_qk.js} +2 -2
  51. package/dist/replay.cjs +1 -1
  52. package/dist/replay.d.ts +7 -0
  53. package/dist/replay.js +1 -1
  54. package/package.json +4 -4
  55. package/dist/replay-index-CHdCQ_zw.js +0 -4
  56. package/dist/replay-index-r6bsSAe6.js +0 -1
@@ -1,52 +1,52 @@
1
- "use strict";const K=require("./replay-index-BDRC1QoR.js"),I=require("./replay-resolve-B1Kvf3fM.js");var at=typeof document<"u"?document.currentScript:null;function ht(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--&&ht(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)||!ht(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Lt(e){return K.isPlainObject(e)&&Object.keys(e).length===0}function or(e){return Array.isArray(e)&&e.length>0}function ze(e){return typeof e=="string"}function Lo(e){return e?Object.keys(e):[]}function fd(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 zn={exports:{}},md=zn.exports,gs;function hd(){return gs||(gs=1,(function(e,t){(function(r,n){typeof fd=="function"?e.exports=n():r.pluralize=n()})(md,function(){var r=[],n=[],i={},o={},a={};function c(w){return typeof w=="string"?new RegExp("^"+w+"$","i"):w}function p(w,S){return w===S?S:w===w.toLowerCase()?S.toLowerCase():w===w.toUpperCase()?S.toUpperCase():w[0]===w[0].toUpperCase()?S.charAt(0).toUpperCase()+S.substr(1).toLowerCase():S.toLowerCase()}function u(w,S){return w.replace(/\$(\d{1,2})/g,function(E,x){return S[x]||""})}function f(w,S){return w.replace(S[0],function(E,x){var v=u(S[1],arguments);return p(E===""?w[x-1]:E,v)})}function m(w,S,E){if(!w.length||i.hasOwnProperty(w))return S;for(var x=E.length;x--;){var v=E[x];if(v[0].test(S))return f(S,v)}return S}function y(w,S,E){return function(x){var v=x.toLowerCase();return S.hasOwnProperty(v)?p(x,v):w.hasOwnProperty(v)?p(x,w[v]):m(v,x,E)}}function h(w,S,E,x){return function(v){var $=v.toLowerCase();return S.hasOwnProperty($)?!0:w.hasOwnProperty($)?!1:m($,$,E)===$}}function O(w,S,E){var x=S===1?O.singular(w):O.plural(w);return(E?S+" ":"")+x}return O.plural=y(a,o,r),O.isPlural=h(a,o,r),O.singular=y(o,a,n),O.isSingular=h(o,a,n),O.addPluralRule=function(w,S){r.push([c(w),S])},O.addSingularRule=function(w,S){n.push([c(w),S])},O.addUncountableRule=function(w){if(typeof w=="string"){i[w.toLowerCase()]=!0;return}O.addPluralRule(w,"$0"),O.addSingularRule(w,"$0")},O.addIrregularRule=function(w,S){S=S.toLowerCase(),w=w.toLowerCase(),a[w]=S,o[S]=w},[["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(w){return O.addIrregularRule(w[0],w[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(w){return O.addPluralRule(w[0],w[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(w){return O.addSingularRule(w[0],w[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(O.addUncountableRule),O})})(zn)),zn.exports}var yd=hd();const Rp=K.getDefaultExportFromCjs(yd);function gd(e,t,r){return e.split(" ").map(n=>Rp(n,t,r)).join(" ")}function $p(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function ir(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const bd=/^[0-9][0-9Xx]{2}$/,vd={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-"},wd={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-"},xd={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},Sd={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Pd={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Ed={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Od={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Ad={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-"},Rd={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},$d={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},_d={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Td={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-"},kd={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-"},Id={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>bd.test(t)?"Response":void 0},qd={properties:{description:{type:"string"},schema:"Schema",headers:I.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Cd={properties:{},additionalProperties:{isExample:!0}},jd={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return K.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Md={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Dd={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},Nd={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)?I.listOf("Schema"):"Schema",allOf:I.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-"},Ld={properties:{},additionalProperties:{type:"string"}},Ud={properties:{},additionalProperties:"Schema"},Fd={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},zd={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},Bd={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-"},Vd={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Hd={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},_p={Root:vd,Tag:Md,TagList:I.listOf("Tag"),TagGroups:I.listOf("TagGroup"),TagGroup:Dd,ExternalDocs:_d,Example:Hd,ExamplesMap:I.mapOf("Example"),EnumDescriptions:Ld,SecurityRequirement:Vd,SecurityRequirementList:I.listOf("SecurityRequirement"),Info:wd,Contact:Sd,License:Pd,Logo:xd,Paths:Ed,PathItem:Od,Parameter:Td,ParameterItems:kd,ParameterList:I.listOf("Parameter"),Operation:Ad,Examples:Cd,Header:jd,Responses:Id,Response:qd,Schema:Nd,Xml:Fd,SchemaProperties:Ud,NamedSchemas:I.mapOf("Schema"),NamedResponses:I.mapOf("Response"),NamedParameters:I.mapOf("Parameter"),NamedSecuritySchemes:I.mapOf("SecurityScheme"),SecurityScheme:Bd,Scopes:zd,XCodeSample:Rd,XCodeSampleList:I.listOf("XCodeSample"),XServerList:I.listOf("XServer"),XServer:$d},Kd=/^[0-9][0-9Xx]{2}$/,Wd={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."},Qd={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."},Gd={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"},Yd={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"},Jd={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."},Xd={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."},Zd={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."},ef={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"},tf={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."},rf={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."},nf={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."},of={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"},sf={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},af={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"},cf={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"},pf={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"},lf={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."},uf={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."},df={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},ff={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"},mf={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"},hf={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"},yf={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"},gf={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."},bf={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Kd.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"},vf={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."},wf={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."},Uo="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",Tp=I.listOf("Schema",{name:"AllOf",description:Uo}),kp=I.listOf("Schema",{name:"AnyOf",description:Uo}),Ip=I.listOf("Schema",{name:"OneOf",description:Uo}),xf={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:Tp,anyOf:kp,oneOf:Ip,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?I.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"},Sf={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."},Pf={properties:{},additionalProperties:"Schema"},Ef={properties:{},additionalProperties:e=>typeof e=="string"&&I.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},Of={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."},Af={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"},Rf={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."},$f={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."},_f={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."},Tf={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."},kf={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},If={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-"},qf={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"},rt={Root:Wd,Tag:Qd,TagList:I.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:I.listOf("TagGroup"),TagGroup:Gd,ExternalDocs:Yd,Server:Jd,ServerList:I.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:Xd,ServerVariablesMap:I.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:Zd,SecurityRequirementList:I.listOf("SecurityRequirement"),Info:ef,Contact:rf,License:nf,Paths:of,PathItem:af,Parameter:cf,ParameterList:I.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:pf,Callback:I.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:I.mapOf("Callback"),RequestBody:uf,MediaTypesMap:df,MediaType:ff,Example:mf,ExamplesMap:I.mapOf("Example"),Encoding:hf,EncodingMap:I.mapOf("Encoding"),EnumDescriptions:yf,Header:gf,HeadersMap:I.mapOf("Header"),Responses:bf,Response:vf,Link:wf,Logo:tf,Schema:xf,AllOf:Tp,AnyOf:kp,OneOf:Ip,Xml:Sf,SchemaProperties:Pf,DiscriminatorMapping:Ef,Discriminator:Of,Components:Af,LinksMap:I.mapOf("Link"),NamedSchemas:I.mapOf("Schema"),NamedResponses:I.mapOf("Response"),NamedParameters:I.mapOf("Parameter"),NamedExamples:I.mapOf("Example"),NamedRequestBodies:I.mapOf("RequestBody"),NamedHeaders:I.mapOf("Header"),NamedSecuritySchemes:I.mapOf("SecurityScheme"),NamedLinks:I.mapOf("Link"),NamedCallbacks:I.mapOf("Callback"),ImplicitFlow:Rf,PasswordFlow:$f,ClientCredentials:_f,AuthorizationCode:Tf,OAuth2Flows:kf,SecurityScheme:If,XCodeSample:lf,XCodeSampleList:I.listOf("XCodeSample"),XUsePkce:qf,WebhooksMap:sf},Cf={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."},jf={...rt.License,properties:{...rt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},Mf={...rt.Info,properties:{...rt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Df={...rt.Components,properties:{...rt.Components.properties,pathItems:"NamedPathItems"}},Nf={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."},Lf={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:I.listOf("Schema",{name:"AllOf"}),anyOf:I.listOf("Schema",{name:"AnyOf"}),oneOf:I.listOf("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:I.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:I.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-"},bs={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Uf={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-"},Ff={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},$e={...rt,Info:Mf,Root:Cf,Schema:Lf,SchemaProperties:bs,PatternProperties:bs,License:jf,Components:Df,NamedPathItems:I.mapOf("PathItem"),SecurityScheme:Uf,Operation:Nf,DependentRequired:Ff},zf={...$e.Root,properties:{...$e.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."}}},Bf={...$e.Tag,properties:{...$e.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."},Vf={...$e.Server,properties:{...$e.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."},Hf={...$e.SecurityScheme,properties:{...$e.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."},Kf={...$e.OAuth2Flows,properties:{...$e.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Wf={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:I.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."},Qf={...rt.PathItem,properties:{...rt.PathItem.properties,query:"Operation",additionalOperations:I.mapOf("Operation")}},Gf={...$e.Parameter,properties:{...$e.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"]}}},Yf={...$e.Response,properties:{...$e.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Jf={...$e.MediaType,properties:{...$e.MediaType.properties,itemSchema:"Schema",prefixEncoding:I.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"}},Xf={...$e.Discriminator,properties:{...$e.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 I.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Zf={extensionsPrefix:"x-",properties:{...$e.Components.properties,mediaTypes:"NamedMediaTypes"}},em={...$e.Example,properties:{...$e.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."}}},tm={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."},rm={...$e.Schema,properties:{...$e.Schema.properties,xml:"Xml"}},Fe={...$e,Root:zf,Tag:Bf,Server:Vf,SecurityScheme:Hf,OAuth2Flows:Kf,DeviceAuthorization:Wf,PathItem:Qf,Parameter:Gf,Response:Yf,MediaType:Jf,Discriminator:Xf,Example:em,Xml:tm,Schema:rm,Components:Zf,NamedMediaTypes:I.mapOf("MediaTypesMap")},nm={properties:{},description:"Protocol-specific information for an HTTP channel."},im={properties:{},description:"Protocol-specific information for an HTTP server."},om={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},sm={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."},am={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},cm={properties:{},description:"Protocol-specific information for a WebSockets server."},pm={properties:{},description:"Protocol-specific information for a WebSockets message."},lm={properties:{},description:"Protocol-specific information for a WebSockets operation."},um={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"}}},dm={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},fm={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},mm={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},hm={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},ym={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},gm={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},bm={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},vm={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},wm={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."},xm={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."},Sm={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."},Pm={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Em={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},Om={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."},Am={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},Rm={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},$m={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},_m={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},Tm={properties:{},description:"Protocol-specific information for an MQTT channel."},km={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},Im={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>K.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>K.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},qm={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>K.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},Cm={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>K.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},jm={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},Mm={properties:{sessionExpiryInterval:e=>K.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Dm={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Nm={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Lm={properties:{},description:"Protocol-specific information for a NATS channel."},Um={properties:{},description:"Protocol-specific information for a NATS server."},Fm={properties:{},description:"Protocol-specific information for a NATS message."},zm={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},Bm={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Vm={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Hm={properties:{jmsConnectionFactory:{type:"string"},properties:I.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Km={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Wm={properties:{},description:"Protocol-specific information for a JMS operation."},Qm={properties:{},description:"Protocol-specific information for a Solace channel."},Gm={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Ym={properties:{},description:"Protocol-specific information for a Solace message."},Jm={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"}}}},Xm={properties:{bindingVersion:{type:"string"},destinations:I.listOf("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},Zm={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."},eh={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},th={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},rh={properties:{statements:I.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},nh={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},ih={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},oh={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."},sh={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."},ah={properties:{topic:"SnsIdentifier",consumers:I.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},ch={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},ph={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},lh={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},uh={properties:{statements:I.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},qp={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)."},dh={...qp,required:["name"],description:"Describes an SQS queue (operation-level definition)."},fh={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},mh={properties:{queues:I.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},hh={properties:{},description:"Protocol-specific information for a STOMP channel."},yh={properties:{},description:"Protocol-specific information for a STOMP server."},gh={properties:{},description:"Protocol-specific information for a STOMP message."},bh={properties:{},description:"Protocol-specific information for a STOMP operation."},vh={properties:{},description:"Protocol-specific information for a Redis channel."},wh={properties:{},description:"Protocol-specific information for a Redis server."},xh={properties:{},description:"Protocol-specific information for a Redis message."},Sh={properties:{},description:"Protocol-specific information for a Redis operation."},Ph={properties:{},description:"Protocol-specific information for a Mercure channel."},Eh={properties:{},description:"Protocol-specific information for a Mercure server."},Oh={properties:{},description:"Protocol-specific information for a Mercure message."},Ah={properties:{},description:"Protocol-specific information for a Mercure operation."},Rh={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."},$h={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},_h={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},Th={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."},kh={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."},Ih={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},qh={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."},Ch={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."},jh={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},Mh={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},Dh={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},Nh={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},Lh={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."},Uh={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},Fh={properties:{},description:"Protocol-specific information for a ROS 2 channel."},zh={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."},Bh={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."},Vh={properties:{},description:"Protocol-specific information for a ROS 2 message."},Hh={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."},Kh={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."},Wh={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."},Qh={extensionsPrefix:"x-",properties:{http:"HttpMessageBinding",ws:"WsMessageBinding",kafka:"KafkaMessageBinding",anypointmq:"AnypointmqMessageBinding",amqp:"AmqpMessageBinding",amqp1:"Amqp1MessageBinding",mqtt:"MqttMessageBinding",mqtt5:"Mqtt5MessageBinding",nats:"NatsMessageBinding",jms:"JmsMessageBinding",solace:"SolaceMessageBinding",stomp:"StompMessageBinding",redis:"RedisMessageBinding",mercure:"MercureMessageBinding",ibmmq:"IbmmqMessageBinding",googlepubsub:"GooglepubsubMessageBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a message."},ot={HttpServerBinding:im,HttpChannelBinding:nm,HttpMessageBinding:om,HttpOperationBinding:sm,WsServerBinding:cm,WsChannelBinding:am,WsMessageBinding:pm,WsOperationBinding:lm,KafkaServerBinding:fm,KafkaTopicConfiguration:um,KafkaChannelBinding:dm,KafkaMessageBinding:mm,KafkaOperationBinding:hm,AnypointmqServerBinding:gm,AnypointmqChannelBinding:ym,AnypointmqMessageBinding:bm,AnypointmqOperationBinding:vm,AmqpServerBinding:Pm,AmqpChannelExchange:wm,AmqpChannelQueue:xm,AmqpChannelBinding:Sm,AmqpMessageBinding:Em,AmqpOperationBinding:Om,Amqp1ServerBinding:Rm,Amqp1ChannelBinding:Am,Amqp1MessageBinding:$m,Amqp1OperationBinding:_m,MqttServerBindingLastWill:km,MqttServerBinding:Im,MqttChannelBinding:Tm,MqttMessageBinding:qm,MqttOperationBinding:Cm,Mqtt5ServerBinding:Mm,Mqtt5ChannelBinding:jm,Mqtt5MessageBinding:Dm,Mqtt5OperationBinding:Nm,NatsServerBinding:Um,NatsChannelBinding:Lm,NatsMessageBinding:Fm,NatsOperationBinding:zm,JmsServerBindingProperty:Vm,JmsServerBinding:Hm,JmsChannelBinding:Bm,JmsMessageBinding:Km,JmsOperationBinding:Wm,SolaceServerBinding:Gm,SolaceChannelBinding:Qm,SolaceMessageBinding:Ym,SolaceDestination:Jm,SolaceOperationBinding:Xm,StompServerBinding:yh,StompChannelBinding:hh,StompMessageBinding:gh,StompOperationBinding:bh,RedisServerBinding:wh,RedisChannelBinding:vh,RedisMessageBinding:xh,RedisOperationBinding:Sh,MercureServerBinding:Eh,MercureChannelBinding:Ph,MercureMessageBinding:Oh,MercureOperationBinding:Ah,SnsIdentifier:Zm,SnsOrdering:eh,SnsStatement:th,SnsPolicy:rh,SnsChannelBinding:nh,SnsRedrivePolicy:ih,SnsDeliveryPolicy:oh,SnsConsumer:sh,SnsOperationBinding:ah,SqsIdentifier:ch,SqsRedrivePolicy:ph,SqsStatement:lh,SqsPolicy:uh,SqsQueue:qp,SqsOperationQueue:dh,SqsChannelBinding:fh,SqsOperationBinding:mh,IbmmqServerBinding:Rh,IbmmqChannelQueue:$h,IbmmqChannelTopic:_h,IbmmqChannelBinding:Th,IbmmqMessageBinding:kh,GooglepubsubMessageStoragePolicy:Ih,GooglepubsubSchemaSettings:qh,GooglepubsubChannelBinding:Ch,GooglepubsubSchema:jh,GooglepubsubMessageBinding:Mh,PulsarServerBinding:Dh,PulsarRetention:Nh,PulsarChannelBinding:Lh,ServerBindings:Hh,ChannelBindings:Kh,MessageBindings:Qh,OperationBindings:Wh},Gh={Ros2ServerBinding:Uh,Ros2ChannelBinding:Fh,Ros2OperationBinding:Bh,Ros2QosPolicies:zh,Ros2MessageBinding:Vh},Fo={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:I.listOf("Schema"),anyOf:I.listOf("Schema"),oneOf:I.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?I.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"}},zo={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Bo={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Vo={properties:{},additionalProperties:e=>typeof e=="string"&&I.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Ho={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Yh={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"]},Jh={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."},Xh={properties:{},additionalProperties:"Channel"},Cp={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."},jp={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."},Zh={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."},ey={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."},Mp={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Dp={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."},ty={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."},Np={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."},Lp={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."},ry={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."},Up={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."},ny={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."},iy={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."},oy={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."},sy={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."},Fp={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."},ay={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"}},cy={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."},py={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."},ly={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."},uy={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."},zp={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},dy={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."},Bp={...ot,Root:Yh,Tag:Cp,TagList:I.listOf("Tag"),ServerMap:Mp,ExternalDocs:jp,Server:ey,ServerVariable:Dp,ServerVariablesMap:I.mapOf("ServerVariable"),SecurityRequirement:Zh,SecurityRequirementList:I.listOf("SecurityRequirement"),Info:ty,Contact:Np,License:Lp,ChannelMap:Xh,Channel:Jh,Parameter:ry,ParametersMap:I.mapOf("Parameter"),Operation:sy,Schema:Fo,MessageExample:Fp,SchemaProperties:zo,DiscriminatorMapping:Vo,Discriminator:Ho,Components:ay,NamedSchemas:I.mapOf("Schema"),NamedMessages:I.mapOf("Message"),NamedMessageTraits:I.mapOf("MessageTrait"),NamedOperationTraits:I.mapOf("OperationTrait"),NamedParameters:I.mapOf("Parameter"),NamedSecuritySchemes:I.mapOf("SecurityScheme"),NamedCorrelationIds:I.mapOf("CorrelationId"),ImplicitFlow:cy,PasswordFlow:py,ClientCredentials:ly,AuthorizationCode:uy,SecuritySchemeFlows:zp,SecurityScheme:dy,Message:ny,OperationTrait:iy,OperationTraitList:I.listOf("OperationTrait"),MessageTrait:oy,MessageTraitList:I.listOf("MessageTrait"),MessageExampleList:I.listOf("MessageExample"),CorrelationId:Up,Dependencies:Bo},fy={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."},my={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."},hy={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."},yy={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."},gy={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."},by={extensionsPrefix:"x-",properties:{headers:e=>K.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>K.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."},vy={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."},wy={extensionsPrefix:"x-",properties:{headers:e=>K.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."},xy={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"]},Sy={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."},Py={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."},Ey={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."},Oy={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."},Ay={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."},Ry={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."},$y={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."},_y={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."},Ty={...ot.ServerBindings,properties:{...ot.ServerBindings.properties,ros2:"Ros2ServerBinding"}},ky={...ot.ChannelBindings,properties:{...ot.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},Iy={...ot.OperationBindings,properties:{...ot.OperationBindings.properties,ros2:"Ros2OperationBinding"}},qy={...ot.MessageBindings,properties:{...ot.MessageBindings.properties,ros2:"Ros2MessageBinding"}},Cy={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},jy={properties:{},additionalProperties:e=>K.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Vp={...ot,...Gh,ServerBindings:Ty,ChannelBindings:ky,OperationBindings:Iy,MessageBindings:qy,CorrelationId:Up,SecuritySchemeFlows:zp,ServerVariable:Dp,Contact:Np,License:Lp,MessageExample:Fp,Tag:Cp,Dependencies:Bo,Schema:Fo,MultiFormatSchema:Cy,Discriminator:Ho,DiscriminatorMapping:Vo,SchemaProperties:zo,ServerMap:Mp,ExternalDocs:jp,Root:fy,Channel:my,Parameter:gy,Info:yy,Server:hy,MessageTrait:wy,Operation:xy,OperationReply:Sy,OperationReplyAddress:Py,Components:Ey,ImplicitFlow:Oy,PasswordFlow:Ay,ClientCredentials:Ry,AuthorizationCode:$y,SecurityScheme:_y,Message:by,OperationTrait:vy,ServerVariablesMap:I.mapOf("ServerVariable"),NamedTags:I.mapOf("Tag"),NamedExternalDocs:I.mapOf("ExternalDocs"),NamedChannels:I.mapOf("Channel"),ParametersMap:I.mapOf("Parameter"),NamedOperations:I.mapOf("Operation"),NamedOperationReplies:I.mapOf("OperationReply"),NamedOperationRelyAddresses:I.mapOf("OperationReplyAddress"),NamedSchemas:jy,NamedMessages:I.mapOf("Message"),NamedMessageTraits:I.mapOf("MessageTrait"),NamedOperationTraits:I.mapOf("OperationTrait"),NamedParameters:I.mapOf("Parameter"),NamedSecuritySchemes:I.mapOf("SecurityScheme"),NamedCorrelationIds:I.mapOf("CorrelationId"),ServerList:I.listOf("Server"),SecuritySchemeList:I.listOf("SecurityScheme"),MessageList:I.listOf("Message"),OperationTraitList:I.listOf("OperationTrait"),MessageTraitList:I.listOf("MessageTrait"),MessageExampleList:I.listOf("MessageExample"),TagList:I.listOf("Tag")},My={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-"},Dy={properties:{},additionalProperties:"Parameter"},Ny={properties:{},additionalProperties:"SuccessActionObject"},Ly={properties:{},additionalProperties:"FailureActionObject"},Uy={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},Fy=I.mapOf("Schema"),zy={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."},By={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},Vy={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."},Hy={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."},Ky={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."},Wy={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."},Qy={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Gy={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."},Yy=I.listOf("Workflow"),Jy=I.listOf("Step"),Xy={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:I.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."},Zy={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_.-]+$."},eg={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:I.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."},tg={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."},rg={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."},ng={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."},ig={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."},og={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},sg={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},ag={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:I.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."},cg={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},pg={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:I.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."},lg={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},Be={Root:My,Info:zy,SourceDescriptions:By,OpenAPISourceDescription:Vy,ArazzoSourceDescription:Hy,Parameters:Qy,Parameter:Wy,ReusableObject:Ky,Workflows:Yy,Workflow:Gy,Steps:Jy,Step:Xy,RequestBody:eg,Replacement:tg,ExtendedOperation:ng,ExtendedSecurityList:I.listOf("ExtendedSecurity"),ExtendedSecurity:rg,Outputs:Zy,CriterionObject:ig,XPathCriterion:sg,JSONPathCriterion:og,SuccessActionObject:ag,OnSuccessActionList:cg,FailureActionObject:pg,OnFailureActionList:lg,Schema:Fe.Schema,NamedSchemas:I.mapOf("Schema"),ExternalDocs:Fe.ExternalDocs,DiscriminatorMapping:Fe.DiscriminatorMapping,Discriminator:Fe.Discriminator,DependentRequired:Fe.DependentRequired,SchemaProperties:Fe.SchemaProperties,PatternProperties:Fe.SchemaProperties,Components:Uy,NamedInputs:Fy,NamedParameters:Dy,NamedSuccessActions:Ny,NamedFailureActions:Ly,Xml:Fe.Xml,SecurityScheme:Fe.SecurityScheme,OAuth2Flows:Fe.OAuth2Flows,ImplicitFlow:Fe.ImplicitFlow,PasswordFlow:Fe.PasswordFlow,ClientCredentials:Fe.ClientCredentials,AuthorizationCode:Fe.AuthorizationCode,DeviceAuthorization:Fe.DeviceAuthorization},ug={...Be.Root,properties:{...Be.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1."}}},dg={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},fg={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."},mg={...Be.Parameter,properties:{...Be.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.'}}},hg={...Be.Step,properties:{...Be.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"]},yg={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},gg={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},bg={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},vg={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"]},wg=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Ko=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:wg(n)},xg={...Be.CriterionObject,properties:{...Be.CriterionObject.properties,type:Ko(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},Sg={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:Ko(["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."},Pg={properties:{},additionalProperties:e=>K.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_.-]+$."},Eg={...Be.Replacement,properties:{...Be.Replacement.properties,value:e=>K.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Ko(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},Og={...Be.SuccessActionObject,properties:{...Be.SuccessActionObject.properties,parameters:"Parameters"}},Ag={...Be.FailureActionObject,properties:{...Be.FailureActionObject.properties,parameters:"Parameters"}},Hp={...Be,Root:ug,SourceDescriptions:dg,AsyncAPISourceDescription:fg,Parameter:mg,Step:hg,CriterionObject:xg,JSONPathExpression:yg,XPathExpression:gg,JSONPointerExpression:bg,ExpressionType:vg,SelectorObject:Sg,Outputs:Pg,Replacement:Eg,SuccessActionObject:Og,FailureActionObject:Ag},Rg={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},$g={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},_g=I.listOf("Action"),Tg={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},Kp={Root:Rg,Info:$g,Actions:_g,Action:Tg},kg={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."},Ig={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."},qg={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."},Cg={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."},jg={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."},Mg={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."},Dg={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."},Ng={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."},Lg={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."},Ug={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."},Fg={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."},zg={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."},Bg={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."},Vg={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."},Hg={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."},Wp={Root:kg,Info:Ig,Contact:qg,License:Cg,Server:jg,ServerList:I.listOf("Server"),ServerVariable:Mg,ServerVariablesMap:I.mapOf("ServerVariable"),Method:Dg,MethodList:I.listOf("Method"),ContentDescriptor:Ng,ContentDescriptorList:I.listOf("ContentDescriptor"),ExamplePairing:Lg,ExamplePairingList:I.listOf("ExamplePairing"),Example:Ug,ExampleList:I.listOf("Example"),Link:Fg,LinkList:I.listOf("Link"),ErrorObject:zg,ErrorList:I.listOf("ErrorObject"),Components:Bg,Tag:Vg,TagList:I.listOf("Tag"),ExternalDocs:Hg,Schema:Fo,SchemaProperties:zo,Dependencies:Bo,DiscriminatorMapping:Vo,Discriminator:Ho,NamedContentDescriptors:I.mapOf("ContentDescriptor"),NamedSchemas:I.mapOf("Schema"),NamedExamples:I.mapOf("Example"),NamedLinks:I.mapOf("Link"),NamedErrors:I.mapOf("ErrorObject"),NamedExamplePairingObjects:I.mapOf("ExamplePairing"),NamedTags:I.mapOf("Tag")};var Qp={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Qt={type:"object",properties:Qp,additionalProperties:!1},Kg={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},mr={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:{...Qp,like:Qt,dislike:Qt,satisfied:Qt,neutral:Qt,dissatisfied:Qt},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:Kg},additionalProperties:!1}},additionalProperties:!1},Wg={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},Wo={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ao={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:mr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Wo,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:Wg,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},$t={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Qg={type:"object",properties:{name:{type:"string"},items:$t,queries:$t,mutations:$t,subscriptions:$t,types:$t,directives:$t},required:["name"],additionalProperties:!1},Gg={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Qg},otherItemsGroupName:{type:"string"}}},Yg={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Jg={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Xg={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Yg,license:Jg},additionalProperties:!1},Kn={type:"object",properties:{menu:{type:"object",properties:{...Gg.properties},additionalProperties:!1},downloadUrls:Wo,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:mr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Xg},additionalProperties:!1},Zg={type:"object",properties:{downloadUrls:Wo,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:mr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},eb={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"]},tb={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"}}},vs={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},rb={type:"object",properties:{beforeInfo:{type:"array",items:vs},end:{type:"array",items:vs}}},Ot={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Rr={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},nb={type:"object",properties:li(Ot.properties,["light","dark"])},ib={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"}}},ob={type:"object",properties:{error:Rr,info:Rr,redirect:Rr,success:Rr}},sb={type:"object",properties:Ft(Ot.properties,["dark"])},ab={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},cb={type:"object",properties:{accent:Ot,border:nb,error:Ot,http:ib,primary:Ot,responses:ob,secondary:sb,success:Ot,text:ab,tonalOffset:{type:"number"},warning:Ot}},$r={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},pb={type:"object",properties:{small:$r,medium:$r,large:$r,xlarge:$r}},st={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},lb={type:"object",properties:{...Ft(st.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:pb}},ws={type:"object",properties:li(st.properties,["fontSize","lineHeight"])},ub={type:"object",properties:{medium:ws,small:ws}},db={type:"object",properties:{...Ft(st.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:ub}},fb={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},mb={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},xs={type:"object",properties:{fullWidth:{type:"boolean"}}},hb={type:"object",properties:{buttons:lb,httpBadges:db,layoutControls:fb,panels:mb,tryItButton:xs,tryItSendButton:xs}},Wn={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},yb={type:"object",properties:{maxWidth:Wn}},gb={type:"object",properties:{maxWidth:Wn,middlePanelMaxWidth:Wn}},bb={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:yb,"three-panel":gb}},Ss={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},vb={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Ss,defaultDetailsWidth:{type:"string"},examples:Ss,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Gp={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},wb={type:"object",properties:li(Gp.properties,["textTransform"])},xb={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Sb={type:"object",properties:{...Ft(st.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:Gp,level1items:wb,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:xb,textColor:{type:"string"},width:{type:"string"}}},_r={type:"object",properties:{...st.properties,color:{type:"string"},transform:{type:"string"}}},Pb={type:"object",properties:{...st.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"}}},Eb={type:"object",properties:Ft(st.properties,["fontSize"])},Ob={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Ab={type:"object",properties:{code:Pb,fieldName:st,...li(st.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:_r,heading2:_r,heading3:_r,headings:Eb,lineHeight:{type:"string"},links:Ob,optimizeSpeed:{type:"boolean"},rightPanelHeading:_r,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Rb={type:"object",properties:{color:{type:"string"},...Ft(st.properties,["fontWeight"])}},$b={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Rb}},_b={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Tb={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Ps={type:"object",properties:{custom:{type:"string"}}},kb={type:"object",properties:{DownloadButton:Ps,NextSectionButton:Ps}},Ib={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},qb={type:"object",properties:{borderRadius:{type:"string"}}},Cb={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},jb={type:"object",properties:{breakpoints:Wn,codeBlock:$b,colors:cb,components:hb,layout:bb,logo:_b,fab:Tb,overrides:kb,rightPanel:Ib,schema:vb,shape:qb,sidebar:Sb,spacing:Cb,typography:Ab,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},Mb={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:eb}},required:["languages"]},Db={properties:{theme:jb,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:Mb,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:tb,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:rb,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 li(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function Ft(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Ge={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"},Nb={rules:Ge,oas2Rules:Ge,oas3_0Rules:Ge,oas3_1Rules:Ge,oas3_2Rules:Ge,async2Rules:Ge,async3Rules:Ge,arazzo1Rules:Ge,arazzo1_1Rules:Ge,overlay1Rules:Ge,openrpc1Rules:Ge,graphqlRules:Ge},Je={nodeTypeName:void 0,type:"object",additionalProperties:!0},Lb={preprocessors:Je,oas2Preprocessors:Je,oas3_0Preprocessors:Je,oas3_1Preprocessors:Je,oas3_2Preprocessors:Je,async2Preprocessors:Je,async3Preprocessors:Je,arazzo1Preprocessors:Je,arazzo1_1Preprocessors:Je,overlay1Preprocessors:Je,openrpc1Preprocessors:Je},Xe={nodeTypeName:void 0,type:"object",additionalProperties:!0},Ub={decorators:Xe,oas2Decorators:Xe,oas3_0Decorators:Xe,oas3_1Decorators:Xe,oas3_2Decorators:Xe,async2Decorators:Xe,async3Decorators:Xe,arazzo1Decorators:Xe,arazzo1_1Decorators:Xe,overlay1Decorators:Xe,openrpc1Decorators:Xe},Fb={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"},ui={...Nb,...Ub,...Lb,extends:Fb},Yp=e=>e,Ke=Yp({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Le={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Es={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},Ti={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean"},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},Qo={type:"array",items:{...Ti,properties:{...Ti.properties,items:{type:"array",items:Ti}}}},zb={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Bb={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Vb={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}},Hb={type:"object",properties:{facets:Vb,...Le.properties},additionalProperties:!1},Kb={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Jp={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Xp={type:"object",properties:{items:Qo,...Le.properties},additionalProperties:!1},Zp={type:"object",additionalProperties:zb},el={type:"object",properties:{items:Qo,copyrightText:{type:"string"},logo:Le,...Le.properties},additionalProperties:!1},tl={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Le.properties},additionalProperties:!1},rl={type:"object",properties:{head:{type:"array",items:Es},body:{type:"array",items:Es}},additionalProperties:!1},nl={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}},il={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Bb,filters:Hb,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Kb},...Le.properties},additionalProperties:!1},ol={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},sl={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Le.properties},additionalProperties:!1},al={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Wb={type:"object",properties:{...Le.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},cl={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Le.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Le.properties},additionalProperties:!1},actions:Wb},additionalProperties:!1},pl={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Le.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Le.properties},additionalProperties:!1},expand:{type:"object",properties:{...Le.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Le.properties},additionalProperties:!1}},additionalProperties:!1},ll={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"},...Le.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Le.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Le.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Qn={...Ao,properties:{...Ao.properties,...Db.properties}};({...Ao.properties});var Qb={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Gb={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"]},Yb={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Jb={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Xb={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"]},Zb={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},ev={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},tv={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},rv={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:tv}},additionalProperties:!1,required:["trackingId"]},ul={type:"object",properties:{adobe:Qb,amplitude:Gb,fullstory:Yb,heap:Jb,rudderstack:Xb,segment:Zb,gtm:ev,ga:rv}},dl={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"},...Le.properties},additionalProperties:!1},fl={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},ml={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},nv={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"}}}},iv={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:nv},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Qo,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Gn={type:"object",patternProperties:{".*":iv}},Yn={nodeTypeName:Ke.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:Ke.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:Ke.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:Ke.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...ui},additionalProperties:!1}},targets:{nodeTypeName:Ke.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:Ke.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:Ke.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:Ke.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},ov={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},sv={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},av={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},ct={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:sv},excludes:{type:"array",items:ov},filters:{type:"array",items:av},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},cv={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},pv={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:cv},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},lv={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:pv,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},uv={type:"object",additionalProperties:lv},hl={type:"object",properties:{show:{type:"boolean"},entityTypes:uv,catalogs:{type:"object",properties:{all:ct,services:ct,domains:ct,teams:ct,users:ct,apiDescriptions:ct,dataSchemas:ct,apiOperations:ct},additionalProperties:ct}},additionalProperties:!1},Os={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Go={type:"string",enum:["and","or"]},Ro={type:"object",properties:{field:{type:"string"},operator:Os,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Os,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},dv={type:"object",properties:{operator:Go,conditions:{type:"array",items:Ro}},required:["operator","conditions"],additionalProperties:!1},As={type:"array",items:{oneOf:[Ro,{type:"object",properties:{operator:Go,conditions:{type:"array",items:{oneOf:[Ro,dv]}}},required:["operator","conditions"],additionalProperties:!1}]}},yl={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},fv={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:yl},required:["subject","assertions"],additionalProperties:!1}},mv={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:yl,where:fv,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},hv={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},mv]}},yv={type:"object",properties:{name:{type:"string"},extends:ui.extends,rules:hv},required:["name"],additionalProperties:!1},Rs={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},gv={oneOf:[Rs,{type:"array",items:Rs}]},bv={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[As,{type:"object",properties:{operator:Go,conditions:As},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:yv,minItems:1},trigger:gv},required:["name","key","entities","levels"],additionalProperties:!1},gl={type:"array",items:bv},it={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Jp,navbar:Xp,products:Zp,footer:el,sidebar:tl,scripts:rl,links:nl,feedback:mr,search:il,aiAssistant:ol,colorMode:sl,palette:al,navigation:cl,codeSnippet:pl,markdown:ll,openapi:Qn,asyncapi:Zg,graphql:Kn,analytics:ul,userMenu:dl,versionPicker:fl,breadcrumbs:ml,catalog:Gn,entitiesCatalog:hl,catalogClassic:Gn,scorecard:Yn,scorecardClassic:Yn,scorecards:gl},additionalProperties:!0},vv=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(vv||{}),wv=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(wv||{}),xv=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(xv||{}),Sv="^[a-z0-9]+(?:-[a-z0-9]+)*$",bl="redocly",Pv=[bl,"corporate","guest"],$s=["REDOCLY","CORPORATE","GUEST"],Ev={type:"object",additionalProperties:{type:"string"}},Ov={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Tr={type:"string",enum:["error","warn","off"]},Av={type:"object",additionalProperties:!1,properties:{schemaCheck:Tr,statusCodeCheck:Tr,contentTypeCheck:Tr,successCriteriaCheck:Tr}},Rv={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},$v={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},_v={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Tv={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:[Rv,$v]},inputs:Ev,servers:Ov,severity:Av,slo:_v},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},vl={type:"string",enum:["off","info","warn","error"]},Gt={type:"array",items:{type:"string"}},kv={type:"object",properties:{severity:vl,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Gt,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Gt,excludes:Gt,exceptions:{type:"object",properties:{files:Gt,lines:Gt},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},Iv={oneOf:[vl,kv]},_s={type:"object",additionalProperties:Iv},qv={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},Cv={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:qv}},additionalProperties:!1},jv={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:Cv},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},Mv={type:"object",properties:{rules:_s,excludes:{type:"array",items:{type:"string",minLength:1}},baseline:{type:"string",minLength:1},markdoc:{oneOf:[{type:"boolean"},jv]},apiDescriptions:{type:"object",properties:{rules:_s},additionalProperties:!1}},additionalProperties:!1},Dv={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},Nv={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:Dv,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},Lv={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"]},Uv={oneOf:[Nv,Lv],discriminator:{propertyName:"type"}},Fv={type:"object",additionalProperties:Uv},wl={oneOf:[{type:"array",items:{type:"string",enum:$s},uniqueItems:!0},{type:"string",enum:$s}]},Ts={type:"string",pattern:Sv,not:{enum:Pv.filter(e=>e!==bl)}},xl={oneOf:[{type:"array",items:Ts,uniqueItems:!0},Ts]},Sl={type:"boolean"},Pl={type:"string",pattern:"^https?://.*"},El={type:"string",pattern:"^https?://.*"},zv={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:Ke.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},Bv={type:"object",additionalProperties:zv,nodeTypeName:Ke.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"},Vv={type:"string",enum:["info","success","warning","error"]},qe={type:"object",additionalProperties:{type:"string"}},Hv={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:Vv,rbac:qe,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},Kv={type:"array",items:Hv},Wv={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:qe,openapi:Qn,graphql:Kn,theme:{type:"object",properties:{openapi:Qn,graphql:Kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...ui},required:["root"]},Qv={type:"object",additionalProperties:!0},Gv={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Yv={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},Jv={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:Yv},additionalProperties:!1},Xv={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Zv={type:"object",properties:{catalogs:{type:"object",properties:{all:qe,services:qe,domains:qe,teams:qe,users:qe,apiDescriptions:qe,dataSchemas:qe,apiOperations:qe},additionalProperties:qe},entitiesTypes:{type:"object",properties:{service:qe,domain:qe,team:qe,user:qe,apiDescription:qe,apiOperation:qe,dataSchema:qe},additionalProperties:qe},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:qe},additionalProperties:!1}},entities:{type:"object",properties:{"**":qe},additionalProperties:qe}},additionalProperties:!1},Ol={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:qe,cms:qe,reunite:qe,features:{type:"object",properties:{aiSearch:qe,mcp:qe},additionalProperties:!1},content:{type:"object",properties:{"**":qe},additionalProperties:qe},entitiesCatalog:Zv},additionalProperties:qe},e0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},t0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},r0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[e0,t0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},n0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},i0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},$o={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:[n0,i0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},o0={...$o,properties:{...$o.properties,type:{type:"string",const:"APIGEE_EDGE"}}},s0={type:"object",oneOf:[$o,o0,r0],discriminator:{propertyName:"type"}},a0={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:s0}}},ks={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"]},c0={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},p0={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},l0={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},u0={type:"object",properties:{requiresLogin:Sl,logoutReturnUrl:Pl,residency:El,sso:wl,idps:xl,rbac:Ol},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Jn={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:Bv,seo:Jv,rbac:Ol,apiFunctions:Xv,requiresLogin:Sl,responseHeaders:{type:"object",additionalProperties:{type:"array",items:c0}},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:Wv},...ui,ssoDirect:Fv,sso:wl,idps:xl,residency:El,logoutReturnUrl:Pl,access:u0,developerOnboarding:a0,removeAttribution:{type:"boolean"},i18n:ks,l10n:ks,metadata:Qv,metadataGlobs:Gv,ignore:{type:"array",items:{type:"string"}},theme:it,reunite:Tv,logo:Jp,navbar:Xp,products:Zp,footer:el,sidebar:tl,scripts:rl,links:nl,feedback:mr,search:il,aiAssistant:ol,colorMode:sl,palette:al,navigation:cl,codeSnippet:pl,markdown:ll,openapi:Qn,graphql:Kn,analytics:ul,userMenu:dl,versionPicker:fl,breadcrumbs:ml,catalog:Gn,entitiesCatalog:hl,catalogClassic:Gn,scorecard:Yn,scorecardClassic:Yn,scorecards:gl,mcp:p0,skills:l0,recheck:Mv,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:Kv},not:{required:["sso","idps"]},additionalProperties:!0},d0={...Jn,additionalProperties:!1},di={$id:"root-redocly-config",...Jn,properties:{plugins:{type:"array",items:{type:"string"}},...Jn.properties,env:{type:"object",additionalProperties:d0}},additionalProperties:!1};it.properties.logo,it.properties.navbar,it.properties.footer,it.properties.sidebar,it.properties.search,it.properties.codeSnippet,it.properties.breadcrumbs,it.properties.openapi,it.properties.feedback,Jn.properties.mockServer;var f0=["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"],De=Yp({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"}),m0={type:"object",nodeTypeName:De.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},h0={type:"object",nodeTypeName:De.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},y0={type:"object",nodeTypeName:De.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},g0={type:"object",nodeTypeName:De.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},b0={type:"object",properties:{},nodeTypeName:De.EntityMetadata,additionalProperties:!0},v0={type:"object",nodeTypeName:De.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},w0={type:"object",nodeTypeName:De.EntitySlackContact,properties:{channels:{type:"array",items:v0}},required:["channels"],additionalProperties:!1},x0={type:"object",nodeTypeName:De.EntityContact,properties:{slack:w0},additionalProperties:!1},S0={type:"object",nodeTypeName:De.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},P0={type:"object",nodeTypeName:De.EntityRelation,properties:{type:{type:"string",enum:f0},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},vt={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:x0,links:{type:"array",nodeTypeName:De.EntityLinkList,items:S0},relations:{type:"array",nodeTypeName:De.EntityRelationList,items:P0},metadata:b0},E0={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...vt,type:{type:"string",const:"user"},metadata:m0},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:De.UserEntity},{type:"object",nodeTypeName:De.ApiOperationEntity,properties:{...vt,type:{type:"string",const:"api-operation"},metadata:y0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:De.DataSchemaEntity,properties:{...vt,type:{type:"string",const:"data-schema"},metadata:g0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:De.ApiDescriptionEntity,properties:{...vt,type:{type:"string",const:"api-description"},metadata:h0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:De.ServiceEntity,properties:{...vt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:De.DomainEntity,properties:{...vt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:De.TeamEntity,properties:{...vt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},O0={type:"object",nodeTypeName:De.Entity,properties:{...vt},required:["key","title","type"],additionalProperties:!1};const A0=["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"],Bn=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Al="a-zA-Z0-9\\.\\-_",R0={oas2:_p,oas3_0:rt,oas3_1:$e,oas3_2:Fe,async2:Bp,async3:Vp,arazzo1:Be,arazzo1_1:Hp,overlay1:Kp,openrpc1:Wp};function hr(e){return e==="graphql"?{}:R0[e]}function Yo(e){return e.includes("/")}function Rl(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}var kr={exports:{}},ki={},pt={},St={},Ii={},qi={},Ci={},Is;function Xn(){return Is||(Is=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(x){if(super(),!e.IDENTIFIER.test(x))throw new Error("CodeGen: name must be a valid identifier");this.str=x}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(x){super(),this._items=typeof x=="string"?[x]:x}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const x=this._items[0];return x===""||x==='""'}get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=this._items.reduce((v,$)=>`${v}${$}`,"")}get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._names=this._items.reduce((v,$)=>($ instanceof r&&(v[$.str]=(v[$.str]||0)+1),v),{})}}e._Code=n,e.nil=new n("");function i(E,...x){const v=[E[0]];let $=0;for(;$<x.length;)c(v,x[$]),v.push(E[++$]);return new n(v)}e._=i;const o=new n("+");function a(E,...x){const v=[h(E[0])];let $=0;for(;$<x.length;)v.push(o),c(v,x[$]),v.push(o,h(E[++$]));return p(v),new n(v)}e.str=a;function c(E,x){x instanceof n?E.push(...x._items):x instanceof r?E.push(x):E.push(m(x))}e.addCodeArg=c;function p(E){let x=1;for(;x<E.length-1;){if(E[x]===o){const v=u(E[x-1],E[x+1]);if(v!==void 0){E.splice(x-1,3,v);continue}E[x++]="+"}x++}}function u(E,x){if(x==='""')return E;if(E==='""')return x;if(typeof E=="string")return x instanceof r||E[E.length-1]!=='"'?void 0:typeof x!="string"?`${E.slice(0,-1)}${x}"`:x[0]==='"'?E.slice(0,-1)+x.slice(1):void 0;if(typeof x=="string"&&x[0]==='"'&&!(E instanceof r))return`"${E}${x.slice(1)}`}function f(E,x){return x.emptyStr()?E:E.emptyStr()?x:a`${E}${x}`}e.strConcat=f;function m(E){return typeof E=="number"||typeof E=="boolean"||E===null?E:h(Array.isArray(E)?E.join(","):E)}function y(E){return new n(h(E))}e.stringify=y;function h(E){return JSON.stringify(E).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function O(E){return typeof E=="string"&&e.IDENTIFIER.test(E)?new n(`.${E}`):i`[${E}]`}e.getProperty=O;function w(E){if(typeof E=="string"&&e.IDENTIFIER.test(E))return new n(`${E}`);throw new Error(`CodeGen: invalid export name: ${E}, use explicit $id name mapping`)}e.getEsmExportName=w;function S(E){return new n(E.toString())}e.regexpCode=S})(Ci)),Ci}var ji={},qs;function Cs(){return qs||(qs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Xn();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.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:u,parent:f}={}){this._names={},this._prefixes=u,this._parent=f}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const f=this._names[u]||this._nameGroup(u);return`${u}${f.index++}`}_nameGroup(u){var f,m;if(!((m=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||m===void 0)&&m.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=i;class o extends t.Name{constructor(u,f){super(f),this.prefix=u}setValue(u,{property:f,itemIndex:m}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(f)}[${m}]`}}e.ValueScopeName=o;const a=(0,t._)`\n`;class c extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?a:t.nil}}get(){return this._scope}name(u){return new o(u,this._newName(u))}value(u,f){var m;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(u),{prefix:h}=y,O=(m=f.key)!==null&&m!==void 0?m:f.ref;let w=this._values[h];if(w){const x=w.get(O);if(x)return x}else w=this._values[h]=new Map;w.set(O,y);const S=this._scope[h]||(this._scope[h]=[]),E=S.length;return S[E]=f.ref,y.setValue(f,{property:h,itemIndex:E}),y}getValue(u,f){const m=this._values[u];if(m)return m.get(f)}scopeRefs(u,f=this._values){return this._reduceValues(f,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${u}${m.scopePath}`})}scopeCode(u=this._values,f,m){return this._reduceValues(u,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},f,m)}_reduceValues(u,f,m={},y){let h=t.nil;for(const O in u){const w=u[O];if(!w)continue;const S=m[O]=m[O]||new Map;w.forEach(E=>{if(S.has(E))return;S.set(E,n.Started);let x=f(E);if(x){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${v} ${E} = ${x};${this.opts._n}`}else if(x=y?.(E))h=(0,t._)`${h}${x}${this.opts._n}`;else throw new r(E);S.set(E,n.Completed)})}return h}}e.ValueScope=c})(ji)),ji}var js;function we(){return js||(js=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=Xn(),r=Cs();var n=Xn();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=Cs();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(b,q){return this}}class a extends o{constructor(b,q,F){super(),this.varKind=b,this.name=q,this.rhs=F}render({es5:b,_n:q}){const F=b?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${F} ${this.name}${U};`+q}optimizeNames(b,q){if(b[this.name.str])return this.rhs&&(this.rhs=X(this.rhs,b,q)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends o{constructor(b,q,F){super(),this.lhs=b,this.rhs=q,this.sideEffects=F}render({_n:b}){return`${this.lhs} = ${this.rhs};`+b}optimizeNames(b,q){if(!(this.lhs instanceof t.Name&&!b[this.lhs.str]&&!this.sideEffects))return this.rhs=X(this.rhs,b,q),this}get names(){const b=this.lhs instanceof t.Name?{}:{...this.lhs.names};return Q(b,this.rhs)}}class p extends c{constructor(b,q,F,U){super(b,F,U),this.op=q}render({_n:b}){return`${this.lhs} ${this.op}= ${this.rhs};`+b}}class u extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`${this.label}:`+b}}class f extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`break${this.label?` ${this.label}`:""};`+b}}class m extends o{constructor(b){super(),this.error=b}render({_n:b}){return`throw ${this.error};`+b}get names(){return this.error.names}}class y extends o{constructor(b){super(),this.code=b}render({_n:b}){return`${this.code};`+b}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(b,q){return this.code=X(this.code,b,q),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(b=[]){super(),this.nodes=b}render(b){return this.nodes.reduce((q,F)=>q+F.render(b),"")}optimizeNodes(){const{nodes:b}=this;let q=b.length;for(;q--;){const F=b[q].optimizeNodes();Array.isArray(F)?b.splice(q,1,...F):F?b[q]=F:b.splice(q,1)}return b.length>0?this:void 0}optimizeNames(b,q){const{nodes:F}=this;let U=F.length;for(;U--;){const Y=F[U];Y.optimizeNames(b,q)||(me(b,Y.names),F.splice(U,1))}return F.length>0?this:void 0}get names(){return this.nodes.reduce((b,q)=>oe(b,q.names),{})}}class O extends h{render(b){return"{"+b._n+super.render(b)+"}"+b._n}}class w extends h{}class S extends O{}S.kind="else";class E extends O{constructor(b,q){super(q),this.condition=b}render(b){let q=`if(${this.condition})`+super.render(b);return this.else&&(q+="else "+this.else.render(b)),q}optimizeNodes(){super.optimizeNodes();const b=this.condition;if(b===!0)return this.nodes;let q=this.else;if(q){const F=q.optimizeNodes();q=this.else=Array.isArray(F)?new S(F):F}if(q)return b===!1?q instanceof E?q:q.nodes:this.nodes.length?this:new E(xe(b),q instanceof E?[q]:q.nodes);if(!(b===!1||!this.nodes.length))return this}optimizeNames(b,q){var F;if(this.else=(F=this.else)===null||F===void 0?void 0:F.optimizeNames(b,q),!!(super.optimizeNames(b,q)||this.else))return this.condition=X(this.condition,b,q),this}get names(){const b=super.names;return Q(b,this.condition),this.else&&oe(b,this.else.names),b}}E.kind="if";class x extends O{}x.kind="for";class v extends x{constructor(b){super(),this.iteration=b}render(b){return`for(${this.iteration})`+super.render(b)}optimizeNames(b,q){if(super.optimizeNames(b,q))return this.iteration=X(this.iteration,b,q),this}get names(){return oe(super.names,this.iteration.names)}}class $ extends x{constructor(b,q,F,U){super(),this.varKind=b,this.name=q,this.from=F,this.to=U}render(b){const q=b.es5?r.varKinds.var:this.varKind,{name:F,from:U,to:Y}=this;return`for(${q} ${F}=${U}; ${F}<${Y}; ${F}++)`+super.render(b)}get names(){const b=Q(super.names,this.from);return Q(b,this.to)}}class g extends x{constructor(b,q,F,U){super(),this.loop=b,this.varKind=q,this.name=F,this.iterable=U}render(b){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(b)}optimizeNames(b,q){if(super.optimizeNames(b,q))return this.iterable=X(this.iterable,b,q),this}get names(){return oe(super.names,this.iterable.names)}}class T extends O{constructor(b,q,F){super(),this.name=b,this.args=q,this.async=F}render(b){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(b)}}T.kind="func";class j extends h{render(b){return"return "+super.render(b)}}j.kind="return";class B extends O{render(b){let q="try"+super.render(b);return this.catch&&(q+=this.catch.render(b)),this.finally&&(q+=this.finally.render(b)),q}optimizeNodes(){var b,q;return super.optimizeNodes(),(b=this.catch)===null||b===void 0||b.optimizeNodes(),(q=this.finally)===null||q===void 0||q.optimizeNodes(),this}optimizeNames(b,q){var F,U;return super.optimizeNames(b,q),(F=this.catch)===null||F===void 0||F.optimizeNames(b,q),(U=this.finally)===null||U===void 0||U.optimizeNames(b,q),this}get names(){const b=super.names;return this.catch&&oe(b,this.catch.names),this.finally&&oe(b,this.finally.names),b}}class V extends O{constructor(b){super(),this.error=b}render(b){return`catch(${this.error})`+super.render(b)}}V.kind="catch";class G extends O{render(b){return"finally"+super.render(b)}}G.kind="finally";class J{constructor(b,q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...q,_n:q.lines?`
2
- `:""},this._extScope=b,this._scope=new r.Scope({parent:b}),this._nodes=[new w]}toString(){return this._root.render(this.opts)}name(b){return this._scope.name(b)}scopeName(b){return this._extScope.name(b)}scopeValue(b,q){const F=this._extScope.value(b,q);return(this._values[F.prefix]||(this._values[F.prefix]=new Set)).add(F),F}getScopeValue(b,q){return this._extScope.getValue(b,q)}scopeRefs(b){return this._extScope.scopeRefs(b,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(b,q,F,U){const Y=this._scope.toName(q);return F!==void 0&&U&&(this._constants[Y.str]=F),this._leafNode(new a(b,Y,F)),Y}const(b,q,F){return this._def(r.varKinds.const,b,q,F)}let(b,q,F){return this._def(r.varKinds.let,b,q,F)}var(b,q,F){return this._def(r.varKinds.var,b,q,F)}assign(b,q,F){return this._leafNode(new c(b,q,F))}add(b,q){return this._leafNode(new p(b,e.operators.ADD,q))}code(b){return typeof b=="function"?b():b!==t.nil&&this._leafNode(new y(b)),this}object(...b){const q=["{"];for(const[F,U]of b)q.length>1&&q.push(","),q.push(F),(F!==U||this.opts.es5)&&(q.push(":"),(0,t.addCodeArg)(q,U));return q.push("}"),new t._Code(q)}if(b,q,F){if(this._blockNode(new E(b)),q&&F)this.code(q).else().code(F).endIf();else if(q)this.code(q).endIf();else if(F)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(b){return this._elseNode(new E(b))}else(){return this._elseNode(new S)}endIf(){return this._endBlockNode(E,S)}_for(b,q){return this._blockNode(b),q&&this.code(q).endFor(),this}for(b,q){return this._for(new v(b),q)}forRange(b,q,F,U,Y=this.opts.es5?r.varKinds.var:r.varKinds.let){const le=this._scope.toName(b);return this._for(new $(Y,le,q,F),()=>U(le))}forOf(b,q,F,U=r.varKinds.const){const Y=this._scope.toName(b);if(this.opts.es5){const le=q instanceof t.Name?q:this.var("_arr",q);return this.forRange("_i",0,(0,t._)`${le}.length`,he=>{this.var(Y,(0,t._)`${le}[${he}]`),F(Y)})}return this._for(new g("of",U,Y,q),()=>F(Y))}forIn(b,q,F,U=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(b,(0,t._)`Object.keys(${q})`,F);const Y=this._scope.toName(b);return this._for(new g("in",U,Y,q),()=>F(Y))}endFor(){return this._endBlockNode(x)}label(b){return this._leafNode(new u(b))}break(b){return this._leafNode(new f(b))}return(b){const q=new j;if(this._blockNode(q),this.code(b),q.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(b,q,F){if(!q&&!F)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new B;if(this._blockNode(U),this.code(b),q){const Y=this.name("e");this._currNode=U.catch=new V(Y),q(Y)}return F&&(this._currNode=U.finally=new G,this.code(F)),this._endBlockNode(V,G)}throw(b){return this._leafNode(new m(b))}block(b,q){return this._blockStarts.push(this._nodes.length),b&&this.code(b).endBlock(q),this}endBlock(b){const q=this._blockStarts.pop();if(q===void 0)throw new Error("CodeGen: not in self-balancing block");const F=this._nodes.length-q;if(F<0||b!==void 0&&F!==b)throw new Error(`CodeGen: wrong number of nodes: ${F} vs ${b} expected`);return this._nodes.length=q,this}func(b,q=t.nil,F,U){return this._blockNode(new T(b,q,F)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(b=1){for(;b-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(b){return this._currNode.nodes.push(b),this}_blockNode(b){this._currNode.nodes.push(b),this._nodes.push(b)}_endBlockNode(b,q){const F=this._currNode;if(F instanceof b||q&&F instanceof q)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${q?`${b.kind}/${q.kind}`:b.kind}"`)}_elseNode(b){const q=this._currNode;if(!(q instanceof E))throw new Error('CodeGen: "else" without "if"');return this._currNode=q.else=b,this}get _root(){return this._nodes[0]}get _currNode(){const b=this._nodes;return b[b.length-1]}set _currNode(b){const q=this._nodes;q[q.length-1]=b}}e.CodeGen=J;function oe(_,b){for(const q in b)_[q]=(_[q]||0)+(b[q]||0);return _}function Q(_,b){return b instanceof t._CodeOrName?oe(_,b.names):_}function X(_,b,q){if(_ instanceof t.Name)return F(_);if(!U(_))return _;return new t._Code(_._items.reduce((Y,le)=>(le instanceof t.Name&&(le=F(le)),le instanceof t._Code?Y.push(...le._items):Y.push(le),Y),[]));function F(Y){const le=q[Y.str];return le===void 0||b[Y.str]!==1?Y:(delete b[Y.str],le)}function U(Y){return Y instanceof t._Code&&Y._items.some(le=>le instanceof t.Name&&b[le.str]===1&&q[le.str]!==void 0)}}function me(_,b){for(const q in b)_[q]=(_[q]||0)-(b[q]||0)}function xe(_){return typeof _=="boolean"||typeof _=="number"||_===null?!_:(0,t._)`!${k(_)}`}e.not=xe;const Te=P(e.operators.AND);function fe(..._){return _.reduce(Te)}e.and=fe;const Se=P(e.operators.OR);function A(..._){return _.reduce(Se)}e.or=A;function P(_){return(b,q)=>b===t.nil?q:q===t.nil?b:(0,t._)`${k(b)} ${_} ${k(q)}`}function k(_){return _ instanceof t.Name?_:(0,t._)`(${_})`}})(qi)),qi}var Pe={},Ms;function Re(){if(Ms)return Pe;Ms=1,Object.defineProperty(Pe,"__esModule",{value:!0}),Pe.checkStrictMode=Pe.getErrorPath=Pe.Type=Pe.useFunc=Pe.setEvaluated=Pe.evaluatedPropsToName=Pe.mergeEvaluated=Pe.eachItem=Pe.unescapeJsonPointer=Pe.escapeJsonPointer=Pe.escapeFragment=Pe.unescapeFragment=Pe.schemaRefOrVal=Pe.schemaHasRulesButRef=Pe.schemaHasRules=Pe.checkUnknownRules=Pe.alwaysValidSchema=Pe.toHash=void 0;const e=we(),t=Xn();function r(g){const T={};for(const j of g)T[j]=!0;return T}Pe.toHash=r;function n(g,T){return typeof T=="boolean"?T:Object.keys(T).length===0?!0:(i(g,T),!o(T,g.self.RULES.all))}Pe.alwaysValidSchema=n;function i(g,T=g.schema){const{opts:j,self:B}=g;if(!j.strictSchema||typeof T=="boolean")return;const V=B.RULES.keywords;for(const G in T)V[G]||$(g,`unknown keyword: "${G}"`)}Pe.checkUnknownRules=i;function o(g,T){if(typeof g=="boolean")return!g;for(const j in g)if(T[j])return!0;return!1}Pe.schemaHasRules=o;function a(g,T){if(typeof g=="boolean")return!g;for(const j in g)if(j!=="$ref"&&T.all[j])return!0;return!1}Pe.schemaHasRulesButRef=a;function c({topSchemaRef:g,schemaPath:T},j,B,V){if(!V){if(typeof j=="number"||typeof j=="boolean")return j;if(typeof j=="string")return(0,e._)`${j}`}return(0,e._)`${g}${T}${(0,e.getProperty)(B)}`}Pe.schemaRefOrVal=c;function p(g){return m(decodeURIComponent(g))}Pe.unescapeFragment=p;function u(g){return encodeURIComponent(f(g))}Pe.escapeFragment=u;function f(g){return typeof g=="number"?`${g}`:g.replace(/~/g,"~0").replace(/\//g,"~1")}Pe.escapeJsonPointer=f;function m(g){return g.replace(/~1/g,"/").replace(/~0/g,"~")}Pe.unescapeJsonPointer=m;function y(g,T){if(Array.isArray(g))for(const j of g)T(j);else T(g)}Pe.eachItem=y;function h({mergeNames:g,mergeToName:T,mergeValues:j,resultToName:B}){return(V,G,J,oe)=>{const Q=J===void 0?G:J instanceof e.Name?(G instanceof e.Name?g(V,G,J):T(V,G,J),J):G instanceof e.Name?(T(V,J,G),G):j(G,J);return oe===e.Name&&!(Q instanceof e.Name)?B(V,Q):Q}}Pe.mergeEvaluated={props:h({mergeNames:(g,T,j)=>g.if((0,e._)`${j} !== true && ${T} !== undefined`,()=>{g.if((0,e._)`${T} === true`,()=>g.assign(j,!0),()=>g.assign(j,(0,e._)`${j} || {}`).code((0,e._)`Object.assign(${j}, ${T})`))}),mergeToName:(g,T,j)=>g.if((0,e._)`${j} !== true`,()=>{T===!0?g.assign(j,!0):(g.assign(j,(0,e._)`${j} || {}`),w(g,j,T))}),mergeValues:(g,T)=>g===!0?!0:{...g,...T},resultToName:O}),items:h({mergeNames:(g,T,j)=>g.if((0,e._)`${j} !== true && ${T} !== undefined`,()=>g.assign(j,(0,e._)`${T} === true ? true : ${j} > ${T} ? ${j} : ${T}`)),mergeToName:(g,T,j)=>g.if((0,e._)`${j} !== true`,()=>g.assign(j,T===!0?!0:(0,e._)`${j} > ${T} ? ${j} : ${T}`)),mergeValues:(g,T)=>g===!0?!0:Math.max(g,T),resultToName:(g,T)=>g.var("items",T)})};function O(g,T){if(T===!0)return g.var("props",!0);const j=g.var("props",(0,e._)`{}`);return T!==void 0&&w(g,j,T),j}Pe.evaluatedPropsToName=O;function w(g,T,j){Object.keys(j).forEach(B=>g.assign((0,e._)`${T}${(0,e.getProperty)(B)}`,!0))}Pe.setEvaluated=w;const S={};function E(g,T){return g.scopeValue("func",{ref:T,code:S[T.code]||(S[T.code]=new t._Code(T.code))})}Pe.useFunc=E;var x;(function(g){g[g.Num=0]="Num",g[g.Str=1]="Str"})(x||(Pe.Type=x={}));function v(g,T,j){if(g instanceof e.Name){const B=T===x.Num;return j?B?(0,e._)`"[" + ${g} + "]"`:(0,e._)`"['" + ${g} + "']"`:B?(0,e._)`"/" + ${g}`:(0,e._)`"/" + ${g}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return j?(0,e.getProperty)(g).toString():"/"+f(g)}Pe.getErrorPath=v;function $(g,T,j=g.opts.strictSchema){if(j){if(T=`strict mode: ${T}`,j===!0)throw new Error(T);g.self.logger.warn(T)}}return Pe.checkStrictMode=$,Pe}var Ir={},Ds;function We(){if(Ds)return Ir;Ds=1,Object.defineProperty(Ir,"__esModule",{value:!0});const e=we(),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 Ir.default=t,Ir}var Ns;function fi(){return Ns||(Ns=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=we(),r=Re(),n=We();e.keywordError={message:({keyword:S})=>(0,t.str)`must pass "${S}" keyword validation`},e.keyword$DataError={message:({keyword:S,schemaType:E})=>E?(0,t.str)`"${S}" keyword must be ${E} ($data)`:(0,t.str)`"${S}" keyword is invalid ($data)`};function i(S,E=e.keywordError,x,v){const{it:$}=S,{gen:g,compositeRule:T,allErrors:j}=$,B=m(S,E,x);v??(T||j)?p(g,B):u($,(0,t._)`[${B}]`)}e.reportError=i;function o(S,E=e.keywordError,x){const{it:v}=S,{gen:$,compositeRule:g,allErrors:T}=v,j=m(S,E,x);p($,j),g||T||u(v,n.default.vErrors)}e.reportExtraError=o;function a(S,E){S.assign(n.default.errors,E),S.if((0,t._)`${n.default.vErrors} !== null`,()=>S.if(E,()=>S.assign((0,t._)`${n.default.vErrors}.length`,E),()=>S.assign(n.default.vErrors,null)))}e.resetErrorsCount=a;function c({gen:S,keyword:E,schemaValue:x,data:v,errsCount:$,it:g}){if($===void 0)throw new Error("ajv implementation error");const T=S.name("err");S.forRange("i",$,n.default.errors,j=>{S.const(T,(0,t._)`${n.default.vErrors}[${j}]`),S.if((0,t._)`${T}.instancePath === undefined`,()=>S.assign((0,t._)`${T}.instancePath`,(0,t.strConcat)(n.default.instancePath,g.errorPath))),S.assign((0,t._)`${T}.schemaPath`,(0,t.str)`${g.errSchemaPath}/${E}`),g.opts.verbose&&(S.assign((0,t._)`${T}.schema`,x),S.assign((0,t._)`${T}.data`,v))})}e.extendErrors=c;function p(S,E){const x=S.const("err",E);S.if((0,t._)`${n.default.vErrors} === null`,()=>S.assign(n.default.vErrors,(0,t._)`[${x}]`),(0,t._)`${n.default.vErrors}.push(${x})`),S.code((0,t._)`${n.default.errors}++`)}function u(S,E){const{gen:x,validateName:v,schemaEnv:$}=S;$.$async?x.throw((0,t._)`new ${S.ValidationError}(${E})`):(x.assign((0,t._)`${v}.errors`,E),x.return(!1))}const f={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 m(S,E,x){const{createErrors:v}=S.it;return v===!1?(0,t._)`{}`:y(S,E,x)}function y(S,E,x={}){const{gen:v,it:$}=S,g=[h($,x),O(S,x)];return w(S,E,g),v.object(...g)}function h({errorPath:S},{instancePath:E}){const x=E?(0,t.str)`${S}${(0,r.getErrorPath)(E,r.Type.Str)}`:S;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,x)]}function O({keyword:S,it:{errSchemaPath:E}},{schemaPath:x,parentSchema:v}){let $=v?E:(0,t.str)`${E}/${S}`;return x&&($=(0,t.str)`${$}${(0,r.getErrorPath)(x,r.Type.Str)}`),[f.schemaPath,$]}function w(S,{params:E,message:x},v){const{keyword:$,data:g,schemaValue:T,it:j}=S,{opts:B,propertyName:V,topSchemaRef:G,schemaPath:J}=j;v.push([f.keyword,$],[f.params,typeof E=="function"?E(S):E||(0,t._)`{}`]),B.messages&&v.push([f.message,typeof x=="function"?x(S):x]),B.verbose&&v.push([f.schema,T],[f.parentSchema,(0,t._)`${G}${J}`],[n.default.data,g]),V&&v.push([f.propertyName,V])}})(Ii)),Ii}var Ls;function $0(){if(Ls)return St;Ls=1,Object.defineProperty(St,"__esModule",{value:!0}),St.boolOrEmptySchema=St.topBoolOrEmptySchema=void 0;const e=fi(),t=we(),r=We(),n={message:"boolean schema is false"};function i(c){const{gen:p,schema:u,validateName:f}=c;u===!1?a(c,!1):typeof u=="object"&&u.$async===!0?p.return(r.default.data):(p.assign((0,t._)`${f}.errors`,null),p.return(!0))}St.topBoolOrEmptySchema=i;function o(c,p){const{gen:u,schema:f}=c;f===!1?(u.var(p,!1),a(c)):u.var(p,!0)}St.boolOrEmptySchema=o;function a(c,p){const{gen:u,data:f}=c,m={gen:u,keyword:"false schema",data:f,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(m,n,void 0,p)}return St}var Ue={},Pt={},Us;function $l(){if(Us)return Pt;Us=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.getRules=Pt.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)}Pt.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 Pt.getRules=n,Pt}var lt={},Fs;function _l(){if(Fs)return lt;Fs=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.shouldUseRule=lt.shouldUseGroup=lt.schemaHasRulesForType=void 0;function e({schema:n,self:i},o){const a=i.RULES.types[o];return a&&a!==!0&&t(n,a)}lt.schemaHasRulesForType=e;function t(n,i){return i.rules.some(o=>r(n,o))}lt.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(a=>n[a]!==void 0))}return lt.shouldUseRule=r,lt}var zs;function Zn(){if(zs)return Ue;zs=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.reportTypeError=Ue.checkDataTypes=Ue.checkDataType=Ue.coerceAndCheckDataType=Ue.getJSONTypes=Ue.getSchemaTypes=Ue.DataType=void 0;const e=$l(),t=_l(),r=fi(),n=we(),i=Re();var o;(function(x){x[x.Correct=0]="Correct",x[x.Wrong=1]="Wrong"})(o||(Ue.DataType=o={}));function a(x){const v=c(x.type);if(v.includes("null")){if(x.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!v.length&&x.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');x.nullable===!0&&v.push("null")}return v}Ue.getSchemaTypes=a;function c(x){const v=Array.isArray(x)?x:x?[x]:[];if(v.every(e.isJSONType))return v;throw new Error("type must be JSONType or JSONType[]: "+v.join(","))}Ue.getJSONTypes=c;function p(x,v){const{gen:$,data:g,opts:T}=x,j=f(v,T.coerceTypes),B=v.length>0&&!(j.length===0&&v.length===1&&(0,t.schemaHasRulesForType)(x,v[0]));if(B){const V=O(v,g,T.strictNumbers,o.Wrong);$.if(V,()=>{j.length?m(x,v,j):S(x)})}return B}Ue.coerceAndCheckDataType=p;const u=new Set(["string","number","integer","boolean","null"]);function f(x,v){return v?x.filter($=>u.has($)||v==="array"&&$==="array"):[]}function m(x,v,$){const{gen:g,data:T,opts:j}=x,B=g.let("dataType",(0,n._)`typeof ${T}`),V=g.let("coerced",(0,n._)`undefined`);j.coerceTypes==="array"&&g.if((0,n._)`${B} == 'object' && Array.isArray(${T}) && ${T}.length == 1`,()=>g.assign(T,(0,n._)`${T}[0]`).assign(B,(0,n._)`typeof ${T}`).if(O(v,T,j.strictNumbers),()=>g.assign(V,T))),g.if((0,n._)`${V} !== undefined`);for(const J of $)(u.has(J)||J==="array"&&j.coerceTypes==="array")&&G(J);g.else(),S(x),g.endIf(),g.if((0,n._)`${V} !== undefined`,()=>{g.assign(T,V),y(x,V)});function G(J){switch(J){case"string":g.elseIf((0,n._)`${B} == "number" || ${B} == "boolean"`).assign(V,(0,n._)`"" + ${T}`).elseIf((0,n._)`${T} === null`).assign(V,(0,n._)`""`);return;case"number":g.elseIf((0,n._)`${B} == "boolean" || ${T} === null
1
+ "use strict";const K=require("./replay-index-CLJOTBS9.js"),I=require("./replay-resolve-B-ScAEQ_.js");var at=typeof document<"u"?document.currentScript:null;function yt(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--&&yt(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)||!yt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Lt(e){return K.isPlainObject(e)&&Object.keys(e).length===0}function or(e){return Array.isArray(e)&&e.length>0}function ze(e){return typeof e=="string"}function Lo(e){return e?Object.keys(e):[]}function fd(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 zn={exports:{}},md=zn.exports,gs;function hd(){return gs||(gs=1,(function(e,t){(function(r,n){typeof fd=="function"?e.exports=n():r.pluralize=n()})(md,function(){var r=[],n=[],i={},o={},a={};function c(w){return typeof w=="string"?new RegExp("^"+w+"$","i"):w}function p(w,P){return w===P?P:w===w.toLowerCase()?P.toLowerCase():w===w.toUpperCase()?P.toUpperCase():w[0]===w[0].toUpperCase()?P.charAt(0).toUpperCase()+P.substr(1).toLowerCase():P.toLowerCase()}function u(w,P){return w.replace(/\$(\d{1,2})/g,function(E,x){return P[x]||""})}function f(w,P){return w.replace(P[0],function(E,x){var v=u(P[1],arguments);return p(E===""?w[x-1]:E,v)})}function m(w,P,E){if(!w.length||i.hasOwnProperty(w))return P;for(var x=E.length;x--;){var v=E[x];if(v[0].test(P))return f(P,v)}return P}function y(w,P,E){return function(x){var v=x.toLowerCase();return P.hasOwnProperty(v)?p(x,v):w.hasOwnProperty(v)?p(x,w[v]):m(v,x,E)}}function h(w,P,E,x){return function(v){var $=v.toLowerCase();return P.hasOwnProperty($)?!0:w.hasOwnProperty($)?!1:m($,$,E)===$}}function O(w,P,E){var x=P===1?O.singular(w):O.plural(w);return(E?P+" ":"")+x}return O.plural=y(a,o,r),O.isPlural=h(a,o,r),O.singular=y(o,a,n),O.isSingular=h(o,a,n),O.addPluralRule=function(w,P){r.push([c(w),P])},O.addSingularRule=function(w,P){n.push([c(w),P])},O.addUncountableRule=function(w){if(typeof w=="string"){i[w.toLowerCase()]=!0;return}O.addPluralRule(w,"$0"),O.addSingularRule(w,"$0")},O.addIrregularRule=function(w,P){P=P.toLowerCase(),w=w.toLowerCase(),a[w]=P,o[P]=w},[["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(w){return O.addIrregularRule(w[0],w[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(w){return O.addPluralRule(w[0],w[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(w){return O.addSingularRule(w[0],w[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(O.addUncountableRule),O})})(zn)),zn.exports}var yd=hd();const Ap=K.getDefaultExportFromCjs(yd);function gd(e,t,r){return e.split(" ").map(n=>Ap(n,t,r)).join(" ")}function $p(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function ir(e){const t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}const bd=/^[0-9][0-9Xx]{2}$/,vd={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-"},wd={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-"},xd={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},Pd={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},Sd={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},Ed={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},Od={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},Rd={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-"},Ad={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},$d={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},_d={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},Td={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-"},kd={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-"},Id={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>bd.test(t)?"Response":void 0},qd={properties:{description:{type:"string"},schema:"Schema",headers:I.mapOf("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},Cd={properties:{},additionalProperties:{isExample:!0}},jd={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return K.isPlainObject(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},Md={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},Dd={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},Nd={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)?I.listOf("Schema"):"Schema",allOf:I.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-"},Ld={properties:{},additionalProperties:{type:"string"}},Ud={properties:{},additionalProperties:"Schema"},Fd={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},zd={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},Bd={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-"},Vd={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Hd={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},_p={Root:vd,Tag:Md,TagList:I.listOf("Tag"),TagGroups:I.listOf("TagGroup"),TagGroup:Dd,ExternalDocs:_d,Example:Hd,ExamplesMap:I.mapOf("Example"),EnumDescriptions:Ld,SecurityRequirement:Vd,SecurityRequirementList:I.listOf("SecurityRequirement"),Info:wd,Contact:Pd,License:Sd,Logo:xd,Paths:Ed,PathItem:Od,Parameter:Td,ParameterItems:kd,ParameterList:I.listOf("Parameter"),Operation:Rd,Examples:Cd,Header:jd,Responses:Id,Response:qd,Schema:Nd,Xml:Fd,SchemaProperties:Ud,NamedSchemas:I.mapOf("Schema"),NamedResponses:I.mapOf("Response"),NamedParameters:I.mapOf("Parameter"),NamedSecuritySchemes:I.mapOf("SecurityScheme"),SecurityScheme:Bd,Scopes:zd,XCodeSample:Ad,XCodeSampleList:I.listOf("XCodeSample"),XServerList:I.listOf("XServer"),XServer:$d},Kd=/^[0-9][0-9Xx]{2}$/,Wd={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."},Qd={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."},Gd={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"},Yd={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"},Jd={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."},Xd={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."},Zd={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."},ef={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"},tf={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."},rf={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."},nf={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."},of={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"},sf={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},af={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"},cf={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"},pf={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"},lf={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."},uf={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."},df={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},ff={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"},mf={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"},hf={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"},yf={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"},gf={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."},bf={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>Kd.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"},vf={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."},wf={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."},Uo="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",Tp=I.listOf("Schema",{name:"AllOf",description:Uo}),kp=I.listOf("Schema",{name:"AnyOf",description:Uo}),Ip=I.listOf("Schema",{name:"OneOf",description:Uo}),xf={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:Tp,anyOf:kp,oneOf:Ip,not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?I.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"},Pf={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."},Sf={properties:{},additionalProperties:"Schema"},Ef={properties:{},additionalProperties:e=>typeof e=="string"&&I.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},Of={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."},Rf={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"},Af={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."},$f={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."},_f={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."},Tf={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."},kf={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},If={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-"},qf={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"},rt={Root:Wd,Tag:Qd,TagList:I.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:I.listOf("TagGroup"),TagGroup:Gd,ExternalDocs:Yd,Server:Jd,ServerList:I.listOf("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:Xd,ServerVariablesMap:I.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:Zd,SecurityRequirementList:I.listOf("SecurityRequirement"),Info:ef,Contact:rf,License:nf,Paths:of,PathItem:af,Parameter:cf,ParameterList:I.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:pf,Callback:I.mapOf("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:I.mapOf("Callback"),RequestBody:uf,MediaTypesMap:df,MediaType:ff,Example:mf,ExamplesMap:I.mapOf("Example"),Encoding:hf,EncodingMap:I.mapOf("Encoding"),EnumDescriptions:yf,Header:gf,HeadersMap:I.mapOf("Header"),Responses:bf,Response:vf,Link:wf,Logo:tf,Schema:xf,AllOf:Tp,AnyOf:kp,OneOf:Ip,Xml:Pf,SchemaProperties:Sf,DiscriminatorMapping:Ef,Discriminator:Of,Components:Rf,LinksMap:I.mapOf("Link"),NamedSchemas:I.mapOf("Schema"),NamedResponses:I.mapOf("Response"),NamedParameters:I.mapOf("Parameter"),NamedExamples:I.mapOf("Example"),NamedRequestBodies:I.mapOf("RequestBody"),NamedHeaders:I.mapOf("Header"),NamedSecuritySchemes:I.mapOf("SecurityScheme"),NamedLinks:I.mapOf("Link"),NamedCallbacks:I.mapOf("Callback"),ImplicitFlow:Af,PasswordFlow:$f,ClientCredentials:_f,AuthorizationCode:Tf,OAuth2Flows:kf,SecurityScheme:If,XCodeSample:lf,XCodeSampleList:I.listOf("XCodeSample"),XUsePkce:qf,WebhooksMap:sf},Cf={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."},jf={...rt.License,properties:{...rt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},Mf={...rt.Info,properties:{...rt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Df={...rt.Components,properties:{...rt.Components.properties,pathItems:"NamedPathItems"}},Nf={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."},Lf={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:I.listOf("Schema",{name:"AllOf"}),anyOf:I.listOf("Schema",{name:"AnyOf"}),oneOf:I.listOf("Schema",{name:"OneOf"}),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:I.mapOf("Schema"),dependentRequired:"DependentRequired",prefixItems:I.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-"},bs={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Uf={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-"},Ff={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},$e={...rt,Info:Mf,Root:Cf,Schema:Lf,SchemaProperties:bs,PatternProperties:bs,License:jf,Components:Df,NamedPathItems:I.mapOf("PathItem"),SecurityScheme:Uf,Operation:Nf,DependentRequired:Ff},zf={...$e.Root,properties:{...$e.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."}}},Bf={...$e.Tag,properties:{...$e.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."},Vf={...$e.Server,properties:{...$e.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."},Hf={...$e.SecurityScheme,properties:{...$e.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."},Kf={...$e.OAuth2Flows,properties:{...$e.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Wf={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:I.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."},Qf={...rt.PathItem,properties:{...rt.PathItem.properties,query:"Operation",additionalOperations:I.mapOf("Operation")}},Gf={...$e.Parameter,properties:{...$e.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"]}}},Yf={...$e.Response,properties:{...$e.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Jf={...$e.MediaType,properties:{...$e.MediaType.properties,itemSchema:"Schema",prefixEncoding:I.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"}},Xf={...$e.Discriminator,properties:{...$e.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 I.isMappingRef(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Zf={extensionsPrefix:"x-",properties:{...$e.Components.properties,mediaTypes:"NamedMediaTypes"}},em={...$e.Example,properties:{...$e.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."}}},tm={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."},rm={...$e.Schema,properties:{...$e.Schema.properties,xml:"Xml"}},Fe={...$e,Root:zf,Tag:Bf,Server:Vf,SecurityScheme:Hf,OAuth2Flows:Kf,DeviceAuthorization:Wf,PathItem:Qf,Parameter:Gf,Response:Yf,MediaType:Jf,Discriminator:Xf,Example:em,Xml:tm,Schema:rm,Components:Zf,NamedMediaTypes:I.mapOf("MediaTypesMap")},nm={properties:{},description:"Protocol-specific information for an HTTP channel."},im={properties:{},description:"Protocol-specific information for an HTTP server."},om={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},sm={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."},am={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},cm={properties:{},description:"Protocol-specific information for a WebSockets server."},pm={properties:{},description:"Protocol-specific information for a WebSockets message."},lm={properties:{},description:"Protocol-specific information for a WebSockets operation."},um={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"}}},dm={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},fm={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},mm={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},hm={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},ym={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},gm={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},bm={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},vm={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},wm={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."},xm={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."},Pm={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."},Sm={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},Em={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},Om={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."},Rm={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},Am={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},$m={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},_m={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},Tm={properties:{},description:"Protocol-specific information for an MQTT channel."},km={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},Im={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>K.isPlainObject(e)?"Schema":{type:"integer"},maximumPacketSize:e=>K.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},qm={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>K.isPlainObject(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},Cm={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>K.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},jm={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},Mm={properties:{sessionExpiryInterval:e=>K.isPlainObject(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},Dm={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Nm={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Lm={properties:{},description:"Protocol-specific information for a NATS channel."},Um={properties:{},description:"Protocol-specific information for a NATS server."},Fm={properties:{},description:"Protocol-specific information for a NATS message."},zm={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},Bm={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Vm={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Hm={properties:{jmsConnectionFactory:{type:"string"},properties:I.listOf("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Km={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},Wm={properties:{},description:"Protocol-specific information for a JMS operation."},Qm={properties:{},description:"Protocol-specific information for a Solace channel."},Gm={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Ym={properties:{},description:"Protocol-specific information for a Solace message."},Jm={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"}}}},Xm={properties:{bindingVersion:{type:"string"},destinations:I.listOf("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},Zm={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."},eh={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},th={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},rh={properties:{statements:I.listOf("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},nh={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},ih={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},oh={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."},sh={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."},ah={properties:{topic:"SnsIdentifier",consumers:I.listOf("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},ch={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},ph={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},lh={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},uh={properties:{statements:I.listOf("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},qp={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)."},dh={...qp,required:["name"],description:"Describes an SQS queue (operation-level definition)."},fh={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},mh={properties:{queues:I.listOf("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},hh={properties:{},description:"Protocol-specific information for a STOMP channel."},yh={properties:{},description:"Protocol-specific information for a STOMP server."},gh={properties:{},description:"Protocol-specific information for a STOMP message."},bh={properties:{},description:"Protocol-specific information for a STOMP operation."},vh={properties:{},description:"Protocol-specific information for a Redis channel."},wh={properties:{},description:"Protocol-specific information for a Redis server."},xh={properties:{},description:"Protocol-specific information for a Redis message."},Ph={properties:{},description:"Protocol-specific information for a Redis operation."},Sh={properties:{},description:"Protocol-specific information for a Mercure channel."},Eh={properties:{},description:"Protocol-specific information for a Mercure server."},Oh={properties:{},description:"Protocol-specific information for a Mercure message."},Rh={properties:{},description:"Protocol-specific information for a Mercure operation."},Ah={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."},$h={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},_h={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},Th={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."},kh={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."},Ih={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},qh={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."},Ch={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."},jh={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},Mh={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},Dh={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},Nh={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},Lh={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."},Uh={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},Fh={properties:{},description:"Protocol-specific information for a ROS 2 channel."},zh={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."},Bh={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."},Vh={properties:{},description:"Protocol-specific information for a ROS 2 message."},Hh={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."},Kh={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."},Wh={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."},Qh={extensionsPrefix:"x-",properties:{http:"HttpMessageBinding",ws:"WsMessageBinding",kafka:"KafkaMessageBinding",anypointmq:"AnypointmqMessageBinding",amqp:"AmqpMessageBinding",amqp1:"Amqp1MessageBinding",mqtt:"MqttMessageBinding",mqtt5:"Mqtt5MessageBinding",nats:"NatsMessageBinding",jms:"JmsMessageBinding",solace:"SolaceMessageBinding",stomp:"StompMessageBinding",redis:"RedisMessageBinding",mercure:"MercureMessageBinding",ibmmq:"IbmmqMessageBinding",googlepubsub:"GooglepubsubMessageBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a message."},ot={HttpServerBinding:im,HttpChannelBinding:nm,HttpMessageBinding:om,HttpOperationBinding:sm,WsServerBinding:cm,WsChannelBinding:am,WsMessageBinding:pm,WsOperationBinding:lm,KafkaServerBinding:fm,KafkaTopicConfiguration:um,KafkaChannelBinding:dm,KafkaMessageBinding:mm,KafkaOperationBinding:hm,AnypointmqServerBinding:gm,AnypointmqChannelBinding:ym,AnypointmqMessageBinding:bm,AnypointmqOperationBinding:vm,AmqpServerBinding:Sm,AmqpChannelExchange:wm,AmqpChannelQueue:xm,AmqpChannelBinding:Pm,AmqpMessageBinding:Em,AmqpOperationBinding:Om,Amqp1ServerBinding:Am,Amqp1ChannelBinding:Rm,Amqp1MessageBinding:$m,Amqp1OperationBinding:_m,MqttServerBindingLastWill:km,MqttServerBinding:Im,MqttChannelBinding:Tm,MqttMessageBinding:qm,MqttOperationBinding:Cm,Mqtt5ServerBinding:Mm,Mqtt5ChannelBinding:jm,Mqtt5MessageBinding:Dm,Mqtt5OperationBinding:Nm,NatsServerBinding:Um,NatsChannelBinding:Lm,NatsMessageBinding:Fm,NatsOperationBinding:zm,JmsServerBindingProperty:Vm,JmsServerBinding:Hm,JmsChannelBinding:Bm,JmsMessageBinding:Km,JmsOperationBinding:Wm,SolaceServerBinding:Gm,SolaceChannelBinding:Qm,SolaceMessageBinding:Ym,SolaceDestination:Jm,SolaceOperationBinding:Xm,StompServerBinding:yh,StompChannelBinding:hh,StompMessageBinding:gh,StompOperationBinding:bh,RedisServerBinding:wh,RedisChannelBinding:vh,RedisMessageBinding:xh,RedisOperationBinding:Ph,MercureServerBinding:Eh,MercureChannelBinding:Sh,MercureMessageBinding:Oh,MercureOperationBinding:Rh,SnsIdentifier:Zm,SnsOrdering:eh,SnsStatement:th,SnsPolicy:rh,SnsChannelBinding:nh,SnsRedrivePolicy:ih,SnsDeliveryPolicy:oh,SnsConsumer:sh,SnsOperationBinding:ah,SqsIdentifier:ch,SqsRedrivePolicy:ph,SqsStatement:lh,SqsPolicy:uh,SqsQueue:qp,SqsOperationQueue:dh,SqsChannelBinding:fh,SqsOperationBinding:mh,IbmmqServerBinding:Ah,IbmmqChannelQueue:$h,IbmmqChannelTopic:_h,IbmmqChannelBinding:Th,IbmmqMessageBinding:kh,GooglepubsubMessageStoragePolicy:Ih,GooglepubsubSchemaSettings:qh,GooglepubsubChannelBinding:Ch,GooglepubsubSchema:jh,GooglepubsubMessageBinding:Mh,PulsarServerBinding:Dh,PulsarRetention:Nh,PulsarChannelBinding:Lh,ServerBindings:Hh,ChannelBindings:Kh,MessageBindings:Qh,OperationBindings:Wh},Gh={Ros2ServerBinding:Uh,Ros2ChannelBinding:Fh,Ros2OperationBinding:Bh,Ros2QosPolicies:zh,Ros2MessageBinding:Vh},Fo={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:I.listOf("Schema"),anyOf:I.listOf("Schema"),oneOf:I.listOf("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?I.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"}},zo={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Bo={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},Vo={properties:{},additionalProperties:e=>typeof e=="string"&&I.isMappingRef(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},Ho={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]},Yh={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"]},Jh={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."},Xh={properties:{},additionalProperties:"Channel"},Cp={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."},jp={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."},Zh={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."},ey={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."},Mp={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Dp={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."},ty={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."},Np={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."},Lp={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."},ry={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."},Up={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."},ny={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."},iy={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."},oy={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."},sy={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."},Fp={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."},ay={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"}},cy={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."},py={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."},ly={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."},uy={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."},zp={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},dy={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."},Bp={...ot,Root:Yh,Tag:Cp,TagList:I.listOf("Tag"),ServerMap:Mp,ExternalDocs:jp,Server:ey,ServerVariable:Dp,ServerVariablesMap:I.mapOf("ServerVariable"),SecurityRequirement:Zh,SecurityRequirementList:I.listOf("SecurityRequirement"),Info:ty,Contact:Np,License:Lp,ChannelMap:Xh,Channel:Jh,Parameter:ry,ParametersMap:I.mapOf("Parameter"),Operation:sy,Schema:Fo,MessageExample:Fp,SchemaProperties:zo,DiscriminatorMapping:Vo,Discriminator:Ho,Components:ay,NamedSchemas:I.mapOf("Schema"),NamedMessages:I.mapOf("Message"),NamedMessageTraits:I.mapOf("MessageTrait"),NamedOperationTraits:I.mapOf("OperationTrait"),NamedParameters:I.mapOf("Parameter"),NamedSecuritySchemes:I.mapOf("SecurityScheme"),NamedCorrelationIds:I.mapOf("CorrelationId"),ImplicitFlow:cy,PasswordFlow:py,ClientCredentials:ly,AuthorizationCode:uy,SecuritySchemeFlows:zp,SecurityScheme:dy,Message:ny,OperationTrait:iy,OperationTraitList:I.listOf("OperationTrait"),MessageTrait:oy,MessageTraitList:I.listOf("MessageTrait"),MessageExampleList:I.listOf("MessageExample"),CorrelationId:Up,Dependencies:Bo},fy={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."},my={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."},hy={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."},yy={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."},gy={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."},by={extensionsPrefix:"x-",properties:{headers:e=>K.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>K.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."},vy={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."},wy={extensionsPrefix:"x-",properties:{headers:e=>K.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."},xy={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"]},Py={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."},Sy={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."},Ey={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."},Oy={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."},Ry={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."},Ay={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."},$y={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."},_y={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."},Ty={...ot.ServerBindings,properties:{...ot.ServerBindings.properties,ros2:"Ros2ServerBinding"}},ky={...ot.ChannelBindings,properties:{...ot.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},Iy={...ot.OperationBindings,properties:{...ot.OperationBindings.properties,ros2:"Ros2OperationBinding"}},qy={...ot.MessageBindings,properties:{...ot.MessageBindings.properties,ros2:"Ros2MessageBinding"}},Cy={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},jy={properties:{},additionalProperties:e=>K.isPlainObject(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Vp={...ot,...Gh,ServerBindings:Ty,ChannelBindings:ky,OperationBindings:Iy,MessageBindings:qy,CorrelationId:Up,SecuritySchemeFlows:zp,ServerVariable:Dp,Contact:Np,License:Lp,MessageExample:Fp,Tag:Cp,Dependencies:Bo,Schema:Fo,MultiFormatSchema:Cy,Discriminator:Ho,DiscriminatorMapping:Vo,SchemaProperties:zo,ServerMap:Mp,ExternalDocs:jp,Root:fy,Channel:my,Parameter:gy,Info:yy,Server:hy,MessageTrait:wy,Operation:xy,OperationReply:Py,OperationReplyAddress:Sy,Components:Ey,ImplicitFlow:Oy,PasswordFlow:Ry,ClientCredentials:Ay,AuthorizationCode:$y,SecurityScheme:_y,Message:by,OperationTrait:vy,ServerVariablesMap:I.mapOf("ServerVariable"),NamedTags:I.mapOf("Tag"),NamedExternalDocs:I.mapOf("ExternalDocs"),NamedChannels:I.mapOf("Channel"),ParametersMap:I.mapOf("Parameter"),NamedOperations:I.mapOf("Operation"),NamedOperationReplies:I.mapOf("OperationReply"),NamedOperationRelyAddresses:I.mapOf("OperationReplyAddress"),NamedSchemas:jy,NamedMessages:I.mapOf("Message"),NamedMessageTraits:I.mapOf("MessageTrait"),NamedOperationTraits:I.mapOf("OperationTrait"),NamedParameters:I.mapOf("Parameter"),NamedSecuritySchemes:I.mapOf("SecurityScheme"),NamedCorrelationIds:I.mapOf("CorrelationId"),ServerList:I.listOf("Server"),SecuritySchemeList:I.listOf("SecurityScheme"),MessageList:I.listOf("Message"),OperationTraitList:I.listOf("OperationTrait"),MessageTraitList:I.listOf("MessageTrait"),MessageExampleList:I.listOf("MessageExample"),TagList:I.listOf("Tag")},My={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-"},Dy={properties:{},additionalProperties:"Parameter"},Ny={properties:{},additionalProperties:"SuccessActionObject"},Ly={properties:{},additionalProperties:"FailureActionObject"},Uy={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},Fy=I.mapOf("Schema"),zy={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."},By={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},Vy={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."},Hy={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."},Ky={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."},Wy={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."},Qy={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Gy={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."},Yy=I.listOf("Workflow"),Jy=I.listOf("Step"),Xy={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:I.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."},Zy={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_.-]+$."},eg={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:I.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."},tg={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."},rg={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."},ng={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."},ig={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."},og={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},sg={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},ag={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:I.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."},cg={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},pg={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:I.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."},lg={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},Be={Root:My,Info:zy,SourceDescriptions:By,OpenAPISourceDescription:Vy,ArazzoSourceDescription:Hy,Parameters:Qy,Parameter:Wy,ReusableObject:Ky,Workflows:Yy,Workflow:Gy,Steps:Jy,Step:Xy,RequestBody:eg,Replacement:tg,ExtendedOperation:ng,ExtendedSecurityList:I.listOf("ExtendedSecurity"),ExtendedSecurity:rg,Outputs:Zy,CriterionObject:ig,XPathCriterion:sg,JSONPathCriterion:og,SuccessActionObject:ag,OnSuccessActionList:cg,FailureActionObject:pg,OnFailureActionList:lg,Schema:Fe.Schema,NamedSchemas:I.mapOf("Schema"),ExternalDocs:Fe.ExternalDocs,DiscriminatorMapping:Fe.DiscriminatorMapping,Discriminator:Fe.Discriminator,DependentRequired:Fe.DependentRequired,SchemaProperties:Fe.SchemaProperties,PatternProperties:Fe.SchemaProperties,Components:Uy,NamedInputs:Fy,NamedParameters:Dy,NamedSuccessActions:Ny,NamedFailureActions:Ly,Xml:Fe.Xml,SecurityScheme:Fe.SecurityScheme,OAuth2Flows:Fe.OAuth2Flows,ImplicitFlow:Fe.ImplicitFlow,PasswordFlow:Fe.PasswordFlow,ClientCredentials:Fe.ClientCredentials,AuthorizationCode:Fe.AuthorizationCode,DeviceAuthorization:Fe.DeviceAuthorization},ug={...Be.Root,properties:{...Be.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1."}}},dg={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},fg={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."},mg={...Be.Parameter,properties:{...Be.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.'}}},hg={...Be.Step,properties:{...Be.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"]},yg={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},gg={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},bg={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},vg={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"]},wg=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Ko=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:wg(n)},xg={...Be.CriterionObject,properties:{...Be.CriterionObject.properties,type:Ko(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},Pg={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:Ko(["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."},Sg={properties:{},additionalProperties:e=>K.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_.-]+$."},Eg={...Be.Replacement,properties:{...Be.Replacement.properties,value:e=>K.isPlainObject(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Ko(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},Og={...Be.SuccessActionObject,properties:{...Be.SuccessActionObject.properties,parameters:"Parameters"}},Rg={...Be.FailureActionObject,properties:{...Be.FailureActionObject.properties,parameters:"Parameters"}},Hp={...Be,Root:ug,SourceDescriptions:dg,AsyncAPISourceDescription:fg,Parameter:mg,Step:hg,CriterionObject:xg,JSONPathExpression:yg,XPathExpression:gg,JSONPointerExpression:bg,ExpressionType:vg,SelectorObject:Pg,Outputs:Sg,Replacement:Eg,SuccessActionObject:Og,FailureActionObject:Rg},Ag={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},$g={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},_g=I.listOf("Action"),Tg={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},Kp={Root:Ag,Info:$g,Actions:_g,Action:Tg},kg={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."},Ig={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."},qg={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."},Cg={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."},jg={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."},Mg={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."},Dg={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."},Ng={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."},Lg={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."},Ug={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."},Fg={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."},zg={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."},Bg={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."},Vg={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."},Hg={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."},Wp={Root:kg,Info:Ig,Contact:qg,License:Cg,Server:jg,ServerList:I.listOf("Server"),ServerVariable:Mg,ServerVariablesMap:I.mapOf("ServerVariable"),Method:Dg,MethodList:I.listOf("Method"),ContentDescriptor:Ng,ContentDescriptorList:I.listOf("ContentDescriptor"),ExamplePairing:Lg,ExamplePairingList:I.listOf("ExamplePairing"),Example:Ug,ExampleList:I.listOf("Example"),Link:Fg,LinkList:I.listOf("Link"),ErrorObject:zg,ErrorList:I.listOf("ErrorObject"),Components:Bg,Tag:Vg,TagList:I.listOf("Tag"),ExternalDocs:Hg,Schema:Fo,SchemaProperties:zo,Dependencies:Bo,DiscriminatorMapping:Vo,Discriminator:Ho,NamedContentDescriptors:I.mapOf("ContentDescriptor"),NamedSchemas:I.mapOf("Schema"),NamedExamples:I.mapOf("Example"),NamedLinks:I.mapOf("Link"),NamedErrors:I.mapOf("ErrorObject"),NamedExamplePairingObjects:I.mapOf("ExamplePairing"),NamedTags:I.mapOf("Tag")};var Qp={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Qt={type:"object",properties:Qp,additionalProperties:!1},Kg={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},mr={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:{...Qp,like:Qt,dislike:Qt,satisfied:Qt,neutral:Qt,dissatisfied:Qt},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:Kg},additionalProperties:!1}},additionalProperties:!1},Wg={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},Wo={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Ro={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:mr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Wo,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:Wg,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},$t={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Qg={type:"object",properties:{name:{type:"string"},items:$t,queries:$t,mutations:$t,subscriptions:$t,types:$t,directives:$t},required:["name"],additionalProperties:!1},Gg={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Qg},otherItemsGroupName:{type:"string"}}},Yg={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Jg={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Xg={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Yg,license:Jg},additionalProperties:!1},Kn={type:"object",properties:{menu:{type:"object",properties:{...Gg.properties},additionalProperties:!1},downloadUrls:Wo,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:mr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Xg},additionalProperties:!1},Zg={type:"object",properties:{downloadUrls:Wo,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:mr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},eb={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"]},tb={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"}}},vs={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},rb={type:"object",properties:{beforeInfo:{type:"array",items:vs},end:{type:"array",items:vs}}},Ot={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},Ar={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},nb={type:"object",properties:li(Ot.properties,["light","dark"])},ib={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"}}},ob={type:"object",properties:{error:Ar,info:Ar,redirect:Ar,success:Ar}},sb={type:"object",properties:Ft(Ot.properties,["dark"])},ab={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},cb={type:"object",properties:{accent:Ot,border:nb,error:Ot,http:ib,primary:Ot,responses:ob,secondary:sb,success:Ot,text:ab,tonalOffset:{type:"number"},warning:Ot}},$r={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},pb={type:"object",properties:{small:$r,medium:$r,large:$r,xlarge:$r}},st={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},lb={type:"object",properties:{...Ft(st.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:pb}},ws={type:"object",properties:li(st.properties,["fontSize","lineHeight"])},ub={type:"object",properties:{medium:ws,small:ws}},db={type:"object",properties:{...Ft(st.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:ub}},fb={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},mb={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},xs={type:"object",properties:{fullWidth:{type:"boolean"}}},hb={type:"object",properties:{buttons:lb,httpBadges:db,layoutControls:fb,panels:mb,tryItButton:xs,tryItSendButton:xs}},Wn={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},yb={type:"object",properties:{maxWidth:Wn}},gb={type:"object",properties:{maxWidth:Wn,middlePanelMaxWidth:Wn}},bb={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:yb,"three-panel":gb}},Ps={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},vb={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Ps,defaultDetailsWidth:{type:"string"},examples:Ps,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Gp={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},wb={type:"object",properties:li(Gp.properties,["textTransform"])},xb={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},Pb={type:"object",properties:{...Ft(st.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:Gp,level1items:wb,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:xb,textColor:{type:"string"},width:{type:"string"}}},_r={type:"object",properties:{...st.properties,color:{type:"string"},transform:{type:"string"}}},Sb={type:"object",properties:{...st.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"}}},Eb={type:"object",properties:Ft(st.properties,["fontSize"])},Ob={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Rb={type:"object",properties:{code:Sb,fieldName:st,...li(st.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:_r,heading2:_r,heading3:_r,headings:Eb,lineHeight:{type:"string"},links:Ob,optimizeSpeed:{type:"boolean"},rightPanelHeading:_r,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},Ab={type:"object",properties:{color:{type:"string"},...Ft(st.properties,["fontWeight"])}},$b={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:Ab}},_b={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},Tb={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Ss={type:"object",properties:{custom:{type:"string"}}},kb={type:"object",properties:{DownloadButton:Ss,NextSectionButton:Ss}},Ib={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},qb={type:"object",properties:{borderRadius:{type:"string"}}},Cb={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},jb={type:"object",properties:{breakpoints:Wn,codeBlock:$b,colors:cb,components:hb,layout:bb,logo:_b,fab:Tb,overrides:kb,rightPanel:Ib,schema:vb,shape:qb,sidebar:Pb,spacing:Cb,typography:Rb,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},Mb={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:eb}},required:["languages"]},Db={properties:{theme:jb,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:Mb,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:tb,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:rb,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 li(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function Ft(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Ge={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"},Nb={rules:Ge,oas2Rules:Ge,oas3_0Rules:Ge,oas3_1Rules:Ge,oas3_2Rules:Ge,async2Rules:Ge,async3Rules:Ge,arazzo1Rules:Ge,arazzo1_1Rules:Ge,overlay1Rules:Ge,openrpc1Rules:Ge,graphqlRules:Ge},Je={nodeTypeName:void 0,type:"object",additionalProperties:!0},Lb={preprocessors:Je,oas2Preprocessors:Je,oas3_0Preprocessors:Je,oas3_1Preprocessors:Je,oas3_2Preprocessors:Je,async2Preprocessors:Je,async3Preprocessors:Je,arazzo1Preprocessors:Je,arazzo1_1Preprocessors:Je,overlay1Preprocessors:Je,openrpc1Preprocessors:Je},Xe={nodeTypeName:void 0,type:"object",additionalProperties:!0},Ub={decorators:Xe,oas2Decorators:Xe,oas3_0Decorators:Xe,oas3_1Decorators:Xe,oas3_2Decorators:Xe,async2Decorators:Xe,async3Decorators:Xe,arazzo1Decorators:Xe,arazzo1_1Decorators:Xe,overlay1Decorators:Xe,openrpc1Decorators:Xe},Fb={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"},ui={...Nb,...Ub,...Lb,extends:Fb},Yp=e=>e,Ke=Yp({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Le={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Es={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},Ti={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}}},Qo={type:"array",items:{...Ti,properties:{...Ti.properties,items:{type:"array",items:Ti}}}},zb={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Bb={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Vb={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}},Hb={type:"object",properties:{facets:Vb,...Le.properties},additionalProperties:!1},Kb={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},Jp={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},Xp={type:"object",properties:{items:Qo,...Le.properties},additionalProperties:!1},Zp={type:"object",additionalProperties:zb},el={type:"object",properties:{items:Qo,copyrightText:{type:"string"},logo:Le,...Le.properties},additionalProperties:!1},tl={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Le.properties},additionalProperties:!1},rl={type:"object",properties:{head:{type:"array",items:Es},body:{type:"array",items:Es}},additionalProperties:!1},nl={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}},il={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Bb,filters:Hb,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Kb},...Le.properties},additionalProperties:!1},ol={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},sl={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Le.properties},additionalProperties:!1},al={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Wb={type:"object",properties:{...Le.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},cl={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Le.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Le.properties},additionalProperties:!1},actions:Wb},additionalProperties:!1},pl={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Le.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Le.properties},additionalProperties:!1},expand:{type:"object",properties:{...Le.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Le.properties},additionalProperties:!1}},additionalProperties:!1},ll={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"},...Le.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Le.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Le.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Qn={...Ro,properties:{...Ro.properties,...Db.properties}};({...Ro.properties});var Qb={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Gb={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"]},Yb={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Jb={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Xb={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"]},Zb={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},ev={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},tv={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},rv={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:tv}},additionalProperties:!1,required:["trackingId"]},ul={type:"object",properties:{adobe:Qb,amplitude:Gb,fullstory:Yb,heap:Jb,rudderstack:Xb,segment:Zb,gtm:ev,ga:rv}},nv={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},dl={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"},...Le.properties},additionalProperties:!1},fl={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},ml={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},iv={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"}}}},ov={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:iv},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Qo,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},Gn={type:"object",patternProperties:{".*":ov}},Yn={nodeTypeName:Ke.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:Ke.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:Ke.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:Ke.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...ui},additionalProperties:!1}},targets:{nodeTypeName:Ke.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:Ke.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:Ke.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:Ke.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},sv={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},av={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},cv={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},ct={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:av},excludes:{type:"array",items:sv},filters:{type:"array",items:cv},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},pv={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},lv={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:pv},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},uv={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:lv,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},dv={type:"object",additionalProperties:uv},hl={type:"object",properties:{show:{type:"boolean"},entityTypes:dv,catalogs:{type:"object",properties:{all:ct,services:ct,domains:ct,teams:ct,users:ct,apiDescriptions:ct,dataSchemas:ct,apiOperations:ct},additionalProperties:ct}},additionalProperties:!1},Os={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Go={type:"string",enum:["and","or"]},Ao={type:"object",properties:{field:{type:"string"},operator:Os,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Os,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},fv={type:"object",properties:{operator:Go,conditions:{type:"array",items:Ao}},required:["operator","conditions"],additionalProperties:!1},Rs={type:"array",items:{oneOf:[Ao,{type:"object",properties:{operator:Go,conditions:{type:"array",items:{oneOf:[Ao,fv]}}},required:["operator","conditions"],additionalProperties:!1}]}},yl={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},mv={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:yl},required:["subject","assertions"],additionalProperties:!1}},hv={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:yl,where:mv,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},yv={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},hv]}},gv={type:"object",properties:{name:{type:"string"},extends:ui.extends,rules:yv},required:["name"],additionalProperties:!1},As={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},bv={oneOf:[As,{type:"array",items:As}]},vv={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Rs,{type:"object",properties:{operator:Go,conditions:Rs},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:gv,minItems:1},trigger:bv},required:["name","key","entities","levels"],additionalProperties:!1},gl={type:"array",items:vv},it={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:Jp,navbar:Xp,products:Zp,footer:el,sidebar:tl,scripts:rl,links:nl,feedback:mr,search:il,aiAssistant:ol,colorMode:sl,palette:al,navigation:cl,codeSnippet:pl,markdown:ll,openapi:Qn,asyncapi:Zg,graphql:Kn,analytics:ul,userMenu:dl,versionPicker:fl,breadcrumbs:ml,catalog:Gn,entitiesCatalog:hl,catalogClassic:Gn,scorecard:Yn,scorecardClassic:Yn,scorecards:gl},additionalProperties:!0},wv=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(wv||{}),xv=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(xv||{}),Pv=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(Pv||{}),Sv="^[a-z0-9]+(?:-[a-z0-9]+)*$",bl="redocly",Ev=[bl,"corporate","guest"],$s=["REDOCLY","CORPORATE","GUEST"],Ov={type:"object",additionalProperties:{type:"string"}},Rv={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Tr={type:"string",enum:["error","warn","off"]},Av={type:"object",additionalProperties:!1,properties:{schemaCheck:Tr,statusCodeCheck:Tr,contentTypeCheck:Tr,successCriteriaCheck:Tr}},$v={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},_v={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},Tv={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},kv={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}},Iv={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:[$v,_v]},inputs:Ov,servers:Rv,severity:Av,slo:Tv},required:["path","trigger","agent"],additionalProperties:!1}},mcpServers:kv},additionalProperties:!1},vl={type:"string",enum:["off","info","warn","error"]},Gt={type:"array",items:{type:"string"}},qv={type:"object",properties:{severity:vl,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Gt,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Gt,excludes:Gt,exceptions:{type:"object",properties:{files:Gt,lines:Gt},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},Cv={oneOf:[vl,qv]},_s={type:"object",additionalProperties:Cv},jv={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},Mv={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:jv}},additionalProperties:!1},Dv={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:Mv},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},Nv={type:"object",properties:{rules:_s,excludes:{type:"array",items:{type:"string",minLength:1}},baseline:{type:"string",minLength:1},markdoc:{oneOf:[{type:"boolean"},Dv]},apiDescriptions:{type:"object",properties:{rules:_s},additionalProperties:!1}},additionalProperties:!1},Lv={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},Uv={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:Lv,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},Fv={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"]},zv={oneOf:[Uv,Fv],discriminator:{propertyName:"type"}},Bv={type:"object",additionalProperties:zv},wl={oneOf:[{type:"array",items:{type:"string",enum:$s},uniqueItems:!0},{type:"string",enum:$s}]},Ts={type:"string",pattern:Sv,not:{enum:Ev.filter(e=>e!==bl)}},xl={oneOf:[{type:"array",items:Ts,uniqueItems:!0},Ts]},Pl={type:"boolean"},Sl={type:"string",pattern:"^https?://.*"},El={type:"string",pattern:"^https?://.*"},Vv={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:Ke.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},Hv={type:"object",additionalProperties:Vv,nodeTypeName:Ke.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"},Kv={type:"string",enum:["info","success","warning","error"]},qe={type:"object",additionalProperties:{type:"string"}},Wv={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:Kv,rbac:qe,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},Qv={type:"array",items:Wv},Gv={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:qe,openapi:Qn,graphql:Kn,theme:{type:"object",properties:{openapi:Qn,graphql:Kn},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...ui},required:["root"]},Yv={type:"object",additionalProperties:!0},Jv={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},Xv={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},Zv={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:Xv},additionalProperties:!1},e0={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},t0={type:"object",properties:{catalogs:{type:"object",properties:{all:qe,services:qe,domains:qe,teams:qe,users:qe,apiDescriptions:qe,dataSchemas:qe,apiOperations:qe},additionalProperties:qe},entitiesTypes:{type:"object",properties:{service:qe,domain:qe,team:qe,user:qe,apiDescription:qe,apiOperation:qe,dataSchema:qe},additionalProperties:qe},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:qe},additionalProperties:!1}},entities:{type:"object",properties:{"**":qe},additionalProperties:qe}},additionalProperties:!1},Ol={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:qe,cms:qe,reunite:qe,features:{type:"object",properties:{aiSearch:qe,mcp:qe},additionalProperties:!1},content:{type:"object",properties:{"**":qe},additionalProperties:qe},entitiesCatalog:t0},additionalProperties:qe},r0={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},n0={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},i0={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[r0,n0]}},additionalProperties:!1,required:["type","apiBaseUrl"]},o0={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},s0={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},$o={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:[o0,s0],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},a0={...$o,properties:{...$o.properties,type:{type:"string",const:"APIGEE_EDGE"}}},c0={type:"object",oneOf:[$o,a0,i0],discriminator:{propertyName:"type"}},p0={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:c0}}},ks={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"]},l0={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},u0={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},d0={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},f0={type:"object",properties:{requiresLogin:Pl,logoutReturnUrl:Sl,residency:El,sso:wl,idps:xl,rbac:Ol},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Jn={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:Hv,seo:Zv,rbac:Ol,apiFunctions:e0,requiresLogin:Pl,responseHeaders:{type:"object",additionalProperties:{type:"array",items:l0}},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:Gv},...ui,ssoDirect:Bv,sso:wl,idps:xl,residency:El,logoutReturnUrl:Sl,access:f0,developerOnboarding:p0,removeAttribution:{type:"boolean"},i18n:ks,l10n:ks,metadata:Yv,metadataGlobs:Jv,ignore:{type:"array",items:{type:"string"}},theme:it,reunite:Iv,logo:Jp,navbar:Xp,products:Zp,footer:el,sidebar:tl,scripts:rl,links:nl,feedback:mr,search:il,aiAssistant:ol,colorMode:sl,palette:al,navigation:cl,codeSnippet:pl,markdown:ll,openapi:Qn,graphql:Kn,analytics:ul,consent:nv,userMenu:dl,versionPicker:fl,breadcrumbs:ml,catalog:Gn,entitiesCatalog:hl,catalogClassic:Gn,scorecard:Yn,scorecardClassic:Yn,scorecards:gl,mcp:u0,skills:d0,recheck:Nv,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:Qv},not:{required:["sso","idps"]},additionalProperties:!0},m0={...Jn,additionalProperties:!1},di={$id:"root-redocly-config",...Jn,properties:{plugins:{type:"array",items:{type:"string"}},...Jn.properties,env:{type:"object",additionalProperties:m0}},additionalProperties:!1};it.properties.logo,it.properties.navbar,it.properties.footer,it.properties.sidebar,it.properties.search,it.properties.codeSnippet,it.properties.breadcrumbs,it.properties.openapi,it.properties.feedback,Jn.properties.mockServer;var h0=["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"],De=Yp({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"}),y0={type:"object",nodeTypeName:De.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},g0={type:"object",nodeTypeName:De.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},b0={type:"object",nodeTypeName:De.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},v0={type:"object",nodeTypeName:De.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},w0={type:"object",properties:{},nodeTypeName:De.EntityMetadata,additionalProperties:!0},x0={type:"object",nodeTypeName:De.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},P0={type:"object",nodeTypeName:De.EntitySlackContact,properties:{channels:{type:"array",items:x0}},required:["channels"],additionalProperties:!1},S0={type:"object",nodeTypeName:De.EntityContact,properties:{slack:P0},additionalProperties:!1},E0={type:"object",nodeTypeName:De.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},O0={type:"object",nodeTypeName:De.EntityRelation,properties:{type:{type:"string",enum:h0},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},wt={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:S0,links:{type:"array",nodeTypeName:De.EntityLinkList,items:E0},relations:{type:"array",nodeTypeName:De.EntityRelationList,items:O0},metadata:w0},R0={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...wt,type:{type:"string",const:"user"},metadata:y0},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:De.UserEntity},{type:"object",nodeTypeName:De.ApiOperationEntity,properties:{...wt,type:{type:"string",const:"api-operation"},metadata:b0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:De.DataSchemaEntity,properties:{...wt,type:{type:"string",const:"data-schema"},metadata:v0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:De.ApiDescriptionEntity,properties:{...wt,type:{type:"string",const:"api-description"},metadata:g0},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:De.ServiceEntity,properties:{...wt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:De.DomainEntity,properties:{...wt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:De.TeamEntity,properties:{...wt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},A0={type:"object",nodeTypeName:De.Entity,properties:{...wt},required:["key","title","type"],additionalProperties:!1};const $0=["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"],Bn=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Rl="a-zA-Z0-9\\.\\-_",_0={oas2:_p,oas3_0:rt,oas3_1:$e,oas3_2:Fe,async2:Bp,async3:Vp,arazzo1:Be,arazzo1_1:Hp,overlay1:Kp,openrpc1:Wp};function hr(e){return e==="graphql"?{}:_0[e]}function Yo(e){return e.includes("/")}function Al(e,t){const r={...e};return t.forEach(n=>{delete r[n]}),r}var kr={exports:{}},ki={},pt={},Pt={},Ii={},qi={},Ci={},Is;function Xn(){return Is||(Is=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(x){if(super(),!e.IDENTIFIER.test(x))throw new Error("CodeGen: name must be a valid identifier");this.str=x}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(x){super(),this._items=typeof x=="string"?[x]:x}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const x=this._items[0];return x===""||x==='""'}get str(){var x;return(x=this._str)!==null&&x!==void 0?x:this._str=this._items.reduce((v,$)=>`${v}${$}`,"")}get names(){var x;return(x=this._names)!==null&&x!==void 0?x:this._names=this._items.reduce((v,$)=>($ instanceof r&&(v[$.str]=(v[$.str]||0)+1),v),{})}}e._Code=n,e.nil=new n("");function i(E,...x){const v=[E[0]];let $=0;for(;$<x.length;)c(v,x[$]),v.push(E[++$]);return new n(v)}e._=i;const o=new n("+");function a(E,...x){const v=[h(E[0])];let $=0;for(;$<x.length;)v.push(o),c(v,x[$]),v.push(o,h(E[++$]));return p(v),new n(v)}e.str=a;function c(E,x){x instanceof n?E.push(...x._items):x instanceof r?E.push(x):E.push(m(x))}e.addCodeArg=c;function p(E){let x=1;for(;x<E.length-1;){if(E[x]===o){const v=u(E[x-1],E[x+1]);if(v!==void 0){E.splice(x-1,3,v);continue}E[x++]="+"}x++}}function u(E,x){if(x==='""')return E;if(E==='""')return x;if(typeof E=="string")return x instanceof r||E[E.length-1]!=='"'?void 0:typeof x!="string"?`${E.slice(0,-1)}${x}"`:x[0]==='"'?E.slice(0,-1)+x.slice(1):void 0;if(typeof x=="string"&&x[0]==='"'&&!(E instanceof r))return`"${E}${x.slice(1)}`}function f(E,x){return x.emptyStr()?E:E.emptyStr()?x:a`${E}${x}`}e.strConcat=f;function m(E){return typeof E=="number"||typeof E=="boolean"||E===null?E:h(Array.isArray(E)?E.join(","):E)}function y(E){return new n(h(E))}e.stringify=y;function h(E){return JSON.stringify(E).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=h;function O(E){return typeof E=="string"&&e.IDENTIFIER.test(E)?new n(`.${E}`):i`[${E}]`}e.getProperty=O;function w(E){if(typeof E=="string"&&e.IDENTIFIER.test(E))return new n(`${E}`);throw new Error(`CodeGen: invalid export name: ${E}, use explicit $id name mapping`)}e.getEsmExportName=w;function P(E){return new n(E.toString())}e.regexpCode=P})(Ci)),Ci}var ji={},qs;function Cs(){return qs||(qs=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Xn();class r extends Error{constructor(u){super(`CodeGen: "code" for ${u} not defined`),this.value=u.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:u,parent:f}={}){this._names={},this._prefixes=u,this._parent=f}toName(u){return u instanceof t.Name?u:this.name(u)}name(u){return new t.Name(this._newName(u))}_newName(u){const f=this._names[u]||this._nameGroup(u);return`${u}${f.index++}`}_nameGroup(u){var f,m;if(!((m=(f=this._parent)===null||f===void 0?void 0:f._prefixes)===null||m===void 0)&&m.has(u)||this._prefixes&&!this._prefixes.has(u))throw new Error(`CodeGen: prefix "${u}" is not allowed in this scope`);return this._names[u]={prefix:u,index:0}}}e.Scope=i;class o extends t.Name{constructor(u,f){super(f),this.prefix=u}setValue(u,{property:f,itemIndex:m}){this.value=u,this.scopePath=(0,t._)`.${new t.Name(f)}[${m}]`}}e.ValueScopeName=o;const a=(0,t._)`\n`;class c extends i{constructor(u){super(u),this._values={},this._scope=u.scope,this.opts={...u,_n:u.lines?a:t.nil}}get(){return this._scope}name(u){return new o(u,this._newName(u))}value(u,f){var m;if(f.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(u),{prefix:h}=y,O=(m=f.key)!==null&&m!==void 0?m:f.ref;let w=this._values[h];if(w){const x=w.get(O);if(x)return x}else w=this._values[h]=new Map;w.set(O,y);const P=this._scope[h]||(this._scope[h]=[]),E=P.length;return P[E]=f.ref,y.setValue(f,{property:h,itemIndex:E}),y}getValue(u,f){const m=this._values[u];if(m)return m.get(f)}scopeRefs(u,f=this._values){return this._reduceValues(f,m=>{if(m.scopePath===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return(0,t._)`${u}${m.scopePath}`})}scopeCode(u=this._values,f,m){return this._reduceValues(u,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},f,m)}_reduceValues(u,f,m={},y){let h=t.nil;for(const O in u){const w=u[O];if(!w)continue;const P=m[O]=m[O]||new Map;w.forEach(E=>{if(P.has(E))return;P.set(E,n.Started);let x=f(E);if(x){const v=this.opts.es5?e.varKinds.var:e.varKinds.const;h=(0,t._)`${h}${v} ${E} = ${x};${this.opts._n}`}else if(x=y?.(E))h=(0,t._)`${h}${x}${this.opts._n}`;else throw new r(E);P.set(E,n.Completed)})}return h}}e.ValueScope=c})(ji)),ji}var js;function we(){return js||(js=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=Xn(),r=Cs();var n=Xn();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=Cs();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(b,q){return this}}class a extends o{constructor(b,q,F){super(),this.varKind=b,this.name=q,this.rhs=F}render({es5:b,_n:q}){const F=b?r.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${F} ${this.name}${U};`+q}optimizeNames(b,q){if(b[this.name.str])return this.rhs&&(this.rhs=X(this.rhs,b,q)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends o{constructor(b,q,F){super(),this.lhs=b,this.rhs=q,this.sideEffects=F}render({_n:b}){return`${this.lhs} = ${this.rhs};`+b}optimizeNames(b,q){if(!(this.lhs instanceof t.Name&&!b[this.lhs.str]&&!this.sideEffects))return this.rhs=X(this.rhs,b,q),this}get names(){const b=this.lhs instanceof t.Name?{}:{...this.lhs.names};return Q(b,this.rhs)}}class p extends c{constructor(b,q,F,U){super(b,F,U),this.op=q}render({_n:b}){return`${this.lhs} ${this.op}= ${this.rhs};`+b}}class u extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`${this.label}:`+b}}class f extends o{constructor(b){super(),this.label=b,this.names={}}render({_n:b}){return`break${this.label?` ${this.label}`:""};`+b}}class m extends o{constructor(b){super(),this.error=b}render({_n:b}){return`throw ${this.error};`+b}get names(){return this.error.names}}class y extends o{constructor(b){super(),this.code=b}render({_n:b}){return`${this.code};`+b}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(b,q){return this.code=X(this.code,b,q),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class h extends o{constructor(b=[]){super(),this.nodes=b}render(b){return this.nodes.reduce((q,F)=>q+F.render(b),"")}optimizeNodes(){const{nodes:b}=this;let q=b.length;for(;q--;){const F=b[q].optimizeNodes();Array.isArray(F)?b.splice(q,1,...F):F?b[q]=F:b.splice(q,1)}return b.length>0?this:void 0}optimizeNames(b,q){const{nodes:F}=this;let U=F.length;for(;U--;){const Y=F[U];Y.optimizeNames(b,q)||(me(b,Y.names),F.splice(U,1))}return F.length>0?this:void 0}get names(){return this.nodes.reduce((b,q)=>oe(b,q.names),{})}}class O extends h{render(b){return"{"+b._n+super.render(b)+"}"+b._n}}class w extends h{}class P extends O{}P.kind="else";class E extends O{constructor(b,q){super(q),this.condition=b}render(b){let q=`if(${this.condition})`+super.render(b);return this.else&&(q+="else "+this.else.render(b)),q}optimizeNodes(){super.optimizeNodes();const b=this.condition;if(b===!0)return this.nodes;let q=this.else;if(q){const F=q.optimizeNodes();q=this.else=Array.isArray(F)?new P(F):F}if(q)return b===!1?q instanceof E?q:q.nodes:this.nodes.length?this:new E(xe(b),q instanceof E?[q]:q.nodes);if(!(b===!1||!this.nodes.length))return this}optimizeNames(b,q){var F;if(this.else=(F=this.else)===null||F===void 0?void 0:F.optimizeNames(b,q),!!(super.optimizeNames(b,q)||this.else))return this.condition=X(this.condition,b,q),this}get names(){const b=super.names;return Q(b,this.condition),this.else&&oe(b,this.else.names),b}}E.kind="if";class x extends O{}x.kind="for";class v extends x{constructor(b){super(),this.iteration=b}render(b){return`for(${this.iteration})`+super.render(b)}optimizeNames(b,q){if(super.optimizeNames(b,q))return this.iteration=X(this.iteration,b,q),this}get names(){return oe(super.names,this.iteration.names)}}class $ extends x{constructor(b,q,F,U){super(),this.varKind=b,this.name=q,this.from=F,this.to=U}render(b){const q=b.es5?r.varKinds.var:this.varKind,{name:F,from:U,to:Y}=this;return`for(${q} ${F}=${U}; ${F}<${Y}; ${F}++)`+super.render(b)}get names(){const b=Q(super.names,this.from);return Q(b,this.to)}}class g extends x{constructor(b,q,F,U){super(),this.loop=b,this.varKind=q,this.name=F,this.iterable=U}render(b){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(b)}optimizeNames(b,q){if(super.optimizeNames(b,q))return this.iterable=X(this.iterable,b,q),this}get names(){return oe(super.names,this.iterable.names)}}class T extends O{constructor(b,q,F){super(),this.name=b,this.args=q,this.async=F}render(b){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(b)}}T.kind="func";class j extends h{render(b){return"return "+super.render(b)}}j.kind="return";class B extends O{render(b){let q="try"+super.render(b);return this.catch&&(q+=this.catch.render(b)),this.finally&&(q+=this.finally.render(b)),q}optimizeNodes(){var b,q;return super.optimizeNodes(),(b=this.catch)===null||b===void 0||b.optimizeNodes(),(q=this.finally)===null||q===void 0||q.optimizeNodes(),this}optimizeNames(b,q){var F,U;return super.optimizeNames(b,q),(F=this.catch)===null||F===void 0||F.optimizeNames(b,q),(U=this.finally)===null||U===void 0||U.optimizeNames(b,q),this}get names(){const b=super.names;return this.catch&&oe(b,this.catch.names),this.finally&&oe(b,this.finally.names),b}}class V extends O{constructor(b){super(),this.error=b}render(b){return`catch(${this.error})`+super.render(b)}}V.kind="catch";class G extends O{render(b){return"finally"+super.render(b)}}G.kind="finally";class J{constructor(b,q={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...q,_n:q.lines?`
2
+ `:""},this._extScope=b,this._scope=new r.Scope({parent:b}),this._nodes=[new w]}toString(){return this._root.render(this.opts)}name(b){return this._scope.name(b)}scopeName(b){return this._extScope.name(b)}scopeValue(b,q){const F=this._extScope.value(b,q);return(this._values[F.prefix]||(this._values[F.prefix]=new Set)).add(F),F}getScopeValue(b,q){return this._extScope.getValue(b,q)}scopeRefs(b){return this._extScope.scopeRefs(b,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(b,q,F,U){const Y=this._scope.toName(q);return F!==void 0&&U&&(this._constants[Y.str]=F),this._leafNode(new a(b,Y,F)),Y}const(b,q,F){return this._def(r.varKinds.const,b,q,F)}let(b,q,F){return this._def(r.varKinds.let,b,q,F)}var(b,q,F){return this._def(r.varKinds.var,b,q,F)}assign(b,q,F){return this._leafNode(new c(b,q,F))}add(b,q){return this._leafNode(new p(b,e.operators.ADD,q))}code(b){return typeof b=="function"?b():b!==t.nil&&this._leafNode(new y(b)),this}object(...b){const q=["{"];for(const[F,U]of b)q.length>1&&q.push(","),q.push(F),(F!==U||this.opts.es5)&&(q.push(":"),(0,t.addCodeArg)(q,U));return q.push("}"),new t._Code(q)}if(b,q,F){if(this._blockNode(new E(b)),q&&F)this.code(q).else().code(F).endIf();else if(q)this.code(q).endIf();else if(F)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(b){return this._elseNode(new E(b))}else(){return this._elseNode(new P)}endIf(){return this._endBlockNode(E,P)}_for(b,q){return this._blockNode(b),q&&this.code(q).endFor(),this}for(b,q){return this._for(new v(b),q)}forRange(b,q,F,U,Y=this.opts.es5?r.varKinds.var:r.varKinds.let){const le=this._scope.toName(b);return this._for(new $(Y,le,q,F),()=>U(le))}forOf(b,q,F,U=r.varKinds.const){const Y=this._scope.toName(b);if(this.opts.es5){const le=q instanceof t.Name?q:this.var("_arr",q);return this.forRange("_i",0,(0,t._)`${le}.length`,he=>{this.var(Y,(0,t._)`${le}[${he}]`),F(Y)})}return this._for(new g("of",U,Y,q),()=>F(Y))}forIn(b,q,F,U=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(b,(0,t._)`Object.keys(${q})`,F);const Y=this._scope.toName(b);return this._for(new g("in",U,Y,q),()=>F(Y))}endFor(){return this._endBlockNode(x)}label(b){return this._leafNode(new u(b))}break(b){return this._leafNode(new f(b))}return(b){const q=new j;if(this._blockNode(q),this.code(b),q.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(j)}try(b,q,F){if(!q&&!F)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new B;if(this._blockNode(U),this.code(b),q){const Y=this.name("e");this._currNode=U.catch=new V(Y),q(Y)}return F&&(this._currNode=U.finally=new G,this.code(F)),this._endBlockNode(V,G)}throw(b){return this._leafNode(new m(b))}block(b,q){return this._blockStarts.push(this._nodes.length),b&&this.code(b).endBlock(q),this}endBlock(b){const q=this._blockStarts.pop();if(q===void 0)throw new Error("CodeGen: not in self-balancing block");const F=this._nodes.length-q;if(F<0||b!==void 0&&F!==b)throw new Error(`CodeGen: wrong number of nodes: ${F} vs ${b} expected`);return this._nodes.length=q,this}func(b,q=t.nil,F,U){return this._blockNode(new T(b,q,F)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(T)}optimize(b=1){for(;b-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(b){return this._currNode.nodes.push(b),this}_blockNode(b){this._currNode.nodes.push(b),this._nodes.push(b)}_endBlockNode(b,q){const F=this._currNode;if(F instanceof b||q&&F instanceof q)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${q?`${b.kind}/${q.kind}`:b.kind}"`)}_elseNode(b){const q=this._currNode;if(!(q instanceof E))throw new Error('CodeGen: "else" without "if"');return this._currNode=q.else=b,this}get _root(){return this._nodes[0]}get _currNode(){const b=this._nodes;return b[b.length-1]}set _currNode(b){const q=this._nodes;q[q.length-1]=b}}e.CodeGen=J;function oe(_,b){for(const q in b)_[q]=(_[q]||0)+(b[q]||0);return _}function Q(_,b){return b instanceof t._CodeOrName?oe(_,b.names):_}function X(_,b,q){if(_ instanceof t.Name)return F(_);if(!U(_))return _;return new t._Code(_._items.reduce((Y,le)=>(le instanceof t.Name&&(le=F(le)),le instanceof t._Code?Y.push(...le._items):Y.push(le),Y),[]));function F(Y){const le=q[Y.str];return le===void 0||b[Y.str]!==1?Y:(delete b[Y.str],le)}function U(Y){return Y instanceof t._Code&&Y._items.some(le=>le instanceof t.Name&&b[le.str]===1&&q[le.str]!==void 0)}}function me(_,b){for(const q in b)_[q]=(_[q]||0)-(b[q]||0)}function xe(_){return typeof _=="boolean"||typeof _=="number"||_===null?!_:(0,t._)`!${k(_)}`}e.not=xe;const Te=S(e.operators.AND);function fe(..._){return _.reduce(Te)}e.and=fe;const Pe=S(e.operators.OR);function R(..._){return _.reduce(Pe)}e.or=R;function S(_){return(b,q)=>b===t.nil?q:q===t.nil?b:(0,t._)`${k(b)} ${_} ${k(q)}`}function k(_){return _ instanceof t.Name?_:(0,t._)`(${_})`}})(qi)),qi}var Se={},Ms;function Ae(){if(Ms)return Se;Ms=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.checkStrictMode=Se.getErrorPath=Se.Type=Se.useFunc=Se.setEvaluated=Se.evaluatedPropsToName=Se.mergeEvaluated=Se.eachItem=Se.unescapeJsonPointer=Se.escapeJsonPointer=Se.escapeFragment=Se.unescapeFragment=Se.schemaRefOrVal=Se.schemaHasRulesButRef=Se.schemaHasRules=Se.checkUnknownRules=Se.alwaysValidSchema=Se.toHash=void 0;const e=we(),t=Xn();function r(g){const T={};for(const j of g)T[j]=!0;return T}Se.toHash=r;function n(g,T){return typeof T=="boolean"?T:Object.keys(T).length===0?!0:(i(g,T),!o(T,g.self.RULES.all))}Se.alwaysValidSchema=n;function i(g,T=g.schema){const{opts:j,self:B}=g;if(!j.strictSchema||typeof T=="boolean")return;const V=B.RULES.keywords;for(const G in T)V[G]||$(g,`unknown keyword: "${G}"`)}Se.checkUnknownRules=i;function o(g,T){if(typeof g=="boolean")return!g;for(const j in g)if(T[j])return!0;return!1}Se.schemaHasRules=o;function a(g,T){if(typeof g=="boolean")return!g;for(const j in g)if(j!=="$ref"&&T.all[j])return!0;return!1}Se.schemaHasRulesButRef=a;function c({topSchemaRef:g,schemaPath:T},j,B,V){if(!V){if(typeof j=="number"||typeof j=="boolean")return j;if(typeof j=="string")return(0,e._)`${j}`}return(0,e._)`${g}${T}${(0,e.getProperty)(B)}`}Se.schemaRefOrVal=c;function p(g){return m(decodeURIComponent(g))}Se.unescapeFragment=p;function u(g){return encodeURIComponent(f(g))}Se.escapeFragment=u;function f(g){return typeof g=="number"?`${g}`:g.replace(/~/g,"~0").replace(/\//g,"~1")}Se.escapeJsonPointer=f;function m(g){return g.replace(/~1/g,"/").replace(/~0/g,"~")}Se.unescapeJsonPointer=m;function y(g,T){if(Array.isArray(g))for(const j of g)T(j);else T(g)}Se.eachItem=y;function h({mergeNames:g,mergeToName:T,mergeValues:j,resultToName:B}){return(V,G,J,oe)=>{const Q=J===void 0?G:J instanceof e.Name?(G instanceof e.Name?g(V,G,J):T(V,G,J),J):G instanceof e.Name?(T(V,J,G),G):j(G,J);return oe===e.Name&&!(Q instanceof e.Name)?B(V,Q):Q}}Se.mergeEvaluated={props:h({mergeNames:(g,T,j)=>g.if((0,e._)`${j} !== true && ${T} !== undefined`,()=>{g.if((0,e._)`${T} === true`,()=>g.assign(j,!0),()=>g.assign(j,(0,e._)`${j} || {}`).code((0,e._)`Object.assign(${j}, ${T})`))}),mergeToName:(g,T,j)=>g.if((0,e._)`${j} !== true`,()=>{T===!0?g.assign(j,!0):(g.assign(j,(0,e._)`${j} || {}`),w(g,j,T))}),mergeValues:(g,T)=>g===!0?!0:{...g,...T},resultToName:O}),items:h({mergeNames:(g,T,j)=>g.if((0,e._)`${j} !== true && ${T} !== undefined`,()=>g.assign(j,(0,e._)`${T} === true ? true : ${j} > ${T} ? ${j} : ${T}`)),mergeToName:(g,T,j)=>g.if((0,e._)`${j} !== true`,()=>g.assign(j,T===!0?!0:(0,e._)`${j} > ${T} ? ${j} : ${T}`)),mergeValues:(g,T)=>g===!0?!0:Math.max(g,T),resultToName:(g,T)=>g.var("items",T)})};function O(g,T){if(T===!0)return g.var("props",!0);const j=g.var("props",(0,e._)`{}`);return T!==void 0&&w(g,j,T),j}Se.evaluatedPropsToName=O;function w(g,T,j){Object.keys(j).forEach(B=>g.assign((0,e._)`${T}${(0,e.getProperty)(B)}`,!0))}Se.setEvaluated=w;const P={};function E(g,T){return g.scopeValue("func",{ref:T,code:P[T.code]||(P[T.code]=new t._Code(T.code))})}Se.useFunc=E;var x;(function(g){g[g.Num=0]="Num",g[g.Str=1]="Str"})(x||(Se.Type=x={}));function v(g,T,j){if(g instanceof e.Name){const B=T===x.Num;return j?B?(0,e._)`"[" + ${g} + "]"`:(0,e._)`"['" + ${g} + "']"`:B?(0,e._)`"/" + ${g}`:(0,e._)`"/" + ${g}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return j?(0,e.getProperty)(g).toString():"/"+f(g)}Se.getErrorPath=v;function $(g,T,j=g.opts.strictSchema){if(j){if(T=`strict mode: ${T}`,j===!0)throw new Error(T);g.self.logger.warn(T)}}return Se.checkStrictMode=$,Se}var Ir={},Ds;function We(){if(Ds)return Ir;Ds=1,Object.defineProperty(Ir,"__esModule",{value:!0});const e=we(),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 Ir.default=t,Ir}var Ns;function fi(){return Ns||(Ns=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=we(),r=Ae(),n=We();e.keywordError={message:({keyword:P})=>(0,t.str)`must pass "${P}" keyword validation`},e.keyword$DataError={message:({keyword:P,schemaType:E})=>E?(0,t.str)`"${P}" keyword must be ${E} ($data)`:(0,t.str)`"${P}" keyword is invalid ($data)`};function i(P,E=e.keywordError,x,v){const{it:$}=P,{gen:g,compositeRule:T,allErrors:j}=$,B=m(P,E,x);v??(T||j)?p(g,B):u($,(0,t._)`[${B}]`)}e.reportError=i;function o(P,E=e.keywordError,x){const{it:v}=P,{gen:$,compositeRule:g,allErrors:T}=v,j=m(P,E,x);p($,j),g||T||u(v,n.default.vErrors)}e.reportExtraError=o;function a(P,E){P.assign(n.default.errors,E),P.if((0,t._)`${n.default.vErrors} !== null`,()=>P.if(E,()=>P.assign((0,t._)`${n.default.vErrors}.length`,E),()=>P.assign(n.default.vErrors,null)))}e.resetErrorsCount=a;function c({gen:P,keyword:E,schemaValue:x,data:v,errsCount:$,it:g}){if($===void 0)throw new Error("ajv implementation error");const T=P.name("err");P.forRange("i",$,n.default.errors,j=>{P.const(T,(0,t._)`${n.default.vErrors}[${j}]`),P.if((0,t._)`${T}.instancePath === undefined`,()=>P.assign((0,t._)`${T}.instancePath`,(0,t.strConcat)(n.default.instancePath,g.errorPath))),P.assign((0,t._)`${T}.schemaPath`,(0,t.str)`${g.errSchemaPath}/${E}`),g.opts.verbose&&(P.assign((0,t._)`${T}.schema`,x),P.assign((0,t._)`${T}.data`,v))})}e.extendErrors=c;function p(P,E){const x=P.const("err",E);P.if((0,t._)`${n.default.vErrors} === null`,()=>P.assign(n.default.vErrors,(0,t._)`[${x}]`),(0,t._)`${n.default.vErrors}.push(${x})`),P.code((0,t._)`${n.default.errors}++`)}function u(P,E){const{gen:x,validateName:v,schemaEnv:$}=P;$.$async?x.throw((0,t._)`new ${P.ValidationError}(${E})`):(x.assign((0,t._)`${v}.errors`,E),x.return(!1))}const f={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 m(P,E,x){const{createErrors:v}=P.it;return v===!1?(0,t._)`{}`:y(P,E,x)}function y(P,E,x={}){const{gen:v,it:$}=P,g=[h($,x),O(P,x)];return w(P,E,g),v.object(...g)}function h({errorPath:P},{instancePath:E}){const x=E?(0,t.str)`${P}${(0,r.getErrorPath)(E,r.Type.Str)}`:P;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,x)]}function O({keyword:P,it:{errSchemaPath:E}},{schemaPath:x,parentSchema:v}){let $=v?E:(0,t.str)`${E}/${P}`;return x&&($=(0,t.str)`${$}${(0,r.getErrorPath)(x,r.Type.Str)}`),[f.schemaPath,$]}function w(P,{params:E,message:x},v){const{keyword:$,data:g,schemaValue:T,it:j}=P,{opts:B,propertyName:V,topSchemaRef:G,schemaPath:J}=j;v.push([f.keyword,$],[f.params,typeof E=="function"?E(P):E||(0,t._)`{}`]),B.messages&&v.push([f.message,typeof x=="function"?x(P):x]),B.verbose&&v.push([f.schema,T],[f.parentSchema,(0,t._)`${G}${J}`],[n.default.data,g]),V&&v.push([f.propertyName,V])}})(Ii)),Ii}var Ls;function T0(){if(Ls)return Pt;Ls=1,Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.boolOrEmptySchema=Pt.topBoolOrEmptySchema=void 0;const e=fi(),t=we(),r=We(),n={message:"boolean schema is false"};function i(c){const{gen:p,schema:u,validateName:f}=c;u===!1?a(c,!1):typeof u=="object"&&u.$async===!0?p.return(r.default.data):(p.assign((0,t._)`${f}.errors`,null),p.return(!0))}Pt.topBoolOrEmptySchema=i;function o(c,p){const{gen:u,schema:f}=c;f===!1?(u.var(p,!1),a(c)):u.var(p,!0)}Pt.boolOrEmptySchema=o;function a(c,p){const{gen:u,data:f}=c,m={gen:u,keyword:"false schema",data:f,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(m,n,void 0,p)}return Pt}var Ue={},St={},Us;function $l(){if(Us)return St;Us=1,Object.defineProperty(St,"__esModule",{value:!0}),St.getRules=St.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)}St.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 St.getRules=n,St}var lt={},Fs;function _l(){if(Fs)return lt;Fs=1,Object.defineProperty(lt,"__esModule",{value:!0}),lt.shouldUseRule=lt.shouldUseGroup=lt.schemaHasRulesForType=void 0;function e({schema:n,self:i},o){const a=i.RULES.types[o];return a&&a!==!0&&t(n,a)}lt.schemaHasRulesForType=e;function t(n,i){return i.rules.some(o=>r(n,o))}lt.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(a=>n[a]!==void 0))}return lt.shouldUseRule=r,lt}var zs;function Zn(){if(zs)return Ue;zs=1,Object.defineProperty(Ue,"__esModule",{value:!0}),Ue.reportTypeError=Ue.checkDataTypes=Ue.checkDataType=Ue.coerceAndCheckDataType=Ue.getJSONTypes=Ue.getSchemaTypes=Ue.DataType=void 0;const e=$l(),t=_l(),r=fi(),n=we(),i=Ae();var o;(function(x){x[x.Correct=0]="Correct",x[x.Wrong=1]="Wrong"})(o||(Ue.DataType=o={}));function a(x){const v=c(x.type);if(v.includes("null")){if(x.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!v.length&&x.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');x.nullable===!0&&v.push("null")}return v}Ue.getSchemaTypes=a;function c(x){const v=Array.isArray(x)?x:x?[x]:[];if(v.every(e.isJSONType))return v;throw new Error("type must be JSONType or JSONType[]: "+v.join(","))}Ue.getJSONTypes=c;function p(x,v){const{gen:$,data:g,opts:T}=x,j=f(v,T.coerceTypes),B=v.length>0&&!(j.length===0&&v.length===1&&(0,t.schemaHasRulesForType)(x,v[0]));if(B){const V=O(v,g,T.strictNumbers,o.Wrong);$.if(V,()=>{j.length?m(x,v,j):P(x)})}return B}Ue.coerceAndCheckDataType=p;const u=new Set(["string","number","integer","boolean","null"]);function f(x,v){return v?x.filter($=>u.has($)||v==="array"&&$==="array"):[]}function m(x,v,$){const{gen:g,data:T,opts:j}=x,B=g.let("dataType",(0,n._)`typeof ${T}`),V=g.let("coerced",(0,n._)`undefined`);j.coerceTypes==="array"&&g.if((0,n._)`${B} == 'object' && Array.isArray(${T}) && ${T}.length == 1`,()=>g.assign(T,(0,n._)`${T}[0]`).assign(B,(0,n._)`typeof ${T}`).if(O(v,T,j.strictNumbers),()=>g.assign(V,T))),g.if((0,n._)`${V} !== undefined`);for(const J of $)(u.has(J)||J==="array"&&j.coerceTypes==="array")&&G(J);g.else(),P(x),g.endIf(),g.if((0,n._)`${V} !== undefined`,()=>{g.assign(T,V),y(x,V)});function G(J){switch(J){case"string":g.elseIf((0,n._)`${B} == "number" || ${B} == "boolean"`).assign(V,(0,n._)`"" + ${T}`).elseIf((0,n._)`${T} === null`).assign(V,(0,n._)`""`);return;case"number":g.elseIf((0,n._)`${B} == "boolean" || ${T} === null
3
3
  || (${B} == "string" && ${T} && ${T} == +${T})`).assign(V,(0,n._)`+${T}`);return;case"integer":g.elseIf((0,n._)`${B} === "boolean" || ${T} === null
4
4
  || (${B} === "string" && ${T} && ${T} == +${T} && !(${T} % 1))`).assign(V,(0,n._)`+${T}`);return;case"boolean":g.elseIf((0,n._)`${T} === "false" || ${T} === 0 || ${T} === null`).assign(V,!1).elseIf((0,n._)`${T} === "true" || ${T} === 1`).assign(V,!0);return;case"null":g.elseIf((0,n._)`${T} === "" || ${T} === 0 || ${T} === false`),g.assign(V,null);return;case"array":g.elseIf((0,n._)`${B} === "string" || ${B} === "number"
5
- || ${B} === "boolean" || ${T} === null`).assign(V,(0,n._)`[${T}]`)}}}function y({gen:x,parentData:v,parentDataProperty:$},g){x.if((0,n._)`${v} !== undefined`,()=>x.assign((0,n._)`${v}[${$}]`,g))}function h(x,v,$,g=o.Correct){const T=g===o.Correct?n.operators.EQ:n.operators.NEQ;let j;switch(x){case"null":return(0,n._)`${v} ${T} null`;case"array":j=(0,n._)`Array.isArray(${v})`;break;case"object":j=(0,n._)`${v} && typeof ${v} == "object" && !Array.isArray(${v})`;break;case"integer":j=B((0,n._)`!(${v} % 1) && !isNaN(${v})`);break;case"number":j=B();break;default:return(0,n._)`typeof ${v} ${T} ${x}`}return g===o.Correct?j:(0,n.not)(j);function B(V=n.nil){return(0,n.and)((0,n._)`typeof ${v} == "number"`,V,$?(0,n._)`isFinite(${v})`:n.nil)}}Ue.checkDataType=h;function O(x,v,$,g){if(x.length===1)return h(x[0],v,$,g);let T;const j=(0,i.toHash)(x);if(j.array&&j.object){const B=(0,n._)`typeof ${v} != "object"`;T=j.null?B:(0,n._)`!${v} || ${B}`,delete j.null,delete j.array,delete j.object}else T=n.nil;j.number&&delete j.integer;for(const B in j)T=(0,n.and)(T,h(B,v,$,g));return T}Ue.checkDataTypes=O;const w={message:({schema:x})=>`must be ${x}`,params:({schema:x,schemaValue:v})=>typeof x=="string"?(0,n._)`{type: ${x}}`:(0,n._)`{type: ${v}}`};function S(x){const v=E(x);(0,r.reportError)(v,w)}Ue.reportTypeError=S;function E(x){const{gen:v,data:$,schema:g}=x,T=(0,i.schemaRefOrVal)(x,g,"type");return{gen:v,keyword:"type",data:$,schema:g.type,schemaCode:T,schemaValue:T,parentSchema:g,params:{},it:x}}return Ue}var Yt={},Bs;function _0(){if(Bs)return Yt;Bs=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.assignDefaults=void 0;const e=we(),t=Re();function r(i,o){const{properties:a,items:c}=i.schema;if(o==="object"&&a)for(const p in a)n(i,p,a[p].default);else o==="array"&&Array.isArray(c)&&c.forEach((p,u)=>n(i,u,p.default))}Yt.assignDefaults=r;function n(i,o,a){const{gen:c,compositeRule:p,data:u,opts:f}=i;if(a===void 0)return;const m=(0,e._)`${u}${(0,e.getProperty)(o)}`;if(p){(0,t.checkStrictMode)(i,`default is ignored for: ${m}`);return}let y=(0,e._)`${m} === undefined`;f.useDefaults==="empty"&&(y=(0,e._)`${y} || ${m} === null || ${m} === ""`),c.if(y,(0,e._)`${m} = ${(0,e.stringify)(a)}`)}return Yt}var Ze={},Ce={},Jt={},Vs;function Tl(){if(Vs)return Jt;Vs=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.getSkipCondition=void 0;const e=we(),t=We();function r(n,i){var o;const a=(o=n.properties)===null||o===void 0?void 0:o[i];if(!a)return;const c=a.readOnly===!0,p=a.writeOnly===!0;if(!c&&!p)return;const u=[],f=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return c&&u.push((0,e._)`${f} === "request"`),p&&u.push((0,e._)`${f} === "response"`),(0,e.or)(...u)}return Jt.getSkipCondition=r,Jt}var Hs;function nt(){if(Hs)return Ce;Hs=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.validateUnion=Ce.validateArray=Ce.usePattern=Ce.callValidateCode=Ce.schemaProperties=Ce.allSchemaProperties=Ce.noPropertyInData=Ce.propertyInData=Ce.isOwnProperty=Ce.hasPropFunc=Ce.reportMissingProp=Ce.checkMissingProp=Ce.checkReportMissingProp=void 0;const e=we(),t=Re(),r=We(),n=Re(),i=Tl();function o(v,$){const{gen:g,data:T,it:j}=v;g.if(m(g,T,$,j.opts.ownProperties),()=>{v.setParams({missingProperty:(0,e._)`${$}`},!0),v.error()})}Ce.checkReportMissingProp=o;function a({gen:v,data:$,it:{opts:g},parentSchema:T},j,B){return(0,e.or)(...j.map(V=>{var G;return(0,e.and)((0,e.not)((G=(0,i.getSkipCondition)(T,V))!==null&&G!==void 0?G:(0,e._)`false`),m(v,$,V,g.ownProperties),(0,e._)`${B} = ${V}`)}))}Ce.checkMissingProp=a;function c(v,$){v.setParams({missingProperty:$},!0),v.error()}Ce.reportMissingProp=c;function p(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ce.hasPropFunc=p;function u(v,$,g){return(0,e._)`${p(v)}.call(${$}, ${g})`}Ce.isOwnProperty=u;function f(v,$,g,T){const j=(0,e._)`${$}${(0,e.getProperty)(g)} !== undefined`;return T?(0,e._)`${j} && ${u(v,$,g)}`:j}Ce.propertyInData=f;function m(v,$,g,T){const j=(0,e._)`${$}${(0,e.getProperty)(g)} === undefined`;return T?(0,e.or)(j,(0,e.not)(u(v,$,g))):j}Ce.noPropertyInData=m;function y(v){return v?Object.keys(v).filter($=>$!=="__proto__"):[]}Ce.allSchemaProperties=y;function h(v,$){return y($).filter(g=>!(0,t.alwaysValidSchema)(v,$[g]))}Ce.schemaProperties=h;function O({schemaCode:v,data:$,it:{gen:g,topSchemaRef:T,schemaPath:j,errorPath:B},it:V},G,J,oe){const Q=oe?(0,e._)`${v}, ${$}, ${T}${j}`:$,X=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,B)],[r.default.parentData,V.parentData],[r.default.parentDataProperty,V.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,V.isAllOfVariant?1:0]];V.opts.dynamicRef&&X.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const me=(0,e._)`${Q}, ${g.object(...X)}`;return J!==e.nil?(0,e._)`${G}.call(${J}, ${me})`:(0,e._)`${G}(${me})`}Ce.callValidateCode=O;const w=(0,e._)`new RegExp`;function S({gen:v,it:{opts:$}},g){const T=$.unicodeRegExp?"u":"",{regExp:j}=$.code,B=j(g,T);return v.scopeValue("pattern",{key:B.toString(),ref:B,code:(0,e._)`${j.code==="new RegExp"?w:(0,n.useFunc)(v,j)}(${g}, ${T})`})}Ce.usePattern=S;function E(v){const{gen:$,data:g,keyword:T,it:j}=v,B=$.name("valid");if(j.allErrors){const G=$.let("valid",!0);return V(()=>$.assign(G,!1)),G}return $.var(B,!0),V(()=>$.break()),B;function V(G){const J=$.const("len",(0,e._)`${g}.length`);$.forRange("i",0,J,oe=>{v.subschema({keyword:T,dataProp:oe,dataPropType:t.Type.Num},B),$.if((0,e.not)(B),G)})}}Ce.validateArray=E;function x(v){const{gen:$,schema:g,keyword:T,parentSchema:j,it:B}=v;if(!Array.isArray(g))throw new Error("ajv implementation error");if(B.opts.discriminator&&j.discriminator||g.some(oe=>(0,t.alwaysValidSchema)(B,oe))&&!B.opts.unevaluated)return;const G=$.let("valid",!1),J=$.name("_valid");$.block(()=>g.forEach((oe,Q)=>{const X=v.subschema({keyword:T,schemaProp:Q,compositeRule:!0},J);$.assign(G,(0,e._)`${G} || ${J}`),v.mergeValidEvaluated(X,J)||$.if((0,e.not)(G))})),v.result(G,()=>v.reset(),()=>v.error(!0))}return Ce.validateUnion=x,Ce}var Ks;function T0(){if(Ks)return Ze;Ks=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.validateKeywordUsage=Ze.validSchemaType=Ze.funcKeywordCode=Ze.macroKeywordCode=void 0;const e=we(),t=We(),r=nt(),n=fi();function i(y,h){const{gen:O,keyword:w,schema:S,parentSchema:E,it:x}=y,v=h.macro.call(x.self,S,E,x),$=u(O,w,v);x.opts.validateSchema!==!1&&x.self.validateSchema(v,!0);const g=O.name("valid");y.subschema({schema:v,schemaPath:e.nil,errSchemaPath:`${x.errSchemaPath}/${w}`,topSchemaRef:$,compositeRule:!0},g),y.pass(g,()=>y.error(!0))}Ze.macroKeywordCode=i;function o(y,h){var O;const{gen:w,keyword:S,schema:E,parentSchema:x,$data:v,it:$}=y;p($,h);const g=!v&&h.compile?h.compile.call($.self,E,x,$):h.validate,T=u(w,S,g),j=w.let("valid");y.block$data(j,B),y.ok((O=h.valid)!==null&&O!==void 0?O:j);function B(){if(h.errors===!1)J(),h.modifying&&a(y),oe(()=>y.error());else{const Q=h.async?V():G();h.modifying&&a(y),oe(()=>c(y,Q))}}function V(){const Q=w.let("ruleErrs",null);return w.try(()=>J((0,e._)`await `),X=>w.assign(j,!1).if((0,e._)`${X} instanceof ${$.ValidationError}`,()=>w.assign(Q,(0,e._)`${X}.errors`),()=>w.throw(X))),Q}function G(){const Q=(0,e._)`${T}.errors`;return w.assign(Q,null),J(e.nil),Q}function J(Q=h.async?(0,e._)`await `:e.nil){const X=$.opts.passContext?t.default.this:t.default.self,me=!("compile"in h&&!v||h.schema===!1);w.assign(j,(0,e._)`${Q}${(0,r.callValidateCode)(y,T,X,me)}`,h.modifying)}function oe(Q){var X;w.if((0,e.not)((X=h.valid)!==null&&X!==void 0?X:j),Q)}}Ze.funcKeywordCode=o;function a(y){const{gen:h,data:O,it:w}=y;h.if(w.parentData,()=>h.assign(O,(0,e._)`${w.parentData}[${w.parentDataProperty}]`))}function c(y,h){const{gen:O}=y;O.if((0,e._)`Array.isArray(${h})`,()=>{O.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${h} : ${t.default.vErrors}.concat(${h})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(y)},()=>y.error())}function p({schemaEnv:y},h){if(h.async&&!y.$async)throw new Error("async keyword in sync schema")}function u(y,h,O){if(O===void 0)throw new Error(`keyword "${h}" failed to compile`);return y.scopeValue("keyword",typeof O=="function"?{ref:O}:{ref:O,code:(0,e.stringify)(O)})}function f(y,h,O=!1){return!h.length||h.some(w=>w==="array"?Array.isArray(y):w==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==w||O&&typeof y>"u")}Ze.validSchemaType=f;function m({schema:y,opts:h,self:O,errSchemaPath:w},S,E){if(Array.isArray(S.keyword)?!S.keyword.includes(E):S.keyword!==E)throw new Error("ajv implementation error");const x=S.dependencies;if(x?.some(v=>!Object.prototype.hasOwnProperty.call(y,v)))throw new Error(`parent schema must have dependencies of ${E}: ${x.join(",")}`);if(S.validateSchema&&!S.validateSchema(y[E])){const $=`keyword "${E}" value is invalid at path "${w}": `+O.errorsText(S.validateSchema.errors);if(h.validateSchema==="log")O.logger.error($);else throw new Error($)}}return Ze.validateKeywordUsage=m,Ze}var ut={},Ws;function k0(){if(Ws)return ut;Ws=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.extendSubschemaMode=ut.extendSubschemaData=ut.getSubschema=void 0;const e=we(),t=Re();function r(o,{keyword:a,schemaProp:c,schema:p,schemaPath:u,errSchemaPath:f,topSchemaRef:m}){if(a!==void 0&&p!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(a!==void 0){const y=o.schema[a];return c===void 0?{schema:y,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${a}`}:{schema:y[c],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(a)}${(0,e.getProperty)(c)}`,errSchemaPath:`${o.errSchemaPath}/${a}/${(0,t.escapeFragment)(c)}`}}if(p!==void 0){if(u===void 0||f===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:p,schemaPath:u,topSchemaRef:m,errSchemaPath:f}}throw new Error('either "keyword" or "schema" must be passed')}ut.getSubschema=r;function n(o,a,{dataProp:c,dataPropType:p,data:u,dataTypes:f,propertyName:m}){if(u!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=a;if(c!==void 0){const{errorPath:O,dataPathArr:w,opts:S}=a,E=y.let("data",(0,e._)`${a.data}${(0,e.getProperty)(c)}`,!0);h(E),o.errorPath=(0,e.str)`${O}${(0,t.getErrorPath)(c,p,S.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${c}`,o.dataPathArr=[...w,o.parentDataProperty]}if(u!==void 0){const O=u instanceof e.Name?u:y.let("data",u,!0);h(O),m!==void 0&&(o.propertyName=m)}f&&(o.dataTypes=f);function h(O){o.data=O,o.dataLevel=a.dataLevel+1,o.dataTypes=[],a.definedProperties=new Set,o.parentData=a.data,o.dataNames=[...a.dataNames,O]}}ut.extendSubschemaData=n;function i(o,{jtdDiscriminator:a,jtdMetadata:c,compositeRule:p,createErrors:u,allErrors:f}){p!==void 0&&(o.compositeRule=p),u!==void 0&&(o.createErrors=u),f!==void 0&&(o.allErrors=f),o.jtdDiscriminator=a,o.jtdMetadata=c}return ut.extendSubschemaMode=i,ut}var He={},Mi={exports:{}},Qs;function I0(){if(Qs)return Mi.exports;Qs=1;var e=Mi.exports=function(n,i,o){typeof i=="function"&&(o=i,i={}),o=i.cb||o;var a=typeof o=="function"?o:o.pre||function(){},c=o.post||function(){};t(i,a,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,a,c,p,u,f,m,y){if(a&&typeof a=="object"&&!Array.isArray(a)){i(a,c,p,u,f,m,y);for(var h in a){var O=a[h];if(Array.isArray(O)){if(h in e.arrayKeywords)for(var w=0;w<O.length;w++)t(n,i,o,O[w],c+"/"+h+"/"+w,p,c,h,a,w)}else if(h in e.propsKeywords){if(O&&typeof O=="object")for(var S in O)t(n,i,o,O[S],c+"/"+h+"/"+r(S),p,c,h,a,S)}else(h in e.keywords||n.allKeys&&!(h in e.skipKeywords))&&t(n,i,o,O,c+"/"+h,p,c,h,a)}o(a,c,p,u,f,m,y)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Mi.exports}var Gs;function mi(){if(Gs)return He;Gs=1,Object.defineProperty(He,"__esModule",{value:!0}),He.getSchemaRefs=He.resolveUrl=He.normalizeId=He._getFullPath=He.getFullPath=He.inlineRef=void 0;const e=Re(),t=K.requireFastDeepEqual(),r=I0(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(w,S=!0){return typeof w=="boolean"?!0:S===!0?!a(w):S?c(w)<=S:!1}He.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function a(w){for(const S in w){if(o.has(S))return!0;const E=w[S];if(Array.isArray(E)&&E.some(a)||typeof E=="object"&&a(E))return!0}return!1}function c(w){let S=0;for(const E in w){if(E==="$ref")return 1/0;if(S++,!n.has(E)&&(typeof w[E]=="object"&&(0,e.eachItem)(w[E],x=>S+=c(x)),S===1/0))return 1/0}return S}function p(w,S="",E){E!==!1&&(S=m(S));const x=w.parse(S);return u(w,x)}He.getFullPath=p;function u(w,S){return w.serialize(S).split("#")[0]+"#"}He._getFullPath=u;const f=/#\/?$/;function m(w){return w?w.replace(f,""):""}He.normalizeId=m;function y(w,S,E){return E=m(E),w.resolve(S,E)}He.resolveUrl=y;const h=/^[a-z_][-a-z0-9._]*$/i;function O(w,S){if(typeof w=="boolean")return{};const{schemaId:E,uriResolver:x}=this.opts,v=m(w[E]||S),$={"":v},g=p(x,v,!1),T={},j=new Set;return r(w,{allKeys:!0},(G,J,oe,Q)=>{if(Q===void 0)return;const X=g+J;let me=$[Q];typeof G[E]=="string"&&(me=xe.call(this,G[E])),Te.call(this,G.$anchor),Te.call(this,G.$dynamicAnchor),$[J]=me;function xe(fe){const Se=this.opts.uriResolver.resolve;if(fe=m(me?Se(me,fe):fe),j.has(fe))throw V(fe);j.add(fe);let A=this.refs[fe];return typeof A=="string"&&(A=this.refs[A]),typeof A=="object"?B(G,A.schema,fe):fe!==m(X)&&(fe[0]==="#"?(B(G,T[fe],fe),T[fe]=G):this.refs[fe]=X),fe}function Te(fe){if(typeof fe=="string"){if(!h.test(fe))throw new Error(`invalid anchor "${fe}"`);xe.call(this,`#${fe}`)}}}),T;function B(G,J,oe){if(J!==void 0&&!t(G,J))throw V(oe)}function V(G){return new Error(`reference "${G}" resolves to more than one schema`)}}return He.getSchemaRefs=O,He}var Ys;function zt(){if(Ys)return pt;Ys=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.getData=pt.KeywordCxt=pt.validateFunctionCode=void 0;const e=$0(),t=Zn(),r=_l(),n=Zn(),i=_0(),o=T0(),a=k0(),c=we(),p=We(),u=mi(),f=Re(),m=fi();function y(N){if(g(N)&&(j(N),$(N))){S(N);return}h(N,()=>(0,e.topBoolOrEmptySchema)(N))}pt.validateFunctionCode=y;function h({gen:N,validateName:z,schema:H,schemaEnv:Z,opts:ae},ye){ae.code.es5?N.func(z,(0,c._)`${p.default.data}, ${p.default.valCxt}`,Z.$async,()=>{N.code((0,c._)`"use strict"; ${x(H,ae)}`),w(N,ae),N.code(ye)}):N.func(z,(0,c._)`${p.default.data}, ${O(ae)}`,Z.$async,()=>N.code(x(H,ae)).code(ye))}function O(N){return(0,c._)`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${N.dynamicRef?(0,c._)`, ${p.default.dynamicAnchors}={}`:c.nil}, ${p.default.isAllOfVariant} = 0}={}`}function w(N,z){N.if(p.default.valCxt,()=>{N.var(p.default.instancePath,(0,c._)`${p.default.valCxt}.${p.default.instancePath}`),N.var(p.default.parentData,(0,c._)`${p.default.valCxt}.${p.default.parentData}`),N.var(p.default.parentDataProperty,(0,c._)`${p.default.valCxt}.${p.default.parentDataProperty}`),N.var(p.default.rootData,(0,c._)`${p.default.valCxt}.${p.default.rootData}`),N.var(p.default.isAllOfVariant,(0,c._)`${p.default.valCxt}.${p.default.isAllOfVariant}`),z.dynamicRef&&N.var(p.default.dynamicAnchors,(0,c._)`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{N.var(p.default.instancePath,(0,c._)`""`),N.var(p.default.parentData,(0,c._)`undefined`),N.var(p.default.parentDataProperty,(0,c._)`undefined`),N.var(p.default.rootData,p.default.data),N.var(p.default.isAllOfVariant,(0,c._)`0`),z.dynamicRef&&N.var(p.default.dynamicAnchors,(0,c._)`{}`)})}function S(N){const{schema:z,opts:H,gen:Z}=N;h(N,()=>{H.$comment&&z.$comment&&Q(N),G(N),Z.let(p.default.vErrors,null),Z.let(p.default.errors,0),H.unevaluated&&E(N),B(N),X(N)})}function E(N){const{gen:z,validateName:H}=N;N.evaluated=z.const("evaluated",(0,c._)`${H}.evaluated`),z.if((0,c._)`${N.evaluated}.dynamicProps`,()=>z.assign((0,c._)`${N.evaluated}.props`,(0,c._)`undefined`)),z.if((0,c._)`${N.evaluated}.dynamicItems`,()=>z.assign((0,c._)`${N.evaluated}.items`,(0,c._)`undefined`))}function x(N,z){const H=typeof N=="object"&&N[z.schemaId];return H&&(z.code.source||z.code.process)?(0,c._)`/*# sourceURL=${H} */`:c.nil}function v(N,z){if(g(N)&&(j(N),$(N))){T(N,z);return}(0,e.boolOrEmptySchema)(N,z)}function $({schema:N,self:z}){if(typeof N=="boolean")return!N;for(const H in N)if(z.RULES.all[H])return!0;return!1}function g(N){return typeof N.schema!="boolean"}function T(N,z){const{schema:H,gen:Z,opts:ae}=N;ae.$comment&&H.$comment&&Q(N),J(N),oe(N);const ye=Z.const("_errs",p.default.errors);B(N,ye),Z.var(z,(0,c._)`${ye} === ${p.default.errors}`)}function j(N){(0,f.checkUnknownRules)(N),V(N)}function B(N,z){if(N.opts.jtd)return xe(N,[],!1,z);const H=(0,t.getSchemaTypes)(N.schema),Z=(0,t.coerceAndCheckDataType)(N,H);xe(N,H,!Z,z)}function V(N){const{schema:z,errSchemaPath:H,opts:Z,self:ae}=N;z.$ref&&Z.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(z,ae.RULES)&&ae.logger.warn(`$ref: keywords ignored in schema at path "${H}"`)}function G(N){const{schema:z,opts:H}=N;z.default!==void 0&&H.useDefaults&&H.strictSchema&&(0,f.checkStrictMode)(N,"default is ignored in the schema root")}function J(N){const z=N.schema[N.opts.schemaId];z&&(N.baseId=(0,u.resolveUrl)(N.opts.uriResolver,N.baseId,z))}function oe(N){if(N.schema.$async&&!N.schemaEnv.$async)throw new Error("async schema in sync schema")}function Q({gen:N,schemaEnv:z,schema:H,errSchemaPath:Z,opts:ae}){const ye=H.$comment;if(ae.$comment===!0)N.code((0,c._)`${p.default.self}.logger.log(${ye})`);else if(typeof ae.$comment=="function"){const D=(0,c.str)`${Z}/$comment`,W=N.scopeValue("root",{ref:z.root});N.code((0,c._)`${p.default.self}.opts.$comment(${ye}, ${D}, ${W}.schema)`)}}function X(N){const{gen:z,schemaEnv:H,validateName:Z,ValidationError:ae,opts:ye}=N;H.$async?z.if((0,c._)`${p.default.errors} === 0`,()=>z.return(p.default.data),()=>z.throw((0,c._)`new ${ae}(${p.default.vErrors})`)):(z.assign((0,c._)`${Z}.errors`,p.default.vErrors),ye.unevaluated&&me(N),z.return((0,c._)`${p.default.errors} === 0`))}function me({gen:N,evaluated:z,props:H,items:Z}){H instanceof c.Name&&N.assign((0,c._)`${z}.props`,H),Z instanceof c.Name&&N.assign((0,c._)`${z}.items`,Z)}function xe(N,z,H,Z){const{gen:ae,schema:ye,data:D,allErrors:W,opts:ne,self:te}=N,{RULES:re}=te;if(ye.$ref&&(ne.ignoreKeywordsWithRef||!(0,f.schemaHasRulesButRef)(ye,re))){ae.block(()=>U(N,"$ref",re.all.$ref.definition));return}ne.jtd||fe(N,z),ae.block(()=>{for(const pe of re.rules)ce(pe);ce(re.post)});function ce(pe){(0,r.shouldUseGroup)(ye,pe)&&(pe.type?(ae.if((0,n.checkDataType)(pe.type,D,ne.strictNumbers)),Te(N,pe),z.length===1&&z[0]===pe.type&&H&&(ae.else(),(0,n.reportTypeError)(N)),ae.endIf()):Te(N,pe),W||ae.if((0,c._)`${p.default.errors} === ${Z||0}`))}}function Te(N,z){const{gen:H,schema:Z,opts:{useDefaults:ae}}=N;ae&&(0,i.assignDefaults)(N,z.type),H.block(()=>{for(const D of z.rules)((0,r.shouldUseRule)(Z,D)||ye(Z,D))&&U(N,D.keyword,D.definition,z.type)});function ye(D,W){return!!(W.keyword==="unevaluatedProperties"&&(D.properties||D.patternProperties)&&!N.isAllOfVariant&&N.opts.defaultUnevaluatedProperties===!1)}}function fe(N,z){N.schemaEnv.meta||!N.opts.strictTypes||(Se(N,z),N.opts.allowUnionTypes||A(N,z),P(N,N.dataTypes))}function Se(N,z){if(z.length){if(!N.dataTypes.length){N.dataTypes=z;return}z.forEach(H=>{_(N.dataTypes,H)||q(N,`type "${H}" not allowed by context "${N.dataTypes.join(",")}"`)}),b(N,z)}}function A(N,z){z.length>1&&!(z.length===2&&z.includes("null"))&&q(N,"use allowUnionTypes to allow union type keyword")}function P(N,z){const H=N.self.RULES.all;for(const Z in H){const ae=H[Z];if(typeof ae=="object"&&(0,r.shouldUseRule)(N.schema,ae)){const{type:ye}=ae.definition;ye.length&&!ye.some(D=>k(z,D))&&q(N,`missing type "${ye.join(",")}" for keyword "${Z}"`)}}}function k(N,z){return N.includes(z)||z==="number"&&N.includes("integer")}function _(N,z){return N.includes(z)||z==="integer"&&N.includes("number")}function b(N,z){const H=[];for(const Z of N.dataTypes)_(z,Z)?H.push(Z):z.includes("integer")&&Z==="number"&&H.push("integer");N.dataTypes=H}function q(N,z){const H=N.schemaEnv.baseId+N.errSchemaPath;z+=` at "${H}" (strictTypes)`,(0,f.checkStrictMode)(N,z,N.opts.strictTypes)}class F{constructor(z,H,Z){if((0,o.validateKeywordUsage)(z,H,Z),this.gen=z.gen,this.allErrors=z.allErrors,this.keyword=Z,this.data=z.data,this.schema=z.schema[Z],this.$data=H.$data&&z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(z,this.schema,Z,this.$data),this.schemaType=H.schemaType,this.parentSchema=z.schema,this.params={},this.it=z,this.def=H,this.$data)this.schemaCode=z.gen.const("vSchema",he(this.$data,z));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,H.schemaType,H.allowUndefined))throw new Error(`${Z} value must be ${JSON.stringify(H.schemaType)}`);("code"in H?H.trackErrors:H.errors!==!1)&&(this.errsCount=z.gen.const("_errs",p.default.errors))}result(z,H,Z){this.failResult((0,c.not)(z),H,Z)}failResult(z,H,Z){this.gen.if(z),Z?Z():this.error(),H?(this.gen.else(),H(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(z,H){this.failResult((0,c.not)(z),void 0,H)}fail(z){if(z===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(z),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(z){if(!this.$data)return this.fail(z);const{schemaCode:H}=this;this.fail((0,c._)`${H} !== undefined && (${(0,c.or)(this.invalid$data(),z)})`)}error(z,H,Z){if(H){this.setParams(H),this._error(z,Z),this.setParams({});return}this._error(z,Z)}_error(z,H){(z?m.reportExtraError:m.reportError)(this,this.def.error,H)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(z){this.allErrors||this.gen.if(z)}setParams(z,H){H?Object.assign(this.params,z):this.params=z}block$data(z,H,Z=c.nil){this.gen.block(()=>{this.check$data(z,Z),H()})}check$data(z=c.nil,H=c.nil){if(!this.$data)return;const{gen:Z,schemaCode:ae,schemaType:ye,def:D}=this;Z.if((0,c.or)((0,c._)`${ae} === undefined`,H)),z!==c.nil&&Z.assign(z,!0),(ye.length||D.validateSchema)&&(Z.elseIf(this.invalid$data()),this.$dataError(),z!==c.nil&&Z.assign(z,!1)),Z.else()}invalid$data(){const{gen:z,schemaCode:H,schemaType:Z,def:ae,it:ye}=this;return(0,c.or)(D(),W());function D(){if(Z.length){if(!(H instanceof c.Name))throw new Error("ajv implementation error");const ne=Array.isArray(Z)?Z:[Z];return(0,c._)`${(0,n.checkDataTypes)(ne,H,ye.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function W(){if(ae.validateSchema){const ne=z.scopeValue("validate$data",{ref:ae.validateSchema});return(0,c._)`!${ne}(${H})`}return c.nil}}subschema(z,H,Z){const ae=(0,a.getSubschema)(this.it,z);(0,a.extendSubschemaData)(ae,this.it,z),(0,a.extendSubschemaMode)(ae,z);const ye={...this.it,...ae,items:void 0,props:void 0,isAllOfVariant:Z};return v(ye,H),ye}mergeEvaluated(z,H){const{it:Z,gen:ae}=this;Z.opts.unevaluated&&(Z.props!==!0&&z.props!==void 0&&(Z.props=f.mergeEvaluated.props(ae,z.props,Z.props,H)),Z.items!==!0&&z.items!==void 0&&(Z.items=f.mergeEvaluated.items(ae,z.items,Z.items,H)))}mergeValidEvaluated(z,H){const{it:Z,gen:ae}=this;if(Z.opts.unevaluated&&(Z.props!==!0||Z.items!==!0))return ae.if(H,()=>this.mergeEvaluated(z,c.Name)),!0}}pt.KeywordCxt=F;function U(N,z,H,Z){const ae=new F(N,H,z);"code"in H?H.code(ae,Z):ae.$data&&H.validate?(0,o.funcKeywordCode)(ae,H):"macro"in H?(0,o.macroKeywordCode)(ae,H):(H.compile||H.validate)&&(0,o.funcKeywordCode)(ae,H)}const Y=/^\/(?:[^~]|~0|~1)*$/,le=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function he(N,{dataLevel:z,dataNames:H,dataPathArr:Z}){let ae,ye;if(N==="")return p.default.rootData;if(N[0]==="/"){if(!Y.test(N))throw new Error(`Invalid JSON-pointer: ${N}`);ae=N,ye=p.default.rootData}else{const te=le.exec(N);if(!te)throw new Error(`Invalid JSON-pointer: ${N}`);const re=+te[1];if(ae=te[2],ae==="#"){if(re>=z)throw new Error(ne("property/index",re));return Z[z-re]}if(re>z)throw new Error(ne("data",re));if(ye=H[z-re],!ae)return ye}let D=ye;const W=ae.split("/");for(const te of W)te&&(ye=(0,c._)`${ye}${(0,c.getProperty)((0,f.unescapeJsonPointer)(te))}`,D=(0,c._)`${D} && ${ye}`);return D;function ne(te,re){return`Cannot access ${te} ${re} levels up, current level is ${z}`}}return pt.getData=he,pt}var qr={},Js;function yr(){if(Js)return qr;Js=1,Object.defineProperty(qr,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return qr.default=e,qr}var Cr={},Xs;function Bt(){if(Xs)return Cr;Xs=1,Object.defineProperty(Cr,"__esModule",{value:!0});const e=mi();class t extends Error{constructor(n,i,o,a){super(a||`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 Cr.default=t,Cr}var Qe={},Zs;function hi(){if(Zs)return Qe;Zs=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.resolveSchema=Qe.getCompilingSchema=Qe.resolveRef=Qe.compileSchema=Qe.SchemaEnv=void 0;const e=we(),t=yr(),r=We(),n=mi(),i=Re(),o=zt();class a{constructor(E){var x;this.refs={},this.dynamicAnchors={};let v;typeof E.schema=="object"&&(v=E.schema),this.schema=E.schema,this.schemaId=E.schemaId,this.root=E.root||this,this.baseId=(x=E.baseId)!==null&&x!==void 0?x:(0,n.normalizeId)(v?.[E.schemaId||"$id"]),this.schemaPath=E.schemaPath,this.localRefs=E.localRefs,this.meta=E.meta,this.$async=v?.$async,this.refs={}}}Qe.SchemaEnv=a;function c(S){const E=f.call(this,S);if(E)return E;const x=(0,n.getFullPath)(this.opts.uriResolver,S.root.baseId),{es5:v,lines:$}=this.opts.code,{ownProperties:g}=this.opts,T=new e.CodeGen(this.scope,{es5:v,lines:$,ownProperties:g});let j;S.$async&&(j=T.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const B=T.scopeName("validate");S.validateName=B;const V={gen:T,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:T.scopeValue("schema",this.opts.code.source===!0?{ref:S.schema,code:(0,e.stringify)(S.schema)}:{ref:S.schema}),validateName:B,ValidationError:j,schema:S.schema,schemaEnv:S,rootId:x,baseId:S.baseId||x,schemaPath:e.nil,errSchemaPath:S.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let G;try{this._compilations.add(S),(0,o.validateFunctionCode)(V),T.optimize(this.opts.code.optimize);const J=T.toString();G=`const visitedNodesForRef = new WeakMap(); ${T.scopeRefs(r.default.scope)}return ${J}`,this.opts.code.process&&(G=this.opts.code.process(G,S));const Q=new Function(`${r.default.self}`,`${r.default.scope}`,G)(this,this.scope.get());if(this.scope.value(B,{ref:Q}),Q.errors=null,Q.schema=S.schema,Q.schemaEnv=S,S.$async&&(Q.$async=!0),this.opts.code.source===!0&&(Q.source={validateName:B,validateCode:J,scopeValues:T._values}),this.opts.unevaluated){const{props:X,items:me}=V;Q.evaluated={props:X instanceof e.Name?void 0:X,items:me instanceof e.Name?void 0:me,dynamicProps:X instanceof e.Name,dynamicItems:me instanceof e.Name},Q.source&&(Q.source.evaluated=(0,e.stringify)(Q.evaluated))}return S.validate=Q,S}catch(J){throw delete S.validate,delete S.validateName,G&&this.logger.error("Error compiling schema, function code:",G),J}finally{this._compilations.delete(S)}}Qe.compileSchema=c;function p(S,E,x){var v;const $=(0,n.resolveUrl)(this.opts.uriResolver,E,x),g=S.refs[$];if(g)return g;let T=y.call(this,S,$);if(T===void 0){const j=(v=S.localRefs)===null||v===void 0?void 0:v[$],{schemaId:B}=this.opts;j&&(T=new a({schema:j,schemaId:B,root:S,baseId:E}))}if(T===void 0&&this.opts.loadSchemaSync){const j=this.opts.loadSchemaSync(E,x,$);j&&!(this.refs[$]||this.schemas[$])&&(this.addSchema(j,$,void 0),T=y.call(this,S,$))}if(T!==void 0)return S.refs[$]=u.call(this,T)}Qe.resolveRef=p;function u(S){return(0,n.inlineRef)(S.schema,this.opts.inlineRefs)?S.schema:S.validate?S:c.call(this,S)}function f(S){for(const E of this._compilations)if(m(E,S))return E}Qe.getCompilingSchema=f;function m(S,E){return S.schema===E.schema&&S.root===E.root&&S.baseId===E.baseId}function y(S,E){let x;for(;typeof(x=this.refs[E])=="string";)E=x;return x||this.schemas[E]||h.call(this,S,E)}function h(S,E){const x=this.opts.uriResolver.parse(E),v=(0,n._getFullPath)(this.opts.uriResolver,x);let $=(0,n.getFullPath)(this.opts.uriResolver,S.baseId,void 0);if(Object.keys(S.schema).length>0&&v===$)return w.call(this,x,S);const g=(0,n.normalizeId)(v),T=this.refs[g]||this.schemas[g];if(typeof T=="string"){const j=h.call(this,S,T);return typeof j?.schema!="object"?void 0:w.call(this,x,j)}if(typeof T?.schema=="object"){if(T.validate||c.call(this,T),g===(0,n.normalizeId)(E)){const{schema:j}=T,{schemaId:B}=this.opts,V=j[B];return V&&($=(0,n.resolveUrl)(this.opts.uriResolver,$,V)),new a({schema:j,schemaId:B,root:S,baseId:$})}return w.call(this,x,T)}}Qe.resolveSchema=h;const O=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function w(S,{baseId:E,schema:x,root:v}){var $;if((($=S.fragment)===null||$===void 0?void 0:$[0])!=="/")return;for(const j of S.fragment.slice(1).split("/")){if(typeof x=="boolean")return;const B=x[(0,i.unescapeFragment)(j)];if(B===void 0)return;x=B;const V=typeof x=="object"&&x[this.opts.schemaId];!O.has(j)&&V&&(E=(0,n.resolveUrl)(this.opts.uriResolver,E,V))}let g;if(typeof x!="boolean"&&x.$ref&&!(0,i.schemaHasRulesButRef)(x,this.RULES)){const j=(0,n.resolveUrl)(this.opts.uriResolver,E,x.$ref);g=h.call(this,v,j)}const{schemaId:T}=this.opts;if(g=g||new a({schema:x,schemaId:T,root:v,baseId:E}),g.schema!==g.root.schema)return g}return Qe}const q0="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",C0="Meta-schema for $data reference (JSON AnySchema extension proposal)",j0="object",M0=["$data"],D0={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},N0=!1,L0={$id:q0,description:C0,type:j0,required:M0,properties:D0,additionalProperties:N0};var jr={},Xt={exports:{}},Di,ea;function kl(){if(ea)return Di;ea=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),a=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),c=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),p=new Array(256);{const A="0123456789ABCDEF";for(let P=0;P<256;P++)p[P]="%"+A[P>>4]+A[P&15]}function u(A){return A<2048?p[192|A>>6]+p[128|A&63]:A<65536?p[224|A>>12]+p[128|A>>6&63]+p[128|A&63]:p[240|A>>18]+p[128|A>>12&63]+p[128|A>>6&63]+p[128|A&63]}function f(A){let P="",k=0,_=0;for(_=0;_<A.length;_++)if(k=A[_].charCodeAt(0),k!==48){if(!(k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return"";P+=A[_];break}for(_+=1;_<A.length;_++){if(k=A[_].charCodeAt(0),!(k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return"";P+=A[_]}return P}const m=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),y=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),h=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),O=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function w(A){if(A.length===0)return!1;for(let P=0;P<A.length;P++)if(!h(A[P])){if(A[P]==="%"&&P+2<A.length&&n(A.slice(P+1,P+3))){P+=2;continue}return!1}return!0}function S(A){let P=-1,k=0,_=-1,b=0;for(let U=0;U<A.length;U++)A[U]==="0"?(_===-1&&(_=U),b++,b>k&&(k=b,P=_)):(_=-1,b=0);if(k<2)return A.join(":");const q=A.slice(0,P).join(":"),F=A.slice(P+k).join(":");return q+"::"+F}function E(A){const P=A.indexOf("::");if(P!==-1&&A.indexOf("::",P+1)!==-1)return;const k=P===-1?A.split(":"):A.slice(0,P).split(":"),_=P===-1?[]:A.slice(P+2).split(":");P!==-1&&(k.length===1&&k[0]===""&&(k.length=0),_.length===1&&_[0]===""&&(_.length=0));const b=k.concat(_);let q=0;for(let U=0;U<b.length;U++){const Y=b[U];if(Y==="")return;if(Y.indexOf(".")!==-1){if(U!==b.length-1||P!==-1&&_.length===0||!t(Y))return;q+=2;continue}if(!m(Y))return;b[U]=parseInt(Y,16).toString(16),q++}if(P===-1)return q!==8?void 0:S(b);if(q>=8)return;const F=b.slice(0,k.length);for(let U=q;U<8;U++)F.push("0");for(let U=k.length;U<b.length;U++)F.push(b[U]);return S(F)}function x(A){const P=A[0]==="["&&A[A.length-1]==="]";if((A[0]==="["||A[A.length-1]==="]")&&!P)return{host:A,isIPV6:!1,error:!0};let _=P?A.slice(1,-1):A;if(P&&y(_))return _=_.toLowerCase(),{host:`[${_}]`,escapedHost:_,isIPV6:!1,isIPVFuture:!0};if(v(_,":")<2)return{host:A,isIPV6:!1,error:P};let b="";const q=_.indexOf("%");if(q!==-1){const U=_.slice(q,q+3).toLowerCase()==="%25"?3:1;if(b=_.slice(q+U),!w(b))return{host:A,isIPV6:!1,error:!0};_=_.slice(0,q)}const F=E(_);return F===void 0?{host:A,isIPV6:!1,error:!0}:{host:F+(b?"%"+b:""),escapedHost:F+(b?"%25"+b:""),isIPV6:!0}}function v(A,P){let k=0;for(let _=0;_<A.length;_++)A[_]===P&&k++;return k}function $(A){let P=A;const k=[];let _=-1,b=0;for(;b=P.length;){if(b===1){if(P===".")break;if(P==="/"){k.push("/");break}else{k.push(P);break}}else if(b===2){if(P[0]==="."){if(P[1]===".")break;if(P[1]==="/"){P=P.slice(2);continue}}else if(P[0]==="/"&&(P[1]==="."||P[1]==="/")){k.push("/");break}}else if(b===3&&P==="/.."){k.length!==0&&k.pop(),k.push("/");break}if(P[0]==="."){if(P[1]==="."){if(P[2]==="/"){P=P.slice(3);continue}}else if(P[1]==="/"){P=P.slice(2);continue}}else if(P[0]==="/"&&P[1]==="."){if(P[2]==="/"){P=P.slice(2);continue}else if(P[2]==="."&&P[3]==="/"){P=P.slice(3),k.length!==0&&k.pop();continue}}if((_=P.indexOf("/",1))===-1){k.push(P);break}else k.push(P.slice(0,_)),P=P.slice(_)}return k.join("")}const g={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},T=/[@/?#:]/g,j=/[@/?#]/g;function B(A,P){const k=P?j:T;return k.lastIndex=0,A.replace(k,_=>g[_])}function V(A,P=!1){if(A.indexOf("%")===-1)return A;let k="";for(let _=0;_<A.length;_++){if(A[_]==="%"&&_+2<A.length){const b=A.slice(_+1,_+3);if(n(b)){const q=b.toUpperCase(),F=String.fromCharCode(parseInt(q,16));P&&i(F)?k+=F:k+="%"+q,_+=2;continue}}k+=A[_]}return k}function G(A){let P="";for(let k=0;k<A.length;k++){const _=A[k];if(_==="%"&&k+2<A.length){const b=A.slice(k+1,k+3);if(n(b)){const q=b.toUpperCase(),F=String.fromCharCode(parseInt(q,16));F!=="."&&i(F)?P+=F:P+="%"+q,k+=2;continue}}if(o(_))P+=_;else{const b=A.charCodeAt(k);if(b<128)P+=xe(b)?_:p[b];else if(b<55296||b>57343)P+=u(b);else if(b<=56319&&k+1<A.length){const q=A.charCodeAt(k+1);q>=56320&&q<=57343?(P+=u(65536+(b-55296<<10)+(q-56320)),k++):P+=u(65533)}else P+=u(65533)}}return P}function J(A,P=!1){let k="",_=P&&A[0]!=="/";for(let b=0;b<A.length;b++){const q=A[b];if(q==="%"&&b+2<A.length){const F=A.slice(b+1,b+3);if(n(F)){k+="%"+F.toUpperCase(),b+=2;continue}}if(q==="/"&&(_=!1),o(q)&&(q!==":"||!_))k+=q;else{const F=A.charCodeAt(b);if(F<128)k+=p[F];else if(F<55296||F>57343)k+=u(F);else if(F<=56319&&b+1<A.length){const U=A.charCodeAt(b+1);U>=56320&&U<=57343?(k+=u(65536+(F-55296<<10)+(U-56320)),b++):k+=u(65533)}else k+=u(65533)}}return k}function oe(A,P){let k="";for(let _=0;_<A.length;_++){const b=A[_];if(b==="%"&&_+2<A.length){const q=A.slice(_+1,_+3);if(n(q)){k+="%"+q.toUpperCase(),_+=2;continue}}if(P(b))k+=b;else{const q=A.charCodeAt(_);if(q<128)k+=p[q];else if(q<55296||q>57343)k+=u(q);else if(q<=56319&&_+1<A.length){const F=A.charCodeAt(_+1);F>=56320&&F<=57343?(k+=u(65536+(q-55296<<10)+(F-56320)),_++):k+=u(65533)}else k+=u(65533)}}return k}function Q(A){return oe(A,c)}function X(A){return oe(A,a)}function me(A){return oe(A,a)}function xe(A){return A>=48&&A<=57||A>=65&&A<=90||A>=97&&A<=122||A===42||A===43||A===45||A===46||A===47||A===64||A===95}function Te(A){let P="";for(let k=0;k<A.length;k++){const _=A[k];if(_==="%"&&k+2<A.length){const b=A.slice(k+1,k+3);if(n(b)){const q=b.toUpperCase(),F=String.fromCharCode(parseInt(q,16));i(F)?P+=F:P+="%"+q,k+=2;continue}}if(a(_))P+=_;else{const b=A.charCodeAt(k);if(b<128)P+=xe(b)?_:p[b];else if(b<55296||b>57343)P+=u(b);else if(b<=56319&&k+1<A.length){const q=A.charCodeAt(k+1);q>=56320&&q<=57343?(P+=u(65536+(b-55296<<10)+(q-56320)),k++):P+=u(65533)}else P+=u(65533)}}return P}function fe(A){let P="";for(let k=0;k<A.length;k++){if(A[k]==="%"&&k+2<A.length){const _=A.slice(k+1,k+3);if(n(_)){P+="%"+_.toUpperCase(),k+=2;continue}}P+=escape(A[k])}return P}function Se(A){const P=[];if(A.userinfo!==void 0&&(P.push(Q(A.userinfo)),P.push("@")),A.host!==void 0){let k=A.host;if(!t(k)){let _=x(k);_.isIPV6!==!0&&_.isIPVFuture!==!0&&(k=V(k,!0),_=x(k)),_.isIPV6===!0||_.isIPVFuture===!0?k=`[${_.escapedHost}]`:k=B(k,!1)}P.push(k)}if(typeof A.port=="number"||typeof A.port=="string"){const k=String(A.port);if(!r(k))throw new TypeError("URI port is malformed.");P.push(":"),P.push(k)}return P.length?P.join(""):void 0}return Di={nonSimpleDomain:O,recomposeAuthority:Se,reescapeHostDelimiters:B,normalizePercentEncoding:V,normalizePathEncoding:G,serializePathEncoding:J,normalizeQueryFragmentEncoding:Te,encodeUserinfo:Q,encodeQuery:X,encodeFragment:me,escapePreservingEscapes:fe,removeDotSegments:$,isIPv4:t,isUUID:e,normalizeIPv6:x,stringArrayToHexStripped:f},Di}var Ni,ta;function U0(){if(ta)return Ni;ta=1;const{isUUID:e}=kl(),t=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(g){return r.indexOf(g)!==-1}function i(g){return g.secure===!0?!0:g.secure===!1?!1:g.scheme?g.scheme.length===3&&(g.scheme[0]==="w"||g.scheme[0]==="W")&&(g.scheme[1]==="s"||g.scheme[1]==="S")&&(g.scheme[2]==="s"||g.scheme[2]==="S"):!1}function o(g){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g}function a(g){const T=String(g.scheme).toLowerCase()==="https";return(g.port===(T?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}function c(g){return g.secure=i(g),g.resourceName=(g.path||"/")+(g.query?"?"+g.query:""),g.path=void 0,g.query=void 0,g}function p(g){if((g.port===(i(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){const T=g.resourceName.indexOf("?"),j=T===-1?g.resourceName:g.resourceName.slice(0,T);g.path=j&&j!=="/"?j:void 0,g.query=T===-1?void 0:g.resourceName.slice(T+1),g.resourceName=void 0}return g.fragment=void 0,g}function u(g,T){if(!g.path)return g.error="URN can not be parsed",g;const j=g.path.match(t);if(j&&j[0]===g.path){const B=T.scheme||g.scheme||"urn";g.nid=j[1].toLowerCase(),g.nss=j[2];const V=`${B}:${T.nid||g.nid}`,G=$(V);g.path=void 0,G&&(g=G.parse(g,T))}else g.error=g.error||"URN can not be parsed.";return g}function f(g,T){if(g.nid===void 0)throw new Error("URN without nid cannot be serialized");const j=T.scheme||g.scheme||"urn",B=g.nid.toLowerCase(),V=`${j}:${T.nid||B}`,G=$(V);G&&(g=G.serialize(g,T));const J=g,oe=g.nss;return J.path=`${B||T.nid}:${oe}`,T.skipEscape=!0,J}function m(g,T){const j=g;return j.uuid=j.nss,j.nss=void 0,!T.tolerant&&(!j.uuid||!e(j.uuid))&&(j.error=j.error||"UUID is not valid."),j}function y(g){const T=g;return T.nss=(g.uuid||"").toLowerCase(),T}const h={scheme:"http",domainHost:!0,parse:o,serialize:a},O={scheme:"https",domainHost:h.domainHost,parse:o,serialize:a},w={scheme:"ws",domainHost:!0,parse:c,serialize:p},S={scheme:"wss",domainHost:w.domainHost,parse:w.parse,serialize:w.serialize},v={http:h,https:O,ws:w,wss:S,urn:{scheme:"urn",parse:u,serialize:f,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:m,serialize:y,skipNormalize:!0}};Object.setPrototypeOf(v,null);function $(g){return g&&(v[g]||v[g.toLowerCase()])||void 0}return Ni={wsIsSecure:i,SCHEMES:v,isValidSchemeName:n,getSchemeHandler:$},Ni}var ra;function F0(){if(ra)return Xt.exports;ra=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,serializePathEncoding:o,normalizeQueryFragmentEncoding:a,encodeQuery:c,encodeFragment:p,reescapeHostDelimiters:u,isIPv4:f,nonSimpleDomain:m}=kl(),{SCHEMES:y,getSchemeHandler:h}=U0(),O=/^[A-Za-z][A-Za-z0-9+.-]*$/u,w="URI scheme is malformed.";function S(A){const P=unescape(String(A));if(!O.test(P))throw new TypeError(w);return P}function E(A,P){return typeof A=="string"?A=xe(A,P):typeof A=="object"&&(A=me(g(A,P),P)),A}function x(A,P,k){const _=k?Object.assign({scheme:"null"},k):{scheme:"null"},{parsed:b,malformedAuthorityOrPort:q,malformedPercentEncoding:F,malformedSchemeSpecific:U,malformedHost:Y,malformedScheme:le}=X(A,_),{parsed:he,malformedAuthorityOrPort:N,malformedPercentEncoding:z,malformedSchemeSpecific:H,malformedHost:Z,malformedScheme:ae}=X(P,_);if(q||N||F||z||U||H||Y||Z||le||ae)throw new Error(b.error||he.error||"URI is malformed.");const ye=v(b,he,_,!0),D=h(k&&k.scheme||ye.scheme),W=ye.host,ne=W!==void 0&&W!==""&&(f(W)||e(W).isIPV6);Q(ye,k||{},D,ne);const te=W&&W.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(W);if(ye.error&&!te)throw new Error(ye.error);return _.skipEscape=!0,g(ye,_)}function v(A,P,k,_){const b={};return _||(A=me(g(A,k),k),P=me(g(P,k),k)),k=k||{},!k.tolerant&&P.scheme?(b.scheme=P.scheme,b.userinfo=P.userinfo,b.host=P.host,b.port=P.port,b.path=t(P.path||""),b.query=P.query):(P.userinfo!==void 0||P.host!==void 0||P.port!==void 0?(b.userinfo=P.userinfo,b.host=P.host,b.port=P.port,b.path=t(P.path||""),b.query=P.query):(P.path?(P.path[0]==="/"?b.path=t(P.path):((A.userinfo!==void 0||A.host!==void 0||A.port!==void 0)&&!A.path?b.path="/"+P.path:A.path?b.path=A.path.slice(0,A.path.lastIndexOf("/")+1)+P.path:b.path=P.path,b.path=t(b.path)),b.query=P.query):(b.path=A.path,P.query!==void 0?b.query=P.query:b.query=A.query),b.userinfo=A.userinfo,b.host=A.host,b.port=A.port),b.scheme=A.scheme),b.fragment=P.fragment,b}function $(A,P,k){const _=fe(A,k),b=fe(P,k);return _!==void 0&&b!==void 0&&_===b}function g(A,P){const k={host:A.host,scheme:A.scheme,userinfo:A.userinfo,port:A.port,path:A.path,query:A.query,nid:A.nid,nss:A.nss,uuid:A.uuid,fragment:A.fragment,reference:A.reference,resourceName:A.resourceName,secure:A.secure,error:""},_=Object.assign({},P),b=[];k.scheme&&(k.scheme=S(k.scheme));const q=h(_.scheme||k.scheme);q&&q.serialize&&q.serialize(k,_);const F=k.userinfo!==void 0||k.host!==void 0||k.port!==void 0,U=!_.skipEscape&&k.scheme===void 0&&!F;k.path!==void 0&&(_.skipEscape?k.path=n(k.path):k.path=o(k.path,U)),_.reference!=="suffix"&&k.scheme&&(k.scheme=S(k.scheme),b.push(k.scheme,":"));const Y=r(k);if(Y!==void 0&&(_.reference!=="suffix"&&b.push("//"),b.push(Y),k.path&&k.path[0]!=="/"&&b.push("/")),k.path!==void 0){let le=k.path;!_.absolutePath&&(!q||!q.absolutePath)&&(le=t(le)),U&&(le=o(le,!0)),Y===void 0&&le[0]==="/"&&le[1]==="/"&&(le="/%2F"+le.slice(2)),b.push(le)}return k.query!==void 0&&b.push("?",c(k.query)),k.fragment!==void 0&&b.push("#",p(k.fragment)),b.join("")}const T=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,j=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,B=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function V(A,P){if(P[2]!==void 0&&A.path&&A.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof A.port=="number"&&(A.port<0||A.port>65535))return"URI port is malformed."}function G(A){if(A===void 0)return!1;let P=A.indexOf("%");for(;P!==-1;){if(P+2>=A.length||!/^[\da-f]{2}$/iu.test(A.slice(P+1,P+3)))return!0;P=A.indexOf("%",P+3)}return!1}function J(A){return A[0]==="["&&A[A.length-1]==="]"}function oe(A){const P=A[4];return G(A[3])||P!==void 0&&!J(P)&&G(P)||G(A[6])||G(A[7])||G(A[8])}function Q(A,P,k,_){if(!P.unicodeSupport&&(!k||!k.unicodeSupport)&&A.host&&!J(A.host)&&(P.domainHost||k&&k.domainHost)&&_===!1&&m(A.host))try{A.host=new URL("http://"+A.host).hostname}catch(b){return A.error=A.error||"Host's domain name can not be converted to ASCII: "+b,!0}return!1}function X(A,P){const k=Object.assign({},P),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let b=!1,q=!1,F=!1,U=!1,Y=!1,le=!1,he=!1;k.reference==="suffix"&&(k.scheme?A=k.scheme+":"+A:A="//"+A);const N=A.match(j);N!==null&&N[1].indexOf("\\")!==-1&&(_.error="URI authority must not contain a literal backslash.",b=!0);const z=A.match(B);if(z!==null){const Z=z[1],ae=Z.replace(/[\t\n\r]/g,"");ae.length>=2&&(ae.slice(0,2)!=="//"?(_.error=_.error||"URI authority must not contain a literal backslash.",b=!0):Z.length!==ae.length&&(_.error=_.error||"URI authority introducer must not contain whitespace.",b=!0))}const H=A.match(T);if(H){if(_.scheme=H[1],_.userinfo=H[3],_.host=H[4],_.port=parseInt(H[5],10),_.path=H[6]||"",_.query=H[7],_.fragment=H[8],_.scheme!==void 0){const ye=unescape(_.scheme);O.test(ye)?_.scheme=ye.toLowerCase():(_.error=_.error||w,le=!0)}q=oe(H),q&&(_.error=_.error||"URI contains malformed percent-encoding."),isNaN(_.port)&&(_.port=H[5]);const Z=V(_,H);if(Z!==void 0&&(_.error=_.error||Z,b=!0),_.host)if(f(_.host)===!1){const D=J(_.host),W=_.host.indexOf("[")!==-1||_.host.indexOf("]")!==-1,ne=e(_.host);he=ne.isIPV6||ne.isIPVFuture===!0,Y=W&&(!D||ne.error===!0),_.host=he?ne.host:ne.host.toLowerCase(),Y&&(_.error=_.error||"URI host is malformed.",b=!0)}else he=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",k.reference&&k.reference!=="suffix"&&k.reference!==_.reference&&(_.error=_.error||"URI is not a "+k.reference+" reference.");const ae=h(k.scheme||_.scheme);if(Y||(U=Q(_,k,ae,he)),A.indexOf("%")!==-1&&_.host!==void 0&&!Y){let ye=he?_.host:n(_.host,!0);he||(ye=n(ye.toLowerCase())),_.host=u(ye,he)}(!ae||ae&&!ae.skipNormalize)&&(_.path&&(_.path=i(_.path)),_.query&&(_.query=a(_.query)),_.fragment&&(_.fragment=a(_.fragment))),ae&&ae.parse&&(ae.parse(_,k),ae===y.urn&&_.nid===void 0&&(F=!0))}else _.error=_.error||"URI can not be parsed.";return{parsed:_,malformedAuthorityOrPort:b,malformedPercentEncoding:q,malformedSchemeSpecific:F,malformedHost:U,malformedScheme:le}}function me(A,P){return X(A,P).parsed}function xe(A,P){return Te(A,P).normalized}function Te(A,P){const{parsed:k,malformedAuthorityOrPort:_,malformedPercentEncoding:b,malformedSchemeSpecific:q,malformedHost:F,malformedScheme:U}=X(A,P);return{normalized:_||b||q||F||U?A:g(k,P),malformedAuthorityOrPort:_,malformedPercentEncoding:b,malformedSchemeSpecific:q,malformedHost:F,malformedScheme:U}}function fe(A,P){if(typeof A!="string"&&typeof A!="object")return;let k;try{k=typeof A=="string"?A:g(A,P)}catch{return}const{normalized:_,malformedAuthorityOrPort:b,malformedPercentEncoding:q,malformedSchemeSpecific:F,malformedHost:U,malformedScheme:Y}=Te(k,P);return b||q||F||U||Y?void 0:_}const Se={SCHEMES:y,normalize:E,resolve:x,resolveComponent:v,equal:$,serialize:g,parse:me};return Xt.exports=Se,Xt.exports.default=Se,Xt.exports.fastUri=Se,Xt.exports}var na;function z0(){if(na)return jr;na=1,Object.defineProperty(jr,"__esModule",{value:!0});const e=F0();return e.code='require("ajv/dist/runtime/uri").default',jr.default=e,jr}var ia;function Jo(){return ia||(ia=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=zt();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=we();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=yr(),i=Bt(),o=$l(),a=hi(),c=we(),p=mi(),u=Zn(),f=Re(),m=L0,y=z0(),h=(A,P)=>new RegExp(A,P);h.code="new RegExp";const O=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],w=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),S={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."},E={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},x=200;function v(A){var P,k,_,b,q,F,U,Y,le,he,N,z,H,Z,ae,ye,D,W,ne,te,re,ce,pe,ue,be;const je=A.strict,s=(P=A.code)===null||P===void 0?void 0:P.optimize,l=s===!0||s===void 0?1:s||0,d=(_=(k=A.code)===null||k===void 0?void 0:k.regExp)!==null&&_!==void 0?_:h,R=(b=A.uriResolver)!==null&&b!==void 0?b:y.default;return{strictSchema:(F=(q=A.strictSchema)!==null&&q!==void 0?q:je)!==null&&F!==void 0?F:!0,strictNumbers:(Y=(U=A.strictNumbers)!==null&&U!==void 0?U:je)!==null&&Y!==void 0?Y:!0,strictTypes:(he=(le=A.strictTypes)!==null&&le!==void 0?le:je)!==null&&he!==void 0?he:"log",strictTuples:(z=(N=A.strictTuples)!==null&&N!==void 0?N:je)!==null&&z!==void 0?z:"log",strictRequired:(Z=(H=A.strictRequired)!==null&&H!==void 0?H:je)!==null&&Z!==void 0?Z:!1,code:A.code?{...A.code,optimize:l,regExp:d}:{optimize:l,regExp:d},loopRequired:(ae=A.loopRequired)!==null&&ae!==void 0?ae:x,loopEnum:(ye=A.loopEnum)!==null&&ye!==void 0?ye:x,meta:(D=A.meta)!==null&&D!==void 0?D:!0,messages:(W=A.messages)!==null&&W!==void 0?W:!0,inlineRefs:(ne=A.inlineRefs)!==null&&ne!==void 0?ne:!0,schemaId:(te=A.schemaId)!==null&&te!==void 0?te:"$id",addUsedSchema:(re=A.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(ce=A.validateSchema)!==null&&ce!==void 0?ce:!0,validateFormats:(pe=A.validateFormats)!==null&&pe!==void 0?pe:!0,unicodeRegExp:(ue=A.unicodeRegExp)!==null&&ue!==void 0?ue:!0,int32range:(be=A.int32range)!==null&&be!==void 0?be:!0,uriResolver:R}}class ${constructor(P={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,P=this.opts={...P,...v(P)};const{es5:k,lines:_}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:w,es5:k,lines:_}),this.logger=oe(P.logger);const b=P.validateFormats;P.validateFormats=!1,this.RULES=(0,o.getRules)(),g.call(this,S,P,"NOT SUPPORTED"),g.call(this,E,P,"DEPRECATED","warn"),this._metaOpts=G.call(this),P.formats&&B.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),P.keywords&&V.call(this,P.keywords),typeof P.meta=="object"&&this.addMetaSchema(P.meta),j.call(this),P.validateFormats=b}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:P,meta:k,schemaId:_}=this.opts;let b=m;_==="id"&&(b={...m},b.id=b.$id,delete b.$id),k&&P&&this.addMetaSchema(b,b[_],!1)}defaultMeta(){const{meta:P,schemaId:k}=this.opts;return this.opts.defaultMeta=typeof P=="object"?P[k]||P:void 0}setDefaultUnevaluatedProperties(P){this.opts.defaultUnevaluatedProperties=P}validate(P,k){let _;if(typeof P=="string"){if(_=this.getSchema(P),!_)throw new Error(`no schema with key or ref "${P}"`)}else _=this.compile(P);const b=_(k);return"$async"in _||(this.errors=_.errors),b}compile(P,k){const _=this._addSchema(P,k);return _.validate||this._compileSchemaEnv(_)}compileAsync(P,k){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:_}=this.opts;return b.call(this,P,k);async function b(he,N){await q.call(this,he.$schema);const z=this._addSchema(he,N);return z.validate||F.call(this,z)}async function q(he){he&&!this.getSchema(he)&&await b.call(this,{$ref:he},!0)}async function F(he){try{return this._compileSchemaEnv(he)}catch(N){if(!(N instanceof i.default))throw N;return U.call(this,N),await Y.call(this,N.missingSchema),F.call(this,he)}}function U({missingSchema:he,missingRef:N}){if(this.refs[he])throw new Error(`AnySchema ${he} is loaded but ${N} cannot be resolved`)}async function Y(he){const N=await le.call(this,he);this.refs[he]||await q.call(this,N.$schema),this.refs[he]||this.addSchema(N,he,k)}async function le(he){const N=this._loading[he];if(N)return N;try{return await(this._loading[he]=_(he))}finally{delete this._loading[he]}}}addSchema(P,k,_,b=this.opts.validateSchema){if(Array.isArray(P)){for(const F of P)this.addSchema(F,void 0,_,b);return this}let q;if(typeof P=="object"){const{schemaId:F}=this.opts;if(q=P[F],q!==void 0&&typeof q!="string")throw new Error(`schema ${F} must be string`)}return k=(0,p.normalizeId)(k||q),this._checkUnique(k),this.schemas[k]=this._addSchema(P,_,k,b,!0),this}addMetaSchema(P,k,_=this.opts.validateSchema){return this.addSchema(P,k,!0,_),this}validateSchema(P,k){if(typeof P=="boolean")return!0;let _;if(_=P.$schema,_!==void 0&&typeof _!="string")throw new Error("$schema must be a string");if(_=_||this.opts.defaultMeta||this.defaultMeta(),!_)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const b=this.validate(_,P);if(!b&&k){const q="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(q);else throw new Error(q)}return b}getSchema(P){let k;for(;typeof(k=T.call(this,P))=="string";)P=k;if(k===void 0){const{schemaId:_}=this.opts,b=new a.SchemaEnv({schema:{},schemaId:_});if(k=a.resolveSchema.call(this,b,P),!k)return;this.refs[P]=k}return k.validate||this._compileSchemaEnv(k)}removeSchema(P){if(P instanceof RegExp)return this._removeAllSchemas(this.schemas,P),this._removeAllSchemas(this.refs,P),this;switch(typeof P){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const k=T.call(this,P);return typeof k=="object"&&this._cache.delete(k.schema),delete this.schemas[P],delete this.refs[P],this}case"object":{const k=P;this._cache.delete(k);let _=P[this.opts.schemaId];return _&&(_=(0,p.normalizeId)(_),delete this.schemas[_],delete this.refs[_]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(P){for(const k of P)this.addKeyword(k);return this}addKeyword(P,k){let _;if(typeof P=="string")_=P,typeof k=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),k.keyword=_);else if(typeof P=="object"&&k===void 0){if(k=P,_=k.keyword,Array.isArray(_)&&!_.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(X.call(this,_,k),!k)return(0,f.eachItem)(_,q=>me.call(this,q)),this;Te.call(this,k);const b={...k,type:(0,u.getJSONTypes)(k.type),schemaType:(0,u.getJSONTypes)(k.schemaType)};return(0,f.eachItem)(_,b.type.length===0?q=>me.call(this,q,b):q=>b.type.forEach(F=>me.call(this,q,b,F))),this}getKeyword(P){const k=this.RULES.all[P];return typeof k=="object"?k.definition:!!k}removeKeyword(P){const{RULES:k}=this;delete k.keywords[P],delete k.all[P];for(const _ of k.rules){const b=_.rules.findIndex(q=>q.keyword===P);b>=0&&_.rules.splice(b,1)}return this}addFormat(P,k){return typeof k=="string"&&(k=new RegExp(k)),this.formats[P]=k,this}errorsText(P=this.errors,{separator:k=", ",dataVar:_="data"}={}){return!P||P.length===0?"No errors":P.map(b=>`${_}${b.instancePath} ${b.message}`).reduce((b,q)=>b+k+q)}$dataMetaSchema(P,k){const _=this.RULES.all;P=JSON.parse(JSON.stringify(P));for(const b of k){const q=b.split("/").slice(1);let F=P;for(const U of q)F=F[U];for(const U in _){const Y=_[U];if(typeof Y!="object")continue;const{$data:le}=Y.definition,he=F[U];le&&he&&(F[U]=Se(he))}}return P}_removeAllSchemas(P,k){for(const _ in P){const b=P[_];(!k||k.test(_))&&(typeof b=="string"?delete P[_]:b&&!b.meta&&(this._cache.delete(b.schema),delete P[_]))}}_addSchema(P,k,_,b=this.opts.validateSchema,q=this.opts.addUsedSchema){let F;const{schemaId:U}=this.opts;if(typeof P=="object")F=P[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof P!="boolean")throw new Error("schema must be object or boolean")}let Y=this._cache.get(P);if(Y!==void 0)return Y;_=(0,p.normalizeId)(F||_);const le=p.getSchemaRefs.call(this,P,_);return Y=new a.SchemaEnv({schema:P,schemaId:U,meta:k,baseId:_,localRefs:le}),this._cache.set(Y.schema,Y),q&&!_.startsWith("#")&&(_&&this._checkUnique(_),this.refs[_]=Y),b&&this.validateSchema(P,!0),Y}_checkUnique(P){if(this.schemas[P]||this.refs[P])throw new Error(`schema with key or id "${P}" already exists`)}_compileSchemaEnv(P){if(P.meta?this._compileMetaSchema(P):a.compileSchema.call(this,P),!P.validate)throw new Error("ajv implementation error");return P.validate}_compileMetaSchema(P){const k=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,P)}finally{this.opts=k}}}$.ValidationError=n.default,$.MissingRefError=i.default,e.default=$;function g(A,P,k,_="error"){for(const b in A){const q=b;q in P&&this.logger[_](`${k}: option ${b}. ${A[q]}`)}}function T(A){return A=(0,p.normalizeId)(A),this.schemas[A]||this.refs[A]}function j(){const A=this.opts.schemas;if(A)if(Array.isArray(A))this.addSchema(A);else for(const P in A)this.addSchema(A[P],P)}function B(){for(const A in this.opts.formats){const P=this.opts.formats[A];P&&this.addFormat(A,P)}}function V(A){if(Array.isArray(A)){this.addVocabulary(A);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const P in A){const k=A[P];k.keyword||(k.keyword=P),this.addKeyword(k)}}function G(){const A={...this.opts};for(const P of O)delete A[P];return A}const J={log(){},warn(){},error(){}};function oe(A){if(A===!1)return J;if(A===void 0)return console;if(A.log&&A.warn&&A.error)return A;throw new Error("logger must implement log, warn and error methods")}const Q=/^[a-z_$][a-z0-9_$:-]*$/i;function X(A,P){const{RULES:k}=this;if((0,f.eachItem)(A,_=>{if(k.keywords[_])throw new Error(`Keyword ${_} is already defined`);if(!Q.test(_))throw new Error(`Keyword ${_} has invalid name`)}),!!P&&P.$data&&!("code"in P||"validate"in P))throw new Error('$data keyword must have "code" or "validate" function')}function me(A,P,k){var _;const b=P?.post;if(k&&b)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:q}=this;let F=b?q.post:q.rules.find(({type:Y})=>Y===k);if(F||(F={type:k,rules:[]},q.rules.push(F)),q.keywords[A]=!0,!P)return;const U={keyword:A,definition:{...P,type:(0,u.getJSONTypes)(P.type),schemaType:(0,u.getJSONTypes)(P.schemaType)}};P.before?xe.call(this,F,U,P.before):F.rules.push(U),q.all[A]=U,(_=P.implements)===null||_===void 0||_.forEach(Y=>this.addKeyword(Y))}function xe(A,P,k){const _=A.rules.findIndex(b=>b.keyword===k);_>=0?A.rules.splice(_,0,P):(A.rules.push(P),this.logger.warn(`rule ${k} is not defined`))}function Te(A){let{metaSchema:P}=A;P!==void 0&&(A.$data&&this.opts.$data&&(P=Se(P)),A.validateSchema=this.compile(P,!0))}const fe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Se(A){return{anyOf:[A,fe]}}})(ki)),ki}var Mr={},Dr={},Nr={},oa;function B0(){if(oa)return Nr;oa=1,Object.defineProperty(Nr,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Nr.default=e,Nr}var bt={},sa;function yi(){if(sa)return bt;sa=1,Object.defineProperty(bt,"__esModule",{value:!0}),bt.callRef=bt.getValidate=void 0;const e=Bt(),t=nt(),r=we(),n=We(),i=hi(),o=Re(),a={keyword:"$ref",schemaType:"string",code(u){const{gen:f,schema:m,it:y}=u,{baseId:h,schemaEnv:O,validateName:w,opts:S,self:E}=y,{root:x}=O;if((m==="#"||m==="#/")&&h===x.baseId)return $();const v=i.resolveRef.call(E,x,h,m);if(v===void 0)throw new e.default(y.opts.uriResolver,h,m);if(v instanceof i.SchemaEnv)return g(v);return T(v);function $(){if(O===x)return p(u,w,O,O.$async);const j=f.scopeValue("root",{ref:x});return p(u,(0,r._)`${j}.validate`,x,x.$async)}function g(j){const B=c(u,j);p(u,B,j,j.$async)}function T(j){const B=f.scopeValue("schema",S.code.source===!0?{ref:j,code:(0,r.stringify)(j)}:{ref:j}),V=f.name("valid"),G=u.subschema({schema:j,dataTypes:[],schemaPath:r.nil,topSchemaRef:B,errSchemaPath:m},V,y.isAllOfVariant);u.mergeEvaluated(G),u.ok(V)}}};function c(u,f){const{gen:m}=u;return f.validate?m.scopeValue("validate",{ref:f.validate}):(0,r._)`${m.scopeValue("wrapper",{ref:f})}.validate`}bt.getValidate=c;function p(u,f,m,y){const{gen:h,it:O}=u,{allErrors:w,schemaEnv:S,opts:E}=O,x=E.passContext?n.default.this:r.nil;y?v():$();function v(){if(!S.$async)throw new Error("async schema referenced by sync schema");const j=h.let("valid");h.try(()=>{h.code((0,r._)`await ${(0,t.callValidateCode)(u,f,x)}`),T(f),w||h.assign(j,!0)},B=>{h.if((0,r._)`!(${B} instanceof ${O.ValidationError})`,()=>h.throw(B)),g(B),w||h.assign(j,!1)}),u.ok(j)}function $(){const j=h.name("visitedNodes");h.code((0,r._)`const ${j} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${f}) || new Set()`),h.if((0,r._)`!${j}.has(${u.data})`,()=>{h.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${f}, ${j})`),h.code((0,r._)`const dataNode = ${u.data}`),h.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${j}.add(dataNode)`);const B=u.result((0,t.callValidateCode)(u,f,x),()=>T(f),()=>g(f));return h.code((0,r._)`${j}.delete(dataNode)`),B})}function g(j){const B=(0,r._)`${j}.errors`;h.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${B} : ${n.default.vErrors}.concat(${B})`),h.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function T(j){var B;if(!O.opts.unevaluated)return;const V=(B=m?.validate)===null||B===void 0?void 0:B.evaluated;if(O.props!==!0)if(V&&!V.dynamicProps)V.props!==void 0&&(O.props=o.mergeEvaluated.props(h,V.props,O.props));else{const G=h.var("props",(0,r._)`${j}.evaluated.props`);O.props=o.mergeEvaluated.props(h,G,O.props,r.Name)}if(O.items!==!0)if(V&&!V.dynamicItems)V.items!==void 0&&(O.items=o.mergeEvaluated.items(h,V.items,O.items));else{const G=h.var("items",(0,r._)`${j}.evaluated.items`);O.items=o.mergeEvaluated.items(h,G,O.items,r.Name)}}}return bt.callRef=p,bt.default=a,bt}var aa;function Il(){if(aa)return Dr;aa=1,Object.defineProperty(Dr,"__esModule",{value:!0});const e=B0(),t=yi(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Dr.default=r,Dr}var Lr={},Ur={},ca;function V0(){if(ca)return Ur;ca=1,Object.defineProperty(Ur,"__esModule",{value:!0});const e=we(),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:a})=>(0,e.str)`must be ${r[o].okStr} ${a}`,params:({keyword:o,schemaCode:a})=>(0,e._)`{comparison: ${r[o].okStr}, limit: ${a}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(o){const{keyword:a,data:c,schemaCode:p}=o;o.fail$data((0,e._)`${c} ${r[a].fail} ${p} || isNaN(${c})`)}};return Ur.default=i,Ur}var Fr={},pa;function H0(){if(pa)return Fr;pa=1,Object.defineProperty(Fr,"__esModule",{value:!0});const e=we(),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:a,it:c}=n,p=c.opts.multipleOfPrecision,u=i.let("res"),f=p?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${p}`:(0,e._)`${u} !== parseInt(${u})`;n.fail$data((0,e._)`(${a} === 0 || (${u} = ${o}/${a}, ${f}))`)}};return Fr.default=r,Fr}var zr={},Br={},la;function K0(){if(la)return Br;la=1,Object.defineProperty(Br,"__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 Br.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Br}var ua;function W0(){if(ua)return zr;ua=1,Object.defineProperty(zr,"__esModule",{value:!0});const e=we(),t=Re(),r=K0(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:a}){const c=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${a} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:a,data:c,schemaCode:p,it:u}=o,f=a==="maxLength"?e.operators.GT:e.operators.LT,m=u.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${c})`;o.fail$data((0,e._)`${m} ${f} ${p}`)}};return zr.default=i,zr}var Vr={},da;function Q0(){if(da)return Vr;da=1,Object.defineProperty(Vr,"__esModule",{value:!0});const e=nt(),t=Re(),r=we(),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:a,data:c,$data:p,schema:u,schemaCode:f,it:m}=o,y=m.opts.unicodeRegExp?"u":"";if(p){const{regExp:h}=m.opts.code,O=h.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(a,h),w=a.let("valid");a.try(()=>a.assign(w,(0,r._)`${O}(${f}, ${y}).test(${c})`),()=>a.assign(w,!1)),o.fail$data((0,r._)`!${w}`)}else{const h=(0,e.usePattern)(o,u);o.fail$data((0,r._)`!${h}.test(${c})`)}}};return Vr.default=i,Vr}var Hr={},fa;function G0(){if(fa)return Hr;fa=1,Object.defineProperty(Hr,"__esModule",{value:!0});const e=we(),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:a}=n,c=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${o}).length ${c} ${a}`)}};return Hr.default=r,Hr}var Kr={},ma;function Y0(){if(ma)return Kr;ma=1,Object.defineProperty(Kr,"__esModule",{value:!0});const e=nt(),t=Tl(),r=we(),n=Re(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,r.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,r._)`{missingProperty: ${a}}`},code(a){const{gen:c,schema:p,schemaCode:u,data:f,$data:m,it:y}=a,{opts:h}=y;if(!m&&p.length===0)return;const O=p.length>=h.loopRequired;if(y.allErrors?w():S(),h.strictRequired){const v=a.parentSchema.properties,{definedProperties:$}=a.it;for(const g of p)if(v?.[g]===void 0&&!$.has(g)){const T=y.schemaEnv.baseId+y.errSchemaPath,j=`required property "${g}" is not defined at "${T}" (strictRequired)`;(0,n.checkStrictMode)(y,j,y.opts.strictRequired)}}function w(){var v;if(O||m)a.block$data(r.nil,E);else for(const $ of p){const g=(v=(0,t.getSkipCondition)(a.parentSchema,$))!==null&&v!==void 0?v:(0,r._)`false`;c.if((0,r.not)(g),()=>(0,e.checkReportMissingProp)(a,$))}}function S(){const v=c.let("missing");if(O||m){const $=c.let("valid",!0);a.block$data($,()=>x(v,$)),a.ok($)}else c.if((0,e.checkMissingProp)(a,p,v)),(0,e.reportMissingProp)(a,v),c.else()}function E(){c.forOf("prop",u,v=>{a.setParams({missingProperty:v}),c.if((0,e.noPropertyInData)(c,f,v,h.ownProperties),()=>a.error())})}function x(v,$){a.setParams({missingProperty:v}),c.forOf(v,u,()=>{c.assign($,(0,e.propertyInData)(c,f,v,h.ownProperties)),c.if((0,r.not)($),()=>{a.error(),c.break()})},r.nil)}}};return Kr.default=o,Kr}var Wr={},ha;function J0(){if(ha)return Wr;ha=1,Object.defineProperty(Wr,"__esModule",{value:!0});const e=we(),t=We(),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 Wr.default=n,Wr}var Qr={},ya;function X0(){if(ya)return Qr;ya=1,Object.defineProperty(Qr,"__esModule",{value:!0});const e=we(),t=We(),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 Qr.default=n,Qr}var Gr={},ga;function Z0(){if(ga)return Gr;ga=1,Object.defineProperty(Gr,"__esModule",{value:!0});const e=we(),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:a}=n,c=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${o}.length ${c} ${a}`)}};return Gr.default=r,Gr}var Yr={},Jr={},ba;function Xo(){if(ba)return Jr;ba=1,Object.defineProperty(Jr,"__esModule",{value:!0});const e=K.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',Jr.default=e,Jr}var va;function ew(){if(va)return Yr;va=1,Object.defineProperty(Yr,"__esModule",{value:!0});const e=Zn(),t=we(),r=Re(),n=Xo(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:a,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${a} are identical)`,params:({params:{i:a,j:c}})=>(0,t._)`{i: ${a}, j: ${c}}`},code(a){const{gen:c,data:p,$data:u,schema:f,parentSchema:m,schemaCode:y,it:h}=a;if(!u&&!f)return;const O=c.let("valid"),w=m.items?(0,e.getSchemaTypes)(m.items):[];a.block$data(O,S,(0,t._)`${y} === false`),a.ok(O);function S(){const $=c.let("i",(0,t._)`${p}.length`),g=c.let("j");a.setParams({i:$,j:g}),c.assign(O,!0),c.if((0,t._)`${$} > 1`,()=>(E()?x:v)($,g))}function E(){return w.length>0&&!w.some($=>$==="object"||$==="array")}function x($,g){const T=c.name("item"),j=(0,e.checkDataTypes)(w,T,h.opts.strictNumbers,e.DataType.Wrong),B=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${$}--;`,()=>{c.let(T,(0,t._)`${p}[${$}]`),c.if(j,(0,t._)`continue`),w.length>1&&c.if((0,t._)`typeof ${T} == "string"`,(0,t._)`${T} += "_"`),c.if((0,t._)`typeof ${B}[${T}] == "number"`,()=>{c.assign(g,(0,t._)`${B}[${T}]`),a.error(),c.assign(O,!1).break()}).code((0,t._)`${B}[${T}] = ${$}`)})}function v($,g){const T=(0,r.useFunc)(c,n.default),j=c.name("outer");c.label(j).for((0,t._)`;${$}--;`,()=>c.for((0,t._)`${g} = ${$}; ${g}--;`,()=>c.if((0,t._)`${T}(${p}[${$}], ${p}[${g}])`,()=>{a.error(),c.assign(O,!1).break(j)})))}}};return Yr.default=o,Yr}var Xr={},wa;function tw(){if(wa)return Xr;wa=1,Object.defineProperty(Xr,"__esModule",{value:!0});const e=we(),t=Re(),r=Xo(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:a,data:c,$data:p,schemaCode:u,schema:f}=o;p||f&&typeof f=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(a,r.default)}(${c}, ${u})`):o.fail((0,e._)`${f} !== ${c}`)}};return Xr.default=i,Xr}var Zr={},xa;function rw(){if(xa)return Zr;xa=1,Object.defineProperty(Zr,"__esModule",{value:!0});const e=we(),t=Re(),r=Xo(),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:a,data:c,$data:p,schema:u,schemaCode:f,it:m}=o;if(!p&&u.length===0)throw new Error("enum must have non-empty array");const y=u.length>=m.opts.loopEnum;let h;const O=()=>h??(h=(0,t.useFunc)(a,r.default));let w;if(y||p)w=a.let("valid"),o.block$data(w,S);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const x=a.const("vSchema",f);w=(0,e.or)(...u.map((v,$)=>E(x,$)))}o.pass(w);function S(){a.assign(w,!1),a.forOf("v",f,x=>a.if((0,e._)`${O()}(${c}, ${x})`,()=>a.assign(w,!0).break()))}function E(x,v){const $=u[v];return typeof $=="object"&&$!==null?(0,e._)`${O()}(${c}, ${x}[${v}])`:(0,e._)`${c} === ${$}`}}};return Zr.default=i,Zr}var Sa;function Zo(){if(Sa)return Lr;Sa=1,Object.defineProperty(Lr,"__esModule",{value:!0});const e=V0(),t=H0(),r=W0(),n=Q0(),i=G0(),o=Y0(),a=J0(),c=X0(),p=Z0(),u=ew(),f=tw(),m=rw(),y=[e.default,t.default,r.default,n.default,i.default,o.default,a.default,c.default,p.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,m.default];return Lr.default=y,Lr}var en={},_t={},Pa;function ql(){if(Pa)return _t;Pa=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.validateAdditionalItems=void 0;const e=we(),t=Re(),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:a,it:c}=o,{items:p}=a;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,a){const{gen:c,schema:p,data:u,keyword:f,it:m}=o;m.items=!0;const y=c.const("len",(0,e._)`${u}.length`);if(p===!1)o.setParams({len:a.length}),o.pass((0,e._)`${y} <= ${a.length}`);else if(typeof p=="object"&&!(0,t.alwaysValidSchema)(m,p)){const O=c.var("valid",(0,e._)`${y} <= ${a.length}`);c.if((0,e.not)(O),()=>h(O)),o.ok(O)}function h(O){c.forRange("i",a.length,y,w=>{o.subschema({keyword:f,dataProp:w,dataPropType:t.Type.Num},O),m.allErrors||c.if((0,e.not)(O),()=>c.break())})}}return _t.validateAdditionalItems=i,_t.default=n,_t}var tn={},Tt={},Ea;function Cl(){if(Ea)return Tt;Ea=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.validateTuple=void 0;const e=we(),t=Re(),r=nt(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:a,it:c}=o;if(Array.isArray(a))return i(o,"additionalItems",a);c.items=!0,!(0,t.alwaysValidSchema)(c,a)&&o.ok((0,r.validateArray)(o))}};function i(o,a,c=o.schema){const{gen:p,parentSchema:u,data:f,keyword:m,it:y}=o;w(u),y.opts.unevaluated&&c.length&&y.items!==!0&&(y.items=t.mergeEvaluated.items(p,c.length,y.items));const h=p.name("valid"),O=p.const("len",(0,e._)`${f}.length`);c.forEach((S,E)=>{(0,t.alwaysValidSchema)(y,S)||(p.if((0,e._)`${O} > ${E}`,()=>o.subschema({keyword:m,schemaProp:E,dataProp:E},h)),o.ok(h))});function w(S){const{opts:E,errSchemaPath:x}=y,v=c.length,$=v===S.minItems&&(v===S.maxItems||S[a]===!1);if(E.strictTuples&&!$){const g=`"${m}" is ${v}-tuple, but minItems or maxItems/${a} are not specified or different at path "${x}"`;(0,t.checkStrictMode)(y,g,E.strictTuples)}}}return Tt.validateTuple=i,Tt.default=n,Tt}var Oa;function nw(){if(Oa)return tn;Oa=1,Object.defineProperty(tn,"__esModule",{value:!0});const e=Cl(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return tn.default=t,tn}var rn={},Aa;function iw(){if(Aa)return rn;Aa=1,Object.defineProperty(rn,"__esModule",{value:!0});const e=we(),t=Re(),r=nt(),n=ql(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{schema:c,parentSchema:p,it:u}=a,{prefixItems:f}=p;u.items=!0,!(0,t.alwaysValidSchema)(u,c)&&(f?(0,n.validateAdditionalItems)(a,f):a.ok((0,r.validateArray)(a)))}};return rn.default=o,rn}var nn={},Ra;function ow(){if(Ra)return nn;Ra=1,Object.defineProperty(nn,"__esModule",{value:!0});const e=we(),t=Re(),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:a,parentSchema:c,data:p,it:u}=i;let f,m;const{minContains:y,maxContains:h}=c;u.opts.next?(f=y===void 0?1:y,m=h):f=1;const O=o.const("len",(0,e._)`${p}.length`);if(i.setParams({min:f,max:m}),m===void 0&&f===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(m!==void 0&&f>m){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(u,a)){let v=(0,e._)`${O} >= ${f}`;m!==void 0&&(v=(0,e._)`${v} && ${O} <= ${m}`),i.pass(v);return}u.items=!0;const w=o.name("valid");m===void 0&&f===1?E(w,()=>o.if(w,()=>o.break())):f===0?(o.let(w,!0),m!==void 0&&o.if((0,e._)`${p}.length > 0`,S)):(o.let(w,!1),S()),i.result(w,()=>i.reset());function S(){const v=o.name("_valid"),$=o.let("count",0);E(v,()=>o.if(v,()=>x($)))}function E(v,$){o.forRange("i",0,O,g=>{i.subschema({keyword:"contains",dataProp:g,dataPropType:t.Type.Num,compositeRule:!0},v),$()})}function x(v){o.code((0,e._)`${v}++`),m===void 0?o.if((0,e._)`${v} >= ${f}`,()=>o.assign(w,!0).break()):(o.if((0,e._)`${v} > ${m}`,()=>o.assign(w,!1).break()),f===1?o.assign(w,!0):o.if((0,e._)`${v} >= ${f}`,()=>o.assign(w,!0)))}}};return nn.default=n,nn}var Li={},$a;function es(){return $a||($a=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=we(),r=Re(),n=nt();e.error={message:({params:{property:p,depsCount:u,deps:f}})=>{const m=u===1?"property":"properties";return(0,t.str)`must have ${m} ${f} when property ${p} is present`},params:({params:{property:p,depsCount:u,deps:f,missingProperty:m}})=>(0,t._)`{property: ${p},
5
+ || ${B} === "boolean" || ${T} === null`).assign(V,(0,n._)`[${T}]`)}}}function y({gen:x,parentData:v,parentDataProperty:$},g){x.if((0,n._)`${v} !== undefined`,()=>x.assign((0,n._)`${v}[${$}]`,g))}function h(x,v,$,g=o.Correct){const T=g===o.Correct?n.operators.EQ:n.operators.NEQ;let j;switch(x){case"null":return(0,n._)`${v} ${T} null`;case"array":j=(0,n._)`Array.isArray(${v})`;break;case"object":j=(0,n._)`${v} && typeof ${v} == "object" && !Array.isArray(${v})`;break;case"integer":j=B((0,n._)`!(${v} % 1) && !isNaN(${v})`);break;case"number":j=B();break;default:return(0,n._)`typeof ${v} ${T} ${x}`}return g===o.Correct?j:(0,n.not)(j);function B(V=n.nil){return(0,n.and)((0,n._)`typeof ${v} == "number"`,V,$?(0,n._)`isFinite(${v})`:n.nil)}}Ue.checkDataType=h;function O(x,v,$,g){if(x.length===1)return h(x[0],v,$,g);let T;const j=(0,i.toHash)(x);if(j.array&&j.object){const B=(0,n._)`typeof ${v} != "object"`;T=j.null?B:(0,n._)`!${v} || ${B}`,delete j.null,delete j.array,delete j.object}else T=n.nil;j.number&&delete j.integer;for(const B in j)T=(0,n.and)(T,h(B,v,$,g));return T}Ue.checkDataTypes=O;const w={message:({schema:x})=>`must be ${x}`,params:({schema:x,schemaValue:v})=>typeof x=="string"?(0,n._)`{type: ${x}}`:(0,n._)`{type: ${v}}`};function P(x){const v=E(x);(0,r.reportError)(v,w)}Ue.reportTypeError=P;function E(x){const{gen:v,data:$,schema:g}=x,T=(0,i.schemaRefOrVal)(x,g,"type");return{gen:v,keyword:"type",data:$,schema:g.type,schemaCode:T,schemaValue:T,parentSchema:g,params:{},it:x}}return Ue}var Yt={},Bs;function k0(){if(Bs)return Yt;Bs=1,Object.defineProperty(Yt,"__esModule",{value:!0}),Yt.assignDefaults=void 0;const e=we(),t=Ae();function r(i,o){const{properties:a,items:c}=i.schema;if(o==="object"&&a)for(const p in a)n(i,p,a[p].default);else o==="array"&&Array.isArray(c)&&c.forEach((p,u)=>n(i,u,p.default))}Yt.assignDefaults=r;function n(i,o,a){const{gen:c,compositeRule:p,data:u,opts:f}=i;if(a===void 0)return;const m=(0,e._)`${u}${(0,e.getProperty)(o)}`;if(p){(0,t.checkStrictMode)(i,`default is ignored for: ${m}`);return}let y=(0,e._)`${m} === undefined`;f.useDefaults==="empty"&&(y=(0,e._)`${y} || ${m} === null || ${m} === ""`),c.if(y,(0,e._)`${m} = ${(0,e.stringify)(a)}`)}return Yt}var Ze={},Ce={},Jt={},Vs;function Tl(){if(Vs)return Jt;Vs=1,Object.defineProperty(Jt,"__esModule",{value:!0}),Jt.getSkipCondition=void 0;const e=we(),t=We();function r(n,i){var o;const a=(o=n.properties)===null||o===void 0?void 0:o[i];if(!a)return;const c=a.readOnly===!0,p=a.writeOnly===!0;if(!c&&!p)return;const u=[],f=(0,e._)`typeof ${t.default.this} == "object" && ${t.default.this} && ${t.default.this}.apiContext`;return c&&u.push((0,e._)`${f} === "request"`),p&&u.push((0,e._)`${f} === "response"`),(0,e.or)(...u)}return Jt.getSkipCondition=r,Jt}var Hs;function nt(){if(Hs)return Ce;Hs=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.validateUnion=Ce.validateArray=Ce.usePattern=Ce.callValidateCode=Ce.schemaProperties=Ce.allSchemaProperties=Ce.noPropertyInData=Ce.propertyInData=Ce.isOwnProperty=Ce.hasPropFunc=Ce.reportMissingProp=Ce.checkMissingProp=Ce.checkReportMissingProp=void 0;const e=we(),t=Ae(),r=We(),n=Ae(),i=Tl();function o(v,$){const{gen:g,data:T,it:j}=v;g.if(m(g,T,$,j.opts.ownProperties),()=>{v.setParams({missingProperty:(0,e._)`${$}`},!0),v.error()})}Ce.checkReportMissingProp=o;function a({gen:v,data:$,it:{opts:g},parentSchema:T},j,B){return(0,e.or)(...j.map(V=>{var G;return(0,e.and)((0,e.not)((G=(0,i.getSkipCondition)(T,V))!==null&&G!==void 0?G:(0,e._)`false`),m(v,$,V,g.ownProperties),(0,e._)`${B} = ${V}`)}))}Ce.checkMissingProp=a;function c(v,$){v.setParams({missingProperty:$},!0),v.error()}Ce.reportMissingProp=c;function p(v){return v.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Ce.hasPropFunc=p;function u(v,$,g){return(0,e._)`${p(v)}.call(${$}, ${g})`}Ce.isOwnProperty=u;function f(v,$,g,T){const j=(0,e._)`${$}${(0,e.getProperty)(g)} !== undefined`;return T?(0,e._)`${j} && ${u(v,$,g)}`:j}Ce.propertyInData=f;function m(v,$,g,T){const j=(0,e._)`${$}${(0,e.getProperty)(g)} === undefined`;return T?(0,e.or)(j,(0,e.not)(u(v,$,g))):j}Ce.noPropertyInData=m;function y(v){return v?Object.keys(v).filter($=>$!=="__proto__"):[]}Ce.allSchemaProperties=y;function h(v,$){return y($).filter(g=>!(0,t.alwaysValidSchema)(v,$[g]))}Ce.schemaProperties=h;function O({schemaCode:v,data:$,it:{gen:g,topSchemaRef:T,schemaPath:j,errorPath:B},it:V},G,J,oe){const Q=oe?(0,e._)`${v}, ${$}, ${T}${j}`:$,X=[[r.default.instancePath,(0,e.strConcat)(r.default.instancePath,B)],[r.default.parentData,V.parentData],[r.default.parentDataProperty,V.parentDataProperty],[r.default.rootData,r.default.rootData],[r.default.isAllOfVariant,V.isAllOfVariant?1:0]];V.opts.dynamicRef&&X.push([r.default.dynamicAnchors,r.default.dynamicAnchors]);const me=(0,e._)`${Q}, ${g.object(...X)}`;return J!==e.nil?(0,e._)`${G}.call(${J}, ${me})`:(0,e._)`${G}(${me})`}Ce.callValidateCode=O;const w=(0,e._)`new RegExp`;function P({gen:v,it:{opts:$}},g){const T=$.unicodeRegExp?"u":"",{regExp:j}=$.code,B=j(g,T);return v.scopeValue("pattern",{key:B.toString(),ref:B,code:(0,e._)`${j.code==="new RegExp"?w:(0,n.useFunc)(v,j)}(${g}, ${T})`})}Ce.usePattern=P;function E(v){const{gen:$,data:g,keyword:T,it:j}=v,B=$.name("valid");if(j.allErrors){const G=$.let("valid",!0);return V(()=>$.assign(G,!1)),G}return $.var(B,!0),V(()=>$.break()),B;function V(G){const J=$.const("len",(0,e._)`${g}.length`);$.forRange("i",0,J,oe=>{v.subschema({keyword:T,dataProp:oe,dataPropType:t.Type.Num},B),$.if((0,e.not)(B),G)})}}Ce.validateArray=E;function x(v){const{gen:$,schema:g,keyword:T,parentSchema:j,it:B}=v;if(!Array.isArray(g))throw new Error("ajv implementation error");if(B.opts.discriminator&&j.discriminator||g.some(oe=>(0,t.alwaysValidSchema)(B,oe))&&!B.opts.unevaluated)return;const G=$.let("valid",!1),J=$.name("_valid");$.block(()=>g.forEach((oe,Q)=>{const X=v.subschema({keyword:T,schemaProp:Q,compositeRule:!0},J);$.assign(G,(0,e._)`${G} || ${J}`),v.mergeValidEvaluated(X,J)||$.if((0,e.not)(G))})),v.result(G,()=>v.reset(),()=>v.error(!0))}return Ce.validateUnion=x,Ce}var Ks;function I0(){if(Ks)return Ze;Ks=1,Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.validateKeywordUsage=Ze.validSchemaType=Ze.funcKeywordCode=Ze.macroKeywordCode=void 0;const e=we(),t=We(),r=nt(),n=fi();function i(y,h){const{gen:O,keyword:w,schema:P,parentSchema:E,it:x}=y,v=h.macro.call(x.self,P,E,x),$=u(O,w,v);x.opts.validateSchema!==!1&&x.self.validateSchema(v,!0);const g=O.name("valid");y.subschema({schema:v,schemaPath:e.nil,errSchemaPath:`${x.errSchemaPath}/${w}`,topSchemaRef:$,compositeRule:!0},g),y.pass(g,()=>y.error(!0))}Ze.macroKeywordCode=i;function o(y,h){var O;const{gen:w,keyword:P,schema:E,parentSchema:x,$data:v,it:$}=y;p($,h);const g=!v&&h.compile?h.compile.call($.self,E,x,$):h.validate,T=u(w,P,g),j=w.let("valid");y.block$data(j,B),y.ok((O=h.valid)!==null&&O!==void 0?O:j);function B(){if(h.errors===!1)J(),h.modifying&&a(y),oe(()=>y.error());else{const Q=h.async?V():G();h.modifying&&a(y),oe(()=>c(y,Q))}}function V(){const Q=w.let("ruleErrs",null);return w.try(()=>J((0,e._)`await `),X=>w.assign(j,!1).if((0,e._)`${X} instanceof ${$.ValidationError}`,()=>w.assign(Q,(0,e._)`${X}.errors`),()=>w.throw(X))),Q}function G(){const Q=(0,e._)`${T}.errors`;return w.assign(Q,null),J(e.nil),Q}function J(Q=h.async?(0,e._)`await `:e.nil){const X=$.opts.passContext?t.default.this:t.default.self,me=!("compile"in h&&!v||h.schema===!1);w.assign(j,(0,e._)`${Q}${(0,r.callValidateCode)(y,T,X,me)}`,h.modifying)}function oe(Q){var X;w.if((0,e.not)((X=h.valid)!==null&&X!==void 0?X:j),Q)}}Ze.funcKeywordCode=o;function a(y){const{gen:h,data:O,it:w}=y;h.if(w.parentData,()=>h.assign(O,(0,e._)`${w.parentData}[${w.parentDataProperty}]`))}function c(y,h){const{gen:O}=y;O.if((0,e._)`Array.isArray(${h})`,()=>{O.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${h} : ${t.default.vErrors}.concat(${h})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(y)},()=>y.error())}function p({schemaEnv:y},h){if(h.async&&!y.$async)throw new Error("async keyword in sync schema")}function u(y,h,O){if(O===void 0)throw new Error(`keyword "${h}" failed to compile`);return y.scopeValue("keyword",typeof O=="function"?{ref:O}:{ref:O,code:(0,e.stringify)(O)})}function f(y,h,O=!1){return!h.length||h.some(w=>w==="array"?Array.isArray(y):w==="object"?y&&typeof y=="object"&&!Array.isArray(y):typeof y==w||O&&typeof y>"u")}Ze.validSchemaType=f;function m({schema:y,opts:h,self:O,errSchemaPath:w},P,E){if(Array.isArray(P.keyword)?!P.keyword.includes(E):P.keyword!==E)throw new Error("ajv implementation error");const x=P.dependencies;if(x?.some(v=>!Object.prototype.hasOwnProperty.call(y,v)))throw new Error(`parent schema must have dependencies of ${E}: ${x.join(",")}`);if(P.validateSchema&&!P.validateSchema(y[E])){const $=`keyword "${E}" value is invalid at path "${w}": `+O.errorsText(P.validateSchema.errors);if(h.validateSchema==="log")O.logger.error($);else throw new Error($)}}return Ze.validateKeywordUsage=m,Ze}var ut={},Ws;function q0(){if(Ws)return ut;Ws=1,Object.defineProperty(ut,"__esModule",{value:!0}),ut.extendSubschemaMode=ut.extendSubschemaData=ut.getSubschema=void 0;const e=we(),t=Ae();function r(o,{keyword:a,schemaProp:c,schema:p,schemaPath:u,errSchemaPath:f,topSchemaRef:m}){if(a!==void 0&&p!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(a!==void 0){const y=o.schema[a];return c===void 0?{schema:y,schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(a)}`,errSchemaPath:`${o.errSchemaPath}/${a}`}:{schema:y[c],schemaPath:(0,e._)`${o.schemaPath}${(0,e.getProperty)(a)}${(0,e.getProperty)(c)}`,errSchemaPath:`${o.errSchemaPath}/${a}/${(0,t.escapeFragment)(c)}`}}if(p!==void 0){if(u===void 0||f===void 0||m===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:p,schemaPath:u,topSchemaRef:m,errSchemaPath:f}}throw new Error('either "keyword" or "schema" must be passed')}ut.getSubschema=r;function n(o,a,{dataProp:c,dataPropType:p,data:u,dataTypes:f,propertyName:m}){if(u!==void 0&&c!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:y}=a;if(c!==void 0){const{errorPath:O,dataPathArr:w,opts:P}=a,E=y.let("data",(0,e._)`${a.data}${(0,e.getProperty)(c)}`,!0);h(E),o.errorPath=(0,e.str)`${O}${(0,t.getErrorPath)(c,p,P.jsPropertySyntax)}`,o.parentDataProperty=(0,e._)`${c}`,o.dataPathArr=[...w,o.parentDataProperty]}if(u!==void 0){const O=u instanceof e.Name?u:y.let("data",u,!0);h(O),m!==void 0&&(o.propertyName=m)}f&&(o.dataTypes=f);function h(O){o.data=O,o.dataLevel=a.dataLevel+1,o.dataTypes=[],a.definedProperties=new Set,o.parentData=a.data,o.dataNames=[...a.dataNames,O]}}ut.extendSubschemaData=n;function i(o,{jtdDiscriminator:a,jtdMetadata:c,compositeRule:p,createErrors:u,allErrors:f}){p!==void 0&&(o.compositeRule=p),u!==void 0&&(o.createErrors=u),f!==void 0&&(o.allErrors=f),o.jtdDiscriminator=a,o.jtdMetadata=c}return ut.extendSubschemaMode=i,ut}var He={},Mi={exports:{}},Qs;function C0(){if(Qs)return Mi.exports;Qs=1;var e=Mi.exports=function(n,i,o){typeof i=="function"&&(o=i,i={}),o=i.cb||o;var a=typeof o=="function"?o:o.pre||function(){},c=o.post||function(){};t(i,a,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,a,c,p,u,f,m,y){if(a&&typeof a=="object"&&!Array.isArray(a)){i(a,c,p,u,f,m,y);for(var h in a){var O=a[h];if(Array.isArray(O)){if(h in e.arrayKeywords)for(var w=0;w<O.length;w++)t(n,i,o,O[w],c+"/"+h+"/"+w,p,c,h,a,w)}else if(h in e.propsKeywords){if(O&&typeof O=="object")for(var P in O)t(n,i,o,O[P],c+"/"+h+"/"+r(P),p,c,h,a,P)}else(h in e.keywords||n.allKeys&&!(h in e.skipKeywords))&&t(n,i,o,O,c+"/"+h,p,c,h,a)}o(a,c,p,u,f,m,y)}}function r(n){return n.replace(/~/g,"~0").replace(/\//g,"~1")}return Mi.exports}var Gs;function mi(){if(Gs)return He;Gs=1,Object.defineProperty(He,"__esModule",{value:!0}),He.getSchemaRefs=He.resolveUrl=He.normalizeId=He._getFullPath=He.getFullPath=He.inlineRef=void 0;const e=Ae(),t=K.requireFastDeepEqual(),r=C0(),n=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(w,P=!0){return typeof w=="boolean"?!0:P===!0?!a(w):P?c(w)<=P:!1}He.inlineRef=i;const o=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function a(w){for(const P in w){if(o.has(P))return!0;const E=w[P];if(Array.isArray(E)&&E.some(a)||typeof E=="object"&&a(E))return!0}return!1}function c(w){let P=0;for(const E in w){if(E==="$ref")return 1/0;if(P++,!n.has(E)&&(typeof w[E]=="object"&&(0,e.eachItem)(w[E],x=>P+=c(x)),P===1/0))return 1/0}return P}function p(w,P="",E){E!==!1&&(P=m(P));const x=w.parse(P);return u(w,x)}He.getFullPath=p;function u(w,P){return w.serialize(P).split("#")[0]+"#"}He._getFullPath=u;const f=/#\/?$/;function m(w){return w?w.replace(f,""):""}He.normalizeId=m;function y(w,P,E){return E=m(E),w.resolve(P,E)}He.resolveUrl=y;const h=/^[a-z_][-a-z0-9._]*$/i;function O(w,P){if(typeof w=="boolean")return{};const{schemaId:E,uriResolver:x}=this.opts,v=m(w[E]||P),$={"":v},g=p(x,v,!1),T={},j=new Set;return r(w,{allKeys:!0},(G,J,oe,Q)=>{if(Q===void 0)return;const X=g+J;let me=$[Q];typeof G[E]=="string"&&(me=xe.call(this,G[E])),Te.call(this,G.$anchor),Te.call(this,G.$dynamicAnchor),$[J]=me;function xe(fe){const Pe=this.opts.uriResolver.resolve;if(fe=m(me?Pe(me,fe):fe),j.has(fe))throw V(fe);j.add(fe);let R=this.refs[fe];return typeof R=="string"&&(R=this.refs[R]),typeof R=="object"?B(G,R.schema,fe):fe!==m(X)&&(fe[0]==="#"?(B(G,T[fe],fe),T[fe]=G):this.refs[fe]=X),fe}function Te(fe){if(typeof fe=="string"){if(!h.test(fe))throw new Error(`invalid anchor "${fe}"`);xe.call(this,`#${fe}`)}}}),T;function B(G,J,oe){if(J!==void 0&&!t(G,J))throw V(oe)}function V(G){return new Error(`reference "${G}" resolves to more than one schema`)}}return He.getSchemaRefs=O,He}var Ys;function zt(){if(Ys)return pt;Ys=1,Object.defineProperty(pt,"__esModule",{value:!0}),pt.getData=pt.KeywordCxt=pt.validateFunctionCode=void 0;const e=T0(),t=Zn(),r=_l(),n=Zn(),i=k0(),o=I0(),a=q0(),c=we(),p=We(),u=mi(),f=Ae(),m=fi();function y(N){if(g(N)&&(j(N),$(N))){P(N);return}h(N,()=>(0,e.topBoolOrEmptySchema)(N))}pt.validateFunctionCode=y;function h({gen:N,validateName:z,schema:H,schemaEnv:Z,opts:ae},ye){ae.code.es5?N.func(z,(0,c._)`${p.default.data}, ${p.default.valCxt}`,Z.$async,()=>{N.code((0,c._)`"use strict"; ${x(H,ae)}`),w(N,ae),N.code(ye)}):N.func(z,(0,c._)`${p.default.data}, ${O(ae)}`,Z.$async,()=>N.code(x(H,ae)).code(ye))}function O(N){return(0,c._)`{${p.default.instancePath}="", ${p.default.parentData}, ${p.default.parentDataProperty}, ${p.default.rootData}=${p.default.data}${N.dynamicRef?(0,c._)`, ${p.default.dynamicAnchors}={}`:c.nil}, ${p.default.isAllOfVariant} = 0}={}`}function w(N,z){N.if(p.default.valCxt,()=>{N.var(p.default.instancePath,(0,c._)`${p.default.valCxt}.${p.default.instancePath}`),N.var(p.default.parentData,(0,c._)`${p.default.valCxt}.${p.default.parentData}`),N.var(p.default.parentDataProperty,(0,c._)`${p.default.valCxt}.${p.default.parentDataProperty}`),N.var(p.default.rootData,(0,c._)`${p.default.valCxt}.${p.default.rootData}`),N.var(p.default.isAllOfVariant,(0,c._)`${p.default.valCxt}.${p.default.isAllOfVariant}`),z.dynamicRef&&N.var(p.default.dynamicAnchors,(0,c._)`${p.default.valCxt}.${p.default.dynamicAnchors}`)},()=>{N.var(p.default.instancePath,(0,c._)`""`),N.var(p.default.parentData,(0,c._)`undefined`),N.var(p.default.parentDataProperty,(0,c._)`undefined`),N.var(p.default.rootData,p.default.data),N.var(p.default.isAllOfVariant,(0,c._)`0`),z.dynamicRef&&N.var(p.default.dynamicAnchors,(0,c._)`{}`)})}function P(N){const{schema:z,opts:H,gen:Z}=N;h(N,()=>{H.$comment&&z.$comment&&Q(N),G(N),Z.let(p.default.vErrors,null),Z.let(p.default.errors,0),H.unevaluated&&E(N),B(N),X(N)})}function E(N){const{gen:z,validateName:H}=N;N.evaluated=z.const("evaluated",(0,c._)`${H}.evaluated`),z.if((0,c._)`${N.evaluated}.dynamicProps`,()=>z.assign((0,c._)`${N.evaluated}.props`,(0,c._)`undefined`)),z.if((0,c._)`${N.evaluated}.dynamicItems`,()=>z.assign((0,c._)`${N.evaluated}.items`,(0,c._)`undefined`))}function x(N,z){const H=typeof N=="object"&&N[z.schemaId];return H&&(z.code.source||z.code.process)?(0,c._)`/*# sourceURL=${H} */`:c.nil}function v(N,z){if(g(N)&&(j(N),$(N))){T(N,z);return}(0,e.boolOrEmptySchema)(N,z)}function $({schema:N,self:z}){if(typeof N=="boolean")return!N;for(const H in N)if(z.RULES.all[H])return!0;return!1}function g(N){return typeof N.schema!="boolean"}function T(N,z){const{schema:H,gen:Z,opts:ae}=N;ae.$comment&&H.$comment&&Q(N),J(N),oe(N);const ye=Z.const("_errs",p.default.errors);B(N,ye),Z.var(z,(0,c._)`${ye} === ${p.default.errors}`)}function j(N){(0,f.checkUnknownRules)(N),V(N)}function B(N,z){if(N.opts.jtd)return xe(N,[],!1,z);const H=(0,t.getSchemaTypes)(N.schema),Z=(0,t.coerceAndCheckDataType)(N,H);xe(N,H,!Z,z)}function V(N){const{schema:z,errSchemaPath:H,opts:Z,self:ae}=N;z.$ref&&Z.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(z,ae.RULES)&&ae.logger.warn(`$ref: keywords ignored in schema at path "${H}"`)}function G(N){const{schema:z,opts:H}=N;z.default!==void 0&&H.useDefaults&&H.strictSchema&&(0,f.checkStrictMode)(N,"default is ignored in the schema root")}function J(N){const z=N.schema[N.opts.schemaId];z&&(N.baseId=(0,u.resolveUrl)(N.opts.uriResolver,N.baseId,z))}function oe(N){if(N.schema.$async&&!N.schemaEnv.$async)throw new Error("async schema in sync schema")}function Q({gen:N,schemaEnv:z,schema:H,errSchemaPath:Z,opts:ae}){const ye=H.$comment;if(ae.$comment===!0)N.code((0,c._)`${p.default.self}.logger.log(${ye})`);else if(typeof ae.$comment=="function"){const D=(0,c.str)`${Z}/$comment`,W=N.scopeValue("root",{ref:z.root});N.code((0,c._)`${p.default.self}.opts.$comment(${ye}, ${D}, ${W}.schema)`)}}function X(N){const{gen:z,schemaEnv:H,validateName:Z,ValidationError:ae,opts:ye}=N;H.$async?z.if((0,c._)`${p.default.errors} === 0`,()=>z.return(p.default.data),()=>z.throw((0,c._)`new ${ae}(${p.default.vErrors})`)):(z.assign((0,c._)`${Z}.errors`,p.default.vErrors),ye.unevaluated&&me(N),z.return((0,c._)`${p.default.errors} === 0`))}function me({gen:N,evaluated:z,props:H,items:Z}){H instanceof c.Name&&N.assign((0,c._)`${z}.props`,H),Z instanceof c.Name&&N.assign((0,c._)`${z}.items`,Z)}function xe(N,z,H,Z){const{gen:ae,schema:ye,data:D,allErrors:W,opts:ne,self:te}=N,{RULES:re}=te;if(ye.$ref&&(ne.ignoreKeywordsWithRef||!(0,f.schemaHasRulesButRef)(ye,re))){ae.block(()=>U(N,"$ref",re.all.$ref.definition));return}ne.jtd||fe(N,z),ae.block(()=>{for(const pe of re.rules)ce(pe);ce(re.post)});function ce(pe){(0,r.shouldUseGroup)(ye,pe)&&(pe.type?(ae.if((0,n.checkDataType)(pe.type,D,ne.strictNumbers)),Te(N,pe),z.length===1&&z[0]===pe.type&&H&&(ae.else(),(0,n.reportTypeError)(N)),ae.endIf()):Te(N,pe),W||ae.if((0,c._)`${p.default.errors} === ${Z||0}`))}}function Te(N,z){const{gen:H,schema:Z,opts:{useDefaults:ae}}=N;ae&&(0,i.assignDefaults)(N,z.type),H.block(()=>{for(const D of z.rules)((0,r.shouldUseRule)(Z,D)||ye(Z,D))&&U(N,D.keyword,D.definition,z.type)});function ye(D,W){return!!(W.keyword==="unevaluatedProperties"&&(D.properties||D.patternProperties)&&!N.isAllOfVariant&&N.opts.defaultUnevaluatedProperties===!1)}}function fe(N,z){N.schemaEnv.meta||!N.opts.strictTypes||(Pe(N,z),N.opts.allowUnionTypes||R(N,z),S(N,N.dataTypes))}function Pe(N,z){if(z.length){if(!N.dataTypes.length){N.dataTypes=z;return}z.forEach(H=>{_(N.dataTypes,H)||q(N,`type "${H}" not allowed by context "${N.dataTypes.join(",")}"`)}),b(N,z)}}function R(N,z){z.length>1&&!(z.length===2&&z.includes("null"))&&q(N,"use allowUnionTypes to allow union type keyword")}function S(N,z){const H=N.self.RULES.all;for(const Z in H){const ae=H[Z];if(typeof ae=="object"&&(0,r.shouldUseRule)(N.schema,ae)){const{type:ye}=ae.definition;ye.length&&!ye.some(D=>k(z,D))&&q(N,`missing type "${ye.join(",")}" for keyword "${Z}"`)}}}function k(N,z){return N.includes(z)||z==="number"&&N.includes("integer")}function _(N,z){return N.includes(z)||z==="integer"&&N.includes("number")}function b(N,z){const H=[];for(const Z of N.dataTypes)_(z,Z)?H.push(Z):z.includes("integer")&&Z==="number"&&H.push("integer");N.dataTypes=H}function q(N,z){const H=N.schemaEnv.baseId+N.errSchemaPath;z+=` at "${H}" (strictTypes)`,(0,f.checkStrictMode)(N,z,N.opts.strictTypes)}class F{constructor(z,H,Z){if((0,o.validateKeywordUsage)(z,H,Z),this.gen=z.gen,this.allErrors=z.allErrors,this.keyword=Z,this.data=z.data,this.schema=z.schema[Z],this.$data=H.$data&&z.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(z,this.schema,Z,this.$data),this.schemaType=H.schemaType,this.parentSchema=z.schema,this.params={},this.it=z,this.def=H,this.$data)this.schemaCode=z.gen.const("vSchema",he(this.$data,z));else if(this.schemaCode=this.schemaValue,!(0,o.validSchemaType)(this.schema,H.schemaType,H.allowUndefined))throw new Error(`${Z} value must be ${JSON.stringify(H.schemaType)}`);("code"in H?H.trackErrors:H.errors!==!1)&&(this.errsCount=z.gen.const("_errs",p.default.errors))}result(z,H,Z){this.failResult((0,c.not)(z),H,Z)}failResult(z,H,Z){this.gen.if(z),Z?Z():this.error(),H?(this.gen.else(),H(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(z,H){this.failResult((0,c.not)(z),void 0,H)}fail(z){if(z===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(z),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(z){if(!this.$data)return this.fail(z);const{schemaCode:H}=this;this.fail((0,c._)`${H} !== undefined && (${(0,c.or)(this.invalid$data(),z)})`)}error(z,H,Z){if(H){this.setParams(H),this._error(z,Z),this.setParams({});return}this._error(z,Z)}_error(z,H){(z?m.reportExtraError:m.reportError)(this,this.def.error,H)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(z){this.allErrors||this.gen.if(z)}setParams(z,H){H?Object.assign(this.params,z):this.params=z}block$data(z,H,Z=c.nil){this.gen.block(()=>{this.check$data(z,Z),H()})}check$data(z=c.nil,H=c.nil){if(!this.$data)return;const{gen:Z,schemaCode:ae,schemaType:ye,def:D}=this;Z.if((0,c.or)((0,c._)`${ae} === undefined`,H)),z!==c.nil&&Z.assign(z,!0),(ye.length||D.validateSchema)&&(Z.elseIf(this.invalid$data()),this.$dataError(),z!==c.nil&&Z.assign(z,!1)),Z.else()}invalid$data(){const{gen:z,schemaCode:H,schemaType:Z,def:ae,it:ye}=this;return(0,c.or)(D(),W());function D(){if(Z.length){if(!(H instanceof c.Name))throw new Error("ajv implementation error");const ne=Array.isArray(Z)?Z:[Z];return(0,c._)`${(0,n.checkDataTypes)(ne,H,ye.opts.strictNumbers,n.DataType.Wrong)}`}return c.nil}function W(){if(ae.validateSchema){const ne=z.scopeValue("validate$data",{ref:ae.validateSchema});return(0,c._)`!${ne}(${H})`}return c.nil}}subschema(z,H,Z){const ae=(0,a.getSubschema)(this.it,z);(0,a.extendSubschemaData)(ae,this.it,z),(0,a.extendSubschemaMode)(ae,z);const ye={...this.it,...ae,items:void 0,props:void 0,isAllOfVariant:Z};return v(ye,H),ye}mergeEvaluated(z,H){const{it:Z,gen:ae}=this;Z.opts.unevaluated&&(Z.props!==!0&&z.props!==void 0&&(Z.props=f.mergeEvaluated.props(ae,z.props,Z.props,H)),Z.items!==!0&&z.items!==void 0&&(Z.items=f.mergeEvaluated.items(ae,z.items,Z.items,H)))}mergeValidEvaluated(z,H){const{it:Z,gen:ae}=this;if(Z.opts.unevaluated&&(Z.props!==!0||Z.items!==!0))return ae.if(H,()=>this.mergeEvaluated(z,c.Name)),!0}}pt.KeywordCxt=F;function U(N,z,H,Z){const ae=new F(N,H,z);"code"in H?H.code(ae,Z):ae.$data&&H.validate?(0,o.funcKeywordCode)(ae,H):"macro"in H?(0,o.macroKeywordCode)(ae,H):(H.compile||H.validate)&&(0,o.funcKeywordCode)(ae,H)}const Y=/^\/(?:[^~]|~0|~1)*$/,le=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function he(N,{dataLevel:z,dataNames:H,dataPathArr:Z}){let ae,ye;if(N==="")return p.default.rootData;if(N[0]==="/"){if(!Y.test(N))throw new Error(`Invalid JSON-pointer: ${N}`);ae=N,ye=p.default.rootData}else{const te=le.exec(N);if(!te)throw new Error(`Invalid JSON-pointer: ${N}`);const re=+te[1];if(ae=te[2],ae==="#"){if(re>=z)throw new Error(ne("property/index",re));return Z[z-re]}if(re>z)throw new Error(ne("data",re));if(ye=H[z-re],!ae)return ye}let D=ye;const W=ae.split("/");for(const te of W)te&&(ye=(0,c._)`${ye}${(0,c.getProperty)((0,f.unescapeJsonPointer)(te))}`,D=(0,c._)`${D} && ${ye}`);return D;function ne(te,re){return`Cannot access ${te} ${re} levels up, current level is ${z}`}}return pt.getData=he,pt}var qr={},Js;function yr(){if(Js)return qr;Js=1,Object.defineProperty(qr,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return qr.default=e,qr}var Cr={},Xs;function Bt(){if(Xs)return Cr;Xs=1,Object.defineProperty(Cr,"__esModule",{value:!0});const e=mi();class t extends Error{constructor(n,i,o,a){super(a||`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 Cr.default=t,Cr}var Qe={},Zs;function hi(){if(Zs)return Qe;Zs=1,Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.resolveSchema=Qe.getCompilingSchema=Qe.resolveRef=Qe.compileSchema=Qe.SchemaEnv=void 0;const e=we(),t=yr(),r=We(),n=mi(),i=Ae(),o=zt();class a{constructor(E){var x;this.refs={},this.dynamicAnchors={};let v;typeof E.schema=="object"&&(v=E.schema),this.schema=E.schema,this.schemaId=E.schemaId,this.root=E.root||this,this.baseId=(x=E.baseId)!==null&&x!==void 0?x:(0,n.normalizeId)(v?.[E.schemaId||"$id"]),this.schemaPath=E.schemaPath,this.localRefs=E.localRefs,this.meta=E.meta,this.$async=v?.$async,this.refs={}}}Qe.SchemaEnv=a;function c(P){const E=f.call(this,P);if(E)return E;const x=(0,n.getFullPath)(this.opts.uriResolver,P.root.baseId),{es5:v,lines:$}=this.opts.code,{ownProperties:g}=this.opts,T=new e.CodeGen(this.scope,{es5:v,lines:$,ownProperties:g});let j;P.$async&&(j=T.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const B=T.scopeName("validate");P.validateName=B;const V={gen:T,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:T.scopeValue("schema",this.opts.code.source===!0?{ref:P.schema,code:(0,e.stringify)(P.schema)}:{ref:P.schema}),validateName:B,ValidationError:j,schema:P.schema,schemaEnv:P,rootId:x,baseId:P.baseId||x,schemaPath:e.nil,errSchemaPath:P.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let G;try{this._compilations.add(P),(0,o.validateFunctionCode)(V),T.optimize(this.opts.code.optimize);const J=T.toString();G=`const visitedNodesForRef = new WeakMap(); ${T.scopeRefs(r.default.scope)}return ${J}`,this.opts.code.process&&(G=this.opts.code.process(G,P));const Q=new Function(`${r.default.self}`,`${r.default.scope}`,G)(this,this.scope.get());if(this.scope.value(B,{ref:Q}),Q.errors=null,Q.schema=P.schema,Q.schemaEnv=P,P.$async&&(Q.$async=!0),this.opts.code.source===!0&&(Q.source={validateName:B,validateCode:J,scopeValues:T._values}),this.opts.unevaluated){const{props:X,items:me}=V;Q.evaluated={props:X instanceof e.Name?void 0:X,items:me instanceof e.Name?void 0:me,dynamicProps:X instanceof e.Name,dynamicItems:me instanceof e.Name},Q.source&&(Q.source.evaluated=(0,e.stringify)(Q.evaluated))}return P.validate=Q,P}catch(J){throw delete P.validate,delete P.validateName,G&&this.logger.error("Error compiling schema, function code:",G),J}finally{this._compilations.delete(P)}}Qe.compileSchema=c;function p(P,E,x){var v;const $=(0,n.resolveUrl)(this.opts.uriResolver,E,x),g=P.refs[$];if(g)return g;let T=y.call(this,P,$);if(T===void 0){const j=(v=P.localRefs)===null||v===void 0?void 0:v[$],{schemaId:B}=this.opts;j&&(T=new a({schema:j,schemaId:B,root:P,baseId:E}))}if(T===void 0&&this.opts.loadSchemaSync){const j=this.opts.loadSchemaSync(E,x,$);j&&!(this.refs[$]||this.schemas[$])&&(this.addSchema(j,$,void 0),T=y.call(this,P,$))}if(T!==void 0)return P.refs[$]=u.call(this,T)}Qe.resolveRef=p;function u(P){return(0,n.inlineRef)(P.schema,this.opts.inlineRefs)?P.schema:P.validate?P:c.call(this,P)}function f(P){for(const E of this._compilations)if(m(E,P))return E}Qe.getCompilingSchema=f;function m(P,E){return P.schema===E.schema&&P.root===E.root&&P.baseId===E.baseId}function y(P,E){let x;for(;typeof(x=this.refs[E])=="string";)E=x;return x||this.schemas[E]||h.call(this,P,E)}function h(P,E){const x=this.opts.uriResolver.parse(E),v=(0,n._getFullPath)(this.opts.uriResolver,x);let $=(0,n.getFullPath)(this.opts.uriResolver,P.baseId,void 0);if(Object.keys(P.schema).length>0&&v===$)return w.call(this,x,P);const g=(0,n.normalizeId)(v),T=this.refs[g]||this.schemas[g];if(typeof T=="string"){const j=h.call(this,P,T);return typeof j?.schema!="object"?void 0:w.call(this,x,j)}if(typeof T?.schema=="object"){if(T.validate||c.call(this,T),g===(0,n.normalizeId)(E)){const{schema:j}=T,{schemaId:B}=this.opts,V=j[B];return V&&($=(0,n.resolveUrl)(this.opts.uriResolver,$,V)),new a({schema:j,schemaId:B,root:P,baseId:$})}return w.call(this,x,T)}}Qe.resolveSchema=h;const O=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function w(P,{baseId:E,schema:x,root:v}){var $;if((($=P.fragment)===null||$===void 0?void 0:$[0])!=="/")return;for(const j of P.fragment.slice(1).split("/")){if(typeof x=="boolean")return;const B=x[(0,i.unescapeFragment)(j)];if(B===void 0)return;x=B;const V=typeof x=="object"&&x[this.opts.schemaId];!O.has(j)&&V&&(E=(0,n.resolveUrl)(this.opts.uriResolver,E,V))}let g;if(typeof x!="boolean"&&x.$ref&&!(0,i.schemaHasRulesButRef)(x,this.RULES)){const j=(0,n.resolveUrl)(this.opts.uriResolver,E,x.$ref);g=h.call(this,v,j)}const{schemaId:T}=this.opts;if(g=g||new a({schema:x,schemaId:T,root:v,baseId:E}),g.schema!==g.root.schema)return g}return Qe}const j0="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",M0="Meta-schema for $data reference (JSON AnySchema extension proposal)",D0="object",N0=["$data"],L0={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},U0=!1,F0={$id:j0,description:M0,type:D0,required:N0,properties:L0,additionalProperties:U0};var jr={},Xt={exports:{}},Di,ea;function kl(){if(ea)return Di;ea=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),a=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),c=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),p=new Array(256);{const R="0123456789ABCDEF";for(let S=0;S<256;S++)p[S]="%"+R[S>>4]+R[S&15]}function u(R){return R<2048?p[192|R>>6]+p[128|R&63]:R<65536?p[224|R>>12]+p[128|R>>6&63]+p[128|R&63]:p[240|R>>18]+p[128|R>>12&63]+p[128|R>>6&63]+p[128|R&63]}function f(R){let S="",k=0,_=0;for(_=0;_<R.length;_++)if(k=R[_].charCodeAt(0),k!==48){if(!(k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return"";S+=R[_];break}for(_+=1;_<R.length;_++){if(k=R[_].charCodeAt(0),!(k>=48&&k<=57||k>=65&&k<=70||k>=97&&k<=102))return"";S+=R[_]}return S}const m=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),y=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),h=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),O=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function w(R){if(R.length===0)return!1;for(let S=0;S<R.length;S++)if(!h(R[S])){if(R[S]==="%"&&S+2<R.length&&n(R.slice(S+1,S+3))){S+=2;continue}return!1}return!0}function P(R){let S=-1,k=0,_=-1,b=0;for(let U=0;U<R.length;U++)R[U]==="0"?(_===-1&&(_=U),b++,b>k&&(k=b,S=_)):(_=-1,b=0);if(k<2)return R.join(":");const q=R.slice(0,S).join(":"),F=R.slice(S+k).join(":");return q+"::"+F}function E(R){const S=R.indexOf("::");if(S!==-1&&R.indexOf("::",S+1)!==-1)return;const k=S===-1?R.split(":"):R.slice(0,S).split(":"),_=S===-1?[]:R.slice(S+2).split(":");S!==-1&&(k.length===1&&k[0]===""&&(k.length=0),_.length===1&&_[0]===""&&(_.length=0));const b=k.concat(_);let q=0;for(let U=0;U<b.length;U++){const Y=b[U];if(Y==="")return;if(Y.indexOf(".")!==-1){if(U!==b.length-1||S!==-1&&_.length===0||!t(Y))return;q+=2;continue}if(!m(Y))return;b[U]=parseInt(Y,16).toString(16),q++}if(S===-1)return q!==8?void 0:P(b);if(q>=8)return;const F=b.slice(0,k.length);for(let U=q;U<8;U++)F.push("0");for(let U=k.length;U<b.length;U++)F.push(b[U]);return P(F)}function x(R){const S=R[0]==="["&&R[R.length-1]==="]";if((R[0]==="["||R[R.length-1]==="]")&&!S)return{host:R,isIPV6:!1,error:!0};let _=S?R.slice(1,-1):R;if(S&&y(_))return _=_.toLowerCase(),{host:`[${_}]`,escapedHost:_,isIPV6:!1,isIPVFuture:!0};if(v(_,":")<2)return{host:R,isIPV6:!1,error:S};let b="";const q=_.indexOf("%");if(q!==-1){const U=_.slice(q,q+3).toLowerCase()==="%25"?3:1;if(b=_.slice(q+U),!w(b))return{host:R,isIPV6:!1,error:!0};_=_.slice(0,q)}const F=E(_);return F===void 0?{host:R,isIPV6:!1,error:!0}:{host:F+(b?"%"+b:""),escapedHost:F+(b?"%25"+b:""),isIPV6:!0}}function v(R,S){let k=0;for(let _=0;_<R.length;_++)R[_]===S&&k++;return k}function $(R){let S=R;const k=[];let _=-1,b=0;for(;b=S.length;){if(b===1){if(S===".")break;if(S==="/"){k.push("/");break}else{k.push(S);break}}else if(b===2){if(S[0]==="."){if(S[1]===".")break;if(S[1]==="/"){S=S.slice(2);continue}}else if(S[0]==="/"&&(S[1]==="."||S[1]==="/")){k.push("/");break}}else if(b===3&&S==="/.."){k.length!==0&&k.pop(),k.push("/");break}if(S[0]==="."){if(S[1]==="."){if(S[2]==="/"){S=S.slice(3);continue}}else if(S[1]==="/"){S=S.slice(2);continue}}else if(S[0]==="/"&&S[1]==="."){if(S[2]==="/"){S=S.slice(2);continue}else if(S[2]==="."&&S[3]==="/"){S=S.slice(3),k.length!==0&&k.pop();continue}}if((_=S.indexOf("/",1))===-1){k.push(S);break}else k.push(S.slice(0,_)),S=S.slice(_)}return k.join("")}const g={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},T=/[@/?#:]/g,j=/[@/?#]/g;function B(R,S){const k=S?j:T;return k.lastIndex=0,R.replace(k,_=>g[_])}function V(R,S=!1){if(R.indexOf("%")===-1)return R;let k="";for(let _=0;_<R.length;_++){if(R[_]==="%"&&_+2<R.length){const b=R.slice(_+1,_+3);if(n(b)){const q=b.toUpperCase(),F=String.fromCharCode(parseInt(q,16));S&&i(F)?k+=F:k+="%"+q,_+=2;continue}}k+=R[_]}return k}function G(R){let S="";for(let k=0;k<R.length;k++){const _=R[k];if(_==="%"&&k+2<R.length){const b=R.slice(k+1,k+3);if(n(b)){const q=b.toUpperCase(),F=String.fromCharCode(parseInt(q,16));F!=="."&&i(F)?S+=F:S+="%"+q,k+=2;continue}}if(o(_))S+=_;else{const b=R.charCodeAt(k);if(b<128)S+=xe(b)?_:p[b];else if(b<55296||b>57343)S+=u(b);else if(b<=56319&&k+1<R.length){const q=R.charCodeAt(k+1);q>=56320&&q<=57343?(S+=u(65536+(b-55296<<10)+(q-56320)),k++):S+=u(65533)}else S+=u(65533)}}return S}function J(R,S=!1){let k="",_=S&&R[0]!=="/";for(let b=0;b<R.length;b++){const q=R[b];if(q==="%"&&b+2<R.length){const F=R.slice(b+1,b+3);if(n(F)){k+="%"+F.toUpperCase(),b+=2;continue}}if(q==="/"&&(_=!1),o(q)&&(q!==":"||!_))k+=q;else{const F=R.charCodeAt(b);if(F<128)k+=p[F];else if(F<55296||F>57343)k+=u(F);else if(F<=56319&&b+1<R.length){const U=R.charCodeAt(b+1);U>=56320&&U<=57343?(k+=u(65536+(F-55296<<10)+(U-56320)),b++):k+=u(65533)}else k+=u(65533)}}return k}function oe(R,S){let k="";for(let _=0;_<R.length;_++){const b=R[_];if(b==="%"&&_+2<R.length){const q=R.slice(_+1,_+3);if(n(q)){k+="%"+q.toUpperCase(),_+=2;continue}}if(S(b))k+=b;else{const q=R.charCodeAt(_);if(q<128)k+=p[q];else if(q<55296||q>57343)k+=u(q);else if(q<=56319&&_+1<R.length){const F=R.charCodeAt(_+1);F>=56320&&F<=57343?(k+=u(65536+(q-55296<<10)+(F-56320)),_++):k+=u(65533)}else k+=u(65533)}}return k}function Q(R){return oe(R,c)}function X(R){return oe(R,a)}function me(R){return oe(R,a)}function xe(R){return R>=48&&R<=57||R>=65&&R<=90||R>=97&&R<=122||R===42||R===43||R===45||R===46||R===47||R===64||R===95}function Te(R){let S="";for(let k=0;k<R.length;k++){const _=R[k];if(_==="%"&&k+2<R.length){const b=R.slice(k+1,k+3);if(n(b)){const q=b.toUpperCase(),F=String.fromCharCode(parseInt(q,16));i(F)?S+=F:S+="%"+q,k+=2;continue}}if(a(_))S+=_;else{const b=R.charCodeAt(k);if(b<128)S+=xe(b)?_:p[b];else if(b<55296||b>57343)S+=u(b);else if(b<=56319&&k+1<R.length){const q=R.charCodeAt(k+1);q>=56320&&q<=57343?(S+=u(65536+(b-55296<<10)+(q-56320)),k++):S+=u(65533)}else S+=u(65533)}}return S}function fe(R){let S="";for(let k=0;k<R.length;k++){if(R[k]==="%"&&k+2<R.length){const _=R.slice(k+1,k+3);if(n(_)){S+="%"+_.toUpperCase(),k+=2;continue}}S+=escape(R[k])}return S}function Pe(R){const S=[];if(R.userinfo!==void 0&&(S.push(Q(R.userinfo)),S.push("@")),R.host!==void 0){let k=R.host;if(!t(k)){let _=x(k);_.isIPV6!==!0&&_.isIPVFuture!==!0&&(k=V(k,!0),_=x(k)),_.isIPV6===!0||_.isIPVFuture===!0?k=`[${_.escapedHost}]`:k=B(k,!1)}S.push(k)}if(typeof R.port=="number"||typeof R.port=="string"){const k=String(R.port);if(!r(k))throw new TypeError("URI port is malformed.");S.push(":"),S.push(k)}return S.length?S.join(""):void 0}return Di={nonSimpleDomain:O,recomposeAuthority:Pe,reescapeHostDelimiters:B,normalizePercentEncoding:V,normalizePathEncoding:G,serializePathEncoding:J,normalizeQueryFragmentEncoding:Te,encodeUserinfo:Q,encodeQuery:X,encodeFragment:me,escapePreservingEscapes:fe,removeDotSegments:$,isIPv4:t,isUUID:e,normalizeIPv6:x,stringArrayToHexStripped:f},Di}var Ni,ta;function z0(){if(ta)return Ni;ta=1;const{isUUID:e}=kl(),t=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,r=["http","https","ws","wss","urn","urn:uuid"];function n(g){return r.indexOf(g)!==-1}function i(g){return g.secure===!0?!0:g.secure===!1?!1:g.scheme?g.scheme.length===3&&(g.scheme[0]==="w"||g.scheme[0]==="W")&&(g.scheme[1]==="s"||g.scheme[1]==="S")&&(g.scheme[2]==="s"||g.scheme[2]==="S"):!1}function o(g){return g.host||(g.error=g.error||"HTTP URIs must have a host."),g}function a(g){const T=String(g.scheme).toLowerCase()==="https";return(g.port===(T?443:80)||g.port==="")&&(g.port=void 0),g.path||(g.path="/"),g}function c(g){return g.secure=i(g),g.resourceName=(g.path||"/")+(g.query?"?"+g.query:""),g.path=void 0,g.query=void 0,g}function p(g){if((g.port===(i(g)?443:80)||g.port==="")&&(g.port=void 0),typeof g.secure=="boolean"&&(g.scheme=g.secure?"wss":"ws",g.secure=void 0),g.resourceName){const T=g.resourceName.indexOf("?"),j=T===-1?g.resourceName:g.resourceName.slice(0,T);g.path=j&&j!=="/"?j:void 0,g.query=T===-1?void 0:g.resourceName.slice(T+1),g.resourceName=void 0}return g.fragment=void 0,g}function u(g,T){if(!g.path)return g.error="URN can not be parsed",g;const j=g.path.match(t);if(j&&j[0]===g.path){const B=T.scheme||g.scheme||"urn";g.nid=j[1].toLowerCase(),g.nss=j[2];const V=`${B}:${T.nid||g.nid}`,G=$(V);g.path=void 0,G&&(g=G.parse(g,T))}else g.error=g.error||"URN can not be parsed.";return g}function f(g,T){if(g.nid===void 0)throw new Error("URN without nid cannot be serialized");const j=T.scheme||g.scheme||"urn",B=g.nid.toLowerCase(),V=`${j}:${T.nid||B}`,G=$(V);G&&(g=G.serialize(g,T));const J=g,oe=g.nss;return J.path=`${B||T.nid}:${oe}`,T.skipEscape=!0,J}function m(g,T){const j=g;return j.uuid=j.nss,j.nss=void 0,!T.tolerant&&(!j.uuid||!e(j.uuid))&&(j.error=j.error||"UUID is not valid."),j}function y(g){const T=g;return T.nss=(g.uuid||"").toLowerCase(),T}const h={scheme:"http",domainHost:!0,parse:o,serialize:a},O={scheme:"https",domainHost:h.domainHost,parse:o,serialize:a},w={scheme:"ws",domainHost:!0,parse:c,serialize:p},P={scheme:"wss",domainHost:w.domainHost,parse:w.parse,serialize:w.serialize},v={http:h,https:O,ws:w,wss:P,urn:{scheme:"urn",parse:u,serialize:f,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:m,serialize:y,skipNormalize:!0}};Object.setPrototypeOf(v,null);function $(g){return g&&(v[g]||v[g.toLowerCase()])||void 0}return Ni={wsIsSecure:i,SCHEMES:v,isValidSchemeName:n,getSchemeHandler:$},Ni}var ra;function B0(){if(ra)return Xt.exports;ra=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:r,normalizePercentEncoding:n,normalizePathEncoding:i,serializePathEncoding:o,normalizeQueryFragmentEncoding:a,encodeQuery:c,encodeFragment:p,reescapeHostDelimiters:u,isIPv4:f,nonSimpleDomain:m}=kl(),{SCHEMES:y,getSchemeHandler:h}=z0(),O=/^[A-Za-z][A-Za-z0-9+.-]*$/u,w="URI scheme is malformed.";function P(R){const S=unescape(String(R));if(!O.test(S))throw new TypeError(w);return S}function E(R,S){return typeof R=="string"?R=xe(R,S):typeof R=="object"&&(R=me(g(R,S),S)),R}function x(R,S,k){const _=k?Object.assign({scheme:"null"},k):{scheme:"null"},{parsed:b,malformedAuthorityOrPort:q,malformedPercentEncoding:F,malformedSchemeSpecific:U,malformedHost:Y,malformedScheme:le}=X(R,_),{parsed:he,malformedAuthorityOrPort:N,malformedPercentEncoding:z,malformedSchemeSpecific:H,malformedHost:Z,malformedScheme:ae}=X(S,_);if(q||N||F||z||U||H||Y||Z||le||ae)throw new Error(b.error||he.error||"URI is malformed.");const ye=v(b,he,_,!0),D=h(k&&k.scheme||ye.scheme),W=ye.host,ne=W!==void 0&&W!==""&&(f(W)||e(W).isIPV6);Q(ye,k||{},D,ne);const te=W&&W.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(W);if(ye.error&&!te)throw new Error(ye.error);return _.skipEscape=!0,g(ye,_)}function v(R,S,k,_){const b={};return _||(R=me(g(R,k),k),S=me(g(S,k),k)),k=k||{},!k.tolerant&&S.scheme?(b.scheme=S.scheme,b.userinfo=S.userinfo,b.host=S.host,b.port=S.port,b.path=t(S.path||""),b.query=S.query):(S.userinfo!==void 0||S.host!==void 0||S.port!==void 0?(b.userinfo=S.userinfo,b.host=S.host,b.port=S.port,b.path=t(S.path||""),b.query=S.query):(S.path?(S.path[0]==="/"?b.path=t(S.path):((R.userinfo!==void 0||R.host!==void 0||R.port!==void 0)&&!R.path?b.path="/"+S.path:R.path?b.path=R.path.slice(0,R.path.lastIndexOf("/")+1)+S.path:b.path=S.path,b.path=t(b.path)),b.query=S.query):(b.path=R.path,S.query!==void 0?b.query=S.query:b.query=R.query),b.userinfo=R.userinfo,b.host=R.host,b.port=R.port),b.scheme=R.scheme),b.fragment=S.fragment,b}function $(R,S,k){const _=fe(R,k),b=fe(S,k);return _!==void 0&&b!==void 0&&_===b}function g(R,S){const k={host:R.host,scheme:R.scheme,userinfo:R.userinfo,port:R.port,path:R.path,query:R.query,nid:R.nid,nss:R.nss,uuid:R.uuid,fragment:R.fragment,reference:R.reference,resourceName:R.resourceName,secure:R.secure,error:""},_=Object.assign({},S),b=[];k.scheme&&(k.scheme=P(k.scheme));const q=h(_.scheme||k.scheme);q&&q.serialize&&q.serialize(k,_);const F=k.userinfo!==void 0||k.host!==void 0||k.port!==void 0,U=!_.skipEscape&&k.scheme===void 0&&!F;k.path!==void 0&&(_.skipEscape?k.path=n(k.path):k.path=o(k.path,U)),_.reference!=="suffix"&&k.scheme&&(k.scheme=P(k.scheme),b.push(k.scheme,":"));const Y=r(k);if(Y!==void 0&&(_.reference!=="suffix"&&b.push("//"),b.push(Y),k.path&&k.path[0]!=="/"&&b.push("/")),k.path!==void 0){let le=k.path;!_.absolutePath&&(!q||!q.absolutePath)&&(le=t(le)),U&&(le=o(le,!0)),Y===void 0&&le[0]==="/"&&le[1]==="/"&&(le="/%2F"+le.slice(2)),b.push(le)}return k.query!==void 0&&b.push("?",c(k.query)),k.fragment!==void 0&&b.push("#",p(k.fragment)),b.join("")}const T=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,j=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,B=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function V(R,S){if(S[2]!==void 0&&R.path&&R.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof R.port=="number"&&(R.port<0||R.port>65535))return"URI port is malformed."}function G(R){if(R===void 0)return!1;let S=R.indexOf("%");for(;S!==-1;){if(S+2>=R.length||!/^[\da-f]{2}$/iu.test(R.slice(S+1,S+3)))return!0;S=R.indexOf("%",S+3)}return!1}function J(R){return R[0]==="["&&R[R.length-1]==="]"}function oe(R){const S=R[4];return G(R[3])||S!==void 0&&!J(S)&&G(S)||G(R[6])||G(R[7])||G(R[8])}function Q(R,S,k,_){if(!S.unicodeSupport&&(!k||!k.unicodeSupport)&&R.host&&!J(R.host)&&(S.domainHost||k&&k.domainHost)&&_===!1&&m(R.host))try{R.host=new URL("http://"+R.host).hostname}catch(b){return R.error=R.error||"Host's domain name can not be converted to ASCII: "+b,!0}return!1}function X(R,S){const k=Object.assign({},S),_={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let b=!1,q=!1,F=!1,U=!1,Y=!1,le=!1,he=!1;k.reference==="suffix"&&(k.scheme?R=k.scheme+":"+R:R="//"+R);const N=R.match(j);N!==null&&N[1].indexOf("\\")!==-1&&(_.error="URI authority must not contain a literal backslash.",b=!0);const z=R.match(B);if(z!==null){const Z=z[1],ae=Z.replace(/[\t\n\r]/g,"");ae.length>=2&&(ae.slice(0,2)!=="//"?(_.error=_.error||"URI authority must not contain a literal backslash.",b=!0):Z.length!==ae.length&&(_.error=_.error||"URI authority introducer must not contain whitespace.",b=!0))}const H=R.match(T);if(H){if(_.scheme=H[1],_.userinfo=H[3],_.host=H[4],_.port=parseInt(H[5],10),_.path=H[6]||"",_.query=H[7],_.fragment=H[8],_.scheme!==void 0){const ye=unescape(_.scheme);O.test(ye)?_.scheme=ye.toLowerCase():(_.error=_.error||w,le=!0)}q=oe(H),q&&(_.error=_.error||"URI contains malformed percent-encoding."),isNaN(_.port)&&(_.port=H[5]);const Z=V(_,H);if(Z!==void 0&&(_.error=_.error||Z,b=!0),_.host)if(f(_.host)===!1){const D=J(_.host),W=_.host.indexOf("[")!==-1||_.host.indexOf("]")!==-1,ne=e(_.host);he=ne.isIPV6||ne.isIPVFuture===!0,Y=W&&(!D||ne.error===!0),_.host=he?ne.host:ne.host.toLowerCase(),Y&&(_.error=_.error||"URI host is malformed.",b=!0)}else he=!0;_.scheme===void 0&&_.userinfo===void 0&&_.host===void 0&&_.port===void 0&&_.query===void 0&&!_.path?_.reference="same-document":_.scheme===void 0?_.reference="relative":_.fragment===void 0?_.reference="absolute":_.reference="uri",k.reference&&k.reference!=="suffix"&&k.reference!==_.reference&&(_.error=_.error||"URI is not a "+k.reference+" reference.");const ae=h(k.scheme||_.scheme);if(Y||(U=Q(_,k,ae,he)),R.indexOf("%")!==-1&&_.host!==void 0&&!Y){let ye=he?_.host:n(_.host,!0);he||(ye=n(ye.toLowerCase())),_.host=u(ye,he)}(!ae||ae&&!ae.skipNormalize)&&(_.path&&(_.path=i(_.path)),_.query&&(_.query=a(_.query)),_.fragment&&(_.fragment=a(_.fragment))),ae&&ae.parse&&(ae.parse(_,k),ae===y.urn&&_.nid===void 0&&(F=!0))}else _.error=_.error||"URI can not be parsed.";return{parsed:_,malformedAuthorityOrPort:b,malformedPercentEncoding:q,malformedSchemeSpecific:F,malformedHost:U,malformedScheme:le}}function me(R,S){return X(R,S).parsed}function xe(R,S){return Te(R,S).normalized}function Te(R,S){const{parsed:k,malformedAuthorityOrPort:_,malformedPercentEncoding:b,malformedSchemeSpecific:q,malformedHost:F,malformedScheme:U}=X(R,S);return{normalized:_||b||q||F||U?R:g(k,S),malformedAuthorityOrPort:_,malformedPercentEncoding:b,malformedSchemeSpecific:q,malformedHost:F,malformedScheme:U}}function fe(R,S){if(typeof R!="string"&&typeof R!="object")return;let k;try{k=typeof R=="string"?R:g(R,S)}catch{return}const{normalized:_,malformedAuthorityOrPort:b,malformedPercentEncoding:q,malformedSchemeSpecific:F,malformedHost:U,malformedScheme:Y}=Te(k,S);return b||q||F||U||Y?void 0:_}const Pe={SCHEMES:y,normalize:E,resolve:x,resolveComponent:v,equal:$,serialize:g,parse:me};return Xt.exports=Pe,Xt.exports.default=Pe,Xt.exports.fastUri=Pe,Xt.exports}var na;function V0(){if(na)return jr;na=1,Object.defineProperty(jr,"__esModule",{value:!0});const e=B0();return e.code='require("ajv/dist/runtime/uri").default',jr.default=e,jr}var ia;function Jo(){return ia||(ia=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=zt();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var r=we();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=yr(),i=Bt(),o=$l(),a=hi(),c=we(),p=mi(),u=Zn(),f=Ae(),m=F0,y=V0(),h=(R,S)=>new RegExp(R,S);h.code="new RegExp";const O=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],w=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."},E={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},x=200;function v(R){var S,k,_,b,q,F,U,Y,le,he,N,z,H,Z,ae,ye,D,W,ne,te,re,ce,pe,ue,be;const je=R.strict,s=(S=R.code)===null||S===void 0?void 0:S.optimize,l=s===!0||s===void 0?1:s||0,d=(_=(k=R.code)===null||k===void 0?void 0:k.regExp)!==null&&_!==void 0?_:h,A=(b=R.uriResolver)!==null&&b!==void 0?b:y.default;return{strictSchema:(F=(q=R.strictSchema)!==null&&q!==void 0?q:je)!==null&&F!==void 0?F:!0,strictNumbers:(Y=(U=R.strictNumbers)!==null&&U!==void 0?U:je)!==null&&Y!==void 0?Y:!0,strictTypes:(he=(le=R.strictTypes)!==null&&le!==void 0?le:je)!==null&&he!==void 0?he:"log",strictTuples:(z=(N=R.strictTuples)!==null&&N!==void 0?N:je)!==null&&z!==void 0?z:"log",strictRequired:(Z=(H=R.strictRequired)!==null&&H!==void 0?H:je)!==null&&Z!==void 0?Z:!1,code:R.code?{...R.code,optimize:l,regExp:d}:{optimize:l,regExp:d},loopRequired:(ae=R.loopRequired)!==null&&ae!==void 0?ae:x,loopEnum:(ye=R.loopEnum)!==null&&ye!==void 0?ye:x,meta:(D=R.meta)!==null&&D!==void 0?D:!0,messages:(W=R.messages)!==null&&W!==void 0?W:!0,inlineRefs:(ne=R.inlineRefs)!==null&&ne!==void 0?ne:!0,schemaId:(te=R.schemaId)!==null&&te!==void 0?te:"$id",addUsedSchema:(re=R.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(ce=R.validateSchema)!==null&&ce!==void 0?ce:!0,validateFormats:(pe=R.validateFormats)!==null&&pe!==void 0?pe:!0,unicodeRegExp:(ue=R.unicodeRegExp)!==null&&ue!==void 0?ue:!0,int32range:(be=R.int32range)!==null&&be!==void 0?be:!0,uriResolver:A}}class ${constructor(S={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,S=this.opts={...S,...v(S)};const{es5:k,lines:_}=this.opts.code;this.scope=new c.ValueScope({scope:{},prefixes:w,es5:k,lines:_}),this.logger=oe(S.logger);const b=S.validateFormats;S.validateFormats=!1,this.RULES=(0,o.getRules)(),g.call(this,P,S,"NOT SUPPORTED"),g.call(this,E,S,"DEPRECATED","warn"),this._metaOpts=G.call(this),S.formats&&B.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),S.keywords&&V.call(this,S.keywords),typeof S.meta=="object"&&this.addMetaSchema(S.meta),j.call(this),S.validateFormats=b}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:S,meta:k,schemaId:_}=this.opts;let b=m;_==="id"&&(b={...m},b.id=b.$id,delete b.$id),k&&S&&this.addMetaSchema(b,b[_],!1)}defaultMeta(){const{meta:S,schemaId:k}=this.opts;return this.opts.defaultMeta=typeof S=="object"?S[k]||S:void 0}setDefaultUnevaluatedProperties(S){this.opts.defaultUnevaluatedProperties=S}validate(S,k){let _;if(typeof S=="string"){if(_=this.getSchema(S),!_)throw new Error(`no schema with key or ref "${S}"`)}else _=this.compile(S);const b=_(k);return"$async"in _||(this.errors=_.errors),b}compile(S,k){const _=this._addSchema(S,k);return _.validate||this._compileSchemaEnv(_)}compileAsync(S,k){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:_}=this.opts;return b.call(this,S,k);async function b(he,N){await q.call(this,he.$schema);const z=this._addSchema(he,N);return z.validate||F.call(this,z)}async function q(he){he&&!this.getSchema(he)&&await b.call(this,{$ref:he},!0)}async function F(he){try{return this._compileSchemaEnv(he)}catch(N){if(!(N instanceof i.default))throw N;return U.call(this,N),await Y.call(this,N.missingSchema),F.call(this,he)}}function U({missingSchema:he,missingRef:N}){if(this.refs[he])throw new Error(`AnySchema ${he} is loaded but ${N} cannot be resolved`)}async function Y(he){const N=await le.call(this,he);this.refs[he]||await q.call(this,N.$schema),this.refs[he]||this.addSchema(N,he,k)}async function le(he){const N=this._loading[he];if(N)return N;try{return await(this._loading[he]=_(he))}finally{delete this._loading[he]}}}addSchema(S,k,_,b=this.opts.validateSchema){if(Array.isArray(S)){for(const F of S)this.addSchema(F,void 0,_,b);return this}let q;if(typeof S=="object"){const{schemaId:F}=this.opts;if(q=S[F],q!==void 0&&typeof q!="string")throw new Error(`schema ${F} must be string`)}return k=(0,p.normalizeId)(k||q),this._checkUnique(k),this.schemas[k]=this._addSchema(S,_,k,b,!0),this}addMetaSchema(S,k,_=this.opts.validateSchema){return this.addSchema(S,k,!0,_),this}validateSchema(S,k){if(typeof S=="boolean")return!0;let _;if(_=S.$schema,_!==void 0&&typeof _!="string")throw new Error("$schema must be a string");if(_=_||this.opts.defaultMeta||this.defaultMeta(),!_)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const b=this.validate(_,S);if(!b&&k){const q="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(q);else throw new Error(q)}return b}getSchema(S){let k;for(;typeof(k=T.call(this,S))=="string";)S=k;if(k===void 0){const{schemaId:_}=this.opts,b=new a.SchemaEnv({schema:{},schemaId:_});if(k=a.resolveSchema.call(this,b,S),!k)return;this.refs[S]=k}return k.validate||this._compileSchemaEnv(k)}removeSchema(S){if(S instanceof RegExp)return this._removeAllSchemas(this.schemas,S),this._removeAllSchemas(this.refs,S),this;switch(typeof S){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const k=T.call(this,S);return typeof k=="object"&&this._cache.delete(k.schema),delete this.schemas[S],delete this.refs[S],this}case"object":{const k=S;this._cache.delete(k);let _=S[this.opts.schemaId];return _&&(_=(0,p.normalizeId)(_),delete this.schemas[_],delete this.refs[_]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(S){for(const k of S)this.addKeyword(k);return this}addKeyword(S,k){let _;if(typeof S=="string")_=S,typeof k=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),k.keyword=_);else if(typeof S=="object"&&k===void 0){if(k=S,_=k.keyword,Array.isArray(_)&&!_.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(X.call(this,_,k),!k)return(0,f.eachItem)(_,q=>me.call(this,q)),this;Te.call(this,k);const b={...k,type:(0,u.getJSONTypes)(k.type),schemaType:(0,u.getJSONTypes)(k.schemaType)};return(0,f.eachItem)(_,b.type.length===0?q=>me.call(this,q,b):q=>b.type.forEach(F=>me.call(this,q,b,F))),this}getKeyword(S){const k=this.RULES.all[S];return typeof k=="object"?k.definition:!!k}removeKeyword(S){const{RULES:k}=this;delete k.keywords[S],delete k.all[S];for(const _ of k.rules){const b=_.rules.findIndex(q=>q.keyword===S);b>=0&&_.rules.splice(b,1)}return this}addFormat(S,k){return typeof k=="string"&&(k=new RegExp(k)),this.formats[S]=k,this}errorsText(S=this.errors,{separator:k=", ",dataVar:_="data"}={}){return!S||S.length===0?"No errors":S.map(b=>`${_}${b.instancePath} ${b.message}`).reduce((b,q)=>b+k+q)}$dataMetaSchema(S,k){const _=this.RULES.all;S=JSON.parse(JSON.stringify(S));for(const b of k){const q=b.split("/").slice(1);let F=S;for(const U of q)F=F[U];for(const U in _){const Y=_[U];if(typeof Y!="object")continue;const{$data:le}=Y.definition,he=F[U];le&&he&&(F[U]=Pe(he))}}return S}_removeAllSchemas(S,k){for(const _ in S){const b=S[_];(!k||k.test(_))&&(typeof b=="string"?delete S[_]:b&&!b.meta&&(this._cache.delete(b.schema),delete S[_]))}}_addSchema(S,k,_,b=this.opts.validateSchema,q=this.opts.addUsedSchema){let F;const{schemaId:U}=this.opts;if(typeof S=="object")F=S[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof S!="boolean")throw new Error("schema must be object or boolean")}let Y=this._cache.get(S);if(Y!==void 0)return Y;_=(0,p.normalizeId)(F||_);const le=p.getSchemaRefs.call(this,S,_);return Y=new a.SchemaEnv({schema:S,schemaId:U,meta:k,baseId:_,localRefs:le}),this._cache.set(Y.schema,Y),q&&!_.startsWith("#")&&(_&&this._checkUnique(_),this.refs[_]=Y),b&&this.validateSchema(S,!0),Y}_checkUnique(S){if(this.schemas[S]||this.refs[S])throw new Error(`schema with key or id "${S}" already exists`)}_compileSchemaEnv(S){if(S.meta?this._compileMetaSchema(S):a.compileSchema.call(this,S),!S.validate)throw new Error("ajv implementation error");return S.validate}_compileMetaSchema(S){const k=this.opts;this.opts=this._metaOpts;try{a.compileSchema.call(this,S)}finally{this.opts=k}}}$.ValidationError=n.default,$.MissingRefError=i.default,e.default=$;function g(R,S,k,_="error"){for(const b in R){const q=b;q in S&&this.logger[_](`${k}: option ${b}. ${R[q]}`)}}function T(R){return R=(0,p.normalizeId)(R),this.schemas[R]||this.refs[R]}function j(){const R=this.opts.schemas;if(R)if(Array.isArray(R))this.addSchema(R);else for(const S in R)this.addSchema(R[S],S)}function B(){for(const R in this.opts.formats){const S=this.opts.formats[R];S&&this.addFormat(R,S)}}function V(R){if(Array.isArray(R)){this.addVocabulary(R);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const S in R){const k=R[S];k.keyword||(k.keyword=S),this.addKeyword(k)}}function G(){const R={...this.opts};for(const S of O)delete R[S];return R}const J={log(){},warn(){},error(){}};function oe(R){if(R===!1)return J;if(R===void 0)return console;if(R.log&&R.warn&&R.error)return R;throw new Error("logger must implement log, warn and error methods")}const Q=/^[a-z_$][a-z0-9_$:-]*$/i;function X(R,S){const{RULES:k}=this;if((0,f.eachItem)(R,_=>{if(k.keywords[_])throw new Error(`Keyword ${_} is already defined`);if(!Q.test(_))throw new Error(`Keyword ${_} has invalid name`)}),!!S&&S.$data&&!("code"in S||"validate"in S))throw new Error('$data keyword must have "code" or "validate" function')}function me(R,S,k){var _;const b=S?.post;if(k&&b)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:q}=this;let F=b?q.post:q.rules.find(({type:Y})=>Y===k);if(F||(F={type:k,rules:[]},q.rules.push(F)),q.keywords[R]=!0,!S)return;const U={keyword:R,definition:{...S,type:(0,u.getJSONTypes)(S.type),schemaType:(0,u.getJSONTypes)(S.schemaType)}};S.before?xe.call(this,F,U,S.before):F.rules.push(U),q.all[R]=U,(_=S.implements)===null||_===void 0||_.forEach(Y=>this.addKeyword(Y))}function xe(R,S,k){const _=R.rules.findIndex(b=>b.keyword===k);_>=0?R.rules.splice(_,0,S):(R.rules.push(S),this.logger.warn(`rule ${k} is not defined`))}function Te(R){let{metaSchema:S}=R;S!==void 0&&(R.$data&&this.opts.$data&&(S=Pe(S)),R.validateSchema=this.compile(S,!0))}const fe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function Pe(R){return{anyOf:[R,fe]}}})(ki)),ki}var Mr={},Dr={},Nr={},oa;function H0(){if(oa)return Nr;oa=1,Object.defineProperty(Nr,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Nr.default=e,Nr}var vt={},sa;function yi(){if(sa)return vt;sa=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.callRef=vt.getValidate=void 0;const e=Bt(),t=nt(),r=we(),n=We(),i=hi(),o=Ae(),a={keyword:"$ref",schemaType:"string",code(u){const{gen:f,schema:m,it:y}=u,{baseId:h,schemaEnv:O,validateName:w,opts:P,self:E}=y,{root:x}=O;if((m==="#"||m==="#/")&&h===x.baseId)return $();const v=i.resolveRef.call(E,x,h,m);if(v===void 0)throw new e.default(y.opts.uriResolver,h,m);if(v instanceof i.SchemaEnv)return g(v);return T(v);function $(){if(O===x)return p(u,w,O,O.$async);const j=f.scopeValue("root",{ref:x});return p(u,(0,r._)`${j}.validate`,x,x.$async)}function g(j){const B=c(u,j);p(u,B,j,j.$async)}function T(j){const B=f.scopeValue("schema",P.code.source===!0?{ref:j,code:(0,r.stringify)(j)}:{ref:j}),V=f.name("valid"),G=u.subschema({schema:j,dataTypes:[],schemaPath:r.nil,topSchemaRef:B,errSchemaPath:m},V,y.isAllOfVariant);u.mergeEvaluated(G),u.ok(V)}}};function c(u,f){const{gen:m}=u;return f.validate?m.scopeValue("validate",{ref:f.validate}):(0,r._)`${m.scopeValue("wrapper",{ref:f})}.validate`}vt.getValidate=c;function p(u,f,m,y){const{gen:h,it:O}=u,{allErrors:w,schemaEnv:P,opts:E}=O,x=E.passContext?n.default.this:r.nil;y?v():$();function v(){if(!P.$async)throw new Error("async schema referenced by sync schema");const j=h.let("valid");h.try(()=>{h.code((0,r._)`await ${(0,t.callValidateCode)(u,f,x)}`),T(f),w||h.assign(j,!0)},B=>{h.if((0,r._)`!(${B} instanceof ${O.ValidationError})`,()=>h.throw(B)),g(B),w||h.assign(j,!1)}),u.ok(j)}function $(){const j=h.name("visitedNodes");h.code((0,r._)`const ${j} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${f}) || new Set()`),h.if((0,r._)`!${j}.has(${u.data})`,()=>{h.code((0,r._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${f}, ${j})`),h.code((0,r._)`const dataNode = ${u.data}`),h.code((0,r._)`if (typeof dataNode === "object" && dataNode !== null) ${j}.add(dataNode)`);const B=u.result((0,t.callValidateCode)(u,f,x),()=>T(f),()=>g(f));return h.code((0,r._)`${j}.delete(dataNode)`),B})}function g(j){const B=(0,r._)`${j}.errors`;h.assign(n.default.vErrors,(0,r._)`${n.default.vErrors} === null ? ${B} : ${n.default.vErrors}.concat(${B})`),h.assign(n.default.errors,(0,r._)`${n.default.vErrors}.length`)}function T(j){var B;if(!O.opts.unevaluated)return;const V=(B=m?.validate)===null||B===void 0?void 0:B.evaluated;if(O.props!==!0)if(V&&!V.dynamicProps)V.props!==void 0&&(O.props=o.mergeEvaluated.props(h,V.props,O.props));else{const G=h.var("props",(0,r._)`${j}.evaluated.props`);O.props=o.mergeEvaluated.props(h,G,O.props,r.Name)}if(O.items!==!0)if(V&&!V.dynamicItems)V.items!==void 0&&(O.items=o.mergeEvaluated.items(h,V.items,O.items));else{const G=h.var("items",(0,r._)`${j}.evaluated.items`);O.items=o.mergeEvaluated.items(h,G,O.items,r.Name)}}}return vt.callRef=p,vt.default=a,vt}var aa;function Il(){if(aa)return Dr;aa=1,Object.defineProperty(Dr,"__esModule",{value:!0});const e=H0(),t=yi(),r=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Dr.default=r,Dr}var Lr={},Ur={},ca;function K0(){if(ca)return Ur;ca=1,Object.defineProperty(Ur,"__esModule",{value:!0});const e=we(),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:a})=>(0,e.str)`must be ${r[o].okStr} ${a}`,params:({keyword:o,schemaCode:a})=>(0,e._)`{comparison: ${r[o].okStr}, limit: ${a}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(o){const{keyword:a,data:c,schemaCode:p}=o;o.fail$data((0,e._)`${c} ${r[a].fail} ${p} || isNaN(${c})`)}};return Ur.default=i,Ur}var Fr={},pa;function W0(){if(pa)return Fr;pa=1,Object.defineProperty(Fr,"__esModule",{value:!0});const e=we(),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:a,it:c}=n,p=c.opts.multipleOfPrecision,u=i.let("res"),f=p?(0,e._)`Math.abs(Math.round(${u}) - ${u}) > 1e-${p}`:(0,e._)`${u} !== parseInt(${u})`;n.fail$data((0,e._)`(${a} === 0 || (${u} = ${o}/${a}, ${f}))`)}};return Fr.default=r,Fr}var zr={},Br={},la;function Q0(){if(la)return Br;la=1,Object.defineProperty(Br,"__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 Br.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Br}var ua;function G0(){if(ua)return zr;ua=1,Object.defineProperty(zr,"__esModule",{value:!0});const e=we(),t=Ae(),r=Q0(),i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:o,schemaCode:a}){const c=o==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${c} than ${a} characters`},params:({schemaCode:o})=>(0,e._)`{limit: ${o}}`},code(o){const{keyword:a,data:c,schemaCode:p,it:u}=o,f=a==="maxLength"?e.operators.GT:e.operators.LT,m=u.opts.unicode===!1?(0,e._)`${c}.length`:(0,e._)`${(0,t.useFunc)(o.gen,r.default)}(${c})`;o.fail$data((0,e._)`${m} ${f} ${p}`)}};return zr.default=i,zr}var Vr={},da;function Y0(){if(da)return Vr;da=1,Object.defineProperty(Vr,"__esModule",{value:!0});const e=nt(),t=Ae(),r=we(),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:a,data:c,$data:p,schema:u,schemaCode:f,it:m}=o,y=m.opts.unicodeRegExp?"u":"";if(p){const{regExp:h}=m.opts.code,O=h.code==="new RegExp"?(0,r._)`new RegExp`:(0,t.useFunc)(a,h),w=a.let("valid");a.try(()=>a.assign(w,(0,r._)`${O}(${f}, ${y}).test(${c})`),()=>a.assign(w,!1)),o.fail$data((0,r._)`!${w}`)}else{const h=(0,e.usePattern)(o,u);o.fail$data((0,r._)`!${h}.test(${c})`)}}};return Vr.default=i,Vr}var Hr={},fa;function J0(){if(fa)return Hr;fa=1,Object.defineProperty(Hr,"__esModule",{value:!0});const e=we(),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:a}=n,c=i==="maxProperties"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`Object.keys(${o}).length ${c} ${a}`)}};return Hr.default=r,Hr}var Kr={},ma;function X0(){if(ma)return Kr;ma=1,Object.defineProperty(Kr,"__esModule",{value:!0});const e=nt(),t=Tl(),r=we(),n=Ae(),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:a}})=>(0,r.str)`must have required property '${a}'`,params:({params:{missingProperty:a}})=>(0,r._)`{missingProperty: ${a}}`},code(a){const{gen:c,schema:p,schemaCode:u,data:f,$data:m,it:y}=a,{opts:h}=y;if(!m&&p.length===0)return;const O=p.length>=h.loopRequired;if(y.allErrors?w():P(),h.strictRequired){const v=a.parentSchema.properties,{definedProperties:$}=a.it;for(const g of p)if(v?.[g]===void 0&&!$.has(g)){const T=y.schemaEnv.baseId+y.errSchemaPath,j=`required property "${g}" is not defined at "${T}" (strictRequired)`;(0,n.checkStrictMode)(y,j,y.opts.strictRequired)}}function w(){var v;if(O||m)a.block$data(r.nil,E);else for(const $ of p){const g=(v=(0,t.getSkipCondition)(a.parentSchema,$))!==null&&v!==void 0?v:(0,r._)`false`;c.if((0,r.not)(g),()=>(0,e.checkReportMissingProp)(a,$))}}function P(){const v=c.let("missing");if(O||m){const $=c.let("valid",!0);a.block$data($,()=>x(v,$)),a.ok($)}else c.if((0,e.checkMissingProp)(a,p,v)),(0,e.reportMissingProp)(a,v),c.else()}function E(){c.forOf("prop",u,v=>{a.setParams({missingProperty:v}),c.if((0,e.noPropertyInData)(c,f,v,h.ownProperties),()=>a.error())})}function x(v,$){a.setParams({missingProperty:v}),c.forOf(v,u,()=>{c.assign($,(0,e.propertyInData)(c,f,v,h.ownProperties)),c.if((0,r.not)($),()=>{a.error(),c.break()})},r.nil)}}};return Kr.default=o,Kr}var Wr={},ha;function Z0(){if(ha)return Wr;ha=1,Object.defineProperty(Wr,"__esModule",{value:!0});const e=we(),t=We(),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 Wr.default=n,Wr}var Qr={},ya;function ew(){if(ya)return Qr;ya=1,Object.defineProperty(Qr,"__esModule",{value:!0});const e=we(),t=We(),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 Qr.default=n,Qr}var Gr={},ga;function tw(){if(ga)return Gr;ga=1,Object.defineProperty(Gr,"__esModule",{value:!0});const e=we(),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:a}=n,c=i==="maxItems"?e.operators.GT:e.operators.LT;n.fail$data((0,e._)`${o}.length ${c} ${a}`)}};return Gr.default=r,Gr}var Yr={},Jr={},ba;function Xo(){if(ba)return Jr;ba=1,Object.defineProperty(Jr,"__esModule",{value:!0});const e=K.requireFastDeepEqual();return e.code='require("ajv/dist/runtime/equal").default',Jr.default=e,Jr}var va;function rw(){if(va)return Yr;va=1,Object.defineProperty(Yr,"__esModule",{value:!0});const e=Zn(),t=we(),r=Ae(),n=Xo(),o={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:a,j:c}})=>(0,t.str)`must NOT have duplicate items (items ## ${c} and ${a} are identical)`,params:({params:{i:a,j:c}})=>(0,t._)`{i: ${a}, j: ${c}}`},code(a){const{gen:c,data:p,$data:u,schema:f,parentSchema:m,schemaCode:y,it:h}=a;if(!u&&!f)return;const O=c.let("valid"),w=m.items?(0,e.getSchemaTypes)(m.items):[];a.block$data(O,P,(0,t._)`${y} === false`),a.ok(O);function P(){const $=c.let("i",(0,t._)`${p}.length`),g=c.let("j");a.setParams({i:$,j:g}),c.assign(O,!0),c.if((0,t._)`${$} > 1`,()=>(E()?x:v)($,g))}function E(){return w.length>0&&!w.some($=>$==="object"||$==="array")}function x($,g){const T=c.name("item"),j=(0,e.checkDataTypes)(w,T,h.opts.strictNumbers,e.DataType.Wrong),B=c.const("indices",(0,t._)`{}`);c.for((0,t._)`;${$}--;`,()=>{c.let(T,(0,t._)`${p}[${$}]`),c.if(j,(0,t._)`continue`),w.length>1&&c.if((0,t._)`typeof ${T} == "string"`,(0,t._)`${T} += "_"`),c.if((0,t._)`typeof ${B}[${T}] == "number"`,()=>{c.assign(g,(0,t._)`${B}[${T}]`),a.error(),c.assign(O,!1).break()}).code((0,t._)`${B}[${T}] = ${$}`)})}function v($,g){const T=(0,r.useFunc)(c,n.default),j=c.name("outer");c.label(j).for((0,t._)`;${$}--;`,()=>c.for((0,t._)`${g} = ${$}; ${g}--;`,()=>c.if((0,t._)`${T}(${p}[${$}], ${p}[${g}])`,()=>{a.error(),c.assign(O,!1).break(j)})))}}};return Yr.default=o,Yr}var Xr={},wa;function nw(){if(wa)return Xr;wa=1,Object.defineProperty(Xr,"__esModule",{value:!0});const e=we(),t=Ae(),r=Xo(),i={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:o})=>(0,e._)`{allowedValue: ${o}}`},code(o){const{gen:a,data:c,$data:p,schemaCode:u,schema:f}=o;p||f&&typeof f=="object"?o.fail$data((0,e._)`!${(0,t.useFunc)(a,r.default)}(${c}, ${u})`):o.fail((0,e._)`${f} !== ${c}`)}};return Xr.default=i,Xr}var Zr={},xa;function iw(){if(xa)return Zr;xa=1,Object.defineProperty(Zr,"__esModule",{value:!0});const e=we(),t=Ae(),r=Xo(),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:a,data:c,$data:p,schema:u,schemaCode:f,it:m}=o;if(!p&&u.length===0)throw new Error("enum must have non-empty array");const y=u.length>=m.opts.loopEnum;let h;const O=()=>h??(h=(0,t.useFunc)(a,r.default));let w;if(y||p)w=a.let("valid"),o.block$data(w,P);else{if(!Array.isArray(u))throw new Error("ajv implementation error");const x=a.const("vSchema",f);w=(0,e.or)(...u.map((v,$)=>E(x,$)))}o.pass(w);function P(){a.assign(w,!1),a.forOf("v",f,x=>a.if((0,e._)`${O()}(${c}, ${x})`,()=>a.assign(w,!0).break()))}function E(x,v){const $=u[v];return typeof $=="object"&&$!==null?(0,e._)`${O()}(${c}, ${x}[${v}])`:(0,e._)`${c} === ${$}`}}};return Zr.default=i,Zr}var Pa;function Zo(){if(Pa)return Lr;Pa=1,Object.defineProperty(Lr,"__esModule",{value:!0});const e=K0(),t=W0(),r=G0(),n=Y0(),i=J0(),o=X0(),a=Z0(),c=ew(),p=tw(),u=rw(),f=nw(),m=iw(),y=[e.default,t.default,r.default,n.default,i.default,o.default,a.default,c.default,p.default,u.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},f.default,m.default];return Lr.default=y,Lr}var en={},_t={},Sa;function ql(){if(Sa)return _t;Sa=1,Object.defineProperty(_t,"__esModule",{value:!0}),_t.validateAdditionalItems=void 0;const e=we(),t=Ae(),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:a,it:c}=o,{items:p}=a;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,a){const{gen:c,schema:p,data:u,keyword:f,it:m}=o;m.items=!0;const y=c.const("len",(0,e._)`${u}.length`);if(p===!1)o.setParams({len:a.length}),o.pass((0,e._)`${y} <= ${a.length}`);else if(typeof p=="object"&&!(0,t.alwaysValidSchema)(m,p)){const O=c.var("valid",(0,e._)`${y} <= ${a.length}`);c.if((0,e.not)(O),()=>h(O)),o.ok(O)}function h(O){c.forRange("i",a.length,y,w=>{o.subschema({keyword:f,dataProp:w,dataPropType:t.Type.Num},O),m.allErrors||c.if((0,e.not)(O),()=>c.break())})}}return _t.validateAdditionalItems=i,_t.default=n,_t}var tn={},Tt={},Ea;function Cl(){if(Ea)return Tt;Ea=1,Object.defineProperty(Tt,"__esModule",{value:!0}),Tt.validateTuple=void 0;const e=we(),t=Ae(),r=nt(),n={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(o){const{schema:a,it:c}=o;if(Array.isArray(a))return i(o,"additionalItems",a);c.items=!0,!(0,t.alwaysValidSchema)(c,a)&&o.ok((0,r.validateArray)(o))}};function i(o,a,c=o.schema){const{gen:p,parentSchema:u,data:f,keyword:m,it:y}=o;w(u),y.opts.unevaluated&&c.length&&y.items!==!0&&(y.items=t.mergeEvaluated.items(p,c.length,y.items));const h=p.name("valid"),O=p.const("len",(0,e._)`${f}.length`);c.forEach((P,E)=>{(0,t.alwaysValidSchema)(y,P)||(p.if((0,e._)`${O} > ${E}`,()=>o.subschema({keyword:m,schemaProp:E,dataProp:E},h)),o.ok(h))});function w(P){const{opts:E,errSchemaPath:x}=y,v=c.length,$=v===P.minItems&&(v===P.maxItems||P[a]===!1);if(E.strictTuples&&!$){const g=`"${m}" is ${v}-tuple, but minItems or maxItems/${a} are not specified or different at path "${x}"`;(0,t.checkStrictMode)(y,g,E.strictTuples)}}}return Tt.validateTuple=i,Tt.default=n,Tt}var Oa;function ow(){if(Oa)return tn;Oa=1,Object.defineProperty(tn,"__esModule",{value:!0});const e=Cl(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,e.validateTuple)(r,"items")};return tn.default=t,tn}var rn={},Ra;function sw(){if(Ra)return rn;Ra=1,Object.defineProperty(rn,"__esModule",{value:!0});const e=we(),t=Ae(),r=nt(),n=ql(),o={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:a}})=>(0,e.str)`must NOT have more than ${a} items`,params:({params:{len:a}})=>(0,e._)`{limit: ${a}}`},code(a){const{schema:c,parentSchema:p,it:u}=a,{prefixItems:f}=p;u.items=!0,!(0,t.alwaysValidSchema)(u,c)&&(f?(0,n.validateAdditionalItems)(a,f):a.ok((0,r.validateArray)(a)))}};return rn.default=o,rn}var nn={},Aa;function aw(){if(Aa)return nn;Aa=1,Object.defineProperty(nn,"__esModule",{value:!0});const e=we(),t=Ae(),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:a,parentSchema:c,data:p,it:u}=i;let f,m;const{minContains:y,maxContains:h}=c;u.opts.next?(f=y===void 0?1:y,m=h):f=1;const O=o.const("len",(0,e._)`${p}.length`);if(i.setParams({min:f,max:m}),m===void 0&&f===0){(0,t.checkStrictMode)(u,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(m!==void 0&&f>m){(0,t.checkStrictMode)(u,'"minContains" > "maxContains" is always invalid'),i.fail();return}if((0,t.alwaysValidSchema)(u,a)){let v=(0,e._)`${O} >= ${f}`;m!==void 0&&(v=(0,e._)`${v} && ${O} <= ${m}`),i.pass(v);return}u.items=!0;const w=o.name("valid");m===void 0&&f===1?E(w,()=>o.if(w,()=>o.break())):f===0?(o.let(w,!0),m!==void 0&&o.if((0,e._)`${p}.length > 0`,P)):(o.let(w,!1),P()),i.result(w,()=>i.reset());function P(){const v=o.name("_valid"),$=o.let("count",0);E(v,()=>o.if(v,()=>x($)))}function E(v,$){o.forRange("i",0,O,g=>{i.subschema({keyword:"contains",dataProp:g,dataPropType:t.Type.Num,compositeRule:!0},v),$()})}function x(v){o.code((0,e._)`${v}++`),m===void 0?o.if((0,e._)`${v} >= ${f}`,()=>o.assign(w,!0).break()):(o.if((0,e._)`${v} > ${m}`,()=>o.assign(w,!1).break()),f===1?o.assign(w,!0):o.if((0,e._)`${v} >= ${f}`,()=>o.assign(w,!0)))}}};return nn.default=n,nn}var Li={},$a;function es(){return $a||($a=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=we(),r=Ae(),n=nt();e.error={message:({params:{property:p,depsCount:u,deps:f}})=>{const m=u===1?"property":"properties";return(0,t.str)`must have ${m} ${f} when property ${p} is present`},params:({params:{property:p,depsCount:u,deps:f,missingProperty:m}})=>(0,t._)`{property: ${p},
6
6
  missingProperty: ${m},
7
7
  depsCount: ${u},
8
- deps: ${f}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(p){const[u,f]=o(p);a(p,u),c(p,f)}};function o({schema:p}){const u={},f={};for(const m in p){if(m==="__proto__")continue;const y=Array.isArray(p[m])?u:f;y[m]=p[m]}return[u,f]}function a(p,u=p.schema){const{gen:f,data:m,it:y}=p;if(Object.keys(u).length===0)return;const h=f.let("missing");for(const O in u){const w=u[O];if(w.length===0)continue;const S=(0,n.propertyInData)(f,m,O,y.opts.ownProperties);p.setParams({property:O,depsCount:w.length,deps:w.join(", ")}),y.allErrors?f.if(S,()=>{for(const E of w)(0,n.checkReportMissingProp)(p,E)}):(f.if((0,t._)`${S} && (${(0,n.checkMissingProp)(p,w,h)})`),(0,n.reportMissingProp)(p,h),f.else())}}e.validatePropertyDeps=a;function c(p,u=p.schema){const{gen:f,data:m,keyword:y,it:h}=p,O=f.name("valid");for(const w in u)(0,r.alwaysValidSchema)(h,u[w])||(f.if((0,n.propertyInData)(f,m,w,h.opts.ownProperties),()=>{const S=p.subschema({keyword:y,schemaProp:w},O);p.mergeValidEvaluated(S,O)},()=>f.var(O,!0)),p.ok(O))}e.validateSchemaDeps=c,e.default=i})(Li)),Li}var on={},_a;function sw(){if(_a)return on;_a=1,Object.defineProperty(on,"__esModule",{value:!0});const e=we(),t=Re(),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:a,data:c,it:p}=i;if((0,t.alwaysValidSchema)(p,a))return;const u=o.name("valid");o.forIn("key",c,f=>{i.setParams({propertyName:f}),i.subschema({keyword:"propertyNames",data:f,dataTypes:["string"],propertyName:f,compositeRule:!0},u),o.if((0,e.not)(u),()=>{i.error(!0),p.allErrors||o.break()})}),i.ok(u)}};return on.default=n,on}var sn={},Ta;function jl(){if(Ta)return sn;Ta=1,Object.defineProperty(sn,"__esModule",{value:!0});const e=nt(),t=we(),r=We(),n=Re(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:a})=>(0,t._)`{additionalProperty: ${a.additionalProperty}}`},code(a){const{gen:c,parentSchema:p,data:u,errsCount:f,it:m}=a,{schema:y=m.opts.defaultAdditionalProperties}=a;if(!f)throw new Error("ajv implementation error");const{allErrors:h,opts:O}=m;if(m.props=!0,O.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(m,y))return;const w=(0,e.allSchemaProperties)(p.properties),S=(0,e.allSchemaProperties)(p.patternProperties);E(),a.ok((0,t._)`${f} === ${r.default.errors}`);function E(){c.forIn("key",u,T=>{!w.length&&!S.length?$(T):c.if(x(T),()=>$(T))})}function x(T){let j;if(w.length>8){const B=(0,n.schemaRefOrVal)(m,p.properties,"properties");j=(0,e.isOwnProperty)(c,B,T)}else w.length?j=(0,t.or)(...w.map(B=>(0,t._)`${T} === ${B}`)):j=t.nil;return S.length&&(j=(0,t.or)(j,...S.map(B=>(0,t._)`${(0,e.usePattern)(a,B)}.test(${T})`))),(0,t.not)(j)}function v(T){c.code((0,t._)`delete ${u}[${T}]`)}function $(T){if(O.removeAdditional==="all"||O.removeAdditional&&y===!1){v(T);return}if(y===!1){a.setParams({additionalProperty:T}),a.error(),h||c.break();return}if(typeof y=="object"&&!(0,n.alwaysValidSchema)(m,y)){const j=c.name("valid");O.removeAdditional==="failing"?(g(T,j,!1),c.if((0,t.not)(j),()=>{a.reset(),v(T)})):(g(T,j),h||c.if((0,t.not)(j),()=>c.break()))}}function g(T,j,B){const V={keyword:"additionalProperties",dataProp:T,dataPropType:n.Type.Str};B===!1&&Object.assign(V,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(V,j)}}};return sn.default=o,sn}var an={},ka;function aw(){if(ka)return an;ka=1,Object.defineProperty(an,"__esModule",{value:!0});const e=zt(),t=nt(),r=Re(),n=jl(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:a,schema:c,parentSchema:p,data:u,it:f}=o;(f.opts.removeAdditional==="all"&&p.additionalProperties===void 0||f.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(f,n.default,"additionalProperties"));const m=(0,t.allSchemaProperties)(c);for(const S of m)f.definedProperties.add(S);f.opts.unevaluated&&m.length&&f.props!==!0&&(f.props=r.mergeEvaluated.props(a,(0,r.toHash)(m),f.props));const y=m.filter(S=>!(0,r.alwaysValidSchema)(f,c[S]));if(y.length===0)return;const h=a.name("valid");for(const S of y)O(S)?w(S):(a.if((0,t.propertyInData)(a,u,S,f.opts.ownProperties)),w(S),f.allErrors||a.else().var(h,!0),a.endIf()),o.it.definedProperties.add(S),o.ok(h);function O(S){return f.opts.useDefaults&&!f.compositeRule&&c[S].default!==void 0}function w(S){o.subschema({keyword:"properties",schemaProp:S,dataProp:S},h)}}};return an.default=i,an}var cn={},Ia;function cw(){if(Ia)return cn;Ia=1,Object.defineProperty(cn,"__esModule",{value:!0});const e=nt(),t=we(),r=Re(),n=Re(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:a,schema:c,data:p,parentSchema:u,it:f}=o,{opts:m}=f,y=(0,e.allSchemaProperties)(c),h=y.filter($=>(0,r.alwaysValidSchema)(f,c[$]));if(y.length===0||h.length===y.length&&(!f.opts.unevaluated||f.props===!0))return;const O=m.strictSchema&&!m.allowMatchingProperties&&u.properties,w=a.name("valid");f.props!==!0&&!(f.props instanceof t.Name)&&(f.props=(0,n.evaluatedPropsToName)(a,f.props));const{props:S}=f;E();function E(){for(const $ of y)O&&x($),f.allErrors?v($):(a.var(w,!0),v($),a.if(w))}function x($){for(const g in O)new RegExp($).test(g)&&(0,r.checkStrictMode)(f,`property ${g} matches pattern ${$} (use allowMatchingProperties)`)}function v($){a.forIn("key",p,g=>{a.if((0,t._)`${(0,e.usePattern)(o,$)}.test(${g})`,()=>{const T=h.includes($);T||o.subschema({keyword:"patternProperties",schemaProp:$,dataProp:g,dataPropType:n.Type.Str},w),f.opts.unevaluated&&S!==!0?a.assign((0,t._)`${S}[${g}]`,!0):!T&&!f.allErrors&&a.if((0,t.not)(w),()=>a.break())})})}}};return cn.default=i,cn}var pn={},qa;function pw(){if(qa)return pn;qa=1,Object.defineProperty(pn,"__esModule",{value:!0});const e=Re(),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 a=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),r.failResult(a,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return pn.default=t,pn}var ln={},Ca;function lw(){if(Ca)return ln;Ca=1,Object.defineProperty(ln,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:nt().validateUnion,error:{message:"must match a schema in anyOf"}};return ln.default=t,ln}var un={},ja;function uw(){if(ja)return un;ja=1,Object.defineProperty(un,"__esModule",{value:!0});const e=we(),t=Re(),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:a,parentSchema:c,it:p}=i;if(!Array.isArray(a))throw new Error("ajv implementation error");if(p.opts.discriminator&&c.discriminator)return;const u=a,f=o.let("valid",!1),m=o.let("passing",null),y=o.name("_valid");i.setParams({passing:m}),o.block(h),i.result(f,()=>i.reset(),()=>i.error(!0));function h(){u.forEach((O,w)=>{let S;(0,t.alwaysValidSchema)(p,O)?o.var(y,!0):S=i.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},y),w>0&&o.if((0,e._)`${y} && ${f}`).assign(f,!1).assign(m,(0,e._)`[${m}, ${w}]`).else(),o.if(y,()=>{o.assign(f,!0),o.assign(m,w),S&&i.mergeEvaluated(S,e.Name)})})}}};return un.default=n,un}var dn={},Ma;function dw(){if(Ma)return dn;Ma=1,Object.defineProperty(dn,"__esModule",{value:!0});const e=Re(),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 a=n.name("valid");i.forEach((c,p)=>{if((0,e.alwaysValidSchema)(o,c))return;const u=r.subschema({keyword:"allOf",schemaProp:p},a,!0);r.ok(a),r.mergeEvaluated(u)})}};return dn.default=t,dn}var fn={},Da;function fw(){if(Da)return fn;Da=1,Object.defineProperty(fn,"__esModule",{value:!0});const e=we(),t=Re(),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:a,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 u=i(p,"then"),f=i(p,"else");if(!u&&!f)return;const m=a.let("valid",!0),y=a.name("_valid");if(h(),o.reset(),u&&f){const w=a.let("ifClause");o.setParams({ifClause:w}),a.if(y,O("then",w),O("else",w))}else u?a.if(y,O("then")):a.if((0,e.not)(y),O("else"));o.pass(m,()=>o.error(!0));function h(){const w=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},y);o.mergeEvaluated(w)}function O(w,S){return()=>{const E=o.subschema({keyword:w},y);a.assign(m,y),o.mergeValidEvaluated(E,m),S?a.assign(S,(0,e._)`${w}`):o.setParams({ifClause:w})}}}};function i(o,a){const c=o.schema[a];return c!==void 0&&!(0,t.alwaysValidSchema)(o,c)}return fn.default=n,fn}var mn={},Na;function mw(){if(Na)return mn;Na=1,Object.defineProperty(mn,"__esModule",{value:!0});const e=Re(),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 mn.default=t,mn}var La;function ts(){if(La)return en;La=1,Object.defineProperty(en,"__esModule",{value:!0});const e=ql(),t=nw(),r=Cl(),n=iw(),i=ow(),o=es(),a=sw(),c=jl(),p=aw(),u=cw(),f=pw(),m=lw(),y=uw(),h=dw(),O=fw(),w=mw();function S(E=!1){const x=[f.default,m.default,y.default,h.default,O.default,w.default,a.default,c.default,o.default,p.default,u.default];return E?x.push(t.default,n.default):x.push(e.default,r.default),x.push(i.default),x}return en.default=S,en}var hn={},kt={},Ua;function Ml(){if(Ua)return kt;Ua=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.dynamicAnchor=void 0;const e=we(),t=We(),r=hi(),n=yi(),i={keyword:"$dynamicAnchor",schemaType:"string",code:c=>o(c,c.schema)};function o(c,p){const{gen:u,it:f}=c;f.schemaEnv.root.dynamicAnchors[p]=!0;const m=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(p)}`,y=f.errSchemaPath==="#"?f.validateName:a(c);u.if((0,e._)`!${m}`,()=>u.assign(m,y))}kt.dynamicAnchor=o;function a(c){const{schemaEnv:p,schema:u,self:f}=c.it,{root:m,baseId:y,localRefs:h,meta:O}=p.root,{schemaId:w}=f.opts,S=new r.SchemaEnv({schema:u,schemaId:w,root:m,baseId:y,localRefs:h,meta:O});return r.compileSchema.call(f,S),(0,n.getValidate)(c,S)}return kt.default=i,kt}var It={},Fa;function Dl(){if(Fa)return It;Fa=1,Object.defineProperty(It,"__esModule",{value:!0}),It.dynamicRef=void 0;const e=we(),t=We(),r=yi(),n={keyword:"$dynamicRef",schemaType:"string",code:o=>i(o,o.schema)};function i(o,a){const{gen:c,keyword:p,it:u}=o;if(a[0]!=="#")throw new Error(`"${p}" only supports hash fragment reference`);const f=a.slice(1);if(u.allErrors)m();else{const h=c.let("valid",!1);m(h),o.ok(h)}function m(h){if(u.schemaEnv.root.dynamicAnchors[f]){const O=c.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(f)}`);c.if(O,y(O,h),y(u.validateName,h))}else y(u.validateName,h)()}function y(h,O){return O?()=>c.block(()=>{(0,r.callRef)(o,h),c.let(O,!0)}):()=>(0,r.callRef)(o,h)}}return It.dynamicRef=i,It.default=n,It}var yn={},za;function hw(){if(za)return yn;za=1,Object.defineProperty(yn,"__esModule",{value:!0});const e=Ml(),t=Re(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return yn.default=r,yn}var gn={},Ba;function yw(){if(Ba)return gn;Ba=1,Object.defineProperty(gn,"__esModule",{value:!0});const e=Dl(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return gn.default=t,gn}var Va;function gw(){if(Va)return hn;Va=1,Object.defineProperty(hn,"__esModule",{value:!0});const e=Ml(),t=Dl(),r=hw(),n=yw(),i=[e.default,t.default,r.default,n.default];return hn.default=i,hn}var bn={},vn={},Ha;function bw(){if(Ha)return vn;Ha=1,Object.defineProperty(vn,"__esModule",{value:!0});const e=es(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return vn.default=t,vn}var wn={},Ka;function vw(){if(Ka)return wn;Ka=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=es(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return wn.default=t,wn}var xn={},Wa;function ww(){if(Wa)return xn;Wa=1,Object.defineProperty(xn,"__esModule",{value:!0});const e=Re(),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 xn.default=t,xn}var Qa;function xw(){if(Qa)return bn;Qa=1,Object.defineProperty(bn,"__esModule",{value:!0});const e=bw(),t=vw(),r=ww(),n=[e.default,t.default,r.default];return bn.default=n,bn}var Sn={},Pn={},Ga;function Sw(){if(Ga)return Pn;Ga=1,Object.defineProperty(Pn,"__esModule",{value:!0});const e=we(),t=Re(),r=We(),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:a,schema:c=o.it.opts.defaultUnevaluatedProperties,data:p,errsCount:u,it:f}=o,m=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!u)throw new Error("ajv implementation error");const{allErrors:y,props:h}=f;if(h instanceof e.Name)a.if((0,e._)`${h} !== true`,()=>a.forIn("key",p,E=>a.if(w(h,E),()=>O(E))));else if(h!==!0){const E=()=>a.forIn("key",p,x=>h===void 0?O(x):a.if(S(h,x),()=>O(x)));m&&f.errorPath.emptyStr()&&!f.compositeRule?a.if((0,e._)`${r.default.isAllOfVariant} === 0`,E):(!f.compositeRule||o.schema!==void 0)&&E()}m||(f.props=!0),o.ok((0,e._)`${u} === ${r.default.errors}`);function O(E){if(c===!1){o.setParams({unevaluatedProperty:E}),o.error(),y||a.break();return}if(!(0,t.alwaysValidSchema)(f,c)){const x=a.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:E,dataPropType:t.Type.Str},x),y||a.if((0,e.not)(x),()=>a.break())}}function w(E,x){return(0,e._)`!${E} || !${E}[${x}]`}function S(E,x){const v=[];for(const $ in E)E[$]===!0&&v.push((0,e._)`${x} !== ${$}`);return(0,e.and)(...v)}}};return Pn.default=i,Pn}var En={},Ya;function Pw(){if(Ya)return En;Ya=1,Object.defineProperty(En,"__esModule",{value:!0});const e=we(),t=Re(),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:a,data:c,it:p}=i,u=p.items||0;if(u===!0)return;const f=o.const("len",(0,e._)`${c}.length`);if(a===!1)i.setParams({len:u}),i.fail((0,e._)`${f} > ${u}`);else if(typeof a=="object"&&!(0,t.alwaysValidSchema)(p,a)){const y=o.var("valid",(0,e._)`${f} <= ${u}`);o.if((0,e.not)(y),()=>m(y,u)),i.ok(y)}p.items=!0;function m(y,h){o.forRange("i",h,f,O=>{i.subschema({keyword:"unevaluatedItems",dataProp:O,dataPropType:t.Type.Num},y),p.allErrors||o.if((0,e.not)(y),()=>o.break())})}}};return En.default=n,En}var Ja;function Nl(){if(Ja)return Sn;Ja=1,Object.defineProperty(Sn,"__esModule",{value:!0});const e=Sw(),t=Pw(),r=[e.default,t.default];return Sn.default=r,Sn}var On={},An={},Xa;function Ew(){if(Xa)return An;Xa=1,Object.defineProperty(An,"__esModule",{value:!0});const e=we(),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:a,$data:c,schema:p,schemaCode:u,it:f}=n,{opts:m,errSchemaPath:y,schemaEnv:h,self:O}=f;if(!m.validateFormats)return;c?w():S();function w(){const E=o.scopeValue("formats",{ref:O.formats,code:m.code.formats}),x=o.const("fDef",(0,e._)`${E}[${u}]`),v=o.let("fType"),$=o.let("format");o.if((0,e._)`typeof ${x} == "object" && !(${x} instanceof RegExp)`,()=>o.assign(v,(0,e._)`${x}.type || "string"`).assign($,(0,e._)`${x}.validate`),()=>o.assign(v,(0,e._)`"string"`).assign($,x)),n.fail$data((0,e.or)(g(),T()));function g(){return m.strictSchema===!1?e.nil:(0,e._)`${u} && !${$}`}function T(){const j=h.$async?(0,e._)`(${x}.async ? await ${$}(${a}) : ${$}(${a}))`:(0,e._)`${$}(${a})`,B=(0,e._)`(typeof ${$} == "function" ? ${j} : ${$}.test(${a}))`;return(0,e._)`${$} && ${$} !== true && ${v} === ${i} && !${B}`}}function S(){const E=O.formats[p];if(!E){g();return}if(E===!0)return;const[x,v,$]=T(E);x===i&&n.pass(j());function g(){if(m.strictSchema===!1){O.logger.warn(B());return}throw new Error(B());function B(){return`unknown format "${p}" ignored in schema at path "${y}"`}}function T(B){const V=B instanceof RegExp?(0,e.regexpCode)(B):m.code.formats?(0,e._)`${m.code.formats}${(0,e.getProperty)(p)}`:void 0,G=o.scopeValue("formats",{key:p,ref:B,code:V});return typeof B=="object"&&!(B instanceof RegExp)?[B.type||"string",B.validate,(0,e._)`${G}.validate`]:["string",B,G]}function j(){if(typeof E=="object"&&!(E instanceof RegExp)&&E.async){if(!h.$async)throw new Error("async format in sync schema");return(0,e._)`await ${$}(${a})`}return typeof v=="function"?(0,e._)`${$}(${a})`:(0,e._)`${$}.test(${a})`}}}};return An.default=r,An}var Za;function rs(){if(Za)return On;Za=1,Object.defineProperty(On,"__esModule",{value:!0});const t=[Ew().default];return On.default=t,On}var Et={},ec;function Ll(){return ec||(ec=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.contentVocabulary=Et.metadataVocabulary=void 0,Et.metadataVocabulary=["title","description","default","deprecated","examples"],Et.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Et}var tc;function Ow(){if(tc)return Mr;tc=1,Object.defineProperty(Mr,"__esModule",{value:!0});const e=Il(),t=Zo(),r=ts(),n=gw(),i=xw(),o=Nl(),a=rs(),c=Ll(),p=[n.default,e.default,t.default,(0,r.default)(!0),a.default,c.metadataVocabulary,c.contentVocabulary,i.default,o.default];return Mr.default=p,Mr}var Rn={},Zt={},rc;function Aw(){if(rc)return Zt;rc=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Zt.DiscrError=e={})),Zt}var nc;function ns(){if(nc)return Rn;nc=1,Object.defineProperty(Rn,"__esModule",{value:!0});const e=we(),t=Aw(),r=hi(),n=Bt(),i=Re(),o={message:({params:{discrError:p,tagName:u}})=>p===t.DiscrError.Tag?`tag "${u}" must be string`:`value of tag "${u}" must be in oneOf or anyOf`,params:({params:{discrError:p,tag:u,tagName:f}})=>(0,e._)`{error: ${p}, tag: ${f}, tagValue: ${u}}`};function a(p,u){var f;if(!(!p.allOf||!Array.isArray(p.allOf))){for(const m of p.allOf)if(!((f=m?.properties)===null||f===void 0)&&f[u])return m.properties[u]}}const c={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(p){const{gen:u,data:f,schema:m,parentSchema:y,it:h}=p,O=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const w=m.propertyName;if(typeof w!="string")throw new Error("discriminator: requires propertyName");if(!O)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const S=y[O],E=u.let("valid",!1),x=u.const("tag",(0,e._)`${f}${(0,e.getProperty)(w)}`);u.if((0,e._)`typeof ${x} == "string"`,()=>v(),()=>p.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:w})),p.ok(E);function v(){const T=g();u.if(!1);for(const j in T)u.elseIf((0,e._)`${x} === ${j}`),u.assign(E,$(T[j]));u.else(),p.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:w}),u.endIf()}function $(T){const j=u.name("valid"),B=p.subschema({keyword:O,schemaProp:T},j);return p.mergeEvaluated(B,e.Name),j}function g(){var T;const j={},B=G(y);let V=!0;for(let Q=0;Q<S.length;Q++){let X=S[Q];const me=X?.$ref;if(me&&m.mapping){const{mapping:Te}=m,fe=Object.keys(Te).filter(Se=>Te[Se]===X.$ref);if(fe.length){for(const Se of fe)oe(Se,Q);continue}}if(me&&!(0,i.schemaHasRulesButRef)(X,h.self.RULES)&&(X=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,me),X instanceof r.SchemaEnv&&(X=X.schema),X===void 0))throw new n.default(h.opts.uriResolver,h.baseId,me);let xe=(T=X?.properties)===null||T===void 0?void 0:T[w];if(!xe&&X?.allOf&&(xe=a(X,w)),typeof xe!="object")throw new Error(`discriminator: ${O} subschemas (or referenced schemas) must have "properties/${w}" or match mapping`);V=V&&(B||G(X)),J(xe,Q)}if(!V)throw new Error(`discriminator: "${w}" must be required`);return j;function G(Q){if(Array.isArray(Q.required)&&Q.required.includes(w))return!0;if(Q.allOf&&Array.isArray(Q.allOf))for(const X of Q.allOf){const me=X;if(Array.isArray(me.required)&&me.required.includes(w))return!0}return!1}function J(Q,X){if(Q.const)oe(Q.const,X);else if(Q.enum)for(const me of Q.enum)oe(me,X);else throw new Error(`discriminator: "properties/${w}" must have "const" or "enum"`)}function oe(Q,X){if(typeof Q!="string"||Q in j)throw new Error(`discriminator: "${w}" values must be unique strings`);j[Q]=X}}}};return Rn.default=c,Rn}var $n={};const Rw="https://json-schema.org/draft/2020-12/schema",$w="https://json-schema.org/draft/2020-12/schema",_w={"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},Tw="meta",kw="Core and Validation specifications meta-schema",Iw=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],qw=["object","boolean"],Cw="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",jw={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}},Mw={$schema:Rw,$id:$w,$vocabulary:_w,$dynamicAnchor:Tw,title:kw,allOf:Iw,type:qw,$comment:Cw,properties:jw},Dw="https://json-schema.org/draft/2020-12/schema",Nw="https://json-schema.org/draft/2020-12/meta/applicator",Lw={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},Uw="meta",Fw="Applicator vocabulary meta-schema",zw=["object","boolean"],Bw={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"}},Vw={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Hw={$schema:Dw,$id:Nw,$vocabulary:Lw,$dynamicAnchor:Uw,title:Fw,type:zw,properties:Bw,$defs:Vw},Kw="https://json-schema.org/draft/2020-12/schema",Ww="https://json-schema.org/draft/2020-12/meta/unevaluated",Qw={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},Gw="meta",Yw="Unevaluated applicator vocabulary meta-schema",Jw=["object","boolean"],Xw={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},Zw={$schema:Kw,$id:Ww,$vocabulary:Qw,$dynamicAnchor:Gw,title:Yw,type:Jw,properties:Xw},ex="https://json-schema.org/draft/2020-12/schema",tx="https://json-schema.org/draft/2020-12/meta/content",rx={"https://json-schema.org/draft/2020-12/vocab/content":!0},nx="meta",ix="Content vocabulary meta-schema",ox=["object","boolean"],sx={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},ax={$schema:ex,$id:tx,$vocabulary:rx,$dynamicAnchor:nx,title:ix,type:ox,properties:sx},cx="https://json-schema.org/draft/2020-12/schema",px="https://json-schema.org/draft/2020-12/meta/core",lx={"https://json-schema.org/draft/2020-12/vocab/core":!0},ux="meta",dx="Core vocabulary meta-schema",fx=["object","boolean"],mx={$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"}}},hx={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},yx={$schema:cx,$id:px,$vocabulary:lx,$dynamicAnchor:ux,title:dx,type:fx,properties:mx,$defs:hx},gx="https://json-schema.org/draft/2020-12/schema",bx="https://json-schema.org/draft/2020-12/meta/format-annotation",vx={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},wx="meta",xx="Format vocabulary meta-schema for annotation results",Sx=["object","boolean"],Px={format:{type:"string"}},Ex={$schema:gx,$id:bx,$vocabulary:vx,$dynamicAnchor:wx,title:xx,type:Sx,properties:Px},Ox="https://json-schema.org/draft/2020-12/schema",Ax="https://json-schema.org/draft/2020-12/meta/meta-data",Rx={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$x="meta",_x="Meta-data vocabulary meta-schema",Tx=["object","boolean"],kx={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}},Ix={$schema:Ox,$id:Ax,$vocabulary:Rx,$dynamicAnchor:$x,title:_x,type:Tx,properties:kx},qx="https://json-schema.org/draft/2020-12/schema",Cx="https://json-schema.org/draft/2020-12/meta/validation",jx={"https://json-schema.org/draft/2020-12/vocab/validation":!0},Mx="meta",Dx="Validation vocabulary meta-schema",Nx=["object","boolean"],Lx={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"}}},Ux={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:[]}},Fx={$schema:qx,$id:Cx,$vocabulary:jx,$dynamicAnchor:Mx,title:Dx,type:Nx,properties:Lx,$defs:Ux};var ic;function zx(){if(ic)return $n;ic=1,Object.defineProperty($n,"__esModule",{value:!0});const e=Mw,t=Hw,r=Zw,n=ax,i=yx,o=Ex,a=Ix,c=Fx,p=["/properties"];function u(f){return[e,t,r,n,i,m(this,o),a,m(this,c)].forEach(y=>this.addMetaSchema(y,void 0,!1)),this;function m(y,h){return f?y.$dataMetaSchema(h,p):h}}return $n.default=u,$n}var oc;function Bx(){return oc||(oc=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=Jo(),n=Ow(),i=ns(),o=zx(),a="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(h={}){super({...h,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:h,meta:O}=this.opts;O&&(o.default.call(this,h),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv2020=c,e.exports=t=c,e.exports.Ajv2020=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var p=zt();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var u=we();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=yr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Bt();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(kr,kr.exports)),kr.exports}var Vx=Bx();const is=K.getDefaultExportFromCjs(Vx),Hx=new is({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function sc(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>Hx.validate(i,r));return n===-1&&(n=0),t[n]}}function Mt(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(K.isPlainObject(t.properties)||K.isPlainObject(t.additionalProperties)||K.isPlainObject(t.items)&&(K.isPlainObject(t.items.properties)||K.isPlainObject(t.items.additionalProperties)||t.items.oneOf))return Kx(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((a,c)=>{if(typeof a=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${c} in oneOf.`);const p=a?.properties?.[n];if(!p||typeof p=="boolean")throw new Error(`Unexpected property '${p}' schema in ${e} at position ${c} in oneOf.`);const u=p.const,f=Mt(u,a,r);return typeof f=="string"&&(i[u]=f),f});return(a,c)=>{if(K.isPlainObject(a)){const p=a[n];if(typeof p=="string"){const u=i[p];if(u&&r[u])return u}}return sc(t.oneOf,o)(a,c)}}else{const n=t.oneOf.map((i,o)=>Mt(e+"_"+o,i,r));return sc(t.oneOf,n)}return t}function Kx(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,u]of Object.entries(t.properties||{}))i[p]=Mt(n+"."+p,u,r);let o;K.isPlainObject(t.additionalProperties)&&(o=Mt(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let a;K.isPlainObject(t.items)&&(K.isPlainObject(t.items.properties)||K.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(a=Mt(e+"_items",t.items,r));let c=t.required;return t.oneOf&&t.oneOf.every(p=>!!p.required)&&(c=p=>{const u=t.oneOf.map(m=>[...t.required||[],...m.required]);let f=u.findIndex(m=>m.every(y=>p[y]!==void 0));return f===-1&&(f=0),u[f]}),r[n]={properties:i,additionalProperties:o,items:a,required:c,description:t.description,documentationLink:t.documentationLink},n}function Ul(e,t){const r={},n=Mt(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const Wx=["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"],Qx=["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"],Gx=["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"],Yx=["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"],Jx=["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"],Xx=["info-contact"],Zx=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],eS=["no-unused-types","type-description"],tS=["struct","no-unresolved-refs"],rS=[...Wx,...Qx,...Gx,...Yx,...Jx,...Xx,...Zx,...eS,...tS],nS=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],iS=["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"],Fl=[...iS,...nS],zl={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!I.isAbsoluteUrl(e)&&!K.path.extname(e)?{type:"string"}:{...sr,directResolveAs:{name:"ConfigGovernance",...sr}},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"},sr={properties:zl},oS=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...sr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),sS={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"},aS=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Rl(sr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),cS={properties:{headers:{type:"array",items:{type:"string"}}}},pS={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:I.mapOf("ClientGeneratorOptions"),pagination:"ClientPagination"}},lS={properties:{},additionalProperties:{}},Bl={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"}}},uS={properties:{...Bl.properties,exclude:{type:"array",items:{type:"string"}},operations:I.mapOf("ClientPaginationRule")}},dS={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(rS.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(Yo(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},fS={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"},mS={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"},hS={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(Fl.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(Yo(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},yS={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},gS={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},bS={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(Fl.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(Yo(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},vS={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"},wS={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 xS(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 SS(e){return{...e[Ke.ScorecardClassicLevel],properties:{...e[Ke.ScorecardClassicLevel]?.properties,...zl}}}const PS={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"},ES={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"},OS={properties:{subject:"Subject",assertions:"Assertions",where:I.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 os(e,t){const r=Bn.flatMap(i=>{const o=hr(i),a=t?t.extendTypes(o,i):o;return Object.keys(a)}),{ctx:n}=Ul("rootRedoclyConfigSchema",e);return{...AS,ConfigRoot:oS(n),ConfigApisProperties:aS(n),Subject:xS([...r,...A0]),...n,[Ke.ScorecardClassicLevel]:SS(n)}}const AS={ConfigurableRule:OS,ConfigApis:sS,ConfigGovernance:sr,ConfigHTTP:cS,Client:pS,ClientGeneratorOptions:lS,ClientPagination:uS,ClientPaginationRule:Bl,Where:ES,BuiltinRule:fS,CustomRule:mS,BuiltinDecorator:yS,CustomDecorator:gS,BuiltinPreprocessor:vS,CustomPreprocessor:wS,Schema:$e.Schema,SchemaProperties:$e.SchemaProperties,PatternProperties:$e.PatternProperties,NamedSchemas:$e.NamedSchemas,DependentRequired:$e.DependentRequired,Discriminator:$e.Discriminator,DiscriminatorMapping:$e.DiscriminatorMapping,ExternalDocs:$e.ExternalDocs,Xml:$e.Xml,Rules:dS,Decorators:hS,Preprocessors:bS,Assertions:PS},{theme:yR,...RS}=di.properties,$S={...di,properties:RS},Vl=os($S),gr=I.normalizeTypes(Vl),_o="redocly.yaml",Hl={extends:["recommended"]},ei=".redocly.lint-ignore.yaml",Kl=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
8
+ deps: ${f}}`};const i={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(p){const[u,f]=o(p);a(p,u),c(p,f)}};function o({schema:p}){const u={},f={};for(const m in p){if(m==="__proto__")continue;const y=Array.isArray(p[m])?u:f;y[m]=p[m]}return[u,f]}function a(p,u=p.schema){const{gen:f,data:m,it:y}=p;if(Object.keys(u).length===0)return;const h=f.let("missing");for(const O in u){const w=u[O];if(w.length===0)continue;const P=(0,n.propertyInData)(f,m,O,y.opts.ownProperties);p.setParams({property:O,depsCount:w.length,deps:w.join(", ")}),y.allErrors?f.if(P,()=>{for(const E of w)(0,n.checkReportMissingProp)(p,E)}):(f.if((0,t._)`${P} && (${(0,n.checkMissingProp)(p,w,h)})`),(0,n.reportMissingProp)(p,h),f.else())}}e.validatePropertyDeps=a;function c(p,u=p.schema){const{gen:f,data:m,keyword:y,it:h}=p,O=f.name("valid");for(const w in u)(0,r.alwaysValidSchema)(h,u[w])||(f.if((0,n.propertyInData)(f,m,w,h.opts.ownProperties),()=>{const P=p.subschema({keyword:y,schemaProp:w},O);p.mergeValidEvaluated(P,O)},()=>f.var(O,!0)),p.ok(O))}e.validateSchemaDeps=c,e.default=i})(Li)),Li}var on={},_a;function cw(){if(_a)return on;_a=1,Object.defineProperty(on,"__esModule",{value:!0});const e=we(),t=Ae(),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:a,data:c,it:p}=i;if((0,t.alwaysValidSchema)(p,a))return;const u=o.name("valid");o.forIn("key",c,f=>{i.setParams({propertyName:f}),i.subschema({keyword:"propertyNames",data:f,dataTypes:["string"],propertyName:f,compositeRule:!0},u),o.if((0,e.not)(u),()=>{i.error(!0),p.allErrors||o.break()})}),i.ok(u)}};return on.default=n,on}var sn={},Ta;function jl(){if(Ta)return sn;Ta=1,Object.defineProperty(sn,"__esModule",{value:!0});const e=nt(),t=we(),r=We(),n=Ae(),o={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:a})=>(0,t._)`{additionalProperty: ${a.additionalProperty}}`},code(a){const{gen:c,parentSchema:p,data:u,errsCount:f,it:m}=a,{schema:y=m.opts.defaultAdditionalProperties}=a;if(!f)throw new Error("ajv implementation error");const{allErrors:h,opts:O}=m;if(m.props=!0,O.removeAdditional!=="all"&&(0,n.alwaysValidSchema)(m,y))return;const w=(0,e.allSchemaProperties)(p.properties),P=(0,e.allSchemaProperties)(p.patternProperties);E(),a.ok((0,t._)`${f} === ${r.default.errors}`);function E(){c.forIn("key",u,T=>{!w.length&&!P.length?$(T):c.if(x(T),()=>$(T))})}function x(T){let j;if(w.length>8){const B=(0,n.schemaRefOrVal)(m,p.properties,"properties");j=(0,e.isOwnProperty)(c,B,T)}else w.length?j=(0,t.or)(...w.map(B=>(0,t._)`${T} === ${B}`)):j=t.nil;return P.length&&(j=(0,t.or)(j,...P.map(B=>(0,t._)`${(0,e.usePattern)(a,B)}.test(${T})`))),(0,t.not)(j)}function v(T){c.code((0,t._)`delete ${u}[${T}]`)}function $(T){if(O.removeAdditional==="all"||O.removeAdditional&&y===!1){v(T);return}if(y===!1){a.setParams({additionalProperty:T}),a.error(),h||c.break();return}if(typeof y=="object"&&!(0,n.alwaysValidSchema)(m,y)){const j=c.name("valid");O.removeAdditional==="failing"?(g(T,j,!1),c.if((0,t.not)(j),()=>{a.reset(),v(T)})):(g(T,j),h||c.if((0,t.not)(j),()=>c.break()))}}function g(T,j,B){const V={keyword:"additionalProperties",dataProp:T,dataPropType:n.Type.Str};B===!1&&Object.assign(V,{compositeRule:!0,createErrors:!1,allErrors:!1}),a.subschema(V,j)}}};return sn.default=o,sn}var an={},ka;function pw(){if(ka)return an;ka=1,Object.defineProperty(an,"__esModule",{value:!0});const e=zt(),t=nt(),r=Ae(),n=jl(),i={keyword:"properties",type:"object",schemaType:"object",code(o){const{gen:a,schema:c,parentSchema:p,data:u,it:f}=o;(f.opts.removeAdditional==="all"&&p.additionalProperties===void 0||f.opts.defaultAdditionalProperties===!1)&&n.default.code(new e.KeywordCxt(f,n.default,"additionalProperties"));const m=(0,t.allSchemaProperties)(c);for(const P of m)f.definedProperties.add(P);f.opts.unevaluated&&m.length&&f.props!==!0&&(f.props=r.mergeEvaluated.props(a,(0,r.toHash)(m),f.props));const y=m.filter(P=>!(0,r.alwaysValidSchema)(f,c[P]));if(y.length===0)return;const h=a.name("valid");for(const P of y)O(P)?w(P):(a.if((0,t.propertyInData)(a,u,P,f.opts.ownProperties)),w(P),f.allErrors||a.else().var(h,!0),a.endIf()),o.it.definedProperties.add(P),o.ok(h);function O(P){return f.opts.useDefaults&&!f.compositeRule&&c[P].default!==void 0}function w(P){o.subschema({keyword:"properties",schemaProp:P,dataProp:P},h)}}};return an.default=i,an}var cn={},Ia;function lw(){if(Ia)return cn;Ia=1,Object.defineProperty(cn,"__esModule",{value:!0});const e=nt(),t=we(),r=Ae(),n=Ae(),i={keyword:"patternProperties",type:"object",schemaType:"object",code(o){const{gen:a,schema:c,data:p,parentSchema:u,it:f}=o,{opts:m}=f,y=(0,e.allSchemaProperties)(c),h=y.filter($=>(0,r.alwaysValidSchema)(f,c[$]));if(y.length===0||h.length===y.length&&(!f.opts.unevaluated||f.props===!0))return;const O=m.strictSchema&&!m.allowMatchingProperties&&u.properties,w=a.name("valid");f.props!==!0&&!(f.props instanceof t.Name)&&(f.props=(0,n.evaluatedPropsToName)(a,f.props));const{props:P}=f;E();function E(){for(const $ of y)O&&x($),f.allErrors?v($):(a.var(w,!0),v($),a.if(w))}function x($){for(const g in O)new RegExp($).test(g)&&(0,r.checkStrictMode)(f,`property ${g} matches pattern ${$} (use allowMatchingProperties)`)}function v($){a.forIn("key",p,g=>{a.if((0,t._)`${(0,e.usePattern)(o,$)}.test(${g})`,()=>{const T=h.includes($);T||o.subschema({keyword:"patternProperties",schemaProp:$,dataProp:g,dataPropType:n.Type.Str},w),f.opts.unevaluated&&P!==!0?a.assign((0,t._)`${P}[${g}]`,!0):!T&&!f.allErrors&&a.if((0,t.not)(w),()=>a.break())})})}}};return cn.default=i,cn}var pn={},qa;function uw(){if(qa)return pn;qa=1,Object.defineProperty(pn,"__esModule",{value:!0});const e=Ae(),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 a=n.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},a),r.failResult(a,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};return pn.default=t,pn}var ln={},Ca;function dw(){if(Ca)return ln;Ca=1,Object.defineProperty(ln,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:nt().validateUnion,error:{message:"must match a schema in anyOf"}};return ln.default=t,ln}var un={},ja;function fw(){if(ja)return un;ja=1,Object.defineProperty(un,"__esModule",{value:!0});const e=we(),t=Ae(),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:a,parentSchema:c,it:p}=i;if(!Array.isArray(a))throw new Error("ajv implementation error");if(p.opts.discriminator&&c.discriminator)return;const u=a,f=o.let("valid",!1),m=o.let("passing",null),y=o.name("_valid");i.setParams({passing:m}),o.block(h),i.result(f,()=>i.reset(),()=>i.error(!0));function h(){u.forEach((O,w)=>{let P;(0,t.alwaysValidSchema)(p,O)?o.var(y,!0):P=i.subschema({keyword:"oneOf",schemaProp:w,compositeRule:!0},y),w>0&&o.if((0,e._)`${y} && ${f}`).assign(f,!1).assign(m,(0,e._)`[${m}, ${w}]`).else(),o.if(y,()=>{o.assign(f,!0),o.assign(m,w),P&&i.mergeEvaluated(P,e.Name)})})}}};return un.default=n,un}var dn={},Ma;function mw(){if(Ma)return dn;Ma=1,Object.defineProperty(dn,"__esModule",{value:!0});const e=Ae(),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 a=n.name("valid");i.forEach((c,p)=>{if((0,e.alwaysValidSchema)(o,c))return;const u=r.subschema({keyword:"allOf",schemaProp:p},a,!0);r.ok(a),r.mergeEvaluated(u)})}};return dn.default=t,dn}var fn={},Da;function hw(){if(Da)return fn;Da=1,Object.defineProperty(fn,"__esModule",{value:!0});const e=we(),t=Ae(),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:a,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 u=i(p,"then"),f=i(p,"else");if(!u&&!f)return;const m=a.let("valid",!0),y=a.name("_valid");if(h(),o.reset(),u&&f){const w=a.let("ifClause");o.setParams({ifClause:w}),a.if(y,O("then",w),O("else",w))}else u?a.if(y,O("then")):a.if((0,e.not)(y),O("else"));o.pass(m,()=>o.error(!0));function h(){const w=o.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},y);o.mergeEvaluated(w)}function O(w,P){return()=>{const E=o.subschema({keyword:w},y);a.assign(m,y),o.mergeValidEvaluated(E,m),P?a.assign(P,(0,e._)`${w}`):o.setParams({ifClause:w})}}}};function i(o,a){const c=o.schema[a];return c!==void 0&&!(0,t.alwaysValidSchema)(o,c)}return fn.default=n,fn}var mn={},Na;function yw(){if(Na)return mn;Na=1,Object.defineProperty(mn,"__esModule",{value:!0});const e=Ae(),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 mn.default=t,mn}var La;function ts(){if(La)return en;La=1,Object.defineProperty(en,"__esModule",{value:!0});const e=ql(),t=ow(),r=Cl(),n=sw(),i=aw(),o=es(),a=cw(),c=jl(),p=pw(),u=lw(),f=uw(),m=dw(),y=fw(),h=mw(),O=hw(),w=yw();function P(E=!1){const x=[f.default,m.default,y.default,h.default,O.default,w.default,a.default,c.default,o.default,p.default,u.default];return E?x.push(t.default,n.default):x.push(e.default,r.default),x.push(i.default),x}return en.default=P,en}var hn={},kt={},Ua;function Ml(){if(Ua)return kt;Ua=1,Object.defineProperty(kt,"__esModule",{value:!0}),kt.dynamicAnchor=void 0;const e=we(),t=We(),r=hi(),n=yi(),i={keyword:"$dynamicAnchor",schemaType:"string",code:c=>o(c,c.schema)};function o(c,p){const{gen:u,it:f}=c;f.schemaEnv.root.dynamicAnchors[p]=!0;const m=(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(p)}`,y=f.errSchemaPath==="#"?f.validateName:a(c);u.if((0,e._)`!${m}`,()=>u.assign(m,y))}kt.dynamicAnchor=o;function a(c){const{schemaEnv:p,schema:u,self:f}=c.it,{root:m,baseId:y,localRefs:h,meta:O}=p.root,{schemaId:w}=f.opts,P=new r.SchemaEnv({schema:u,schemaId:w,root:m,baseId:y,localRefs:h,meta:O});return r.compileSchema.call(f,P),(0,n.getValidate)(c,P)}return kt.default=i,kt}var It={},Fa;function Dl(){if(Fa)return It;Fa=1,Object.defineProperty(It,"__esModule",{value:!0}),It.dynamicRef=void 0;const e=we(),t=We(),r=yi(),n={keyword:"$dynamicRef",schemaType:"string",code:o=>i(o,o.schema)};function i(o,a){const{gen:c,keyword:p,it:u}=o;if(a[0]!=="#")throw new Error(`"${p}" only supports hash fragment reference`);const f=a.slice(1);if(u.allErrors)m();else{const h=c.let("valid",!1);m(h),o.ok(h)}function m(h){if(u.schemaEnv.root.dynamicAnchors[f]){const O=c.let("_v",(0,e._)`${t.default.dynamicAnchors}${(0,e.getProperty)(f)}`);c.if(O,y(O,h),y(u.validateName,h))}else y(u.validateName,h)()}function y(h,O){return O?()=>c.block(()=>{(0,r.callRef)(o,h),c.let(O,!0)}):()=>(0,r.callRef)(o,h)}}return It.dynamicRef=i,It.default=n,It}var yn={},za;function gw(){if(za)return yn;za=1,Object.defineProperty(yn,"__esModule",{value:!0});const e=Ml(),t=Ae(),r={keyword:"$recursiveAnchor",schemaType:"boolean",code(n){n.schema?(0,e.dynamicAnchor)(n,""):(0,t.checkStrictMode)(n.it,"$recursiveAnchor: false is ignored")}};return yn.default=r,yn}var gn={},Ba;function bw(){if(Ba)return gn;Ba=1,Object.defineProperty(gn,"__esModule",{value:!0});const e=Dl(),t={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,e.dynamicRef)(r,r.schema)};return gn.default=t,gn}var Va;function vw(){if(Va)return hn;Va=1,Object.defineProperty(hn,"__esModule",{value:!0});const e=Ml(),t=Dl(),r=gw(),n=bw(),i=[e.default,t.default,r.default,n.default];return hn.default=i,hn}var bn={},vn={},Ha;function ww(){if(Ha)return vn;Ha=1,Object.defineProperty(vn,"__esModule",{value:!0});const e=es(),t={keyword:"dependentRequired",type:"object",schemaType:"object",error:e.error,code:r=>(0,e.validatePropertyDeps)(r)};return vn.default=t,vn}var wn={},Ka;function xw(){if(Ka)return wn;Ka=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=es(),t={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,e.validateSchemaDeps)(r)};return wn.default=t,wn}var xn={},Wa;function Pw(){if(Wa)return xn;Wa=1,Object.defineProperty(xn,"__esModule",{value:!0});const e=Ae(),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 xn.default=t,xn}var Qa;function Sw(){if(Qa)return bn;Qa=1,Object.defineProperty(bn,"__esModule",{value:!0});const e=ww(),t=xw(),r=Pw(),n=[e.default,t.default,r.default];return bn.default=n,bn}var Pn={},Sn={},Ga;function Ew(){if(Ga)return Sn;Ga=1,Object.defineProperty(Sn,"__esModule",{value:!0});const e=we(),t=Ae(),r=We(),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:a,schema:c=o.it.opts.defaultUnevaluatedProperties,data:p,errsCount:u,it:f}=o,m=o.schema===void 0&&o.it.opts.defaultUnevaluatedProperties===!1;if(!u)throw new Error("ajv implementation error");const{allErrors:y,props:h}=f;if(h instanceof e.Name)a.if((0,e._)`${h} !== true`,()=>a.forIn("key",p,E=>a.if(w(h,E),()=>O(E))));else if(h!==!0){const E=()=>a.forIn("key",p,x=>h===void 0?O(x):a.if(P(h,x),()=>O(x)));m&&f.errorPath.emptyStr()&&!f.compositeRule?a.if((0,e._)`${r.default.isAllOfVariant} === 0`,E):(!f.compositeRule||o.schema!==void 0)&&E()}m||(f.props=!0),o.ok((0,e._)`${u} === ${r.default.errors}`);function O(E){if(c===!1){o.setParams({unevaluatedProperty:E}),o.error(),y||a.break();return}if(!(0,t.alwaysValidSchema)(f,c)){const x=a.name("valid");o.subschema({keyword:"unevaluatedProperties",dataProp:E,dataPropType:t.Type.Str},x),y||a.if((0,e.not)(x),()=>a.break())}}function w(E,x){return(0,e._)`!${E} || !${E}[${x}]`}function P(E,x){const v=[];for(const $ in E)E[$]===!0&&v.push((0,e._)`${x} !== ${$}`);return(0,e.and)(...v)}}};return Sn.default=i,Sn}var En={},Ya;function Ow(){if(Ya)return En;Ya=1,Object.defineProperty(En,"__esModule",{value:!0});const e=we(),t=Ae(),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:a,data:c,it:p}=i,u=p.items||0;if(u===!0)return;const f=o.const("len",(0,e._)`${c}.length`);if(a===!1)i.setParams({len:u}),i.fail((0,e._)`${f} > ${u}`);else if(typeof a=="object"&&!(0,t.alwaysValidSchema)(p,a)){const y=o.var("valid",(0,e._)`${f} <= ${u}`);o.if((0,e.not)(y),()=>m(y,u)),i.ok(y)}p.items=!0;function m(y,h){o.forRange("i",h,f,O=>{i.subschema({keyword:"unevaluatedItems",dataProp:O,dataPropType:t.Type.Num},y),p.allErrors||o.if((0,e.not)(y),()=>o.break())})}}};return En.default=n,En}var Ja;function Nl(){if(Ja)return Pn;Ja=1,Object.defineProperty(Pn,"__esModule",{value:!0});const e=Ew(),t=Ow(),r=[e.default,t.default];return Pn.default=r,Pn}var On={},Rn={},Xa;function Rw(){if(Xa)return Rn;Xa=1,Object.defineProperty(Rn,"__esModule",{value:!0});const e=we(),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:a,$data:c,schema:p,schemaCode:u,it:f}=n,{opts:m,errSchemaPath:y,schemaEnv:h,self:O}=f;if(!m.validateFormats)return;c?w():P();function w(){const E=o.scopeValue("formats",{ref:O.formats,code:m.code.formats}),x=o.const("fDef",(0,e._)`${E}[${u}]`),v=o.let("fType"),$=o.let("format");o.if((0,e._)`typeof ${x} == "object" && !(${x} instanceof RegExp)`,()=>o.assign(v,(0,e._)`${x}.type || "string"`).assign($,(0,e._)`${x}.validate`),()=>o.assign(v,(0,e._)`"string"`).assign($,x)),n.fail$data((0,e.or)(g(),T()));function g(){return m.strictSchema===!1?e.nil:(0,e._)`${u} && !${$}`}function T(){const j=h.$async?(0,e._)`(${x}.async ? await ${$}(${a}) : ${$}(${a}))`:(0,e._)`${$}(${a})`,B=(0,e._)`(typeof ${$} == "function" ? ${j} : ${$}.test(${a}))`;return(0,e._)`${$} && ${$} !== true && ${v} === ${i} && !${B}`}}function P(){const E=O.formats[p];if(!E){g();return}if(E===!0)return;const[x,v,$]=T(E);x===i&&n.pass(j());function g(){if(m.strictSchema===!1){O.logger.warn(B());return}throw new Error(B());function B(){return`unknown format "${p}" ignored in schema at path "${y}"`}}function T(B){const V=B instanceof RegExp?(0,e.regexpCode)(B):m.code.formats?(0,e._)`${m.code.formats}${(0,e.getProperty)(p)}`:void 0,G=o.scopeValue("formats",{key:p,ref:B,code:V});return typeof B=="object"&&!(B instanceof RegExp)?[B.type||"string",B.validate,(0,e._)`${G}.validate`]:["string",B,G]}function j(){if(typeof E=="object"&&!(E instanceof RegExp)&&E.async){if(!h.$async)throw new Error("async format in sync schema");return(0,e._)`await ${$}(${a})`}return typeof v=="function"?(0,e._)`${$}(${a})`:(0,e._)`${$}.test(${a})`}}}};return Rn.default=r,Rn}var Za;function rs(){if(Za)return On;Za=1,Object.defineProperty(On,"__esModule",{value:!0});const t=[Rw().default];return On.default=t,On}var Et={},ec;function Ll(){return ec||(ec=1,Object.defineProperty(Et,"__esModule",{value:!0}),Et.contentVocabulary=Et.metadataVocabulary=void 0,Et.metadataVocabulary=["title","description","default","deprecated","examples"],Et.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Et}var tc;function Aw(){if(tc)return Mr;tc=1,Object.defineProperty(Mr,"__esModule",{value:!0});const e=Il(),t=Zo(),r=ts(),n=vw(),i=Sw(),o=Nl(),a=rs(),c=Ll(),p=[n.default,e.default,t.default,(0,r.default)(!0),a.default,c.metadataVocabulary,c.contentVocabulary,i.default,o.default];return Mr.default=p,Mr}var An={},Zt={},rc;function $w(){if(rc)return Zt;rc=1,Object.defineProperty(Zt,"__esModule",{value:!0}),Zt.DiscrError=void 0;var e;return(function(t){t.Tag="tag",t.Mapping="mapping"})(e||(Zt.DiscrError=e={})),Zt}var nc;function ns(){if(nc)return An;nc=1,Object.defineProperty(An,"__esModule",{value:!0});const e=we(),t=$w(),r=hi(),n=Bt(),i=Ae(),o={message:({params:{discrError:p,tagName:u}})=>p===t.DiscrError.Tag?`tag "${u}" must be string`:`value of tag "${u}" must be in oneOf or anyOf`,params:({params:{discrError:p,tag:u,tagName:f}})=>(0,e._)`{error: ${p}, tag: ${f}, tagValue: ${u}}`};function a(p,u){var f;if(!(!p.allOf||!Array.isArray(p.allOf))){for(const m of p.allOf)if(!((f=m?.properties)===null||f===void 0)&&f[u])return m.properties[u]}}const c={keyword:"discriminator",type:"object",schemaType:"object",error:o,code(p){const{gen:u,data:f,schema:m,parentSchema:y,it:h}=p,O=y.oneOf?"oneOf":y.anyOf?"anyOf":void 0;if(!h.opts.discriminator)throw new Error("discriminator: requires discriminator option");const w=m.propertyName;if(typeof w!="string")throw new Error("discriminator: requires propertyName");if(!O)throw new Error("discriminator: requires oneOf or anyOf composite keyword");const P=y[O],E=u.let("valid",!1),x=u.const("tag",(0,e._)`${f}${(0,e.getProperty)(w)}`);u.if((0,e._)`typeof ${x} == "string"`,()=>v(),()=>p.error(!1,{discrError:t.DiscrError.Tag,tag:x,tagName:w})),p.ok(E);function v(){const T=g();u.if(!1);for(const j in T)u.elseIf((0,e._)`${x} === ${j}`),u.assign(E,$(T[j]));u.else(),p.error(!1,{discrError:t.DiscrError.Mapping,tag:x,tagName:w}),u.endIf()}function $(T){const j=u.name("valid"),B=p.subschema({keyword:O,schemaProp:T},j);return p.mergeEvaluated(B,e.Name),j}function g(){var T;const j={},B=G(y);let V=!0;for(let Q=0;Q<P.length;Q++){let X=P[Q];const me=X?.$ref;if(me&&m.mapping){const{mapping:Te}=m,fe=Object.keys(Te).filter(Pe=>Te[Pe]===X.$ref);if(fe.length){for(const Pe of fe)oe(Pe,Q);continue}}if(me&&!(0,i.schemaHasRulesButRef)(X,h.self.RULES)&&(X=r.resolveRef.call(h.self,h.schemaEnv.root,h.baseId,me),X instanceof r.SchemaEnv&&(X=X.schema),X===void 0))throw new n.default(h.opts.uriResolver,h.baseId,me);let xe=(T=X?.properties)===null||T===void 0?void 0:T[w];if(!xe&&X?.allOf&&(xe=a(X,w)),typeof xe!="object")throw new Error(`discriminator: ${O} subschemas (or referenced schemas) must have "properties/${w}" or match mapping`);V=V&&(B||G(X)),J(xe,Q)}if(!V)throw new Error(`discriminator: "${w}" must be required`);return j;function G(Q){if(Array.isArray(Q.required)&&Q.required.includes(w))return!0;if(Q.allOf&&Array.isArray(Q.allOf))for(const X of Q.allOf){const me=X;if(Array.isArray(me.required)&&me.required.includes(w))return!0}return!1}function J(Q,X){if(Q.const)oe(Q.const,X);else if(Q.enum)for(const me of Q.enum)oe(me,X);else throw new Error(`discriminator: "properties/${w}" must have "const" or "enum"`)}function oe(Q,X){if(typeof Q!="string"||Q in j)throw new Error(`discriminator: "${w}" values must be unique strings`);j[Q]=X}}}};return An.default=c,An}var $n={};const _w="https://json-schema.org/draft/2020-12/schema",Tw="https://json-schema.org/draft/2020-12/schema",kw={"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},Iw="meta",qw="Core and Validation specifications meta-schema",Cw=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],jw=["object","boolean"],Mw="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",Dw={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}},Nw={$schema:_w,$id:Tw,$vocabulary:kw,$dynamicAnchor:Iw,title:qw,allOf:Cw,type:jw,$comment:Mw,properties:Dw},Lw="https://json-schema.org/draft/2020-12/schema",Uw="https://json-schema.org/draft/2020-12/meta/applicator",Fw={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},zw="meta",Bw="Applicator vocabulary meta-schema",Vw=["object","boolean"],Hw={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"}},Kw={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},Ww={$schema:Lw,$id:Uw,$vocabulary:Fw,$dynamicAnchor:zw,title:Bw,type:Vw,properties:Hw,$defs:Kw},Qw="https://json-schema.org/draft/2020-12/schema",Gw="https://json-schema.org/draft/2020-12/meta/unevaluated",Yw={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},Jw="meta",Xw="Unevaluated applicator vocabulary meta-schema",Zw=["object","boolean"],ex={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},tx={$schema:Qw,$id:Gw,$vocabulary:Yw,$dynamicAnchor:Jw,title:Xw,type:Zw,properties:ex},rx="https://json-schema.org/draft/2020-12/schema",nx="https://json-schema.org/draft/2020-12/meta/content",ix={"https://json-schema.org/draft/2020-12/vocab/content":!0},ox="meta",sx="Content vocabulary meta-schema",ax=["object","boolean"],cx={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},px={$schema:rx,$id:nx,$vocabulary:ix,$dynamicAnchor:ox,title:sx,type:ax,properties:cx},lx="https://json-schema.org/draft/2020-12/schema",ux="https://json-schema.org/draft/2020-12/meta/core",dx={"https://json-schema.org/draft/2020-12/vocab/core":!0},fx="meta",mx="Core vocabulary meta-schema",hx=["object","boolean"],yx={$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"}}},gx={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},bx={$schema:lx,$id:ux,$vocabulary:dx,$dynamicAnchor:fx,title:mx,type:hx,properties:yx,$defs:gx},vx="https://json-schema.org/draft/2020-12/schema",wx="https://json-schema.org/draft/2020-12/meta/format-annotation",xx={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},Px="meta",Sx="Format vocabulary meta-schema for annotation results",Ex=["object","boolean"],Ox={format:{type:"string"}},Rx={$schema:vx,$id:wx,$vocabulary:xx,$dynamicAnchor:Px,title:Sx,type:Ex,properties:Ox},Ax="https://json-schema.org/draft/2020-12/schema",$x="https://json-schema.org/draft/2020-12/meta/meta-data",_x={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},Tx="meta",kx="Meta-data vocabulary meta-schema",Ix=["object","boolean"],qx={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}},Cx={$schema:Ax,$id:$x,$vocabulary:_x,$dynamicAnchor:Tx,title:kx,type:Ix,properties:qx},jx="https://json-schema.org/draft/2020-12/schema",Mx="https://json-schema.org/draft/2020-12/meta/validation",Dx={"https://json-schema.org/draft/2020-12/vocab/validation":!0},Nx="meta",Lx="Validation vocabulary meta-schema",Ux=["object","boolean"],Fx={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"}}},zx={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:[]}},Bx={$schema:jx,$id:Mx,$vocabulary:Dx,$dynamicAnchor:Nx,title:Lx,type:Ux,properties:Fx,$defs:zx};var ic;function Vx(){if(ic)return $n;ic=1,Object.defineProperty($n,"__esModule",{value:!0});const e=Nw,t=Ww,r=tx,n=px,i=bx,o=Rx,a=Cx,c=Bx,p=["/properties"];function u(f){return[e,t,r,n,i,m(this,o),a,m(this,c)].forEach(y=>this.addMetaSchema(y,void 0,!1)),this;function m(y,h){return f?y.$dataMetaSchema(h,p):h}}return $n.default=u,$n}var oc;function Hx(){return oc||(oc=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=Jo(),n=Aw(),i=ns(),o=Vx(),a="https://json-schema.org/draft/2020-12/schema";class c extends r.default{constructor(h={}){super({...h,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(h=>this.addVocabulary(h)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:h,meta:O}=this.opts;O&&(o.default.call(this,h),this.refs["http://json-schema.org/schema"]=a)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(a)?a:void 0)}}t.Ajv2020=c,e.exports=t=c,e.exports.Ajv2020=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var p=zt();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return p.KeywordCxt}});var u=we();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var f=yr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var m=Bt();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})})(kr,kr.exports)),kr.exports}var Kx=Hx();const is=K.getDefaultExportFromCjs(Kx),Wx=new is({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function sc(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(i=>Wx.validate(i,r));return n===-1&&(n=0),t[n]}}function Mt(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(K.isPlainObject(t.properties)||K.isPlainObject(t.additionalProperties)||K.isPlainObject(t.items)&&(K.isPlainObject(t.items.properties)||K.isPlainObject(t.items.additionalProperties)||t.items.oneOf))return Qx(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((a,c)=>{if(typeof a=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${c} in oneOf.`);const p=a?.properties?.[n];if(!p||typeof p=="boolean")throw new Error(`Unexpected property '${p}' schema in ${e} at position ${c} in oneOf.`);const u=p.const,f=Mt(u,a,r);return typeof f=="string"&&(i[u]=f),f});return(a,c)=>{if(K.isPlainObject(a)){const p=a[n];if(typeof p=="string"){const u=i[p];if(u&&r[u])return u}}return sc(t.oneOf,o)(a,c)}}else{const n=t.oneOf.map((i,o)=>Mt(e+"_"+o,i,r));return sc(t.oneOf,n)}return t}function Qx(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,u]of Object.entries(t.properties||{}))i[p]=Mt(n+"."+p,u,r);let o;K.isPlainObject(t.additionalProperties)&&(o=Mt(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(o={});let a;K.isPlainObject(t.items)&&(K.isPlainObject(t.items.properties)||K.isPlainObject(t.items.additionalProperties)||t.items.oneOf)&&(a=Mt(e+"_items",t.items,r));let c=t.required;return t.oneOf&&t.oneOf.every(p=>!!p.required)&&(c=p=>{const u=t.oneOf.map(m=>[...t.required||[],...m.required]);let f=u.findIndex(m=>m.every(y=>p[y]!==void 0));return f===-1&&(f=0),u[f]}),r[n]={properties:i,additionalProperties:o,items:a,required:c,description:t.description,documentationLink:t.documentationLink},n}function Ul(e,t){const r={},n=Mt(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}const Gx=["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"],Yx=["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"],Jx=["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"],Xx=["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"],Zx=["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"],eP=["info-contact"],tP=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],rP=["no-unused-types","type-description"],nP=["struct","no-unresolved-refs"],iP=[...Gx,...Yx,...Jx,...Xx,...Zx,...eP,...tP,...rP,...nP],oP=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],sP=["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"],Fl=[...sP,...oP],zl={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!I.isAbsoluteUrl(e)&&!K.path.extname(e)?{type:"string"}:{...sr,directResolveAs:{name:"ConfigGovernance",...sr}},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"},sr={properties:zl},aP=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...sr.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),cP={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"},pP=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Al(sr.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),lP={properties:{headers:{type:"array",items:{type:"string"}}}},uP={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:I.mapOf("ClientGeneratorOptions"),pagination:"ClientPagination"}},dP={properties:{},additionalProperties:{}},Bl={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"}}},fP={properties:{...Bl.properties,exclude:{type:"array",items:{type:"string"}},operations:I.mapOf("ClientPaginationRule")}},mP={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(iP.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(Yo(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},hP={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"},yP={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"},gP={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(Fl.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(Yo(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},bP={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},vP={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},wP={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(Fl.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(Yo(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},xP={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"},PP={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 SP(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 EP(e){return{...e[Ke.ScorecardClassicLevel],properties:{...e[Ke.ScorecardClassicLevel]?.properties,...zl}}}const OP={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"},RP={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"},AP={properties:{subject:"Subject",assertions:"Assertions",where:I.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 os(e,t){const r=Bn.flatMap(i=>{const o=hr(i),a=t?t.extendTypes(o,i):o;return Object.keys(a)}),{ctx:n}=Ul("rootRedoclyConfigSchema",e);return{...$P,ConfigRoot:aP(n),ConfigApisProperties:pP(n),Subject:SP([...r,...$0]),...n,[Ke.ScorecardClassicLevel]:EP(n)}}const $P={ConfigurableRule:AP,ConfigApis:cP,ConfigGovernance:sr,ConfigHTTP:lP,Client:uP,ClientGeneratorOptions:dP,ClientPagination:fP,ClientPaginationRule:Bl,Where:RP,BuiltinRule:hP,CustomRule:yP,BuiltinDecorator:bP,CustomDecorator:vP,BuiltinPreprocessor:xP,CustomPreprocessor:PP,Schema:$e.Schema,SchemaProperties:$e.SchemaProperties,PatternProperties:$e.PatternProperties,NamedSchemas:$e.NamedSchemas,DependentRequired:$e.DependentRequired,Discriminator:$e.Discriminator,DiscriminatorMapping:$e.DiscriminatorMapping,ExternalDocs:$e.ExternalDocs,Xml:$e.Xml,Rules:mP,Decorators:gP,Preprocessors:wP,Assertions:OP},{theme:bA,..._P}=di.properties,TP={...di,properties:_P},Vl=os(TP),gr=I.normalizeTypes(Vl),_o="redocly.yaml",Hl={extends:["recommended"]},ei=".redocly.lint-ignore.yaml",Kl=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
9
9
  # See https://redocly.com/docs/cli/ for more information.
10
- `,ss="configBundler",as="pluginsCollector",Wl=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function Ql(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function _n(e,t){const r=new Set(t);let n=0;for(const i of e)r.has(i)&&n++;return n}function _S(e,t){const r=t.direction||t,n=t.property;for(let i=1;i<e.length;i++){let o=e[i],a=e[i-1];if(n){const p=e[i][n],u=e[i-1][n];if(!p||!u)return!1;o=p,a=u}if(typeof o=="string"&&typeof a=="string"&&(o=o.toLowerCase(),a=a.toLowerCase()),!(r==="asc"?o>=a:o<=a))return!1}return!0}var Tn={exports:{}},kn={},In={},ac;function TS(){if(ac)return In;ac=1,Object.defineProperty(In,"__esModule",{value:!0});const e=we(),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:a=>(0,e.str)`must be ${o(a).okStr} ${a.schemaCode}`,params:a=>(0,e._)`{comparison: ${o(a).okStr}, limit: ${a.schemaCode}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{data:c,schemaCode:p}=a;a.fail$data((0,e._)`${c} ${o(a).fail} ${p} || isNaN(${c})`)}};function o(a){var c;const p=a.keyword,u=!((c=a.parentSchema)===null||c===void 0)&&c[r[p].exclusive]?1:0;return r[p].ops[u]}return In.default=i,In}var qn={},cc;function kS(){if(cc)return qn;cc=1,Object.defineProperty(qn,"__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 qn.default=t,qn}var pc;function IS(){if(pc)return kn;pc=1,Object.defineProperty(kn,"__esModule",{value:!0});const e=yi(),t=ts(),r=Nl(),n=rs(),i=Zo(),o=TS(),a=kS(),c=["title","description","default"],p=["$schema","id","$defs",{keyword:"$comment"},"definitions",e.default],u=[...i.default.slice(1),o.default,a.default],f=[p,u,(0,t.default)(),n.default,c,r.default];return kn.default=f,kn}const qS="http://json-schema.org/draft-04/schema#",CS="http://json-schema.org/draft-04/schema#",jS="Core schema meta-schema",MS={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}},DS="object",NS={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:"#"}},LS={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},US={id:qS,$schema:CS,description:jS,definitions:MS,type:DS,properties:NS,dependencies:LS,default:{}};var lc;function FS(){return lc||(lc=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=Jo(),n=IS(),i=ns(),o=US,a=["/properties"],c="http://json-schema.org/draft-04/schema";class p extends r.default{constructor(O={}){super({...O,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(O=>this.addVocabulary(O)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const O=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(O,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 u=zt();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=we();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var m=yr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var y=Bt();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(Tn,Tn.exports)),Tn.exports}var zS=FS();const BS=K.getDefaultExportFromCjs(zS);var Cn={exports:{}},Ui={},uc;function VS(){return uc||(uc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(J,oe){return{validate:J,compare:oe}}e.fullFormats={date:t(o,a),time:t(p(!0),u),"date-time":t(y(!0),h),"iso-time":t(p(),f),"iso-date-time":t(y(),O),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:E,"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:G,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:T},int64:{type:"number",validate:j},float:{type:"number",validate:B},double:{type:"number",validate:B},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"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,h),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,f),"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,O),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(J){return J%4===0&&(J%100!==0||J%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(J){const oe=n.exec(J);if(!oe)return!1;const Q=+oe[1],X=+oe[2],me=+oe[3];return X>=1&&X<=12&&me>=1&&me<=(X===2&&r(Q)?29:i[X])}function a(J,oe){if(J&&oe)return J>oe?1:J<oe?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function p(J){return function(Q){const X=c.exec(Q);if(!X)return!1;const me=+X[1],xe=+X[2],Te=+X[3],fe=X[4],Se=X[5]==="-"?-1:1,A=+(X[6]||0),P=+(X[7]||0);if(A>23||P>59||J&&!fe)return!1;if(me<=23&&xe<=59&&Te<60)return!0;const k=xe-P*Se,_=me-A*Se-(k<0?1:0);return(_===23||_===-1)&&(k===59||k===-1)&&Te<61}}function u(J,oe){if(!(J&&oe))return;const Q=new Date("2020-01-01T"+J).valueOf(),X=new Date("2020-01-01T"+oe).valueOf();if(Q&&X)return Q-X}function f(J,oe){if(!(J&&oe))return;const Q=c.exec(J),X=c.exec(oe);if(Q&&X)return J=Q[1]+Q[2]+Q[3],oe=X[1]+X[2]+X[3],J>oe?1:J<oe?-1:0}const m=/t|\s/i;function y(J){const oe=p(J);return function(X){const me=X.split(m);return me.length===2&&o(me[0])&&oe(me[1])}}function h(J,oe){if(!(J&&oe))return;const Q=new Date(J).valueOf(),X=new Date(oe).valueOf();if(Q&&X)return Q-X}function O(J,oe){if(!(J&&oe))return;const[Q,X]=J.split(m),[me,xe]=oe.split(m),Te=a(Q,me);if(Te!==void 0)return Te||u(X,xe)}const w=/\/|:/,S=/^(?:[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 E(J){return w.test(J)&&S.test(J)}const x=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(J){return x.lastIndex=0,x.test(J)}const $=-2147483648,g=2**31-1;function T(J){return Number.isInteger(J)&&J<=g&&J>=$}function j(J){return Number.isInteger(J)}function B(){return!0}const V=/[^\\]\\Z/;function G(J){if(V.test(J))return!1;try{return new RegExp(J),!0}catch{return!1}}})(Ui)),Ui}var Fi={},jn={exports:{}},Mn={},dc;function HS(){if(dc)return Mn;dc=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=Il(),t=Zo(),r=ts(),n=rs(),i=Ll(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Mn.default=o,Mn}const KS="http://json-schema.org/draft-07/schema#",WS="http://json-schema.org/draft-07/schema#",QS="Core schema meta-schema",GS={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:[]}},YS=["object","boolean"],JS={$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:"#"}},XS={$schema:KS,$id:WS,title:QS,definitions:GS,type:YS,properties:JS,default:!0};var fc;function ZS(){return fc||(fc=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=Jo(),n=HS(),i=ns(),o=XS,a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(O=>this.addVocabulary(O)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const O=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(O,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 u=zt();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=we();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var m=yr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var y=Bt();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(jn,jn.exports)),jn.exports}var mc;function eP(){return mc||(mc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=ZS(),r=we(),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:u,schemaCode:f,keyword:m,it:y}=c,{opts:h,self:O}=y;if(!h.validateFormats)return;const w=new t.KeywordCxt(y,O.RULES.all.format.definition,"format");w.$data?S():E();function S(){const v=p.scopeValue("formats",{ref:O.formats,code:h.code.formats}),$=p.const("fmt",(0,r._)`${v}[${w.schemaCode}]`);c.fail$data((0,r.or)((0,r._)`typeof ${$} != "object"`,(0,r._)`${$} instanceof RegExp`,(0,r._)`typeof ${$}.compare != "function"`,x($)))}function E(){const v=w.schema,$=O.formats[v];if(!$||$===!0)return;if(typeof $!="object"||$ instanceof RegExp||typeof $.compare!="function")throw new Error(`"${m}": format "${v}" does not define "compare" function`);const g=p.scopeValue("formats",{key:v,ref:$,code:h.code.formats?(0,r._)`${h.code.formats}${(0,r.getProperty)(v)}`:void 0});c.fail$data(x(g))}function x(v){return(0,r._)`${v}.compare(${u}, ${f}) ${i[m].fail} 0`}},dependencies:["format"]};const a=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=a})(Fi)),Fi}var hc;function tP(){return hc||(hc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=VS(),n=eP(),i=we(),o=new i.Name("fullFormats"),a=new i.Name("fastFormats"),c=(u,f={keywords:!0})=>{if(Array.isArray(f))return p(u,f,r.fullFormats,o),u;const[m,y]=f.mode==="fast"?[r.fastFormats,a]:[r.fullFormats,o],h=f.formats||r.formatNames;return p(u,h,m,y),f.keywords&&(0,n.default)(u),u};c.get=(u,f="full")=>{const y=(f==="fast"?r.fastFormats:r.fullFormats)[u];if(!y)throw new Error(`Unknown format "${u}"`);return y};function p(u,f,m,y){var h,O;(h=(O=u.opts.code).formats)!==null&&h!==void 0||(O.formats=(0,i._)`require("ajv-formats/dist/formats").${y}`);for(const w of f)u.addFormat(w,m[w])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Cn,Cn.exports)),Cn.exports}var rP=tP();const nP=K.getDefaultExportFromCjs(rP);function yc(e){return e==="draft4"?"id":"$id"}function iP(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class gi{instances={};validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:a,allowAdditionalProperties:c,ajvContext:p,specVersion:u}=n,f=iP(u),m=this.getValidator(r,i,a,c,f);if(!m)return{valid:!0,errors:[]};const y={instancePath:o,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!m.call(p??{},t,y),errors:(m.errors||[]).map(O)};function O(w){let S=w.message;const E=w.keyword==="enum"?w.params.allowedValues:void 0;E&&(S+=` ${E.map($=>`"${$}"`).join(", ")}`),w.keyword==="type"&&(S=`type ${S}`);const x=w.instancePath.substring(o.length+1),v=x.substring(x.lastIndexOf("/")+1);if(v&&(S=`\`${v}\` property ${S}`),w.keyword==="additionalProperties"||w.keyword==="unevaluatedProperties"){const $=w.params.additionalProperty||w.params.unevaluatedProperty;S=`${S} \`${$}\``,w.instancePath+="/"+I.escapePointerFragment($)}return{...w,message:S,suggest:E}}}getAjv(t,r){if(!this.instances[r]){const n=yc(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,a,c){const p=decodeURI(o.split("#")[0]),u=t({$ref:a},p);return!u||!u.location?!1:{[n]:encodeURI(u.location.source.absoluteRef)+"#"+c,...u.node}}};this.instances[r]=r==="2020"?new is(i):new BS(i),nP(this.instances[r])}return this.instances[r]}getValidator(t,r,n,i,o){const a=this.getAjv(n,o),c=encodeURI(r.absolutePointer),p=yc(o);return a.getSchema(c)||(a.setDefaultUnevaluatedProperties(i),a.addSchema({[p]:c,...t},c)),a.getSchema(c)}}const Gl=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Yl=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),gc=new WeakMap,oP=new I.Location(new I.Source("assertion",""),"#/schema"),Rt={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||K.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=ir(t);return i.map(a=>!o?.test(a)&&{message:`${JSON.stringify(a)} should match a regex ${t}`,location:ze(e)?r:K.isPlainObject(n)?r.child(a).key():r.key()}).filter(I.isTruthy)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||K.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=ir(t);return i.map(a=>o?.test(a)&&{message:`${JSON.stringify(a)} should not match a regex ${t}`,location:ze(e)?r:K.isPlainObject(n)?r.child(a).key():r.key()}).filter(I.isTruthy)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||K.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>!t.includes(i)&&{message:`${JSON.stringify(i)} should be one of the predefined values`,location:ze(e)?r:r.child(i).key()}).filter(I.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(I.isTruthy),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||K.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(I.isTruthy)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||K.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>t.includes(i)&&{message:`${JSON.stringify(i)} is disallowed`,location:ze(e)?r:r.child(i).key()}).filter(I.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:ze(e)?r:r.child(n).key()}).filter(I.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"||K.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:ze(e)?r:r.child(o).key()}).filter(I.isTruthy)},sortOrder:(e,t,{baseLocation:r})=>{const n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&K.isPlainObject(e[0])&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||_S(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})=>_n(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(_n(e,t)>0?_n(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>_n(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=ir(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=gc.get(t);o||(o=new gi,gc.set(t,o));const a=I.isRef(n)&&i(n)?.location||r;let c;try{({errors:c}=o.validate(e,t,{schemaLoc:oP,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 u=p.instancePath?I.joinPointer(a.pointer,p.instancePath.slice(1)):a.pointer,f=new I.Location(a.source,u),m=p.keyword==="additionalProperties"||p.keyword==="unevaluatedProperties";return{message:p.message,location:m?f.key():f}})}};function sP(e){return(t,r,n)=>e.call(null,t,r,n)}function aP(e,t){if(!e.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&K.isPlainObject(o)){const a=o;if(t){bc(t,a);for(const c of a.where||[])bc(t,c)}n.push({...a,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function bc(e,t){for(const r of Object.keys(t.assertions||{})){const[n,i]=r.split("/");if(!n||!i)continue;const o=e.find(a=>a.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}.`);Rt[r]=sP(o.assertions[i])}}class br{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=Ql(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>aP({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({...Rl(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!K.isPlainObject(this.resolvedConfig?.apis?.[t]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...a}=r[t];return new br({...n,...a},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){const r=this.configPath?K.pathBrowserifyExports.dirname(this.configPath):process.cwd(),n=I.isAbsoluteUrl(t)?t:K.pathBrowserifyExports.resolve(r,t);delete this.ignore[n]}saveIgnore(){const t=this.configPath?K.pathBrowserifyExports.dirname(this.configPath):process.cwd(),r=K.pathBrowserifyExports.join(t,ei),n={};for(const i of Object.keys(this.ignore)){const o=I.isAbsoluteUrl(i)?i:$p(K.pathBrowserifyExports.relative(t,i)),a=n[o]=this.ignore[i];for(const c of Object.keys(a))a[c]=Array.from(a[c])}(void 0)(r,Kl+I.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 Bn)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 Bn)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(const r of t||[])for(const n of Bn)this.decorators[n][r]&&(this.decorators[n][r]="off")}}function Ye(e){return e!==void 0}function ar(e,t,r,n){return e.flatMap(i=>Object.keys(i).map(o=>{const a=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,u=c.message,f=a(c);return Array.isArray(f)?f.map(m=>({severity:p,ruleId:o,message:u,visitor:m})):{severity:p,message:u,ruleId:o,visitor:f}})).flatMap(i=>i).filter(Ye)}const cP={},pP={},lP={};function Jl(e){return Array.isArray(e)&&e.length===0}function Xl(e,t,r){const{parent:n,key:i}=t;let o=!1;if(Array.isArray(e))for(let a=0;a<e.length;a++){if(I.isRef(e[a])){const c=t.resolve(e[a]);r(c.node)&&(e.splice(a,1),o=!0,a--)}r(e[a])&&(e.splice(a,1),o=!0,a--)}else if(K.isPlainObject(e))for(const a of Object.keys(e)){if(I.isRef(e[a])){const c=t.resolve(e[a]);r(c.node)&&(delete e[a],o=!0)}r(e[a])&&(delete e[a],o=!0)}o&&(Lt(e)||Jl(e))&&delete n[i]}function Dt(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=vc(t),e=vc(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function vc(e){return Array.isArray(e)?e:[e]}const uP="any",Zl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||uP;if(n!==void 0){if(n==="Operation"){const a=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const f of a){const m=I.isRef(c[f])?p.resolve(c[f]).node:c[f];if(K.isPlainObject(m)){const y=m[e];Dt(y,t,i)||delete c[f]}}a.some(f=>c[f])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(a,c){const p=a[e];Dt(p,t,i)||delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=a=>a?.[e]&&!Dt(a?.[e],t,i);return{any:{enter:(a,c)=>{Xl(a,c,o)}}}},dP="any",eu=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||dP;if(n!==void 0){if(n==="Operation"){const a=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const f of a){const m=I.isRef(c[f])?p.resolve(c[f]).node:c[f];if(K.isPlainObject(m)){const y=m[e];Dt(y,t,i)&&delete c[f]}}a.some(f=>c[f])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(a,c){const p=a[e];Dt(p,t,i)&&delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=a=>Dt(a?.[e],t,i);return{any:{enter:(a,c)=>{Xl(a,c,o)}}}};function wc(e){const t=(void 0)(e,"utf-8");return I.parseYaml(t)}function cr(e,t){return I.isAbsoluteUrl(e)||t===void 0?e:K.pathBrowserifyExports.resolve(K.pathBrowserifyExports.dirname(t),e)}function cs(e){return(void 0)(e,"utf-8")}const tu=({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=cs(cr(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
10
+ `,ss="configBundler",as="pluginsCollector",Wl=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function Ql(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function _n(e,t){const r=new Set(t);let n=0;for(const i of e)r.has(i)&&n++;return n}function kP(e,t){const r=t.direction||t,n=t.property;for(let i=1;i<e.length;i++){let o=e[i],a=e[i-1];if(n){const p=e[i][n],u=e[i-1][n];if(!p||!u)return!1;o=p,a=u}if(typeof o=="string"&&typeof a=="string"&&(o=o.toLowerCase(),a=a.toLowerCase()),!(r==="asc"?o>=a:o<=a))return!1}return!0}var Tn={exports:{}},kn={},In={},ac;function IP(){if(ac)return In;ac=1,Object.defineProperty(In,"__esModule",{value:!0});const e=we(),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:a=>(0,e.str)`must be ${o(a).okStr} ${a.schemaCode}`,params:a=>(0,e._)`{comparison: ${o(a).okStr}, limit: ${a.schemaCode}}`},i={keyword:Object.keys(r),type:"number",schemaType:"number",$data:!0,error:n,code(a){const{data:c,schemaCode:p}=a;a.fail$data((0,e._)`${c} ${o(a).fail} ${p} || isNaN(${c})`)}};function o(a){var c;const p=a.keyword,u=!((c=a.parentSchema)===null||c===void 0)&&c[r[p].exclusive]?1:0;return r[p].ops[u]}return In.default=i,In}var qn={},cc;function qP(){if(cc)return qn;cc=1,Object.defineProperty(qn,"__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 qn.default=t,qn}var pc;function CP(){if(pc)return kn;pc=1,Object.defineProperty(kn,"__esModule",{value:!0});const e=yi(),t=ts(),r=Nl(),n=rs(),i=Zo(),o=IP(),a=qP(),c=["title","description","default"],p=["$schema","id","$defs",{keyword:"$comment"},"definitions",e.default],u=[...i.default.slice(1),o.default,a.default],f=[p,u,(0,t.default)(),n.default,c,r.default];return kn.default=f,kn}const jP="http://json-schema.org/draft-04/schema#",MP="http://json-schema.org/draft-04/schema#",DP="Core schema meta-schema",NP={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}},LP="object",UP={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:"#"}},FP={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},zP={id:jP,$schema:MP,description:DP,definitions:NP,type:LP,properties:UP,dependencies:FP,default:{}};var lc;function BP(){return lc||(lc=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=Jo(),n=CP(),i=ns(),o=zP,a=["/properties"],c="http://json-schema.org/draft-04/schema";class p extends r.default{constructor(O={}){super({...O,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(O=>this.addVocabulary(O)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const O=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(O,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 u=zt();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=we();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var m=yr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var y=Bt();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(Tn,Tn.exports)),Tn.exports}var VP=BP();const HP=K.getDefaultExportFromCjs(VP);var Cn={exports:{}},Ui={},uc;function KP(){return uc||(uc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatNames=e.fastFormats=e.fullFormats=void 0;function t(J,oe){return{validate:J,compare:oe}}e.fullFormats={date:t(o,a),time:t(p(!0),u),"date-time":t(y(!0),h),"iso-time":t(p(),f),"iso-date-time":t(y(),O),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:E,"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:G,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:T},int64:{type:"number",validate:j},float:{type:"number",validate:B},double:{type:"number",validate:B},password:!0,binary:!0},e.fastFormats={...e.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,a),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,u),"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,h),"iso-time":t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,f),"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,O),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(J){return J%4===0&&(J%100!==0||J%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(J){const oe=n.exec(J);if(!oe)return!1;const Q=+oe[1],X=+oe[2],me=+oe[3];return X>=1&&X<=12&&me>=1&&me<=(X===2&&r(Q)?29:i[X])}function a(J,oe){if(J&&oe)return J>oe?1:J<oe?-1:0}const c=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function p(J){return function(Q){const X=c.exec(Q);if(!X)return!1;const me=+X[1],xe=+X[2],Te=+X[3],fe=X[4],Pe=X[5]==="-"?-1:1,R=+(X[6]||0),S=+(X[7]||0);if(R>23||S>59||J&&!fe)return!1;if(me<=23&&xe<=59&&Te<60)return!0;const k=xe-S*Pe,_=me-R*Pe-(k<0?1:0);return(_===23||_===-1)&&(k===59||k===-1)&&Te<61}}function u(J,oe){if(!(J&&oe))return;const Q=new Date("2020-01-01T"+J).valueOf(),X=new Date("2020-01-01T"+oe).valueOf();if(Q&&X)return Q-X}function f(J,oe){if(!(J&&oe))return;const Q=c.exec(J),X=c.exec(oe);if(Q&&X)return J=Q[1]+Q[2]+Q[3],oe=X[1]+X[2]+X[3],J>oe?1:J<oe?-1:0}const m=/t|\s/i;function y(J){const oe=p(J);return function(X){const me=X.split(m);return me.length===2&&o(me[0])&&oe(me[1])}}function h(J,oe){if(!(J&&oe))return;const Q=new Date(J).valueOf(),X=new Date(oe).valueOf();if(Q&&X)return Q-X}function O(J,oe){if(!(J&&oe))return;const[Q,X]=J.split(m),[me,xe]=oe.split(m),Te=a(Q,me);if(Te!==void 0)return Te||u(X,xe)}const w=/\/|:/,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 E(J){return w.test(J)&&P.test(J)}const x=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function v(J){return x.lastIndex=0,x.test(J)}const $=-2147483648,g=2**31-1;function T(J){return Number.isInteger(J)&&J<=g&&J>=$}function j(J){return Number.isInteger(J)}function B(){return!0}const V=/[^\\]\\Z/;function G(J){if(V.test(J))return!1;try{return new RegExp(J),!0}catch{return!1}}})(Ui)),Ui}var Fi={},jn={exports:{}},Mn={},dc;function WP(){if(dc)return Mn;dc=1,Object.defineProperty(Mn,"__esModule",{value:!0});const e=Il(),t=Zo(),r=ts(),n=rs(),i=Ll(),o=[e.default,t.default,(0,r.default)(),n.default,i.metadataVocabulary,i.contentVocabulary];return Mn.default=o,Mn}const QP="http://json-schema.org/draft-07/schema#",GP="http://json-schema.org/draft-07/schema#",YP="Core schema meta-schema",JP={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:[]}},XP=["object","boolean"],ZP={$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:"#"}},eS={$schema:QP,$id:GP,title:YP,definitions:JP,type:XP,properties:ZP,default:!0};var fc;function tS(){return fc||(fc=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=Jo(),n=WP(),i=ns(),o=eS,a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends r.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(O=>this.addVocabulary(O)),this.opts.discriminator&&this.addKeyword(i.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const O=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(O,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 u=zt();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=we();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var m=yr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return m.default}});var y=Bt();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return y.default}})})(jn,jn.exports)),jn.exports}var mc;function rS(){return mc||(mc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.formatLimitDefinition=void 0;const t=tS(),r=we(),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:u,schemaCode:f,keyword:m,it:y}=c,{opts:h,self:O}=y;if(!h.validateFormats)return;const w=new t.KeywordCxt(y,O.RULES.all.format.definition,"format");w.$data?P():E();function P(){const v=p.scopeValue("formats",{ref:O.formats,code:h.code.formats}),$=p.const("fmt",(0,r._)`${v}[${w.schemaCode}]`);c.fail$data((0,r.or)((0,r._)`typeof ${$} != "object"`,(0,r._)`${$} instanceof RegExp`,(0,r._)`typeof ${$}.compare != "function"`,x($)))}function E(){const v=w.schema,$=O.formats[v];if(!$||$===!0)return;if(typeof $!="object"||$ instanceof RegExp||typeof $.compare!="function")throw new Error(`"${m}": format "${v}" does not define "compare" function`);const g=p.scopeValue("formats",{key:v,ref:$,code:h.code.formats?(0,r._)`${h.code.formats}${(0,r.getProperty)(v)}`:void 0});c.fail$data(x(g))}function x(v){return(0,r._)`${v}.compare(${u}, ${f}) ${i[m].fail} 0`}},dependencies:["format"]};const a=c=>(c.addKeyword(e.formatLimitDefinition),c);e.default=a})(Fi)),Fi}var hc;function nS(){return hc||(hc=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const r=KP(),n=rS(),i=we(),o=new i.Name("fullFormats"),a=new i.Name("fastFormats"),c=(u,f={keywords:!0})=>{if(Array.isArray(f))return p(u,f,r.fullFormats,o),u;const[m,y]=f.mode==="fast"?[r.fastFormats,a]:[r.fullFormats,o],h=f.formats||r.formatNames;return p(u,h,m,y),f.keywords&&(0,n.default)(u),u};c.get=(u,f="full")=>{const y=(f==="fast"?r.fastFormats:r.fullFormats)[u];if(!y)throw new Error(`Unknown format "${u}"`);return y};function p(u,f,m,y){var h,O;(h=(O=u.opts.code).formats)!==null&&h!==void 0||(O.formats=(0,i._)`require("ajv-formats/dist/formats").${y}`);for(const w of f)u.addFormat(w,m[w])}e.exports=t=c,Object.defineProperty(t,"__esModule",{value:!0}),t.default=c})(Cn,Cn.exports)),Cn.exports}var iS=nS();const oS=K.getDefaultExportFromCjs(iS);function yc(e){return e==="draft4"?"id":"$id"}function sS(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}class gi{instances={};validate(t,r,n){const{schemaLoc:i,instancePath:o,resolve:a,allowAdditionalProperties:c,ajvContext:p,specVersion:u}=n,f=sS(u),m=this.getValidator(r,i,a,c,f);if(!m)return{valid:!0,errors:[]};const y={instancePath:o,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!m.call(p??{},t,y),errors:(m.errors||[]).map(O)};function O(w){let P=w.message;const E=w.keyword==="enum"?w.params.allowedValues:void 0;E&&(P+=` ${E.map($=>`"${$}"`).join(", ")}`),w.keyword==="type"&&(P=`type ${P}`);const x=w.instancePath.substring(o.length+1),v=x.substring(x.lastIndexOf("/")+1);if(v&&(P=`\`${v}\` property ${P}`),w.keyword==="additionalProperties"||w.keyword==="unevaluatedProperties"){const $=w.params.additionalProperty||w.params.unevaluatedProperty;P=`${P} \`${$}\``,w.instancePath+="/"+I.escapePointerFragment($)}return{...w,message:P,suggest:E}}}getAjv(t,r){if(!this.instances[r]){const n=yc(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,a,c){const p=decodeURI(o.split("#")[0]),u=t({$ref:a},p);return!u||!u.location?!1:{[n]:encodeURI(u.location.source.absoluteRef)+"#"+c,...u.node}}};this.instances[r]=r==="2020"?new is(i):new HP(i),oS(this.instances[r])}return this.instances[r]}getValidator(t,r,n,i,o){const a=this.getAjv(n,o),c=encodeURI(r.absolutePointer),p=yc(o);return a.getSchema(c)||(a.setDefaultUnevaluatedProperties(i),a.addSchema({[p]:c,...t},c)),a.getSchema(c)}}const Gl=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),Yl=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),gc=new WeakMap,aS=new I.Location(new I.Source("assertion",""),"#/schema"),At={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||K.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=ir(t);return i.map(a=>!o?.test(a)&&{message:`${JSON.stringify(a)} should match a regex ${t}`,location:ze(e)?r:K.isPlainObject(n)?r.child(a).key():r.key()}).filter(I.isTruthy)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||K.isPlainObject(e))return[];const i=Array.isArray(e)?e:[e],o=ir(t);return i.map(a=>o?.test(a)&&{message:`${JSON.stringify(a)} should not match a regex ${t}`,location:ze(e)?r:K.isPlainObject(n)?r.child(a).key():r.key()}).filter(I.isTruthy)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||K.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>!t.includes(i)&&{message:`${JSON.stringify(i)} should be one of the predefined values`,location:ze(e)?r:r.child(i).key()}).filter(I.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(I.isTruthy),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||K.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(I.isTruthy)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||K.isPlainObject(e)?[]:(Array.isArray(e)?e:[e]).map(i=>t.includes(i)&&{message:`${JSON.stringify(i)} is disallowed`,location:ze(e)?r:r.child(i).key()}).filter(I.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:ze(e)?r:r.child(n).key()}).filter(I.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"||K.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:ze(e)?r:r.child(o).key()}).filter(I.isTruthy)},sortOrder:(e,t,{baseLocation:r})=>{const n=t.direction||t,i=t.property;return Array.isArray(e)&&e.length>0&&K.isPlainObject(e[0])&&!i?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||kP(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})=>_n(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(_n(e,t)>0?_n(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>_n(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=ir(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=gc.get(t);o||(o=new gi,gc.set(t,o));const a=I.isRef(n)&&i(n)?.location||r;let c;try{({errors:c}=o.validate(e,t,{schemaLoc:aS,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 u=p.instancePath?I.joinPointer(a.pointer,p.instancePath.slice(1)):a.pointer,f=new I.Location(a.source,u),m=p.keyword==="additionalProperties"||p.keyword==="unevaluatedProperties";return{message:p.message,location:m?f.key():f}})}};function cS(e){return(t,r,n)=>e.call(null,t,r,n)}function pS(e,t){if(!e.rules)return{};const r={},n=[];for(const[i,o]of Object.entries(e.rules))if(i.startsWith("rule/")&&K.isPlainObject(o)){const a=o;if(t){bc(t,a);for(const c of a.where||[])bc(t,c)}n.push({...a,assertionId:i})}else r[i]=o;return n.length>0&&(r.assertions=n),r}function bc(e,t){for(const r of Object.keys(t.assertions||{})){const[n,i]=r.split("/");if(!n||!i)continue;const o=e.find(a=>a.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}.`);At[r]=cS(o.assertions[i])}}class br{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=Ql(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;const n=i=>pS({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({...Al(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!K.isPlainObject(this.resolvedConfig?.apis?.[t]))return this;const{apis:r,...n}=this.resolvedConfig,{root:i,output:o,...a}=r[t];return new br({...n,...a},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){const r=this.configPath?K.pathBrowserifyExports.dirname(this.configPath):process.cwd(),n=I.isAbsoluteUrl(t)?t:K.pathBrowserifyExports.resolve(r,t);delete this.ignore[n]}saveIgnore(){const t=this.configPath?K.pathBrowserifyExports.dirname(this.configPath):process.cwd(),r=K.pathBrowserifyExports.join(t,ei),n={};for(const i of Object.keys(this.ignore)){const o=I.isAbsoluteUrl(i)?i:$p(K.pathBrowserifyExports.relative(t,i)),a=n[o]=this.ignore[i];for(const c of Object.keys(a))a[c]=Array.from(a[c])}(void 0)(r,Kl+I.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 Bn)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 Bn)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(const r of t||[])for(const n of Bn)this.decorators[n][r]&&(this.decorators[n][r]="off")}}function Ye(e){return e!==void 0}function ar(e,t,r,n){return e.flatMap(i=>Object.keys(i).map(o=>{const a=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,u=c.message,f=a(c);return Array.isArray(f)?f.map(m=>({severity:p,ruleId:o,message:u,visitor:m})):{severity:p,message:u,ruleId:o,visitor:f}})).flatMap(i=>i).filter(Ye)}const lS={},uS={},dS={};function Jl(e){return Array.isArray(e)&&e.length===0}function Xl(e,t,r){const{parent:n,key:i}=t;let o=!1;if(Array.isArray(e))for(let a=0;a<e.length;a++){if(I.isRef(e[a])){const c=t.resolve(e[a]);r(c.node)&&(e.splice(a,1),o=!0,a--)}r(e[a])&&(e.splice(a,1),o=!0,a--)}else if(K.isPlainObject(e))for(const a of Object.keys(e)){if(I.isRef(e[a])){const c=t.resolve(e[a]);r(c.node)&&(delete e[a],o=!0)}r(e[a])&&(delete e[a],o=!0)}o&&(Lt(e)||Jl(e))&&delete n[i]}function Dt(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=vc(t),e=vc(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function vc(e){return Array.isArray(e)?e:[e]}const fS="any",Zl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||fS;if(n!==void 0){if(n==="Operation"){const a=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const f of a){const m=I.isRef(c[f])?p.resolve(c[f]).node:c[f];if(K.isPlainObject(m)){const y=m[e];Dt(y,t,i)||delete c[f]}}a.some(f=>c[f])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(a,c){const p=a[e];Dt(p,t,i)||delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=a=>a?.[e]&&!Dt(a?.[e],t,i);return{any:{enter:(a,c)=>{Xl(a,c,o)}}}},mS="any",eu=({property:e,value:t,matchStrategy:r,applyTo:n})=>{const i=r||mS;if(n!==void 0){if(n==="Operation"){const a=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(c,p){for(const f of a){const m=I.isRef(c[f])?p.resolve(c[f]).node:c[f];if(K.isPlainObject(m)){const y=m[e];Dt(y,t,i)&&delete c[f]}}a.some(f=>c[f])||c.additionalOperations||delete p.parent[p.key]}}}}if(n==="PathItem")return{PathItem:{enter(a,c){const p=a[e];Dt(p,t,i)&&delete c.parent[c.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}const o=a=>Dt(a?.[e],t,i);return{any:{enter:(a,c)=>{Xl(a,c,o)}}}};function wc(e){const t=(void 0)(e,"utf-8");return I.parseYaml(t)}function cr(e,t){return I.isAbsoluteUrl(e)||t===void 0?e:K.pathBrowserifyExports.resolve(K.pathBrowserifyExports.dirname(t),e)}function cs(e){return(void 0)(e,"utf-8")}const tu=({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=cs(cr(e,i?.configPath))}catch(o){r({message:`Failed to read markdown override file for "info.description".
11
11
  ${o.message}`,location:n.child("description")})}}}}),ru=e=>({Info:{leave(t){if(!K.isPlainObject(e))throw new Error('"info-override" decorator should be called with an object');const{severity:r,...n}=e;Object.assign(t,n)}}}),nu=({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 a=e[o];t.description=cs(cr(a,i?.configPath))}catch(a){r({message:`Failed to read markdown override file for operation "${o}".
12
- ${a.message}`,location:n.child("operationId").key()})}}}}),fP="x-internal",iu=({internalFlagProperty:e=fP})=>{function t(n,i,o){const{parent:a,key:c}=i;let p=!1;if(Array.isArray(n))for(let u=0;u<n.length;u++){if(I.isRef(n[u])&&i.resolve(n[u]).node?.[e]){if(K.isPlainObject(a.discriminator?.mapping))for(const m in a.discriminator.mapping)o?.[m]===n[u].$ref&&delete a.discriminator.mapping[m];n.splice(u,1),p=!0,u--}n[u]?.[e]&&(n.splice(u,1),p=!0,u--)}else if(K.isPlainObject(n))for(const u of Object.keys(n)){if(I.isRef(n[u])){const f=i.resolve(n[u]);K.isPlainObject(f.node)&&f.node?.[e]&&(delete n[u],p=!0)}K.isPlainObject(n[u])&&n[u]?.[e]&&(delete n[u],p=!0)}p&&(Lt(n)||Jl(n))&&delete a[c]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}},ou=({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=cs(cr(i,n?.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${t.name}".
13
- ${o.message}`})}}}}),mP=["definitions","parameters","responses","securityDefinitions"],su=()=>{const e=new Map;function t(i,o){const a=`${i}/${o}`;e.set(a,{usedIn:e.get(a)?.usedIn??[],componentType:i,name:o})}function r(i){if(!i.startsWith("#/"))return;const[o,a]=I.parseRef(i).pointer;if(!(!o||!a)&&mP.includes(o))return`${o}/${a}`}function n(i,o=new Set){const a=o.size;for(const[c,{usedIn:p,name:u,componentType:f}]of e)!p.some(y=>y!==c&&!o.has(y))&&f&&(o.add(c),delete i[f][u],e.delete(c),Lt(i[f])&&delete i[f]);return o.size>a?n(i,o):o.size}return{ref:{leave(i,{location:o,type:a,key:c}){if(["Schema","Parameter","Response","SecurityScheme"].includes(a.name)){const p=r(i.$ref);if(!p)return;const u=r(o.pointer)??o.pointer,f=e.get(p);f?f.usedIn.push(u):e.set(p,{usedIn:[u],name:c.toString()})}}},Root:{leave(i,o){const a=o.getVisitorData();a.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 a=`securityDefinitions/${o}`,c=e.get(a);c?c.usedIn.push("SecurityRequirement"):e.set(a,{usedIn:["SecurityRequirement"],name:o})}}}},hP={"operation-description-override":nu,"tag-description-override":ou,"info-description-override":tu,"info-override":ru,"remove-x-internal":iu,"filter-in":Zl,"filter-out":eu,"remove-unused-components":su},yP=({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 a=xc(t.responses[o],r.resolve);a&&(a.content=a.content?a.content:{},Object.keys(i.responses[o]).forEach(c=>{const p=i.responses[o][c];a.content[c]={...a.content[c],examples:wc(cr(p,r.config?.configPath))}}),t.responses[o]=a)}if(i.request&&t.requestBody){const o=xc(t.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(a=>{const c=i.request[a];o.content[a]={...o.content[a],examples:wc(cr(c,r.config?.configPath))}}),t.requestBody=o}}}}});function xc(e,t){if(!I.isRef(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function gP(e,t){return t in e}function Sc(e){if(!e.startsWith("#/components/"))return;const[t,r,n]=I.parseRef(e).pointer;if(!(!r||!n))return`${r}/${n}`}const au=()=>{const e=new Map;function t(n,i,o=!1){const a=`${n}/${i}`;e.set(a,{usedIn:e.get(a)?.usedIn??[],componentType:n,name:i,referencesDiscriminator:o})}function r(n,i=new Set){const o=i.size;for(const[a,{usedIn:c,name:p,componentType:u,referencesDiscriminator:f}]of e)if(!(c.some(y=>y!==a&&!i.has(y))||f)&&u&&n.components&&gP(n.components,u)){i.add(a);const y=n.components[u];delete y[p],e.delete(a),Lt(y)&&delete n.components[u]}return i.size>o?r(n,i):i.size}return{ref:{leave(n,{location:i,type:o,key:a}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(o.name)){const c=Sc(n.$ref);if(!c)return;const p=Sc(i.pointer)??i.pointer,u=e.get(c);u?u.usedIn.push(p):e.set(c,{usedIn:[p],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n),Lt(n.components)&&delete n.components}},NamedSchemas:{Schema(n,i){const o=n.allOf?.some(a=>I.isRef(a)&&i.resolve(a)?.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}`,a=e.get(o);a?a.usedIn.push("SecurityRequirement"):e.set(o,{usedIn:["SecurityRequirement"],name:i})}}}},bP={"operation-description-override":nu,"tag-description-override":ou,"info-description-override":tu,"info-override":ru,"remove-x-internal":iu,"filter-in":Zl,"filter-out":eu,"media-type-examples-override":yP,"remove-unused-components":au},vP={},wP={},xP=()=>({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(a=>`\`${a}\``).join(" or ")}.`,location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});function SP(e){return e}const To=void 0,Ae=new Proxy(K.tty,{get(e,t){return I.isBrowser?SP:e[t]}});class PP{info(t){return I.isBrowser?console.info(t):process.stderr.write(t)}warn(t){return I.isBrowser?console.warn(t):process.stderr.write(Ae.yellow(t))}error(t){return I.isBrowser?console.error(t):process.stderr.write(Ae.red(t))}output(t){return I.isBrowser?console.log(t):process.stdout.write(t)}printNewLine(){I.isBrowser?console.log(`
12
+ ${a.message}`,location:n.child("operationId").key()})}}}}),hS="x-internal",iu=({internalFlagProperty:e=hS})=>{function t(n,i,o){const{parent:a,key:c}=i;let p=!1;if(Array.isArray(n))for(let u=0;u<n.length;u++){if(I.isRef(n[u])&&i.resolve(n[u]).node?.[e]){if(K.isPlainObject(a.discriminator?.mapping))for(const m in a.discriminator.mapping)o?.[m]===n[u].$ref&&delete a.discriminator.mapping[m];n.splice(u,1),p=!0,u--}n[u]?.[e]&&(n.splice(u,1),p=!0,u--)}else if(K.isPlainObject(n))for(const u of Object.keys(n)){if(I.isRef(n[u])){const f=i.resolve(n[u]);K.isPlainObject(f.node)&&f.node?.[e]&&(delete n[u],p=!0)}K.isPlainObject(n[u])&&n[u]?.[e]&&(delete n[u],p=!0)}p&&(Lt(n)||Jl(n))&&delete a[c]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,i)=>{t(n,i,r)}}}},ou=({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=cs(cr(i,n?.configPath))}catch(o){r({message:`Failed to read markdown override file for tag "${t.name}".
13
+ ${o.message}`})}}}}),yS=["definitions","parameters","responses","securityDefinitions"],su=()=>{const e=new Map;function t(i,o){const a=`${i}/${o}`;e.set(a,{usedIn:e.get(a)?.usedIn??[],componentType:i,name:o})}function r(i){if(!i.startsWith("#/"))return;const[o,a]=I.parseRef(i).pointer;if(!(!o||!a)&&yS.includes(o))return`${o}/${a}`}function n(i,o=new Set){const a=o.size;for(const[c,{usedIn:p,name:u,componentType:f}]of e)!p.some(y=>y!==c&&!o.has(y))&&f&&(o.add(c),delete i[f][u],e.delete(c),Lt(i[f])&&delete i[f]);return o.size>a?n(i,o):o.size}return{ref:{leave(i,{location:o,type:a,key:c}){if(["Schema","Parameter","Response","SecurityScheme"].includes(a.name)){const p=r(i.$ref);if(!p)return;const u=r(o.pointer)??o.pointer,f=e.get(p);f?f.usedIn.push(u):e.set(p,{usedIn:[u],name:c.toString()})}}},Root:{leave(i,o){const a=o.getVisitorData();a.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 a=`securityDefinitions/${o}`,c=e.get(a);c?c.usedIn.push("SecurityRequirement"):e.set(a,{usedIn:["SecurityRequirement"],name:o})}}}},gS={"operation-description-override":nu,"tag-description-override":ou,"info-description-override":tu,"info-override":ru,"remove-x-internal":iu,"filter-in":Zl,"filter-out":eu,"remove-unused-components":su},bS=({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 a=xc(t.responses[o],r.resolve);a&&(a.content=a.content?a.content:{},Object.keys(i.responses[o]).forEach(c=>{const p=i.responses[o][c];a.content[c]={...a.content[c],examples:wc(cr(p,r.config?.configPath))}}),t.responses[o]=a)}if(i.request&&t.requestBody){const o=xc(t.requestBody,r.resolve);if(!o)return;o.content=o.content?o.content:{},Object.keys(i.request).forEach(a=>{const c=i.request[a];o.content[a]={...o.content[a],examples:wc(cr(c,r.config?.configPath))}}),t.requestBody=o}}}}});function xc(e,t){if(!I.isRef(e))return e;const r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function vS(e,t){return t in e}function Pc(e){if(!e.startsWith("#/components/"))return;const[t,r,n]=I.parseRef(e).pointer;if(!(!r||!n))return`${r}/${n}`}const au=()=>{const e=new Map;function t(n,i,o=!1){const a=`${n}/${i}`;e.set(a,{usedIn:e.get(a)?.usedIn??[],componentType:n,name:i,referencesDiscriminator:o})}function r(n,i=new Set){const o=i.size;for(const[a,{usedIn:c,name:p,componentType:u,referencesDiscriminator:f}]of e)if(!(c.some(y=>y!==a&&!i.has(y))||f)&&u&&n.components&&vS(n.components,u)){i.add(a);const y=n.components[u];delete y[p],e.delete(a),Lt(y)&&delete n.components[u]}return i.size>o?r(n,i):i.size}return{ref:{leave(n,{location:i,type:o,key:a}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(o.name)){const c=Pc(n.$ref);if(!c)return;const p=Pc(i.pointer)??i.pointer,u=e.get(c);u?u.usedIn.push(p):e.set(c,{usedIn:[p],name:a.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n),Lt(n.components)&&delete n.components}},NamedSchemas:{Schema(n,i){const o=n.allOf?.some(a=>I.isRef(a)&&i.resolve(a)?.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}`,a=e.get(o);a?a.usedIn.push("SecurityRequirement"):e.set(o,{usedIn:["SecurityRequirement"],name:i})}}}},wS={"operation-description-override":nu,"tag-description-override":ou,"info-description-override":tu,"info-override":ru,"remove-x-internal":iu,"filter-in":Zl,"filter-out":eu,"media-type-examples-override":bS,"remove-unused-components":au},xS={},PS={},SS=()=>({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(a=>`\`${a}\``).join(" or ")}.`,location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});function ES(e){return e}const To=void 0,Re=new Proxy(K.tty,{get(e,t){return I.isBrowser?ES:e[t]}});class OS{info(t){return I.isBrowser?console.info(t):process.stderr.write(t)}warn(t){return I.isBrowser?console.warn(t):process.stderr.write(Re.yellow(t))}error(t){return I.isBrowser?console.error(t):process.stderr.write(Re.red(t))}output(t){return I.isBrowser?console.log(t):process.stdout.write(t)}printNewLine(){I.isBrowser?console.log(`
14
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=I.isBrowser?n:Ae.gray(n);return I.isBrowser?console.log(i):process.stdout.write(i)}indent(t,r){const n=I.isBrowser?" ":" ";return t.split(`
15
+ `)}printSeparator(t){const r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),i=I.isBrowser?n:Re.gray(n);return I.isBrowser?console.log(i):process.stdout.write(i)}indent(t,r){const n=I.isBrowser?" ":" ";return t.split(`
16
16
  `).map(i=>n.repeat(r)+i).join(`
17
- `)}}const Ee=new PP,ko={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function Pc(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,i=n&&ir(n),o=i&&(p=>i.test(p.toString())),a=Array.isArray(t)&&(p=>t.includes(p.toString())),c=Array.isArray(r)&&(p=>!r.includes(p.toString()));return[o,a,c].filter(I.isTruthy)}function cu(e){const t=Lo(Rt).filter(i=>e.assertions[i]!==void 0).map(i=>({name:i,conditions:e.assertions[i],runsOnKeys:Gl.has(i),runsOnValues:Yl.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 pu({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function lu(e,t,r){const n=pu(e),i=[];for(const o of t)if(n.length)for(const a of n)i.push(Ec({assert:o,ctx:r,assertionProperty:a}));else i.push(Ec({assert:o,ctx:r}));return i.flat()}function EP(e,t){const r=Pc(e.subject),n=r.length?(p,u)=>!r.every(f=>f(u)):void 0,i={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return i;let o={};const a=o,c=e.where;for(let p=0;p<c.length;p++){const u=c[p];if(!ze(u.subject?.type))throw new Error(`${e.assertionId} -> where -> [${p}]: 'type' (String) is required`);if(!K.isPlainObject(u.assertions))throw new Error(`${e.assertionId} -> where -> [${p}]: 'assertions' (Object) is required`);const f=Pc(u.subject),m=cu(u),y=(O,w,S)=>!f.every(E=>E(w))||!!lu(u,m,{...S,node:O}).length,h={...(f.length||m.length)&&{skip:y}};u.subject.type===e.subject.type&&p===c.length-1?i[e.subject.type]={enter:t,...h.skip&&{skip:h.skip}||n&&{skip:(O,w,S)=>!!(h.skip?.(O,w,S)||n?.(O,w))}}:o=o[u.subject?.type]=h}return o[e.subject.type]=i[e.subject.type],a}function OP(e,t){return(r,n)=>{const i=pu(t),o=`${Ae.blue(e)} failed because the ${Ae.blue(t.subject.type)} ${Ae.blue(i.join(", "))} didn't meet the assertions: ${ko.problems}`.replace(/ +/g," "),a=lu(t,cu(t),{...n,node:r});if(a.length)for(const c of AP(a)){const p=t.message||o,f={problems:uu(c),assertionName:e,nodeType:t.subject.type,property:i.join(", "),key:String(n.key),pointer:n.location.pointer,file:du(n.location.source.absoluteRef)};n.report({message:fu(p,f),location:RP(c)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function AP(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 RP(e){return e.length?e[0].location:void 0}function uu(e){return e.length===1?e[0].message??"":e.map(t=>`
18
- - ${t.message??""}`).join("")}function du(e){return I.isAbsoluteUrl(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function fu(e,t){let r=e;for(const n of Object.keys(ko)){const i=ko[n],o=t[n];i&&(r=r.split(i).join(o))}return r}function Ec({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const i=I.isRef(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],o=t.rawNode[r],a=n.child(r);return Rt[e.name](i,e.conditions,{...t,baseLocation:a,rawValue:o})}else{const i=Array.isArray(t.node)?t.node:Object.keys(t.node);return Rt[e.name](i,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const xt=e=>{const t=[],r=Object.values(e).filter(n=>K.isPlainObject(n));for(const[n,i]of r.entries()){if(!ze(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);if(!K.isPlainObject(i.assertions))throw new Error(`${i.assertionId}: 'assertions' (Object) is required`);const o=OP(i.assertionId,i),a=EP(i,o);t.push(a)}return t};function $P(e){return K.isPlainObject(e)||Array.isArray(e)}const vr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;const n=new Set,i=[];for(const[o,a]of e.enum.entries()){const c=$P(a);(c?i.some(u=>ht(u,a)):n.has(a))&&t({message:`Duplicated enum value found: '${c?JSON.stringify(a):a}'.`,location:r.child(["enum",o]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),c?i.push(a):n.add(a)}}});var zi,Oc;function _P(){return Oc||(Oc=1,zi=(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 a=0;a<i&&t.charCodeAt(a)===r.charCodeAt(a);)a++;if(i-=a,o-=a,i===0||o<3)return o;var c=0,p,u,f,m,y,h,O,w,S,E,x,v,$=[];for(p=0;p<i;p++)$.push(p+1),$.push(t.charCodeAt(a+p));for(var g=$.length-1;c<o-3;)for(S=r.charCodeAt(a+(u=c)),E=r.charCodeAt(a+(f=c+1)),x=r.charCodeAt(a+(m=c+2)),v=r.charCodeAt(a+(y=c+3)),h=c+=4,p=0;p<g;p+=2)O=$[p],w=$[p+1],u=e(O,u,f,S,w),f=e(u,f,m,E,w),m=e(f,m,y,x,w),h=e(m,y,h,v,w),$[p]=h,y=m,m=f,f=u,u=O;for(;c<o;)for(S=r.charCodeAt(a+(u=c)),h=++c,p=0;p<g;p+=2)O=$[p],$[p]=h=e(O,u,h,S,$[p+1]),u=O;return h}})()),zi}var TP=_P();const kP=K.getDefaultExportFromCjs(TP),bi=(e,t,r)=>{if(I.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}},Bi=(e,t,r,n,i)=>!!(e.properties&&I.getOwn(e.properties,t)!==void 0||e.allOf?.some(o=>At(o,t,r,n,i))||or(e.anyOf)&&e.anyOf.every(o=>At(o,t,r,new Set(n),i))||or(e.oneOf)&&e.oneOf.every(o=>At(o,t,r,new Set(n),i))),At=(e,t,r,n=new Set,i)=>{if(I.isRef(e)&&Bi(e,t,r,n,i))return!0;const{schema:o,location:a,chain:c}=bi(e,r,i);if(!o)return!1;if(!n.has(o)&&(n.add(o),Bi(o,t,r,n,a)))return!0;for(const p of c??[])if(!(!K.isPlainObject(p.node)||n.has(p.node))&&(n.add(p.node),Bi(p.node,t,r,n,p.location)))return!0;return!1};function Vn(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function ti(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function mu(e,t,r){if(ti(e))return!0;if(!Array.isArray(e?.traits))return!1;for(const n of e.traits){const i=I.isRef(n)?t(n,r).node:n;if(ti(i))return!0}return!1}function ri(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return K.isPlainObject(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function vi(e,t){return`${e} object should contain \`${t}\` field.`}function IP(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function hu(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Vt({fieldName:e,value:t,ctx:r,reference:n}){K.isPlainObject(t)&&(t[e]===void 0?r.report({message:vi(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:hu(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function qP({fieldNames:e,value:t,ctx:r,reference:n}){if(K.isPlainObject(t)){e.some(i=>t.hasOwnProperty(i))||r.report({message:IP(r.type.name,e),location:r.location.key(),reference:n});for(const i of e)t.hasOwnProperty(i)&&!t[i]&&r.report({message:hu(r.type.name,i),location:r.location.child([i]).key(),reference:n})}}function wi(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=kP(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 yu(e){if(K.isPlainObject(e)){if(Ye(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(Ye(e.value))return{value:e.value,field:"value"}}}function pr({example:e,schema:t,options:r,reference:n}){const{location:i,ctx:o,validator:a,allowAdditionalProperties:c,ajvContext:p}=r,{resolve:u,location:f,report:m,specVersion:y}=o;try{const{valid:h,errors:O}=a.validate(e,t,{schemaLoc:f.child("schema"),instancePath:i.pointer,resolve:u,allowAdditionalProperties:c,ajvContext:p,specVersion:y});if(!h)for(const w of O)m({message:`Example value must conform to the schema: ${w.message}.`,location:{...new I.Location(i.source,w.instancePath),reportOnKey:w.keyword==="unevaluatedProperties"||w.keyword==="additionalProperties"},from:f,suggest:w.suggest,reference:n})}catch(h){if(h.message==="discriminator: requires oneOf or anyOf composite keyword")return;m({message:`Example validation errored: ${h.message}.`,location:f.child("schema"),from:f,reference:n})}}const CP=10;function Ac(e,t,r,n,{report:i,location:o},a){if(e&&!e.includes(t)){const c=e.length>CP?`\`${r}\` "${t}" is not a valid value.${a?` See the supported values: ${a}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(p=>`"${p}"`).join(", ")}.`;i({location:o,message:c,from:n,suggest:wi(t,e)})}}function ni({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 Io(e,t){return t?e.name.toLowerCase():e.name}const wr=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){const n=e.enum.filter(i=>!ri(i,e.type,e.nullable));for(const i of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Vn(i)}".`,location:r.child(["enum",e.enum.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){const n={};for(const i of e.enum){n[i]=[];for(const o of e.type)ri(i,o,e.nullable)||n[i].push(o);n[i].length!==e.type.length&&delete n[i]}for(const i of Object.keys(n))t({message:`Enum value \`${i}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}}),xi=()=>({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"})}}),xr=()=>{const e=[],t=new Set,r=(n,i,o)=>{if(or(n.required))for(const[a,c]of n.required.entries())At(n,c,o,new Set,i)||o.report({message:`Required property '${c}' is not defined.`,location:i.child(["required",a]),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 a=[{node:n,location:i.location},...o.chain??[]];for(const{node:c,location:p}of a)!K.isPlainObject(c)||t.has(c)||(t.add(c),r(c,p,i))}},Schema:{leave(n){e.pop()},enter(n,i){if(e.push(n),!or(n.required))return;const o=(p,u)=>{const f=m=>bi(m,i).schema===u;return!!(p.allOf?.some(f)||p.anyOf?.some(f)||p.oneOf?.some(f))},a=(p,u)=>{if(p<0)return;const f=e[p];return o(f,u)?a(p-1,f)??f:void 0},c=a(e.length-2,n);for(const[p,u]of n.required.entries())!At(n,u,i)&&!At(c,u,i)&&i.report({message:`Required property '${u}' is not defined.`,location:i.location.child(["required",p]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}},Sr=()=>({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"})}}),yt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&jt(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;jt(o,t,n.child(i))}}});function jt(e,t,r){const n=e.error;n instanceof I.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 Pr=()=>({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"}))}}),gt=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:a,ignoreNextVisitorsOnNode:c}){const p=Vn(e),u=i!==n?i:void 0;if(r.items){p!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${p}\``,from:u}),c());return}else if(p!=="object"){r!==I.SpecExtension&&t({message:`Expected type \`${r.name}\` (object) but got \`${p}\``,from:u}),c();return}const f=typeof r.required=="function"?r.required(e,o):r.required;for(const h of f||[])e.hasOwnProperty(h)||t({message:`The field \`${h}\` must be present on this level.`,from:u,location:[{reportOnKey:!0}]});const m=r.allowed?.(e);if(m&&K.isPlainObject(e))for(const h in e)m.includes(h)||r.extensionsPrefix&&h.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(h)||t({message:`The field \`${h}\` is not allowed here.`,from:u,location:n.child([h]).key()});const y=r.requiredOneOf||null;if(y){let h=!1;for(const O of y||[])e.hasOwnProperty(O)&&(h=!0);h||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:u,location:[{reportOnKey:!0}]})}for(const h of Object.keys(e)){const O=n.child([h]);let w=e[h],S=I.getOwn(r.properties,h);if(S===void 0&&(S=r.additionalProperties),typeof S=="function"&&(S=S(w,h)),I.isNamedType(S))continue;const E=S,x=Vn(w);if(E===void 0){if(h.startsWith("x-"))continue;t({message:`Property \`${h}\` is not expected here.`,suggest:wi(h,Object.keys(r.properties)),from:u,location:O.key()});continue}if(E!==null){if(E.resolvable!==!1&&I.isRef(w)&&(w=a(w).node),E.items&&E.items?.enum&&Array.isArray(w))for(let v=0;v<w.length;v++)Ac(E.items?.enum,w[v],h,u,{report:t,location:n.child([h,v])},E.items?.documentationLink);if(E.enum)Ac(E.enum,w,h,u,{report:t,location:n.child([h])},E.documentationLink);else if(E.type&&!ri(w,E.type,!1))t({message:`Expected type \`${E.type}\` but got \`${x}\`.`,from:u,location:O}),c();else if(x==="array"&&E.items?.type){const v=E.items?.type;for(let $=0;$<w.length;$++){const g=w[$];ri(g,v,!1)||t({message:`Expected type \`${v}\` but got \`${Vn(g)}\`.`,from:u,location:O.child([$])})}}typeof E.minimum=="number"&&E.minimum>e[h]&&t({message:`The value of the ${h} field must be greater than or equal to ${E.minimum}`,from:u,location:n.child([h])})}}}}),jP=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||K.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"})}}}),MP=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const i of t){const o=I.getOwn(i,"scheme"),a=I.getOwn(i,"schemeName");o&&a&&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)}}}},DP=()=>({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"})}}}),NP=()=>{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 a=o.schemeName;typeof a=="string"&&a.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"})}}}}}},LP={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function Rc(e,{report:t,location:r}){if(e)for(const n of e){if("schemeName"in n)continue;const{scheme:i,values:o}=n,a=i?.type==="http"?i.scheme:i?.type,c=i?.type==="http"?a?.toLowerCase():a;if(a==="mutualTLS"){Ee.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const p=LP[c];if(p)for(const u of p)(!o||!(u in o))&&t({message:`The \`${u}\` is required when using the ${a} 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 \`${a}\` 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 UP=()=>({Step:{enter(e,t){Rc(e?.["x-security"],t)}},Workflow:{enter(e,t){Rc(e?.["x-security"],t)}}}),FP=()=>({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 a=JSON.stringify(o);i.has(a)?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(a)}}},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 a=JSON.stringify(o);i.has(a)?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(a)}}},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 a=JSON.stringify(o);i.has(a)?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(a)}}}}),zP=()=>{const e=new Map,t=new Map,r=[];function n({value:a,report:c,location:p,path:u,definedWorkflowOutputs:f}){const m=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=m.exec(a))!==null;){const[h,O,w]=y,S=f.get(O);S?S.includes(w)||c({message:`Output key "${w}" is not defined in workflow "${O}". Available outputs: [ ${S.join(", ")} ].`,location:p.child(u)}):c({message:`Workflow "${O}" referenced in runtime expression "${h}" is not defined or has no outputs.`,location:p.child(u)})}}function i({value:a,report:c,location:p,path:u,definedStepOutputs:f}){const m=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=m.exec(a))!==null;){const[h,O,w]=y,S=f.get(O);S?S.includes(w)||c({message:`Output key "${w}" is not defined in step "${O}". Available outputs: [ ${S.join(", ")} ].`,location:p.child(u)}):c({message:`Step "${O}" referenced in runtime expression "${h}" is not defined or has no outputs.`,location:p.child(u)})}}function o(a,c,p=[]){if(typeof a=="string")n({value:a,report:c.report,location:c.location,path:p,definedWorkflowOutputs:e}),i({value:a,report:c.report,location:c.location,path:p,definedStepOutputs:t});else if(K.isPlainObject(a)||Array.isArray(a))for(const[u,f]of Object.entries(a))o(f,c,[...p,u])}return{Step:{enter(a,{report:c,location:p}){a.outputs&&t.set(a.stepId,Object.keys(a.outputs))}},Workflow:{enter(a,{report:c,location:p}){a.outputs&&e.set(a.workflowId,Object.keys(a.outputs))}},Parameters:{enter(a,c){r.push(()=>{o(a,c)})}},RequestBody:{enter(a,c){r.push(()=>{o(a,c)})}},CriterionObject:{enter(a,c){r.push(()=>{o(a.condition,c)})}},Outputs:{enter(a,c){r.push(()=>{o(a,c)})}},ExtendedSecurity:{enter(a,c){r.push(()=>{o(a,c)})}},ExtendedOperation:{enter(a,c){r.push(()=>{o(a,c)})}},Root:{leave(){for(const a of r)a()}}}},BP=()=>({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)}}}),VP=()=>{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)}}}}},HP=()=>{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)}}}},KP=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),WP=["x-operation","operationId","operationPath","channelPath","workflowId"],QP=()=>({Step:{enter(e,{report:t,location:r}){const n=WP.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"})}}}),GP=()=>({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)}}}),YP=()=>({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)}}}),JP=()=>({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)}}}}),XP=()=>{const e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(const i of n)t.add(i.name)}},Workflows:{enter(n){for(const i of n)r.add(i.workflowId)}},Workflow:{leave(n,{report:i,location:o}){if(n.dependsOn)for(const a of n.dependsOn){if(a.startsWith("$sourceDescriptions.")){const c=a.split(".")[1];t.has(c)||i({message:`SourceDescription ${c} must be defined in sourceDescriptions.`,location:o.child(["dependsOn",n.dependsOn.indexOf(a)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!a.startsWith("$sourceDescriptions")&&!r.has(a)&&i({message:`Workflow ${a} must be defined in workflows.`,location:o.child(["dependsOn",n.dependsOn.indexOf(a)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(a)&&i({message:"Every workflow in dependsOn must be unique.",location:o.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(a)}}}}},ZP=()=>{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))}}}},eE={assertions:xt,"criteria-unique":FP,"no-criteria-xpath":jP,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Pr,"no-enum-type-mismatch":wr,"no-mixed-number-range-constraints":xi,"no-required-schema-properties-undefined":xr,"no-schema-type-mismatch":Sr,"no-unresolved-refs":yt,"no-x-security-both-scheme-and-scheme-name":MP,"no-x-security-scheme-name-without-openapi":DP,"outputs-defined":zP,"parameters-unique":BP,"requestBody-replacements-unique":VP,"sourceDescription-name-unique":HP,"sourceDescription-type":xP,"sourceDescriptions-not-empty":KP,"spec-step-mutually-exclusive-fields":QP,"step-onFailure-unique":GP,"step-onSuccess-unique":YP,"stepId-unique":JP,struct:gt,"workflow-dependsOn":XP,"workflowId-unique":ZP,"x-security-scheme-name-reference":NP,"x-security-scheme-required-values":UP},tE={},Ht=()=>({Info(e,{report:t,location:r}){e.contact||t({message:vi("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),rE=/^1\.0\.\d+(-.+)?$/;function ps(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 Kt(e){if(!K.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"&&rE.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}const Si=()=>{let e;return{Root:{enter(t){e=Kt(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?qP({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Vt({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},Pi=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const i=Io(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}},Ei=()=>({Root:{PathItem:{Operation(e,t){Vt({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function nE(e,t,r){if("flows"in e&&e.flows){const{node:n,location:i}=I.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,a=Object.values(n??{}).flatMap(c=>{const p=I.isRef(c)?t(c,o).node:c;return Object.keys(p?.scopes||{})});return[...new Set(a)]}return Object.keys(e.scopes||{})}const ls=e=>{const t=new Map,r=[];return{Root:{leave(n,{report:i}){for(const{schemeName:o,scopes:a,location:c}of r){const p=t.get(o);if(p?.type==="oauth2"){if(e.requireScopes&&a.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 u=0;u<a.length;u++){const f=a[u];p.definedScopes.includes(f)||i({message:`The "${f}" scope is not defined in the "${o}" security scheme.`,location:c.child([u]),suggest:wi(f,p.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:i,resolve:o,location:a}){t.set(i.toString(),{type:n.type,definedScopes:n.type==="oauth2"?nE(n,o,a):[]})},SecurityRequirement(n,{location:i}){for(const[o,a]of Object.entries(n))r.push({schemeName:o,scopes:a||[],location:i.child([o])})}}},Oi=()=>({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"})}}}),Ai=()=>({Tag(e,t){Vt({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),Ri=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)Io(t.tags[i],e)>Io(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"})}}),iE=()=>({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"})}}),oE=()=>({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"})}}),$c="https://redocly.com/docs/cli/rules/async/security-defined",sE=()=>{const e=new Map,t=new Map,r=[];let n,i=!1;return{Root:{leave(o,{report:a}){for(const[p,u]of e.entries())if(!u.defined)for(const f of u.from)a({message:`There is no \`${p}\` security scheme defined.`,location:f.key(),reference:$c});const c=[...t.keys()];for(const{location:p,channelServers:u}of r){const f=u??c;f.length>0&&f.every(y=>t.get(y))||a({message:"Every operation should have security defined on it.",location:p.key(),reference:$c})}}},SecurityScheme(o,{key:a}){o!=null&&e.set(a.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:a}){for(const c of Object.keys(o)){const p=e.get(c),u=a.child([c]);p?p.from.push(u):e.set(c,{from:[u]})}},Components:{enter(){i=!0},leave(){i=!1}},Server(o,{key:a}){i||t.set(a.toString(),ti(o))},Channel:{skip(){return i},enter(o){n=Array.isArray(o?.servers)&&o.servers.length>0?o.servers:void 0},Operation(o,{location:a,resolve:c}){mu(o,c)||r.push({location:a,channelServers:n})}}}},aE={struct:gt,"no-unresolved-refs":yt,assertions:xt,"info-contact":Ht,"info-license-strict":Si,"operation-operationId":Ei,"security-defined":sE,"channels-kebab-case":iE,"no-channel-trailing-slash":oE,"tag-description":Ai,"tags-alphabetical":Ri,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Pr,"no-duplicated-tag-names":Pi,"no-required-schema-properties-undefined":xr,"no-enum-type-mismatch":wr,"no-mixed-number-range-constraints":xi,"no-schema-type-mismatch":Sr,"security-scopes-defined":ls,"spec-ref-siblings":Oi},cE={},pE=()=>({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"})}}),lE=()=>({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"})}}),_c="#/components/securitySchemes/",uE="#/components/",Vi="https://redocly.com/docs/cli/rules/async/security-defined";function dE(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function fE(e){if(!e.startsWith(_c))return!1;const t=e.slice(_c.length);return t!==""&&!t.includes("/")}const mE=()=>{const e=[];let t,r,n,i,o;const a=(c,p,u)=>{const f=c.channel,m=I.isRef(f)?p(f,u):void 0,h=(I.isRef(f)?m?.node:f)?.servers;let O,w;return h&&h.length>0?(O=h,w=m?.location?.source.absoluteRef??u):(O=t?Object.values(t):[],w=r),O.length===0?!1:O.every(S=>{const E=I.isRef(S)?p(S,w).node:S;return ti(E)})};return{Root:{enter(c,{location:p,resolve:u}){const f=c?.servers;if(I.isRef(f)){const y=u(f);t=y.node??void 0,r=y.location?.source.absoluteRef}else t=f,r=void 0;const m=c?.operations;if(I.isRef(m)){const y=u(m);n=y.node??void 0,i=y.location?.source.absoluteRef,o=y.location}else n=m,i=void 0,o=p.child(["operations"])},leave(c,{report:p,resolve:u}){for(const f of e){if((f.local||f.refPointer.startsWith(uE))&&!fE(f.refPointer)){p({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:f.location.key(),reference:Vi});continue}f.resolved||p({message:`There is no \`${f.name}\` security scheme defined.`,location:f.location.key(),reference:Vi})}if(n&&o){const f=o;for(const[m,y]of Object.entries(n)){let h,O;if(I.isRef(y)){const w=u(y,i);h=w.node,O=w.location?.source.absoluteRef}else h=y,O=i;h&&(mu(h,u,O)||a(h,u,O)||p({message:"Every operation should have security defined on it.",location:f.child([m]).key(),reference:Vi}))}}}},SecuritySchemeList:{enter(c,{location:p,resolve:u}){if(c)for(let f=0;f<c.length;f++){const m=c[f];if(!I.isRef(m))continue;const y=p.child([f]),h=u(m),O=dE(m.$ref),w=O.split("/").pop()??m.$ref;e.push({location:y,name:w,refPointer:O,resolved:h.node!=null,local:m.$ref.startsWith("#")})}}}}};function hE(e,t,r){if(!e.flows)return[];const{node:n,location:i}=I.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,a=Object.values(n??{}).flatMap(c=>{const p=I.isRef(c)?t(c,o).node:c;return Object.keys(p?.availableScopes||{})});return[...new Set(a)]}const yE=e=>{const t=new Map;return{SecuritySchemeList(r,{resolve:n,location:i}){for(let o=0;o<r.length;o++){const a=r[o],c=I.isRef(a)?n(a):{node:a,location:i.child([o])};!c.node||!c.location||t.set(c.location.absolutePointer,{scheme:c.node,location:c.location,availableScopes:c.node.type==="oauth2"?hE(c.node,n,c.location):[]})}},Root:{leave(r,{report:n}){for(const{scheme:i,location:o,availableScopes:a}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 u=c[p];a.includes(u)||n({message:`The "${u}" scope is not defined in the available scopes of the security scheme flows.`,location:o.child(["scopes",p]),suggest:wi(u,a),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},gE={struct:gt,"no-unresolved-refs":yt,assertions:xt,"info-contact":Ht,"info-license-strict":Si,"operation-operationId":Ei,"security-defined":mE,"channels-kebab-case":pE,"no-channel-trailing-slash":lE,"tag-description":Ai,"tags-alphabetical":Ri,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Pr,"no-duplicated-tag-names":Pi,"no-required-schema-properties-undefined":xr,"no-enum-type-mismatch":wr,"no-mixed-number-range-constraints":xi,"no-schema-type-mismatch":Sr,"security-scopes-defined":yE,"spec-ref-siblings":Oi},bE={};function gu(e){return Lo(Rt).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Gl.has(t),runsOnValues:Yl.has(t)}))}const vE=e=>{const t=Object.values(e).filter(K.isPlainObject),r=[];for(const n of t){if(n.severity==="off")continue;const i=n.subject?.type;if(!i)continue;if(!K.isPlainObject(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);const o=gu(n),a=wE(n);r.push({[i]:(c,p)=>{xE(c,p,a)&&SE(c,p,n,o)}})}return r};function wE(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!ze(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!K.isPlainObject(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:gu(t)}}):[]}function xE(e,t,r){let n=r;const i=r.at(-1);if(i&&i.kind===e.kind){if(!Tc(e,i,t))return!1;n=r.slice(0,-1)}let o=0;for(const a of n){let c=!1;for(;o<t.ancestors.length;){const p=t.ancestors[o++];if(p.kind===a.kind&&Tc(p,a,t)){c=!0;break}}if(!c)return!1}return!0}function Tc(e,t,r){const{value:n}=bu(e,t.definition.subject.property),i=new I.Location(r.source,"#/");return t.assertsToApply.every(o=>Rt[o.name](n,o.conditions,{baseLocation:i,rawValue:n}).length===0)}function SE(e,t,r,n){const i=vu(r.subject.property),{value:o,locNode:a}=bu(e,r.subject.property),c=new I.Location(t.source,"#/"),p=n.flatMap(f=>Rt[f.name](o,f.conditions,{baseLocation:c,rawValue:o}));if(!p.length)return;const u=`${Ae.blue(r.assertionId)} failed because the ${Ae.blue(r.subject.type)} ${Ae.blue(i??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:fu(r.message??u,{problems:uu(p),assertionName:r.assertionId,nodeType:r.subject.type,property:i??"",key:"",pointer:"",file:du(t.source.absoluteRef)}),node:a,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Hi(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 bu(e,t){const r=vu(t);if(r===void 0)return Hi(e);const n=e[r];if(Array.isArray(n))return{value:n.map(o=>Hi(o).value),locNode:e};const i=Hi(n);return{value:i.value,locNode:PE(i.locNode)?i.locNode:e}}function PE(e){return K.isPlainObject(e)&&"kind"in e}function vu(e){return Array.isArray(e)?e[0]:e}const EE=["Query","Mutation","Subscription"];function OE(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const AE=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const i=f=>t.add(OE(f)),o=f=>e.set(f.name.value,f.name),a=f=>{for(const m of f.interfaces??[])i(m);for(const m of f.fields??[]){i(m.type);for(const y of m.arguments??[])i(y.type)}},c=f=>{for(const m of f.types??[])i(m)},p=f=>{for(const m of f.fields??[])i(m.type)},u=f=>{for(const m of f.operationTypes??[])r.add(m.type.name.value)};return{SchemaDefinition:f=>{n=!0,u(f)},SchemaExtension:u,DirectiveDefinition:f=>{for(const m of f.arguments??[])i(m.type)},ObjectTypeDefinition:f=>{o(f),a(f)},ObjectTypeExtension:a,InterfaceTypeDefinition:f=>{o(f),a(f)},InterfaceTypeExtension:a,UnionTypeDefinition:f=>{o(f),c(f)},UnionTypeExtension:c,InputObjectTypeDefinition:f=>{o(f),p(f)},InputObjectTypeExtension:p,EnumTypeDefinition:o,ScalarTypeDefinition:o,Document:{leave:(f,m)=>{if(!n)for(const y of EE)e.has(y)&&r.add(y);if(r.size!==0)for(const[y,h]of e)t.has(y)||r.has(y)||m.report({message:`Type \`${y}\` is declared but never used.`,node:h})}}}},RE=()=>({Document:{enter:(e,t)=>{let r;try{r=K.buildASTSchema(e,{assumeValidSDL:!1})}catch(n){$E(n,t);return}for(const n of K.validateSchema(r))wu(n,t)}}});function $E(e,t){if(e instanceof K.GraphQLError)wu(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function wu(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 _E=()=>{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}},TE={struct:RE,assertions:vE,"no-unused-types":AE,"type-description":_E},us=()=>({Info(e,{report:t}){e.license||t({message:vi("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),xu=()=>({Paths(e,{report:t,location:r}){const n=[];for(const i of Object.keys(e)){const o=n.find(a=>kE(a,i));o&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${o}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(i)}}});function kE(e,t){const r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let i=0,o=0,a=!0;for(let c=0;c<r.length;c++){const p=r[c].match(/^{.+?}$/),u=n[c].match(/^{.+?}$/);if(p||u){p&&i++,u&&o++;continue}else r[c]!==n[c]&&(a=!1)}return a&&i===o}function Su(e){return e.startsWith("{")&&e.endsWith("}")}function IE(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(I.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 qE=["get","head","post","put","patch","delete","options","trace"],Pu=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:i,location:o}){const a=n.toString();if(!a.startsWith("/")||t?.some(p=>a===p))return;const c=a.split("/");for(const p of c){if(!p||Su(p))continue;const u=f=>e?IE(p).has(f):p.toLocaleLowerCase().includes(f);for(const f of qE)u(f)&&i({message:`path \`${a}\` should not contain http verb ${f}`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}}),Eu=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const i of Object.keys(e)){const o=i.replace(/{.+?}/g,"{VARIABLE}"),a=n.get(o);a?t({message:`The path already exists which differs only by path parameter name(s): \`${a}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(o,i)}}}),Ou=e=>{const t=new gi;return{Parameter:{leave(r,n){if(Ye(r.example)&&pr({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),K.isPlainObject(r.examples))for(const[i,o]of Object.entries(r.examples)){const a=yu(o);a&&pr({example:a.value,schema:r.schema,options:{location:n.location.child(["examples",i,a.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}},Au=e=>{const t=new gi;return{Schema:{leave(r,n){const i=r.examples;if(Array.isArray(i))for(const o of i)pr({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(Ye(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;pr({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"})}}}}},Ru=()=>({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"})}}),$u=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){const i=Object.keys(r||{});ni({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||{});ni({responseCodes:i,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}}),_u=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});ni({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||{});ni({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),Tu=()=>({Operation(e,t){Vt({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),ku=()=>{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))}}},CE=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Iu=()=>({Operation(e,{report:t,location:r}){e.operationId&&!CE.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"})}}),qu=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){const a=`${r.in}___${r.name}`;e.has(a)&&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 a=`${r.in}___${r.name}`;t.has(a)&&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(a)}}}}},Cu=()=>({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"})}}),ju=()=>({Operation(e,t){Vt({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),Mu=()=>{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"})}}},Du=()=>({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"})}}),Nu=()=>({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"})}}),jE=["get","head","post","put","patch","delete","options","query","trace"],Lu=e=>{const t=e&&e.order||jE;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(a=>t.includes(a));for(let a=0;a<o.length-1;a++){const c=t.indexOf(o[a]);t.indexOf(o[a+1])<c&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...i.child(o[a+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}},Uu=()=>({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"})}}}),ME=/\{([a-zA-Z0-9_.-]+)\}+/g,DE=2,ii=()=>{const e={current:null};return{PathItem:{enter(r,{key:n}){Fu(e,n)},leave(){NE(e)},Parameter(r,{report:n,location:i,rawLocation:o}){zu({parameter:r,pathContext:e,report:n,location:i,rawLocation:o})},Operation:Bu(e,new Set)}}},Fu=(e,t)=>{e.current={path:t,templateParams:LE(t),definedParams:new Set}},NE=e=>{e.current=null},zu=({parameter:e,pathContext:t,report:r,location:n,rawLocation:i})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),Vu({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:i}))},Bu=(e,t,r=0)=>{const n=(o,a,c)=>{o({message:`Maximum callback nesting depth (${c}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:a,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=DE)return{enter:()=>{},leave:(o,{report:a,location:c})=>{n(a,c,r)},Parameter:()=>{},Callback:void 0};const i=()=>{let o=null;return{enter(a,{key:c}){o=e.current,Fu(e,c)},leave(){e.current=o},Parameter(a,{report:c,location:p,rawLocation:u}){zu({parameter:a,pathContext:e,report:c,location:p,rawLocation:u})},get Operation(){return Bu(e,t,r+1)}}};return{enter(){t=new Set},leave(o,{report:a,location:c}){!e.current||!t||FE({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:a,location:c})},Parameter(o,{report:a,location:c,rawLocation:p}){UE(o,t),o.in==="path"&&o.name&&e.current&&(t.add(o.name),Vu({paramName:o.name,templateParams:e.current.templateParams,path:e.current.path,report:a,location:c,rawLocation:p}))},Callback:{get PathItem(){return i()}}}},LE=e=>new Set(Array.from(e.matchAll(ME)).map(t=>t[1])),UE=(e,t)=>{K.isPlainObject(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},Vu=({paramName:e,templateParams:t,path:r,report:n,location:i,rawLocation:o})=>{if(!t.has(e)){const a=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,c=o===i?void 0:o;n({message:a,location:i.child(["name"]),from:c,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},FE=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:i,location:o})=>{const a=new Set([...t,...r]);for(const c of e)a.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"})},Hu=e=>{const{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:i,key:o,location:a}){const c=o.toString();if(c.startsWith("/")){const p=c.split("/");p.shift(),t&&p.length>0&&p.pop();for(const u of p)r&&r.includes(u)||!Su(u)&&Rp.isSingular(u)&&i({message:`path segment \`${u}\` should be plural.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},Ku=()=>({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"})}}),Wu=()=>{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 Ut(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const Qu=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{const a=t[o]||t[Ut(o)]||t[Ut(o).toLowerCase()]||[];for(const c of a)(!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"})}}}}},kc=["string","integer","number","boolean","null"],Gu=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(const o of Object.keys(e)){const a=i(I.getOwn(e,o)).node;!a||!zE(a)||a.example===void 0&&a.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 zE(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>kc.includes(t)):kc.includes(e.type)}const Yu=e=>{const t=new Map,r=[];let n=!0,i;return{Root:{leave(o,{report:a}){for(const[c,p]of t.entries())if(!p.defined)for(const u of p.from)a({message:`There is no \`${c}\` security scheme defined.`,location:u.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(o.security||n))for(const c of r)a({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:a}){t.set(a.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:a}){for(const c of Object.keys(o)){const p=t.get(c),u=a.child([c]);p?p.from.push(u):t.set(c,{from:[u]})}},PathItem:{enter(o,{key:a}){i=a},Operation(o,{location:a,key:c}){const p=e.exceptions?.some(u=>u.path===i&&(!u.methods||u.methods?.some(f=>f.toLowerCase()===c)));!o?.security&&!p&&(n=!1,r.push(a))}}}},Ju=()=>{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)&&I.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"})}}},BE=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:a,location:c}){o.type==="boolean"&&!r.test(o.name)&&a({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 oi({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:a}=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:a.child(t[e].indexOf(p)).key(),reference:i})}function Nt({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:a}=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:a.child("content").child(p).key(),reference:i})}const VE=({allowedValues:e})=>({Root(t,r){oi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){oi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),HE=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 a=t[r]||t[Ut(r)]||t[Ut(r).toLowerCase()]||[];for(const c of a)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"})}}}}},KE=({allowedValues:e})=>({Root(t,r){oi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){oi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),WE={struct:gt,"no-invalid-schema-examples":Au,"no-invalid-parameter-examples":Ou,"info-contact":Ht,"info-license":us,"info-license-strict":Si,"tag-description":Ai,"tags-alphabetical":Ri,"paths-kebab-case":Ku,"no-enum-type-mismatch":wr,"boolean-parameter-prefixes":BE,"no-path-trailing-slash":Ru,"operation-2xx-response":$u,"operation-4xx-response":_u,assertions:xt,"operation-operationId-unique":ku,"operation-parameters-unique":qu,"path-parameters-defined":ii,"operation-tag-defined":Mu,"path-declaration-must-exist":Nu,"operation-operationId-url-safe":Iu,"operation-operationId":Ei,"operation-summary":ju,"operation-description":Tu,"path-not-include-query":Uu,"path-params-defined":ii,"parameter-description":Du,"operation-singular-tag":Cu,"security-defined":Yu,"security-scopes-defined":ls,"no-unresolved-refs":yt,"no-identical-paths":Eu,"no-ambiguous-paths":xu,"path-http-verbs-order":Lu,"no-http-verbs-in-paths":Pu,"request-mime-type":VE,"response-mime-type":KE,"path-segment-plural":Hu,"response-contains-header":Qu,"response-contains-property":HE,"scalar-property-missing-example":Gu,"required-string-property-missing-min-length":Wu,"spec-strict-refs":Ju,"spec-ref-siblings":Oi,"no-required-schema-properties-undefined":xr,"no-schema-type-mismatch":Sr,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Pr,"no-duplicated-tag-names":Pi},QE={},GE=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=I.isRef(t.schema)?r.resolve(t.schema).node:t.schema;n&&YE(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 YE(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 JE=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:a,parentLocations:c},p){o.type==="boolean"&&!r.test(p.Parameter.name)&&a({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 XE(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Xu(e){const t=K.isPlainObject(e)&&ze(e.title)?e.title.trim():"",r=XE(t).replace(new RegExp(`[^${Al}]`,"g"),"-");return{title:t,name:r}}function rr(e){return e.chain?.[0]??{node:e.node,location:e.location}}const qt="Schema",qo="Parameter",Co="Response",jo="RequestBody",ZE={[qt]:"schemas",[qo]:"parameters",[Co]:"responses",[jo]:"requestBodies"},eO=e=>{const t=new Map,r=new Map,n=e.strategy==="title";let i;const o=[];e.schemas!=="off"&&o.push(qt),e.parameters!=="off"&&o.push(qo),e.responses!=="off"&&o.push(Co),e.requestBodies!=="off"&&o.push(jo);const a={ref:{leave(m,{type:y,resolve:h,location:O}){const w=y.name;if(o.includes(w)){const S=h(m);if(!S.location)return;const E=rr(S);if(f(w,E.location,O)){const{title:x,name:v}=Xu(E.node);if(x){p(w,v,E.location,E.location.child("title"));return}r.set(E.location.absolutePointer.toString(),E.location),u(w,E.location);return}u(w,S.location)}}},Root:{enter(m,{location:y}){i=y.source.absoluteRef},leave(m,y){t.forEach((h,O,w)=>{if(h.size>1){const S=nO(O),E=tO(S.typeName),x=E?e[E]:null;for(const[v,$]of h){const g=Array.from(h.keys()).filter(j=>j!==v).map(j=>`- ${j}`).join(`
20
- `),T={message:`Component '${E}/${S.componentName}' is not unique. It is also defined at:
21
- ${g}`,location:$,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};x&&(T.forceSeverity=x),y.report(T)}}});for(const h of r.values()){const O={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:h,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&(O.forceSeverity=e.schemas),y.report(O)}}}};return e.schemas!="off"&&(a.NamedSchemas={Schema(m,{location:y,key:h,parentLocations:O}){if(f(qt,y)){p(qt,String(h),O.NamedSchemas.child(h));return}u(qt,y)}}),e.responses!="off"&&(a.NamedResponses={Response(m,{location:y}){u(Co,y)}}),e.parameters!="off"&&(a.NamedParameters={Parameter(m,{location:y}){u(qo,y)}}),e.requestBodies!="off"&&(a.NamedRequestBodies={RequestBody(m,{location:y}){u(jo,y)}}),a;function c(m){const y=m.split("/").slice(-1)[0];return I.isSupportedExtension(y)?y.slice(0,y.lastIndexOf(".")):y}function p(m,y,h,O=h){const w=rO(m,y),S=t.get(w)??new Map,E=h.absolutePointer.toString();S.has(E)||S.set(E,O),t.set(w,S)}function u(m,y){const h=c(y.absolutePointer.toString());p(m,h,y)}function f(m,y,h=y){return n&&m===qt&&(y.source.absoluteRef!==i||h.source.absoluteRef!==i)}};function tO(e){return ZE[e]??null}function rO(e,t){return`${e}/${t}`}function nO(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const iO=()=>({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"})}}),oO=()=>({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"})}}),sO=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"]),aO=()=>({AllOf(e,t){const r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!cO(e[0],t.resolve))&&Ki(e,"allOf",t),Wi(e,"allOf",t),Qi(e,"allOf",t))},AnyOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const n=K.isPlainObject(r.discriminator);e.length<2&&!n&&Ki(e,"anyOf",t),Wi(e,"anyOf",t),Qi(e,"anyOf",t),n&&Ic(e,"anyOf",t)},OneOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const{discriminator:n}=r,i=K.isPlainObject(n);e.length<2&&!i&&Ki(e,"oneOf",t),Wi(e,"oneOf",t),Qi(e,"oneOf",t),i&&Ic(e,"oneOf",t),ai(r)&&pO(e,t),lO(e,i?n:void 0,t)}});function Ki(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 cO(e,t){return K.isPlainObject(lr(e,t)?.schema.discriminator)}function Wi(e,t,r){for(const[n,i]of e.entries())K.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 Ic(e,t,r){for(const[n,i]of e.entries())I.isRef(i)||K.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 Qi(e,t,r){for(let n=1;n<e.length;n++){const i=e.findIndex(o=>ht(o,e[n]));i<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${i+1}.`,location:r.location.child([n])})}}function pO(e,t){e.some(n=>{const i=lr(n,t.resolve);return i?ai(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 lO(e,t,r){const{resolve:n,report:i,location:o}=r,a=r.specVersion!=="oas3_2",c=e.map(p=>lr(p,n));for(let p=0;p<c.length-1;p++){const u=c[p];if(u)for(let f=p+1;f<c.length;f++){const m=c[f];if(!m||ht(e[p],e[f]))continue;const y=uO(u,m,n,t,a);y&&i({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${qc(e[p],p)} and ${qc(e[f],f)}. ${y}`,location:o.key()})}}}function qc(e,t){return I.isRef(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function uO(e,t,r,n,i){const o=e.schema,a=t.schema;if(si(o)||si(a)||Zu(o,a))return null;if(ai(o)&&ai(a))return"Both schemas accept `null`.";const c=dr(o),p=dr(a);if(c&&p){const f=c.filter(m=>p.some(y=>ht(m,y)));return`Both schemas allow the values ${JSON.stringify(f)}.`}if(n)return i?dO(o,a,n):null;const u=fO(e,t,r);if(u)return u;if(!o.properties&&!a.properties){const f=td(o,a);if(f?.length)return`Both schemas accept ${f.map(m=>`\`${m}\``).join(", ")}.`}return null}function dO(e,t,r){const{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:Ye(I.getOwn(e.properties??{},n))&&Ye(I.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 fO(e,t,r){const n=mO(e,t);if(!n||Cc(e.schema,n.leftProperties,n.rightRequired)||Cc(t.schema,n.rightProperties,n.leftRequired)||hO(n)||n.sharedNames.length===0)return null;const i=yO(n,r);if(!i)return null;const{optionalDistinguishingNames:o,ambiguousNames:a}=i;if(o.length>0){const c=a.length>0?` Other shared properties: ${Gi(a)}.`:"";return`Add ${Gi(o)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${c}`}return a.length>0?`Both schemas define ${Gi(a)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function mO(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=>I.getOwn(n,i))}}function hO({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){const i=[...r].some(a=>!I.getOwn(t,a)&&!n.has(a)),o=[...n].some(a=>!I.getOwn(e,a)&&!r.has(a));return i&&o}function yO({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:i,rightRequired:o,sharedNames:a},c){const p=[],u=[];for(const f of a){const m=i.has(f)&&o.has(f),y=lr(I.getOwn(r,f),c,e),h=lr(I.getOwn(n,f),c,t);if(!(!y||!h)&&!(si(y.schema)||si(h.schema))){if(Zu(y.schema,h.schema)){if(m)return null;p.push(f);continue}u.push(f)}}return{optionalDistinguishingNames:p,ambiguousNames:u}}function Cc(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!I.getOwn(t,n))}function Zu(e,t){const r=dr(e),n=dr(t);return r&&n?!r.some(i=>n.some(o=>ht(i,o))):td(e,t)?.length===0}function lr(e,t,r){if(I.isRef(e)){const{node:n,location:i}=t(e,r);return K.isPlainObject(n)?{schema:n,source:i?.source.absoluteRef}:void 0}return K.isPlainObject(e)?{schema:e,source:r}:void 0}function si(e){return Object.keys(e).some(t=>!sO.has(t)&&!t.startsWith("x-"))}function ed(e){return"nullable"in e&&e.nullable===!0}function ur(e){const t=e.type;if(t===void 0)return;const r=new Set(Array.isArray(t)?t:[t]);return ed(e)&&r.add("null"),r}function td(e,t){const r=ur(e),n=ur(t);if(!r||!n)return;const i=[...r].filter(o=>n.has(o));return i.length===0&&gO(e,t)?["integer"]:i}function gO(e,t){const r=ur(e),n=ur(t);return r?.has("integer")&&n?.has("number")?jc(t):r?.has("number")&&n?.has("integer")?jc(e):!1}function jc(e){const t=dr(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function ai(e){return ed(e)||ur(e)?.has("null")===!0}function dr(e){if(e.enum)return e.enum;const t="const"in e?e.const:void 0;return Ye(t)?[t]:void 0}function Gi(e){return e.map(t=>`\`${t}\``).join(", ")}const bO=e=>{const t=new gi,r=i=>i.schema===void 0,n=i=>(o,a)=>{const{location:c,resolve:p}=a;if(Ye(o.example))u(o.example,c.child("example"));else if(K.isPlainObject(o.examples))for(const f of Object.keys(o.examples))u(o.examples[f],c.child(["examples",f]),!0);function u(f,m,y){if(I.isRef(f)){const O=p(f);if(!O.location)return;m=O.location,f=O.node}let h=f;if(y){const O=yu(f);if(!O)return;h=O.value,m=m.child(O.field)}pr({example:h,schema:o.schema,options:{location:m,ctx:a,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"})}}}},vO=()=>({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"})}}),wO=()=>({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"})}}),xO=()=>({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=Mc(i);o&&n.push(...o)}else{const i=Mc(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 Mc(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 SO=()=>({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"})}}),PO=()=>{const e=new Map,t=new Map,r=new Set;function n(i,o,a=!1){e.set(i.absolutePointer,{used:e.get(i.absolutePointer)?.used||!1,referencesDiscriminator:a,location:i,name:o})}return{ref(i,{type:o,resolve:a,key:c,location:p}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(o.name)){const u=a(i);if(!u.location)return;e.set(u.location.absolutePointer,{used:!0,name:c.toString(),location:p})}},Root:{leave(i,{report:o}){e.forEach(a=>{!a.used&&!a.referencesDiscriminator&&o({message:`Component: "${a.name}" is never used.`,location:a.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((a,c)=>{r.has(c)||o({message:`Security scheme: "${c}" is never used.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(i,{location:o,key:a,resolve:c}){const p=i.allOf?.some(u=>I.isRef(u)&&c(u)?.node?.discriminator);n(o,a.toString(),p)}},NamedParameters:{Parameter(i,{location:o,key:a}){n(o,a.toString())}},NamedResponses:{Response(i,{location:o,key:a}){n(o,a.toString())}},NamedExamples:{Example(i,{location:o,key:a}){n(o,a.toString())}},NamedRequestBodies:{RequestBody(i,{location:o,key:a}){n(o,a.toString())}},NamedHeaders:{Header(i,{location:o,key:a}){n(o,a.toString())}},NamedMediaTypes:{MediaTypesMap(i,{location:o,key:a}){n(o,a.toString())}},NamedSecuritySchemes:{SecurityScheme(i,{rawLocation:o,key:a}){t.set(a.toString(),o)}},SecurityRequirement(i){for(const o of Object.keys(i))r.add(o)}}},EO=()=>({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"})}}}),Yi="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",OO=()=>({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:Yi})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Vt({fieldName:"schema",value:e,ctx:t,reference:Yi}),!e.schema)return;const{schema:r,location:n}=bi(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const i of["type","title"])At(e.schema,i,t)||t.report({message:vi("SchemaProperties",i),location:r.properties?n.child(["properties",i]).key():n.key(),reference:Yi})}}}}),AO=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Nt({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){Nt({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Nt({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),RO=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 a=t[r]||t[Ut(r)]||t[Ut(r).toLowerCase()]||[];for(const c of a)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"})}}}}}},$O=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Nt({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){Nt({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Nt({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),_O=()=>{const e=`^[${Al}]+$`;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")}}}},TO=()=>{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,a=(c,p)=>{const u=bi(c,r,p);return!!(!u.schema||o.has(u.schema)||(o.add(u.schema),u.schema.required?.includes(n)||u.schema.allOf?.some(f=>a(f,u.location))||u.schema.oneOf?.every(f=>a(f,u.location))||u.schema.anyOf?.every(f=>a(f,u.location))))};a(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"})}}}},kO=()=>({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"})}}),IO=()=>({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"})}}}),qO=()=>{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(a=>a.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(a=>a.name===o)?.parent}}}}};function Dc(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function Nc(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 Lc(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 CO=()=>{let e={},t={},r=0;return{PathItem:{enter(n,i){e={},t={},r=0,Nc(Dc(n.parameters||[]),i)},Parameter(n,i){Lc(n,i.location,e,i),n.in==="querystring"&&(r+=1)},Operation:{enter(n,i){t={...e};const o=r+Dc(n.parameters||[]);Nc(o,i)},Parameter(n,i){Lc(n,i.location,t,i)}}}}},jO=()=>({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 a of Object.keys(e))a!=="$ref"&&(o&&(a==="summary"||a==="description")||t({message:`Property \`${a}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(a).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"}))}}}),MO={struct:gt,"info-contact":Ht,"info-license":us,"info-license-strict":Si,"operation-2xx-response":$u,"operation-4xx-response":_u,"operation-4xx-problem-details-rfc7807":OO,assertions:xt,"operation-operationId-unique":ku,"operation-parameters-unique":qu,"operation-tag-defined":Mu,"no-example-value-and-externalValue":oO,"no-mixed-number-range-constraints":xi,"no-enum-type-mismatch":wr,"no-path-trailing-slash":Ru,"no-empty-servers":iO,"path-declaration-must-exist":Nu,"operation-operationId-url-safe":Iu,"operation-operationId":Ei,"operation-summary":ju,"tags-alphabetical":Ri,"no-server-example.com":vO,"no-server-trailing-slash":wO,"tag-description":Ai,"operation-description":Tu,"no-unused-components":PO,"path-not-include-query":Uu,"path-parameters-defined":ii,"path-params-defined":ii,"parameter-description":Du,"operation-singular-tag":Cu,"security-defined":Yu,"security-scopes-defined":ls,"no-unresolved-refs":yt,"paths-kebab-case":Ku,"boolean-parameter-prefixes":JE,"path-http-verbs-order":Lu,"no-illogical-composition-keywords":aO,"no-invalid-media-type-examples":bO,"no-identical-paths":Eu,"no-ambiguous-paths":xu,"no-undefined-server-variable":SO,"no-server-variables-empty-enum":xO,"no-http-verbs-in-paths":Pu,"request-mime-type":AO,"response-mime-type":$O,"path-segment-plural":Hu,"no-invalid-schema-examples":Au,"no-invalid-parameter-examples":Ou,"response-contains-header":Qu,"response-contains-property":RO,"scalar-property-missing-example":Gu,"spec-components-invalid-map-name":_O,"required-string-property-missing-min-length":Wu,"spec-strict-refs":Ju,"component-name-unique":eO,"array-parameter-serialization":GE,"no-required-schema-properties-undefined":xr,"no-schema-type-mismatch":Sr,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Pr,"no-duplicated-tag-names":Pi,"nullable-type-sibling":EO,"spec-no-invalid-tag-parents":qO,"spec-no-invalid-encoding-combinations":IO,"spec-discriminator-defaultMapping":TO,"spec-example-values":kO,"spec-querystring-parameters":CO,"spec-ref-siblings":jO},DO={},NO=()=>{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:a}){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:a})}},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())}}}},LO=()=>({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,a)=>{const c=r(o);if(!c.node)return;const p=c.node,u=p.name;u&&(i.has(u)&&t({message:`Parameter names must be unique. Duplicate parameter name '${p.name}' found.`,location:n.child([a,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),i.add(u))})}}}),UO=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let i=!1;e.params.forEach((o,a)=>{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([a,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):i=!0})}}}),FO={struct:gt,"no-unresolved-refs":yt,assertions:xt,"info-license":us,"no-unused-components":NO,"info-contact":Ht,"spec-no-duplicated-method-params":LO,"spec-no-required-params-after-optional":UO,"spec-ref-siblings":Oi},zO={},BO={"info-contact":Ht,struct:gt,"no-unresolved-refs":yt,assertions:xt},VO={},HO={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"},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"}},KO={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"},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"}},WO={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"},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"}},QO={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"},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"}},GO={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"},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"}},YO={recommended:QO,"recommended-strict":WO,minimal:KO,all:HO,spec:GO},Uc={id:"",rules:{oas3:MO,oas2:WE,async2:aE,async3:gE,arazzo1:eE,overlay1:BO,openrpc1:FO,graphql:TE},preprocessors:{oas3:DO,oas2:QE,async2:cE,async3:bE,arazzo1:tE,overlay1:VO,openrpc1:zO},decorators:{oas3:bP,oas2:hP,async2:pP,async3:lP,arazzo1:cP,overlay1:wP,openrpc1:vP},configs:YO},JO={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function ft(e,t){const r={};r.any={enter:[],leave:[]};for(const a of Object.keys(t))r[a]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:a,severity:c,message:p,visitor:u}of e)o({ruleId:a,severity:c,message:p},u,null);for(const a of Object.keys(r))r[a].enter.sort((c,p)=>p.depth-c.depth),r[a].leave.sort((c,p)=>c.depth-p.depth);return r;function n(a,c,p,u,f=[]){if(f.includes(c))return;f=[...f,c];const m=new Set;for(const h of Object.values(c.properties)){if(h===p){y(a,f);continue}K.isPlainObject(h)&&h.name!==void 0&&m.add(h)}c.additionalProperties&&typeof c.additionalProperties!="function"&&(c.additionalProperties===p?y(a,f):c.additionalProperties.name!==void 0&&m.add(c.additionalProperties)),c.items&&typeof c.items!="function"&&(c.items===p?y(a,f):c.items.name!==void 0&&m.add(c.items)),c.extensionsPrefix&&m.add(I.SpecExtension);for(const h of Array.from(m.values()))n(a,h,p,u,f);function y(h,O){for(const w of O.slice(1))r[w.name]=r[w.name]||{enter:[],leave:[]},r[w.name].enter.push({...h,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:u}})}}function i(a,c){if(Array.isArray(c)){const p=c.find(u=>a[u])||void 0;return p&&a[p]}return a[c]}function o(a,c,p,u=0){const f=Object.keys(t);if(u===0)f.push("any"),f.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 m of f){const y=c[m]||i(c,JO[m]),h=r[m];if(!y)continue;let O,w,S;const E=K.isPlainObject(y);if(m==="ref"&&E&&y.skip)throw new Error("ref() visitor does not support skip");typeof y=="function"?O=y:E&&(O=y.enter,w=y.leave,S=y.skip);const x=(O?1:0)+(w?1:0)+(S?1:0),v=E&&Object.keys(y).length>x,$={activatedOn:null,type:t[m],parent:p,isSkippedLevel:!1};if(v&&o(a,y,$,u+1),p&&n(a,p.type,t[m],p),O||E){if(O&&typeof O!="function")throw new Error("DEV: should be function");h.enter.push({...a,visit:O||(()=>{}),skip:S,depth:u,context:$})}if(w){if(typeof w!="function")throw new Error("DEV: should be function");h.leave.push({...a,visit:w,depth:u,context:$})}}}}const _e=(e,t)=>{if(t)for(const r of Object.keys(t))K.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Ie(e,t){if(t)for(const r of Object.keys(t))e.hasOwnProperty(r)&&(K.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function XO(e){if(e.indexOf("/")>-1){const[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Me(e,t){if(!t)return e;const r={};for(const n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function rd(e){const t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(const r of e){if(K.isPlainObject(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
22
- ${JSON.stringify(r,null,2)}`);_e(t.rules,r.rules),_e(t.oas2Rules,r.oas2Rules),Ie(t.oas2Rules,r.rules),_e(t.oas3_0Rules,r.oas3_0Rules),Ie(t.oas3_0Rules,r.rules),_e(t.oas3_1Rules,r.oas3_1Rules),Ie(t.oas3_1Rules,r.rules),_e(t.oas3_2Rules,r.oas3_2Rules),Ie(t.oas3_2Rules,r.rules),_e(t.async2Rules,r.async2Rules),Ie(t.async2Rules,r.rules),_e(t.async3Rules,r.async3Rules),Ie(t.async3Rules,r.rules),_e(t.arazzo1Rules,r.arazzo1Rules),Ie(t.arazzo1Rules,r.rules),_e(t.arazzo1_1Rules,r.arazzo1_1Rules),Ie(t.arazzo1_1Rules,r.rules),_e(t.overlay1Rules,r.overlay1Rules),Ie(t.overlay1Rules,r.rules),_e(t.openrpc1Rules,r.openrpc1Rules),Ie(t.openrpc1Rules,r.rules),_e(t.graphqlRules,r.graphqlRules),Ie(t.graphqlRules,r.rules),_e(t.preprocessors,r.preprocessors),_e(t.oas2Preprocessors,r.oas2Preprocessors),Ie(t.oas2Preprocessors,r.preprocessors),_e(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Ie(t.oas3_0Preprocessors,r.preprocessors),_e(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Ie(t.oas3_1Preprocessors,r.preprocessors),_e(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Ie(t.oas3_2Preprocessors,r.preprocessors),_e(t.async2Preprocessors,r.async2Preprocessors),Ie(t.async2Preprocessors,r.preprocessors),_e(t.async3Preprocessors,r.async3Preprocessors),Ie(t.async3Preprocessors,r.preprocessors),_e(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Ie(t.arazzo1Preprocessors,r.preprocessors),_e(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Ie(t.arazzo1_1Preprocessors,r.preprocessors),_e(t.overlay1Preprocessors,r.overlay1Preprocessors),Ie(t.overlay1Preprocessors,r.preprocessors),_e(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Ie(t.openrpc1Preprocessors,r.preprocessors),_e(t.decorators,r.decorators),_e(t.oas2Decorators,r.oas2Decorators),Ie(t.oas2Decorators,r.decorators),_e(t.oas3_0Decorators,r.oas3_0Decorators),Ie(t.oas3_0Decorators,r.decorators),_e(t.oas3_1Decorators,r.oas3_1Decorators),Ie(t.oas3_1Decorators,r.decorators),_e(t.oas3_2Decorators,r.oas3_2Decorators),Ie(t.oas3_2Decorators,r.decorators),_e(t.async2Decorators,r.async2Decorators),Ie(t.async2Decorators,r.decorators),_e(t.async3Decorators,r.async3Decorators),Ie(t.async3Decorators,r.decorators),_e(t.arazzo1Decorators,r.arazzo1Decorators),Ie(t.arazzo1Decorators,r.decorators),_e(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Ie(t.arazzo1_1Decorators,r.decorators),_e(t.overlay1Decorators,r.overlay1Decorators),Ie(t.overlay1Decorators,r.decorators),_e(t.openrpc1Decorators,r.openrpc1Decorators),Ie(t.openrpc1Decorators,r.decorators)}return t}class ZO extends Error{}function eA(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Fc(e){return K.isPlainObject(e)&&"id"in e}function tA(e){return typeof e=="function"}function nd({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=(e.extends||[]).filter(I.isTruthy).map(i=>{if(!I.isAbsoluteUrl(i)&&!K.path.extname(i))return xA(i,r);const o=t.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(I.isTruthy);return rd([...n.map(i=>nd({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function Dn(e,t){if(K.isPlainObject(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>Do(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const rA=ft([{severity:"error",ruleId:as,visitor:{ref:{},ConfigGovernance:{leave(e,t){Dn(e,t)}},ConfigApisProperties:{leave(e,t){Dn(e,t)}},[Ke.ScorecardClassicLevel]:{leave(e,t){Dn(e,t)}},ConfigRoot:{leave(e,t){Dn(e,t)}}}}],gr);function Nn(e,t){if(K.isPlainObject(e)&&e.extends){const{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;const i=nd({node:e,ctx:t,plugins:r});Object.assign(e,i),delete e.extends}}const nA=ft([{severity:"error",ruleId:ss,visitor:{ref:{leave(e,t,r){I.replaceRef(e,r,t)}},ConfigGovernance:{leave(e,t){Nn(e,t)}},ConfigApisProperties:{leave(e,t){Nn(e,t)}},[Ke.ScorecardClassicLevel]:{leave(e,t){Nn(e,t)}},ConfigRoot:{leave(e,t){Nn(e,t)}}}}],gr);function zc(e,t){return{prev:e,value:t}}function Bc(e){return e?.prev??null}function iA(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function oA(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 mt(e){const{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,a={},c=new Set,p=(S,E)=>`${S.name}::${E.absolutePointer}`,u=new Set,f={},m=n.any.enter,y=n.any.leave,h={},O={};for(const S of Object.keys(n))S==="any"||S==="ref"||(h[S]=m.concat(n[S]?.enter||[]),O[S]=(n[S]?.leave||[]).concat(y));w(t.parsed,r,new I.Location(t.source,"#/"),void 0,"");function w(S,E,x,v,$){const g=(fe,Se=j.source.absoluteRef)=>{if(!I.isRef(fe))return{location:x,node:fe};const A=I.makeRefId(Se,fe.$ref),P=i.get(A);if(!P)return{location:void 0,node:void 0};const{resolved:k,node:_,document:b,nodePointer:q,error:F,chain:U}=P;return{location:k?new I.Location(b.source,q):F instanceof I.YamlParseError?new I.Location(F.source,""):void 0,node:_,error:F,chain:U}},T=x;let j=x;const B=I.isRef(S),{node:V,location:G,error:J,chain:oe}=g(S),Q=new Set,X=I.isRefWithSiblings(S)&&c.has(p(E,x));if(I.isRefWithSiblings(S)&&c.add(p(E,x)),B&&!X){const fe=n.ref.enter;for(const{visit:Se,ruleId:A,severity:P,message:k,context:_}of fe)Q.add(_),Se(S,{report:q=>xe(A,P,k,q),resolve:g,rawNode:S,rawLocation:T,location:x,type:E,parent:v,key:$,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Te(A)},{node:V,location:G,error:J,chain:oe}),G?.source.absoluteRef&&o.refTypes&&o.refTypes.set(G?.source.absoluteRef,E)}if(V!==void 0&&G&&E.name!=="scalar"){const fe=(U,Y,le,he)=>{let N=I.getOwn(E.properties,U);const z=E.extensionsPrefix!==void 0&&U.startsWith(E.extensionsPrefix);N===void 0&&!z&&(N=E.additionalProperties),typeof N=="function"&&(N=N(Y,U)),z&&!I.isNamedType(N)&&(N=I.SpecExtension),!I.isNamedType(N)&&N?.directResolveAs&&(N=N.directResolveAs,Y={$ref:Y}),N&&N.name===void 0&&N.resolvable!==!1&&(N={name:"scalar",properties:{}}),!(!I.isNamedType(N)||N.name==="scalar"&&!I.isRef(Y))&&w(Y,N,le.child([U]),he,U)};j=G;const Se=K.isPlainObject(V)||Array.isArray(V)?V:x.absolutePointer,A=a[E.name]?.has?.(Se);let P=!1;const k=h[E.name]||m.concat(n[E.name]?.enter||[]),_=[],b=`${j.absolutePointer}${j.pointer}`;for(const{context:U,visit:Y,skip:le,ruleId:he,severity:N,message:z}of k){if(u.has(b))break;if(U.isSkippedLevel)U.parent.activatedOn&&!U.parent.activatedOn.value.nextLevelTypeActivated&&!U.seen.has(S)&&(U.seen.add(S),P=!0,_.push(U));else if(U.parent&&U.parent.activatedOn&&U.parent.activatedOn.value.node===f[U.parent.type.name]&&U.activatedOn?.value.withParentNode!==U.parent.activatedOn.value.node&&U.parent.activatedOn.value.nextLevelTypeActivated?.value!==E||!U.parent&&!A){_.push(U);const H={node:V,location:G,nextLevelTypeActivated:null,withParentNode:U.parent?.activatedOn?.value.node,skipped:(U.parent?.activatedOn?.value.skipped||le?.(V,$,{location:x,rawLocation:T,resolve:g,rawNode:S}))??!1};U.activatedOn=zc(U.activatedOn,H);let Z=U.parent;for(;Z;)Z.activatedOn.value.nextLevelTypeActivated=zc(Z.activatedOn.value.nextLevelTypeActivated,E),Z=Z.parent;H.skipped||(P=!0,Q.add(U),me(Y,V,S,U,he,N,z))}}const q=f[E.name];if(f[E.name]=V,P||!A){if(a[E.name]=a[E.name]||new Set,a[E.name].add(Se),Array.isArray(V)){const U=E.items;if(U!==void 0){const Y=typeof U=="function";for(let le=0;le<V.length;le++){const he=G.child([le]);let N=Y?U(V[le],he.absolutePointer):U,z=V[le];N?.directResolveAs&&(N=N.directResolveAs,z={$ref:z}),I.isNamedType(N)&&w(z,N,he,V,le)}}}else if(K.isPlainObject(V)){const U=Object.keys(E.properties);E.additionalProperties?U.push(...Object.keys(V).filter(Y=>!U.includes(Y))):E.extensionsPrefix&&U.push(...Object.keys(V).filter(Y=>Y.startsWith(E.extensionsPrefix)&&!U.includes(Y)));for(const Y of U){const le=V[Y];le!==void 0&&fe(Y,le,G,V)}}}if(B&&oe?.length){const U=oe[0];c.has(p(E,U.location))||w(U.node,E,U.location,void 0,$)}if(I.isRefWithSiblings(S)&&!X)for(const U of Object.keys(S))U!=="$ref"&&S[U]!==V?.[U]&&fe(U,S[U],x,S);f[E.name]=q;const F=O[E.name]||(n[E.name]?.leave||[]).concat(y);for(const U of _.reverse())if(U.isSkippedLevel)U.seen.delete(V);else if(U.activatedOn=Bc(U.activatedOn),U.parent){let Y=U.parent;for(;Y;)Y.activatedOn.value.nextLevelTypeActivated=Bc(Y.activatedOn.value.nextLevelTypeActivated),Y=Y.parent}for(const{context:U,visit:Y,ruleId:le,severity:he,message:N}of F)!U.isSkippedLevel&&Q.has(U)&&me(Y,V,S,U,le,he,N)}if(j=x,B&&!X){const fe=n.ref.leave;for(const{visit:Se,ruleId:A,severity:P,context:k,message:_}of fe)Q.has(k)&&Se(S,{report:q=>xe(A,P,_,q),resolve:g,rawNode:S,rawLocation:T,location:x,type:E,parent:v,key:$,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Te(A)},{node:V,location:G,error:J,chain:oe})}function me(fe,Se,A,P,k,_,b){fe(Se,{report:F=>xe(k,_,b,F),resolve:g,rawNode:A,location:j,rawLocation:T,type:E,parent:v,key:$,parentLocations:oA(P),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{u.add(`${j.absolutePointer}${j.pointer}`)},getVisitorData:()=>Te(k)},iA(P),P)}function xe(fe,Se,A,P){const _=(P.location?Array.isArray(P.location)?P.location:[P.location]:[{...j,reportOnKey:!1}]).map(q=>({...j,reportOnKey:!1,...q})),b=P.forceSeverity||Se;b!=="off"&&o.problems.push({ruleId:P.ruleId||fe,severity:b,...P,message:A?A.replace("{{message}}",P.message):P.message,suggest:P.suggest||[],location:_})}function Te(fe){return o.visitorsData[fe]=o.visitorsData[fe]||{},o.visitorsData[fe]}}}function Mo(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 sA({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:i,componentRenamingConflicts:o="warn",componentNamesStrategy:a="basename"}){let c,p;const u=new Map,f=Mo("Schema",e),m={ref:{leave(x,v,$){if(!$.location||$.node===void 0){jt($,v.report,v.location);return}const g=rr($);if(g.location.source===r.source&&g.location.source===v.location.source&&v.type.name!=="scalar"&&!t){I.parseRef(x.$ref).uri!==null&&x.$ref!==g.location.pointer&&(x.$ref=g.location.pointer);return}if(i&&I.isAbsoluteUrl(x.$ref))return;const T=Mo(v.type.name,e);T?t?(h(T,g,v),I.replaceRef(x,g,v)):(x.$ref=h(T,g,v),y(x,$,v)):I.replaceRef(x,g,v)}},Example:{leave(x,v){if(I.isExternalValue(x)&&x.value===void 0){const $=v.resolve({$ref:x.externalValue});if(!$.location||$.node===void 0){jt($,v.report,v.location);return}if(i&&I.isAbsoluteUrl(x.externalValue))return;x.value=v.resolve({$ref:x.externalValue}).node,delete x.externalValue}}},Root:{enter(x,v){p=v.location,e==="oas3"?c=x.components=x.components||{}:e==="oas2"?c=x:e==="async2"?c=x.components=x.components||{}:e==="async3"?c=x.components=x.components||{}:e==="arazzo1"?c=x.components=x.components||{}:e==="openrpc1"&&(c=x.components=x.components||{})}}};e==="oas3"&&(m.Discriminator={leave(x,v){if(typeof x.defaultMapping!="string"||!I.isMappingRef(x.defaultMapping))return;const $=v.resolve({$ref:x.defaultMapping});if(!$.location||$.node===void 0){jt($,v.report,v.location.child("defaultMapping"));return}x.defaultMapping=h(f,rr($),v)},DiscriminatorMapping:{leave(x,v){for(const $ of Object.keys(x)){const g=x[$];if(!I.isMappingRef(g))continue;const T=v.resolve({$ref:g});if(!T.location||T.node===void 0){jt(T,v.report,v.location.child($));return}x[$]=h(f,rr(T),v)}}}});function y(x,v,$){const g={resolved:!0,isRemote:!1,node:v.node,chain:v.chain,document:r,nodePointer:x.$ref};n.set(I.makeRefId($.location.source.absoluteRef,x.$ref),g),n.set(I.makeRefId(r.source.absoluteRef,x.$ref),g)}function h(x,v,$){c[x]=c[x]||{};const g=E(v,x,$);return c[x][g]=v.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${x}/${g}`:`#/${x}/${g}`}function O(x,v,$){if(I.isRef(x)){const g=$.resolve(x,p.absolutePointer);if((g.location&&rr(g).location)?.absolutePointer===v.location.absolutePointer)return!0}return ht(x,v.node)}function w(x,v,$){const{title:g,name:T}=Xu(x.node),j=x.location.child("title");return g===""?{key:T,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:x.location,forceSeverity:"error"}}:v[T]&&!O(v[T],x,$)?{key:T,problem:{message:`Title "${g}" maps to component name \`${T}\`, already used by another schema. Rename one of the titles.`,location:j,from:u.get(T),forceSeverity:o}}:{key:T}}function S(x,v,$){const g=I.pointerBaseName(x.location.pointer)||I.refBaseName(x.location.source.absoluteRef);let T=g;for(let j=2;v[T]&&!O(v[T],x,$);j++)T=`${g}-${j}`;return{name:T,prevName:g}}function E(x,v,$){const g=c[v];if(a==="title"&&v===f){const{key:B,problem:V}=w(x,g,$);if(!V)return u.set(B,x.location.child("title")),B;const{name:G}=S(x,g,$);return g[G]||($.report(V),u.set(G,x.location)),G}const{name:T,prevName:j}=S(x,g,$);return!g[T]&&j!==T&&$.report({message:`Two schemas are referenced with the same name but different content. Renamed ${j} to ${T}.`,location:$.location,forceSeverity:o}),T}return m}async function ds(e){const{document:t,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:a=!1,keepUrlRefs:c=!1,componentRenamingConflicts:p,componentNamesStrategy:u="basename"}=e,f=Kt(t.parsed),m=ps(f),y=r.getRulesForSpecVersion(m),h=I.normalizeTypes(r.extendTypes(n,f),r),O=ar(y,r,"preprocessors",f),w=ar(y,r,"decorators",f),S={problems:[],specVersion:f,config:r,refTypes:new Map,visitorsData:{}};let E=await I.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i});O.length>0&&(mt({document:t,rootType:h.Root,normalizedVisitors:ft(O,h),resolvedRefMap:E,ctx:S}),E=await I.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i}));const x=ft([{severity:"error",ruleId:"bundler",visitor:sA({version:m,dereference:o,rootDocument:t,resolvedRefMap:E,keepUrlRefs:c,componentRenamingConflicts:p,componentNamesStrategy:u})},...w.filter(v=>v.ruleId!=="remove-unused-components")],h);if(mt({document:t,rootType:h.Root,normalizedVisitors:x,resolvedRefMap:E,ctx:S}),a||r.getDecoratorSettings("remove-unused-components",f).severity!=="off"){const v=await I.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i}),$=ft([{severity:"error",ruleId:"remove-unused-components",visitor:m==="oas2"?su():au()}],h);mt({document:t,rootType:h.Root,normalizedVisitors:$,resolvedRefMap:v,ctx:S})}return{bundle:t,problems:S.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:h.Root,refTypes:S.refTypes,visitorsData:S.visitorsData}}function aA(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[as]:n}};return mt({document:e,rootType:gr.ConfigRoot,normalizedVisitors:rA,resolvedRefMap:t,ctx:i}),n.plugins}function cA(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ss]:i}};return mt({document:e,rootType:gr.ConfigRoot,normalizedVisitors:nA,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function pA(e){const{ref:t,doc:r,externalRefResolver:n=new I.BaseResolver(e.config.resolve),base:i=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
23
- `);const o=r===void 0?await n.resolveDocument(i,t,!0):r;if(o instanceof Error)throw o;return e.collectSpecData?.(o),ds({document:o,...e,externalRefResolver:n,types:hr(Kt(o.parsed))})}async function lA(e){const{source:t,absoluteRef:r,externalRefResolver:n=new I.BaseResolver(e.config.resolve)}=e,i=I.makeDocumentFromString(t,r||"/");return ds({document:i,...e,externalRefResolver:n,types:hr(Kt(i.parsed))})}function Ji(e){return!ze(e)}const fr=new Map,Hn="v";let fs=0,Vc=!1;function uA(){K.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(Hn);if(!i)return n;const o=new URL(n.url);return o.pathname.includes("/node_modules/")||o.searchParams.has(Hn)?n:(o.searchParams.set(Hn,i),{...n,url:o.href})}})}function dA(){if(!Vc){if(Vc=!0,typeof K.module.registerHooks!="function"){Ee.warn(`Redocly plugin reload requires Node.js >= 22.15 (current: ${process.version}). ESM plugins will not pick up edits until the process restarts.
24
- `);return}uA()}}function fA(e){return fr.has(e)}function mA(e){return fr.get(e)}function hA(e,t){fr.set(e,t)}function yA(){return fs}function gA(e){const t=K.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 a of o.children)/[/\\]node_modules[/\\]/.test(a.id)||n(a.id);delete t.cache[i]}};n(e)}const bA=()=>{const e=[...fr.keys()];for(const t of e)gA(t);fr.clear(),fs+=1,dA()};async function vA(e){const t=(void 0)(e);return t.searchParams.set(Hn,String(fs)),import(t.href)}async function id({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i}){const o=e===void 0?Hl:e.parsed;if(n!==void 0&&K.isPlainObject(o)&&(o.extends=n),K.isPlainObject(o)&&(o?.extends?.some(Ji)||o?.scorecardClassic?.levels?.some(h=>h?.extends?.some(Ji))||o?.scorecard?.levels?.some(h=>h?.extends?.some(Ji))))throw new Error("Configuration format not detected in extends: values must be strings.");const a=e??{source:new I.Source(t??"",JSON.stringify(o)),parsed:o},c=await I.resolveDocument({rootDocument:a,rootType:gr.ConfigRoot,externalRefResolver:r??new I.BaseResolver(Ql(o?.resolve))});let p=[],u,f="";I.isBrowser?u=[...(o?.plugins||[]).filter(O=>!ze(O)),Uc]:(f=K.pathBrowserifyExports.dirname(t??""),p=aA(a,c,f),u=[...await od(p.map(O=>Hc(O)?O.absolutePath:O),f,i),Uc]);const m=cA(a,eA(c),u,i);m.apis&&!i&&(m.apis=Object.fromEntries(Object.entries(m.apis).map(([h,O])=>{const w=rd([m,O]);return[h,{...O,...w}]})));const y=p.length?p.map(h=>Hc(h)&&h.isModule?h.rawPath:h.absolutePath&&K.pathBrowserifyExports.relative(f,h.absolutePath)).filter(Ye):void 0;return{resolvedConfig:{...m,plugins:y},resolvedRefMap:c,plugins:u}}function wA(e){for(const t of Wl)(void 0)(K.pathBrowserifyExports.resolve(e,t))}function Hc(e){return"isModule"in e}const Do=(e,t,r)=>{if(!ze(e))return e;(void 0)(K.pathBrowserifyExports.resolve(K.pathBrowserifyExports.dirname(t),e));try{return{absolutePath:K.module.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:at&&at.tagName.toUpperCase()==="SCRIPT"&&at.src||new URL("replay-lint-BvndGL38.js",document.baseURI).href)??__dirname).resolve(e,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:at&&at.tagName.toUpperCase()==="SCRIPT"&&at.src||new URL("replay-lint-BvndGL38.js",document.baseURI).href)?K.pathBrowserifyExports.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:at&&at.tagName.toUpperCase()==="SCRIPT"&&at.src||new URL("replay-lint-BvndGL38.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function od(e,t,r=!1){if(!e)return[];const n=async p=>{if(!ze(p))return p;try{const u=K.pathBrowserifyExports.isAbsolute(p)?p:Do(p,K.pathBrowserifyExports.join(t,_o),t).absolutePath;if(!fA(u)){const f=await vA(u),m=f.default||f,y={contentDir:t},h=Array.isArray(m)?m:[m];for(const S of h)S?.id&&Fc(S)&&Ee.info(`Deprecated plugin format detected: ${S.id}
25
- `);const O=Fc(m)?m:tA(m)?await m(y):await m?.default?.(y),w=Array.isArray(O)?O:[O];O&&hA(u,w.map(S=>({...S,path:p,absolutePath:u})))}return mA(u)}catch(u){throw new Error(`Failed to load plugin "${p}": ${u.message}
17
+ `)}}const Ee=new OS,ko={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function Sc(e){const{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,i=n&&ir(n),o=i&&(p=>i.test(p.toString())),a=Array.isArray(t)&&(p=>t.includes(p.toString())),c=Array.isArray(r)&&(p=>!r.includes(p.toString()));return[o,a,c].filter(I.isTruthy)}function cu(e){const t=Lo(At).filter(i=>e.assertions[i]!==void 0).map(i=>({name:i,conditions:e.assertions[i],runsOnKeys:Gl.has(i),runsOnValues:Yl.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 pu({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function lu(e,t,r){const n=pu(e),i=[];for(const o of t)if(n.length)for(const a of n)i.push(Ec({assert:o,ctx:r,assertionProperty:a}));else i.push(Ec({assert:o,ctx:r}));return i.flat()}function RS(e,t){const r=Sc(e.subject),n=r.length?(p,u)=>!r.every(f=>f(u)):void 0,i={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return i;let o={};const a=o,c=e.where;for(let p=0;p<c.length;p++){const u=c[p];if(!ze(u.subject?.type))throw new Error(`${e.assertionId} -> where -> [${p}]: 'type' (String) is required`);if(!K.isPlainObject(u.assertions))throw new Error(`${e.assertionId} -> where -> [${p}]: 'assertions' (Object) is required`);const f=Sc(u.subject),m=cu(u),y=(O,w,P)=>!f.every(E=>E(w))||!!lu(u,m,{...P,node:O}).length,h={...(f.length||m.length)&&{skip:y}};u.subject.type===e.subject.type&&p===c.length-1?i[e.subject.type]={enter:t,...h.skip&&{skip:h.skip}||n&&{skip:(O,w,P)=>!!(h.skip?.(O,w,P)||n?.(O,w))}}:o=o[u.subject?.type]=h}return o[e.subject.type]=i[e.subject.type],a}function AS(e,t){return(r,n)=>{const i=pu(t),o=`${Re.blue(e)} failed because the ${Re.blue(t.subject.type)} ${Re.blue(i.join(", "))} didn't meet the assertions: ${ko.problems}`.replace(/ +/g," "),a=lu(t,cu(t),{...n,node:r});if(a.length)for(const c of $S(a)){const p=t.message||o,f={problems:uu(c),assertionName:e,nodeType:t.subject.type,property:i.join(", "),key:String(n.key),pointer:n.location.pointer,file:du(n.location.source.absoluteRef)};n.report({message:fu(p,f),location:_S(c)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function $S(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 _S(e){return e.length?e[0].location:void 0}function uu(e){return e.length===1?e[0].message??"":e.map(t=>`
18
+ - ${t.message??""}`).join("")}function du(e){return I.isAbsoluteUrl(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function fu(e,t){let r=e;for(const n of Object.keys(ko)){const i=ko[n],o=t[n];i&&(r=r.split(i).join(o))}return r}function Ec({assert:e,ctx:t,assertionProperty:r}){const n=e.name==="ref"?t.rawLocation:t.location;if(r){const i=I.isRef(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],o=t.rawNode[r],a=n.child(r);return At[e.name](i,e.conditions,{...t,baseLocation:a,rawValue:o})}else{const i=Array.isArray(t.node)?t.node:Object.keys(t.node);return At[e.name](i,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}const xt=e=>{const t=[],r=Object.values(e).filter(n=>K.isPlainObject(n));for(const[n,i]of r.entries()){if(!ze(i.subject.type))throw new Error(`${i.assertionId}: 'type' (String) is required`);if(!K.isPlainObject(i.assertions))throw new Error(`${i.assertionId}: 'assertions' (Object) is required`);const o=AS(i.assertionId,i),a=RS(i,o);t.push(a)}return t};function TS(e){return K.isPlainObject(e)||Array.isArray(e)}const vr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;const n=new Set,i=[];for(const[o,a]of e.enum.entries()){const c=TS(a);(c?i.some(u=>yt(u,a)):n.has(a))&&t({message:`Duplicated enum value found: '${c?JSON.stringify(a):a}'.`,location:r.child(["enum",o]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),c?i.push(a):n.add(a)}}});var zi,Oc;function kS(){return Oc||(Oc=1,zi=(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 a=0;a<i&&t.charCodeAt(a)===r.charCodeAt(a);)a++;if(i-=a,o-=a,i===0||o<3)return o;var c=0,p,u,f,m,y,h,O,w,P,E,x,v,$=[];for(p=0;p<i;p++)$.push(p+1),$.push(t.charCodeAt(a+p));for(var g=$.length-1;c<o-3;)for(P=r.charCodeAt(a+(u=c)),E=r.charCodeAt(a+(f=c+1)),x=r.charCodeAt(a+(m=c+2)),v=r.charCodeAt(a+(y=c+3)),h=c+=4,p=0;p<g;p+=2)O=$[p],w=$[p+1],u=e(O,u,f,P,w),f=e(u,f,m,E,w),m=e(f,m,y,x,w),h=e(m,y,h,v,w),$[p]=h,y=m,m=f,f=u,u=O;for(;c<o;)for(P=r.charCodeAt(a+(u=c)),h=++c,p=0;p<g;p+=2)O=$[p],$[p]=h=e(O,u,h,P,$[p+1]),u=O;return h}})()),zi}var IS=kS();const qS=K.getDefaultExportFromCjs(IS),bi=(e,t,r)=>{if(I.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}},Bi=(e,t,r,n,i)=>!!(e.properties&&I.getOwn(e.properties,t)!==void 0||e.allOf?.some(o=>Rt(o,t,r,n,i))||or(e.anyOf)&&e.anyOf.every(o=>Rt(o,t,r,new Set(n),i))||or(e.oneOf)&&e.oneOf.every(o=>Rt(o,t,r,new Set(n),i))),Rt=(e,t,r,n=new Set,i)=>{if(I.isRef(e)&&Bi(e,t,r,n,i))return!0;const{schema:o,location:a,chain:c}=bi(e,r,i);if(!o)return!1;if(!n.has(o)&&(n.add(o),Bi(o,t,r,n,a)))return!0;for(const p of c??[])if(!(!K.isPlainObject(p.node)||n.has(p.node))&&(n.add(p.node),Bi(p.node,t,r,n,p.location)))return!0;return!1};function Vn(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function ti(e){const t=e?.security;return Array.isArray(t)&&t.length>0}function mu(e,t,r){if(ti(e))return!0;if(!Array.isArray(e?.traits))return!1;for(const n of e.traits){const i=I.isRef(n)?t(n,r).node:n;if(ti(i))return!0}return!1}function ri(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return K.isPlainObject(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function vi(e,t){return`${e} object should contain \`${t}\` field.`}function CS(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function hu(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Vt({fieldName:e,value:t,ctx:r,reference:n}){K.isPlainObject(t)&&(t[e]===void 0?r.report({message:vi(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:hu(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function jS({fieldNames:e,value:t,ctx:r,reference:n}){if(K.isPlainObject(t)){e.some(i=>t.hasOwnProperty(i))||r.report({message:CS(r.type.name,e),location:r.location.key(),reference:n});for(const i of e)t.hasOwnProperty(i)&&!t[i]&&r.report({message:hu(r.type.name,i),location:r.location.child([i]).key(),reference:n})}}function wi(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=qS(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 yu(e){if(K.isPlainObject(e)){if(Ye(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(Ye(e.value))return{value:e.value,field:"value"}}}function pr({example:e,schema:t,options:r,reference:n}){const{location:i,ctx:o,validator:a,allowAdditionalProperties:c,ajvContext:p}=r,{resolve:u,location:f,report:m,specVersion:y}=o;try{const{valid:h,errors:O}=a.validate(e,t,{schemaLoc:f.child("schema"),instancePath:i.pointer,resolve:u,allowAdditionalProperties:c,ajvContext:p,specVersion:y});if(!h)for(const w of O)m({message:`Example value must conform to the schema: ${w.message}.`,location:{...new I.Location(i.source,w.instancePath),reportOnKey:w.keyword==="unevaluatedProperties"||w.keyword==="additionalProperties"},from:f,suggest:w.suggest,reference:n})}catch(h){if(h.message==="discriminator: requires oneOf or anyOf composite keyword")return;m({message:`Example validation errored: ${h.message}.`,location:f.child("schema"),from:f,reference:n})}}const MS=10;function Rc(e,t,r,n,{report:i,location:o},a){if(e&&!e.includes(t)){const c=e.length>MS?`\`${r}\` "${t}" is not a valid value.${a?` See the supported values: ${a}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(p=>`"${p}"`).join(", ")}.`;i({location:o,message:c,from:n,suggest:wi(t,e)})}}function ni({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 Io(e,t){return t?e.name.toLowerCase():e.name}const wr=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){const n=e.enum.filter(i=>!ri(i,e.type,e.nullable));for(const i of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Vn(i)}".`,location:r.child(["enum",e.enum.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){const n={};for(const i of e.enum){n[i]=[];for(const o of e.type)ri(i,o,e.nullable)||n[i].push(o);n[i].length!==e.type.length&&delete n[i]}for(const i of Object.keys(n))t({message:`Enum value \`${i}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}}),xi=()=>({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"})}}),xr=()=>{const e=[],t=new Set,r=(n,i,o)=>{if(or(n.required))for(const[a,c]of n.required.entries())Rt(n,c,o,new Set,i)||o.report({message:`Required property '${c}' is not defined.`,location:i.child(["required",a]),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 a=[{node:n,location:i.location},...o.chain??[]];for(const{node:c,location:p}of a)!K.isPlainObject(c)||t.has(c)||(t.add(c),r(c,p,i))}},Schema:{leave(n){e.pop()},enter(n,i){if(e.push(n),!or(n.required))return;const o=(p,u)=>{const f=m=>bi(m,i).schema===u;return!!(p.allOf?.some(f)||p.anyOf?.some(f)||p.oneOf?.some(f))},a=(p,u)=>{if(p<0)return;const f=e[p];return o(f,u)?a(p-1,f)??f:void 0},c=a(e.length-2,n);for(const[p,u]of n.required.entries())!Rt(n,u,i)&&!Rt(c,u,i)&&i.report({message:`Required property '${u}' is not defined.`,location:i.location.child(["required",p]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}},Pr=()=>({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"})}}),gt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&jt(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;jt(o,t,n.child(i))}}});function jt(e,t,r){const n=e.error;n instanceof I.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 Sr=()=>({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"}))}}),bt=()=>({any(e,{report:t,type:r,location:n,rawLocation:i,key:o,resolve:a,ignoreNextVisitorsOnNode:c}){const p=Vn(e),u=i!==n?i:void 0;if(r.items){p!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${p}\``,from:u}),c());return}else if(p!=="object"){r!==I.SpecExtension&&t({message:`Expected type \`${r.name}\` (object) but got \`${p}\``,from:u}),c();return}const f=typeof r.required=="function"?r.required(e,o):r.required;for(const h of f||[])e.hasOwnProperty(h)||t({message:`The field \`${h}\` must be present on this level.`,from:u,location:[{reportOnKey:!0}]});const m=r.allowed?.(e);if(m&&K.isPlainObject(e))for(const h in e)m.includes(h)||r.extensionsPrefix&&h.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(h)||t({message:`The field \`${h}\` is not allowed here.`,from:u,location:n.child([h]).key()});const y=r.requiredOneOf||null;if(y){let h=!1;for(const O of y||[])e.hasOwnProperty(O)&&(h=!0);h||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:u,location:[{reportOnKey:!0}]})}for(const h of Object.keys(e)){const O=n.child([h]);let w=e[h],P=I.getOwn(r.properties,h);if(P===void 0&&(P=r.additionalProperties),typeof P=="function"&&(P=P(w,h)),I.isNamedType(P))continue;const E=P,x=Vn(w);if(E===void 0){if(h.startsWith("x-"))continue;t({message:`Property \`${h}\` is not expected here.`,suggest:wi(h,Object.keys(r.properties)),from:u,location:O.key()});continue}if(E!==null){if(E.resolvable!==!1&&I.isRef(w)&&(w=a(w).node),E.items&&E.items?.enum&&Array.isArray(w))for(let v=0;v<w.length;v++)Rc(E.items?.enum,w[v],h,u,{report:t,location:n.child([h,v])},E.items?.documentationLink);if(E.enum)Rc(E.enum,w,h,u,{report:t,location:n.child([h])},E.documentationLink);else if(E.type&&!ri(w,E.type,!1))t({message:`Expected type \`${E.type}\` but got \`${x}\`.`,from:u,location:O}),c();else if(x==="array"&&E.items?.type){const v=E.items?.type;for(let $=0;$<w.length;$++){const g=w[$];ri(g,v,!1)||t({message:`Expected type \`${v}\` but got \`${Vn(g)}\`.`,from:u,location:O.child([$])})}}typeof E.minimum=="number"&&E.minimum>e[h]&&t({message:`The value of the ${h} field must be greater than or equal to ${E.minimum}`,from:u,location:n.child([h])})}}}}),DS=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||K.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"})}}}),NS=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(const i of t){const o=I.getOwn(i,"scheme"),a=I.getOwn(i,"schemeName");o&&a&&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)}}}},LS=()=>({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"})}}}),US=()=>{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 a=o.schemeName;typeof a=="string"&&a.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"})}}}}}},FS={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function Ac(e,{report:t,location:r}){if(e)for(const n of e){if("schemeName"in n)continue;const{scheme:i,values:o}=n,a=i?.type==="http"?i.scheme:i?.type,c=i?.type==="http"?a?.toLowerCase():a;if(a==="mutualTLS"){Ee.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}const p=FS[c];if(p)for(const u of p)(!o||!(u in o))&&t({message:`The \`${u}\` is required when using the ${a} 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 \`${a}\` 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 zS=()=>({Step:{enter(e,t){Ac(e?.["x-security"],t)}},Workflow:{enter(e,t){Ac(e?.["x-security"],t)}}}),BS=()=>({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 a=JSON.stringify(o);i.has(a)?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(a)}}},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 a=JSON.stringify(o);i.has(a)?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(a)}}},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 a=JSON.stringify(o);i.has(a)?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(a)}}}}),VS=()=>{const e=new Map,t=new Map,r=[];function n({value:a,report:c,location:p,path:u,definedWorkflowOutputs:f}){const m=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=m.exec(a))!==null;){const[h,O,w]=y,P=f.get(O);P?P.includes(w)||c({message:`Output key "${w}" is not defined in workflow "${O}". Available outputs: [ ${P.join(", ")} ].`,location:p.child(u)}):c({message:`Workflow "${O}" referenced in runtime expression "${h}" is not defined or has no outputs.`,location:p.child(u)})}}function i({value:a,report:c,location:p,path:u,definedStepOutputs:f}){const m=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g;let y;for(;(y=m.exec(a))!==null;){const[h,O,w]=y,P=f.get(O);P?P.includes(w)||c({message:`Output key "${w}" is not defined in step "${O}". Available outputs: [ ${P.join(", ")} ].`,location:p.child(u)}):c({message:`Step "${O}" referenced in runtime expression "${h}" is not defined or has no outputs.`,location:p.child(u)})}}function o(a,c,p=[]){if(typeof a=="string")n({value:a,report:c.report,location:c.location,path:p,definedWorkflowOutputs:e}),i({value:a,report:c.report,location:c.location,path:p,definedStepOutputs:t});else if(K.isPlainObject(a)||Array.isArray(a))for(const[u,f]of Object.entries(a))o(f,c,[...p,u])}return{Step:{enter(a,{report:c,location:p}){a.outputs&&t.set(a.stepId,Object.keys(a.outputs))}},Workflow:{enter(a,{report:c,location:p}){a.outputs&&e.set(a.workflowId,Object.keys(a.outputs))}},Parameters:{enter(a,c){r.push(()=>{o(a,c)})}},RequestBody:{enter(a,c){r.push(()=>{o(a,c)})}},CriterionObject:{enter(a,c){r.push(()=>{o(a.condition,c)})}},Outputs:{enter(a,c){r.push(()=>{o(a,c)})}},ExtendedSecurity:{enter(a,c){r.push(()=>{o(a,c)})}},ExtendedOperation:{enter(a,c){r.push(()=>{o(a,c)})}},Root:{leave(){for(const a of r)a()}}}},HS=()=>({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)}}}),KS=()=>{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)}}}}},WS=()=>{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)}}}},QS=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}}),GS=["x-operation","operationId","operationPath","channelPath","workflowId"],YS=()=>({Step:{enter(e,{report:t,location:r}){const n=GS.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"})}}}),JS=()=>({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)}}}),XS=()=>({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)}}}),ZS=()=>({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)}}}}),eE=()=>{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 a of r.dependsOn){if(a.startsWith("$sourceDescriptions.")){const c=a.split(".")[1];e.has(c)||n({message:`SourceDescription ${c} must be defined in sourceDescriptions.`,location:i.child(["dependsOn",r.dependsOn.indexOf(a)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!a.startsWith("$sourceDescriptions")&&!t.has(a)&&n({message:`Workflow ${a} must be defined in workflows.`,location:i.child(["dependsOn",r.dependsOn.indexOf(a)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),o.has(a)&&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(a)}}}}},tE=()=>{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))}}}},rE={assertions:xt,"criteria-unique":BS,"no-criteria-xpath":DS,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Sr,"no-enum-type-mismatch":wr,"no-mixed-number-range-constraints":xi,"no-required-schema-properties-undefined":xr,"no-schema-type-mismatch":Pr,"no-unresolved-refs":gt,"no-x-security-both-scheme-and-scheme-name":NS,"no-x-security-scheme-name-without-openapi":LS,"outputs-defined":VS,"parameters-unique":HS,"requestBody-replacements-unique":KS,"sourceDescription-name-unique":WS,"sourceDescription-type":SS,"sourceDescriptions-not-empty":QS,"spec-step-mutually-exclusive-fields":YS,"step-onFailure-unique":JS,"step-onSuccess-unique":XS,"stepId-unique":ZS,struct:bt,"workflow-dependsOn":eE,"workflowId-unique":tE,"x-security-scheme-name-reference":US,"x-security-scheme-required-values":zS},nE={},Ht=()=>({Info(e,{report:t,location:r}){e.contact||t({message:vi("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}}),iE=/^1\.0\.\d+(-.+)?$/;function ps(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 Kt(e){if(!K.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"&&iE.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}const Pi=()=>{let e;return{Root:{enter(t){e=Kt(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?jS({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Vt({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}},Si=({ignoreCase:e=!1})=>{const t=new Set;return{Tag:{leave(r,n){const i=Io(r,e);t.has(i)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(i)}}}},Ei=()=>({Root:{PathItem:{Operation(e,t){Vt({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function oE(e,t,r){if("flows"in e&&e.flows){const{node:n,location:i}=I.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,a=Object.values(n??{}).flatMap(c=>{const p=I.isRef(c)?t(c,o).node:c;return Object.keys(p?.scopes||{})});return[...new Set(a)]}return Object.keys(e.scopes||{})}const ls=e=>{const t=new Map,r=[];return{Root:{leave(n,{report:i}){for(const{schemeName:o,scopes:a,location:c}of r){const p=t.get(o);if(p?.type==="oauth2"){if(e.requireScopes&&a.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 u=0;u<a.length;u++){const f=a[u];p.definedScopes.includes(f)||i({message:`The "${f}" scope is not defined in the "${o}" security scheme.`,location:c.child([u]),suggest:wi(f,p.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:i,resolve:o,location:a}){t.set(i.toString(),{type:n.type,definedScopes:n.type==="oauth2"?oE(n,o,a):[]})},SecurityRequirement(n,{location:i}){for(const[o,a]of Object.entries(n))r.push({schemeName:o,scopes:a||[],location:i.child([o])})}}},Oi=()=>({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"})}}}),Ri=()=>({Tag(e,t){Vt({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}}),Ai=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let i=0;i<t.tags.length-1;i++)Io(t.tags[i],e)>Io(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"})}}),sE=()=>({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"})}}),aE=()=>({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"})}}),$c="https://redocly.com/docs/cli/rules/async/security-defined",cE=()=>{const e=new Map,t=new Map,r=[];let n,i=!1;return{Root:{leave(o,{report:a}){for(const[p,u]of e.entries())if(!u.defined)for(const f of u.from)a({message:`There is no \`${p}\` security scheme defined.`,location:f.key(),reference:$c});const c=[...t.keys()];for(const{location:p,channelServers:u}of r){const f=u??c;f.length>0&&f.every(y=>t.get(y))||a({message:"Every operation should have security defined on it.",location:p.key(),reference:$c})}}},SecurityScheme(o,{key:a}){o!=null&&e.set(a.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:a}){for(const c of Object.keys(o)){const p=e.get(c),u=a.child([c]);p?p.from.push(u):e.set(c,{from:[u]})}},Components:{enter(){i=!0},leave(){i=!1}},Server(o,{key:a}){i||t.set(a.toString(),ti(o))},Channel:{skip(){return i},enter(o){n=Array.isArray(o?.servers)&&o.servers.length>0?o.servers:void 0},Operation(o,{location:a,resolve:c}){mu(o,c)||r.push({location:a,channelServers:n})}}}},pE={struct:bt,"no-unresolved-refs":gt,assertions:xt,"info-contact":Ht,"info-license-strict":Pi,"operation-operationId":Ei,"security-defined":cE,"channels-kebab-case":sE,"no-channel-trailing-slash":aE,"tag-description":Ri,"tags-alphabetical":Ai,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Sr,"no-duplicated-tag-names":Si,"no-required-schema-properties-undefined":xr,"no-enum-type-mismatch":wr,"no-mixed-number-range-constraints":xi,"no-schema-type-mismatch":Pr,"security-scopes-defined":ls,"spec-ref-siblings":Oi},lE={},uE=()=>({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"})}}),dE=()=>({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"})}}),_c="#/components/securitySchemes/",fE="#/components/",Vi="https://redocly.com/docs/cli/rules/async/security-defined";function mE(e){const t=e.indexOf("#");return t===-1?e:e.slice(t)}function hE(e){if(!e.startsWith(_c))return!1;const t=e.slice(_c.length);return t!==""&&!t.includes("/")}const yE=()=>{const e=[];let t,r,n,i,o;const a=(c,p,u)=>{const f=c.channel,m=I.isRef(f)?p(f,u):void 0,h=(I.isRef(f)?m?.node:f)?.servers;let O,w;return h&&h.length>0?(O=h,w=m?.location?.source.absoluteRef??u):(O=t?Object.values(t):[],w=r),O.length===0?!1:O.every(P=>{const E=I.isRef(P)?p(P,w).node:P;return ti(E)})};return{Root:{enter(c,{location:p,resolve:u}){const f=c?.servers;if(I.isRef(f)){const y=u(f);t=y.node??void 0,r=y.location?.source.absoluteRef}else t=f,r=void 0;const m=c?.operations;if(I.isRef(m)){const y=u(m);n=y.node??void 0,i=y.location?.source.absoluteRef,o=y.location}else n=m,i=void 0,o=p.child(["operations"])},leave(c,{report:p,resolve:u}){for(const f of e){if((f.local||f.refPointer.startsWith(fE))&&!hE(f.refPointer)){p({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:f.location.key(),reference:Vi});continue}f.resolved||p({message:`There is no \`${f.name}\` security scheme defined.`,location:f.location.key(),reference:Vi})}if(n&&o){const f=o;for(const[m,y]of Object.entries(n)){let h,O;if(I.isRef(y)){const w=u(y,i);h=w.node,O=w.location?.source.absoluteRef}else h=y,O=i;h&&(mu(h,u,O)||a(h,u,O)||p({message:"Every operation should have security defined on it.",location:f.child([m]).key(),reference:Vi}))}}}},SecuritySchemeList:{enter(c,{location:p,resolve:u}){if(c)for(let f=0;f<c.length;f++){const m=c[f];if(!I.isRef(m))continue;const y=p.child([f]),h=u(m),O=mE(m.$ref),w=O.split("/").pop()??m.$ref;e.push({location:y,name:w,refPointer:O,resolved:h.node!=null,local:m.$ref.startsWith("#")})}}}}};function gE(e,t,r){if(!e.flows)return[];const{node:n,location:i}=I.isRef(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},o=(i??r).source.absoluteRef,a=Object.values(n??{}).flatMap(c=>{const p=I.isRef(c)?t(c,o).node:c;return Object.keys(p?.availableScopes||{})});return[...new Set(a)]}const bE=e=>{const t=new Map;return{SecuritySchemeList(r,{resolve:n,location:i}){for(let o=0;o<r.length;o++){const a=r[o],c=I.isRef(a)?n(a):{node:a,location:i.child([o])};!c.node||!c.location||t.set(c.location.absolutePointer,{scheme:c.node,location:c.location,availableScopes:c.node.type==="oauth2"?gE(c.node,n,c.location):[]})}},Root:{leave(r,{report:n}){for(const{scheme:i,location:o,availableScopes:a}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 u=c[p];a.includes(u)||n({message:`The "${u}" scope is not defined in the available scopes of the security scheme flows.`,location:o.child(["scopes",p]),suggest:wi(u,a),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}},vE={struct:bt,"no-unresolved-refs":gt,assertions:xt,"info-contact":Ht,"info-license-strict":Pi,"operation-operationId":Ei,"security-defined":yE,"channels-kebab-case":uE,"no-channel-trailing-slash":dE,"tag-description":Ri,"tags-alphabetical":Ai,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Sr,"no-duplicated-tag-names":Si,"no-required-schema-properties-undefined":xr,"no-enum-type-mismatch":wr,"no-mixed-number-range-constraints":xi,"no-schema-type-mismatch":Pr,"security-scopes-defined":bE,"spec-ref-siblings":Oi},wE={};function gu(e){return Lo(At).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:Gl.has(t),runsOnValues:Yl.has(t)}))}const xE=e=>{const t=Object.values(e).filter(K.isPlainObject),r=[];for(const n of t){if(n.severity==="off")continue;const i=n.subject?.type;if(!i)continue;if(!K.isPlainObject(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);const o=gu(n),a=PE(n);r.push({[i]:(c,p)=>{SE(c,p,a)&&EE(c,p,n,o)}})}return r};function PE(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!ze(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!K.isPlainObject(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:gu(t)}}):[]}function SE(e,t,r){let n=r;const i=r.at(-1);if(i&&i.kind===e.kind){if(!Tc(e,i,t))return!1;n=r.slice(0,-1)}let o=0;for(const a of n){let c=!1;for(;o<t.ancestors.length;){const p=t.ancestors[o++];if(p.kind===a.kind&&Tc(p,a,t)){c=!0;break}}if(!c)return!1}return!0}function Tc(e,t,r){const{value:n}=bu(e,t.definition.subject.property),i=new I.Location(r.source,"#/");return t.assertsToApply.every(o=>At[o.name](n,o.conditions,{baseLocation:i,rawValue:n}).length===0)}function EE(e,t,r,n){const i=vu(r.subject.property),{value:o,locNode:a}=bu(e,r.subject.property),c=new I.Location(t.source,"#/"),p=n.flatMap(f=>At[f.name](o,f.conditions,{baseLocation:c,rawValue:o}));if(!p.length)return;const u=`${Re.blue(r.assertionId)} failed because the ${Re.blue(r.subject.type)} ${Re.blue(i??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:fu(r.message??u,{problems:uu(p),assertionName:r.assertionId,nodeType:r.subject.type,property:i??"",key:"",pointer:"",file:du(t.source.absoluteRef)}),node:a,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function Hi(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 bu(e,t){const r=vu(t);if(r===void 0)return Hi(e);const n=e[r];if(Array.isArray(n))return{value:n.map(o=>Hi(o).value),locNode:e};const i=Hi(n);return{value:i.value,locNode:OE(i.locNode)?i.locNode:e}}function OE(e){return K.isPlainObject(e)&&"kind"in e}function vu(e){return Array.isArray(e)?e[0]:e}const RE=["Query","Mutation","Subscription"];function AE(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}const $E=()=>{const e=new Map,t=new Set,r=new Set;let n=!1;const i=f=>t.add(AE(f)),o=f=>e.set(f.name.value,f.name),a=f=>{for(const m of f.interfaces??[])i(m);for(const m of f.fields??[]){i(m.type);for(const y of m.arguments??[])i(y.type)}},c=f=>{for(const m of f.types??[])i(m)},p=f=>{for(const m of f.fields??[])i(m.type)},u=f=>{for(const m of f.operationTypes??[])r.add(m.type.name.value)};return{SchemaDefinition:f=>{n=!0,u(f)},SchemaExtension:u,DirectiveDefinition:f=>{for(const m of f.arguments??[])i(m.type)},ObjectTypeDefinition:f=>{o(f),a(f)},ObjectTypeExtension:a,InterfaceTypeDefinition:f=>{o(f),a(f)},InterfaceTypeExtension:a,UnionTypeDefinition:f=>{o(f),c(f)},UnionTypeExtension:c,InputObjectTypeDefinition:f=>{o(f),p(f)},InputObjectTypeExtension:p,EnumTypeDefinition:o,ScalarTypeDefinition:o,Document:{leave:(f,m)=>{if(!n)for(const y of RE)e.has(y)&&r.add(y);if(r.size!==0)for(const[y,h]of e)t.has(y)||r.has(y)||m.report({message:`Type \`${y}\` is declared but never used.`,node:h})}}}},_E=()=>({Document:{enter:(e,t)=>{let r;try{r=K.buildASTSchema(e,{assumeValidSDL:!1})}catch(n){TE(n,t);return}for(const n of K.validateSchema(r))wu(n,t)}}});function TE(e,t){if(e instanceof K.GraphQLError)wu(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function wu(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 kE=()=>{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}},IE={struct:_E,assertions:xE,"no-unused-types":$E,"type-description":kE},us=()=>({Info(e,{report:t}){e.license||t({message:vi("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}}),xu=()=>({Paths(e,{report:t,location:r}){const n=[];for(const i of Object.keys(e)){const o=n.find(a=>qE(a,i));o&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${o}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(i)}}});function qE(e,t){const r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let i=0,o=0,a=!0;for(let c=0;c<r.length;c++){const p=r[c].match(/^{.+?}$/),u=n[c].match(/^{.+?}$/);if(p||u){p&&i++,u&&o++;continue}else r[c]!==n[c]&&(a=!1)}return a&&i===o}function Pu(e){return e.startsWith("{")&&e.endsWith("}")}function CE(e){const t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(I.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 jE=["get","head","post","put","patch","delete","options","trace"],Su=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:i,location:o}){const a=n.toString();if(!a.startsWith("/")||t?.some(p=>a===p))return;const c=a.split("/");for(const p of c){if(!p||Pu(p))continue;const u=f=>e?CE(p).has(f):p.toLocaleLowerCase().includes(f);for(const f of jE)u(f)&&i({message:`path \`${a}\` should not contain http verb ${f}`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}}),Eu=()=>({Paths(e,{report:t,location:r}){const n=new Map;for(const i of Object.keys(e)){const o=i.replace(/{.+?}/g,"{VARIABLE}"),a=n.get(o);a?t({message:`The path already exists which differs only by path parameter name(s): \`${a}\` and \`${i}\`.`,location:r.child([i]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(o,i)}}}),Ou=e=>{const t=new gi;return{Parameter:{leave(r,n){if(Ye(r.example)&&pr({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),K.isPlainObject(r.examples))for(const[i,o]of Object.entries(r.examples)){const a=yu(o);a&&pr({example:a.value,schema:r.schema,options:{location:n.location.child(["examples",i,a.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}},Ru=e=>{const t=new gi;return{Schema:{leave(r,n){const i=r.examples;if(Array.isArray(i))for(const o of i)pr({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(Ye(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;pr({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"})}}}}},Au=()=>({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"})}}),$u=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){const i=Object.keys(r||{});ni({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||{});ni({responseCodes:i,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}}),_u=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){const n=Object.keys(t||{});ni({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||{});ni({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}}),Tu=()=>({Operation(e,t){Vt({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}}),ku=()=>{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))}}},ME=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Iu=()=>({Operation(e,{report:t,location:r}){e.operationId&&!ME.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"})}}),qu=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:i,parentLocations:o}){const a=`${r.in}___${r.name}`;e.has(a)&&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 a=`${r.in}___${r.name}`;t.has(a)&&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(a)}}}}},Cu=()=>({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"})}}),ju=()=>({Operation(e,t){Vt({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}}),Mu=()=>{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"})}}},Du=()=>({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"})}}),Nu=()=>({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"})}}),DE=["get","head","post","put","patch","delete","options","query","trace"],Lu=e=>{const t=e&&e.order||DE;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(a=>t.includes(a));for(let a=0;a<o.length-1;a++){const c=t.indexOf(o[a]);t.indexOf(o[a+1])<c&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...i.child(o[a+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}},Uu=()=>({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"})}}}),NE=/\{([a-zA-Z0-9_.-]+)\}+/g,LE=2,ii=()=>{const e={current:null};return{PathItem:{enter(r,{key:n}){Fu(e,n)},leave(){UE(e)},Parameter(r,{report:n,location:i,rawLocation:o}){zu({parameter:r,pathContext:e,report:n,location:i,rawLocation:o})},Operation:Bu(e,new Set)}}},Fu=(e,t)=>{e.current={path:t,templateParams:FE(t),definedParams:new Set}},UE=e=>{e.current=null},zu=({parameter:e,pathContext:t,report:r,location:n,rawLocation:i})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),Vu({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:i}))},Bu=(e,t,r=0)=>{const n=(o,a,c)=>{o({message:`Maximum callback nesting depth (${c}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:a,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=LE)return{enter:()=>{},leave:(o,{report:a,location:c})=>{n(a,c,r)},Parameter:()=>{},Callback:void 0};const i=()=>{let o=null;return{enter(a,{key:c}){o=e.current,Fu(e,c)},leave(){e.current=o},Parameter(a,{report:c,location:p,rawLocation:u}){zu({parameter:a,pathContext:e,report:c,location:p,rawLocation:u})},get Operation(){return Bu(e,t,r+1)}}};return{enter(){t=new Set},leave(o,{report:a,location:c}){!e.current||!t||BE({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:a,location:c})},Parameter(o,{report:a,location:c,rawLocation:p}){zE(o,t),o.in==="path"&&o.name&&e.current&&(t.add(o.name),Vu({paramName:o.name,templateParams:e.current.templateParams,path:e.current.path,report:a,location:c,rawLocation:p}))},Callback:{get PathItem(){return i()}}}},FE=e=>new Set(Array.from(e.matchAll(NE)).map(t=>t[1])),zE=(e,t)=>{K.isPlainObject(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},Vu=({paramName:e,templateParams:t,path:r,report:n,location:i,rawLocation:o})=>{if(!t.has(e)){const a=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,c=o===i?void 0:o;n({message:a,location:i.child(["name"]),from:c,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},BE=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:i,location:o})=>{const a=new Set([...t,...r]);for(const c of e)a.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"})},Hu=e=>{const{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:i,key:o,location:a}){const c=o.toString();if(c.startsWith("/")){const p=c.split("/");p.shift(),t&&p.length>0&&p.pop();for(const u of p)r&&r.includes(u)||!Pu(u)&&Ap.isSingular(u)&&i({message:`path segment \`${u}\` should be plural.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}},Ku=()=>({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"})}}),Wu=()=>{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 Ut(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}const Qu=e=>{const t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:i,key:o})=>{const a=t[o]||t[Ut(o)]||t[Ut(o).toLowerCase()]||[];for(const c of a)(!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"})}}}}},kc=["string","integer","number","boolean","null"],Gu=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:i}){for(const o of Object.keys(e)){const a=i(I.getOwn(e,o)).node;!a||!VE(a)||a.example===void 0&&a.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 VE(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>kc.includes(t)):kc.includes(e.type)}const Yu=e=>{const t=new Map,r=[];let n=!0,i;return{Root:{leave(o,{report:a}){for(const[c,p]of t.entries())if(!p.defined)for(const u of p.from)a({message:`There is no \`${c}\` security scheme defined.`,location:u.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(o.security||n))for(const c of r)a({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:a}){t.set(a.toString(),{defined:!0,from:[]})},SecurityRequirement(o,{location:a}){for(const c of Object.keys(o)){const p=t.get(c),u=a.child([c]);p?p.from.push(u):t.set(c,{from:[u]})}},PathItem:{enter(o,{key:a}){i=a},Operation(o,{location:a,key:c}){const p=e.exceptions?.some(u=>u.path===i&&(!u.methods||u.methods?.some(f=>f.toLowerCase()===c)));!o?.security&&!p&&(n=!1,r.push(a))}}}},Ju=()=>{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)&&I.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"})}}},HE=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:a,location:c}){o.type==="boolean"&&!r.test(o.name)&&a({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 oi({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:a}=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:a.child(t[e].indexOf(p)).key(),reference:i})}function Nt({type:e,value:t,ctx:r,allowedValues:n,reference:i}){const{report:o,location:a}=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:a.child("content").child(p).key(),reference:i})}const KE=({allowedValues:e})=>({Root(t,r){oi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){oi({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}),WE=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 a=t[r]||t[Ut(r)]||t[Ut(r).toLowerCase()]||[];for(const c of a)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"})}}}}},QE=({allowedValues:e})=>({Root(t,r){oi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){oi({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}),GE={struct:bt,"no-invalid-schema-examples":Ru,"no-invalid-parameter-examples":Ou,"info-contact":Ht,"info-license":us,"info-license-strict":Pi,"tag-description":Ri,"tags-alphabetical":Ai,"paths-kebab-case":Ku,"no-enum-type-mismatch":wr,"boolean-parameter-prefixes":HE,"no-path-trailing-slash":Au,"operation-2xx-response":$u,"operation-4xx-response":_u,assertions:xt,"operation-operationId-unique":ku,"operation-parameters-unique":qu,"path-parameters-defined":ii,"operation-tag-defined":Mu,"path-declaration-must-exist":Nu,"operation-operationId-url-safe":Iu,"operation-operationId":Ei,"operation-summary":ju,"operation-description":Tu,"path-not-include-query":Uu,"path-params-defined":ii,"parameter-description":Du,"operation-singular-tag":Cu,"security-defined":Yu,"security-scopes-defined":ls,"no-unresolved-refs":gt,"no-identical-paths":Eu,"no-ambiguous-paths":xu,"path-http-verbs-order":Lu,"no-http-verbs-in-paths":Su,"request-mime-type":KE,"response-mime-type":QE,"path-segment-plural":Hu,"response-contains-header":Qu,"response-contains-property":WE,"scalar-property-missing-example":Gu,"required-string-property-missing-min-length":Wu,"spec-strict-refs":Ju,"spec-ref-siblings":Oi,"no-required-schema-properties-undefined":xr,"no-schema-type-mismatch":Pr,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Sr,"no-duplicated-tag-names":Si},YE={},JE=e=>({Parameter:{leave(t,r){if(!t.schema)return;const n=I.isRef(t.schema)?r.resolve(t.schema).node:t.schema;n&&XE(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 XE(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 ZE=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:a,parentLocations:c},p){o.type==="boolean"&&!r.test(p.Parameter.name)&&a({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 eO(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Xu(e){const t=K.isPlainObject(e)&&ze(e.title)?e.title.trim():"",r=eO(t).replace(new RegExp(`[^${Rl}]`,"g"),"-");return{title:t,name:r}}function rr(e){return e.chain?.[0]??{node:e.node,location:e.location}}const qt="Schema",qo="Parameter",Co="Response",jo="RequestBody",tO={[qt]:"schemas",[qo]:"parameters",[Co]:"responses",[jo]:"requestBodies"},rO=e=>{const t=new Map,r=new Map,n=e.strategy==="title";let i;const o=[];e.schemas!=="off"&&o.push(qt),e.parameters!=="off"&&o.push(qo),e.responses!=="off"&&o.push(Co),e.requestBodies!=="off"&&o.push(jo);const a={ref:{leave(m,{type:y,resolve:h,location:O}){const w=y.name;if(o.includes(w)){const P=h(m);if(!P.location)return;const E=rr(P);if(f(w,E.location,O)){const{title:x,name:v}=Xu(E.node);if(x){p(w,v,E.location,E.location.child("title"));return}r.set(E.location.absolutePointer.toString(),E.location),u(w,E.location);return}u(w,P.location)}}},Root:{enter(m,{location:y}){i=y.source.absoluteRef},leave(m,y){t.forEach((h,O,w)=>{if(h.size>1){const P=oO(O),E=nO(P.typeName),x=E?e[E]:null;for(const[v,$]of h){const g=Array.from(h.keys()).filter(j=>j!==v).map(j=>`- ${j}`).join(`
20
+ `),T={message:`Component '${E}/${P.componentName}' is not unique. It is also defined at:
21
+ ${g}`,location:$,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};x&&(T.forceSeverity=x),y.report(T)}}});for(const h of r.values()){const O={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:h,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&(O.forceSeverity=e.schemas),y.report(O)}}}};return e.schemas!="off"&&(a.NamedSchemas={Schema(m,{location:y,key:h,parentLocations:O}){if(f(qt,y)){p(qt,String(h),O.NamedSchemas.child(h));return}u(qt,y)}}),e.responses!="off"&&(a.NamedResponses={Response(m,{location:y}){u(Co,y)}}),e.parameters!="off"&&(a.NamedParameters={Parameter(m,{location:y}){u(qo,y)}}),e.requestBodies!="off"&&(a.NamedRequestBodies={RequestBody(m,{location:y}){u(jo,y)}}),a;function c(m){const y=m.split("/").slice(-1)[0];return I.isSupportedExtension(y)?y.slice(0,y.lastIndexOf(".")):y}function p(m,y,h,O=h){const w=iO(m,y),P=t.get(w)??new Map,E=h.absolutePointer.toString();P.has(E)||P.set(E,O),t.set(w,P)}function u(m,y){const h=c(y.absolutePointer.toString());p(m,h,y)}function f(m,y,h=y){return n&&m===qt&&(y.source.absoluteRef!==i||h.source.absoluteRef!==i)}};function nO(e){return tO[e]??null}function iO(e,t){return`${e}/${t}`}function oO(e){const[t,r]=e.split("/");return{typeName:t,componentName:r}}const sO=()=>({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"})}}),aO=()=>({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"})}}),cO=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"]),pO=()=>({AllOf(e,t){const r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!lO(e[0],t.resolve))&&Ki(e,"allOf",t),Wi(e,"allOf",t),Qi(e,"allOf",t))},AnyOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const n=K.isPlainObject(r.discriminator);e.length<2&&!n&&Ki(e,"anyOf",t),Wi(e,"anyOf",t),Qi(e,"anyOf",t),n&&Ic(e,"anyOf",t)},OneOf(e,t){const r=t.parent;if(!Array.isArray(e))return;const{discriminator:n}=r,i=K.isPlainObject(n);e.length<2&&!i&&Ki(e,"oneOf",t),Wi(e,"oneOf",t),Qi(e,"oneOf",t),i&&Ic(e,"oneOf",t),ai(r)&&uO(e,t),dO(e,i?n:void 0,t)}});function Ki(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 lO(e,t){return K.isPlainObject(lr(e,t)?.schema.discriminator)}function Wi(e,t,r){for(const[n,i]of e.entries())K.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 Ic(e,t,r){for(const[n,i]of e.entries())I.isRef(i)||K.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 Qi(e,t,r){for(let n=1;n<e.length;n++){const i=e.findIndex(o=>yt(o,e[n]));i<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${i+1}.`,location:r.location.child([n])})}}function uO(e,t){e.some(n=>{const i=lr(n,t.resolve);return i?ai(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 dO(e,t,r){const{resolve:n,report:i,location:o}=r,a=r.specVersion!=="oas3_2",c=e.map(p=>lr(p,n));for(let p=0;p<c.length-1;p++){const u=c[p];if(u)for(let f=p+1;f<c.length;f++){const m=c[f];if(!m||yt(e[p],e[f]))continue;const y=fO(u,m,n,t,a);y&&i({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${qc(e[p],p)} and ${qc(e[f],f)}. ${y}`,location:o.key()})}}}function qc(e,t){return I.isRef(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function fO(e,t,r,n,i){const o=e.schema,a=t.schema;if(si(o)||si(a)||Zu(o,a))return null;if(ai(o)&&ai(a))return"Both schemas accept `null`.";const c=dr(o),p=dr(a);if(c&&p){const f=c.filter(m=>p.some(y=>yt(m,y)));return`Both schemas allow the values ${JSON.stringify(f)}.`}if(n)return i?mO(o,a,n):null;const u=hO(e,t,r);if(u)return u;if(!o.properties&&!a.properties){const f=td(o,a);if(f?.length)return`Both schemas accept ${f.map(m=>`\`${m}\``).join(", ")}.`}return null}function mO(e,t,r){const{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:Ye(I.getOwn(e.properties??{},n))&&Ye(I.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 hO(e,t,r){const n=yO(e,t);if(!n||Cc(e.schema,n.leftProperties,n.rightRequired)||Cc(t.schema,n.rightProperties,n.leftRequired)||gO(n)||n.sharedNames.length===0)return null;const i=bO(n,r);if(!i)return null;const{optionalDistinguishingNames:o,ambiguousNames:a}=i;if(o.length>0){const c=a.length>0?` Other shared properties: ${Gi(a)}.`:"";return`Add ${Gi(o)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${c}`}return a.length>0?`Both schemas define ${Gi(a)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function yO(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=>I.getOwn(n,i))}}function gO({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){const i=[...r].some(a=>!I.getOwn(t,a)&&!n.has(a)),o=[...n].some(a=>!I.getOwn(e,a)&&!r.has(a));return i&&o}function bO({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:i,rightRequired:o,sharedNames:a},c){const p=[],u=[];for(const f of a){const m=i.has(f)&&o.has(f),y=lr(I.getOwn(r,f),c,e),h=lr(I.getOwn(n,f),c,t);if(!(!y||!h)&&!(si(y.schema)||si(h.schema))){if(Zu(y.schema,h.schema)){if(m)return null;p.push(f);continue}u.push(f)}}return{optionalDistinguishingNames:p,ambiguousNames:u}}function Cc(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!I.getOwn(t,n))}function Zu(e,t){const r=dr(e),n=dr(t);return r&&n?!r.some(i=>n.some(o=>yt(i,o))):td(e,t)?.length===0}function lr(e,t,r){if(I.isRef(e)){const{node:n,location:i}=t(e,r);return K.isPlainObject(n)?{schema:n,source:i?.source.absoluteRef}:void 0}return K.isPlainObject(e)?{schema:e,source:r}:void 0}function si(e){return Object.keys(e).some(t=>!cO.has(t)&&!t.startsWith("x-"))}function ed(e){return"nullable"in e&&e.nullable===!0}function ur(e){const t=e.type;if(t===void 0)return;const r=new Set(Array.isArray(t)?t:[t]);return ed(e)&&r.add("null"),r}function td(e,t){const r=ur(e),n=ur(t);if(!r||!n)return;const i=[...r].filter(o=>n.has(o));return i.length===0&&vO(e,t)?["integer"]:i}function vO(e,t){const r=ur(e),n=ur(t);return r?.has("integer")&&n?.has("number")?jc(t):r?.has("number")&&n?.has("integer")?jc(e):!1}function jc(e){const t=dr(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function ai(e){return ed(e)||ur(e)?.has("null")===!0}function dr(e){if(e.enum)return e.enum;const t="const"in e?e.const:void 0;return Ye(t)?[t]:void 0}function Gi(e){return e.map(t=>`\`${t}\``).join(", ")}const wO=e=>{const t=new gi,r=i=>i.schema===void 0,n=i=>(o,a)=>{const{location:c,resolve:p}=a;if(Ye(o.example))u(o.example,c.child("example"));else if(K.isPlainObject(o.examples))for(const f of Object.keys(o.examples))u(o.examples[f],c.child(["examples",f]),!0);function u(f,m,y){if(I.isRef(f)){const O=p(f);if(!O.location)return;m=O.location,f=O.node}let h=f;if(y){const O=yu(f);if(!O)return;h=O.value,m=m.child(O.field)}pr({example:h,schema:o.schema,options:{location:m,ctx:a,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"})}}}},xO=()=>({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"})}}),PO=()=>({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"})}}),SO=()=>({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=Mc(i);o&&n.push(...o)}else{const i=Mc(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 Mc(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 EO=()=>({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"})}}),OO=()=>{const e=new Map,t=new Map,r=new Set;function n(i,o,a=!1){e.set(i.absolutePointer,{used:e.get(i.absolutePointer)?.used||!1,referencesDiscriminator:a,location:i,name:o})}return{ref(i,{type:o,resolve:a,key:c,location:p}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(o.name)){const u=a(i);if(!u.location)return;e.set(u.location.absolutePointer,{used:!0,name:c.toString(),location:p})}},Root:{leave(i,{report:o}){e.forEach(a=>{!a.used&&!a.referencesDiscriminator&&o({message:`Component: "${a.name}" is never used.`,location:a.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((a,c)=>{r.has(c)||o({message:`Security scheme: "${c}" is never used.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(i,{location:o,key:a,resolve:c}){const p=i.allOf?.some(u=>I.isRef(u)&&c(u)?.node?.discriminator);n(o,a.toString(),p)}},NamedParameters:{Parameter(i,{location:o,key:a}){n(o,a.toString())}},NamedResponses:{Response(i,{location:o,key:a}){n(o,a.toString())}},NamedExamples:{Example(i,{location:o,key:a}){n(o,a.toString())}},NamedRequestBodies:{RequestBody(i,{location:o,key:a}){n(o,a.toString())}},NamedHeaders:{Header(i,{location:o,key:a}){n(o,a.toString())}},NamedMediaTypes:{MediaTypesMap(i,{location:o,key:a}){n(o,a.toString())}},NamedSecuritySchemes:{SecurityScheme(i,{rawLocation:o,key:a}){t.set(a.toString(),o)}},SecurityRequirement(i){for(const o of Object.keys(i))r.add(o)}}},RO=()=>({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"})}}}),Yi="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",AO=()=>({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:Yi})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Vt({fieldName:"schema",value:e,ctx:t,reference:Yi}),!e.schema)return;const{schema:r,location:n}=bi(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(const i of["type","title"])Rt(e.schema,i,t)||t.report({message:vi("SchemaProperties",i),location:r.properties?n.child(["properties",i]).key():n.key(),reference:Yi})}}}}),$O=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Nt({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){Nt({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Nt({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}}),_O=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 a=t[r]||t[Ut(r)]||t[Ut(r).toLowerCase()]||[];for(const c of a)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"})}}}}}},TO=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Nt({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){Nt({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Nt({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}}),kO=()=>{const e=`^[${Rl}]+$`;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")}}}},IO=()=>{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,a=(c,p)=>{const u=bi(c,r,p);return!!(!u.schema||o.has(u.schema)||(o.add(u.schema),u.schema.required?.includes(n)||u.schema.allOf?.some(f=>a(f,u.location))||u.schema.oneOf?.every(f=>a(f,u.location))||u.schema.anyOf?.every(f=>a(f,u.location))))};a(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"})}}}},qO=()=>({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"})}}),CO=()=>({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"})}}}),jO=()=>{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(a=>a.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(a=>a.name===o)?.parent}}}}};function Dc(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function Nc(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 Lc(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 MO=()=>{let e={},t={},r=0;return{PathItem:{enter(n,i){e={},t={},r=0,Nc(Dc(n.parameters||[]),i)},Parameter(n,i){Lc(n,i.location,e,i),n.in==="querystring"&&(r+=1)},Operation:{enter(n,i){t={...e};const o=r+Dc(n.parameters||[]);Nc(o,i)},Parameter(n,i){Lc(n,i.location,t,i)}}}}},DO=()=>({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 a of Object.keys(e))a!=="$ref"&&(o&&(a==="summary"||a==="description")||t({message:`Property \`${a}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(a).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"}))}}}),NO={struct:bt,"info-contact":Ht,"info-license":us,"info-license-strict":Pi,"operation-2xx-response":$u,"operation-4xx-response":_u,"operation-4xx-problem-details-rfc7807":AO,assertions:xt,"operation-operationId-unique":ku,"operation-parameters-unique":qu,"operation-tag-defined":Mu,"no-example-value-and-externalValue":aO,"no-mixed-number-range-constraints":xi,"no-enum-type-mismatch":wr,"no-path-trailing-slash":Au,"no-empty-servers":sO,"path-declaration-must-exist":Nu,"operation-operationId-url-safe":Iu,"operation-operationId":Ei,"operation-summary":ju,"tags-alphabetical":Ai,"no-server-example.com":xO,"no-server-trailing-slash":PO,"tag-description":Ri,"operation-description":Tu,"no-unused-components":OO,"path-not-include-query":Uu,"path-parameters-defined":ii,"path-params-defined":ii,"parameter-description":Du,"operation-singular-tag":Cu,"security-defined":Yu,"security-scopes-defined":ls,"no-unresolved-refs":gt,"paths-kebab-case":Ku,"boolean-parameter-prefixes":ZE,"path-http-verbs-order":Lu,"no-illogical-composition-keywords":pO,"no-invalid-media-type-examples":wO,"no-identical-paths":Eu,"no-ambiguous-paths":xu,"no-undefined-server-variable":EO,"no-server-variables-empty-enum":SO,"no-http-verbs-in-paths":Su,"request-mime-type":$O,"response-mime-type":TO,"path-segment-plural":Hu,"no-invalid-schema-examples":Ru,"no-invalid-parameter-examples":Ou,"response-contains-header":Qu,"response-contains-property":_O,"scalar-property-missing-example":Gu,"spec-components-invalid-map-name":kO,"required-string-property-missing-min-length":Wu,"spec-strict-refs":Ju,"component-name-unique":rO,"array-parameter-serialization":JE,"no-required-schema-properties-undefined":xr,"no-schema-type-mismatch":Pr,"no-duplicated-enum-values":vr,"no-unsafe-markdown":Sr,"no-duplicated-tag-names":Si,"nullable-type-sibling":RO,"spec-no-invalid-tag-parents":jO,"spec-no-invalid-encoding-combinations":CO,"spec-discriminator-defaultMapping":IO,"spec-example-values":qO,"spec-querystring-parameters":MO,"spec-ref-siblings":DO},LO={},UO=()=>{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:a}){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:a})}},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())}}}},FO=()=>({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,a)=>{const c=r(o);if(!c.node)return;const p=c.node,u=p.name;u&&(i.has(u)&&t({message:`Parameter names must be unique. Duplicate parameter name '${p.name}' found.`,location:n.child([a,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),i.add(u))})}}}),zO=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let i=!1;e.params.forEach((o,a)=>{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([a,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):i=!0})}}}),BO={struct:bt,"no-unresolved-refs":gt,assertions:xt,"info-license":us,"no-unused-components":UO,"info-contact":Ht,"spec-no-duplicated-method-params":FO,"spec-no-required-params-after-optional":zO,"spec-ref-siblings":Oi},VO={},HO={"info-contact":Ht,struct:bt,"no-unresolved-refs":gt,assertions:xt},KO={},WO={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"},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"}},QO={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"},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"}},GO={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"},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"}},YO={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"},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"}},JO={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"},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"}},XO={recommended:YO,"recommended-strict":GO,minimal:QO,all:WO,spec:JO},Uc={id:"",rules:{oas3:NO,oas2:GE,async2:pE,async3:vE,arazzo1:rE,overlay1:HO,openrpc1:BO,graphql:IE},preprocessors:{oas3:LO,oas2:YE,async2:lE,async3:wE,arazzo1:nE,overlay1:KO,openrpc1:VO},decorators:{oas3:wS,oas2:gS,async2:uS,async3:dS,arazzo1:lS,overlay1:PS,openrpc1:xS},configs:XO},ZO={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function mt(e,t){const r={};r.any={enter:[],leave:[]};for(const a of Object.keys(t))r[a]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(const{ruleId:a,severity:c,message:p,visitor:u}of e)o({ruleId:a,severity:c,message:p},u,null);for(const a of Object.keys(r))r[a].enter.sort((c,p)=>p.depth-c.depth),r[a].leave.sort((c,p)=>c.depth-p.depth);return r;function n(a,c,p,u,f=[]){if(f.includes(c))return;f=[...f,c];const m=new Set;for(const h of Object.values(c.properties)){if(h===p){y(a,f);continue}K.isPlainObject(h)&&h.name!==void 0&&m.add(h)}c.additionalProperties&&typeof c.additionalProperties!="function"&&(c.additionalProperties===p?y(a,f):c.additionalProperties.name!==void 0&&m.add(c.additionalProperties)),c.items&&typeof c.items!="function"&&(c.items===p?y(a,f):c.items.name!==void 0&&m.add(c.items)),c.extensionsPrefix&&m.add(I.SpecExtension);for(const h of Array.from(m.values()))n(a,h,p,u,f);function y(h,O){for(const w of O.slice(1))r[w.name]=r[w.name]||{enter:[],leave:[]},r[w.name].enter.push({...h,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:u}})}}function i(a,c){if(Array.isArray(c)){const p=c.find(u=>a[u])||void 0;return p&&a[p]}return a[c]}function o(a,c,p,u=0){const f=Object.keys(t);if(u===0)f.push("any"),f.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 m of f){const y=c[m]||i(c,ZO[m]),h=r[m];if(!y)continue;let O,w,P;const E=K.isPlainObject(y);if(m==="ref"&&E&&y.skip)throw new Error("ref() visitor does not support skip");typeof y=="function"?O=y:E&&(O=y.enter,w=y.leave,P=y.skip);const x=(O?1:0)+(w?1:0)+(P?1:0),v=E&&Object.keys(y).length>x,$={activatedOn:null,type:t[m],parent:p,isSkippedLevel:!1};if(v&&o(a,y,$,u+1),p&&n(a,p.type,t[m],p),O||E){if(O&&typeof O!="function")throw new Error("DEV: should be function");h.enter.push({...a,visit:O||(()=>{}),skip:P,depth:u,context:$})}if(w){if(typeof w!="function")throw new Error("DEV: should be function");h.leave.push({...a,visit:w,depth:u,context:$})}}}}const _e=(e,t)=>{if(t)for(const r of Object.keys(t))K.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Ie(e,t){if(t)for(const r of Object.keys(t))e.hasOwnProperty(r)&&(K.isPlainObject(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function eR(e){if(e.indexOf("/")>-1){const[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Me(e,t){if(!t)return e;const r={};for(const n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function rd(e){const t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(const r of e){if(K.isPlainObject(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
22
+ ${JSON.stringify(r,null,2)}`);_e(t.rules,r.rules),_e(t.oas2Rules,r.oas2Rules),Ie(t.oas2Rules,r.rules),_e(t.oas3_0Rules,r.oas3_0Rules),Ie(t.oas3_0Rules,r.rules),_e(t.oas3_1Rules,r.oas3_1Rules),Ie(t.oas3_1Rules,r.rules),_e(t.oas3_2Rules,r.oas3_2Rules),Ie(t.oas3_2Rules,r.rules),_e(t.async2Rules,r.async2Rules),Ie(t.async2Rules,r.rules),_e(t.async3Rules,r.async3Rules),Ie(t.async3Rules,r.rules),_e(t.arazzo1Rules,r.arazzo1Rules),Ie(t.arazzo1Rules,r.rules),_e(t.arazzo1_1Rules,r.arazzo1_1Rules),Ie(t.arazzo1_1Rules,r.rules),_e(t.overlay1Rules,r.overlay1Rules),Ie(t.overlay1Rules,r.rules),_e(t.openrpc1Rules,r.openrpc1Rules),Ie(t.openrpc1Rules,r.rules),_e(t.graphqlRules,r.graphqlRules),Ie(t.graphqlRules,r.rules),_e(t.preprocessors,r.preprocessors),_e(t.oas2Preprocessors,r.oas2Preprocessors),Ie(t.oas2Preprocessors,r.preprocessors),_e(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Ie(t.oas3_0Preprocessors,r.preprocessors),_e(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Ie(t.oas3_1Preprocessors,r.preprocessors),_e(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Ie(t.oas3_2Preprocessors,r.preprocessors),_e(t.async2Preprocessors,r.async2Preprocessors),Ie(t.async2Preprocessors,r.preprocessors),_e(t.async3Preprocessors,r.async3Preprocessors),Ie(t.async3Preprocessors,r.preprocessors),_e(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Ie(t.arazzo1Preprocessors,r.preprocessors),_e(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Ie(t.arazzo1_1Preprocessors,r.preprocessors),_e(t.overlay1Preprocessors,r.overlay1Preprocessors),Ie(t.overlay1Preprocessors,r.preprocessors),_e(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Ie(t.openrpc1Preprocessors,r.preprocessors),_e(t.decorators,r.decorators),_e(t.oas2Decorators,r.oas2Decorators),Ie(t.oas2Decorators,r.decorators),_e(t.oas3_0Decorators,r.oas3_0Decorators),Ie(t.oas3_0Decorators,r.decorators),_e(t.oas3_1Decorators,r.oas3_1Decorators),Ie(t.oas3_1Decorators,r.decorators),_e(t.oas3_2Decorators,r.oas3_2Decorators),Ie(t.oas3_2Decorators,r.decorators),_e(t.async2Decorators,r.async2Decorators),Ie(t.async2Decorators,r.decorators),_e(t.async3Decorators,r.async3Decorators),Ie(t.async3Decorators,r.decorators),_e(t.arazzo1Decorators,r.arazzo1Decorators),Ie(t.arazzo1Decorators,r.decorators),_e(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Ie(t.arazzo1_1Decorators,r.decorators),_e(t.overlay1Decorators,r.overlay1Decorators),Ie(t.overlay1Decorators,r.decorators),_e(t.openrpc1Decorators,r.openrpc1Decorators),Ie(t.openrpc1Decorators,r.decorators)}return t}class tR extends Error{}function rR(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Fc(e){return K.isPlainObject(e)&&"id"in e}function nR(e){return typeof e=="function"}function nd({node:e,ctx:t,plugins:r}){if(!e.extends)return e;const n=(e.extends||[]).filter(I.isTruthy).map(i=>{if(!I.isAbsoluteUrl(i)&&!K.path.extname(i))return SR(i,r);const o=t.resolve({$ref:i});return o.location&&o.node!==void 0?o.node:null}).filter(I.isTruthy);return rd([...n.map(i=>nd({node:i,ctx:t,plugins:r})),{...e,extends:void 0}])}function Dn(e,t){if(K.isPlainObject(e)&&Array.isArray(e.plugins)){const{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(i=>Do(i,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}const iR=mt([{severity:"error",ruleId:as,visitor:{ref:{},ConfigGovernance:{leave(e,t){Dn(e,t)}},ConfigApisProperties:{leave(e,t){Dn(e,t)}},[Ke.ScorecardClassicLevel]:{leave(e,t){Dn(e,t)}},ConfigRoot:{leave(e,t){Dn(e,t)}}}}],gr);function Nn(e,t){if(K.isPlainObject(e)&&e.extends){const{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;const i=nd({node:e,ctx:t,plugins:r});Object.assign(e,i),delete e.extends}}const oR=mt([{severity:"error",ruleId:ss,visitor:{ref:{leave(e,t,r){I.replaceRef(e,r,t)}},ConfigGovernance:{leave(e,t){Nn(e,t)}},ConfigApisProperties:{leave(e,t){Nn(e,t)}},[Ke.ScorecardClassicLevel]:{leave(e,t){Nn(e,t)}},ConfigRoot:{leave(e,t){Nn(e,t)}}}}],gr);function zc(e,t){return{prev:e,value:t}}function Bc(e){return e?.prev??null}function sR(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function aR(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 ht(e){const{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:i,ctx:o}=e,a={},c=new Set,p=(P,E)=>`${P.name}::${E.absolutePointer}`,u=new Set,f={},m=n.any.enter,y=n.any.leave,h={},O={};for(const P of Object.keys(n))P==="any"||P==="ref"||(h[P]=m.concat(n[P]?.enter||[]),O[P]=(n[P]?.leave||[]).concat(y));w(t.parsed,r,new I.Location(t.source,"#/"),void 0,"");function w(P,E,x,v,$){const g=(fe,Pe=j.source.absoluteRef)=>{if(!I.isRef(fe))return{location:x,node:fe};const R=I.makeRefId(Pe,fe.$ref),S=i.get(R);if(!S)return{location:void 0,node:void 0};const{resolved:k,node:_,document:b,nodePointer:q,error:F,chain:U}=S;return{location:k?new I.Location(b.source,q):F instanceof I.YamlParseError?new I.Location(F.source,""):void 0,node:_,error:F,chain:U}},T=x;let j=x;const B=I.isRef(P),{node:V,location:G,error:J,chain:oe}=g(P),Q=new Set,X=I.isRefWithSiblings(P)&&c.has(p(E,x));if(I.isRefWithSiblings(P)&&c.add(p(E,x)),B&&!X){const fe=n.ref.enter;for(const{visit:Pe,ruleId:R,severity:S,message:k,context:_}of fe)Q.add(_),Pe(P,{report:q=>xe(R,S,k,q),resolve:g,rawNode:P,rawLocation:T,location:x,type:E,parent:v,key:$,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Te(R)},{node:V,location:G,error:J,chain:oe}),G?.source.absoluteRef&&o.refTypes&&o.refTypes.set(G?.source.absoluteRef,E)}if(V!==void 0&&G&&E.name!=="scalar"){const fe=(U,Y,le,he)=>{let N=I.getOwn(E.properties,U);const z=E.extensionsPrefix!==void 0&&U.startsWith(E.extensionsPrefix);N===void 0&&!z&&(N=E.additionalProperties),typeof N=="function"&&(N=N(Y,U)),z&&!I.isNamedType(N)&&(N=I.SpecExtension),!I.isNamedType(N)&&N?.directResolveAs&&(N=N.directResolveAs,Y={$ref:Y}),N&&N.name===void 0&&N.resolvable!==!1&&(N={name:"scalar",properties:{}}),!(!I.isNamedType(N)||N.name==="scalar"&&!I.isRef(Y))&&w(Y,N,le.child([U]),he,U)};j=G;const Pe=K.isPlainObject(V)||Array.isArray(V)?V:x.absolutePointer,R=a[E.name]?.has?.(Pe);let S=!1;const k=h[E.name]||m.concat(n[E.name]?.enter||[]),_=[],b=`${j.absolutePointer}${j.pointer}`;for(const{context:U,visit:Y,skip:le,ruleId:he,severity:N,message:z}of k){if(u.has(b))break;if(U.isSkippedLevel)U.parent.activatedOn&&!U.parent.activatedOn.value.nextLevelTypeActivated&&!U.seen.has(P)&&(U.seen.add(P),S=!0,_.push(U));else if(U.parent&&U.parent.activatedOn&&U.parent.activatedOn.value.node===f[U.parent.type.name]&&U.activatedOn?.value.withParentNode!==U.parent.activatedOn.value.node&&U.parent.activatedOn.value.nextLevelTypeActivated?.value!==E||!U.parent&&!R){_.push(U);const H={node:V,location:G,nextLevelTypeActivated:null,withParentNode:U.parent?.activatedOn?.value.node,skipped:(U.parent?.activatedOn?.value.skipped||le?.(V,$,{location:x,rawLocation:T,resolve:g,rawNode:P}))??!1};U.activatedOn=zc(U.activatedOn,H);let Z=U.parent;for(;Z;)Z.activatedOn.value.nextLevelTypeActivated=zc(Z.activatedOn.value.nextLevelTypeActivated,E),Z=Z.parent;H.skipped||(S=!0,Q.add(U),me(Y,V,P,U,he,N,z))}}const q=f[E.name];if(f[E.name]=V,S||!R){if(a[E.name]=a[E.name]||new Set,a[E.name].add(Pe),Array.isArray(V)){const U=E.items;if(U!==void 0){const Y=typeof U=="function";for(let le=0;le<V.length;le++){const he=G.child([le]);let N=Y?U(V[le],he.absolutePointer):U,z=V[le];N?.directResolveAs&&(N=N.directResolveAs,z={$ref:z}),I.isNamedType(N)&&w(z,N,he,V,le)}}}else if(K.isPlainObject(V)){const U=Object.keys(E.properties);E.additionalProperties?U.push(...Object.keys(V).filter(Y=>!U.includes(Y))):E.extensionsPrefix&&U.push(...Object.keys(V).filter(Y=>Y.startsWith(E.extensionsPrefix)&&!U.includes(Y)));for(const Y of U){const le=V[Y];le!==void 0&&fe(Y,le,G,V)}}}if(B&&oe?.length){const U=oe[0];c.has(p(E,U.location))||w(U.node,E,U.location,void 0,$)}if(I.isRefWithSiblings(P)&&!X)for(const U of Object.keys(P))U!=="$ref"&&P[U]!==V?.[U]&&fe(U,P[U],x,P);f[E.name]=q;const F=O[E.name]||(n[E.name]?.leave||[]).concat(y);for(const U of _.reverse())if(U.isSkippedLevel)U.seen.delete(V);else if(U.activatedOn=Bc(U.activatedOn),U.parent){let Y=U.parent;for(;Y;)Y.activatedOn.value.nextLevelTypeActivated=Bc(Y.activatedOn.value.nextLevelTypeActivated),Y=Y.parent}for(const{context:U,visit:Y,ruleId:le,severity:he,message:N}of F)!U.isSkippedLevel&&Q.has(U)&&me(Y,V,P,U,le,he,N)}if(j=x,B&&!X){const fe=n.ref.leave;for(const{visit:Pe,ruleId:R,severity:S,context:k,message:_}of fe)Q.has(k)&&Pe(P,{report:q=>xe(R,S,_,q),resolve:g,rawNode:P,rawLocation:T,location:x,type:E,parent:v,key:$,parentLocations:{},specVersion:o.specVersion,config:o.config,getVisitorData:()=>Te(R)},{node:V,location:G,error:J,chain:oe})}function me(fe,Pe,R,S,k,_,b){fe(Pe,{report:F=>xe(k,_,b,F),resolve:g,rawNode:R,location:j,rawLocation:T,type:E,parent:v,key:$,parentLocations:aR(S),specVersion:o.specVersion,config:o.config,ignoreNextVisitorsOnNode:()=>{u.add(`${j.absolutePointer}${j.pointer}`)},getVisitorData:()=>Te(k)},sR(S),S)}function xe(fe,Pe,R,S){const _=(S.location?Array.isArray(S.location)?S.location:[S.location]:[{...j,reportOnKey:!1}]).map(q=>({...j,reportOnKey:!1,...q})),b=S.forceSeverity||Pe;b!=="off"&&o.problems.push({ruleId:S.ruleId||fe,severity:b,...S,message:R?R.replace("{{message}}",S.message):S.message,suggest:S.suggest||[],location:_})}function Te(fe){return o.visitorsData[fe]=o.visitorsData[fe]||{},o.visitorsData[fe]}}}function Mo(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 cR({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:i,componentRenamingConflicts:o="warn",componentNamesStrategy:a="basename"}){let c,p;const u=new Map,f=Mo("Schema",e),m={ref:{leave(x,v,$){if(!$.location||$.node===void 0){jt($,v.report,v.location);return}const g=rr($);if(g.location.source===r.source&&g.location.source===v.location.source&&v.type.name!=="scalar"&&!t){I.parseRef(x.$ref).uri!==null&&x.$ref!==g.location.pointer&&(x.$ref=g.location.pointer);return}if(i&&I.isAbsoluteUrl(x.$ref))return;const T=Mo(v.type.name,e);T?t?(h(T,g,v),I.replaceRef(x,g,v)):(x.$ref=h(T,g,v),y(x,$,v)):I.replaceRef(x,g,v)}},Example:{leave(x,v){if(I.isExternalValue(x)&&x.value===void 0){const $=v.resolve({$ref:x.externalValue});if(!$.location||$.node===void 0){jt($,v.report,v.location);return}if(i&&I.isAbsoluteUrl(x.externalValue))return;x.value=v.resolve({$ref:x.externalValue}).node,delete x.externalValue}}},Root:{enter(x,v){p=v.location,e==="oas3"?c=x.components=x.components||{}:e==="oas2"?c=x:e==="async2"?c=x.components=x.components||{}:e==="async3"?c=x.components=x.components||{}:e==="arazzo1"?c=x.components=x.components||{}:e==="openrpc1"&&(c=x.components=x.components||{})}}};e==="oas3"&&(m.Discriminator={leave(x,v){if(typeof x.defaultMapping!="string"||!I.isMappingRef(x.defaultMapping))return;const $=v.resolve({$ref:x.defaultMapping});if(!$.location||$.node===void 0){jt($,v.report,v.location.child("defaultMapping"));return}x.defaultMapping=h(f,rr($),v)},DiscriminatorMapping:{leave(x,v){for(const $ of Object.keys(x)){const g=x[$];if(!I.isMappingRef(g))continue;const T=v.resolve({$ref:g});if(!T.location||T.node===void 0){jt(T,v.report,v.location.child($));return}x[$]=h(f,rr(T),v)}}}});function y(x,v,$){const g={resolved:!0,isRemote:!1,node:v.node,chain:v.chain,document:r,nodePointer:x.$ref};n.set(I.makeRefId($.location.source.absoluteRef,x.$ref),g),n.set(I.makeRefId(r.source.absoluteRef,x.$ref),g)}function h(x,v,$){c[x]=c[x]||{};const g=E(v,x,$);return c[x][g]=v.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${x}/${g}`:`#/${x}/${g}`}function O(x,v,$){if(I.isRef(x)){const g=$.resolve(x,p.absolutePointer);if((g.location&&rr(g).location)?.absolutePointer===v.location.absolutePointer)return!0}return yt(x,v.node)}function w(x,v,$){const{title:g,name:T}=Xu(x.node),j=x.location.child("title");return g===""?{key:T,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:x.location,forceSeverity:"error"}}:v[T]&&!O(v[T],x,$)?{key:T,problem:{message:`Title "${g}" maps to component name \`${T}\`, already used by another schema. Rename one of the titles.`,location:j,from:u.get(T),forceSeverity:o}}:{key:T}}function P(x,v,$){const g=I.pointerBaseName(x.location.pointer)||I.refBaseName(x.location.source.absoluteRef);let T=g;for(let j=2;v[T]&&!O(v[T],x,$);j++)T=`${g}-${j}`;return{name:T,prevName:g}}function E(x,v,$){const g=c[v];if(a==="title"&&v===f){const{key:B,problem:V}=w(x,g,$);if(!V)return u.set(B,x.location.child("title")),B;const{name:G}=P(x,g,$);return g[G]||($.report(V),u.set(G,x.location)),G}const{name:T,prevName:j}=P(x,g,$);return!g[T]&&j!==T&&$.report({message:`Two schemas are referenced with the same name but different content. Renamed ${j} to ${T}.`,location:$.location,forceSeverity:o}),T}return m}async function ds(e){const{document:t,config:r,types:n,externalRefResolver:i,dereference:o=!1,removeUnusedComponents:a=!1,keepUrlRefs:c=!1,componentRenamingConflicts:p,componentNamesStrategy:u="basename"}=e,f=Kt(t.parsed),m=ps(f),y=r.getRulesForSpecVersion(m),h=I.normalizeTypes(r.extendTypes(n,f),r),O=ar(y,r,"preprocessors",f),w=ar(y,r,"decorators",f),P={problems:[],specVersion:f,config:r,refTypes:new Map,visitorsData:{}};let E=await I.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i});O.length>0&&(ht({document:t,rootType:h.Root,normalizedVisitors:mt(O,h),resolvedRefMap:E,ctx:P}),E=await I.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i}));const x=mt([{severity:"error",ruleId:"bundler",visitor:cR({version:m,dereference:o,rootDocument:t,resolvedRefMap:E,keepUrlRefs:c,componentRenamingConflicts:p,componentNamesStrategy:u})},...w.filter(v=>v.ruleId!=="remove-unused-components")],h);if(ht({document:t,rootType:h.Root,normalizedVisitors:x,resolvedRefMap:E,ctx:P}),a||r.getDecoratorSettings("remove-unused-components",f).severity!=="off"){const v=await I.resolveDocument({rootDocument:t,rootType:h.Root,externalRefResolver:i}),$=mt([{severity:"error",ruleId:"remove-unused-components",visitor:m==="oas2"?su():au()}],h);ht({document:t,rootType:h.Root,normalizedVisitors:$,resolvedRefMap:v,ctx:P})}return{bundle:t,problems:P.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:i.getFiles(),rootType:h.Root,refTypes:P.refTypes,visitorsData:P.visitorsData}}function pR(e,t,r){const n={plugins:[],rootConfigDir:r},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[as]:n}};return ht({document:e,rootType:gr.ConfigRoot,normalizedVisitors:iR,resolvedRefMap:t,ctx:i}),n.plugins}function lR(e,t,r,n=!1){const i={plugins:r,skipPluginEval:n},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ss]:i}};return ht({document:e,rootType:gr.ConfigRoot,normalizedVisitors:oR,resolvedRefMap:t,ctx:o}),e.parsed??{}}async function uR(e){const{ref:t,doc:r,externalRefResolver:n=new I.BaseResolver(e.config.resolve),base:i=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
23
+ `);const o=r===void 0?await n.resolveDocument(i,t,!0):r;if(o instanceof Error)throw o;return e.collectSpecData?.(o),ds({document:o,...e,externalRefResolver:n,types:hr(Kt(o.parsed))})}async function dR(e){const{source:t,absoluteRef:r,externalRefResolver:n=new I.BaseResolver(e.config.resolve)}=e,i=I.makeDocumentFromString(t,r||"/");return ds({document:i,...e,externalRefResolver:n,types:hr(Kt(i.parsed))})}function Ji(e){return!ze(e)}const fr=new Map,Hn="v";let fs=0,Vc=!1;function fR(){K.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(Hn);if(!i)return n;const o=new URL(n.url);return o.pathname.includes("/node_modules/")||o.searchParams.has(Hn)?n:(o.searchParams.set(Hn,i),{...n,url:o.href})}})}function mR(){if(!Vc){if(Vc=!0,typeof K.module.registerHooks!="function"){Ee.warn(`Redocly plugin reload requires Node.js >= 22.15 (current: ${process.version}). ESM plugins will not pick up edits until the process restarts.
24
+ `);return}fR()}}function hR(e){return fr.has(e)}function yR(e){return fr.get(e)}function gR(e,t){fr.set(e,t)}function bR(){return fs}function vR(e){const t=K.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 a of o.children)/[/\\]node_modules[/\\]/.test(a.id)||n(a.id);delete t.cache[i]}};n(e)}const wR=()=>{const e=[...fr.keys()];for(const t of e)vR(t);fr.clear(),fs+=1,mR()};async function xR(e){const t=(void 0)(e);return t.searchParams.set(Hn,String(fs)),import(t.href)}async function id({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:i}){const o=e===void 0?Hl:e.parsed;if(n!==void 0&&K.isPlainObject(o)&&(o.extends=n),K.isPlainObject(o)&&(o?.extends?.some(Ji)||o?.scorecardClassic?.levels?.some(h=>h?.extends?.some(Ji))||o?.scorecard?.levels?.some(h=>h?.extends?.some(Ji))))throw new Error("Configuration format not detected in extends: values must be strings.");const a=e??{source:new I.Source(t??"",JSON.stringify(o)),parsed:o},c=await I.resolveDocument({rootDocument:a,rootType:gr.ConfigRoot,externalRefResolver:r??new I.BaseResolver(Ql(o?.resolve))});let p=[],u,f="";I.isBrowser?u=[...(o?.plugins||[]).filter(O=>!ze(O)),Uc]:(f=K.pathBrowserifyExports.dirname(t??""),p=pR(a,c,f),u=[...await od(p.map(O=>Hc(O)?O.absolutePath:O),f,i),Uc]);const m=lR(a,rR(c),u,i);m.apis&&!i&&(m.apis=Object.fromEntries(Object.entries(m.apis).map(([h,O])=>{const w=rd([m,O]);return[h,{...O,...w}]})));const y=p.length?p.map(h=>Hc(h)&&h.isModule?h.rawPath:h.absolutePath&&K.pathBrowserifyExports.relative(f,h.absolutePath)).filter(Ye):void 0;return{resolvedConfig:{...m,plugins:y},resolvedRefMap:c,plugins:u}}function PR(e){for(const t of Wl)(void 0)(K.pathBrowserifyExports.resolve(e,t))}function Hc(e){return"isModule"in e}const Do=(e,t,r)=>{if(!ze(e))return e;(void 0)(K.pathBrowserifyExports.resolve(K.pathBrowserifyExports.dirname(t),e));try{return{absolutePath:K.module.createRequire((typeof document>"u"?require("url").pathToFileURL(__filename).href:at&&at.tagName.toUpperCase()==="SCRIPT"&&at.src||new URL("replay-lint-VrViwed0.js",document.baseURI).href)??__dirname).resolve(e,{paths:[r,(typeof document>"u"?require("url").pathToFileURL(__filename).href:at&&at.tagName.toUpperCase()==="SCRIPT"&&at.src||new URL("replay-lint-VrViwed0.js",document.baseURI).href)?K.pathBrowserifyExports.dirname((void 0)(typeof document>"u"?require("url").pathToFileURL(__filename).href:at&&at.tagName.toUpperCase()==="SCRIPT"&&at.src||new URL("replay-lint-VrViwed0.js",document.baseURI).href)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function od(e,t,r=!1){if(!e)return[];const n=async p=>{if(!ze(p))return p;try{const u=K.pathBrowserifyExports.isAbsolute(p)?p:Do(p,K.pathBrowserifyExports.join(t,_o),t).absolutePath;if(!hR(u)){const f=await xR(u),m=f.default||f,y={contentDir:t},h=Array.isArray(m)?m:[m];for(const P of h)P?.id&&Fc(P)&&Ee.info(`Deprecated plugin format detected: ${P.id}
25
+ `);const O=Fc(m)?m:nR(m)?await m(y):await m?.default?.(y),w=Array.isArray(O)?O:[O];O&&gR(u,w.map(P=>({...P,path:p,absolutePath:u})))}return yR(u)}catch(u){throw new Error(`Failed to load plugin "${p}": ${u.message}
26
26
 
27
- ${u.stack}`)}},i=new Map,o=wA(t);o&&e.push(o);const a=new Set;if(r){const p=[];for(const u of e){if(!ze(u)){p.push(u);continue}const f=K.pathBrowserifyExports.isAbsolute(u)?u:Do(u,K.pathBrowserifyExports.join(t,_o),t).absolutePath;a.has(f)||(a.add(f),p.push({absolutePath:f}))}return p}return(await Promise.all(e.map(async p=>{if(ze(p)){if(I.isAbsoluteUrl(p))throw new Error(Ae.red("We don't support remote plugins yet."));if(a.has(p))return;a.add(p)}const u=await n(p);if(!u)return;const f=Array.isArray(u)?u:[u];return(await Promise.all(f.map(async m=>{if(!m)return;const y=m.id;if(typeof y!="string")throw new Error(Ae.red(`Plugin must define \`id\` property in ${Ae.blue(p.toString())}.`));const h=m.absolutePath??p.toString(),O=i.get(y);if(O){if(h!==O)throw new Error(Ae.red(`Plugin "id" must be unique. Plugin ${Ae.blue(h)} uses id "${Ae.blue(y)}" already seen in ${Ae.blue(h)}`));return}i.set(y,h);const w={id:y,...m.configs?{configs:m.configs}:{},...m.typeExtension?{typeExtension:m.typeExtension}:{}};if(m.rules){if(!m.rules.oas3&&!m.rules.oas2&&!m.rules.async2&&!m.rules.async3&&!m.rules.arazzo1&&!m.rules.overlay1&&!m.rules.openrpc1&&!m.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${p}.`);w.rules={},m.rules.oas3&&(w.rules.oas3=Me(m.rules.oas3,y)),m.rules.oas2&&(w.rules.oas2=Me(m.rules.oas2,y)),m.rules.async2&&(w.rules.async2=Me(m.rules.async2,y)),m.rules.async3&&(w.rules.async3=Me(m.rules.async3,y)),m.rules.arazzo1&&(w.rules.arazzo1=Me(m.rules.arazzo1,y)),m.rules.overlay1&&(w.rules.overlay1=Me(m.rules.overlay1,y)),m.rules.openrpc1&&(w.rules.openrpc1=Me(m.rules.openrpc1,y)),m.rules.graphql&&(w.rules.graphql=Me(m.rules.graphql,y))}if(m.preprocessors){if(!m.preprocessors.oas3&&!m.preprocessors.oas2&&!m.preprocessors.async2&&!m.preprocessors.async3&&!m.preprocessors.arazzo1&&!m.preprocessors.overlay1&&!m.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${p}.`);w.preprocessors={},m.preprocessors.oas3&&(w.preprocessors.oas3=Me(m.preprocessors.oas3,y)),m.preprocessors.oas2&&(w.preprocessors.oas2=Me(m.preprocessors.oas2,y)),m.preprocessors.async2&&(w.preprocessors.async2=Me(m.preprocessors.async2,y)),m.preprocessors.async3&&(w.preprocessors.async3=Me(m.preprocessors.async3,y)),m.preprocessors.arazzo1&&(w.preprocessors.arazzo1=Me(m.preprocessors.arazzo1,y)),m.preprocessors.overlay1&&(w.preprocessors.overlay1=Me(m.preprocessors.overlay1,y)),m.preprocessors.openrpc1&&(w.preprocessors.openrpc1=Me(m.preprocessors.openrpc1,y))}if(m.decorators){if(!m.decorators.oas3&&!m.decorators.oas2&&!m.decorators.async2&&!m.decorators.async3&&!m.decorators.arazzo1&&!m.decorators.overlay1&&!m.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${p}.`);w.decorators={},m.decorators.oas3&&(w.decorators.oas3=Me(m.decorators.oas3,y)),m.decorators.oas2&&(w.decorators.oas2=Me(m.decorators.oas2,y)),m.decorators.async2&&(w.decorators.async2=Me(m.decorators.async2,y)),m.decorators.async3&&(w.decorators.async3=Me(m.decorators.async3,y)),m.decorators.arazzo1&&(w.decorators.arazzo1=Me(m.decorators.arazzo1,y)),m.decorators.overlay1&&(w.decorators.overlay1=Me(m.decorators.overlay1,y)),m.decorators.openrpc1&&(w.decorators.openrpc1=Me(m.decorators.openrpc1,y))}return m.assertions&&(w.assertions=m.assertions),{...m,...w}}))).filter(Ye)}))).filter(Ye).flat()}function xA(e,t){const{pluginId:r,configName:n}=XO(e),i=t.find(a=>a.id===r);if(!i)throw new Error(`Invalid config ${Ae.red(e)}: plugin ${r} is not included.`);const o=i.configs?.[n];if(!o)throw new Error(r?`Invalid config ${Ae.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${Ae.red(e)}: there is no such built-in config.`);return o}function SA(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const i=e[n],o=I.isAbsoluteUrl(n)?n:I.resolvePath(t,n);r[o]=Object.create(null);for(const a of Object.keys(i))r[o][a]=new Set(i[a])}return r}async function sd(e,t){const r=e?I.getDir(e):I.isBrowser?"":process.cwd(),n=r?I.resolvePath(r,ei):ei,i=await t.resolveDocument(null,n,!0);return i instanceof Error||!i.parsed?{}:SA(i.parsed||{},r)}async function PA(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n,skipPluginEval:i}=e,o=n??new I.BaseResolver,a=t?await o.resolveDocument(null,t,!0):void 0;if(a instanceof Error)throw a;const{resolvedConfig:c,resolvedRefMap:p,plugins:u}=await id({rawConfigDocument:a?ad(a):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:i}),f=await sd(t,o);return new br(c,{configPath:t,document:a,resolvedRefMap:p,plugins:u,ignore:f})}function EA(e){}async function OA(e,{configPath:t,externalRefResolver:r,ignore:n}={}){const i=typeof e=="string"?e:"",o=I.makeDocumentFromString(i,t??"");typeof e!="string"&&e&&(o.parsed=e);const{resolvedConfig:a,resolvedRefMap:c,plugins:p}=await id({rawConfigDocument:ad(o),configPath:t,externalRefResolver:r});return new br(a,{configPath:t,document:o,resolvedRefMap:c,plugins:p,ignore:n})}function ad(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 Xi={},et={},Zi={},Kc;function $i(){return Kc||(Kc=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,u){var f=u?u.endPosition:p.endPosition+1,m={key:p,value:u,startPosition:p.startPosition,endPosition:f,kind:t.MAPPING,parent:null,errors:[]};return m}e.newMapping=r;function n(p,u,f,m){return{errors:[],referencesAnchor:p,value:m,startPosition:u,endPosition:f,kind:t.ANCHOR_REF,parent:null}}e.newAnchorRef=n;function i(p){p===void 0&&(p="");var u={errors:[],startPosition:-1,endPosition:-1,value:""+p,kind:t.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+p};return typeof p!="string"&&(u.valueObject=p),u}e.newScalar=i;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:t.SEQ,parent:null}}e.newItems=o;function a(){return o()}e.newSeq=a;function c(p){return{errors:[],startPosition:-1,endPosition:-1,mappings:p||[],kind:t.MAP,parent:null}}e.newMap=c})(Zi)),Zi}var dt={},Wc;function Wt(){if(Wc)return dt;Wc=1,Object.defineProperty(dt,"__esModule",{value:!0});function e(a){return typeof a>"u"||a===null}dt.isNothing=e;function t(a){return typeof a=="object"&&a!==null}dt.isObject=t;function r(a){return Array.isArray(a)?a:e(a)?[]:[a]}dt.toArray=r;function n(a,c){var p,u,f,m;if(c)for(m=Object.keys(c),p=0,u=m.length;p<u;p+=1)f=m[p],a[f]=c[f];return a}dt.extend=n;function i(a,c){var p="",u;for(u=0;u<c;u+=1)p+=a;return p}dt.repeat=i;function o(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return dt.isNegativeZero=o,dt}var eo,Qc;function Er(){if(Qc)return eo;Qc=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 eo=e,eo}var to,Gc;function AA(){if(Gc)return to;Gc=1;var e=Wt(),t=(function(){function r(n,i,o,a,c){this.name=n,this.buffer=i,this.position=o,this.line=a,this.column=c}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,a,c,p,u;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",a=this.position;a>0&&`\0\r
27
+ ${u.stack}`)}},i=new Map,o=PR(t);o&&e.push(o);const a=new Set;if(r){const p=[];for(const u of e){if(!ze(u)){p.push(u);continue}const f=K.pathBrowserifyExports.isAbsolute(u)?u:Do(u,K.pathBrowserifyExports.join(t,_o),t).absolutePath;a.has(f)||(a.add(f),p.push({absolutePath:f}))}return p}return(await Promise.all(e.map(async p=>{if(ze(p)){if(I.isAbsoluteUrl(p))throw new Error(Re.red("We don't support remote plugins yet."));if(a.has(p))return;a.add(p)}const u=await n(p);if(!u)return;const f=Array.isArray(u)?u:[u];return(await Promise.all(f.map(async m=>{if(!m)return;const y=m.id;if(typeof y!="string")throw new Error(Re.red(`Plugin must define \`id\` property in ${Re.blue(p.toString())}.`));const h=m.absolutePath??p.toString(),O=i.get(y);if(O){if(h!==O)throw new Error(Re.red(`Plugin "id" must be unique. Plugin ${Re.blue(h)} uses id "${Re.blue(y)}" already seen in ${Re.blue(h)}`));return}i.set(y,h);const w={id:y,...m.configs?{configs:m.configs}:{},...m.typeExtension?{typeExtension:m.typeExtension}:{}};if(m.rules){if(!m.rules.oas3&&!m.rules.oas2&&!m.rules.async2&&!m.rules.async3&&!m.rules.arazzo1&&!m.rules.overlay1&&!m.rules.openrpc1&&!m.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${p}.`);w.rules={},m.rules.oas3&&(w.rules.oas3=Me(m.rules.oas3,y)),m.rules.oas2&&(w.rules.oas2=Me(m.rules.oas2,y)),m.rules.async2&&(w.rules.async2=Me(m.rules.async2,y)),m.rules.async3&&(w.rules.async3=Me(m.rules.async3,y)),m.rules.arazzo1&&(w.rules.arazzo1=Me(m.rules.arazzo1,y)),m.rules.overlay1&&(w.rules.overlay1=Me(m.rules.overlay1,y)),m.rules.openrpc1&&(w.rules.openrpc1=Me(m.rules.openrpc1,y)),m.rules.graphql&&(w.rules.graphql=Me(m.rules.graphql,y))}if(m.preprocessors){if(!m.preprocessors.oas3&&!m.preprocessors.oas2&&!m.preprocessors.async2&&!m.preprocessors.async3&&!m.preprocessors.arazzo1&&!m.preprocessors.overlay1&&!m.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${p}.`);w.preprocessors={},m.preprocessors.oas3&&(w.preprocessors.oas3=Me(m.preprocessors.oas3,y)),m.preprocessors.oas2&&(w.preprocessors.oas2=Me(m.preprocessors.oas2,y)),m.preprocessors.async2&&(w.preprocessors.async2=Me(m.preprocessors.async2,y)),m.preprocessors.async3&&(w.preprocessors.async3=Me(m.preprocessors.async3,y)),m.preprocessors.arazzo1&&(w.preprocessors.arazzo1=Me(m.preprocessors.arazzo1,y)),m.preprocessors.overlay1&&(w.preprocessors.overlay1=Me(m.preprocessors.overlay1,y)),m.preprocessors.openrpc1&&(w.preprocessors.openrpc1=Me(m.preprocessors.openrpc1,y))}if(m.decorators){if(!m.decorators.oas3&&!m.decorators.oas2&&!m.decorators.async2&&!m.decorators.async3&&!m.decorators.arazzo1&&!m.decorators.overlay1&&!m.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${p}.`);w.decorators={},m.decorators.oas3&&(w.decorators.oas3=Me(m.decorators.oas3,y)),m.decorators.oas2&&(w.decorators.oas2=Me(m.decorators.oas2,y)),m.decorators.async2&&(w.decorators.async2=Me(m.decorators.async2,y)),m.decorators.async3&&(w.decorators.async3=Me(m.decorators.async3,y)),m.decorators.arazzo1&&(w.decorators.arazzo1=Me(m.decorators.arazzo1,y)),m.decorators.overlay1&&(w.decorators.overlay1=Me(m.decorators.overlay1,y)),m.decorators.openrpc1&&(w.decorators.openrpc1=Me(m.decorators.openrpc1,y))}return m.assertions&&(w.assertions=m.assertions),{...m,...w}}))).filter(Ye)}))).filter(Ye).flat()}function SR(e,t){const{pluginId:r,configName:n}=eR(e),i=t.find(a=>a.id===r);if(!i)throw new Error(`Invalid config ${Re.red(e)}: plugin ${r} is not included.`);const o=i.configs?.[n];if(!o)throw new Error(r?`Invalid config ${Re.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${Re.red(e)}: there is no such built-in config.`);return o}function ER(e,t){const r=Object.create(null);for(const n of Object.keys(e)){const i=e[n],o=I.isAbsoluteUrl(n)?n:I.resolvePath(t,n);r[o]=Object.create(null);for(const a of Object.keys(i))r[o][a]=new Set(i[a])}return r}async function sd(e,t){const r=e?I.getDir(e):I.isBrowser?"":process.cwd(),n=r?I.resolvePath(r,ei):ei,i=await t.resolveDocument(null,n,!0);return i instanceof Error||!i.parsed?{}:ER(i.parsed||{},r)}async function OR(e={}){const{configPath:t=void 0,customExtends:r,externalRefResolver:n,skipPluginEval:i}=e,o=n??new I.BaseResolver,a=t?await o.resolveDocument(null,t,!0):void 0;if(a instanceof Error)throw a;const{resolvedConfig:c,resolvedRefMap:p,plugins:u}=await id({rawConfigDocument:a?ad(a):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:i}),f=await sd(t,o);return new br(c,{configPath:t,document:a,resolvedRefMap:p,plugins:u,ignore:f})}function RR(e){}async function AR(e,{configPath:t,externalRefResolver:r,ignore:n}={}){const i=typeof e=="string"?e:"",o=I.makeDocumentFromString(i,t??"");typeof e!="string"&&e&&(o.parsed=e);const{resolvedConfig:a,resolvedRefMap:c,plugins:p}=await id({rawConfigDocument:ad(o),configPath:t,externalRefResolver:r});return new br(a,{configPath:t,document:o,resolvedRefMap:c,plugins:p,ignore:n})}function ad(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 Xi={},et={},Zi={},Kc;function $i(){return Kc||(Kc=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,u){var f=u?u.endPosition:p.endPosition+1,m={key:p,value:u,startPosition:p.startPosition,endPosition:f,kind:t.MAPPING,parent:null,errors:[]};return m}e.newMapping=r;function n(p,u,f,m){return{errors:[],referencesAnchor:p,value:m,startPosition:u,endPosition:f,kind:t.ANCHOR_REF,parent:null}}e.newAnchorRef=n;function i(p){p===void 0&&(p="");var u={errors:[],startPosition:-1,endPosition:-1,value:""+p,kind:t.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+p};return typeof p!="string"&&(u.valueObject=p),u}e.newScalar=i;function o(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:t.SEQ,parent:null}}e.newItems=o;function a(){return o()}e.newSeq=a;function c(p){return{errors:[],startPosition:-1,endPosition:-1,mappings:p||[],kind:t.MAP,parent:null}}e.newMap=c})(Zi)),Zi}var dt={},Wc;function Wt(){if(Wc)return dt;Wc=1,Object.defineProperty(dt,"__esModule",{value:!0});function e(a){return typeof a>"u"||a===null}dt.isNothing=e;function t(a){return typeof a=="object"&&a!==null}dt.isObject=t;function r(a){return Array.isArray(a)?a:e(a)?[]:[a]}dt.toArray=r;function n(a,c){var p,u,f,m;if(c)for(m=Object.keys(c),p=0,u=m.length;p<u;p+=1)f=m[p],a[f]=c[f];return a}dt.extend=n;function i(a,c){var p="",u;for(u=0;u<c;u+=1)p+=a;return p}dt.repeat=i;function o(a){return a===0&&Number.NEGATIVE_INFINITY===1/a}return dt.isNegativeZero=o,dt}var eo,Qc;function Er(){if(Qc)return eo;Qc=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 eo=e,eo}var to,Gc;function $R(){if(Gc)return to;Gc=1;var e=Wt(),t=(function(){function r(n,i,o,a,c){this.name=n,this.buffer=i,this.position=o,this.line=a,this.column=c}return r.prototype.getSnippet=function(n,i){n===void 0&&(n=0),i===void 0&&(i=75);var o,a,c,p,u;if(!this.buffer)return null;for(n=n||4,i=i||75,o="",a=this.position;a>0&&`\0\r
28
28
  …\u2028\u2029`.indexOf(this.buffer.charAt(a-1))===-1;)if(a-=1,this.position-a>i/2-1){o=" ... ",a+=5;break}for(c="",p=this.position;p<this.buffer.length&&`\0\r
29
29
  …\u2028\u2029`.indexOf(this.buffer.charAt(p))===-1;)if(p+=1,p-this.position>i/2-1){c=" ... ",p-=5;break}return u=this.buffer.slice(a,p),e.repeat(" ",n)+o+u+c+`
30
30
  `+e.repeat(" ",n+this.position-a+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+=`:
31
- `+i)),o},r})();return to=t,to}var Ln={},Un={},Yc;function Ve(){if(Yc)return Un;Yc=1,Object.defineProperty(Un,"__esModule",{value:!0});var e=Er(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(o){var a={};return o!==null&&Object.keys(o).forEach(function(c){o[c].forEach(function(p){a[String(p)]=c})}),a}var i=(function(){function o(a,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 "'+a+'" YAML type.')}),this.tag=a,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 "'+a+'" YAML type.')}return o})();return Un.Type=i,Un}var Jc;function Or(){if(Jc)return Ln;Jc=1,Object.defineProperty(Ln,"__esModule",{value:!0});var e=Wt(),t=Er(),r=Ve();function n(a,c,p){var u=[];return a.include.forEach(function(f){p=n(f,c,p)}),a[c].forEach(function(f){p.forEach(function(m,y){m.tag===f.tag&&u.push(y)}),p.push(f)}),p.filter(function(f,m){return u.indexOf(m)===-1})}function i(){var a={},c,p;function u(f){a[f.tag]=f}for(c=0,p=arguments.length;c<p;c+=1)arguments[c].forEach(u);return a}var o=(function(){function a(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 a.DEFAULT=null,a.create=function(){var p,u;switch(arguments.length){case 1:p=a.DEFAULT,u=arguments[0];break;case 2:p=arguments[0],u=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(p=e.toArray(p),u=e.toArray(u),!p.every(function(f){return f instanceof a}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!u.every(function(f){return f instanceof r.Type}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new a({include:p,explicit:u})},a})();return Ln.Schema=o,Ln}var ro,Xc;function RA(){if(Xc)return ro;Xc=1;var e=Ve();return ro=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),ro}var no,Zc;function $A(){if(Zc)return no;Zc=1;var e=Ve();return no=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),no}var io,ep;function _A(){if(ep)return io;ep=1;var e=Ve();return io=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),io}var oo,tp;function TA(){if(tp)return oo;tp=1;var e=Or();return oo=new e.Schema({explicit:[RA(),$A(),_A()]}),oo}var so,rp;function kA(){if(rp)return so;rp=1;var e=Ve();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 so=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"}),so}var ao,np;function IA(){if(np)return ao;np=1;var e=Ve();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 ao=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"}),ao}var co,ip;function qA(){if(ip)return co;ip=1;var e=Wt(),t=Ve();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 u=p.length,f=0,m=!1,y;if(!u)return!1;if(y=p[f],(y==="-"||y==="+")&&(y=p[++f]),y==="0"){if(f+1===u)return!0;if(y=p[++f],y==="b"){for(f++;f<u;f++)if(y=p[f],y!=="_"){if(y!=="0"&&y!=="1")return!1;m=!0}return m}if(y==="x"){for(f++;f<u;f++)if(y=p[f],y!=="_"){if(!r(p.charCodeAt(f)))return!1;m=!0}return m}for(;f<u;f++)if(y=p[f],y!=="_"){if(!n(p.charCodeAt(f)))return!1;m=!0}return m}for(;f<u;f++)if(y=p[f],y!=="_"){if(y===":")break;if(!i(p.charCodeAt(f)))return!1;m=!0}return m?y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(p.slice(f)):!1}function a(p){var u=p,f=1,m,y,h=[];return u.indexOf("_")!==-1&&(u=u.replace(/_/g,"")),m=u[0],(m==="-"||m==="+")&&(m==="-"&&(f=-1),u=u.slice(1),m=u[0]),u==="0"?0:m==="0"?u[1]==="b"?f*parseInt(u.slice(2),2):u[1]==="x"?f*parseInt(u,16):f*parseInt(u,8):u.indexOf(":")!==-1?(u.split(":").forEach(function(O){h.unshift(parseInt(O,10))}),u=0,y=1,h.forEach(function(O){u+=O*y,y*=60}),f*u):f*parseInt(u,10)}function c(p){return Object.prototype.toString.call(p)==="[object Number]"&&p%1===0&&!e.isNegativeZero(p)}return co=new t.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:a,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"]}}),co}var po,op;function CA(){if(op)return po;op=1;var e=Wt(),t=Ve(),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,u,f,m;return p=c.replace(/_/g,"").toLowerCase(),u=p[0]==="-"?-1:1,m=[],0<="+-".indexOf(p[0])&&(p=p.slice(1)),p===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:0<=p.indexOf(":")?(p.split(":").forEach(function(y){m.unshift(parseFloat(y,10))}),p=0,f=1,m.forEach(function(y){p+=y*f,f*=60}),u*p):u*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 a(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return po=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:a,represent:o,defaultStyle:"lowercase"}),po}var lo,sp;function jA(){if(sp)return lo;sp=1;var e=Or();return lo=new e.Schema({include:[TA()],implicit:[kA(),IA(),qA(),CA()]}),lo}var uo,ap;function MA(){if(ap)return uo;ap=1;var e=Or();return uo=new e.Schema({include:[jA()]}),uo}var fo,cp;function DA(){if(cp)return fo;cp=1;var e=Ve(),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 a;return a=t.exec(o),a!==null}function n(o){var a,c,p,u,f,m,y,h=0,O=null,w,S,E;if(a=t.exec(o),a===null)throw new Error("Date resolve error");if(c=+a[1],p=+a[2]-1,u=+a[3],!a[4])return new Date(Date.UTC(c,p,u));if(f=+a[4],m=+a[5],y=+a[6],a[7]){for(h=a[7].slice(0,3);h.length<3;)h=h+"0";h=+h}return a[9]&&(w=+a[10],S=+(a[11]||0),O=(w*60+S)*6e4,a[9]==="-"&&(O=-O)),E=new Date(Date.UTC(c,p,u,f,m,y,h)),O&&E.setTime(E.getTime()-O),E}function i(o){return o.toISOString()}return fo=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:i}),fo}var mo,pp;function NA(){if(pp)return mo;pp=1;var e=Ve();function t(r){return r==="<<"||r===null}return mo=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),mo}var ho={},er={},lp;function LA(){if(lp)return er;lp=1,er.byteLength=c,er.toByteArray=u,er.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 a(h){var O=h.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=h.indexOf("=");w===-1&&(w=O);var S=w===O?0:4-w%4;return[w,S]}function c(h){var O=a(h),w=O[0],S=O[1];return(w+S)*3/4-S}function p(h,O,w){return(O+w)*3/4-w}function u(h){var O,w=a(h),S=w[0],E=w[1],x=new r(p(h,S,E)),v=0,$=E>0?S-4:S,g;for(g=0;g<$;g+=4)O=t[h.charCodeAt(g)]<<18|t[h.charCodeAt(g+1)]<<12|t[h.charCodeAt(g+2)]<<6|t[h.charCodeAt(g+3)],x[v++]=O>>16&255,x[v++]=O>>8&255,x[v++]=O&255;return E===2&&(O=t[h.charCodeAt(g)]<<2|t[h.charCodeAt(g+1)]>>4,x[v++]=O&255),E===1&&(O=t[h.charCodeAt(g)]<<10|t[h.charCodeAt(g+1)]<<4|t[h.charCodeAt(g+2)]>>2,x[v++]=O>>8&255,x[v++]=O&255),x}function f(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function m(h,O,w){for(var S,E=[],x=O;x<w;x+=3)S=(h[x]<<16&16711680)+(h[x+1]<<8&65280)+(h[x+2]&255),E.push(f(S));return E.join("")}function y(h){for(var O,w=h.length,S=w%3,E=[],x=16383,v=0,$=w-S;v<$;v+=x)E.push(m(h,v,v+x>$?$:v+x));return S===1?(O=h[w-1],E.push(e[O>>2]+e[O<<4&63]+"==")):S===2&&(O=(h[w-2]<<8)+h[w-1],E.push(e[O>>10]+e[O>>4&63]+e[O<<2&63]+"=")),E.join("")}return er}var Fn={};var up;function UA(){return up||(up=1,Fn.read=function(e,t,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,u=p>>1,f=-7,m=r?i-1:0,y=r?-1:1,h=e[t+m];for(m+=y,o=h&(1<<-f)-1,h>>=-f,f+=c;f>0;o=o*256+e[t+m],m+=y,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=a*256+e[t+m],m+=y,f-=8);if(o===0)o=1-u;else{if(o===p)return a?NaN:(h?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-u}return(h?-1:1)*a*Math.pow(2,o-n)},Fn.write=function(e,t,r,n,i,o){var a,c,p,u=o*8-i-1,f=(1<<u)-1,m=f>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,O=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+m>=1?t+=y/p:t+=y*Math.pow(2,1-m),t*p>=2&&(a++,p/=2),a+m>=f?(c=0,a=f):a+m>=1?(c=(t*p-1)*Math.pow(2,i),a=a+m):(c=t*Math.pow(2,m-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=c&255,h+=O,c/=256,i-=8);for(a=a<<i|c,u+=i;u>0;e[r+h]=a&255,h+=O,a/=256,u-=8);e[r+h-O]|=w*128}),Fn}var dp;function FA(){return dp||(dp=1,(function(e){const t=LA(),r=UA(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=x,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 s=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(s,l),s.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 a(s){if(s>i)throw new RangeError('The value "'+s+'" is invalid for option "size"');const l=new Uint8Array(s);return Object.setPrototypeOf(l,c.prototype),l}function c(s,l,d){if(typeof s=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(s)}return p(s,l,d)}c.poolSize=8192;function p(s,l,d){if(typeof s=="string")return y(s,l);if(ArrayBuffer.isView(s))return O(s);if(s==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s);if(ce(s,ArrayBuffer)||s&&ce(s.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ce(s,SharedArrayBuffer)||s&&ce(s.buffer,SharedArrayBuffer)))return w(s,l,d);if(typeof s=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const R=s.valueOf&&s.valueOf();if(R!=null&&R!==s)return c.from(R,l,d);const C=S(s);if(C)return C;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof s[Symbol.toPrimitive]=="function")return c.from(s[Symbol.toPrimitive]("string"),l,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s)}c.from=function(s,l,d){return p(s,l,d)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function u(s){if(typeof s!="number")throw new TypeError('"size" argument must be of type number');if(s<0)throw new RangeError('The value "'+s+'" is invalid for option "size"')}function f(s,l,d){return u(s),s<=0?a(s):l!==void 0?typeof d=="string"?a(s).fill(l,d):a(s).fill(l):a(s)}c.alloc=function(s,l,d){return f(s,l,d)};function m(s){return u(s),a(s<0?0:E(s)|0)}c.allocUnsafe=function(s){return m(s)},c.allocUnsafeSlow=function(s){return m(s)};function y(s,l){if((typeof l!="string"||l==="")&&(l="utf8"),!c.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const d=v(s,l)|0;let R=a(d);const C=R.write(s,l);return C!==d&&(R=R.slice(0,C)),R}function h(s){const l=s.length<0?0:E(s.length)|0,d=a(l);for(let R=0;R<l;R+=1)d[R]=s[R]&255;return d}function O(s){if(ce(s,Uint8Array)){const l=new Uint8Array(s);return w(l.buffer,l.byteOffset,l.byteLength)}return h(s)}function w(s,l,d){if(l<0||s.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(s.byteLength<l+(d||0))throw new RangeError('"length" is outside of buffer bounds');let R;return l===void 0&&d===void 0?R=new Uint8Array(s):d===void 0?R=new Uint8Array(s,l):R=new Uint8Array(s,l,d),Object.setPrototypeOf(R,c.prototype),R}function S(s){if(c.isBuffer(s)){const l=E(s.length)|0,d=a(l);return d.length===0||s.copy(d,0,0,l),d}if(s.length!==void 0)return typeof s.length!="number"||pe(s.length)?a(0):h(s);if(s.type==="Buffer"&&Array.isArray(s.data))return h(s.data)}function E(s){if(s>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return s|0}function x(s){return+s!=s&&(s=0),c.alloc(+s)}c.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==c.prototype},c.compare=function(l,d){if(ce(l,Uint8Array)&&(l=c.from(l,l.offset,l.byteLength)),ce(d,Uint8Array)&&(d=c.from(d,d.offset,d.byteLength)),!c.isBuffer(l)||!c.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===d)return 0;let R=l.length,C=d.length;for(let M=0,L=Math.min(R,C);M<L;++M)if(l[M]!==d[M]){R=l[M],C=d[M];break}return R<C?-1:C<R?1:0},c.isEncoding=function(l){switch(String(l).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(l,d){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return c.alloc(0);let R;if(d===void 0)for(d=0,R=0;R<l.length;++R)d+=l[R].length;const C=c.allocUnsafe(d);let M=0;for(R=0;R<l.length;++R){let L=l[R];if(ce(L,Uint8Array))M+L.length>C.length?(c.isBuffer(L)||(L=c.from(L)),L.copy(C,M)):Uint8Array.prototype.set.call(C,L,M);else if(c.isBuffer(L))L.copy(C,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=L.length}return C};function v(s,l){if(c.isBuffer(s))return s.length;if(ArrayBuffer.isView(s)||ce(s,ArrayBuffer))return s.byteLength;if(typeof s!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof s);const d=s.length,R=arguments.length>2&&arguments[2]===!0;if(!R&&d===0)return 0;let C=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return D(s).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return te(s).length;default:if(C)return R?-1:D(s).length;l=(""+l).toLowerCase(),C=!0}}c.byteLength=v;function $(s,l,d){let R=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,l>>>=0,d<=l))return"";for(s||(s="utf8");;)switch(s){case"hex":return Se(this,l,d);case"utf8":case"utf-8":return X(this,l,d);case"ascii":return Te(this,l,d);case"latin1":case"binary":return fe(this,l,d);case"base64":return Q(this,l,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,l,d);default:if(R)throw new TypeError("Unknown encoding: "+s);s=(s+"").toLowerCase(),R=!0}}c.prototype._isBuffer=!0;function g(s,l,d){const R=s[l];s[l]=s[d],s[d]=R}c.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;d<l;d+=2)g(this,d,d+1);return this},c.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let d=0;d<l;d+=4)g(this,d,d+3),g(this,d+1,d+2);return this},c.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let d=0;d<l;d+=8)g(this,d,d+7),g(this,d+1,d+6),g(this,d+2,d+5),g(this,d+3,d+4);return this},c.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?X(this,0,l):$.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(l){if(!c.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:c.compare(this,l)===0},c.prototype.inspect=function(){let l="";const d=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(l+=" ... "),"<Buffer "+l+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(l,d,R,C,M){if(ce(l,Uint8Array)&&(l=c.from(l,l.offset,l.byteLength)),!c.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(d===void 0&&(d=0),R===void 0&&(R=l?l.length:0),C===void 0&&(C=0),M===void 0&&(M=this.length),d<0||R>l.length||C<0||M>this.length)throw new RangeError("out of range index");if(C>=M&&d>=R)return 0;if(C>=M)return-1;if(d>=R)return 1;if(d>>>=0,R>>>=0,C>>>=0,M>>>=0,this===l)return 0;let L=M-C,ee=R-d;const ie=Math.min(L,ee),ge=this.slice(C,M),se=l.slice(d,R);for(let de=0;de<ie;++de)if(ge[de]!==se[de]){L=ge[de],ee=se[de];break}return L<ee?-1:ee<L?1:0};function T(s,l,d,R,C){if(s.length===0)return-1;if(typeof d=="string"?(R=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,pe(d)&&(d=C?0:s.length-1),d<0&&(d=s.length+d),d>=s.length){if(C)return-1;d=s.length-1}else if(d<0)if(C)d=0;else return-1;if(typeof l=="string"&&(l=c.from(l,R)),c.isBuffer(l))return l.length===0?-1:j(s,l,d,R,C);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(s,l,d):Uint8Array.prototype.lastIndexOf.call(s,l,d):j(s,[l],d,R,C);throw new TypeError("val must be string, number or Buffer")}function j(s,l,d,R,C){let M=1,L=s.length,ee=l.length;if(R!==void 0&&(R=String(R).toLowerCase(),R==="ucs2"||R==="ucs-2"||R==="utf16le"||R==="utf-16le")){if(s.length<2||l.length<2)return-1;M=2,L/=2,ee/=2,d/=2}function ie(se,de){return M===1?se[de]:se.readUInt16BE(de*M)}let ge;if(C){let se=-1;for(ge=d;ge<L;ge++)if(ie(s,ge)===ie(l,se===-1?0:ge-se)){if(se===-1&&(se=ge),ge-se+1===ee)return se*M}else se!==-1&&(ge-=ge-se),se=-1}else for(d+ee>L&&(d=L-ee),ge=d;ge>=0;ge--){let se=!0;for(let de=0;de<ee;de++)if(ie(s,ge+de)!==ie(l,de)){se=!1;break}if(se)return ge}return-1}c.prototype.includes=function(l,d,R){return this.indexOf(l,d,R)!==-1},c.prototype.indexOf=function(l,d,R){return T(this,l,d,R,!0)},c.prototype.lastIndexOf=function(l,d,R){return T(this,l,d,R,!1)};function B(s,l,d,R){d=Number(d)||0;const C=s.length-d;R?(R=Number(R),R>C&&(R=C)):R=C;const M=l.length;R>M/2&&(R=M/2);let L;for(L=0;L<R;++L){const ee=parseInt(l.substr(L*2,2),16);if(pe(ee))return L;s[d+L]=ee}return L}function V(s,l,d,R){return re(D(l,s.length-d),s,d,R)}function G(s,l,d,R){return re(W(l),s,d,R)}function J(s,l,d,R){return re(te(l),s,d,R)}function oe(s,l,d,R){return re(ne(l,s.length-d),s,d,R)}c.prototype.write=function(l,d,R,C){if(d===void 0)C="utf8",R=this.length,d=0;else if(R===void 0&&typeof d=="string")C=d,R=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(R)?(R=R>>>0,C===void 0&&(C="utf8")):(C=R,R=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const M=this.length-d;if((R===void 0||R>M)&&(R=M),l.length>0&&(R<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let L=!1;for(;;)switch(C){case"hex":return B(this,l,d,R);case"utf8":case"utf-8":return V(this,l,d,R);case"ascii":case"latin1":case"binary":return G(this,l,d,R);case"base64":return J(this,l,d,R);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,l,d,R);default:if(L)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),L=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(s,l,d){return l===0&&d===s.length?t.fromByteArray(s):t.fromByteArray(s.slice(l,d))}function X(s,l,d){d=Math.min(s.length,d);const R=[];let C=l;for(;C<d;){const M=s[C];let L=null,ee=M>239?4:M>223?3:M>191?2:1;if(C+ee<=d){let ie,ge,se,de;switch(ee){case 1:M<128&&(L=M);break;case 2:ie=s[C+1],(ie&192)===128&&(de=(M&31)<<6|ie&63,de>127&&(L=de));break;case 3:ie=s[C+1],ge=s[C+2],(ie&192)===128&&(ge&192)===128&&(de=(M&15)<<12|(ie&63)<<6|ge&63,de>2047&&(de<55296||de>57343)&&(L=de));break;case 4:ie=s[C+1],ge=s[C+2],se=s[C+3],(ie&192)===128&&(ge&192)===128&&(se&192)===128&&(de=(M&15)<<18|(ie&63)<<12|(ge&63)<<6|se&63,de>65535&&de<1114112&&(L=de))}}L===null?(L=65533,ee=1):L>65535&&(L-=65536,R.push(L>>>10&1023|55296),L=56320|L&1023),R.push(L),C+=ee}return xe(R)}const me=4096;function xe(s){const l=s.length;if(l<=me)return String.fromCharCode.apply(String,s);let d="",R=0;for(;R<l;)d+=String.fromCharCode.apply(String,s.slice(R,R+=me));return d}function Te(s,l,d){let R="";d=Math.min(s.length,d);for(let C=l;C<d;++C)R+=String.fromCharCode(s[C]&127);return R}function fe(s,l,d){let R="";d=Math.min(s.length,d);for(let C=l;C<d;++C)R+=String.fromCharCode(s[C]);return R}function Se(s,l,d){const R=s.length;(!l||l<0)&&(l=0),(!d||d<0||d>R)&&(d=R);let C="";for(let M=l;M<d;++M)C+=ue[s[M]];return C}function A(s,l,d){const R=s.slice(l,d);let C="";for(let M=0;M<R.length-1;M+=2)C+=String.fromCharCode(R[M]+R[M+1]*256);return C}c.prototype.slice=function(l,d){const R=this.length;l=~~l,d=d===void 0?R:~~d,l<0?(l+=R,l<0&&(l=0)):l>R&&(l=R),d<0?(d+=R,d<0&&(d=0)):d>R&&(d=R),d<l&&(d=l);const C=this.subarray(l,d);return Object.setPrototypeOf(C,c.prototype),C};function P(s,l,d){if(s%1!==0||s<0)throw new RangeError("offset is not uint");if(s+l>d)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(l,d,R){l=l>>>0,d=d>>>0,R||P(l,d,this.length);let C=this[l],M=1,L=0;for(;++L<d&&(M*=256);)C+=this[l+L]*M;return C},c.prototype.readUintBE=c.prototype.readUIntBE=function(l,d,R){l=l>>>0,d=d>>>0,R||P(l,d,this.length);let C=this[l+--d],M=1;for(;d>0&&(M*=256);)C+=this[l+--d]*M;return C},c.prototype.readUint8=c.prototype.readUInt8=function(l,d){return l=l>>>0,d||P(l,1,this.length),this[l]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(l,d){return l=l>>>0,d||P(l,2,this.length),this[l]|this[l+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(l,d){return l=l>>>0,d||P(l,2,this.length),this[l]<<8|this[l+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(l,d){return l=l>>>0,d||P(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(l,d){return l=l>>>0,d||P(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},c.prototype.readBigUInt64LE=be(function(l){l=l>>>0,H(l,"offset");const d=this[l],R=this[l+7];(d===void 0||R===void 0)&&Z(l,this.length-8);const C=d+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,M=this[++l]+this[++l]*2**8+this[++l]*2**16+R*2**24;return BigInt(C)+(BigInt(M)<<BigInt(32))}),c.prototype.readBigUInt64BE=be(function(l){l=l>>>0,H(l,"offset");const d=this[l],R=this[l+7];(d===void 0||R===void 0)&&Z(l,this.length-8);const C=d*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],M=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+R;return(BigInt(C)<<BigInt(32))+BigInt(M)}),c.prototype.readIntLE=function(l,d,R){l=l>>>0,d=d>>>0,R||P(l,d,this.length);let C=this[l],M=1,L=0;for(;++L<d&&(M*=256);)C+=this[l+L]*M;return M*=128,C>=M&&(C-=Math.pow(2,8*d)),C},c.prototype.readIntBE=function(l,d,R){l=l>>>0,d=d>>>0,R||P(l,d,this.length);let C=d,M=1,L=this[l+--C];for(;C>0&&(M*=256);)L+=this[l+--C]*M;return M*=128,L>=M&&(L-=Math.pow(2,8*d)),L},c.prototype.readInt8=function(l,d){return l=l>>>0,d||P(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},c.prototype.readInt16LE=function(l,d){l=l>>>0,d||P(l,2,this.length);const R=this[l]|this[l+1]<<8;return R&32768?R|4294901760:R},c.prototype.readInt16BE=function(l,d){l=l>>>0,d||P(l,2,this.length);const R=this[l+1]|this[l]<<8;return R&32768?R|4294901760:R},c.prototype.readInt32LE=function(l,d){return l=l>>>0,d||P(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},c.prototype.readInt32BE=function(l,d){return l=l>>>0,d||P(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},c.prototype.readBigInt64LE=be(function(l){l=l>>>0,H(l,"offset");const d=this[l],R=this[l+7];(d===void 0||R===void 0)&&Z(l,this.length-8);const C=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(R<<24);return(BigInt(C)<<BigInt(32))+BigInt(d+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),c.prototype.readBigInt64BE=be(function(l){l=l>>>0,H(l,"offset");const d=this[l],R=this[l+7];(d===void 0||R===void 0)&&Z(l,this.length-8);const C=(d<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(C)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+R)}),c.prototype.readFloatLE=function(l,d){return l=l>>>0,d||P(l,4,this.length),r.read(this,l,!0,23,4)},c.prototype.readFloatBE=function(l,d){return l=l>>>0,d||P(l,4,this.length),r.read(this,l,!1,23,4)},c.prototype.readDoubleLE=function(l,d){return l=l>>>0,d||P(l,8,this.length),r.read(this,l,!0,52,8)},c.prototype.readDoubleBE=function(l,d){return l=l>>>0,d||P(l,8,this.length),r.read(this,l,!1,52,8)};function k(s,l,d,R,C,M){if(!c.isBuffer(s))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>C||l<M)throw new RangeError('"value" argument is out of bounds');if(d+R>s.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(l,d,R,C){if(l=+l,d=d>>>0,R=R>>>0,!C){const ee=Math.pow(2,8*R)-1;k(this,l,d,R,ee,0)}let M=1,L=0;for(this[d]=l&255;++L<R&&(M*=256);)this[d+L]=l/M&255;return d+R},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(l,d,R,C){if(l=+l,d=d>>>0,R=R>>>0,!C){const ee=Math.pow(2,8*R)-1;k(this,l,d,R,ee,0)}let M=R-1,L=1;for(this[d+M]=l&255;--M>=0&&(L*=256);)this[d+M]=l/L&255;return d+R},c.prototype.writeUint8=c.prototype.writeUInt8=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,1,255,0),this[d]=l&255,d+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,2,65535,0),this[d]=l&255,this[d+1]=l>>>8,d+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,2,65535,0),this[d]=l>>>8,this[d+1]=l&255,d+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,4,4294967295,0),this[d+3]=l>>>24,this[d+2]=l>>>16,this[d+1]=l>>>8,this[d]=l&255,d+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,4,4294967295,0),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4};function _(s,l,d,R,C){z(l,R,C,s,d,7);let M=Number(l&BigInt(4294967295));s[d++]=M,M=M>>8,s[d++]=M,M=M>>8,s[d++]=M,M=M>>8,s[d++]=M;let L=Number(l>>BigInt(32)&BigInt(4294967295));return s[d++]=L,L=L>>8,s[d++]=L,L=L>>8,s[d++]=L,L=L>>8,s[d++]=L,d}function b(s,l,d,R,C){z(l,R,C,s,d,7);let M=Number(l&BigInt(4294967295));s[d+7]=M,M=M>>8,s[d+6]=M,M=M>>8,s[d+5]=M,M=M>>8,s[d+4]=M;let L=Number(l>>BigInt(32)&BigInt(4294967295));return s[d+3]=L,L=L>>8,s[d+2]=L,L=L>>8,s[d+1]=L,L=L>>8,s[d]=L,d+8}c.prototype.writeBigUInt64LE=be(function(l,d=0){return _(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=be(function(l,d=0){return b(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(l,d,R,C){if(l=+l,d=d>>>0,!C){const ie=Math.pow(2,8*R-1);k(this,l,d,R,ie-1,-ie)}let M=0,L=1,ee=0;for(this[d]=l&255;++M<R&&(L*=256);)l<0&&ee===0&&this[d+M-1]!==0&&(ee=1),this[d+M]=(l/L>>0)-ee&255;return d+R},c.prototype.writeIntBE=function(l,d,R,C){if(l=+l,d=d>>>0,!C){const ie=Math.pow(2,8*R-1);k(this,l,d,R,ie-1,-ie)}let M=R-1,L=1,ee=0;for(this[d+M]=l&255;--M>=0&&(L*=256);)l<0&&ee===0&&this[d+M+1]!==0&&(ee=1),this[d+M]=(l/L>>0)-ee&255;return d+R},c.prototype.writeInt8=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,1,127,-128),l<0&&(l=255+l+1),this[d]=l&255,d+1},c.prototype.writeInt16LE=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,2,32767,-32768),this[d]=l&255,this[d+1]=l>>>8,d+2},c.prototype.writeInt16BE=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,2,32767,-32768),this[d]=l>>>8,this[d+1]=l&255,d+2},c.prototype.writeInt32LE=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,4,2147483647,-2147483648),this[d]=l&255,this[d+1]=l>>>8,this[d+2]=l>>>16,this[d+3]=l>>>24,d+4},c.prototype.writeInt32BE=function(l,d,R){return l=+l,d=d>>>0,R||k(this,l,d,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4},c.prototype.writeBigInt64LE=be(function(l,d=0){return _(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=be(function(l,d=0){return b(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function q(s,l,d,R,C,M){if(d+R>s.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function F(s,l,d,R,C){return l=+l,d=d>>>0,C||q(s,l,d,4),r.write(s,l,d,R,23,4),d+4}c.prototype.writeFloatLE=function(l,d,R){return F(this,l,d,!0,R)},c.prototype.writeFloatBE=function(l,d,R){return F(this,l,d,!1,R)};function U(s,l,d,R,C){return l=+l,d=d>>>0,C||q(s,l,d,8),r.write(s,l,d,R,52,8),d+8}c.prototype.writeDoubleLE=function(l,d,R){return U(this,l,d,!0,R)},c.prototype.writeDoubleBE=function(l,d,R){return U(this,l,d,!1,R)},c.prototype.copy=function(l,d,R,C){if(!c.isBuffer(l))throw new TypeError("argument should be a Buffer");if(R||(R=0),!C&&C!==0&&(C=this.length),d>=l.length&&(d=l.length),d||(d=0),C>0&&C<R&&(C=R),C===R||l.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(R<0||R>=this.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),l.length-d<C-R&&(C=l.length-d+R);const M=C-R;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,R,C):Uint8Array.prototype.set.call(l,this.subarray(R,C),d),M},c.prototype.fill=function(l,d,R,C){if(typeof l=="string"){if(typeof d=="string"?(C=d,d=0,R=this.length):typeof R=="string"&&(C=R,R=this.length),C!==void 0&&typeof C!="string")throw new TypeError("encoding must be a string");if(typeof C=="string"&&!c.isEncoding(C))throw new TypeError("Unknown encoding: "+C);if(l.length===1){const L=l.charCodeAt(0);(C==="utf8"&&L<128||C==="latin1")&&(l=L)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(d<0||this.length<d||this.length<R)throw new RangeError("Out of range index");if(R<=d)return this;d=d>>>0,R=R===void 0?this.length:R>>>0,l||(l=0);let M;if(typeof l=="number")for(M=d;M<R;++M)this[M]=l;else{const L=c.isBuffer(l)?l:c.from(l,C),ee=L.length;if(ee===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(M=0;M<R-d;++M)this[M+d]=L[M%ee]}return this};const Y={};function le(s,l,d){Y[s]=class extends d{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${s}]`,this.stack,delete this.name}get code(){return s}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${s}]: ${this.message}`}}}le("ERR_BUFFER_OUT_OF_BOUNDS",function(s){return s?`${s} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),le("ERR_INVALID_ARG_TYPE",function(s,l){return`The "${s}" argument must be of type number. Received type ${typeof l}`},TypeError),le("ERR_OUT_OF_RANGE",function(s,l,d){let R=`The value of "${s}" is out of range.`,C=d;return Number.isInteger(d)&&Math.abs(d)>2**32?C=he(String(d)):typeof d=="bigint"&&(C=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(C=he(C)),C+="n"),R+=` It must be ${l}. Received ${C}`,R},RangeError);function he(s){let l="",d=s.length;const R=s[0]==="-"?1:0;for(;d>=R+4;d-=3)l=`_${s.slice(d-3,d)}${l}`;return`${s.slice(0,d)}${l}`}function N(s,l,d){H(l,"offset"),(s[l]===void 0||s[l+d]===void 0)&&Z(l,s.length-(d+1))}function z(s,l,d,R,C,M){if(s>d||s<l){const L=typeof l=="bigint"?"n":"";let ee;throw l===0||l===BigInt(0)?ee=`>= 0${L} and < 2${L} ** ${(M+1)*8}${L}`:ee=`>= -(2${L} ** ${(M+1)*8-1}${L}) and < 2 ** ${(M+1)*8-1}${L}`,new Y.ERR_OUT_OF_RANGE("value",ee,s)}N(R,C,M)}function H(s,l){if(typeof s!="number")throw new Y.ERR_INVALID_ARG_TYPE(l,"number",s)}function Z(s,l,d){throw Math.floor(s)!==s?(H(s,d),new Y.ERR_OUT_OF_RANGE("offset","an integer",s)):l<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,s)}const ae=/[^+/0-9A-Za-z-_]/g;function ye(s){if(s=s.split("=")[0],s=s.trim().replace(ae,""),s.length<2)return"";for(;s.length%4!==0;)s=s+"=";return s}function D(s,l){l=l||1/0;let d;const R=s.length;let C=null;const M=[];for(let L=0;L<R;++L){if(d=s.charCodeAt(L),d>55295&&d<57344){if(!C){if(d>56319){(l-=3)>-1&&M.push(239,191,189);continue}else if(L+1===R){(l-=3)>-1&&M.push(239,191,189);continue}C=d;continue}if(d<56320){(l-=3)>-1&&M.push(239,191,189),C=d;continue}d=(C-55296<<10|d-56320)+65536}else C&&(l-=3)>-1&&M.push(239,191,189);if(C=null,d<128){if((l-=1)<0)break;M.push(d)}else if(d<2048){if((l-=2)<0)break;M.push(d>>6|192,d&63|128)}else if(d<65536){if((l-=3)<0)break;M.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((l-=4)<0)break;M.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return M}function W(s){const l=[];for(let d=0;d<s.length;++d)l.push(s.charCodeAt(d)&255);return l}function ne(s,l){let d,R,C;const M=[];for(let L=0;L<s.length&&!((l-=2)<0);++L)d=s.charCodeAt(L),R=d>>8,C=d%256,M.push(C),M.push(R);return M}function te(s){return t.toByteArray(ye(s))}function re(s,l,d,R){let C;for(C=0;C<R&&!(C+d>=l.length||C>=s.length);++C)l[C+d]=s[C];return C}function ce(s,l){return s instanceof l||s!=null&&s.constructor!=null&&s.constructor.name!=null&&s.constructor.name===l.name}function pe(s){return s!==s}const ue=(function(){const s="0123456789abcdef",l=new Array(256);for(let d=0;d<16;++d){const R=d*16;for(let C=0;C<16;++C)l[R+C]=s[d]+s[C]}return l})();function be(s){return typeof BigInt>"u"?je:s}function je(){throw new Error("BigInt not supported")}})(ho)),ho}var yo,fp;function zA(){if(fp)return yo;fp=1;var e=FA().Buffer,t=Ve(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
32
- \r`;function n(c){if(c===null)return!1;var p,u,f=0,m=c.length,y=r;for(u=0;u<m;u++)if(p=y.indexOf(c.charAt(u)),!(p>64)){if(p<0)return!1;f+=6}return f%8===0}function i(c){var p,u,f=c.replace(/[\r\n=]/g,""),m=f.length,y=r,h=0,O=[];for(p=0;p<m;p++)p%4===0&&p&&(O.push(h>>16&255),O.push(h>>8&255),O.push(h&255)),h=h<<6|y.indexOf(f.charAt(p));return u=m%4*6,u===0?(O.push(h>>16&255),O.push(h>>8&255),O.push(h&255)):u===18?(O.push(h>>10&255),O.push(h>>2&255)):u===12&&O.push(h>>4&255),e?new e(O):O}function o(c){var p="",u=0,f,m,y=c.length,h=r;for(f=0;f<y;f++)f%3===0&&f&&(p+=h[u>>18&63],p+=h[u>>12&63],p+=h[u>>6&63],p+=h[u&63]),u=(u<<8)+c[f];return m=y%3,m===0?(p+=h[u>>18&63],p+=h[u>>12&63],p+=h[u>>6&63],p+=h[u&63]):m===2?(p+=h[u>>10&63],p+=h[u>>4&63],p+=h[u<<2&63],p+=h[64]):m===1&&(p+=h[u>>2&63],p+=h[u<<4&63],p+=h[64],p+=h[64]),p}function a(c){return e&&e.isBuffer(c)}return yo=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:i,predicate:a,represent:o}),yo}var go,mp;function BA(){if(mp)return go;mp=1;var e=Ve(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(o){if(o===null)return!0;var a=[],c,p,u,f,m,y=o;for(c=0,p=y.length;c<p;c+=1){if(u=y[c],m=!1,r.call(u)!=="[object Object]")return!1;for(f in u)if(t.call(u,f))if(!m)m=!0;else return!1;if(!m)return!1;if(a.indexOf(f)===-1)a.push(f);else return!1}return!0}function i(o){return o!==null?o:[]}return go=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i}),go}var bo,hp;function VA(){if(hp)return bo;hp=1;var e=Ve(),t=$i(),r=Object.prototype.toString;function n(o){if(o===null)return!0;if(o.kind!=t.Kind.SEQ)return!1;var a,c,p,u=o.items;for(a=0,c=u.length;a<c;a+=1)if(p=u[a],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 a,c,p,u=o.items;for(p=t.newItems(),p.parent=o.parent,p.startPosition=o.startPosition,p.endPosition=o.endPosition,a=0,c=u.length;a<c;a+=1){var f=u[a],m=f.mappings[0],y=t.newItems();y.parent=p,y.startPosition=m.key.startPosition,y.endPosition=m.value.startPosition,m.key.parent=y,m.value.parent=y,y.items=[m.key,m.value],p.items.push(y)}return p}return bo=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:i}),bo}var vo,yp;function HA(){if(yp)return vo;yp=1;var e=Ve(),t=$i();function r(i){return i===null?!0:i.kind==t.Kind.MAP}function n(i){return i!==null?i:{}}return vo=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),vo}var wo,gp;function ms(){if(gp)return wo;gp=1;var e=Or(),t=new e.Schema({include:[MA()],implicit:[DA(),NA()],explicit:[zA(),BA(),VA(),HA()]});return wo=t,wo}var xo,bp;function KA(){if(bp)return xo;bp=1;var e=Ve();function t(){return!0}function r(){}function n(){return""}function i(o){return typeof o>"u"}return xo=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),xo}var So,vp;function WA(){if(vp)return So;vp=1;var e=Ve();function t(o){if(o===null||o.length===0)return!1;var a=o,c=/\/([gim]*)$/.exec(o),p="";if(a[0]==="/"){if(c&&(p=c[1]),p.length>3||a[a.length-p.length-1]!=="/")return!1;a=a.slice(1,a.length-p.length-1)}try{var u=new RegExp(a,p);return!0}catch{return!1}}function r(o){var a=o,c=/\/([gim]*)$/.exec(o),p="";return a[0]==="/"&&(c&&(p=c[1]),a=a.slice(1,a.length-p.length-1)),new RegExp(a,p)}function n(o){var a="/"+o.source+"/";return o.global&&(a+="g"),o.multiline&&(a+="m"),o.ignoreCase&&(a+="i"),a}function i(o){return Object.prototype.toString.call(o)==="[object RegExp]"}return So=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),So}var Po,wp;function cd(){if(wp)return Po;wp=1;var e=Or(),t=new e.Schema({include:[ms()],explicit:[KA(),WA()]});return e.Schema.DEFAULT=t,Po=t,Po}var xp;function QA(){if(xp)return et;xp=1,Object.defineProperty(et,"__esModule",{value:!0});var e=$i(),t=Wt(),r=Er(),n=AA(),i=ms(),o=cd(),a=Object.prototype.hasOwnProperty,c=1,p=2,u=3,f=4,m=1,y=2,h=3,O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=/[\x85\u2028\u2029]/,S=/[,\[\]\{\}]/,E=/^(?:!|!!|![a-z\-]+!)$/i,x=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function v(s){return s===10||s===13}function $(s){return s===9||s===32}function g(s){return s===9||s===32||s===10||s===13}function T(s){return s===44||s===91||s===93||s===123||s===125}function j(s){var l;return 48<=s&&s<=57?s-48:(l=s|32,97<=l&&l<=102?l-97+10:-1)}function B(s){return s===120?2:s===117?4:s===85?8:0}function V(s){return 48<=s&&s<=57?s-48:-1}function G(s){return s===48?"\0":s===97?"\x07":s===98?"\b":s===116||s===9?" ":s===110?`
33
- `:s===118?"\v":s===102?"\f":s===114?"\r":s===101?"\x1B":s===32?" ":s===34?'"':s===47?"/":s===92?"\\":s===78?"…":s===95?" ":s===76?"\u2028":s===80?"\u2029":""}function J(s){return s<=65535?String.fromCharCode(s):String.fromCharCode((s-65536>>10)+55296,(s-65536&1023)+56320)}for(var oe=new Array(256),Q=new Array(256),X=new Array(256),me=new Array(256),xe=0;xe<256;xe++)me[xe]=Q[xe]=G(xe),oe[xe]=Q[xe]?1:0,X[xe]=1,oe[xe]||(me[xe]="\\"+String.fromCharCode(xe));var Te=(function(){function s(l,d){this.errorMap={},this.errors=[],this.lines=[],this.input=l,this.filename=d.filename||null,this.schema=d.schema||o,this.onWarning=d.onWarning||null,this.legacy=d.legacy||!1,this.allowAnyEscape=d.allowAnyEscape||!1,this.ignoreDuplicateKeys=d.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=l.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return s})();function fe(s,l,d){return d===void 0&&(d=!1),new r(l,new n(s.filename,s.input,s.position,s.line,s.position-s.lineStart),d)}function Se(s,l,d,R,C){R===void 0&&(R=!1),C===void 0&&(C=!1);var M=F(s,l);if(M){var L=d+l;if(!s.errorMap[L]){var ee=new n(s.filename,s.input,l,M.line,l-M.start);C&&(ee.toLineEnd=!0);var ie=new r(d,ee,R);s.errors.push(ie)}}}function A(s,l){var d=fe(s,l),R=d.message+d.mark.position;if(!s.errorMap[R]){s.errors.push(d),s.errorMap[R]=1;for(var C=s.position;;){if(s.position>=s.input.length-1)return;var M=s.input.charAt(s.position);if(M==`
34
- `){s.position--,s.position==C&&(s.position+=1);return}if(M=="\r"){s.position--,s.position==C&&(s.position+=1);return}s.position++}}}function P(s,l){var d=fe(s,l);s.onWarning&&s.onWarning.call(null,d)}var k={YAML:function(l,d,R){var C,M,L;l.version!==null&&A(l,"duplication of %YAML directive"),R.length!==1&&A(l,"YAML directive accepts exactly one argument"),C=/^([0-9]+)\.([0-9]+)$/.exec(R[0]),C===null&&A(l,"ill-formed argument of the YAML directive"),M=parseInt(C[1],10),L=parseInt(C[2],10),M!==1&&A(l,"found incompatible YAML document (version 1.2 is required)"),l.version=R[0],l.checkLineBreaks=L<2,L!==2&&A(l,"found incompatible YAML document (version 1.2 is required)")},TAG:function(l,d,R){var C,M;R.length!==2&&A(l,"TAG directive accepts exactly two arguments"),C=R[0],M=R[1],E.test(C)||A(l,"ill-formed tag handle (first argument) of the TAG directive"),a.call(l.tagMap,C)&&A(l,'there is a previously declared suffix for "'+C+'" tag handle'),x.test(M)||A(l,"ill-formed tag prefix (second argument) of the TAG directive"),l.tagMap[C]=M}};function _(s,l,d,R){var C,M,L,ee,ie=s.result;if(ie.startPosition==-1&&(ie.startPosition=l),l<=d){if(ee=s.input.slice(l,d),R)for(C=0,M=ee.length;C<M;C+=1)L=ee.charCodeAt(C),L===9||32<=L&&L<=1114111||A(s,"expected valid JSON character");else O.test(ee)&&A(s,"the stream contains non-printable characters");ie.value+=ee,ie.endPosition=d}}function b(s,l,d,R,C){if(R!=null){l===null&&(l={startPosition:R.startPosition,endPosition:C.endPosition,parent:null,errors:[],mappings:[],kind:e.Kind.MAP});var M=e.newMapping(R,C);return M.parent=l,R.parent=M,C!=null&&(C.parent=M),!s.ignoreDuplicateKeys&&l.mappings.forEach(function(L){L.key&&L.key.value===(M.key&&M.key.value)&&(Se(s,M.key.startPosition,"duplicate key"),Se(s,L.key.startPosition,"duplicate key"))}),l.mappings.push(M),l.endPosition=C?C.endPosition:R.endPosition+1,l}}function q(s){var l;l=s.input.charCodeAt(s.position),l===10?s.position++:l===13?(s.position++,s.input.charCodeAt(s.position)===10&&s.position++):A(s,"a line break is expected"),s.line+=1,s.lineStart=s.position,s.lines.push({start:s.lineStart,line:s.line})}function F(s,l){for(var d,R=0;R<s.lines.length&&!(s.lines[R].start>l);R++)d=s.lines[R];return d||{start:0,line:0}}function U(s,l,d){for(var R=0,C=s.input.charCodeAt(s.position);C!==0;){for(;$(C);)C===9&&s.errors.push(fe(s,"Using tabs can lead to unpredictable results",!0)),C=s.input.charCodeAt(++s.position);if(l&&C===35)do C=s.input.charCodeAt(++s.position);while(C!==10&&C!==13&&C!==0);if(v(C))for(q(s),C=s.input.charCodeAt(s.position),R++,s.lineIndent=0;C===32;)s.lineIndent++,C=s.input.charCodeAt(++s.position);else break}return d!==-1&&R!==0&&s.lineIndent<d&&P(s,"deficient indentation"),R}function Y(s){var l=s.position,d;return d=s.input.charCodeAt(l),!!((d===45||d===46)&&s.input.charCodeAt(l+1)===d&&s.input.charCodeAt(l+2)===d&&(l+=3,d=s.input.charCodeAt(l),d===0||g(d)))}function le(s,l,d){d===1?l.value+=" ":d>1&&(l.value+=t.repeat(`
35
- `,d-1))}function he(s,l,d){var R,C,M,L,ee,ie,ge,se,de=s.kind,ke=s.result,ve,Oe=e.newScalar();if(Oe.plainScalar=!0,s.result=Oe,ve=s.input.charCodeAt(s.position),g(ve)||T(ve)||ve===35||ve===38||ve===42||ve===33||ve===124||ve===62||ve===39||ve===34||ve===37||ve===64||ve===96||(ve===63||ve===45)&&(C=s.input.charCodeAt(s.position+1),g(C)||d&&T(C)))return!1;for(s.kind="scalar",M=L=s.position,ee=!1;ve!==0;){if(ve===58){if(C=s.input.charCodeAt(s.position+1),g(C)||d&&T(C))break}else if(ve===35){if(R=s.input.charCodeAt(s.position-1),g(R))break}else{if(s.position===s.lineStart&&Y(s)||d&&T(ve))break;if(v(ve))if(ie=s.line,ge=s.lineStart,se=s.lineIndent,U(s,!1,-1),s.lineIndent>=l){ee=!0,ve=s.input.charCodeAt(s.position);continue}else{s.position=L,s.line=ie,s.lineStart=ge,s.lineIndent=se;break}}if(ee&&(_(s,M,L,!1),le(s,Oe,s.line-ie),M=L=s.position,ee=!1),$(ve)||(L=s.position+1),ve=s.input.charCodeAt(++s.position),s.position>=s.input.length)return!1}return _(s,M,L,!1),s.result.startPosition!=-1?(Oe.rawValue=s.input.substring(Oe.startPosition,Oe.endPosition),!0):(s.kind=de,s.result=ke,!1)}function N(s,l){var d,R,C;if(d=s.input.charCodeAt(s.position),d!==39)return!1;var M=e.newScalar();for(M.singleQuoted=!0,s.kind="scalar",s.result=M,M.startPosition=s.position,s.position++,R=C=s.position;(d=s.input.charCodeAt(s.position))!==0;)if(d===39)if(_(s,R,s.position,!0),d=s.input.charCodeAt(++s.position),M.endPosition=s.position,d===39)R=C=s.position,s.position++;else return!0;else v(d)?(_(s,R,C,!0),le(s,M,U(s,!1,l)),R=C=s.position):s.position===s.lineStart&&Y(s)?A(s,"unexpected end of the document within a single quoted scalar"):(s.position++,C=s.position,M.endPosition=s.position);A(s,"unexpected end of the stream within a single quoted scalar")}function z(s,l){var d,R,C,M,L,ee;if(ee=s.input.charCodeAt(s.position),ee!==34)return!1;s.kind="scalar";var ie=e.newScalar();for(ie.doubleQuoted=!0,s.result=ie,ie.startPosition=s.position,s.position++,d=R=s.position;(ee=s.input.charCodeAt(s.position))!==0;){if(ee===34)return _(s,d,s.position,!0),s.position++,ie.endPosition=s.position,ie.rawValue=s.input.substring(ie.startPosition,ie.endPosition),!0;if(ee===92){if(_(s,d,s.position,!0),ee=s.input.charCodeAt(++s.position),v(ee))U(s,!1,l);else if(ee<256&&(s.allowAnyEscape?X[ee]:oe[ee]))ie.value+=s.allowAnyEscape?me[ee]:Q[ee],s.position++;else if((L=B(ee))>0){for(C=L,M=0;C>0;C--)ee=s.input.charCodeAt(++s.position),(L=j(ee))>=0?M=(M<<4)+L:A(s,"expected hexadecimal character");ie.value+=J(M),s.position++}else A(s,"unknown escape sequence");d=R=s.position}else v(ee)?(_(s,d,R,!0),le(s,ie,U(s,!1,l)),d=R=s.position):s.position===s.lineStart&&Y(s)?A(s,"unexpected end of the document within a double quoted scalar"):(s.position++,R=s.position)}A(s,"unexpected end of the stream within a double quoted scalar")}function H(s,l){var d=!0,R,C=s.tag,M,L=s.anchor,ee,ie,ge,se,de,ke,ve,Oe,Ne;if(Ne=s.input.charCodeAt(s.position),Ne===91)ie=93,de=!1,M=e.newItems(),M.startPosition=s.position;else if(Ne===123)ie=125,de=!0,M=e.newMap(),M.startPosition=s.position;else return!1;for(s.anchor!==null&&(M.anchorId=s.anchor,s.anchorMap[s.anchor]=M),Ne=s.input.charCodeAt(++s.position);Ne!==0;){if(U(s,!0,l),Ne=s.input.charCodeAt(s.position),Ne===ie)return s.position++,s.tag=C,s.anchor=L,s.kind=de?"mapping":"sequence",s.result=M,M.endPosition=s.position,!0;if(!d){var _i=s.position;A(s,"missed comma between flow collection entries"),s.position=_i+1}if(ve=ke=Oe=null,ge=se=!1,Ne===63&&(ee=s.input.charCodeAt(s.position+1),g(ee)&&(ge=se=!0,s.position++,U(s,!0,l))),R=s.line,te(s,l,c,!1,!0),ve=s.tag,ke=s.result,U(s,!0,l),Ne=s.input.charCodeAt(s.position),(se||s.line===R)&&Ne===58&&(ge=!0,Ne=s.input.charCodeAt(++s.position),U(s,!0,l),te(s,l,c,!1,!0),Oe=s.result),de)b(s,M,ve,ke,Oe);else if(ge){var Ar=b(s,null,ve,ke,Oe);Ar.parent=M,M.items.push(Ar)}else ke&&(ke.parent=M),M.items.push(ke);M.endPosition=s.position+1,U(s,!0,l),Ne=s.input.charCodeAt(s.position),Ne===44?(d=!0,Ne=s.input.charCodeAt(++s.position)):d=!1}A(s,"unexpected end of the stream within a flow collection")}function Z(s,l){var d,R,C=m,M=!1,L=l,ee=0,ie=!1,ge,se;if(se=s.input.charCodeAt(s.position),se===124)R=!1;else if(se===62)R=!0;else return!1;var de=e.newScalar();for(s.kind="scalar",s.result=de,de.startPosition=s.position;se!==0;)if(se=s.input.charCodeAt(++s.position),se===43||se===45)m===C?C=se===43?h:y:A(s,"repeat of a chomping mode identifier");else if((ge=V(se))>=0)ge===0?A(s,"bad explicit indentation width of a block scalar; it cannot be less than one"):M?A(s,"repeat of an indentation width identifier"):(L=l+ge-1,M=!0);else break;if($(se)){do se=s.input.charCodeAt(++s.position);while($(se));if(se===35)do se=s.input.charCodeAt(++s.position);while(!v(se)&&se!==0)}for(;se!==0;){for(q(s),s.lineIndent=0,se=s.input.charCodeAt(s.position);(!M||s.lineIndent<L)&&se===32;)s.lineIndent++,se=s.input.charCodeAt(++s.position);if(!M&&s.lineIndent>L&&(L=s.lineIndent),v(se)){ee++;continue}if(s.lineIndent<L){C===h?de.value+=t.repeat(`
31
+ `+i)),o},r})();return to=t,to}var Ln={},Un={},Yc;function Ve(){if(Yc)return Un;Yc=1,Object.defineProperty(Un,"__esModule",{value:!0});var e=Er(),t=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],r=["scalar","sequence","mapping"];function n(o){var a={};return o!==null&&Object.keys(o).forEach(function(c){o[c].forEach(function(p){a[String(p)]=c})}),a}var i=(function(){function o(a,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 "'+a+'" YAML type.')}),this.tag=a,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 "'+a+'" YAML type.')}return o})();return Un.Type=i,Un}var Jc;function Or(){if(Jc)return Ln;Jc=1,Object.defineProperty(Ln,"__esModule",{value:!0});var e=Wt(),t=Er(),r=Ve();function n(a,c,p){var u=[];return a.include.forEach(function(f){p=n(f,c,p)}),a[c].forEach(function(f){p.forEach(function(m,y){m.tag===f.tag&&u.push(y)}),p.push(f)}),p.filter(function(f,m){return u.indexOf(m)===-1})}function i(){var a={},c,p;function u(f){a[f.tag]=f}for(c=0,p=arguments.length;c<p;c+=1)arguments[c].forEach(u);return a}var o=(function(){function a(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 a.DEFAULT=null,a.create=function(){var p,u;switch(arguments.length){case 1:p=a.DEFAULT,u=arguments[0];break;case 2:p=arguments[0],u=arguments[1];break;default:throw new t("Wrong number of arguments for Schema.create function")}if(p=e.toArray(p),u=e.toArray(u),!p.every(function(f){return f instanceof a}))throw new t("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!u.every(function(f){return f instanceof r.Type}))throw new t("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new a({include:p,explicit:u})},a})();return Ln.Schema=o,Ln}var ro,Xc;function _R(){if(Xc)return ro;Xc=1;var e=Ve();return ro=new e.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),ro}var no,Zc;function TR(){if(Zc)return no;Zc=1;var e=Ve();return no=new e.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),no}var io,ep;function kR(){if(ep)return io;ep=1;var e=Ve();return io=new e.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),io}var oo,tp;function IR(){if(tp)return oo;tp=1;var e=Or();return oo=new e.Schema({explicit:[_R(),TR(),kR()]}),oo}var so,rp;function qR(){if(rp)return so;rp=1;var e=Ve();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 so=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"}),so}var ao,np;function CR(){if(np)return ao;np=1;var e=Ve();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 ao=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"}),ao}var co,ip;function jR(){if(ip)return co;ip=1;var e=Wt(),t=Ve();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 u=p.length,f=0,m=!1,y;if(!u)return!1;if(y=p[f],(y==="-"||y==="+")&&(y=p[++f]),y==="0"){if(f+1===u)return!0;if(y=p[++f],y==="b"){for(f++;f<u;f++)if(y=p[f],y!=="_"){if(y!=="0"&&y!=="1")return!1;m=!0}return m}if(y==="x"){for(f++;f<u;f++)if(y=p[f],y!=="_"){if(!r(p.charCodeAt(f)))return!1;m=!0}return m}for(;f<u;f++)if(y=p[f],y!=="_"){if(!n(p.charCodeAt(f)))return!1;m=!0}return m}for(;f<u;f++)if(y=p[f],y!=="_"){if(y===":")break;if(!i(p.charCodeAt(f)))return!1;m=!0}return m?y!==":"?!0:/^(:[0-5]?[0-9])+$/.test(p.slice(f)):!1}function a(p){var u=p,f=1,m,y,h=[];return u.indexOf("_")!==-1&&(u=u.replace(/_/g,"")),m=u[0],(m==="-"||m==="+")&&(m==="-"&&(f=-1),u=u.slice(1),m=u[0]),u==="0"?0:m==="0"?u[1]==="b"?f*parseInt(u.slice(2),2):u[1]==="x"?f*parseInt(u,16):f*parseInt(u,8):u.indexOf(":")!==-1?(u.split(":").forEach(function(O){h.unshift(parseInt(O,10))}),u=0,y=1,h.forEach(function(O){u+=O*y,y*=60}),f*u):f*parseInt(u,10)}function c(p){return Object.prototype.toString.call(p)==="[object Number]"&&p%1===0&&!e.isNegativeZero(p)}return co=new t.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:o,construct:a,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"]}}),co}var po,op;function MR(){if(op)return po;op=1;var e=Wt(),t=Ve(),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,u,f,m;return p=c.replace(/_/g,"").toLowerCase(),u=p[0]==="-"?-1:1,m=[],0<="+-".indexOf(p[0])&&(p=p.slice(1)),p===".inf"?u===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:p===".nan"?NaN:0<=p.indexOf(":")?(p.split(":").forEach(function(y){m.unshift(parseFloat(y,10))}),p=0,f=1,m.forEach(function(y){p+=y*f,f*=60}),u*p):u*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 a(c){return Object.prototype.toString.call(c)==="[object Number]"&&(c%1!==0||e.isNegativeZero(c))}return po=new t.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:n,construct:i,predicate:a,represent:o,defaultStyle:"lowercase"}),po}var lo,sp;function DR(){if(sp)return lo;sp=1;var e=Or();return lo=new e.Schema({include:[IR()],implicit:[qR(),CR(),jR(),MR()]}),lo}var uo,ap;function NR(){if(ap)return uo;ap=1;var e=Or();return uo=new e.Schema({include:[DR()]}),uo}var fo,cp;function LR(){if(cp)return fo;cp=1;var e=Ve(),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 a;return a=t.exec(o),a!==null}function n(o){var a,c,p,u,f,m,y,h=0,O=null,w,P,E;if(a=t.exec(o),a===null)throw new Error("Date resolve error");if(c=+a[1],p=+a[2]-1,u=+a[3],!a[4])return new Date(Date.UTC(c,p,u));if(f=+a[4],m=+a[5],y=+a[6],a[7]){for(h=a[7].slice(0,3);h.length<3;)h=h+"0";h=+h}return a[9]&&(w=+a[10],P=+(a[11]||0),O=(w*60+P)*6e4,a[9]==="-"&&(O=-O)),E=new Date(Date.UTC(c,p,u,f,m,y,h)),O&&E.setTime(E.getTime()-O),E}function i(o){return o.toISOString()}return fo=new e.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:r,construct:n,instanceOf:Date,represent:i}),fo}var mo,pp;function UR(){if(pp)return mo;pp=1;var e=Ve();function t(r){return r==="<<"||r===null}return mo=new e.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:t}),mo}var ho={},er={},lp;function FR(){if(lp)return er;lp=1,er.byteLength=c,er.toByteArray=u,er.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 a(h){var O=h.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var w=h.indexOf("=");w===-1&&(w=O);var P=w===O?0:4-w%4;return[w,P]}function c(h){var O=a(h),w=O[0],P=O[1];return(w+P)*3/4-P}function p(h,O,w){return(O+w)*3/4-w}function u(h){var O,w=a(h),P=w[0],E=w[1],x=new r(p(h,P,E)),v=0,$=E>0?P-4:P,g;for(g=0;g<$;g+=4)O=t[h.charCodeAt(g)]<<18|t[h.charCodeAt(g+1)]<<12|t[h.charCodeAt(g+2)]<<6|t[h.charCodeAt(g+3)],x[v++]=O>>16&255,x[v++]=O>>8&255,x[v++]=O&255;return E===2&&(O=t[h.charCodeAt(g)]<<2|t[h.charCodeAt(g+1)]>>4,x[v++]=O&255),E===1&&(O=t[h.charCodeAt(g)]<<10|t[h.charCodeAt(g+1)]<<4|t[h.charCodeAt(g+2)]>>2,x[v++]=O>>8&255,x[v++]=O&255),x}function f(h){return e[h>>18&63]+e[h>>12&63]+e[h>>6&63]+e[h&63]}function m(h,O,w){for(var P,E=[],x=O;x<w;x+=3)P=(h[x]<<16&16711680)+(h[x+1]<<8&65280)+(h[x+2]&255),E.push(f(P));return E.join("")}function y(h){for(var O,w=h.length,P=w%3,E=[],x=16383,v=0,$=w-P;v<$;v+=x)E.push(m(h,v,v+x>$?$:v+x));return P===1?(O=h[w-1],E.push(e[O>>2]+e[O<<4&63]+"==")):P===2&&(O=(h[w-2]<<8)+h[w-1],E.push(e[O>>10]+e[O>>4&63]+e[O<<2&63]+"=")),E.join("")}return er}var Fn={};var up;function zR(){return up||(up=1,Fn.read=function(e,t,r,n,i){var o,a,c=i*8-n-1,p=(1<<c)-1,u=p>>1,f=-7,m=r?i-1:0,y=r?-1:1,h=e[t+m];for(m+=y,o=h&(1<<-f)-1,h>>=-f,f+=c;f>0;o=o*256+e[t+m],m+=y,f-=8);for(a=o&(1<<-f)-1,o>>=-f,f+=n;f>0;a=a*256+e[t+m],m+=y,f-=8);if(o===0)o=1-u;else{if(o===p)return a?NaN:(h?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-u}return(h?-1:1)*a*Math.pow(2,o-n)},Fn.write=function(e,t,r,n,i,o){var a,c,p,u=o*8-i-1,f=(1<<u)-1,m=f>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:o-1,O=n?1:-1,w=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=f):(a=Math.floor(Math.log(t)/Math.LN2),t*(p=Math.pow(2,-a))<1&&(a--,p*=2),a+m>=1?t+=y/p:t+=y*Math.pow(2,1-m),t*p>=2&&(a++,p/=2),a+m>=f?(c=0,a=f):a+m>=1?(c=(t*p-1)*Math.pow(2,i),a=a+m):(c=t*Math.pow(2,m-1)*Math.pow(2,i),a=0));i>=8;e[r+h]=c&255,h+=O,c/=256,i-=8);for(a=a<<i|c,u+=i;u>0;e[r+h]=a&255,h+=O,a/=256,u-=8);e[r+h-O]|=w*128}),Fn}var dp;function BR(){return dp||(dp=1,(function(e){const t=FR(),r=zR(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=x,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 s=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(s,l),s.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 a(s){if(s>i)throw new RangeError('The value "'+s+'" is invalid for option "size"');const l=new Uint8Array(s);return Object.setPrototypeOf(l,c.prototype),l}function c(s,l,d){if(typeof s=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(s)}return p(s,l,d)}c.poolSize=8192;function p(s,l,d){if(typeof s=="string")return y(s,l);if(ArrayBuffer.isView(s))return O(s);if(s==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s);if(ce(s,ArrayBuffer)||s&&ce(s.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(ce(s,SharedArrayBuffer)||s&&ce(s.buffer,SharedArrayBuffer)))return w(s,l,d);if(typeof s=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const A=s.valueOf&&s.valueOf();if(A!=null&&A!==s)return c.from(A,l,d);const C=P(s);if(C)return C;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof s[Symbol.toPrimitive]=="function")return c.from(s[Symbol.toPrimitive]("string"),l,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof s)}c.from=function(s,l,d){return p(s,l,d)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function u(s){if(typeof s!="number")throw new TypeError('"size" argument must be of type number');if(s<0)throw new RangeError('The value "'+s+'" is invalid for option "size"')}function f(s,l,d){return u(s),s<=0?a(s):l!==void 0?typeof d=="string"?a(s).fill(l,d):a(s).fill(l):a(s)}c.alloc=function(s,l,d){return f(s,l,d)};function m(s){return u(s),a(s<0?0:E(s)|0)}c.allocUnsafe=function(s){return m(s)},c.allocUnsafeSlow=function(s){return m(s)};function y(s,l){if((typeof l!="string"||l==="")&&(l="utf8"),!c.isEncoding(l))throw new TypeError("Unknown encoding: "+l);const d=v(s,l)|0;let A=a(d);const C=A.write(s,l);return C!==d&&(A=A.slice(0,C)),A}function h(s){const l=s.length<0?0:E(s.length)|0,d=a(l);for(let A=0;A<l;A+=1)d[A]=s[A]&255;return d}function O(s){if(ce(s,Uint8Array)){const l=new Uint8Array(s);return w(l.buffer,l.byteOffset,l.byteLength)}return h(s)}function w(s,l,d){if(l<0||s.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(s.byteLength<l+(d||0))throw new RangeError('"length" is outside of buffer bounds');let A;return l===void 0&&d===void 0?A=new Uint8Array(s):d===void 0?A=new Uint8Array(s,l):A=new Uint8Array(s,l,d),Object.setPrototypeOf(A,c.prototype),A}function P(s){if(c.isBuffer(s)){const l=E(s.length)|0,d=a(l);return d.length===0||s.copy(d,0,0,l),d}if(s.length!==void 0)return typeof s.length!="number"||pe(s.length)?a(0):h(s);if(s.type==="Buffer"&&Array.isArray(s.data))return h(s.data)}function E(s){if(s>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return s|0}function x(s){return+s!=s&&(s=0),c.alloc(+s)}c.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==c.prototype},c.compare=function(l,d){if(ce(l,Uint8Array)&&(l=c.from(l,l.offset,l.byteLength)),ce(d,Uint8Array)&&(d=c.from(d,d.offset,d.byteLength)),!c.isBuffer(l)||!c.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===d)return 0;let A=l.length,C=d.length;for(let M=0,L=Math.min(A,C);M<L;++M)if(l[M]!==d[M]){A=l[M],C=d[M];break}return A<C?-1:C<A?1:0},c.isEncoding=function(l){switch(String(l).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(l,d){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return c.alloc(0);let A;if(d===void 0)for(d=0,A=0;A<l.length;++A)d+=l[A].length;const C=c.allocUnsafe(d);let M=0;for(A=0;A<l.length;++A){let L=l[A];if(ce(L,Uint8Array))M+L.length>C.length?(c.isBuffer(L)||(L=c.from(L)),L.copy(C,M)):Uint8Array.prototype.set.call(C,L,M);else if(c.isBuffer(L))L.copy(C,M);else throw new TypeError('"list" argument must be an Array of Buffers');M+=L.length}return C};function v(s,l){if(c.isBuffer(s))return s.length;if(ArrayBuffer.isView(s)||ce(s,ArrayBuffer))return s.byteLength;if(typeof s!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof s);const d=s.length,A=arguments.length>2&&arguments[2]===!0;if(!A&&d===0)return 0;let C=!1;for(;;)switch(l){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return D(s).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return te(s).length;default:if(C)return A?-1:D(s).length;l=(""+l).toLowerCase(),C=!0}}c.byteLength=v;function $(s,l,d){let A=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,l>>>=0,d<=l))return"";for(s||(s="utf8");;)switch(s){case"hex":return Pe(this,l,d);case"utf8":case"utf-8":return X(this,l,d);case"ascii":return Te(this,l,d);case"latin1":case"binary":return fe(this,l,d);case"base64":return Q(this,l,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return R(this,l,d);default:if(A)throw new TypeError("Unknown encoding: "+s);s=(s+"").toLowerCase(),A=!0}}c.prototype._isBuffer=!0;function g(s,l,d){const A=s[l];s[l]=s[d],s[d]=A}c.prototype.swap16=function(){const l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let d=0;d<l;d+=2)g(this,d,d+1);return this},c.prototype.swap32=function(){const l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let d=0;d<l;d+=4)g(this,d,d+3),g(this,d+1,d+2);return this},c.prototype.swap64=function(){const l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let d=0;d<l;d+=8)g(this,d,d+7),g(this,d+1,d+6),g(this,d+2,d+5),g(this,d+3,d+4);return this},c.prototype.toString=function(){const l=this.length;return l===0?"":arguments.length===0?X(this,0,l):$.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(l){if(!c.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:c.compare(this,l)===0},c.prototype.inspect=function(){let l="";const d=e.INSPECT_MAX_BYTES;return l=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(l+=" ... "),"<Buffer "+l+">"},n&&(c.prototype[n]=c.prototype.inspect),c.prototype.compare=function(l,d,A,C,M){if(ce(l,Uint8Array)&&(l=c.from(l,l.offset,l.byteLength)),!c.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(d===void 0&&(d=0),A===void 0&&(A=l?l.length:0),C===void 0&&(C=0),M===void 0&&(M=this.length),d<0||A>l.length||C<0||M>this.length)throw new RangeError("out of range index");if(C>=M&&d>=A)return 0;if(C>=M)return-1;if(d>=A)return 1;if(d>>>=0,A>>>=0,C>>>=0,M>>>=0,this===l)return 0;let L=M-C,ee=A-d;const ie=Math.min(L,ee),ge=this.slice(C,M),se=l.slice(d,A);for(let de=0;de<ie;++de)if(ge[de]!==se[de]){L=ge[de],ee=se[de];break}return L<ee?-1:ee<L?1:0};function T(s,l,d,A,C){if(s.length===0)return-1;if(typeof d=="string"?(A=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,pe(d)&&(d=C?0:s.length-1),d<0&&(d=s.length+d),d>=s.length){if(C)return-1;d=s.length-1}else if(d<0)if(C)d=0;else return-1;if(typeof l=="string"&&(l=c.from(l,A)),c.isBuffer(l))return l.length===0?-1:j(s,l,d,A,C);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?C?Uint8Array.prototype.indexOf.call(s,l,d):Uint8Array.prototype.lastIndexOf.call(s,l,d):j(s,[l],d,A,C);throw new TypeError("val must be string, number or Buffer")}function j(s,l,d,A,C){let M=1,L=s.length,ee=l.length;if(A!==void 0&&(A=String(A).toLowerCase(),A==="ucs2"||A==="ucs-2"||A==="utf16le"||A==="utf-16le")){if(s.length<2||l.length<2)return-1;M=2,L/=2,ee/=2,d/=2}function ie(se,de){return M===1?se[de]:se.readUInt16BE(de*M)}let ge;if(C){let se=-1;for(ge=d;ge<L;ge++)if(ie(s,ge)===ie(l,se===-1?0:ge-se)){if(se===-1&&(se=ge),ge-se+1===ee)return se*M}else se!==-1&&(ge-=ge-se),se=-1}else for(d+ee>L&&(d=L-ee),ge=d;ge>=0;ge--){let se=!0;for(let de=0;de<ee;de++)if(ie(s,ge+de)!==ie(l,de)){se=!1;break}if(se)return ge}return-1}c.prototype.includes=function(l,d,A){return this.indexOf(l,d,A)!==-1},c.prototype.indexOf=function(l,d,A){return T(this,l,d,A,!0)},c.prototype.lastIndexOf=function(l,d,A){return T(this,l,d,A,!1)};function B(s,l,d,A){d=Number(d)||0;const C=s.length-d;A?(A=Number(A),A>C&&(A=C)):A=C;const M=l.length;A>M/2&&(A=M/2);let L;for(L=0;L<A;++L){const ee=parseInt(l.substr(L*2,2),16);if(pe(ee))return L;s[d+L]=ee}return L}function V(s,l,d,A){return re(D(l,s.length-d),s,d,A)}function G(s,l,d,A){return re(W(l),s,d,A)}function J(s,l,d,A){return re(te(l),s,d,A)}function oe(s,l,d,A){return re(ne(l,s.length-d),s,d,A)}c.prototype.write=function(l,d,A,C){if(d===void 0)C="utf8",A=this.length,d=0;else if(A===void 0&&typeof d=="string")C=d,A=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(A)?(A=A>>>0,C===void 0&&(C="utf8")):(C=A,A=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const M=this.length-d;if((A===void 0||A>M)&&(A=M),l.length>0&&(A<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");C||(C="utf8");let L=!1;for(;;)switch(C){case"hex":return B(this,l,d,A);case"utf8":case"utf-8":return V(this,l,d,A);case"ascii":case"latin1":case"binary":return G(this,l,d,A);case"base64":return J(this,l,d,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return oe(this,l,d,A);default:if(L)throw new TypeError("Unknown encoding: "+C);C=(""+C).toLowerCase(),L=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Q(s,l,d){return l===0&&d===s.length?t.fromByteArray(s):t.fromByteArray(s.slice(l,d))}function X(s,l,d){d=Math.min(s.length,d);const A=[];let C=l;for(;C<d;){const M=s[C];let L=null,ee=M>239?4:M>223?3:M>191?2:1;if(C+ee<=d){let ie,ge,se,de;switch(ee){case 1:M<128&&(L=M);break;case 2:ie=s[C+1],(ie&192)===128&&(de=(M&31)<<6|ie&63,de>127&&(L=de));break;case 3:ie=s[C+1],ge=s[C+2],(ie&192)===128&&(ge&192)===128&&(de=(M&15)<<12|(ie&63)<<6|ge&63,de>2047&&(de<55296||de>57343)&&(L=de));break;case 4:ie=s[C+1],ge=s[C+2],se=s[C+3],(ie&192)===128&&(ge&192)===128&&(se&192)===128&&(de=(M&15)<<18|(ie&63)<<12|(ge&63)<<6|se&63,de>65535&&de<1114112&&(L=de))}}L===null?(L=65533,ee=1):L>65535&&(L-=65536,A.push(L>>>10&1023|55296),L=56320|L&1023),A.push(L),C+=ee}return xe(A)}const me=4096;function xe(s){const l=s.length;if(l<=me)return String.fromCharCode.apply(String,s);let d="",A=0;for(;A<l;)d+=String.fromCharCode.apply(String,s.slice(A,A+=me));return d}function Te(s,l,d){let A="";d=Math.min(s.length,d);for(let C=l;C<d;++C)A+=String.fromCharCode(s[C]&127);return A}function fe(s,l,d){let A="";d=Math.min(s.length,d);for(let C=l;C<d;++C)A+=String.fromCharCode(s[C]);return A}function Pe(s,l,d){const A=s.length;(!l||l<0)&&(l=0),(!d||d<0||d>A)&&(d=A);let C="";for(let M=l;M<d;++M)C+=ue[s[M]];return C}function R(s,l,d){const A=s.slice(l,d);let C="";for(let M=0;M<A.length-1;M+=2)C+=String.fromCharCode(A[M]+A[M+1]*256);return C}c.prototype.slice=function(l,d){const A=this.length;l=~~l,d=d===void 0?A:~~d,l<0?(l+=A,l<0&&(l=0)):l>A&&(l=A),d<0?(d+=A,d<0&&(d=0)):d>A&&(d=A),d<l&&(d=l);const C=this.subarray(l,d);return Object.setPrototypeOf(C,c.prototype),C};function S(s,l,d){if(s%1!==0||s<0)throw new RangeError("offset is not uint");if(s+l>d)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(l,d,A){l=l>>>0,d=d>>>0,A||S(l,d,this.length);let C=this[l],M=1,L=0;for(;++L<d&&(M*=256);)C+=this[l+L]*M;return C},c.prototype.readUintBE=c.prototype.readUIntBE=function(l,d,A){l=l>>>0,d=d>>>0,A||S(l,d,this.length);let C=this[l+--d],M=1;for(;d>0&&(M*=256);)C+=this[l+--d]*M;return C},c.prototype.readUint8=c.prototype.readUInt8=function(l,d){return l=l>>>0,d||S(l,1,this.length),this[l]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(l,d){return l=l>>>0,d||S(l,2,this.length),this[l]|this[l+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(l,d){return l=l>>>0,d||S(l,2,this.length),this[l]<<8|this[l+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(l,d){return l=l>>>0,d||S(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(l,d){return l=l>>>0,d||S(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},c.prototype.readBigUInt64LE=be(function(l){l=l>>>0,H(l,"offset");const d=this[l],A=this[l+7];(d===void 0||A===void 0)&&Z(l,this.length-8);const C=d+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24,M=this[++l]+this[++l]*2**8+this[++l]*2**16+A*2**24;return BigInt(C)+(BigInt(M)<<BigInt(32))}),c.prototype.readBigUInt64BE=be(function(l){l=l>>>0,H(l,"offset");const d=this[l],A=this[l+7];(d===void 0||A===void 0)&&Z(l,this.length-8);const C=d*2**24+this[++l]*2**16+this[++l]*2**8+this[++l],M=this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+A;return(BigInt(C)<<BigInt(32))+BigInt(M)}),c.prototype.readIntLE=function(l,d,A){l=l>>>0,d=d>>>0,A||S(l,d,this.length);let C=this[l],M=1,L=0;for(;++L<d&&(M*=256);)C+=this[l+L]*M;return M*=128,C>=M&&(C-=Math.pow(2,8*d)),C},c.prototype.readIntBE=function(l,d,A){l=l>>>0,d=d>>>0,A||S(l,d,this.length);let C=d,M=1,L=this[l+--C];for(;C>0&&(M*=256);)L+=this[l+--C]*M;return M*=128,L>=M&&(L-=Math.pow(2,8*d)),L},c.prototype.readInt8=function(l,d){return l=l>>>0,d||S(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},c.prototype.readInt16LE=function(l,d){l=l>>>0,d||S(l,2,this.length);const A=this[l]|this[l+1]<<8;return A&32768?A|4294901760:A},c.prototype.readInt16BE=function(l,d){l=l>>>0,d||S(l,2,this.length);const A=this[l+1]|this[l]<<8;return A&32768?A|4294901760:A},c.prototype.readInt32LE=function(l,d){return l=l>>>0,d||S(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},c.prototype.readInt32BE=function(l,d){return l=l>>>0,d||S(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},c.prototype.readBigInt64LE=be(function(l){l=l>>>0,H(l,"offset");const d=this[l],A=this[l+7];(d===void 0||A===void 0)&&Z(l,this.length-8);const C=this[l+4]+this[l+5]*2**8+this[l+6]*2**16+(A<<24);return(BigInt(C)<<BigInt(32))+BigInt(d+this[++l]*2**8+this[++l]*2**16+this[++l]*2**24)}),c.prototype.readBigInt64BE=be(function(l){l=l>>>0,H(l,"offset");const d=this[l],A=this[l+7];(d===void 0||A===void 0)&&Z(l,this.length-8);const C=(d<<24)+this[++l]*2**16+this[++l]*2**8+this[++l];return(BigInt(C)<<BigInt(32))+BigInt(this[++l]*2**24+this[++l]*2**16+this[++l]*2**8+A)}),c.prototype.readFloatLE=function(l,d){return l=l>>>0,d||S(l,4,this.length),r.read(this,l,!0,23,4)},c.prototype.readFloatBE=function(l,d){return l=l>>>0,d||S(l,4,this.length),r.read(this,l,!1,23,4)},c.prototype.readDoubleLE=function(l,d){return l=l>>>0,d||S(l,8,this.length),r.read(this,l,!0,52,8)},c.prototype.readDoubleBE=function(l,d){return l=l>>>0,d||S(l,8,this.length),r.read(this,l,!1,52,8)};function k(s,l,d,A,C,M){if(!c.isBuffer(s))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>C||l<M)throw new RangeError('"value" argument is out of bounds');if(d+A>s.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(l,d,A,C){if(l=+l,d=d>>>0,A=A>>>0,!C){const ee=Math.pow(2,8*A)-1;k(this,l,d,A,ee,0)}let M=1,L=0;for(this[d]=l&255;++L<A&&(M*=256);)this[d+L]=l/M&255;return d+A},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(l,d,A,C){if(l=+l,d=d>>>0,A=A>>>0,!C){const ee=Math.pow(2,8*A)-1;k(this,l,d,A,ee,0)}let M=A-1,L=1;for(this[d+M]=l&255;--M>=0&&(L*=256);)this[d+M]=l/L&255;return d+A},c.prototype.writeUint8=c.prototype.writeUInt8=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,1,255,0),this[d]=l&255,d+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,2,65535,0),this[d]=l&255,this[d+1]=l>>>8,d+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,2,65535,0),this[d]=l>>>8,this[d+1]=l&255,d+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,4,4294967295,0),this[d+3]=l>>>24,this[d+2]=l>>>16,this[d+1]=l>>>8,this[d]=l&255,d+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,4,4294967295,0),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4};function _(s,l,d,A,C){z(l,A,C,s,d,7);let M=Number(l&BigInt(4294967295));s[d++]=M,M=M>>8,s[d++]=M,M=M>>8,s[d++]=M,M=M>>8,s[d++]=M;let L=Number(l>>BigInt(32)&BigInt(4294967295));return s[d++]=L,L=L>>8,s[d++]=L,L=L>>8,s[d++]=L,L=L>>8,s[d++]=L,d}function b(s,l,d,A,C){z(l,A,C,s,d,7);let M=Number(l&BigInt(4294967295));s[d+7]=M,M=M>>8,s[d+6]=M,M=M>>8,s[d+5]=M,M=M>>8,s[d+4]=M;let L=Number(l>>BigInt(32)&BigInt(4294967295));return s[d+3]=L,L=L>>8,s[d+2]=L,L=L>>8,s[d+1]=L,L=L>>8,s[d]=L,d+8}c.prototype.writeBigUInt64LE=be(function(l,d=0){return _(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=be(function(l,d=0){return b(this,l,d,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(l,d,A,C){if(l=+l,d=d>>>0,!C){const ie=Math.pow(2,8*A-1);k(this,l,d,A,ie-1,-ie)}let M=0,L=1,ee=0;for(this[d]=l&255;++M<A&&(L*=256);)l<0&&ee===0&&this[d+M-1]!==0&&(ee=1),this[d+M]=(l/L>>0)-ee&255;return d+A},c.prototype.writeIntBE=function(l,d,A,C){if(l=+l,d=d>>>0,!C){const ie=Math.pow(2,8*A-1);k(this,l,d,A,ie-1,-ie)}let M=A-1,L=1,ee=0;for(this[d+M]=l&255;--M>=0&&(L*=256);)l<0&&ee===0&&this[d+M+1]!==0&&(ee=1),this[d+M]=(l/L>>0)-ee&255;return d+A},c.prototype.writeInt8=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,1,127,-128),l<0&&(l=255+l+1),this[d]=l&255,d+1},c.prototype.writeInt16LE=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,2,32767,-32768),this[d]=l&255,this[d+1]=l>>>8,d+2},c.prototype.writeInt16BE=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,2,32767,-32768),this[d]=l>>>8,this[d+1]=l&255,d+2},c.prototype.writeInt32LE=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,4,2147483647,-2147483648),this[d]=l&255,this[d+1]=l>>>8,this[d+2]=l>>>16,this[d+3]=l>>>24,d+4},c.prototype.writeInt32BE=function(l,d,A){return l=+l,d=d>>>0,A||k(this,l,d,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4},c.prototype.writeBigInt64LE=be(function(l,d=0){return _(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=be(function(l,d=0){return b(this,l,d,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function q(s,l,d,A,C,M){if(d+A>s.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function F(s,l,d,A,C){return l=+l,d=d>>>0,C||q(s,l,d,4),r.write(s,l,d,A,23,4),d+4}c.prototype.writeFloatLE=function(l,d,A){return F(this,l,d,!0,A)},c.prototype.writeFloatBE=function(l,d,A){return F(this,l,d,!1,A)};function U(s,l,d,A,C){return l=+l,d=d>>>0,C||q(s,l,d,8),r.write(s,l,d,A,52,8),d+8}c.prototype.writeDoubleLE=function(l,d,A){return U(this,l,d,!0,A)},c.prototype.writeDoubleBE=function(l,d,A){return U(this,l,d,!1,A)},c.prototype.copy=function(l,d,A,C){if(!c.isBuffer(l))throw new TypeError("argument should be a Buffer");if(A||(A=0),!C&&C!==0&&(C=this.length),d>=l.length&&(d=l.length),d||(d=0),C>0&&C<A&&(C=A),C===A||l.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(A<0||A>=this.length)throw new RangeError("Index out of range");if(C<0)throw new RangeError("sourceEnd out of bounds");C>this.length&&(C=this.length),l.length-d<C-A&&(C=l.length-d+A);const M=C-A;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,A,C):Uint8Array.prototype.set.call(l,this.subarray(A,C),d),M},c.prototype.fill=function(l,d,A,C){if(typeof l=="string"){if(typeof d=="string"?(C=d,d=0,A=this.length):typeof A=="string"&&(C=A,A=this.length),C!==void 0&&typeof C!="string")throw new TypeError("encoding must be a string");if(typeof C=="string"&&!c.isEncoding(C))throw new TypeError("Unknown encoding: "+C);if(l.length===1){const L=l.charCodeAt(0);(C==="utf8"&&L<128||C==="latin1")&&(l=L)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(d<0||this.length<d||this.length<A)throw new RangeError("Out of range index");if(A<=d)return this;d=d>>>0,A=A===void 0?this.length:A>>>0,l||(l=0);let M;if(typeof l=="number")for(M=d;M<A;++M)this[M]=l;else{const L=c.isBuffer(l)?l:c.from(l,C),ee=L.length;if(ee===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(M=0;M<A-d;++M)this[M+d]=L[M%ee]}return this};const Y={};function le(s,l,d){Y[s]=class extends d{constructor(){super(),Object.defineProperty(this,"message",{value:l.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${s}]`,this.stack,delete this.name}get code(){return s}set code(C){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:C,writable:!0})}toString(){return`${this.name} [${s}]: ${this.message}`}}}le("ERR_BUFFER_OUT_OF_BOUNDS",function(s){return s?`${s} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),le("ERR_INVALID_ARG_TYPE",function(s,l){return`The "${s}" argument must be of type number. Received type ${typeof l}`},TypeError),le("ERR_OUT_OF_RANGE",function(s,l,d){let A=`The value of "${s}" is out of range.`,C=d;return Number.isInteger(d)&&Math.abs(d)>2**32?C=he(String(d)):typeof d=="bigint"&&(C=String(d),(d>BigInt(2)**BigInt(32)||d<-(BigInt(2)**BigInt(32)))&&(C=he(C)),C+="n"),A+=` It must be ${l}. Received ${C}`,A},RangeError);function he(s){let l="",d=s.length;const A=s[0]==="-"?1:0;for(;d>=A+4;d-=3)l=`_${s.slice(d-3,d)}${l}`;return`${s.slice(0,d)}${l}`}function N(s,l,d){H(l,"offset"),(s[l]===void 0||s[l+d]===void 0)&&Z(l,s.length-(d+1))}function z(s,l,d,A,C,M){if(s>d||s<l){const L=typeof l=="bigint"?"n":"";let ee;throw l===0||l===BigInt(0)?ee=`>= 0${L} and < 2${L} ** ${(M+1)*8}${L}`:ee=`>= -(2${L} ** ${(M+1)*8-1}${L}) and < 2 ** ${(M+1)*8-1}${L}`,new Y.ERR_OUT_OF_RANGE("value",ee,s)}N(A,C,M)}function H(s,l){if(typeof s!="number")throw new Y.ERR_INVALID_ARG_TYPE(l,"number",s)}function Z(s,l,d){throw Math.floor(s)!==s?(H(s,d),new Y.ERR_OUT_OF_RANGE("offset","an integer",s)):l<0?new Y.ERR_BUFFER_OUT_OF_BOUNDS:new Y.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${l}`,s)}const ae=/[^+/0-9A-Za-z-_]/g;function ye(s){if(s=s.split("=")[0],s=s.trim().replace(ae,""),s.length<2)return"";for(;s.length%4!==0;)s=s+"=";return s}function D(s,l){l=l||1/0;let d;const A=s.length;let C=null;const M=[];for(let L=0;L<A;++L){if(d=s.charCodeAt(L),d>55295&&d<57344){if(!C){if(d>56319){(l-=3)>-1&&M.push(239,191,189);continue}else if(L+1===A){(l-=3)>-1&&M.push(239,191,189);continue}C=d;continue}if(d<56320){(l-=3)>-1&&M.push(239,191,189),C=d;continue}d=(C-55296<<10|d-56320)+65536}else C&&(l-=3)>-1&&M.push(239,191,189);if(C=null,d<128){if((l-=1)<0)break;M.push(d)}else if(d<2048){if((l-=2)<0)break;M.push(d>>6|192,d&63|128)}else if(d<65536){if((l-=3)<0)break;M.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((l-=4)<0)break;M.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return M}function W(s){const l=[];for(let d=0;d<s.length;++d)l.push(s.charCodeAt(d)&255);return l}function ne(s,l){let d,A,C;const M=[];for(let L=0;L<s.length&&!((l-=2)<0);++L)d=s.charCodeAt(L),A=d>>8,C=d%256,M.push(C),M.push(A);return M}function te(s){return t.toByteArray(ye(s))}function re(s,l,d,A){let C;for(C=0;C<A&&!(C+d>=l.length||C>=s.length);++C)l[C+d]=s[C];return C}function ce(s,l){return s instanceof l||s!=null&&s.constructor!=null&&s.constructor.name!=null&&s.constructor.name===l.name}function pe(s){return s!==s}const ue=(function(){const s="0123456789abcdef",l=new Array(256);for(let d=0;d<16;++d){const A=d*16;for(let C=0;C<16;++C)l[A+C]=s[d]+s[C]}return l})();function be(s){return typeof BigInt>"u"?je:s}function je(){throw new Error("BigInt not supported")}})(ho)),ho}var yo,fp;function VR(){if(fp)return yo;fp=1;var e=BR().Buffer,t=Ve(),r=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
32
+ \r`;function n(c){if(c===null)return!1;var p,u,f=0,m=c.length,y=r;for(u=0;u<m;u++)if(p=y.indexOf(c.charAt(u)),!(p>64)){if(p<0)return!1;f+=6}return f%8===0}function i(c){var p,u,f=c.replace(/[\r\n=]/g,""),m=f.length,y=r,h=0,O=[];for(p=0;p<m;p++)p%4===0&&p&&(O.push(h>>16&255),O.push(h>>8&255),O.push(h&255)),h=h<<6|y.indexOf(f.charAt(p));return u=m%4*6,u===0?(O.push(h>>16&255),O.push(h>>8&255),O.push(h&255)):u===18?(O.push(h>>10&255),O.push(h>>2&255)):u===12&&O.push(h>>4&255),e?new e(O):O}function o(c){var p="",u=0,f,m,y=c.length,h=r;for(f=0;f<y;f++)f%3===0&&f&&(p+=h[u>>18&63],p+=h[u>>12&63],p+=h[u>>6&63],p+=h[u&63]),u=(u<<8)+c[f];return m=y%3,m===0?(p+=h[u>>18&63],p+=h[u>>12&63],p+=h[u>>6&63],p+=h[u&63]):m===2?(p+=h[u>>10&63],p+=h[u>>4&63],p+=h[u<<2&63],p+=h[64]):m===1&&(p+=h[u>>2&63],p+=h[u<<4&63],p+=h[64],p+=h[64]),p}function a(c){return e&&e.isBuffer(c)}return yo=new t.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:n,construct:i,predicate:a,represent:o}),yo}var go,mp;function HR(){if(mp)return go;mp=1;var e=Ve(),t=Object.prototype.hasOwnProperty,r=Object.prototype.toString;function n(o){if(o===null)return!0;var a=[],c,p,u,f,m,y=o;for(c=0,p=y.length;c<p;c+=1){if(u=y[c],m=!1,r.call(u)!=="[object Object]")return!1;for(f in u)if(t.call(u,f))if(!m)m=!0;else return!1;if(!m)return!1;if(a.indexOf(f)===-1)a.push(f);else return!1}return!0}function i(o){return o!==null?o:[]}return go=new e.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:n,construct:i}),go}var bo,hp;function KR(){if(hp)return bo;hp=1;var e=Ve(),t=$i(),r=Object.prototype.toString;function n(o){if(o===null)return!0;if(o.kind!=t.Kind.SEQ)return!1;var a,c,p,u=o.items;for(a=0,c=u.length;a<c;a+=1)if(p=u[a],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 a,c,p,u=o.items;for(p=t.newItems(),p.parent=o.parent,p.startPosition=o.startPosition,p.endPosition=o.endPosition,a=0,c=u.length;a<c;a+=1){var f=u[a],m=f.mappings[0],y=t.newItems();y.parent=p,y.startPosition=m.key.startPosition,y.endPosition=m.value.startPosition,m.key.parent=y,m.value.parent=y,y.items=[m.key,m.value],p.items.push(y)}return p}return bo=new e.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:n,construct:i}),bo}var vo,yp;function WR(){if(yp)return vo;yp=1;var e=Ve(),t=$i();function r(i){return i===null?!0:i.kind==t.Kind.MAP}function n(i){return i!==null?i:{}}return vo=new e.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:r,construct:n}),vo}var wo,gp;function ms(){if(gp)return wo;gp=1;var e=Or(),t=new e.Schema({include:[NR()],implicit:[LR(),UR()],explicit:[VR(),HR(),KR(),WR()]});return wo=t,wo}var xo,bp;function QR(){if(bp)return xo;bp=1;var e=Ve();function t(){return!0}function r(){}function n(){return""}function i(o){return typeof o>"u"}return xo=new e.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),xo}var Po,vp;function GR(){if(vp)return Po;vp=1;var e=Ve();function t(o){if(o===null||o.length===0)return!1;var a=o,c=/\/([gim]*)$/.exec(o),p="";if(a[0]==="/"){if(c&&(p=c[1]),p.length>3||a[a.length-p.length-1]!=="/")return!1;a=a.slice(1,a.length-p.length-1)}try{var u=new RegExp(a,p);return!0}catch{return!1}}function r(o){var a=o,c=/\/([gim]*)$/.exec(o),p="";return a[0]==="/"&&(c&&(p=c[1]),a=a.slice(1,a.length-p.length-1)),new RegExp(a,p)}function n(o){var a="/"+o.source+"/";return o.global&&(a+="g"),o.multiline&&(a+="m"),o.ignoreCase&&(a+="i"),a}function i(o){return Object.prototype.toString.call(o)==="[object RegExp]"}return Po=new e.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:t,construct:r,predicate:i,represent:n}),Po}var So,wp;function cd(){if(wp)return So;wp=1;var e=Or(),t=new e.Schema({include:[ms()],explicit:[QR(),GR()]});return e.Schema.DEFAULT=t,So=t,So}var xp;function YR(){if(xp)return et;xp=1,Object.defineProperty(et,"__esModule",{value:!0});var e=$i(),t=Wt(),r=Er(),n=$R(),i=ms(),o=cd(),a=Object.prototype.hasOwnProperty,c=1,p=2,u=3,f=4,m=1,y=2,h=3,O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,w=/[\x85\u2028\u2029]/,P=/[,\[\]\{\}]/,E=/^(?:!|!!|![a-z\-]+!)$/i,x=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function v(s){return s===10||s===13}function $(s){return s===9||s===32}function g(s){return s===9||s===32||s===10||s===13}function T(s){return s===44||s===91||s===93||s===123||s===125}function j(s){var l;return 48<=s&&s<=57?s-48:(l=s|32,97<=l&&l<=102?l-97+10:-1)}function B(s){return s===120?2:s===117?4:s===85?8:0}function V(s){return 48<=s&&s<=57?s-48:-1}function G(s){return s===48?"\0":s===97?"\x07":s===98?"\b":s===116||s===9?" ":s===110?`
33
+ `:s===118?"\v":s===102?"\f":s===114?"\r":s===101?"\x1B":s===32?" ":s===34?'"':s===47?"/":s===92?"\\":s===78?"…":s===95?" ":s===76?"\u2028":s===80?"\u2029":""}function J(s){return s<=65535?String.fromCharCode(s):String.fromCharCode((s-65536>>10)+55296,(s-65536&1023)+56320)}for(var oe=new Array(256),Q=new Array(256),X=new Array(256),me=new Array(256),xe=0;xe<256;xe++)me[xe]=Q[xe]=G(xe),oe[xe]=Q[xe]?1:0,X[xe]=1,oe[xe]||(me[xe]="\\"+String.fromCharCode(xe));var Te=(function(){function s(l,d){this.errorMap={},this.errors=[],this.lines=[],this.input=l,this.filename=d.filename||null,this.schema=d.schema||o,this.onWarning=d.onWarning||null,this.legacy=d.legacy||!1,this.allowAnyEscape=d.allowAnyEscape||!1,this.ignoreDuplicateKeys=d.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=l.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return s})();function fe(s,l,d){return d===void 0&&(d=!1),new r(l,new n(s.filename,s.input,s.position,s.line,s.position-s.lineStart),d)}function Pe(s,l,d,A,C){A===void 0&&(A=!1),C===void 0&&(C=!1);var M=F(s,l);if(M){var L=d+l;if(!s.errorMap[L]){var ee=new n(s.filename,s.input,l,M.line,l-M.start);C&&(ee.toLineEnd=!0);var ie=new r(d,ee,A);s.errors.push(ie)}}}function R(s,l){var d=fe(s,l),A=d.message+d.mark.position;if(!s.errorMap[A]){s.errors.push(d),s.errorMap[A]=1;for(var C=s.position;;){if(s.position>=s.input.length-1)return;var M=s.input.charAt(s.position);if(M==`
34
+ `){s.position--,s.position==C&&(s.position+=1);return}if(M=="\r"){s.position--,s.position==C&&(s.position+=1);return}s.position++}}}function S(s,l){var d=fe(s,l);s.onWarning&&s.onWarning.call(null,d)}var k={YAML:function(l,d,A){var C,M,L;l.version!==null&&R(l,"duplication of %YAML directive"),A.length!==1&&R(l,"YAML directive accepts exactly one argument"),C=/^([0-9]+)\.([0-9]+)$/.exec(A[0]),C===null&&R(l,"ill-formed argument of the YAML directive"),M=parseInt(C[1],10),L=parseInt(C[2],10),M!==1&&R(l,"found incompatible YAML document (version 1.2 is required)"),l.version=A[0],l.checkLineBreaks=L<2,L!==2&&R(l,"found incompatible YAML document (version 1.2 is required)")},TAG:function(l,d,A){var C,M;A.length!==2&&R(l,"TAG directive accepts exactly two arguments"),C=A[0],M=A[1],E.test(C)||R(l,"ill-formed tag handle (first argument) of the TAG directive"),a.call(l.tagMap,C)&&R(l,'there is a previously declared suffix for "'+C+'" tag handle'),x.test(M)||R(l,"ill-formed tag prefix (second argument) of the TAG directive"),l.tagMap[C]=M}};function _(s,l,d,A){var C,M,L,ee,ie=s.result;if(ie.startPosition==-1&&(ie.startPosition=l),l<=d){if(ee=s.input.slice(l,d),A)for(C=0,M=ee.length;C<M;C+=1)L=ee.charCodeAt(C),L===9||32<=L&&L<=1114111||R(s,"expected valid JSON character");else O.test(ee)&&R(s,"the stream contains non-printable characters");ie.value+=ee,ie.endPosition=d}}function b(s,l,d,A,C){if(A!=null){l===null&&(l={startPosition:A.startPosition,endPosition:C.endPosition,parent:null,errors:[],mappings:[],kind:e.Kind.MAP});var M=e.newMapping(A,C);return M.parent=l,A.parent=M,C!=null&&(C.parent=M),!s.ignoreDuplicateKeys&&l.mappings.forEach(function(L){L.key&&L.key.value===(M.key&&M.key.value)&&(Pe(s,M.key.startPosition,"duplicate key"),Pe(s,L.key.startPosition,"duplicate key"))}),l.mappings.push(M),l.endPosition=C?C.endPosition:A.endPosition+1,l}}function q(s){var l;l=s.input.charCodeAt(s.position),l===10?s.position++:l===13?(s.position++,s.input.charCodeAt(s.position)===10&&s.position++):R(s,"a line break is expected"),s.line+=1,s.lineStart=s.position,s.lines.push({start:s.lineStart,line:s.line})}function F(s,l){for(var d,A=0;A<s.lines.length&&!(s.lines[A].start>l);A++)d=s.lines[A];return d||{start:0,line:0}}function U(s,l,d){for(var A=0,C=s.input.charCodeAt(s.position);C!==0;){for(;$(C);)C===9&&s.errors.push(fe(s,"Using tabs can lead to unpredictable results",!0)),C=s.input.charCodeAt(++s.position);if(l&&C===35)do C=s.input.charCodeAt(++s.position);while(C!==10&&C!==13&&C!==0);if(v(C))for(q(s),C=s.input.charCodeAt(s.position),A++,s.lineIndent=0;C===32;)s.lineIndent++,C=s.input.charCodeAt(++s.position);else break}return d!==-1&&A!==0&&s.lineIndent<d&&S(s,"deficient indentation"),A}function Y(s){var l=s.position,d;return d=s.input.charCodeAt(l),!!((d===45||d===46)&&s.input.charCodeAt(l+1)===d&&s.input.charCodeAt(l+2)===d&&(l+=3,d=s.input.charCodeAt(l),d===0||g(d)))}function le(s,l,d){d===1?l.value+=" ":d>1&&(l.value+=t.repeat(`
35
+ `,d-1))}function he(s,l,d){var A,C,M,L,ee,ie,ge,se,de=s.kind,ke=s.result,ve,Oe=e.newScalar();if(Oe.plainScalar=!0,s.result=Oe,ve=s.input.charCodeAt(s.position),g(ve)||T(ve)||ve===35||ve===38||ve===42||ve===33||ve===124||ve===62||ve===39||ve===34||ve===37||ve===64||ve===96||(ve===63||ve===45)&&(C=s.input.charCodeAt(s.position+1),g(C)||d&&T(C)))return!1;for(s.kind="scalar",M=L=s.position,ee=!1;ve!==0;){if(ve===58){if(C=s.input.charCodeAt(s.position+1),g(C)||d&&T(C))break}else if(ve===35){if(A=s.input.charCodeAt(s.position-1),g(A))break}else{if(s.position===s.lineStart&&Y(s)||d&&T(ve))break;if(v(ve))if(ie=s.line,ge=s.lineStart,se=s.lineIndent,U(s,!1,-1),s.lineIndent>=l){ee=!0,ve=s.input.charCodeAt(s.position);continue}else{s.position=L,s.line=ie,s.lineStart=ge,s.lineIndent=se;break}}if(ee&&(_(s,M,L,!1),le(s,Oe,s.line-ie),M=L=s.position,ee=!1),$(ve)||(L=s.position+1),ve=s.input.charCodeAt(++s.position),s.position>=s.input.length)return!1}return _(s,M,L,!1),s.result.startPosition!=-1?(Oe.rawValue=s.input.substring(Oe.startPosition,Oe.endPosition),!0):(s.kind=de,s.result=ke,!1)}function N(s,l){var d,A,C;if(d=s.input.charCodeAt(s.position),d!==39)return!1;var M=e.newScalar();for(M.singleQuoted=!0,s.kind="scalar",s.result=M,M.startPosition=s.position,s.position++,A=C=s.position;(d=s.input.charCodeAt(s.position))!==0;)if(d===39)if(_(s,A,s.position,!0),d=s.input.charCodeAt(++s.position),M.endPosition=s.position,d===39)A=C=s.position,s.position++;else return!0;else v(d)?(_(s,A,C,!0),le(s,M,U(s,!1,l)),A=C=s.position):s.position===s.lineStart&&Y(s)?R(s,"unexpected end of the document within a single quoted scalar"):(s.position++,C=s.position,M.endPosition=s.position);R(s,"unexpected end of the stream within a single quoted scalar")}function z(s,l){var d,A,C,M,L,ee;if(ee=s.input.charCodeAt(s.position),ee!==34)return!1;s.kind="scalar";var ie=e.newScalar();for(ie.doubleQuoted=!0,s.result=ie,ie.startPosition=s.position,s.position++,d=A=s.position;(ee=s.input.charCodeAt(s.position))!==0;){if(ee===34)return _(s,d,s.position,!0),s.position++,ie.endPosition=s.position,ie.rawValue=s.input.substring(ie.startPosition,ie.endPosition),!0;if(ee===92){if(_(s,d,s.position,!0),ee=s.input.charCodeAt(++s.position),v(ee))U(s,!1,l);else if(ee<256&&(s.allowAnyEscape?X[ee]:oe[ee]))ie.value+=s.allowAnyEscape?me[ee]:Q[ee],s.position++;else if((L=B(ee))>0){for(C=L,M=0;C>0;C--)ee=s.input.charCodeAt(++s.position),(L=j(ee))>=0?M=(M<<4)+L:R(s,"expected hexadecimal character");ie.value+=J(M),s.position++}else R(s,"unknown escape sequence");d=A=s.position}else v(ee)?(_(s,d,A,!0),le(s,ie,U(s,!1,l)),d=A=s.position):s.position===s.lineStart&&Y(s)?R(s,"unexpected end of the document within a double quoted scalar"):(s.position++,A=s.position)}R(s,"unexpected end of the stream within a double quoted scalar")}function H(s,l){var d=!0,A,C=s.tag,M,L=s.anchor,ee,ie,ge,se,de,ke,ve,Oe,Ne;if(Ne=s.input.charCodeAt(s.position),Ne===91)ie=93,de=!1,M=e.newItems(),M.startPosition=s.position;else if(Ne===123)ie=125,de=!0,M=e.newMap(),M.startPosition=s.position;else return!1;for(s.anchor!==null&&(M.anchorId=s.anchor,s.anchorMap[s.anchor]=M),Ne=s.input.charCodeAt(++s.position);Ne!==0;){if(U(s,!0,l),Ne=s.input.charCodeAt(s.position),Ne===ie)return s.position++,s.tag=C,s.anchor=L,s.kind=de?"mapping":"sequence",s.result=M,M.endPosition=s.position,!0;if(!d){var _i=s.position;R(s,"missed comma between flow collection entries"),s.position=_i+1}if(ve=ke=Oe=null,ge=se=!1,Ne===63&&(ee=s.input.charCodeAt(s.position+1),g(ee)&&(ge=se=!0,s.position++,U(s,!0,l))),A=s.line,te(s,l,c,!1,!0),ve=s.tag,ke=s.result,U(s,!0,l),Ne=s.input.charCodeAt(s.position),(se||s.line===A)&&Ne===58&&(ge=!0,Ne=s.input.charCodeAt(++s.position),U(s,!0,l),te(s,l,c,!1,!0),Oe=s.result),de)b(s,M,ve,ke,Oe);else if(ge){var Rr=b(s,null,ve,ke,Oe);Rr.parent=M,M.items.push(Rr)}else ke&&(ke.parent=M),M.items.push(ke);M.endPosition=s.position+1,U(s,!0,l),Ne=s.input.charCodeAt(s.position),Ne===44?(d=!0,Ne=s.input.charCodeAt(++s.position)):d=!1}R(s,"unexpected end of the stream within a flow collection")}function Z(s,l){var d,A,C=m,M=!1,L=l,ee=0,ie=!1,ge,se;if(se=s.input.charCodeAt(s.position),se===124)A=!1;else if(se===62)A=!0;else return!1;var de=e.newScalar();for(s.kind="scalar",s.result=de,de.startPosition=s.position;se!==0;)if(se=s.input.charCodeAt(++s.position),se===43||se===45)m===C?C=se===43?h:y:R(s,"repeat of a chomping mode identifier");else if((ge=V(se))>=0)ge===0?R(s,"bad explicit indentation width of a block scalar; it cannot be less than one"):M?R(s,"repeat of an indentation width identifier"):(L=l+ge-1,M=!0);else break;if($(se)){do se=s.input.charCodeAt(++s.position);while($(se));if(se===35)do se=s.input.charCodeAt(++s.position);while(!v(se)&&se!==0)}for(;se!==0;){for(q(s),s.lineIndent=0,se=s.input.charCodeAt(s.position);(!M||s.lineIndent<L)&&se===32;)s.lineIndent++,se=s.input.charCodeAt(++s.position);if(!M&&s.lineIndent>L&&(L=s.lineIndent),v(se)){ee++;continue}if(s.lineIndent<L){C===h?de.value+=t.repeat(`
36
36
  `,ee):C===m&&M&&(de.value+=`
37
- `);break}for(R?$(se)?(ie=!0,de.value+=t.repeat(`
37
+ `);break}for(A?$(se)?(ie=!0,de.value+=t.repeat(`
38
38
  `,ee+1)):ie?(ie=!1,de.value+=t.repeat(`
39
39
  `,ee+1)):ee===0?M&&(de.value+=" "):de.value+=t.repeat(`
40
40
  `,ee):M&&(de.value+=t.repeat(`
41
41
  `,ee+1)),M=!0,ee=0,d=s.position;!v(se)&&se!==0;)se=s.input.charCodeAt(++s.position);_(s,d,s.position,!1)}de.endPosition=s.position;for(var ke=s.position-1;;){var ve=s.input[ke];if(ve=="\r"||ve==`
42
- `||ve!=" "&&ve!=" ")break;ke--}return de.endPosition=ke,de.rawValue=s.input.substring(de.startPosition,de.endPosition),!0}function ae(s,l){var d,R=s.tag,C=s.anchor,M=e.newItems(),L,ee=!1,ie;for(s.anchor!==null&&(M.anchorId=s.anchor,s.anchorMap[s.anchor]=M),M.startPosition=s.position,ie=s.input.charCodeAt(s.position);ie!==0&&!(ie!==45||(L=s.input.charCodeAt(s.position+1),!g(L)));){if(ee=!0,s.position++,U(s,!0,-1)&&s.lineIndent<=l){M.items.push(null),ie=s.input.charCodeAt(s.position);continue}if(d=s.line,te(s,l,u,!1,!0),s.result&&(s.result.parent=M,M.items.push(s.result)),U(s,!0,-1),ie=s.input.charCodeAt(s.position),(s.line===d||s.lineIndent>l)&&ie!==0)A(s,"bad indentation of a sequence entry");else if(s.lineIndent<l)break}return M.endPosition=s.position,ee?(s.tag=R,s.anchor=C,s.kind="sequence",s.result=M,M.endPosition=s.position,!0):!1}function ye(s,l,d){var R,C,M,L=s.tag,ee=s.anchor,ie=e.newMap(),ge=null,se=null,de=null,ke=!1,ve=!1,Oe;for(ie.startPosition=s.position,s.anchor!==null&&(ie.anchorId=s.anchor,s.anchorMap[s.anchor]=ie),Oe=s.input.charCodeAt(s.position);Oe!==0;){if(R=s.input.charCodeAt(s.position+1),M=s.line,(Oe===63||Oe===58)&&g(R))Oe===63?(ke&&(b(s,ie,ge,se,null),ge=se=de=null),ve=!0,ke=!0,C=!0):ke?(ke=!1,C=!0):A(s,"incomplete explicit mapping pair; a key node is missed"),s.position+=1,Oe=R;else if(te(s,d,p,!1,!0))if(s.line===M){for(Oe=s.input.charCodeAt(s.position);$(Oe);)Oe=s.input.charCodeAt(++s.position);if(Oe===58)Oe=s.input.charCodeAt(++s.position),g(Oe)||A(s,"a whitespace character is expected after the key-value separator within a block mapping"),ke&&(b(s,ie,ge,se,null),ge=se=de=null),ve=!0,ke=!1,C=!1,ge=s.tag,se=s.result;else{if(s.position==s.lineStart&&Y(s))break;if(ve)A(s,"can not read an implicit mapping pair; a colon is missed");else return s.tag=L,s.anchor=ee,!0}}else if(ve){for(A(s,"can not read a block mapping entry; a multiline key may not be an implicit key");s.position>0;)if(Oe=s.input.charCodeAt(--s.position),v(Oe)){s.position++;break}}else return s.tag=L,s.anchor=ee,!0;else break;if((s.line===M||s.lineIndent>l)&&(te(s,l,f,!0,C)&&(ke?se=s.result:de=s.result),ke||(b(s,ie,ge,se,de),ge=se=de=null),U(s,!0,-1),Oe=s.input.charCodeAt(s.position)),s.lineIndent>l&&Oe!==0)A(s,"bad indentation of a mapping entry");else if(s.lineIndent<l)break}return ke&&b(s,ie,ge,se,null),ve&&(s.tag=L,s.anchor=ee,s.kind="mapping",s.result=ie),ve}function D(s){var l,d=!1,R=!1,C,M,L;if(L=s.input.charCodeAt(s.position),L!==33)return!1;if(s.tag!==null&&A(s,"duplication of a tag property"),L=s.input.charCodeAt(++s.position),L===60?(d=!0,L=s.input.charCodeAt(++s.position)):L===33?(R=!0,C="!!",L=s.input.charCodeAt(++s.position)):C="!",l=s.position,d){do L=s.input.charCodeAt(++s.position);while(L!==0&&L!==62);s.position<s.length?(M=s.input.slice(l,s.position),L=s.input.charCodeAt(++s.position)):A(s,"unexpected end of the stream within a verbatim tag")}else{for(;L!==0&&!g(L);)L===33&&(R?A(s,"tag suffix cannot contain exclamation marks"):(C=s.input.slice(l-1,s.position+1),E.test(C)||A(s,"named tag handle cannot contain such characters"),R=!0,l=s.position+1)),L=s.input.charCodeAt(++s.position);M=s.input.slice(l,s.position),S.test(M)&&A(s,"tag suffix cannot contain flow indicator characters")}return M&&!x.test(M)&&A(s,"tag name cannot contain such characters: "+M),d?s.tag=M:a.call(s.tagMap,C)?s.tag=s.tagMap[C]+M:C==="!"?s.tag="!"+M:C==="!!"?s.tag="tag:yaml.org,2002:"+M:A(s,'undeclared tag handle "'+C+'"'),!0}function W(s){var l,d;if(d=s.input.charCodeAt(s.position),d!==38)return!1;for(s.anchor!==null&&A(s,"duplication of an anchor property"),d=s.input.charCodeAt(++s.position),l=s.position;d!==0&&!g(d)&&!T(d);)d=s.input.charCodeAt(++s.position);return s.position===l&&A(s,"name of an anchor node must contain at least one character"),s.anchor=s.input.slice(l,s.position),!0}function ne(s){var l,d;s.length,s.input;var R;if(R=s.input.charCodeAt(s.position),R!==42)return!1;for(R=s.input.charCodeAt(++s.position),l=s.position;R!==0&&!g(R)&&!T(R);)R=s.input.charCodeAt(++s.position);return s.position<=l&&(A(s,"name of an alias node must contain at least one character"),s.position=l+1),d=s.input.slice(l,s.position),s.anchorMap.hasOwnProperty(d)||(A(s,'unidentified alias "'+d+'"'),s.position<=l&&(s.position=l+1)),s.result=e.newAnchorRef(d,l,s.position,s.anchorMap[d]),U(s,!0,-1),!0}function te(s,l,d,R,C){var M,L,ee,ie=1,ge=!1,se=!1,de,ke,ve,Oe,Ne;s.tag=null,s.anchor=null,s.kind=null,s.result=null,M=L=ee=f===d||u===d,R&&U(s,!0,-1)&&(ge=!0,s.lineIndent>l?ie=1:s.lineIndent===l?ie=0:s.lineIndent<l&&(ie=-1));var _i=s.position;if(s.position-s.lineStart,ie===1)for(;D(s)||W(s);)U(s,!0,-1)?(ge=!0,ee=M,s.lineIndent>l?ie=1:s.lineIndent===l?ie=0:s.lineIndent<l&&(ie=-1)):ee=!1;if(ee&&(ee=ge||C),(ie===1||f===d)&&(c===d||p===d?Oe=l:Oe=l+1,Ne=s.position-s.lineStart,ie===1?ee&&(ae(s,Ne)||ye(s,Ne,Oe))||H(s,Oe)?se=!0:(L&&Z(s,Oe)||N(s,Oe)||z(s,Oe)?se=!0:ne(s)?(se=!0,(s.tag!==null||s.anchor!==null)&&A(s,"alias node should not have any properties")):he(s,Oe,c===d)&&(se=!0,s.tag===null&&(s.tag="?")),s.anchor!==null&&(s.anchorMap[s.anchor]=s.result,s.result.anchorId=s.anchor)):ie===0&&(se=ee&&ae(s,Ne))),s.tag!==null&&s.tag!=="!")if(s.tag=="!include")s.result||(s.result=e.newScalar(),s.result.startPosition=s.position,s.result.endPosition=s.position,A(s,"!include without value")),s.result.kind=e.Kind.INCLUDE_REF;else if(s.tag==="?")for(de=0,ke=s.implicitTypes.length;de<ke;de+=1){ve=s.implicitTypes[de];var Ar=s.result.value;if(ve.resolve(Ar)){s.result.valueObject=ve.construct(s.result.value),s.tag=ve.tag,s.anchor!==null&&(s.result.anchorId=s.anchor,s.anchorMap[s.anchor]=s.result);break}}else a.call(s.typeMap,s.tag)?(ve=s.typeMap[s.tag],s.result!==null&&ve.kind!==s.kind&&A(s,"unacceptable node kind for !<"+s.tag+'> tag; it should be "'+ve.kind+'", not "'+s.kind+'"'),ve.resolve(s.result)?(s.result=ve.construct(s.result),s.anchor!==null&&(s.result.anchorId=s.anchor,s.anchorMap[s.anchor]=s.result)):A(s,"cannot resolve a node with !<"+s.tag+"> explicit tag")):Se(s,_i,"unknown tag <"+s.tag+">",!1,!0);return s.tag!==null||s.anchor!==null||se}function re(s){var l=s.position,d,R,C,M=!1,L;for(s.version=null,s.checkLineBreaks=s.legacy,s.tagMap={},s.anchorMap={};(L=s.input.charCodeAt(s.position))!==0&&(U(s,!0,-1),L=s.input.charCodeAt(s.position),!(s.lineIndent>0||L!==37));){for(M=!0,L=s.input.charCodeAt(++s.position),d=s.position;L!==0&&!g(L);)L=s.input.charCodeAt(++s.position);for(R=s.input.slice(d,s.position),C=[],R.length<1&&A(s,"directive name must not be less than one character in length");L!==0;){for(;$(L);)L=s.input.charCodeAt(++s.position);if(L===35){do L=s.input.charCodeAt(++s.position);while(L!==0&&!v(L));break}if(v(L))break;for(d=s.position;L!==0&&!g(L);)L=s.input.charCodeAt(++s.position);C.push(s.input.slice(d,s.position))}L!==0&&q(s),a.call(k,R)?k[R](s,R,C):(P(s,'unknown document directive "'+R+'"'),s.position++)}if(U(s,!0,-1),s.lineIndent===0&&s.input.charCodeAt(s.position)===45&&s.input.charCodeAt(s.position+1)===45&&s.input.charCodeAt(s.position+2)===45?(s.position+=3,U(s,!0,-1)):M&&A(s,"directives end mark is expected"),te(s,s.lineIndent-1,f,!1,!0),U(s,!0,-1),s.checkLineBreaks&&w.test(s.input.slice(l,s.position))&&P(s,"non-ASCII line breaks are interpreted as content"),s.documents.push(s.result),s.position===s.lineStart&&Y(s)){s.input.charCodeAt(s.position)===46&&(s.position+=3,U(s,!0,-1));return}if(s.position<s.length-1)A(s,"end of the stream or a document separator is expected");else return}function ce(s,l){s=String(s),l=l||{};var d=s.length;d!==0&&(s.charCodeAt(d-1)!==10&&s.charCodeAt(d-1)!==13&&(s+=`
43
- `),s.charCodeAt(0)===65279&&(s=s.slice(1)));var R=new Te(s,l);for(R.input+="\0";R.input.charCodeAt(R.position)===32;)R.lineIndent+=1,R.position+=1;for(;R.position<R.length-1;){var C=R.position;if(re(R),R.position<=C)for(;R.position<R.length-1;R.position++){var M=R.input.charAt(R.position);if(M==`
44
- `)break}}var L=R.documents,ee=L.length;ee>0&&(L[ee-1].endPosition=d);for(var ie=0,ge=L;ie<ge.length;ie++){var se=ge[ie];se.errors=R.errors,se.startPosition>se.endPosition&&(se.startPosition=se.endPosition)}return L}function pe(s,l,d){d===void 0&&(d={});var R=ce(s,d),C,M;for(C=0,M=R.length;C<M;C+=1)l(R[C])}et.loadAll=pe;function ue(s,l){l===void 0&&(l={});var d=ce(s,l);if(d.length!==0){if(d.length===1)return d[0];var R=new r("expected a single document in the stream, but found more");return R.mark=new n("","",0,0,0),R.mark.position=d[0].endPosition,d[0].errors.push(R),d[0]}}et.load=ue;function be(s,l,d){d===void 0&&(d={}),pe(s,l,t.extend({schema:i},d))}et.safeLoadAll=be;function je(s,l){return l===void 0&&(l={}),ue(s,t.extend({schema:i},l))}return et.safeLoad=je,et.loadAll=pe,et.load=ue,et.safeLoadAll=be,et.safeLoad=je,et}var tr={},Sp;function GA(){if(Sp)return tr;Sp=1,Object.defineProperty(tr,"__esModule",{value:!0});var e=Wt(),t=Er(),r=cd(),n=ms(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=9,c=10,p=13,u=32,f=33,m=34,y=35,h=37,O=38,w=39,S=42,E=44,x=45,v=58,$=62,g=63,T=64,j=91,B=93,V=96,G=123,J=124,oe=125,Q={};Q[0]="\\0",Q[7]="\\a",Q[8]="\\b",Q[9]="\\t",Q[10]="\\n",Q[11]="\\v",Q[12]="\\f",Q[13]="\\r",Q[27]="\\e",Q[34]='\\"',Q[92]="\\\\",Q[133]="\\N",Q[160]="\\_",Q[8232]="\\L",Q[8233]="\\P";var X=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function me(D,W){var ne,te,re,ce,pe,ue,be;if(W===null)return{};for(ne={},te=Object.keys(W),re=0,ce=te.length;re<ce;re+=1)pe=te[re],ue=String(W[pe]),pe.slice(0,2)==="!!"&&(pe="tag:yaml.org,2002:"+pe.slice(2)),be=D.compiledTypeMap[pe],be&&o.call(be.styleAliases,ue)&&(ue=be.styleAliases[ue]),ne[pe]=ue;return ne}function xe(D){var W,ne,te;if(W=D.toString(16).toUpperCase(),D<=255)ne="x",te=2;else if(D<=65535)ne="u",te=4;else if(D<=4294967295)ne="U",te=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+ne+e.repeat("0",te-W.length)+W}function Te(D){this.schema=D.schema||r,this.indent=Math.max(1,D.indent||2),this.skipInvalid=D.skipInvalid||!1,this.flowLevel=e.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=me(this.schema,D.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function fe(D,W){for(var ne=e.repeat(" ",W),te=0,re=-1,ce="",pe,ue=D.length;te<ue;)re=D.indexOf(`
42
+ `||ve!=" "&&ve!=" ")break;ke--}return de.endPosition=ke,de.rawValue=s.input.substring(de.startPosition,de.endPosition),!0}function ae(s,l){var d,A=s.tag,C=s.anchor,M=e.newItems(),L,ee=!1,ie;for(s.anchor!==null&&(M.anchorId=s.anchor,s.anchorMap[s.anchor]=M),M.startPosition=s.position,ie=s.input.charCodeAt(s.position);ie!==0&&!(ie!==45||(L=s.input.charCodeAt(s.position+1),!g(L)));){if(ee=!0,s.position++,U(s,!0,-1)&&s.lineIndent<=l){M.items.push(null),ie=s.input.charCodeAt(s.position);continue}if(d=s.line,te(s,l,u,!1,!0),s.result&&(s.result.parent=M,M.items.push(s.result)),U(s,!0,-1),ie=s.input.charCodeAt(s.position),(s.line===d||s.lineIndent>l)&&ie!==0)R(s,"bad indentation of a sequence entry");else if(s.lineIndent<l)break}return M.endPosition=s.position,ee?(s.tag=A,s.anchor=C,s.kind="sequence",s.result=M,M.endPosition=s.position,!0):!1}function ye(s,l,d){var A,C,M,L=s.tag,ee=s.anchor,ie=e.newMap(),ge=null,se=null,de=null,ke=!1,ve=!1,Oe;for(ie.startPosition=s.position,s.anchor!==null&&(ie.anchorId=s.anchor,s.anchorMap[s.anchor]=ie),Oe=s.input.charCodeAt(s.position);Oe!==0;){if(A=s.input.charCodeAt(s.position+1),M=s.line,(Oe===63||Oe===58)&&g(A))Oe===63?(ke&&(b(s,ie,ge,se,null),ge=se=de=null),ve=!0,ke=!0,C=!0):ke?(ke=!1,C=!0):R(s,"incomplete explicit mapping pair; a key node is missed"),s.position+=1,Oe=A;else if(te(s,d,p,!1,!0))if(s.line===M){for(Oe=s.input.charCodeAt(s.position);$(Oe);)Oe=s.input.charCodeAt(++s.position);if(Oe===58)Oe=s.input.charCodeAt(++s.position),g(Oe)||R(s,"a whitespace character is expected after the key-value separator within a block mapping"),ke&&(b(s,ie,ge,se,null),ge=se=de=null),ve=!0,ke=!1,C=!1,ge=s.tag,se=s.result;else{if(s.position==s.lineStart&&Y(s))break;if(ve)R(s,"can not read an implicit mapping pair; a colon is missed");else return s.tag=L,s.anchor=ee,!0}}else if(ve){for(R(s,"can not read a block mapping entry; a multiline key may not be an implicit key");s.position>0;)if(Oe=s.input.charCodeAt(--s.position),v(Oe)){s.position++;break}}else return s.tag=L,s.anchor=ee,!0;else break;if((s.line===M||s.lineIndent>l)&&(te(s,l,f,!0,C)&&(ke?se=s.result:de=s.result),ke||(b(s,ie,ge,se,de),ge=se=de=null),U(s,!0,-1),Oe=s.input.charCodeAt(s.position)),s.lineIndent>l&&Oe!==0)R(s,"bad indentation of a mapping entry");else if(s.lineIndent<l)break}return ke&&b(s,ie,ge,se,null),ve&&(s.tag=L,s.anchor=ee,s.kind="mapping",s.result=ie),ve}function D(s){var l,d=!1,A=!1,C,M,L;if(L=s.input.charCodeAt(s.position),L!==33)return!1;if(s.tag!==null&&R(s,"duplication of a tag property"),L=s.input.charCodeAt(++s.position),L===60?(d=!0,L=s.input.charCodeAt(++s.position)):L===33?(A=!0,C="!!",L=s.input.charCodeAt(++s.position)):C="!",l=s.position,d){do L=s.input.charCodeAt(++s.position);while(L!==0&&L!==62);s.position<s.length?(M=s.input.slice(l,s.position),L=s.input.charCodeAt(++s.position)):R(s,"unexpected end of the stream within a verbatim tag")}else{for(;L!==0&&!g(L);)L===33&&(A?R(s,"tag suffix cannot contain exclamation marks"):(C=s.input.slice(l-1,s.position+1),E.test(C)||R(s,"named tag handle cannot contain such characters"),A=!0,l=s.position+1)),L=s.input.charCodeAt(++s.position);M=s.input.slice(l,s.position),P.test(M)&&R(s,"tag suffix cannot contain flow indicator characters")}return M&&!x.test(M)&&R(s,"tag name cannot contain such characters: "+M),d?s.tag=M:a.call(s.tagMap,C)?s.tag=s.tagMap[C]+M:C==="!"?s.tag="!"+M:C==="!!"?s.tag="tag:yaml.org,2002:"+M:R(s,'undeclared tag handle "'+C+'"'),!0}function W(s){var l,d;if(d=s.input.charCodeAt(s.position),d!==38)return!1;for(s.anchor!==null&&R(s,"duplication of an anchor property"),d=s.input.charCodeAt(++s.position),l=s.position;d!==0&&!g(d)&&!T(d);)d=s.input.charCodeAt(++s.position);return s.position===l&&R(s,"name of an anchor node must contain at least one character"),s.anchor=s.input.slice(l,s.position),!0}function ne(s){var l,d;s.length,s.input;var A;if(A=s.input.charCodeAt(s.position),A!==42)return!1;for(A=s.input.charCodeAt(++s.position),l=s.position;A!==0&&!g(A)&&!T(A);)A=s.input.charCodeAt(++s.position);return s.position<=l&&(R(s,"name of an alias node must contain at least one character"),s.position=l+1),d=s.input.slice(l,s.position),s.anchorMap.hasOwnProperty(d)||(R(s,'unidentified alias "'+d+'"'),s.position<=l&&(s.position=l+1)),s.result=e.newAnchorRef(d,l,s.position,s.anchorMap[d]),U(s,!0,-1),!0}function te(s,l,d,A,C){var M,L,ee,ie=1,ge=!1,se=!1,de,ke,ve,Oe,Ne;s.tag=null,s.anchor=null,s.kind=null,s.result=null,M=L=ee=f===d||u===d,A&&U(s,!0,-1)&&(ge=!0,s.lineIndent>l?ie=1:s.lineIndent===l?ie=0:s.lineIndent<l&&(ie=-1));var _i=s.position;if(s.position-s.lineStart,ie===1)for(;D(s)||W(s);)U(s,!0,-1)?(ge=!0,ee=M,s.lineIndent>l?ie=1:s.lineIndent===l?ie=0:s.lineIndent<l&&(ie=-1)):ee=!1;if(ee&&(ee=ge||C),(ie===1||f===d)&&(c===d||p===d?Oe=l:Oe=l+1,Ne=s.position-s.lineStart,ie===1?ee&&(ae(s,Ne)||ye(s,Ne,Oe))||H(s,Oe)?se=!0:(L&&Z(s,Oe)||N(s,Oe)||z(s,Oe)?se=!0:ne(s)?(se=!0,(s.tag!==null||s.anchor!==null)&&R(s,"alias node should not have any properties")):he(s,Oe,c===d)&&(se=!0,s.tag===null&&(s.tag="?")),s.anchor!==null&&(s.anchorMap[s.anchor]=s.result,s.result.anchorId=s.anchor)):ie===0&&(se=ee&&ae(s,Ne))),s.tag!==null&&s.tag!=="!")if(s.tag=="!include")s.result||(s.result=e.newScalar(),s.result.startPosition=s.position,s.result.endPosition=s.position,R(s,"!include without value")),s.result.kind=e.Kind.INCLUDE_REF;else if(s.tag==="?")for(de=0,ke=s.implicitTypes.length;de<ke;de+=1){ve=s.implicitTypes[de];var Rr=s.result.value;if(ve.resolve(Rr)){s.result.valueObject=ve.construct(s.result.value),s.tag=ve.tag,s.anchor!==null&&(s.result.anchorId=s.anchor,s.anchorMap[s.anchor]=s.result);break}}else a.call(s.typeMap,s.tag)?(ve=s.typeMap[s.tag],s.result!==null&&ve.kind!==s.kind&&R(s,"unacceptable node kind for !<"+s.tag+'> tag; it should be "'+ve.kind+'", not "'+s.kind+'"'),ve.resolve(s.result)?(s.result=ve.construct(s.result),s.anchor!==null&&(s.result.anchorId=s.anchor,s.anchorMap[s.anchor]=s.result)):R(s,"cannot resolve a node with !<"+s.tag+"> explicit tag")):Pe(s,_i,"unknown tag <"+s.tag+">",!1,!0);return s.tag!==null||s.anchor!==null||se}function re(s){var l=s.position,d,A,C,M=!1,L;for(s.version=null,s.checkLineBreaks=s.legacy,s.tagMap={},s.anchorMap={};(L=s.input.charCodeAt(s.position))!==0&&(U(s,!0,-1),L=s.input.charCodeAt(s.position),!(s.lineIndent>0||L!==37));){for(M=!0,L=s.input.charCodeAt(++s.position),d=s.position;L!==0&&!g(L);)L=s.input.charCodeAt(++s.position);for(A=s.input.slice(d,s.position),C=[],A.length<1&&R(s,"directive name must not be less than one character in length");L!==0;){for(;$(L);)L=s.input.charCodeAt(++s.position);if(L===35){do L=s.input.charCodeAt(++s.position);while(L!==0&&!v(L));break}if(v(L))break;for(d=s.position;L!==0&&!g(L);)L=s.input.charCodeAt(++s.position);C.push(s.input.slice(d,s.position))}L!==0&&q(s),a.call(k,A)?k[A](s,A,C):(S(s,'unknown document directive "'+A+'"'),s.position++)}if(U(s,!0,-1),s.lineIndent===0&&s.input.charCodeAt(s.position)===45&&s.input.charCodeAt(s.position+1)===45&&s.input.charCodeAt(s.position+2)===45?(s.position+=3,U(s,!0,-1)):M&&R(s,"directives end mark is expected"),te(s,s.lineIndent-1,f,!1,!0),U(s,!0,-1),s.checkLineBreaks&&w.test(s.input.slice(l,s.position))&&S(s,"non-ASCII line breaks are interpreted as content"),s.documents.push(s.result),s.position===s.lineStart&&Y(s)){s.input.charCodeAt(s.position)===46&&(s.position+=3,U(s,!0,-1));return}if(s.position<s.length-1)R(s,"end of the stream or a document separator is expected");else return}function ce(s,l){s=String(s),l=l||{};var d=s.length;d!==0&&(s.charCodeAt(d-1)!==10&&s.charCodeAt(d-1)!==13&&(s+=`
43
+ `),s.charCodeAt(0)===65279&&(s=s.slice(1)));var A=new Te(s,l);for(A.input+="\0";A.input.charCodeAt(A.position)===32;)A.lineIndent+=1,A.position+=1;for(;A.position<A.length-1;){var C=A.position;if(re(A),A.position<=C)for(;A.position<A.length-1;A.position++){var M=A.input.charAt(A.position);if(M==`
44
+ `)break}}var L=A.documents,ee=L.length;ee>0&&(L[ee-1].endPosition=d);for(var ie=0,ge=L;ie<ge.length;ie++){var se=ge[ie];se.errors=A.errors,se.startPosition>se.endPosition&&(se.startPosition=se.endPosition)}return L}function pe(s,l,d){d===void 0&&(d={});var A=ce(s,d),C,M;for(C=0,M=A.length;C<M;C+=1)l(A[C])}et.loadAll=pe;function ue(s,l){l===void 0&&(l={});var d=ce(s,l);if(d.length!==0){if(d.length===1)return d[0];var A=new r("expected a single document in the stream, but found more");return A.mark=new n("","",0,0,0),A.mark.position=d[0].endPosition,d[0].errors.push(A),d[0]}}et.load=ue;function be(s,l,d){d===void 0&&(d={}),pe(s,l,t.extend({schema:i},d))}et.safeLoadAll=be;function je(s,l){return l===void 0&&(l={}),ue(s,t.extend({schema:i},l))}return et.safeLoad=je,et.loadAll=pe,et.load=ue,et.safeLoadAll=be,et.safeLoad=je,et}var tr={},Pp;function JR(){if(Pp)return tr;Pp=1,Object.defineProperty(tr,"__esModule",{value:!0});var e=Wt(),t=Er(),r=cd(),n=ms(),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=9,c=10,p=13,u=32,f=33,m=34,y=35,h=37,O=38,w=39,P=42,E=44,x=45,v=58,$=62,g=63,T=64,j=91,B=93,V=96,G=123,J=124,oe=125,Q={};Q[0]="\\0",Q[7]="\\a",Q[8]="\\b",Q[9]="\\t",Q[10]="\\n",Q[11]="\\v",Q[12]="\\f",Q[13]="\\r",Q[27]="\\e",Q[34]='\\"',Q[92]="\\\\",Q[133]="\\N",Q[160]="\\_",Q[8232]="\\L",Q[8233]="\\P";var X=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function me(D,W){var ne,te,re,ce,pe,ue,be;if(W===null)return{};for(ne={},te=Object.keys(W),re=0,ce=te.length;re<ce;re+=1)pe=te[re],ue=String(W[pe]),pe.slice(0,2)==="!!"&&(pe="tag:yaml.org,2002:"+pe.slice(2)),be=D.compiledTypeMap[pe],be&&o.call(be.styleAliases,ue)&&(ue=be.styleAliases[ue]),ne[pe]=ue;return ne}function xe(D){var W,ne,te;if(W=D.toString(16).toUpperCase(),D<=255)ne="x",te=2;else if(D<=65535)ne="u",te=4;else if(D<=4294967295)ne="U",te=8;else throw new t("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+ne+e.repeat("0",te-W.length)+W}function Te(D){this.schema=D.schema||r,this.indent=Math.max(1,D.indent||2),this.skipInvalid=D.skipInvalid||!1,this.flowLevel=e.isNothing(D.flowLevel)?-1:D.flowLevel,this.styleMap=me(this.schema,D.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function fe(D,W){for(var ne=e.repeat(" ",W),te=0,re=-1,ce="",pe,ue=D.length;te<ue;)re=D.indexOf(`
45
45
  `,te),re===-1?(pe=D.slice(te),te=ue):(pe=D.slice(te,re+1),te=re+1),pe.length&&pe!==`
46
- `&&(ce+=ne),ce+=pe;return ce}function Se(D,W){return`
47
- `+e.repeat(" ",D.indent*W)}function A(D,W){var ne,te,re;for(ne=0,te=D.implicitTypes.length;ne<te;ne+=1)if(re=D.implicitTypes[ne],re.resolve(W))return!0;return!1}function P(D){this.source=D,this.result="",this.checkpoint=0}P.prototype.takeUpTo=function(D){var W;if(D<this.checkpoint)throw W=new Error("position should be > checkpoint"),W.position=D,W.checkpoint=this.checkpoint,W;return this.result+=this.source.slice(this.checkpoint,D),this.checkpoint=D,this},P.prototype.escapeChar=function(){var D,W;return D=this.source.charCodeAt(this.checkpoint),W=Q[D]||xe(D),this.result+=W,this.checkpoint+=1,this},P.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function k(D,W,ne){var te,re,ce,pe,ue,be,je,s,l,d,R,C,M,L,ee,ie,ge,se,de,ke,ve;if(W.length===0){D.dump="''";return}if(W.indexOf("!include")==0){D.dump=""+W;return}if(W.indexOf("!$$$novalue")==0){D.dump="";return}if(X.indexOf(W)!==-1){D.dump="'"+W+"'";return}for(te=!0,re=W.length?W.charCodeAt(0):0,ce=u===re||u===W.charCodeAt(W.length-1),(x===re||g===re||T===re||V===re)&&(te=!1),ce?(te=!1,pe=!1,ue=!1):(pe=!0,ue=!0),be=!0,je=new P(W),s=!1,l=0,d=0,R=D.indent*ne,C=80,R<40?C-=R:C=40,L=0;L<W.length;L++){if(M=W.charCodeAt(L),te)if(!q(M))te=!1;else continue;be&&M===w&&(be=!1),ee=Q[M],ie=F(M),!(!ee&&!ie)&&(M!==c&&M!==m&&M!==w?(pe=!1,ue=!1):M===c&&(s=!0,be=!1,L>0&&(ge=W.charCodeAt(L-1),ge===u&&(ue=!1,pe=!1)),pe&&(se=L-l,l=L,se>d&&(d=se))),M!==m&&(be=!1),je.takeUpTo(L),je.escapeChar())}if(te&&A(D,W)&&(te=!1),de="",(pe||ue)&&(ke=0,W.charCodeAt(W.length-1)===c&&(ke+=1,W.charCodeAt(W.length-2)===c&&(ke+=1)),ke===0?de="-":ke===2&&(de="+")),ue&&d<C&&(pe=!1),s||(ue=!1),te)D.dump=W;else if(be)D.dump="'"+W+"'";else if(pe)ve=_(W,C),D.dump=">"+de+`
48
- `+fe(ve,R);else if(ue)de||(W=W.replace(/\n$/,"")),D.dump="|"+de+`
49
- `+fe(W,R);else if(je)je.finish(),D.dump='"'+je.result+'"';else throw new Error("Failed to dump scalar value")}function _(D,W){var ne="",te=0,re=D.length,ce=/\n+$/.exec(D),pe;for(ce&&(re=ce.index+1);te<re;)pe=D.indexOf(`
46
+ `&&(ce+=ne),ce+=pe;return ce}function Pe(D,W){return`
47
+ `+e.repeat(" ",D.indent*W)}function R(D,W){var ne,te,re;for(ne=0,te=D.implicitTypes.length;ne<te;ne+=1)if(re=D.implicitTypes[ne],re.resolve(W))return!0;return!1}function S(D){this.source=D,this.result="",this.checkpoint=0}S.prototype.takeUpTo=function(D){var W;if(D<this.checkpoint)throw W=new Error("position should be > checkpoint"),W.position=D,W.checkpoint=this.checkpoint,W;return this.result+=this.source.slice(this.checkpoint,D),this.checkpoint=D,this},S.prototype.escapeChar=function(){var D,W;return D=this.source.charCodeAt(this.checkpoint),W=Q[D]||xe(D),this.result+=W,this.checkpoint+=1,this},S.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function k(D,W,ne){var te,re,ce,pe,ue,be,je,s,l,d,A,C,M,L,ee,ie,ge,se,de,ke,ve;if(W.length===0){D.dump="''";return}if(W.indexOf("!include")==0){D.dump=""+W;return}if(W.indexOf("!$$$novalue")==0){D.dump="";return}if(X.indexOf(W)!==-1){D.dump="'"+W+"'";return}for(te=!0,re=W.length?W.charCodeAt(0):0,ce=u===re||u===W.charCodeAt(W.length-1),(x===re||g===re||T===re||V===re)&&(te=!1),ce?(te=!1,pe=!1,ue=!1):(pe=!0,ue=!0),be=!0,je=new S(W),s=!1,l=0,d=0,A=D.indent*ne,C=80,A<40?C-=A:C=40,L=0;L<W.length;L++){if(M=W.charCodeAt(L),te)if(!q(M))te=!1;else continue;be&&M===w&&(be=!1),ee=Q[M],ie=F(M),!(!ee&&!ie)&&(M!==c&&M!==m&&M!==w?(pe=!1,ue=!1):M===c&&(s=!0,be=!1,L>0&&(ge=W.charCodeAt(L-1),ge===u&&(ue=!1,pe=!1)),pe&&(se=L-l,l=L,se>d&&(d=se))),M!==m&&(be=!1),je.takeUpTo(L),je.escapeChar())}if(te&&R(D,W)&&(te=!1),de="",(pe||ue)&&(ke=0,W.charCodeAt(W.length-1)===c&&(ke+=1,W.charCodeAt(W.length-2)===c&&(ke+=1)),ke===0?de="-":ke===2&&(de="+")),ue&&d<C&&(pe=!1),s||(ue=!1),te)D.dump=W;else if(be)D.dump="'"+W+"'";else if(pe)ve=_(W,C),D.dump=">"+de+`
48
+ `+fe(ve,A);else if(ue)de||(W=W.replace(/\n$/,"")),D.dump="|"+de+`
49
+ `+fe(W,A);else if(je)je.finish(),D.dump='"'+je.result+'"';else throw new Error("Failed to dump scalar value")}function _(D,W){var ne="",te=0,re=D.length,ce=/\n+$/.exec(D),pe;for(ce&&(re=ce.index+1);te<re;)pe=D.indexOf(`
50
50
  `,te),pe>re||pe===-1?(ne&&(ne+=`
51
51
 
52
52
  `),ne+=b(D.slice(te,re),W),te=re):(ne&&(ne+=`
@@ -55,21 +55,21 @@ ${u.stack}`)}},i=new Map,o=wA(t);o&&e.push(o);const a=new Set;if(r){const p=[];f
55
55
  `&&(ne+=ce[0]),ne}function b(D,W){if(D==="")return D;for(var ne=/[^\s] [^\s]/g,te="",re=0,ce=0,pe=ne.exec(D),ue,be,je;pe;)ue=pe.index,ue-ce>W&&(re!==ce?be=re:be=ue,te&&(te+=`
56
56
  `),je=D.slice(ce,be),te+=je,ce=be+1),re=ue+1,pe=ne.exec(D);return te&&(te+=`
57
57
  `),ce!==re&&D.length-ce>W?te+=D.slice(ce,re)+`
58
- `+D.slice(re+1):te+=D.slice(ce),te}function q(D){return a!==D&&c!==D&&p!==D&&E!==D&&j!==D&&B!==D&&G!==D&&oe!==D&&y!==D&&O!==D&&S!==D&&f!==D&&J!==D&&$!==D&&w!==D&&m!==D&&h!==D&&v!==D&&!Q[D]&&!F(D)}function F(D){return!(32<=D&&D<=126||D===133||160<=D&&D<=55295||57344<=D&&D<=65533||65536<=D&&D<=1114111)}function U(D,W,ne){var te="",re=D.tag,ce,pe;for(ce=0,pe=ne.length;ce<pe;ce+=1)z(D,W,ne[ce],!1,!1)&&(ce!==0&&(te+=", "),te+=D.dump);D.tag=re,D.dump="["+te+"]"}function Y(D,W,ne,te){var re="",ce=D.tag,pe,ue;for(pe=0,ue=ne.length;pe<ue;pe+=1)z(D,W+1,ne[pe],!0,!0)&&((!te||pe!==0)&&(re+=Se(D,W)),re+="- "+D.dump);D.tag=ce,D.dump=re||"[]"}function le(D,W,ne){var te="",re=D.tag,ce=Object.keys(ne),pe,ue,be,je,s;for(pe=0,ue=ce.length;pe<ue;pe+=1)s="",pe!==0&&(s+=", "),be=ce[pe],je=ne[be],z(D,W,be,!1,!1)&&(D.dump.length>1024&&(s+="? "),s+=D.dump+": ",z(D,W,je,!1,!1)&&(s+=D.dump,te+=s));D.tag=re,D.dump="{"+te+"}"}function he(D,W,ne,te){var re="",ce=D.tag,pe=Object.keys(ne),ue,be,je,s,l,d;for(ue=0,be=pe.length;ue<be;ue+=1)d="",(!te||ue!==0)&&(d+=Se(D,W)),je=pe[ue],s=ne[je],z(D,W+1,je,!0,!0)&&(l=D.tag!==null&&D.tag!=="?"||D.dump&&D.dump.length>1024,l&&(D.dump&&c===D.dump.charCodeAt(0)?d+="?":d+="? "),d+=D.dump,l&&(d+=Se(D,W)),z(D,W+1,s,!0,l)&&(D.dump&&c===D.dump.charCodeAt(0)?d+=":":d+=": ",d+=D.dump,re+=d));D.tag=ce,D.dump=re||"{}"}function N(D,W,ne){var te,re,ce,pe,ue,be;for(re=ne?D.explicitTypes:D.implicitTypes,ce=0,pe=re.length;ce<pe;ce+=1)if(ue=re[ce],(ue.instanceOf||ue.predicate)&&(!ue.instanceOf||typeof W=="object"&&W instanceof ue.instanceOf)&&(!ue.predicate||ue.predicate(W))){if(D.tag=ne?ue.tag:"?",ue.represent){if(be=D.styleMap[ue.tag]||ue.defaultStyle,i.call(ue.represent)==="[object Function]")te=ue.represent(W,be);else if(o.call(ue.represent,be))te=ue.represent[be](W,be);else throw new t("!<"+ue.tag+'> tag resolver accepts not "'+be+'" style');D.dump=te}return!0}return!1}function z(D,W,ne,te,re){D.tag=null,D.dump=ne,N(D,ne,!1)||N(D,ne,!0);var ce=i.call(D.dump);te&&(te=0>D.flowLevel||D.flowLevel>W),(D.tag!==null&&D.tag!=="?"||D.indent!==2&&W>0)&&(re=!1);var pe=ce==="[object Object]"||ce==="[object Array]",ue,be;if(pe&&(ue=D.duplicates.indexOf(ne),be=ue!==-1),be&&D.usedDuplicates[ue])D.dump="*ref_"+ue;else{if(pe&&be&&!D.usedDuplicates[ue]&&(D.usedDuplicates[ue]=!0),ce==="[object Object]")te&&Object.keys(D.dump).length!==0?(he(D,W,D.dump,re),be&&(D.dump="&ref_"+ue+(W===0?`
58
+ `+D.slice(re+1):te+=D.slice(ce),te}function q(D){return a!==D&&c!==D&&p!==D&&E!==D&&j!==D&&B!==D&&G!==D&&oe!==D&&y!==D&&O!==D&&P!==D&&f!==D&&J!==D&&$!==D&&w!==D&&m!==D&&h!==D&&v!==D&&!Q[D]&&!F(D)}function F(D){return!(32<=D&&D<=126||D===133||160<=D&&D<=55295||57344<=D&&D<=65533||65536<=D&&D<=1114111)}function U(D,W,ne){var te="",re=D.tag,ce,pe;for(ce=0,pe=ne.length;ce<pe;ce+=1)z(D,W,ne[ce],!1,!1)&&(ce!==0&&(te+=", "),te+=D.dump);D.tag=re,D.dump="["+te+"]"}function Y(D,W,ne,te){var re="",ce=D.tag,pe,ue;for(pe=0,ue=ne.length;pe<ue;pe+=1)z(D,W+1,ne[pe],!0,!0)&&((!te||pe!==0)&&(re+=Pe(D,W)),re+="- "+D.dump);D.tag=ce,D.dump=re||"[]"}function le(D,W,ne){var te="",re=D.tag,ce=Object.keys(ne),pe,ue,be,je,s;for(pe=0,ue=ce.length;pe<ue;pe+=1)s="",pe!==0&&(s+=", "),be=ce[pe],je=ne[be],z(D,W,be,!1,!1)&&(D.dump.length>1024&&(s+="? "),s+=D.dump+": ",z(D,W,je,!1,!1)&&(s+=D.dump,te+=s));D.tag=re,D.dump="{"+te+"}"}function he(D,W,ne,te){var re="",ce=D.tag,pe=Object.keys(ne),ue,be,je,s,l,d;for(ue=0,be=pe.length;ue<be;ue+=1)d="",(!te||ue!==0)&&(d+=Pe(D,W)),je=pe[ue],s=ne[je],z(D,W+1,je,!0,!0)&&(l=D.tag!==null&&D.tag!=="?"||D.dump&&D.dump.length>1024,l&&(D.dump&&c===D.dump.charCodeAt(0)?d+="?":d+="? "),d+=D.dump,l&&(d+=Pe(D,W)),z(D,W+1,s,!0,l)&&(D.dump&&c===D.dump.charCodeAt(0)?d+=":":d+=": ",d+=D.dump,re+=d));D.tag=ce,D.dump=re||"{}"}function N(D,W,ne){var te,re,ce,pe,ue,be;for(re=ne?D.explicitTypes:D.implicitTypes,ce=0,pe=re.length;ce<pe;ce+=1)if(ue=re[ce],(ue.instanceOf||ue.predicate)&&(!ue.instanceOf||typeof W=="object"&&W instanceof ue.instanceOf)&&(!ue.predicate||ue.predicate(W))){if(D.tag=ne?ue.tag:"?",ue.represent){if(be=D.styleMap[ue.tag]||ue.defaultStyle,i.call(ue.represent)==="[object Function]")te=ue.represent(W,be);else if(o.call(ue.represent,be))te=ue.represent[be](W,be);else throw new t("!<"+ue.tag+'> tag resolver accepts not "'+be+'" style');D.dump=te}return!0}return!1}function z(D,W,ne,te,re){D.tag=null,D.dump=ne,N(D,ne,!1)||N(D,ne,!0);var ce=i.call(D.dump);te&&(te=0>D.flowLevel||D.flowLevel>W),(D.tag!==null&&D.tag!=="?"||D.indent!==2&&W>0)&&(re=!1);var pe=ce==="[object Object]"||ce==="[object Array]",ue,be;if(pe&&(ue=D.duplicates.indexOf(ne),be=ue!==-1),be&&D.usedDuplicates[ue])D.dump="*ref_"+ue;else{if(pe&&be&&!D.usedDuplicates[ue]&&(D.usedDuplicates[ue]=!0),ce==="[object Object]")te&&Object.keys(D.dump).length!==0?(he(D,W,D.dump,re),be&&(D.dump="&ref_"+ue+(W===0?`
59
59
  `:"")+D.dump)):(le(D,W,D.dump),be&&(D.dump="&ref_"+ue+" "+D.dump));else if(ce==="[object Array]")te&&D.dump.length!==0?(Y(D,W,D.dump,re),be&&(D.dump="&ref_"+ue+(W===0?`
60
60
  `:"")+D.dump)):(U(D,W,D.dump),be&&(D.dump="&ref_"+ue+" "+D.dump));else if(ce==="[object String]")D.tag!=="?"&&k(D,D.dump,W);else{if(D.skipInvalid)return!1;throw new t("unacceptable kind of an object to dump "+ce)}D.tag!==null&&D.tag!=="?"&&(D.dump="!<"+D.tag+"> "+D.dump)}return!0}function H(D,W){var ne=[],te=[],re,ce;for(Z(D,ne,te),re=0,ce=te.length;re<ce;re+=1)W.duplicates.push(ne[te[re]]);W.usedDuplicates=new Array(ce)}function Z(D,W,ne){i.call(D);var te,re,ce;if(D!==null&&typeof D=="object")if(re=W.indexOf(D),re!==-1)ne.indexOf(re)===-1&&ne.push(re);else if(W.push(D),Array.isArray(D))for(re=0,ce=D.length;re<ce;re+=1)Z(D[re],W,ne);else for(te=Object.keys(D),re=0,ce=te.length;re<ce;re+=1)Z(D[te[re]],W,ne)}function ae(D,W){W=W||{};var ne=new Te(W);return H(D,ne),z(ne,0,D,!0,!0)?ne.dump+`
61
- `:""}tr.dump=ae;function ye(D,W){return ae(D,e.extend({schema:n},W))}return tr.safeDump=ye,tr}var Eo={},Pp;function YA(){return Pp||(Pp=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)$/,u=p.exec(c);if(u)return u[1]==="-"?-1/0:1/0;var f=parseFloat(c);if(!isNaN(f))return f;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 a(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 u=/^[-+]?[0-9]+$/,f=/^0o[0-7]+$/,m=/^0x[0-9a-fA-F]+$/;if(u.test(p)||f.test(p)||m.test(p))return o.int;var y=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,h=/^[-+]?(\.inf|\.Inf|\.INF)$/;return y.test(p)||h.test(p)||[".nan",".NaN",".NAN"].indexOf(p)>=0?o.float:o.string}e.determineScalarType=a})(Eo)),Eo}var Ep;function JA(){return Ep||(Ep=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=QA();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=GA();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=Er(),t($i()),t(YA())})(Xi)),Xi}var nr=JA();const XA=150,ZA=3;function No(e,t){To.enabled=t;const{start:r,end:n={line:r.line,col:r.col+1},source:i}=e,o=i.getLines(),a=r.line,c=Math.max(Math.min(n.line,o.length),r.line);let p=Math.max(c-a-ZA+1,0);p<2&&(p=0);const u=[];let f=0;for(let y=a;y<=c&&!(p>0&&y>=c-p);y++){const h=o[y-1]||"";h!==""&&(f=ci(h));const O=y===a?r.col-1:f,w=y===c?n.col-1:h.length;u.push([`${y}`,m(h,O,w,Ae.red)]),t||u.push(["",Op(h,O,w)])}return p>0&&(u.push(["…",`${hs(f)}${Ae.gray(`< ${p} more lines >`)}`]),u.push([`${c}`,m(o[c-1],-1,n.col-1,Ae.red)]),t||u.push(["",Op(o[c-1],-1,n.col-1)])),eR([[`${a-2}`,m(o[a-1-2])],[`${a-1}`,m(o[a-1-1])],...u,[`${c+1}`,m(o[c-1+1])],[`${c+2}`,m(o[c-1+2])]]);function m(y,h=-1,O=1/0,w=Ae.gray){return!t||!y?y:(h===-1&&(h=ci(y)),O=Math.min(O,y.length),y.substr(0,h)+w(y.substring(h,O))+y.substr(O))}}function eR(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:ci(o)));return t.map(([i,o])=>Ae.gray(rR(r,i)+" |")+(o?" "+tR(o.substring(n)):"")).join(`
62
- `)}function tR(e,t=XA){const r=e.length-t;if(r>0){const n=Ae.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function Op(e,t=-1,r=1/0){return t===-1&&(t=ci(e)),r=Math.min(r,e.length),hs(t)+"^".repeat(Math.max(r-t,1))}function hs(e){return" ".repeat(e)}function rR(e,t){return hs(e-t.length)+t}function ci(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function wt(e){if(e.pointer===void 0)return e;const{source:t,pointer:r,reportOnKey:n}=e,i=t.getAst(nr.safeLoad),o=pd(i,r,!!n);return{...e,pointer:void 0,...nR(t.body,o?.startPosition??1,o?.endPosition??1)}}function nR(e,t,r){let n=1,i=1,o={line:1,col:1};for(let c=0;c<r-1;c++){if(c===t-1&&(o={line:n,col:i+1}),e[c]===`
63
- `){n++,i=1,c===t-1&&(o={line:n,col:i}),e[c+1]==="\r"&&c++;continue}i++}const a=t===r?{...o}:{line:n,col:i+1};return{start:o,end:a}}function pd(e,t,r){const n=I.parsePointer(t.substr(2));if(e===void 0)return;let i=e;for(const o of n)if(i.kind===nr.Kind.MAP){const a=i.mappings.find(c=>c.key.value===o);if(!a||(i=a,!a?.value))break;i=a.value}else if(i.kind===nr.Kind.SEQ){const a=i.items[parseInt(o,10)];if(!a)break;i=a}if(r){const o=i.parent;return!o||o.kind===nr.Kind.SEQ?i:o.kind===nr.Kind.MAPPING?o.key:i}else return i}const iR={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},Ap={warn:e=>Ae.bgYellow(Ae.black(e)),error:Ae.bgRed},ld={warn:Ae.yellow,error:Ae.red},Ct={warn:"Warning",error:"Error"},oR={error:"critical",warn:"minor"},sR=+(I.env.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function pi(e){return e==="error"?1:2}function ud(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 aR(e,t){const{maxProblems:r=100,cwd:n=I.isBrowser?"":process.cwd(),format:i="codeframe",color:o=To.enabled,totals:a=ud(e),version:c="2.0",command:p}=t;To.enabled=o;const u=e.length;e=e.filter(v=>!v.ignored);const f=u-e.length;if(e=e.sort((v,$)=>pi(v.severity)-pi($.severity)).slice(0,r),!u&&i!=="json"&&i!=="junit")return;switch(i){case"json":y();break;case"codeframe":for(let v=0;v<e.length;v++){const $=e[v];p==="bundle"?Ee.info(`${O($,v)}
61
+ `:""}tr.dump=ae;function ye(D,W){return ae(D,e.extend({schema:n},W))}return tr.safeDump=ye,tr}var Eo={},Sp;function XR(){return Sp||(Sp=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)$/,u=p.exec(c);if(u)return u[1]==="-"?-1/0:1/0;var f=parseFloat(c);if(!isNaN(f))return f;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 a(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 u=/^[-+]?[0-9]+$/,f=/^0o[0-7]+$/,m=/^0x[0-9a-fA-F]+$/;if(u.test(p)||f.test(p)||m.test(p))return o.int;var y=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,h=/^[-+]?(\.inf|\.Inf|\.INF)$/;return y.test(p)||h.test(p)||[".nan",".NaN",".NAN"].indexOf(p)>=0?o.float:o.string}e.determineScalarType=a})(Eo)),Eo}var Ep;function ZR(){return Ep||(Ep=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=YR();e.load=r.load,e.loadAll=r.loadAll,e.safeLoad=r.safeLoad,e.safeLoadAll=r.safeLoadAll;var n=JR();e.dump=n.dump,e.safeDump=n.safeDump,e.YAMLException=Er(),t($i()),t(XR())})(Xi)),Xi}var nr=ZR();const eA=150,tA=3;function No(e,t){To.enabled=t;const{start:r,end:n={line:r.line,col:r.col+1},source:i}=e,o=i.getLines(),a=r.line,c=Math.max(Math.min(n.line,o.length),r.line);let p=Math.max(c-a-tA+1,0);p<2&&(p=0);const u=[];let f=0;for(let y=a;y<=c&&!(p>0&&y>=c-p);y++){const h=o[y-1]||"";h!==""&&(f=ci(h));const O=y===a?r.col-1:f,w=y===c?n.col-1:h.length;u.push([`${y}`,m(h,O,w,Re.red)]),t||u.push(["",Op(h,O,w)])}return p>0&&(u.push(["…",`${hs(f)}${Re.gray(`< ${p} more lines >`)}`]),u.push([`${c}`,m(o[c-1],-1,n.col-1,Re.red)]),t||u.push(["",Op(o[c-1],-1,n.col-1)])),rA([[`${a-2}`,m(o[a-1-2])],[`${a-1}`,m(o[a-1-1])],...u,[`${c+1}`,m(o[c-1+1])],[`${c+2}`,m(o[c-1+2])]]);function m(y,h=-1,O=1/0,w=Re.gray){return!t||!y?y:(h===-1&&(h=ci(y)),O=Math.min(O,y.length),y.substr(0,h)+w(y.substring(h,O))+y.substr(O))}}function rA(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:ci(o)));return t.map(([i,o])=>Re.gray(iA(r,i)+" |")+(o?" "+nA(o.substring(n)):"")).join(`
62
+ `)}function nA(e,t=eA){const r=e.length-t;if(r>0){const n=Re.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function Op(e,t=-1,r=1/0){return t===-1&&(t=ci(e)),r=Math.min(r,e.length),hs(t)+"^".repeat(Math.max(r-t,1))}function hs(e){return" ".repeat(e)}function iA(e,t){return hs(e-t.length)+t}function ci(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function ft(e){if(e.pointer===void 0)return e;const{source:t,pointer:r,reportOnKey:n}=e,i=t.getAst(nr.safeLoad),o=pd(i,r,!!n);return{...e,pointer:void 0,...oA(t.body,o?.startPosition??1,o?.endPosition??1)}}function oA(e,t,r){let n=1,i=1,o={line:1,col:1};for(let c=0;c<r-1;c++){if(c===t-1&&(o={line:n,col:i+1}),e[c]===`
63
+ `){n++,i=1,c===t-1&&(o={line:n,col:i}),e[c+1]==="\r"&&c++;continue}i++}const a=t===r?{...o}:{line:n,col:i+1};return{start:o,end:a}}function pd(e,t,r){const n=I.parsePointer(t.substr(2));if(e===void 0)return;let i=e;for(const o of n)if(i.kind===nr.Kind.MAP){const a=i.mappings.find(c=>c.key.value===o);if(!a||(i=a,!a?.value))break;i=a.value}else if(i.kind===nr.Kind.SEQ){const a=i.items[parseInt(o,10)];if(!a)break;i=a}if(r){const o=i.parent;return!o||o.kind===nr.Kind.SEQ?i:o.kind===nr.Kind.MAPPING?o.key:i}else return i}const sA={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},Rp={warn:e=>Re.bgYellow(Re.black(e)),error:Re.bgRed},ld={warn:Re.yellow,error:Re.red},Ct={warn:"Warning",error:"Error"},aA={error:"critical",warn:"minor"},cA=+(I.env.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function pi(e){return e==="error"?1:2}function ud(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 pA(e,t){const{maxProblems:r=100,cwd:n=I.isBrowser?"":process.cwd(),format:i="codeframe",color:o=To.enabled,totals:a=ud(e),version:c="2.0",command:p}=t;To.enabled=o;const u=e.length;e=e.filter(v=>!v.ignored);const f=u-e.length;if(e=e.sort((v,$)=>pi(v.severity)-pi($.severity)).slice(0,r),!u&&i!=="json"&&i!=="junit")return;switch(i){case"json":y();break;case"codeframe":for(let v=0;v<e.length;v++){const $=e[v];p==="bundle"?Ee.info(`${O($,v)}
64
64
  `):Ee.output(`${O($,v)}
65
- `)}break;case"stylish":{const v=Oo(e);for(const[$,{ruleIdPad:g,locationPad:T,fileProblems:j}]of Object.entries(v)){Ee.output(`${Ae.blue(I.isAbsoluteUrl($)?$:K.pathBrowserifyExports.relative(n,$))}:
65
+ `)}break;case"stylish":{const v=Oo(e);for(const[$,{ruleIdPad:g,locationPad:T,fileProblems:j}]of Object.entries(v)){Ee.output(`${Re.blue(I.isAbsoluteUrl($)?$:K.pathBrowserifyExports.relative(n,$))}:
66
66
  `);for(let B=0;B<j.length;B++){const V=j[B];Ee.output(`${w(V,T,g)}
67
67
  `)}Ee.output(`
68
68
  `)}break}case"markdown":{const v=Oo(e);for(const[$,{fileProblems:g}]of Object.entries(v)){Ee.output(`## Lint: ${I.isAbsoluteUrl($)?$:K.pathBrowserifyExports.relative(n,$)}
69
69
 
70
70
  `),Ee.output(`| Severity | Location | Problem | Message |
71
71
  `),Ee.output(`|---|---|---|---|
72
- `);for(let T=0;T<g.length;T++){const j=g[T];Ee.output(`${S(j)}
72
+ `);for(let T=0;T<g.length;T++){const j=g[T];Ee.output(`${P(j)}
73
73
  `)}Ee.output(`
74
74
  `),a.errors>0?Ee.output(`Validation failed
75
75
  Errors: ${a.errors}
@@ -86,36 +86,36 @@ Errors: ${a.errors}
86
86
  `);for(const[T,j]of Object.entries(g)){const B=I.isAbsoluteUrl(T)?T:K.pathBrowserifyExports.relative(n,T),V=j.filter(J=>J.severity==="error").length,G=j.filter(J=>J.severity==="warn").length;Ee.output(`<testsuite name="${tt(B)}" tests="${j.length}" errors="${V}" failures="${G}">
87
87
  `),j.forEach(J=>x(J,B)),Ee.output(`</testsuite>
88
88
  `)}Ee.output(`</testsuites>
89
- `);break}case"codeclimate":m();break;case"summary":cR(e);break;case"github-actions":lR(e,n)}u-f>r&&Ee.info(`< ... ${u-r} more problems hidden > ${Ae.gray("increase with `--max-problems N`")}
90
- `);function m(){const v=e.map($=>{const g=$.location[0],T=wt(g);return{description:$.message,location:{path:I.isAbsoluteUrl(g.source.absoluteRef)?g.source.absoluteRef:K.pathBrowserifyExports.relative(n,g.source.absoluteRef),lines:{begin:T.start.line}},severity:oR[$.severity],fingerprint:`${$.ruleId}${$.location.length>0?"-"+$.location[0].pointer:""}`}});Ee.output(JSON.stringify(v,null,2))}function y(){const v={totals:a,version:c,problems:e.map($=>{const g={...$,location:$.location.map(T=>({...T,source:{ref:I.isAbsoluteUrl(T.source.absoluteRef)?T.source.absoluteRef:K.pathBrowserifyExports.relative(n,T.source.absoluteRef)}})),from:$.from?{...$.from,source:{ref:I.isAbsoluteUrl($.from?.source.absoluteRef)?$.from?.source.absoluteRef:K.pathBrowserifyExports.relative(n,$.from?.source.absoluteRef||n)}}:void 0};if(I.env.FORMAT_JSON_WITH_CODEFRAMES){const T=$.location[0],j=wt(T);g.codeframe=No(j,o)}return g})};Ee.output(JSON.stringify(v,null,2))}function h(v){const{severity:$}=v;if(!Ap[$])throw new Error(iR.INVALID_SEVERITY_LEVEL);return Ap[$]}function O(v,$){const g=h(v),T=v.location[0],j=I.isAbsoluteUrl(T.source.absoluteRef)?T.source.absoluteRef:K.pathBrowserifyExports.relative(n,T.source.absoluteRef),B=wt(T),V=T.pointer?Ae.gray(`at ${T.pointer}`):"",G=`${j}:${B.start.line}:${B.start.col}`;return`[${$+1}] ${g(G)} ${V}
89
+ `);break}case"codeclimate":m();break;case"summary":lA(e);break;case"github-actions":dA(e,n)}u-f>r&&Ee.info(`< ... ${u-r} more problems hidden > ${Re.gray("increase with `--max-problems N`")}
90
+ `);function m(){const v=e.map($=>{const g=$.location[0],T=ft(g);return{description:$.message,location:{path:I.isAbsoluteUrl(g.source.absoluteRef)?g.source.absoluteRef:K.pathBrowserifyExports.relative(n,g.source.absoluteRef),lines:{begin:T.start.line}},severity:aA[$.severity],fingerprint:`${$.ruleId}${$.location.length>0?"-"+$.location[0].pointer:""}`}});Ee.output(JSON.stringify(v,null,2))}function y(){const v={totals:a,version:c,problems:e.map($=>{const g={...$,location:$.location.map(T=>{const{start:j,end:B}=ft(T);return{...T,start:j,end:B,source:{ref:I.isAbsoluteUrl(T.source.absoluteRef)?T.source.absoluteRef:K.pathBrowserifyExports.relative(n,T.source.absoluteRef)}}}),from:$.from?{...$.from,source:{ref:I.isAbsoluteUrl($.from?.source.absoluteRef)?$.from?.source.absoluteRef:K.pathBrowserifyExports.relative(n,$.from?.source.absoluteRef||n)}}:void 0};if(I.env.FORMAT_JSON_WITH_CODEFRAMES){const T=$.location[0],j=ft(T);g.codeframe=No(j,o)}return g})};Ee.output(JSON.stringify(v,null,2))}function h(v){const{severity:$}=v;if(!Rp[$])throw new Error(sA.INVALID_SEVERITY_LEVEL);return Rp[$]}function O(v,$){const g=h(v),T=v.location[0],j=I.isAbsoluteUrl(T.source.absoluteRef)?T.source.absoluteRef:K.pathBrowserifyExports.relative(n,T.source.absoluteRef),B=ft(T),V=T.pointer?Re.gray(`at ${T.pointer}`):"",G=`${j}:${B.start.line}:${B.start.col}`;return`[${$+1}] ${g(G)} ${V}
91
91
 
92
92
  ${v.message}
93
93
 
94
94
  `+dd(v)+No(B,o)+`
95
95
 
96
- `+pR(n,v.from)+`${Ct[v.severity]} was generated by the ${Ae.blue(v.ruleId)} rule.
96
+ `+uA(n,v.from)+`${Ct[v.severity]} was generated by the ${Re.blue(v.ruleId)} rule.
97
97
 
98
- `+(v.reference?`Reference: ${Ae.blue(v.reference)}
98
+ `+(v.reference?`Reference: ${Re.blue(v.reference)}
99
99
 
100
- `:"")}function w(v,$,g){const T=ld[v.severity];if(!Ct[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const j=T(Ct[v.severity].toLowerCase().padEnd(7)),{start:B}=v.location[0];return` ${`${B.line}:${B.col}`.padEnd($)} ${j} ${v.ruleId.padEnd(g)} ${v.message}`}function S(v){if(!Ct[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const $=Ct[v.severity].toLowerCase(),{start:g}=v.location[0];return`| ${$} | line ${`${g.line}:${g.col}`} | [${v.ruleId}](https://redocly.com/docs/cli/rules/${v.ruleId}/) | ${v.message.replaceAll(`
100
+ `:"")}function w(v,$,g){const T=ld[v.severity];if(!Ct[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const j=T(Ct[v.severity].toLowerCase().padEnd(7)),{start:B}=v.location[0];return` ${`${B.line}:${B.col}`.padEnd($)} ${j} ${v.ruleId.padEnd(g)} ${v.message}`}function P(v){if(!Ct[v.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";const $=Ct[v.severity].toLowerCase(),{start:g}=v.location[0];return`| ${$} | line ${`${g.line}:${g.col}`} | [${v.ruleId}](https://redocly.com/docs/cli/rules/${v.ruleId}/) | ${v.message.replaceAll(`
101
101
  `,"<br>")} |`}function E(v){const{line:$,col:g}=v.location[0].start,T=v.severity=="warn"?"warning":"error",j=tt(v.message),B=tt(v.ruleId);Ee.output(`<error line="${$}" column="${g}" severity="${T}" message="${j}" source="${B}" />
102
- `)}function x(v,$){const g=v.location[0],{start:T}=wt(g),j=v.severity==="error"?"error":"failure",B=tt(v.ruleId),V=tt(v.message),G=[`Rule: ${B}`,`Severity: ${tt(v.severity)}`,`File: ${tt($)}`,`Line: ${T.line}`,`Column: ${T.col}`];g.pointer&&G.push(`Pointer: ${tt(g.pointer)}`),G.push(`Message: ${V}`),Ee.output(`<testcase classname="${B}" name="${B}" file="${tt($)}" line="${T.line}">
102
+ `)}function x(v,$){const g=v.location[0],{start:T}=ft(g),j=v.severity==="error"?"error":"failure",B=tt(v.ruleId),V=tt(v.message),G=[`Rule: ${B}`,`Severity: ${tt(v.severity)}`,`File: ${tt($)}`,`Line: ${T.line}`,`Column: ${T.col}`];g.pointer&&G.push(`Pointer: ${tt(g.pointer)}`),G.push(`Message: ${V}`),Ee.output(`<testcase classname="${B}" name="${B}" file="${tt($)}" line="${T.line}">
103
103
  `),Ee.output(`<${j} message="${V}" type="${B}">${G.join(`
104
104
  `)}</${j}>
105
105
  `),Ee.output(`</testcase>
106
- `)}}function cR(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])=>pi(n.severity)-pi(i.severity)||i.count-n.count);for(const[n,i]of r){const o=ld[i.severity],a=o(Ct[i.severity].toLowerCase().padEnd(7));Ee.output(`${a} ${n}: ${i.count}
106
+ `)}}function lA(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])=>pi(n.severity)-pi(i.severity)||i.count-n.count);for(const[n,i]of r){const o=ld[i.severity],a=o(Ct[i.severity].toLowerCase().padEnd(7));Ee.output(`${a} ${n}: ${i.count}
107
107
  `)}Ee.output(`
108
- `)}function pR(e,t){if(!t)return"";const r=K.pathBrowserifyExports.relative(e,t.source.absoluteRef),n=wt(t),i=`${r}:${n.start.line}:${n.start.col}`,o=t.pointer?Ae.gray(`at ${t.pointer}`):"";return`referenced from ${Ae.blue(i)} ${o}
108
+ `)}function uA(e,t){if(!t)return"";const r=K.pathBrowserifyExports.relative(e,t.source.absoluteRef),n=ft(t),i=`${r}:${n.start.line}:${n.start.col}`,o=t.pointer?Re.gray(`at ${t.pointer}`):"";return`referenced from ${Re.blue(i)} ${o}
109
109
 
110
110
  `}function dd(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
111
111
 
112
112
  `:`Did you mean:
113
- - ${e.suggest.slice(0,sR).join(`
113
+ - ${e.suggest.slice(0,cA).join(`
114
114
  - `)}
115
115
 
116
- `}const Oo=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(wt)};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 tt(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 lR(e,t){for(const a of e)for(const c of a.location.map(wt)){let p;switch(a.severity){case"error":p="error";break;case"warn":p="warning";break}const u=dd(a),f=a.reference?`Reference: ${a.reference}
116
+ `}const Oo=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(ft)};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 tt(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 dA(e,t){for(const a of e)for(const c of a.location.map(ft)){let p;switch(a.severity){case"error":p="error";break;case"warn":p="warning";break}const u=dd(a),f=a.reference?`Reference: ${a.reference}
117
117
 
118
118
  `:"",m=a.message+(u!==""||f!==""?`
119
119
 
120
120
  `:"")+u+f,y={title:a.ruleId,file:I.isAbsoluteUrl(c.source.absoluteRef)?c.source.absoluteRef:K.pathBrowserifyExports.relative(t,c.source.absoluteRef),line:c.start.line,col:c.start.col,endLine:c.end?.line,endColumn:c.end?.col};Ee.output(`::${p} ${r(y)}::${i(m)}
121
- `)}function r(a){return Object.entries(a).filter(([,c])=>c!=null).map(([c,p])=>`${c}=${o(p)}`).join(",")}function n(a){return a==null?"":typeof a=="string"||a instanceof String?a:JSON.stringify(a)}function i(a){return n(a).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(a){return n(a).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:bR,...uR}=di.properties,dR={...di,properties:uR};async function fR(e){const{ref:t,externalRefResolver:r=new I.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),ys({document:n,...e,externalRefResolver:r})}async function mR(e){const{source:t,absoluteRef:r,externalRefResolver:n=new I.BaseResolver(e.config.resolve)}=e,i=I.makeDocumentFromString(t,r||"/");return ys({document:i,...e,externalRefResolver:n})}async function ys(e){const{document:t,customTypes:r,externalRefResolver:n,config:i}=e;if(I.isGraphqlRef(t.source.absoluteRef)){const{lintGraphqlDocument:h}=await Promise.resolve().then(()=>require("./replay-lint-graphql-CK8-ZL5Q.js"));return h({document:t,config:i})}const o=Kt(t.parsed),a=i.getRulesForSpecVersion(ps(o)),c=I.normalizeTypes(i.extendTypes(r??hr(o),o),i),p={problems:[],specVersion:o,config:i,visitorsData:{}},u=ar(a,i,"preprocessors",o),f=ar(a,i,"rules",o);let m=await I.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n});u.length>0&&(mt({document:t,rootType:c.Root,normalizedVisitors:ft(u,c),resolvedRefMap:m,ctx:p}),m=await I.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const y=ft(f,c);return mt({document:t,rootType:c.Root,normalizedVisitors:y,resolvedRefMap:m,ctx:p}),p.problems.map(h=>i.addProblemToIgnore(h))}async function hR(e){const{severity:t,externalRefResolver:r=new I.BaseResolver,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const i={problems:[],specVersion:"config",config:n,visitorsData:{}},o=I.normalizeTypes(e.externalConfigTypes||os(dR,n)),a=[{severity:t||"error",ruleId:"configuration struct",visitor:gt()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:yt()}],c=ft(a,o),p=n.resolvedRefMap||await I.resolveDocument({rootDocument:n.document,rootType:o.ConfigRoot,externalRefResolver:r});return mt({document:n.document,rootType:o.ConfigRoot,normalizedVisitors:c,resolvedRefMap:p,ctx:i}),i.problems}exports.Ajv=is;exports.Arazzo1Types=Be;exports.Arazzo1_1Types=Hp;exports.Assertions=xt;exports.AsyncApi2Types=Bp;exports.AsyncApi3Types=Vp;exports.CONFIG_BUNDLER_VISITOR_ID=ss;exports.CONFIG_FILE_NAME=_o;exports.Config=br;exports.ConfigTypes=Vl;exports.ConfigValidationError=ZO;exports.DEFAULT_CONFIG=Hl;exports.DEFAULT_PROJECT_PLUGIN_PATHS=Wl;exports.IGNORE_BANNER=Kl;exports.IGNORE_FILE=ei;exports.Js=E0;exports.Ls=O0;exports.NoUnresolvedRefs=yt;exports.Oas2Types=_p;exports.Oas3Types=rt;exports.Oas3_1Types=$e;exports.Oas3_2Types=Fe;exports.OpenRpcTypes=Wp;exports.Overlay1Types=Kp;exports.PLUGINS_COLLECTOR_VISITOR_ID=as;exports.Struct=gt;exports.bundle=pA;exports.bundleDocument=ds;exports.bundleFromString=lA;exports.clearPluginsCache=bA;exports.createConfig=OA;exports.createConfigTypes=os;exports.dequal=ht;exports.detectSpec=Kt;exports.findConfig=EA;exports.formatProblems=aR;exports.getAstNodeByPointer=pd;exports.getCodeframe=No;exports.getLineColLocation=wt;exports.getMajorSpecVersion=ps;exports.getNodeTypesFromJSONSchema=Ul;exports.getPluginCacheVersion=yA;exports.getTotals=ud;exports.getTypes=hr;exports.initRules=ar;exports.isEmptyObject=Lt;exports.isNotEmptyArray=or;exports.isString=ze;exports.keysOf=Lo;exports.lint=fR;exports.lintConfig=hR;exports.lintDocument=ys;exports.lintFromString=mR;exports.loadConfig=PA;exports.loadIgnoreConfig=sd;exports.logger=Ee;exports.mapTypeToComponent=Mo;exports.normalizeVisitors=ft;exports.pluralize=gd;exports.regexFromString=ir;exports.resolvePlugins=od;exports.slash=$p;exports.t=De;exports.walkDocument=mt;exports.xmlEscape=tt;
121
+ `)}function r(a){return Object.entries(a).filter(([,c])=>c!=null).map(([c,p])=>`${c}=${o(p)}`).join(",")}function n(a){return a==null?"":typeof a=="string"||a instanceof String?a:JSON.stringify(a)}function i(a){return n(a).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function o(a){return n(a).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:wA,...fA}=di.properties,mA={...di,properties:fA};async function hA(e){const{ref:t,externalRefResolver:r=new I.BaseResolver(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),ys({document:n,...e,externalRefResolver:r})}async function yA(e){const{source:t,absoluteRef:r,externalRefResolver:n=new I.BaseResolver(e.config.resolve)}=e,i=I.makeDocumentFromString(t,r||"/");return ys({document:i,...e,externalRefResolver:n})}async function ys(e){const{document:t,customTypes:r,externalRefResolver:n,config:i}=e;if(I.isGraphqlRef(t.source.absoluteRef)){const{lintGraphqlDocument:h}=await Promise.resolve().then(()=>require("./replay-lint-graphql-Cj0YxKYW.js"));return h({document:t,config:i})}const o=Kt(t.parsed),a=i.getRulesForSpecVersion(ps(o)),c=I.normalizeTypes(i.extendTypes(r??hr(o),o),i),p={problems:[],specVersion:o,config:i,visitorsData:{}},u=ar(a,i,"preprocessors",o),f=ar(a,i,"rules",o);let m=await I.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n});u.length>0&&(ht({document:t,rootType:c.Root,normalizedVisitors:mt(u,c),resolvedRefMap:m,ctx:p}),m=await I.resolveDocument({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const y=mt(f,c);return ht({document:t,rootType:c.Root,normalizedVisitors:y,resolvedRefMap:m,ctx:p}),p.problems.map(h=>i.addProblemToIgnore(h))}async function gA(e){const{severity:t,externalRefResolver:r=new I.BaseResolver,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const i={problems:[],specVersion:"config",config:n,visitorsData:{}},o=I.normalizeTypes(e.externalConfigTypes||os(mA,n)),a=[{severity:t||"error",ruleId:"configuration struct",visitor:bt()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:gt()}],c=mt(a,o),p=n.resolvedRefMap||await I.resolveDocument({rootDocument:n.document,rootType:o.ConfigRoot,externalRefResolver:r});return ht({document:n.document,rootType:o.ConfigRoot,normalizedVisitors:c,resolvedRefMap:p,ctx:i}),i.problems}exports.Ajv=is;exports.Arazzo1Types=Be;exports.Arazzo1_1Types=Hp;exports.Assertions=xt;exports.AsyncApi2Types=Bp;exports.AsyncApi3Types=Vp;exports.CONFIG_BUNDLER_VISITOR_ID=ss;exports.CONFIG_FILE_NAME=_o;exports.Config=br;exports.ConfigTypes=Vl;exports.ConfigValidationError=tR;exports.DEFAULT_CONFIG=Hl;exports.DEFAULT_PROJECT_PLUGIN_PATHS=Wl;exports.Ds=R0;exports.IGNORE_BANNER=Kl;exports.IGNORE_FILE=ei;exports.NoUnresolvedRefs=gt;exports.Oas2Types=_p;exports.Oas3Types=rt;exports.Oas3_1Types=$e;exports.Oas3_2Types=Fe;exports.OpenRpcTypes=Wp;exports.Overlay1Types=Kp;exports.PLUGINS_COLLECTOR_VISITOR_ID=as;exports.Struct=bt;exports._s=A0;exports.bundle=uR;exports.bundleDocument=ds;exports.bundleFromString=dR;exports.clearPluginsCache=wR;exports.createConfig=AR;exports.createConfigTypes=os;exports.dequal=yt;exports.detectSpec=Kt;exports.findConfig=RR;exports.formatProblems=pA;exports.getAstNodeByPointer=pd;exports.getCodeframe=No;exports.getLineColLocation=ft;exports.getMajorSpecVersion=ps;exports.getNodeTypesFromJSONSchema=Ul;exports.getPluginCacheVersion=bR;exports.getTotals=ud;exports.getTypes=hr;exports.initRules=ar;exports.isEmptyObject=Lt;exports.isNotEmptyArray=or;exports.isString=ze;exports.keysOf=Lo;exports.lint=hA;exports.lintConfig=gA;exports.lintDocument=ys;exports.lintFromString=yA;exports.loadConfig=OR;exports.loadIgnoreConfig=sd;exports.logger=Ee;exports.mapTypeToComponent=Mo;exports.normalizeVisitors=mt;exports.pluralize=gd;exports.regexFromString=ir;exports.resolvePlugins=od;exports.slash=$p;exports.t=De;exports.walkDocument=ht;exports.xmlEscape=tt;