@redocly/openapi-docs 3.25.0-next.4 → 3.25.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{redocly-openapi-docs.min.AiChatProvider-BtZYXzQL.js → redocly-openapi-docs.min.AiChatProvider-DyqyxfQD.js} +1 -1
- package/dist/{redocly-openapi-docs.min.AiChatSqliteDBStorage-CMWIhurV.js → redocly-openapi-docs.min.AiChatSqliteDBStorage-Btm70b2a.js} +1 -1
- package/dist/{redocly-openapi-docs.min.AiPanel-CzVBo_SJ.js → redocly-openapi-docs.min.AiPanel-C8snqiT5.js} +17 -17
- package/dist/{redocly-openapi-docs.min.FileWatcher-DjTW24VD.js → redocly-openapi-docs.min.FileWatcher-CTBl8Rf-.js} +1 -1
- package/dist/{redocly-openapi-docs.min.SemanticSearchService-BdbJAsUF.js → redocly-openapi-docs.min.SemanticSearchService-CkqlO6WP.js} +1 -1
- package/dist/{redocly-openapi-docs.min.SqliteDBStorage-DicEB6xf.js → redocly-openapi-docs.min.SqliteDBStorage-CrL1Ye64.js} +1 -1
- package/dist/{redocly-openapi-docs.min.TauriFileSystemAdapter-Bzf6nZVE.js → redocly-openapi-docs.min.TauriFileSystemAdapter-Y9bUtY4S.js} +1 -1
- package/dist/{redocly-openapi-docs.min.TauriRootStorage-Cg1lmYY7.js → redocly-openapi-docs.min.TauriRootStorage-B5ol7t4s.js} +1 -1
- package/dist/{redocly-openapi-docs.min.ai-chat-mappers-BfCwakK5.js → redocly-openapi-docs.min.ai-chat-mappers-DLLPHOmO.js} +1 -1
- package/dist/redocly-openapi-docs.min.external-resolver-CBwcWqM9.js +2 -0
- package/dist/{redocly-openapi-docs.min.index-U6ORLz-U.js → redocly-openapi-docs.min.index-BrDq2HFN.js} +1 -1
- package/dist/{redocly-openapi-docs.min.index-CHKNddXa.js → redocly-openapi-docs.min.index-CEXQXK-m.js} +1 -1
- package/dist/{redocly-openapi-docs.min.index-BnxwvVhR.js → redocly-openapi-docs.min.index-CGR2xzEw.js} +1 -1
- package/dist/{redocly-openapi-docs.min.index-BXAn8eur.js → redocly-openapi-docs.min.index-Dt-QwDkf.js} +1113 -1113
- package/dist/redocly-openapi-docs.min.js +1 -1
- package/dist/{redocly-openapi-docs.min.lint-jyJiMT1p.js → redocly-openapi-docs.min.lint-DBvVDQqS.js} +2 -2
- package/dist/{redocly-openapi-docs.min.lint-graphql-BLIlXit9.js → redocly-openapi-docs.min.lint-graphql-CVRQfjxQ.js} +1 -1
- package/dist/{redocly-openapi-docs.min.respect-run-CTD2qNkS.js → redocly-openapi-docs.min.respect-run-BhGXKGyB.js} +1 -1
- package/dist/{redocly-openapi-docs.min.standalone-CS00-kVE.js → redocly-openapi-docs.min.standalone-DweQeOg3.js} +550 -550
- package/dist/{redocly-openapi-docs.min.tauri-path-Dw7ZXd_2.js → redocly-openapi-docs.min.tauri-path-DPZWtWAC.js} +1 -1
- package/dist/{redocly-openapi-docs.min.useAiChatQueries-BH1oro3k.js → redocly-openapi-docs.min.useAiChatQueries-DNV_5tU7.js} +2 -2
- package/package.json +13 -4
- package/dist/redocly-openapi-docs.min.external-resolver-DftxHgbt.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bL as a,bM as s,bN as e,bO as t,bP as i,bQ as r,bR as b}from"./redocly-openapi-docs.min.standalone-DweQeOg3.js";export{a as hydrate,s as init,e as revision,t as setParameterValue,i as setSecurityDetails,r as setSecurityDetailsVariants,b as version};
|
package/dist/{redocly-openapi-docs.min.lint-jyJiMT1p.js → redocly-openapi-docs.min.lint-DBvVDQqS.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{d as xr,bq as Ji,l as Ee,br as df,b9 as en,bs as Xi,ba as tt,ao as Zi,bt as ff,bu as mf,aE as ps,aC as ze,aB as ea,p as Ke,bi as hf,bv as yf,bw as gf,bx as vf,be as Ot,bk as bf,bg as tn,by as rr,bz as ta,bA as ra,aD as wf,bB as ls,bC as Ir,bD as Mt,bE as $f,bF as Ef,aK as Vt,b5 as rn,b6 as xf,bf as If,bG as Tf,aF as Tr,aP as na,bH as _f,b0 as Pf,aH as Yt,b4 as oa,aJ as us,aI as nn,bI as on,aQ as sa,aS as Sf,b2 as kf,aG as sn,bJ as Of,aT as Nf,aR as ia,b7 as jf,bl as aa,aV as ca,bK as Af,bL as Rf,bM as pa,bc as Cf,b8 as Df,bN as la}from"./redocly-openapi-docs.min.standalone-CS00-kVE.js";function qf(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.')}function _r(e){return Array.isArray(e)&&e.length>0}function ds(e){return e?Object.keys(e):[]}var fs={exports:{}},Lf=fs.exports,ua;function Mf(){return ua||(ua=1,(function(e,t){(function(r,n){typeof qf=="function"?e.exports=n():r.pluralize=n()})(Lf,function(){var r=[],n=[],o={},s={},i={};function c($){return typeof $=="string"?new RegExp("^"+$+"$","i"):$}function a($,b){return $===b?b:$===$.toLowerCase()?b.toLowerCase():$===$.toUpperCase()?b.toUpperCase():$[0]===$[0].toUpperCase()?b.charAt(0).toUpperCase()+b.substr(1).toLowerCase():b.toLowerCase()}function p($,b){return $.replace(/\$(\d{1,2})/g,function(E,w){return b[w]||""})}function l($,b){return $.replace(b[0],function(E,w){var f=p(b[1],arguments);return a(E===""?$[w-1]:E,f)})}function d($,b,E){if(!$.length||o.hasOwnProperty($))return b;for(var w=E.length;w--;){var f=E[w];if(f[0].test(b))return l(b,f)}return b}function y($,b,E){return function(w){var f=w.toLowerCase();return b.hasOwnProperty(f)?a(w,f):$.hasOwnProperty(f)?a(w,$[f]):d(f,w,E)}}function m($,b,E,w){return function(f){var I=f.toLowerCase();return b.hasOwnProperty(I)?!0:$.hasOwnProperty(I)?!1:d(I,I,E)===I}}function h($,b,E){var w=b===1?h.singular($):h.plural($);return(E?b+" ":"")+w}return h.plural=y(i,s,r),h.isPlural=m(i,s,r),h.singular=y(s,i,n),h.isSingular=m(s,i,n),h.addPluralRule=function($,b){r.push([c($),b])},h.addSingularRule=function($,b){n.push([c($),b])},h.addUncountableRule=function($){if(typeof $=="string"){o[$.toLowerCase()]=!0;return}h.addPluralRule($,"$0"),h.addSingularRule($,"$0")},h.addIrregularRule=function($,b){b=b.toLowerCase(),$=$.toLowerCase(),i[$]=b,s[b]=$},[["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($){return h.addIrregularRule($[0],$[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($){return h.addPluralRule($[0],$[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($){return h.addSingularRule($[0],$[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(h.addUncountableRule),h})})(fs)),fs.exports}var Vf=Mf();const da=xr(Vf);function zf(e,t,r){return e.split(" ").map(n=>da(n,t,r)).join(" ")}var fa={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Pr={type:"object",properties:fa,additionalProperties:!1},Ff={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Sr={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:{...fa,like:Pr,dislike:Pr,satisfied:Pr,neutral:Pr,dissatisfied:Pr},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:Ff},additionalProperties:!1}},additionalProperties:!1},Uf={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},ms={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},ma={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Sr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ms,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:Uf,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},nr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bf={type:"object",properties:{name:{type:"string"},items:nr,queries:nr,mutations:nr,subscriptions:nr,types:nr,directives:nr},required:["name"],additionalProperties:!1},Kf={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Bf},otherItemsGroupName:{type:"string"}}},Gf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Yf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Wf={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Gf,license:Yf},additionalProperties:!1},an={type:"object",properties:{menu:{type:"object",properties:{...Kf.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Wf},additionalProperties:!1},Hf={type:"object",properties:{downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},Qf={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"]},Jf={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"}}},ha={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Xf={type:"object",properties:{beforeInfo:{type:"array",items:ha},end:{type:"array",items:ha}}},Wt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},cn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Zf={type:"object",properties:dn(Wt.properties,["light","dark"])},em={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"}}},tm={type:"object",properties:{error:cn,info:cn,redirect:cn,success:cn}},rm={type:"object",properties:or(Wt.properties,["dark"])},nm={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},om={type:"object",properties:{accent:Wt,border:Zf,error:Wt,http:em,primary:Wt,responses:tm,secondary:rm,success:Wt,text:nm,tonalOffset:{type:"number"},warning:Wt}},pn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},sm={type:"object",properties:{small:pn,medium:pn,large:pn,xlarge:pn}},_t={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},im={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:sm}},ya={type:"object",properties:dn(_t.properties,["fontSize","lineHeight"])},am={type:"object",properties:{medium:ya,small:ya}},cm={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:am}},pm={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},lm={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},ga={type:"object",properties:{fullWidth:{type:"boolean"}}},um={type:"object",properties:{buttons:im,httpBadges:cm,layoutControls:pm,panels:lm,tryItButton:ga,tryItSendButton:ga}},ln={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},dm={type:"object",properties:{maxWidth:ln}},fm={type:"object",properties:{maxWidth:ln,middlePanelMaxWidth:ln}},mm={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:dm,"three-panel":fm}},va={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},hm={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:va,defaultDetailsWidth:{type:"string"},examples:va,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},ba={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},ym={type:"object",properties:dn(ba.properties,["textTransform"])},gm={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},vm={type:"object",properties:{...or(_t.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:ba,level1items:ym,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:gm,textColor:{type:"string"},width:{type:"string"}}},un={type:"object",properties:{..._t.properties,color:{type:"string"},transform:{type:"string"}}},bm={type:"object",properties:{..._t.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"}}},wm={type:"object",properties:or(_t.properties,["fontSize"])},$m={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Em={type:"object",properties:{code:bm,fieldName:_t,...dn(_t.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:un,heading2:un,heading3:un,headings:wm,lineHeight:{type:"string"},links:$m,optimizeSpeed:{type:"boolean"},rightPanelHeading:un,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},xm={type:"object",properties:{color:{type:"string"},...or(_t.properties,["fontWeight"])}},Im={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:xm}},Tm={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_m={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},wa={type:"object",properties:{custom:{type:"string"}}},Pm={type:"object",properties:{DownloadButton:wa,NextSectionButton:wa}},Sm={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},km={type:"object",properties:{borderRadius:{type:"string"}}},Om={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Nm={type:"object",properties:{breakpoints:ln,codeBlock:Im,colors:om,components:um,layout:mm,logo:Tm,fab:_m,overrides:Pm,rightPanel:Sm,schema:hm,shape:km,sidebar:vm,spacing:Om,typography:Em,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},jm={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Qf}},required:["languages"]},Am={properties:{theme:Nm,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:jm,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:Jf,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:Xf,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 dn(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function or(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var pt={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"},Rm={rules:pt,oas2Rules:pt,oas3_0Rules:pt,oas3_1Rules:pt,oas3_2Rules:pt,async2Rules:pt,async3Rules:pt,arazzo1Rules:pt,arazzo1_1Rules:pt,overlay1Rules:pt,openrpc1Rules:pt,graphqlRules:pt},ft={nodeTypeName:void 0,type:"object",additionalProperties:!0},Cm={preprocessors:ft,oas2Preprocessors:ft,oas3_0Preprocessors:ft,oas3_1Preprocessors:ft,oas3_2Preprocessors:ft,async2Preprocessors:ft,async3Preprocessors:ft,arazzo1Preprocessors:ft,arazzo1_1Preprocessors:ft,overlay1Preprocessors:ft,openrpc1Preprocessors:ft},mt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Dm={decorators:mt,oas2Decorators:mt,oas3_0Decorators:mt,oas3_1Decorators:mt,oas3_2Decorators:mt,async2Decorators:mt,async3Decorators:mt,arazzo1Decorators:mt,arazzo1_1Decorators:mt,overlay1Decorators:mt,openrpc1Decorators:mt},qm={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"},fn={...Rm,...Dm,...Cm,extends:qm},$a=e=>e,rt=$a({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),He={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Ea={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},hs={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}}},ys={type:"array",items:{...hs,properties:{...hs.properties,items:{type:"array",items:hs}}}},Lm={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Mm={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Vm={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}},zm={type:"object",properties:{facets:Vm,...He.properties},additionalProperties:!1},Fm={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xa={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ia={type:"object",properties:{items:ys,...He.properties},additionalProperties:!1},Ta={type:"object",additionalProperties:Lm},_a={type:"object",properties:{items:ys,copyrightText:{type:"string"},logo:He,...He.properties},additionalProperties:!1},Pa={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...He.properties},additionalProperties:!1},Sa={type:"object",properties:{head:{type:"array",items:Ea},body:{type:"array",items:Ea}},additionalProperties:!1},ka={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}},Oa={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Mm,filters:zm,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Fm},...He.properties},additionalProperties:!1},Na={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},ja={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...He.properties},additionalProperties:!1},Aa={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Um={type:"object",properties:{...He.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Ra={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},actions:Um},additionalProperties:!1},Ca={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...He.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...He.properties},additionalProperties:!1},expand:{type:"object",properties:{...He.properties},additionalProperties:!1},collapse:{type:"object",properties:{...He.properties},additionalProperties:!1}},additionalProperties:!1},Da={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"},...He.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...He.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...He.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},mn={...ma,properties:{...ma.properties,...Am.properties}},Bm={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Km={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"]},Gm={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Ym={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Wm={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"]},Hm={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Qm={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"]},Jm={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"]},Xm={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:Jm}},additionalProperties:!1,required:["trackingId"]},qa={type:"object",properties:{adobe:Bm,amplitude:Km,fullstory:Gm,heap:Ym,rudderstack:Wm,segment:Hm,gtm:Qm,ga:Xm}},La={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"},...He.properties},additionalProperties:!1},Ma={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Va={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},Zm={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"}}}},eh={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Zm},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ys,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},hn={type:"object",patternProperties:{".*":eh}},yn={nodeTypeName:rt.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:rt.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:rt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:rt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...fn},additionalProperties:!1}},targets:{nodeTypeName:rt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:rt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:rt.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:rt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},th={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},rh={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},nh={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},Nt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:rh},excludes:{type:"array",items:th},filters:{type:"array",items:nh},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},oh={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},sh={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:oh},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},ih={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:sh,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},ah={type:"object",additionalProperties:ih},za={type:"object",properties:{show:{type:"boolean"},entityTypes:ah,catalogs:{type:"object",properties:{all:Nt,services:Nt,domains:Nt,teams:Nt,users:Nt,apiDescriptions:Nt,dataSchemas:Nt,apiOperations:Nt},additionalProperties:Nt}},additionalProperties:!1},Fa={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},gs={type:"string",enum:["and","or"]},vs={type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},ch={type:"object",properties:{operator:gs,conditions:{type:"array",items:vs}},required:["operator","conditions"],additionalProperties:!1},Ua={type:"array",items:{oneOf:[vs,{type:"object",properties:{operator:gs,conditions:{type:"array",items:{oneOf:[vs,ch]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ba={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},ph={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:Ba},required:["subject","assertions"],additionalProperties:!1}},lh={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:Ba,where:ph,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},uh={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},lh]}},dh={type:"object",properties:{name:{type:"string"},extends:fn.extends,rules:uh},required:["name"],additionalProperties:!1},Ka={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},fh={oneOf:[Ka,{type:"array",items:Ka}]},mh={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Ua,{type:"object",properties:{operator:gs,conditions:Ua},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:dh,minItems:1},trigger:fh},required:["name","key","entities","levels"],additionalProperties:!1},Ga={type:"array",items:mh},hh={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,asyncapi:Hf,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga},additionalProperties:!0},yh=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(yh||{}),gh=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(gh||{}),vh=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(vh||{}),bh="^[a-z0-9]+(?:-[a-z0-9]+)*$",Ya="redocly",wh=[Ya,"corporate","guest"],Wa=["REDOCLY","CORPORATE","GUEST"],$h={type:"object",additionalProperties:{type:"string"}},Eh={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},gn={type:"string",enum:["error","warn","off"]},xh={type:"object",additionalProperties:!1,properties:{schemaCheck:gn,statusCodeCheck:gn,contentTypeCheck:gn,successCriteriaCheck:gn}},Ih={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},Th={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},_h={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Ph={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:[Ih,Th]},inputs:$h,servers:Eh,severity:xh,slo:_h},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Sh={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},kh={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:Sh,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},Oh={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"]},Nh={oneOf:[kh,Oh],discriminator:{propertyName:"type"}},jh={type:"object",additionalProperties:Nh},Ha={oneOf:[{type:"array",items:{type:"string",enum:Wa},uniqueItems:!0},{type:"string",enum:Wa}]},Qa={type:"string",pattern:bh,not:{enum:wh.filter(e=>e!==Ya)}},Ja={oneOf:[{type:"array",items:Qa,uniqueItems:!0},Qa]},Xa={type:"boolean"},Za={type:"string",pattern:"^https?://.*"},ec={type:"string",pattern:"^https?://.*"},Ah={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:rt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},Rh={type:"object",additionalProperties:Ah,nodeTypeName:rt.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"},Ch={type:"string",enum:["info","success","warning","error"]},Le={type:"object",additionalProperties:{type:"string"}},Dh={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:Ch,rbac:Le,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},qh={type:"array",items:Dh},Lh={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Le,openapi:mn,graphql:an,theme:{type:"object",properties:{openapi:mn,graphql:an},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...fn},required:["root"]},Mh={type:"object",additionalProperties:!0},Vh={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},zh={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},Fh={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:zh},additionalProperties:!1},Uh={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bh={type:"object",properties:{catalogs:{type:"object",properties:{all:Le,services:Le,domains:Le,teams:Le,users:Le,apiDescriptions:Le,dataSchemas:Le,apiOperations:Le},additionalProperties:Le},entitiesTypes:{type:"object",properties:{service:Le,domain:Le,team:Le,user:Le,apiDescription:Le,apiOperation:Le,dataSchema:Le},additionalProperties:Le},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Le},additionalProperties:!1}},entities:{type:"object",properties:{"**":Le},additionalProperties:Le}},additionalProperties:!1},tc={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Le,cms:Le,reunite:Le,features:{type:"object",properties:{aiSearch:Le,mcp:Le},additionalProperties:!1},content:{type:"object",properties:{"**":Le},additionalProperties:Le},entitiesCatalog:Bh},additionalProperties:Le},Kh={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Gh={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Yh={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[Kh,Gh]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Wh={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Hh={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},bs={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:[Wh,Hh],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},Qh={...bs,properties:{...bs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},Jh={type:"object",oneOf:[bs,Qh,Yh],discriminator:{propertyName:"type"}},Xh={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:Jh}}},rc={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"]},Zh={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ey={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1},ty={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},ry={type:"object",properties:{requiresLogin:Xa,logoutReturnUrl:Za,residency:ec,sso:Ha,idps:Ja,rbac:tc},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ws={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:Rh,seo:Fh,rbac:tc,apiFunctions:Uh,requiresLogin:Xa,responseHeaders:{type:"object",additionalProperties:{type:"array",items:Zh}},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:Lh},...fn,ssoDirect:jh,sso:Ha,idps:Ja,residency:ec,logoutReturnUrl:Za,access:ry,developerOnboarding:Xh,removeAttribution:{type:"boolean"},i18n:rc,l10n:rc,metadata:Mh,metadataGlobs:Vh,ignore:{type:"array",items:{type:"string"}},theme:hh,reunite:Ph,logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga,mcp:ey,skills:ty,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:qh},not:{required:["sso","idps"]},additionalProperties:!0},ny={...ws,additionalProperties:!1},vn={$id:"root-redocly-config",...ws,properties:{plugins:{type:"array",items:{type:"string"}},...ws.properties,env:{type:"object",additionalProperties:ny}},additionalProperties:!1},oy=["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"],Ge=$a({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"}),sy={type:"object",nodeTypeName:Ge.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},iy={type:"object",nodeTypeName:Ge.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},ay={type:"object",nodeTypeName:Ge.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},cy={type:"object",nodeTypeName:Ge.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},py={type:"object",properties:{},nodeTypeName:Ge.EntityMetadata,additionalProperties:!0},ly={type:"object",nodeTypeName:Ge.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},uy={type:"object",nodeTypeName:Ge.EntitySlackContact,properties:{channels:{type:"array",items:ly}},required:["channels"],additionalProperties:!1},dy={type:"object",nodeTypeName:Ge.EntityContact,properties:{slack:uy},additionalProperties:!1},fy={type:"object",nodeTypeName:Ge.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},my={type:"object",nodeTypeName:Ge.EntityRelation,properties:{type:{type:"string",enum:oy},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:dy,links:{type:"array",nodeTypeName:Ge.EntityLinkList,items:fy},relations:{type:"array",nodeTypeName:Ge.EntityRelationList,items:my},metadata:py},hy={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{type:"string",const:"user"},metadata:sy},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ge.UserEntity},{type:"object",nodeTypeName:Ge.ApiOperationEntity,properties:{...zt,type:{type:"string",const:"api-operation"},metadata:ay},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DataSchemaEntity,properties:{...zt,type:{type:"string",const:"data-schema"},metadata:cy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ApiDescriptionEntity,properties:{...zt,type:{type:"string",const:"api-description"},metadata:iy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ServiceEntity,properties:{...zt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DomainEntity,properties:{...zt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.TeamEntity,properties:{...zt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},yy={type:"object",nodeTypeName:Ge.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};const gy=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"];function $s(e){return e.includes("/")}var Es={exports:{}},nc={},jt={},Ht={},oc={},sc={},ic={},ac;function bn(){return ac||(ac=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(w){if(super(),!e.IDENTIFIER.test(w))throw new Error("CodeGen: name must be a valid identifier");this.str=w}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(w){super(),this._items=typeof w=="string"?[w]:w}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const w=this._items[0];return w===""||w==='""'}get str(){var w;return(w=this._str)!==null&&w!==void 0?w:this._str=this._items.reduce((f,I)=>`${f}${I}`,"")}get names(){var w;return(w=this._names)!==null&&w!==void 0?w:this._names=this._items.reduce((f,I)=>(I instanceof r&&(f[I.str]=(f[I.str]||0)+1),f),{})}}e._Code=n,e.nil=new n("");function o(E,...w){const f=[E[0]];let I=0;for(;I<w.length;)c(f,w[I]),f.push(E[++I]);return new n(f)}e._=o;const s=new n("+");function i(E,...w){const f=[m(E[0])];let I=0;for(;I<w.length;)f.push(s),c(f,w[I]),f.push(s,m(E[++I]));return a(f),new n(f)}e.str=i;function c(E,w){w instanceof n?E.push(...w._items):w instanceof r?E.push(w):E.push(d(w))}e.addCodeArg=c;function a(E){let w=1;for(;w<E.length-1;){if(E[w]===s){const f=p(E[w-1],E[w+1]);if(f!==void 0){E.splice(w-1,3,f);continue}E[w++]="+"}w++}}function p(E,w){if(w==='""')return E;if(E==='""')return w;if(typeof E=="string")return w instanceof r||E[E.length-1]!=='"'?void 0:typeof w!="string"?`${E.slice(0,-1)}${w}"`:w[0]==='"'?E.slice(0,-1)+w.slice(1):void 0;if(typeof w=="string"&&w[0]==='"'&&!(E instanceof r))return`"${E}${w.slice(1)}`}function l(E,w){return w.emptyStr()?E:E.emptyStr()?w:i`${E}${w}`}e.strConcat=l;function d(E){return typeof E=="number"||typeof E=="boolean"||E===null?E:m(Array.isArray(E)?E.join(","):E)}function y(E){return new n(m(E))}e.stringify=y;function m(E){return JSON.stringify(E).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function h(E){return typeof E=="string"&&e.IDENTIFIER.test(E)?new n(`.${E}`):o`[${E}]`}e.getProperty=h;function $(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=$;function b(E){return new n(E.toString())}e.regexpCode=b})(ic)),ic}var cc={},pc;function lc(){return pc||(pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=bn();class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(a){a[a.Started=0]="Started",a[a.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 o{constructor({prefixes:p,parent:l}={}){this._names={},this._prefixes=p,this._parent=l}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const l=this._names[p]||this._nameGroup(p);return`${p}${l.index++}`}_nameGroup(p){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||d===void 0)&&d.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=o;class s extends t.Name{constructor(p,l){super(l),this.prefix=p}setValue(p,{property:l,itemIndex:d}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(l)}[${d}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class c extends o{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?i:t.nil}}get(){return this._scope}name(p){return new s(p,this._newName(p))}value(p,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(p),{prefix:m}=y,h=(d=l.key)!==null&&d!==void 0?d:l.ref;let $=this._values[m];if($){const w=$.get(h);if(w)return w}else $=this._values[m]=new Map;$.set(h,y);const b=this._scope[m]||(this._scope[m]=[]),E=b.length;return b[E]=l.ref,y.setValue(l,{property:m,itemIndex:E}),y}getValue(p,l){const d=this._values[p];if(d)return d.get(l)}scopeRefs(p,l=this._values){return this._reduceValues(l,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${p}${d.scopePath}`})}scopeCode(p=this._values,l,d){return this._reduceValues(p,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},l,d)}_reduceValues(p,l,d={},y){let m=t.nil;for(const h in p){const $=p[h];if(!$)continue;const b=d[h]=d[h]||new Map;$.forEach(E=>{if(b.has(E))return;b.set(E,n.Started);let w=l(E);if(w){const f=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${f} ${E} = ${w};${this.opts._n}`}else if(w=y?.(E))m=(0,t._)`${m}${w}${this.opts._n}`;else throw new r(E);b.set(E,n.Completed)})}return m}}e.ValueScope=c})(cc)),cc}var uc;function $e(){return uc||(uc=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=bn(),r=lc();var n=bn();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 o=lc();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 s{optimizeNodes(){return this}optimizeNames(T,S){return this}}class i extends s{constructor(T,S,_){super(),this.varKind=T,this.name=S,this.rhs=_}render({es5:T,_n:S}){const _=T?r.varKinds.var:this.varKind,L=this.rhs===void 0?"":` = ${this.rhs}`;return`${_} ${this.name}${L};`+S}optimizeNames(T,S){if(T[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,T,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(T,S,_){super(),this.lhs=T,this.rhs=S,this.sideEffects=_}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,S){if(!(this.lhs instanceof t.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,T,S),this}get names(){const T=this.lhs instanceof t.Name?{}:{...this.lhs.names};return O(T,this.rhs)}}class a extends c{constructor(T,S,_,L){super(T,_,L),this.op=S}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class p extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class l extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class d extends s{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class y extends s{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,S){return this.code=z(this.code,T,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends s{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce((S,_)=>S+_.render(T),"")}optimizeNodes(){const{nodes:T}=this;let S=T.length;for(;S--;){const _=T[S].optimizeNodes();Array.isArray(_)?T.splice(S,1,..._):_?T[S]=_:T.splice(S,1)}return T.length>0?this:void 0}optimizeNames(T,S){const{nodes:_}=this;let L=_.length;for(;L--;){const V=_[L];V.optimizeNames(T,S)||(me(T,V.names),_.splice(L,1))}return _.length>0?this:void 0}get names(){return this.nodes.reduce((T,S)=>F(T,S.names),{})}}class h extends m{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class $ extends m{}class b extends h{}b.kind="else";class E extends h{constructor(T,S){super(S),this.condition=T}render(T){let S=`if(${this.condition})`+super.render(T);return this.else&&(S+="else "+this.else.render(T)),S}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let S=this.else;if(S){const _=S.optimizeNodes();S=this.else=Array.isArray(_)?new b(_):_}if(S)return T===!1?S instanceof E?S:S.nodes:this.nodes.length?this:new E(we(T),S instanceof E?[S]:S.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,S){var _;if(this.else=(_=this.else)===null||_===void 0?void 0:_.optimizeNames(T,S),!!(super.optimizeNames(T,S)||this.else))return this.condition=z(this.condition,T,S),this}get names(){const T=super.names;return O(T,this.condition),this.else&&F(T,this.else.names),T}}E.kind="if";class w extends h{}w.kind="for";class f extends w{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iteration=z(this.iteration,T,S),this}get names(){return F(super.names,this.iteration.names)}}class I extends w{constructor(T,S,_,L){super(),this.varKind=T,this.name=S,this.from=_,this.to=L}render(T){const S=T.es5?r.varKinds.var:this.varKind,{name:_,from:L,to:V}=this;return`for(${S} ${_}=${L}; ${_}<${V}; ${_}++)`+super.render(T)}get names(){const T=O(super.names,this.from);return O(T,this.to)}}class g extends w{constructor(T,S,_,L){super(),this.loop=T,this.varKind=S,this.name=_,this.iterable=L}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iterable=z(this.iterable,T,S),this}get names(){return F(super.names,this.iterable.names)}}class v extends h{constructor(T,S,_){super(),this.name=T,this.args=S,this.async=_}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}v.kind="func";class x extends m{render(T){return"return "+super.render(T)}}x.kind="return";class N extends h{render(T){let S="try"+super.render(T);return this.catch&&(S+=this.catch.render(T)),this.finally&&(S+=this.finally.render(T)),S}optimizeNodes(){var T,S;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(T,S){var _,L;return super.optimizeNames(T,S),(_=this.catch)===null||_===void 0||_.optimizeNames(T,S),(L=this.finally)===null||L===void 0||L.optimizeNames(T,S),this}get names(){const T=super.names;return this.catch&&F(T,this.catch.names),this.finally&&F(T,this.finally.names),T}}class K extends h{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}K.kind="catch";class R extends h{render(T){return"finally"+super.render(T)}}R.kind="finally";class C{constructor(T,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
1
|
+
import{d as xr,bn as Ji,l as Ee,bo as df,b6 as en,bp as Xi,b7 as tt,al as Zi,bq as ff,br as mf,aB as ps,az as ze,ay as ea,p as Ke,bf as hf,bs as yf,bt as gf,bu as vf,bb as Ot,bh as bf,bd as tn,bv as rr,bw as ta,bx as ra,aA as wf,by as ls,bz as Ir,bA as Mt,bB as $f,bC as Ef,aH as Vt,b2 as rn,b3 as xf,bc as If,bD as Tf,aC as Tr,aM as na,bE as _f,aZ as Pf,aE as Yt,b1 as oa,aG as us,aF as nn,bF as on,aN as sa,aP as Sf,a$ as kf,aD as sn,bG as Of,aQ as Nf,aO as ia,b4 as jf,bi as aa,aS as ca,bH as Af,bI as Rf,bJ as pa,b9 as Cf,b5 as Df,bK as la}from"./redocly-openapi-docs.min.standalone-DweQeOg3.js";function qf(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.')}function _r(e){return Array.isArray(e)&&e.length>0}function ds(e){return e?Object.keys(e):[]}var fs={exports:{}},Lf=fs.exports,ua;function Mf(){return ua||(ua=1,(function(e,t){(function(r,n){typeof qf=="function"?e.exports=n():r.pluralize=n()})(Lf,function(){var r=[],n=[],o={},s={},i={};function c($){return typeof $=="string"?new RegExp("^"+$+"$","i"):$}function a($,b){return $===b?b:$===$.toLowerCase()?b.toLowerCase():$===$.toUpperCase()?b.toUpperCase():$[0]===$[0].toUpperCase()?b.charAt(0).toUpperCase()+b.substr(1).toLowerCase():b.toLowerCase()}function p($,b){return $.replace(/\$(\d{1,2})/g,function(E,w){return b[w]||""})}function l($,b){return $.replace(b[0],function(E,w){var f=p(b[1],arguments);return a(E===""?$[w-1]:E,f)})}function d($,b,E){if(!$.length||o.hasOwnProperty($))return b;for(var w=E.length;w--;){var f=E[w];if(f[0].test(b))return l(b,f)}return b}function y($,b,E){return function(w){var f=w.toLowerCase();return b.hasOwnProperty(f)?a(w,f):$.hasOwnProperty(f)?a(w,$[f]):d(f,w,E)}}function m($,b,E,w){return function(f){var I=f.toLowerCase();return b.hasOwnProperty(I)?!0:$.hasOwnProperty(I)?!1:d(I,I,E)===I}}function h($,b,E){var w=b===1?h.singular($):h.plural($);return(E?b+" ":"")+w}return h.plural=y(i,s,r),h.isPlural=m(i,s,r),h.singular=y(s,i,n),h.isSingular=m(s,i,n),h.addPluralRule=function($,b){r.push([c($),b])},h.addSingularRule=function($,b){n.push([c($),b])},h.addUncountableRule=function($){if(typeof $=="string"){o[$.toLowerCase()]=!0;return}h.addPluralRule($,"$0"),h.addSingularRule($,"$0")},h.addIrregularRule=function($,b){b=b.toLowerCase(),$=$.toLowerCase(),i[$]=b,s[b]=$},[["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($){return h.addIrregularRule($[0],$[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($){return h.addPluralRule($[0],$[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($){return h.addSingularRule($[0],$[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(h.addUncountableRule),h})})(fs)),fs.exports}var Vf=Mf();const da=xr(Vf);function zf(e,t,r){return e.split(" ").map(n=>da(n,t,r)).join(" ")}var fa={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Pr={type:"object",properties:fa,additionalProperties:!1},Ff={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Sr={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:{...fa,like:Pr,dislike:Pr,satisfied:Pr,neutral:Pr,dissatisfied:Pr},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:Ff},additionalProperties:!1}},additionalProperties:!1},Uf={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},ms={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},ma={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Sr,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:ms,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:Uf,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},nr={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bf={type:"object",properties:{name:{type:"string"},items:nr,queries:nr,mutations:nr,subscriptions:nr,types:nr,directives:nr},required:["name"],additionalProperties:!1},Kf={properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Bf},otherItemsGroupName:{type:"string"}}},Gf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Yf={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Wf={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:Gf,license:Yf},additionalProperties:!1},an={type:"object",properties:{menu:{type:"object",properties:{...Kf.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Wf},additionalProperties:!1},Hf={type:"object",properties:{downloadUrls:ms,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:Sr,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},Qf={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"]},Jf={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"}}},ha={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Xf={type:"object",properties:{beforeInfo:{type:"array",items:ha},end:{type:"array",items:ha}}},Wt={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},cn={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Zf={type:"object",properties:dn(Wt.properties,["light","dark"])},em={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"}}},tm={type:"object",properties:{error:cn,info:cn,redirect:cn,success:cn}},rm={type:"object",properties:or(Wt.properties,["dark"])},nm={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},om={type:"object",properties:{accent:Wt,border:Zf,error:Wt,http:em,primary:Wt,responses:tm,secondary:rm,success:Wt,text:nm,tonalOffset:{type:"number"},warning:Wt}},pn={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},sm={type:"object",properties:{small:pn,medium:pn,large:pn,xlarge:pn}},_t={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},im={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:sm}},ya={type:"object",properties:dn(_t.properties,["fontSize","lineHeight"])},am={type:"object",properties:{medium:ya,small:ya}},cm={type:"object",properties:{...or(_t.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:am}},pm={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},lm={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},ga={type:"object",properties:{fullWidth:{type:"boolean"}}},um={type:"object",properties:{buttons:im,httpBadges:cm,layoutControls:pm,panels:lm,tryItButton:ga,tryItSendButton:ga}},ln={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},dm={type:"object",properties:{maxWidth:ln}},fm={type:"object",properties:{maxWidth:ln,middlePanelMaxWidth:ln}},mm={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:dm,"three-panel":fm}},va={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},hm={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:va,defaultDetailsWidth:{type:"string"},examples:va,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},ba={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},ym={type:"object",properties:dn(ba.properties,["textTransform"])},gm={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},vm={type:"object",properties:{...or(_t.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:ba,level1items:ym,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:gm,textColor:{type:"string"},width:{type:"string"}}},un={type:"object",properties:{..._t.properties,color:{type:"string"},transform:{type:"string"}}},bm={type:"object",properties:{..._t.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"}}},wm={type:"object",properties:or(_t.properties,["fontSize"])},$m={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},Em={type:"object",properties:{code:bm,fieldName:_t,...dn(_t.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:un,heading2:un,heading3:un,headings:wm,lineHeight:{type:"string"},links:$m,optimizeSpeed:{type:"boolean"},rightPanelHeading:un,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},xm={type:"object",properties:{color:{type:"string"},...or(_t.properties,["fontWeight"])}},Im={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:xm}},Tm={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_m={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},wa={type:"object",properties:{custom:{type:"string"}}},Pm={type:"object",properties:{DownloadButton:wa,NextSectionButton:wa}},Sm={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},km={type:"object",properties:{borderRadius:{type:"string"}}},Om={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},Nm={type:"object",properties:{breakpoints:ln,codeBlock:Im,colors:om,components:um,layout:mm,logo:Tm,fab:_m,overrides:Pm,rightPanel:Sm,schema:hm,shape:km,sidebar:vm,spacing:Om,typography:Em,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},jm={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Qf}},required:["languages"]},Am={properties:{theme:Nm,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:jm,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:Jf,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:Xf,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 dn(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function or(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var pt={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"},Rm={rules:pt,oas2Rules:pt,oas3_0Rules:pt,oas3_1Rules:pt,oas3_2Rules:pt,async2Rules:pt,async3Rules:pt,arazzo1Rules:pt,arazzo1_1Rules:pt,overlay1Rules:pt,openrpc1Rules:pt,graphqlRules:pt},ft={nodeTypeName:void 0,type:"object",additionalProperties:!0},Cm={preprocessors:ft,oas2Preprocessors:ft,oas3_0Preprocessors:ft,oas3_1Preprocessors:ft,oas3_2Preprocessors:ft,async2Preprocessors:ft,async3Preprocessors:ft,arazzo1Preprocessors:ft,arazzo1_1Preprocessors:ft,overlay1Preprocessors:ft,openrpc1Preprocessors:ft},mt={nodeTypeName:void 0,type:"object",additionalProperties:!0},Dm={decorators:mt,oas2Decorators:mt,oas3_0Decorators:mt,oas3_1Decorators:mt,oas3_2Decorators:mt,async2Decorators:mt,async3Decorators:mt,arazzo1Decorators:mt,arazzo1_1Decorators:mt,overlay1Decorators:mt,openrpc1Decorators:mt},qm={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"},fn={...Rm,...Dm,...Cm,extends:qm},$a=e=>e,rt=$a({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),He={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Ea={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},hs={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}}},ys={type:"array",items:{...hs,properties:{...hs.properties,items:{type:"array",items:hs}}}},Lm={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},Mm={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},Vm={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}},zm={type:"object",properties:{facets:Vm,...He.properties},additionalProperties:!1},Fm={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},xa={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Ia={type:"object",properties:{items:ys,...He.properties},additionalProperties:!1},Ta={type:"object",additionalProperties:Lm},_a={type:"object",properties:{items:ys,copyrightText:{type:"string"},logo:He,...He.properties},additionalProperties:!1},Pa={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...He.properties},additionalProperties:!1},Sa={type:"object",properties:{head:{type:"array",items:Ea},body:{type:"array",items:Ea}},additionalProperties:!1},ka={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}},Oa={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:Mm,filters:zm,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:Fm},...He.properties},additionalProperties:!1},Na={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},ja={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...He.properties},additionalProperties:!1},Aa={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},Um={type:"object",properties:{...He.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Ra={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...He.properties},additionalProperties:!1},actions:Um},additionalProperties:!1},Ca={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...He.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...He.properties},additionalProperties:!1},expand:{type:"object",properties:{...He.properties},additionalProperties:!1},collapse:{type:"object",properties:{...He.properties},additionalProperties:!1}},additionalProperties:!1},Da={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"},...He.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...He.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...He.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},mn={...ma,properties:{...ma.properties,...Am.properties}},Bm={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},Km={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"]},Gm={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},Ym={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},Wm={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"]},Hm={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},Qm={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"]},Jm={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"]},Xm={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:Jm}},additionalProperties:!1,required:["trackingId"]},qa={type:"object",properties:{adobe:Bm,amplitude:Km,fullstory:Gm,heap:Ym,rudderstack:Wm,segment:Hm,gtm:Qm,ga:Xm}},La={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"},...He.properties},additionalProperties:!1},Ma={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Va={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},Zm={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"}}}},eh={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:Zm},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:ys,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},hn={type:"object",patternProperties:{".*":eh}},yn={nodeTypeName:rt.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:rt.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:rt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:rt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...fn},additionalProperties:!1}},targets:{nodeTypeName:rt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:rt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:rt.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:rt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},th={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},rh={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},nh={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},Nt={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:rh},excludes:{type:"array",items:th},filters:{type:"array",items:nh},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},oh={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},sh={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:oh},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},ih={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:sh,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},ah={type:"object",additionalProperties:ih},za={type:"object",properties:{show:{type:"boolean"},entityTypes:ah,catalogs:{type:"object",properties:{all:Nt,services:Nt,domains:Nt,teams:Nt,users:Nt,apiDescriptions:Nt,dataSchemas:Nt,apiOperations:Nt},additionalProperties:Nt}},additionalProperties:!1},Fa={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},gs={type:"string",enum:["and","or"]},vs={type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Fa,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},ch={type:"object",properties:{operator:gs,conditions:{type:"array",items:vs}},required:["operator","conditions"],additionalProperties:!1},Ua={type:"array",items:{oneOf:[vs,{type:"object",properties:{operator:gs,conditions:{type:"array",items:{oneOf:[vs,ch]}}},required:["operator","conditions"],additionalProperties:!1}]}},Ba={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},ph={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:Ba},required:["subject","assertions"],additionalProperties:!1}},lh={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:Ba,where:ph,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},uh={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},lh]}},dh={type:"object",properties:{name:{type:"string"},extends:fn.extends,rules:uh},required:["name"],additionalProperties:!1},Ka={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},fh={oneOf:[Ka,{type:"array",items:Ka}]},mh={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Ua,{type:"object",properties:{operator:gs,conditions:Ua},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:dh,minItems:1},trigger:fh},required:["name","key","entities","levels"],additionalProperties:!1},Ga={type:"array",items:mh},hh={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,asyncapi:Hf,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga},additionalProperties:!0},yh=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(yh||{}),gh=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(gh||{}),vh=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(vh||{}),bh="^[a-z0-9]+(?:-[a-z0-9]+)*$",Ya="redocly",wh=[Ya,"corporate","guest"],Wa=["REDOCLY","CORPORATE","GUEST"],$h={type:"object",additionalProperties:{type:"string"}},Eh={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},gn={type:"string",enum:["error","warn","off"]},xh={type:"object",additionalProperties:!1,properties:{schemaCheck:gn,statusCodeCheck:gn,contentTypeCheck:gn,successCriteriaCheck:gn}},Ih={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},Th={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},_h={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},Ph={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:[Ih,Th]},inputs:$h,servers:Eh,severity:xh,slo:_h},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},Sh={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},kh={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:Sh,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},Oh={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"]},Nh={oneOf:[kh,Oh],discriminator:{propertyName:"type"}},jh={type:"object",additionalProperties:Nh},Ha={oneOf:[{type:"array",items:{type:"string",enum:Wa},uniqueItems:!0},{type:"string",enum:Wa}]},Qa={type:"string",pattern:bh,not:{enum:wh.filter(e=>e!==Ya)}},Ja={oneOf:[{type:"array",items:Qa,uniqueItems:!0},Qa]},Xa={type:"boolean"},Za={type:"string",pattern:"^https?://.*"},ec={type:"string",pattern:"^https?://.*"},Ah={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:rt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},Rh={type:"object",additionalProperties:Ah,nodeTypeName:rt.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"},Ch={type:"string",enum:["info","success","warning","error"]},Le={type:"object",additionalProperties:{type:"string"}},Dh={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:Ch,rbac:Le,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},qh={type:"array",items:Dh},Lh={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Le,openapi:mn,graphql:an,theme:{type:"object",properties:{openapi:mn,graphql:an},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...fn},required:["root"]},Mh={type:"object",additionalProperties:!0},Vh={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},zh={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},Fh={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:zh},additionalProperties:!1},Uh={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},Bh={type:"object",properties:{catalogs:{type:"object",properties:{all:Le,services:Le,domains:Le,teams:Le,users:Le,apiDescriptions:Le,dataSchemas:Le,apiOperations:Le},additionalProperties:Le},entitiesTypes:{type:"object",properties:{service:Le,domain:Le,team:Le,user:Le,apiDescription:Le,apiOperation:Le,dataSchema:Le},additionalProperties:Le},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Le},additionalProperties:!1}},entities:{type:"object",properties:{"**":Le},additionalProperties:Le}},additionalProperties:!1},tc={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Le,cms:Le,reunite:Le,features:{type:"object",properties:{aiSearch:Le,mcp:Le},additionalProperties:!1},content:{type:"object",properties:{"**":Le},additionalProperties:Le},entitiesCatalog:Bh},additionalProperties:Le},Kh={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Gh={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Yh={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[Kh,Gh]}},additionalProperties:!1,required:["type","apiBaseUrl"]},Wh={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Hh={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},bs={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:[Wh,Hh],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},Qh={...bs,properties:{...bs.properties,type:{type:"string",const:"APIGEE_EDGE"}}},Jh={type:"object",oneOf:[bs,Qh,Yh],discriminator:{propertyName:"type"}},Xh={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:Jh}}},rc={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"]},Zh={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},ey={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1},ty={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},ry={type:"object",properties:{requiresLogin:Xa,logoutReturnUrl:Za,residency:ec,sso:Ha,idps:Ja,rbac:tc},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},ws={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:Rh,seo:Fh,rbac:tc,apiFunctions:Uh,requiresLogin:Xa,responseHeaders:{type:"object",additionalProperties:{type:"array",items:Zh}},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:Lh},...fn,ssoDirect:jh,sso:Ha,idps:Ja,residency:ec,logoutReturnUrl:Za,access:ry,developerOnboarding:Xh,removeAttribution:{type:"boolean"},i18n:rc,l10n:rc,metadata:Mh,metadataGlobs:Vh,ignore:{type:"array",items:{type:"string"}},theme:hh,reunite:Ph,logo:xa,navbar:Ia,products:Ta,footer:_a,sidebar:Pa,scripts:Sa,links:ka,feedback:Sr,search:Oa,aiAssistant:Na,colorMode:ja,palette:Aa,navigation:Ra,codeSnippet:Ca,markdown:Da,openapi:mn,graphql:an,analytics:qa,userMenu:La,versionPicker:Ma,breadcrumbs:Va,catalog:hn,entitiesCatalog:za,catalogClassic:hn,scorecard:yn,scorecardClassic:yn,scorecards:Ga,mcp:ey,skills:ty,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:qh},not:{required:["sso","idps"]},additionalProperties:!0},ny={...ws,additionalProperties:!1},vn={$id:"root-redocly-config",...ws,properties:{plugins:{type:"array",items:{type:"string"}},...ws.properties,env:{type:"object",additionalProperties:ny}},additionalProperties:!1},oy=["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"],Ge=$a({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"}),sy={type:"object",nodeTypeName:Ge.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},iy={type:"object",nodeTypeName:Ge.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},ay={type:"object",nodeTypeName:Ge.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},cy={type:"object",nodeTypeName:Ge.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},py={type:"object",properties:{},nodeTypeName:Ge.EntityMetadata,additionalProperties:!0},ly={type:"object",nodeTypeName:Ge.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},uy={type:"object",nodeTypeName:Ge.EntitySlackContact,properties:{channels:{type:"array",items:ly}},required:["channels"],additionalProperties:!1},dy={type:"object",nodeTypeName:Ge.EntityContact,properties:{slack:uy},additionalProperties:!1},fy={type:"object",nodeTypeName:Ge.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},my={type:"object",nodeTypeName:Ge.EntityRelation,properties:{type:{type:"string",enum:oy},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},zt={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:dy,links:{type:"array",nodeTypeName:Ge.EntityLinkList,items:fy},relations:{type:"array",nodeTypeName:Ge.EntityRelationList,items:my},metadata:py},hy={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...zt,type:{type:"string",const:"user"},metadata:sy},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:Ge.UserEntity},{type:"object",nodeTypeName:Ge.ApiOperationEntity,properties:{...zt,type:{type:"string",const:"api-operation"},metadata:ay},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DataSchemaEntity,properties:{...zt,type:{type:"string",const:"data-schema"},metadata:cy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ApiDescriptionEntity,properties:{...zt,type:{type:"string",const:"api-description"},metadata:iy},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.ServiceEntity,properties:{...zt,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.DomainEntity,properties:{...zt,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:Ge.TeamEntity,properties:{...zt,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},yy={type:"object",nodeTypeName:Ge.Entity,properties:{...zt},required:["key","title","type"],additionalProperties:!1};const gy=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"];function $s(e){return e.includes("/")}var Es={exports:{}},nc={},jt={},Ht={},oc={},sc={},ic={},ac;function bn(){return ac||(ac=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(w){if(super(),!e.IDENTIFIER.test(w))throw new Error("CodeGen: name must be a valid identifier");this.str=w}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(w){super(),this._items=typeof w=="string"?[w]:w}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const w=this._items[0];return w===""||w==='""'}get str(){var w;return(w=this._str)!==null&&w!==void 0?w:this._str=this._items.reduce((f,I)=>`${f}${I}`,"")}get names(){var w;return(w=this._names)!==null&&w!==void 0?w:this._names=this._items.reduce((f,I)=>(I instanceof r&&(f[I.str]=(f[I.str]||0)+1),f),{})}}e._Code=n,e.nil=new n("");function o(E,...w){const f=[E[0]];let I=0;for(;I<w.length;)c(f,w[I]),f.push(E[++I]);return new n(f)}e._=o;const s=new n("+");function i(E,...w){const f=[m(E[0])];let I=0;for(;I<w.length;)f.push(s),c(f,w[I]),f.push(s,m(E[++I]));return a(f),new n(f)}e.str=i;function c(E,w){w instanceof n?E.push(...w._items):w instanceof r?E.push(w):E.push(d(w))}e.addCodeArg=c;function a(E){let w=1;for(;w<E.length-1;){if(E[w]===s){const f=p(E[w-1],E[w+1]);if(f!==void 0){E.splice(w-1,3,f);continue}E[w++]="+"}w++}}function p(E,w){if(w==='""')return E;if(E==='""')return w;if(typeof E=="string")return w instanceof r||E[E.length-1]!=='"'?void 0:typeof w!="string"?`${E.slice(0,-1)}${w}"`:w[0]==='"'?E.slice(0,-1)+w.slice(1):void 0;if(typeof w=="string"&&w[0]==='"'&&!(E instanceof r))return`"${E}${w.slice(1)}`}function l(E,w){return w.emptyStr()?E:E.emptyStr()?w:i`${E}${w}`}e.strConcat=l;function d(E){return typeof E=="number"||typeof E=="boolean"||E===null?E:m(Array.isArray(E)?E.join(","):E)}function y(E){return new n(m(E))}e.stringify=y;function m(E){return JSON.stringify(E).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=m;function h(E){return typeof E=="string"&&e.IDENTIFIER.test(E)?new n(`.${E}`):o`[${E}]`}e.getProperty=h;function $(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=$;function b(E){return new n(E.toString())}e.regexpCode=b})(ic)),ic}var cc={},pc;function lc(){return pc||(pc=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=bn();class r extends Error{constructor(p){super(`CodeGen: "code" for ${p} not defined`),this.value=p.value}}var n;(function(a){a[a.Started=0]="Started",a[a.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 o{constructor({prefixes:p,parent:l}={}){this._names={},this._prefixes=p,this._parent=l}toName(p){return p instanceof t.Name?p:this.name(p)}name(p){return new t.Name(this._newName(p))}_newName(p){const l=this._names[p]||this._nameGroup(p);return`${p}${l.index++}`}_nameGroup(p){var l,d;if(!((d=(l=this._parent)===null||l===void 0?void 0:l._prefixes)===null||d===void 0)&&d.has(p)||this._prefixes&&!this._prefixes.has(p))throw new Error(`CodeGen: prefix "${p}" is not allowed in this scope`);return this._names[p]={prefix:p,index:0}}}e.Scope=o;class s extends t.Name{constructor(p,l){super(l),this.prefix=p}setValue(p,{property:l,itemIndex:d}){this.value=p,this.scopePath=(0,t._)`.${new t.Name(l)}[${d}]`}}e.ValueScopeName=s;const i=(0,t._)`\n`;class c extends o{constructor(p){super(p),this._values={},this._scope=p.scope,this.opts={...p,_n:p.lines?i:t.nil}}get(){return this._scope}name(p){return new s(p,this._newName(p))}value(p,l){var d;if(l.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const y=this.toName(p),{prefix:m}=y,h=(d=l.key)!==null&&d!==void 0?d:l.ref;let $=this._values[m];if($){const w=$.get(h);if(w)return w}else $=this._values[m]=new Map;$.set(h,y);const b=this._scope[m]||(this._scope[m]=[]),E=b.length;return b[E]=l.ref,y.setValue(l,{property:m,itemIndex:E}),y}getValue(p,l){const d=this._values[p];if(d)return d.get(l)}scopeRefs(p,l=this._values){return this._reduceValues(l,d=>{if(d.scopePath===void 0)throw new Error(`CodeGen: name "${d}" has no value`);return(0,t._)`${p}${d.scopePath}`})}scopeCode(p=this._values,l,d){return this._reduceValues(p,y=>{if(y.value===void 0)throw new Error(`CodeGen: name "${y}" has no value`);return y.value.code},l,d)}_reduceValues(p,l,d={},y){let m=t.nil;for(const h in p){const $=p[h];if(!$)continue;const b=d[h]=d[h]||new Map;$.forEach(E=>{if(b.has(E))return;b.set(E,n.Started);let w=l(E);if(w){const f=this.opts.es5?e.varKinds.var:e.varKinds.const;m=(0,t._)`${m}${f} ${E} = ${w};${this.opts._n}`}else if(w=y?.(E))m=(0,t._)`${m}${w}${this.opts._n}`;else throw new r(E);b.set(E,n.Completed)})}return m}}e.ValueScope=c})(cc)),cc}var uc;function $e(){return uc||(uc=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=bn(),r=lc();var n=bn();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 o=lc();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return o.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 s{optimizeNodes(){return this}optimizeNames(T,S){return this}}class i extends s{constructor(T,S,_){super(),this.varKind=T,this.name=S,this.rhs=_}render({es5:T,_n:S}){const _=T?r.varKinds.var:this.varKind,L=this.rhs===void 0?"":` = ${this.rhs}`;return`${_} ${this.name}${L};`+S}optimizeNames(T,S){if(T[this.name.str])return this.rhs&&(this.rhs=z(this.rhs,T,S)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class c extends s{constructor(T,S,_){super(),this.lhs=T,this.rhs=S,this.sideEffects=_}render({_n:T}){return`${this.lhs} = ${this.rhs};`+T}optimizeNames(T,S){if(!(this.lhs instanceof t.Name&&!T[this.lhs.str]&&!this.sideEffects))return this.rhs=z(this.rhs,T,S),this}get names(){const T=this.lhs instanceof t.Name?{}:{...this.lhs.names};return O(T,this.rhs)}}class a extends c{constructor(T,S,_,L){super(T,_,L),this.op=S}render({_n:T}){return`${this.lhs} ${this.op}= ${this.rhs};`+T}}class p extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`${this.label}:`+T}}class l extends s{constructor(T){super(),this.label=T,this.names={}}render({_n:T}){return`break${this.label?` ${this.label}`:""};`+T}}class d extends s{constructor(T){super(),this.error=T}render({_n:T}){return`throw ${this.error};`+T}get names(){return this.error.names}}class y extends s{constructor(T){super(),this.code=T}render({_n:T}){return`${this.code};`+T}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(T,S){return this.code=z(this.code,T,S),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class m extends s{constructor(T=[]){super(),this.nodes=T}render(T){return this.nodes.reduce((S,_)=>S+_.render(T),"")}optimizeNodes(){const{nodes:T}=this;let S=T.length;for(;S--;){const _=T[S].optimizeNodes();Array.isArray(_)?T.splice(S,1,..._):_?T[S]=_:T.splice(S,1)}return T.length>0?this:void 0}optimizeNames(T,S){const{nodes:_}=this;let L=_.length;for(;L--;){const V=_[L];V.optimizeNames(T,S)||(me(T,V.names),_.splice(L,1))}return _.length>0?this:void 0}get names(){return this.nodes.reduce((T,S)=>F(T,S.names),{})}}class h extends m{render(T){return"{"+T._n+super.render(T)+"}"+T._n}}class $ extends m{}class b extends h{}b.kind="else";class E extends h{constructor(T,S){super(S),this.condition=T}render(T){let S=`if(${this.condition})`+super.render(T);return this.else&&(S+="else "+this.else.render(T)),S}optimizeNodes(){super.optimizeNodes();const T=this.condition;if(T===!0)return this.nodes;let S=this.else;if(S){const _=S.optimizeNodes();S=this.else=Array.isArray(_)?new b(_):_}if(S)return T===!1?S instanceof E?S:S.nodes:this.nodes.length?this:new E(we(T),S instanceof E?[S]:S.nodes);if(!(T===!1||!this.nodes.length))return this}optimizeNames(T,S){var _;if(this.else=(_=this.else)===null||_===void 0?void 0:_.optimizeNames(T,S),!!(super.optimizeNames(T,S)||this.else))return this.condition=z(this.condition,T,S),this}get names(){const T=super.names;return O(T,this.condition),this.else&&F(T,this.else.names),T}}E.kind="if";class w extends h{}w.kind="for";class f extends w{constructor(T){super(),this.iteration=T}render(T){return`for(${this.iteration})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iteration=z(this.iteration,T,S),this}get names(){return F(super.names,this.iteration.names)}}class I extends w{constructor(T,S,_,L){super(),this.varKind=T,this.name=S,this.from=_,this.to=L}render(T){const S=T.es5?r.varKinds.var:this.varKind,{name:_,from:L,to:V}=this;return`for(${S} ${_}=${L}; ${_}<${V}; ${_}++)`+super.render(T)}get names(){const T=O(super.names,this.from);return O(T,this.to)}}class g extends w{constructor(T,S,_,L){super(),this.loop=T,this.varKind=S,this.name=_,this.iterable=L}render(T){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(T)}optimizeNames(T,S){if(super.optimizeNames(T,S))return this.iterable=z(this.iterable,T,S),this}get names(){return F(super.names,this.iterable.names)}}class v extends h{constructor(T,S,_){super(),this.name=T,this.args=S,this.async=_}render(T){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(T)}}v.kind="func";class x extends m{render(T){return"return "+super.render(T)}}x.kind="return";class N extends h{render(T){let S="try"+super.render(T);return this.catch&&(S+=this.catch.render(T)),this.finally&&(S+=this.finally.render(T)),S}optimizeNodes(){var T,S;return super.optimizeNodes(),(T=this.catch)===null||T===void 0||T.optimizeNodes(),(S=this.finally)===null||S===void 0||S.optimizeNodes(),this}optimizeNames(T,S){var _,L;return super.optimizeNames(T,S),(_=this.catch)===null||_===void 0||_.optimizeNames(T,S),(L=this.finally)===null||L===void 0||L.optimizeNames(T,S),this}get names(){const T=super.names;return this.catch&&F(T,this.catch.names),this.finally&&F(T,this.finally.names),T}}class K extends h{constructor(T){super(),this.error=T}render(T){return`catch(${this.error})`+super.render(T)}}K.kind="catch";class R extends h{render(T){return"finally"+super.render(T)}}R.kind="finally";class C{constructor(T,S={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...S,_n:S.lines?`
|
|
2
2
|
`:""},this._extScope=T,this._scope=new r.Scope({parent:T}),this._nodes=[new $]}toString(){return this._root.render(this.opts)}name(T){return this._scope.name(T)}scopeName(T){return this._extScope.name(T)}scopeValue(T,S){const _=this._extScope.value(T,S);return(this._values[_.prefix]||(this._values[_.prefix]=new Set)).add(_),_}getScopeValue(T,S){return this._extScope.getValue(T,S)}scopeRefs(T){return this._extScope.scopeRefs(T,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(T,S,_,L){const V=this._scope.toName(S);return _!==void 0&&L&&(this._constants[V.str]=_),this._leafNode(new i(T,V,_)),V}const(T,S,_){return this._def(r.varKinds.const,T,S,_)}let(T,S,_){return this._def(r.varKinds.let,T,S,_)}var(T,S,_){return this._def(r.varKinds.var,T,S,_)}assign(T,S,_){return this._leafNode(new c(T,S,_))}add(T,S){return this._leafNode(new a(T,e.operators.ADD,S))}code(T){return typeof T=="function"?T():T!==t.nil&&this._leafNode(new y(T)),this}object(...T){const S=["{"];for(const[_,L]of T)S.length>1&&S.push(","),S.push(_),(_!==L||this.opts.es5)&&(S.push(":"),(0,t.addCodeArg)(S,L));return S.push("}"),new t._Code(S)}if(T,S,_){if(this._blockNode(new E(T)),S&&_)this.code(S).else().code(_).endIf();else if(S)this.code(S).endIf();else if(_)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(T){return this._elseNode(new E(T))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(E,b)}_for(T,S){return this._blockNode(T),S&&this.code(S).endFor(),this}for(T,S){return this._for(new f(T),S)}forRange(T,S,_,L,V=this.opts.es5?r.varKinds.var:r.varKinds.let){const J=this._scope.toName(T);return this._for(new I(V,J,S,_),()=>L(J))}forOf(T,S,_,L=r.varKinds.const){const V=this._scope.toName(T);if(this.opts.es5){const J=S instanceof t.Name?S:this.var("_arr",S);return this.forRange("_i",0,(0,t._)`${J}.length`,ie=>{this.var(V,(0,t._)`${J}[${ie}]`),_(V)})}return this._for(new g("of",L,V,S),()=>_(V))}forIn(T,S,_,L=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(T,(0,t._)`Object.keys(${S})`,_);const V=this._scope.toName(T);return this._for(new g("in",L,V,S),()=>_(V))}endFor(){return this._endBlockNode(w)}label(T){return this._leafNode(new p(T))}break(T){return this._leafNode(new l(T))}return(T){const S=new x;if(this._blockNode(S),this.code(T),S.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(x)}try(T,S,_){if(!S&&!_)throw new Error('CodeGen: "try" without "catch" and "finally"');const L=new N;if(this._blockNode(L),this.code(T),S){const V=this.name("e");this._currNode=L.catch=new K(V),S(V)}return _&&(this._currNode=L.finally=new R,this.code(_)),this._endBlockNode(K,R)}throw(T){return this._leafNode(new d(T))}block(T,S){return this._blockStarts.push(this._nodes.length),T&&this.code(T).endBlock(S),this}endBlock(T){const S=this._blockStarts.pop();if(S===void 0)throw new Error("CodeGen: not in self-balancing block");const _=this._nodes.length-S;if(_<0||T!==void 0&&_!==T)throw new Error(`CodeGen: wrong number of nodes: ${_} vs ${T} expected`);return this._nodes.length=S,this}func(T,S=t.nil,_,L){return this._blockNode(new v(T,S,_)),L&&this.code(L).endFunc(),this}endFunc(){return this._endBlockNode(v)}optimize(T=1){for(;T-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(T){return this._currNode.nodes.push(T),this}_blockNode(T){this._currNode.nodes.push(T),this._nodes.push(T)}_endBlockNode(T,S){const _=this._currNode;if(_ instanceof T||S&&_ instanceof S)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${S?`${T.kind}/${S.kind}`:T.kind}"`)}_elseNode(T){const S=this._currNode;if(!(S instanceof E))throw new Error('CodeGen: "else" without "if"');return this._currNode=S.else=T,this}get _root(){return this._nodes[0]}get _currNode(){const T=this._nodes;return T[T.length-1]}set _currNode(T){const S=this._nodes;S[S.length-1]=T}}e.CodeGen=C;function F(D,T){for(const S in T)D[S]=(D[S]||0)+(T[S]||0);return D}function O(D,T){return T instanceof t._CodeOrName?F(D,T.names):D}function z(D,T,S){if(D instanceof t.Name)return _(D);if(!L(D))return D;return new t._Code(D._items.reduce((V,J)=>(J instanceof t.Name&&(J=_(J)),J instanceof t._Code?V.push(...J._items):V.push(J),V),[]));function _(V){const J=S[V.str];return J===void 0||T[V.str]!==1?V:(delete T[V.str],J)}function L(V){return V instanceof t._Code&&V._items.some(J=>J instanceof t.Name&&T[J.str]===1&&S[J.str]!==void 0)}}function me(D,T){for(const S in T)D[S]=(D[S]||0)-(T[S]||0)}function we(D){return typeof D=="boolean"||typeof D=="number"||D===null?!D:(0,t._)`!${H(D)}`}e.not=we;const Te=A(e.operators.AND);function ve(...D){return D.reduce(Te)}e.and=ve;const je=A(e.operators.OR);function q(...D){return D.reduce(je)}e.or=q;function A(D){return(T,S)=>T===t.nil?S:S===t.nil?T:(0,t._)`${H(T)} ${D} ${H(S)}`}function H(D){return D instanceof t.Name?D:(0,t._)`(${D})`}})(sc)),sc}var Pe={},dc;function Ne(){if(dc)return Pe;dc=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=$e(),t=bn();function r(g){const v={};for(const x of g)v[x]=!0;return v}Pe.toHash=r;function n(g,v){return typeof v=="boolean"?v:Object.keys(v).length===0?!0:(o(g,v),!s(v,g.self.RULES.all))}Pe.alwaysValidSchema=n;function o(g,v=g.schema){const{opts:x,self:N}=g;if(!x.strictSchema||typeof v=="boolean")return;const K=N.RULES.keywords;for(const R in v)K[R]||I(g,`unknown keyword: "${R}"`)}Pe.checkUnknownRules=o;function s(g,v){if(typeof g=="boolean")return!g;for(const x in g)if(v[x])return!0;return!1}Pe.schemaHasRules=s;function i(g,v){if(typeof g=="boolean")return!g;for(const x in g)if(x!=="$ref"&&v.all[x])return!0;return!1}Pe.schemaHasRulesButRef=i;function c({topSchemaRef:g,schemaPath:v},x,N,K){if(!K){if(typeof x=="number"||typeof x=="boolean")return x;if(typeof x=="string")return(0,e._)`${x}`}return(0,e._)`${g}${v}${(0,e.getProperty)(N)}`}Pe.schemaRefOrVal=c;function a(g){return d(decodeURIComponent(g))}Pe.unescapeFragment=a;function p(g){return encodeURIComponent(l(g))}Pe.escapeFragment=p;function l(g){return typeof g=="number"?`${g}`:g.replace(/~/g,"~0").replace(/\//g,"~1")}Pe.escapeJsonPointer=l;function d(g){return g.replace(/~1/g,"/").replace(/~0/g,"~")}Pe.unescapeJsonPointer=d;function y(g,v){if(Array.isArray(g))for(const x of g)v(x);else v(g)}Pe.eachItem=y;function m({mergeNames:g,mergeToName:v,mergeValues:x,resultToName:N}){return(K,R,C,F)=>{const O=C===void 0?R:C instanceof e.Name?(R instanceof e.Name?g(K,R,C):v(K,R,C),C):R instanceof e.Name?(v(K,C,R),R):x(R,C);return F===e.Name&&!(O instanceof e.Name)?N(K,O):O}}Pe.mergeEvaluated={props:m({mergeNames:(g,v,x)=>g.if((0,e._)`${x} !== true && ${v} !== undefined`,()=>{g.if((0,e._)`${v} === true`,()=>g.assign(x,!0),()=>g.assign(x,(0,e._)`${x} || {}`).code((0,e._)`Object.assign(${x}, ${v})`))}),mergeToName:(g,v,x)=>g.if((0,e._)`${x} !== true`,()=>{v===!0?g.assign(x,!0):(g.assign(x,(0,e._)`${x} || {}`),$(g,x,v))}),mergeValues:(g,v)=>g===!0?!0:{...g,...v},resultToName:h}),items:m({mergeNames:(g,v,x)=>g.if((0,e._)`${x} !== true && ${v} !== undefined`,()=>g.assign(x,(0,e._)`${v} === true ? true : ${x} > ${v} ? ${x} : ${v}`)),mergeToName:(g,v,x)=>g.if((0,e._)`${x} !== true`,()=>g.assign(x,v===!0?!0:(0,e._)`${x} > ${v} ? ${x} : ${v}`)),mergeValues:(g,v)=>g===!0?!0:Math.max(g,v),resultToName:(g,v)=>g.var("items",v)})};function h(g,v){if(v===!0)return g.var("props",!0);const x=g.var("props",(0,e._)`{}`);return v!==void 0&&$(g,x,v),x}Pe.evaluatedPropsToName=h;function $(g,v,x){Object.keys(x).forEach(N=>g.assign((0,e._)`${v}${(0,e.getProperty)(N)}`,!0))}Pe.setEvaluated=$;const b={};function E(g,v){return g.scopeValue("func",{ref:v,code:b[v.code]||(b[v.code]=new t._Code(v.code))})}Pe.useFunc=E;var w;(function(g){g[g.Num=0]="Num",g[g.Str=1]="Str"})(w||(Pe.Type=w={}));function f(g,v,x){if(g instanceof e.Name){const N=v===w.Num;return x?N?(0,e._)`"[" + ${g} + "]"`:(0,e._)`"['" + ${g} + "']"`:N?(0,e._)`"/" + ${g}`:(0,e._)`"/" + ${g}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return x?(0,e.getProperty)(g).toString():"/"+l(g)}Pe.getErrorPath=f;function I(g,v,x=g.opts.strictSchema){if(x){if(v=`strict mode: ${v}`,x===!0)throw new Error(v);g.self.logger.warn(v)}}return Pe.checkStrictMode=I,Pe}var wn={},fc;function st(){if(fc)return wn;fc=1,Object.defineProperty(wn,"__esModule",{value:!0});const e=$e(),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 wn.default=t,wn}var mc;function $n(){return mc||(mc=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=$e(),r=Ne(),n=st();e.keywordError={message:({keyword:b})=>(0,t.str)`must pass "${b}" keyword validation`},e.keyword$DataError={message:({keyword:b,schemaType:E})=>E?(0,t.str)`"${b}" keyword must be ${E} ($data)`:(0,t.str)`"${b}" keyword is invalid ($data)`};function o(b,E=e.keywordError,w,f){const{it:I}=b,{gen:g,compositeRule:v,allErrors:x}=I,N=d(b,E,w);f??(v||x)?a(g,N):p(I,(0,t._)`[${N}]`)}e.reportError=o;function s(b,E=e.keywordError,w){const{it:f}=b,{gen:I,compositeRule:g,allErrors:v}=f,x=d(b,E,w);a(I,x),g||v||p(f,n.default.vErrors)}e.reportExtraError=s;function i(b,E){b.assign(n.default.errors,E),b.if((0,t._)`${n.default.vErrors} !== null`,()=>b.if(E,()=>b.assign((0,t._)`${n.default.vErrors}.length`,E),()=>b.assign(n.default.vErrors,null)))}e.resetErrorsCount=i;function c({gen:b,keyword:E,schemaValue:w,data:f,errsCount:I,it:g}){if(I===void 0)throw new Error("ajv implementation error");const v=b.name("err");b.forRange("i",I,n.default.errors,x=>{b.const(v,(0,t._)`${n.default.vErrors}[${x}]`),b.if((0,t._)`${v}.instancePath === undefined`,()=>b.assign((0,t._)`${v}.instancePath`,(0,t.strConcat)(n.default.instancePath,g.errorPath))),b.assign((0,t._)`${v}.schemaPath`,(0,t.str)`${g.errSchemaPath}/${E}`),g.opts.verbose&&(b.assign((0,t._)`${v}.schema`,w),b.assign((0,t._)`${v}.data`,f))})}e.extendErrors=c;function a(b,E){const w=b.const("err",E);b.if((0,t._)`${n.default.vErrors} === null`,()=>b.assign(n.default.vErrors,(0,t._)`[${w}]`),(0,t._)`${n.default.vErrors}.push(${w})`),b.code((0,t._)`${n.default.errors}++`)}function p(b,E){const{gen:w,validateName:f,schemaEnv:I}=b;I.$async?w.throw((0,t._)`new ${b.ValidationError}(${E})`):(w.assign((0,t._)`${f}.errors`,E),w.return(!1))}const l={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 d(b,E,w){const{createErrors:f}=b.it;return f===!1?(0,t._)`{}`:y(b,E,w)}function y(b,E,w={}){const{gen:f,it:I}=b,g=[m(I,w),h(b,w)];return $(b,E,g),f.object(...g)}function m({errorPath:b},{instancePath:E}){const w=E?(0,t.str)`${b}${(0,r.getErrorPath)(E,r.Type.Str)}`:b;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,w)]}function h({keyword:b,it:{errSchemaPath:E}},{schemaPath:w,parentSchema:f}){let I=f?E:(0,t.str)`${E}/${b}`;return w&&(I=(0,t.str)`${I}${(0,r.getErrorPath)(w,r.Type.Str)}`),[l.schemaPath,I]}function $(b,{params:E,message:w},f){const{keyword:I,data:g,schemaValue:v,it:x}=b,{opts:N,propertyName:K,topSchemaRef:R,schemaPath:C}=x;f.push([l.keyword,I],[l.params,typeof E=="function"?E(b):E||(0,t._)`{}`]),N.messages&&f.push([l.message,typeof w=="function"?w(b):w]),N.verbose&&f.push([l.schema,v],[l.parentSchema,(0,t._)`${R}${C}`],[n.default.data,g]),K&&f.push([l.propertyName,K])}})(oc)),oc}var hc;function vy(){if(hc)return Ht;hc=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.boolOrEmptySchema=Ht.topBoolOrEmptySchema=void 0;const e=$n(),t=$e(),r=st(),n={message:"boolean schema is false"};function o(c){const{gen:a,schema:p,validateName:l}=c;p===!1?i(c,!1):typeof p=="object"&&p.$async===!0?a.return(r.default.data):(a.assign((0,t._)`${l}.errors`,null),a.return(!0))}Ht.topBoolOrEmptySchema=o;function s(c,a){const{gen:p,schema:l}=c;l===!1?(p.var(a,!1),i(c)):p.var(a,!0)}Ht.boolOrEmptySchema=s;function i(c,a){const{gen:p,data:l}=c,d={gen:p,keyword:"false schema",data:l,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:c};(0,e.reportError)(d,n,void 0,a)}return Ht}var Je={},Qt={},yc;function gc(){if(yc)return Qt;yc=1,Object.defineProperty(Qt,"__esModule",{value:!0}),Qt.getRules=Qt.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function r(o){return typeof o=="string"&&t.has(o)}Qt.isJSONType=r;function n(){const o={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...o,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},o.number,o.string,o.array,o.object],post:{rules:[]},all:{},keywords:{}}}return Qt.getRules=n,Qt}var At={},vc;function bc(){if(vc)return At;vc=1,Object.defineProperty(At,"__esModule",{value:!0}),At.shouldUseRule=At.shouldUseGroup=At.schemaHasRulesForType=void 0;function e({schema:n,self:o},s){const i=o.RULES.types[s];return i&&i!==!0&&t(n,i)}At.schemaHasRulesForType=e;function t(n,o){return o.rules.some(s=>r(n,s))}At.shouldUseGroup=t;function r(n,o){var s;return n[o.keyword]!==void 0||((s=o.definition.implements)===null||s===void 0?void 0:s.some(i=>n[i]!==void 0))}return At.shouldUseRule=r,At}var wc;function En(){if(wc)return Je;wc=1,Object.defineProperty(Je,"__esModule",{value:!0}),Je.reportTypeError=Je.checkDataTypes=Je.checkDataType=Je.coerceAndCheckDataType=Je.getJSONTypes=Je.getSchemaTypes=Je.DataType=void 0;const e=gc(),t=bc(),r=$n(),n=$e(),o=Ne();var s;(function(w){w[w.Correct=0]="Correct",w[w.Wrong=1]="Wrong"})(s||(Je.DataType=s={}));function i(w){const f=c(w.type);if(f.includes("null")){if(w.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!f.length&&w.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');w.nullable===!0&&f.push("null")}return f}Je.getSchemaTypes=i;function c(w){const f=Array.isArray(w)?w:w?[w]:[];if(f.every(e.isJSONType))return f;throw new Error("type must be JSONType or JSONType[]: "+f.join(","))}Je.getJSONTypes=c;function a(w,f){const{gen:I,data:g,opts:v}=w,x=l(f,v.coerceTypes),N=f.length>0&&!(x.length===0&&f.length===1&&(0,t.schemaHasRulesForType)(w,f[0]));if(N){const K=h(f,g,v.strictNumbers,s.Wrong);I.if(K,()=>{x.length?d(w,f,x):b(w)})}return N}Je.coerceAndCheckDataType=a;const p=new Set(["string","number","integer","boolean","null"]);function l(w,f){return f?w.filter(I=>p.has(I)||f==="array"&&I==="array"):[]}function d(w,f,I){const{gen:g,data:v,opts:x}=w,N=g.let("dataType",(0,n._)`typeof ${v}`),K=g.let("coerced",(0,n._)`undefined`);x.coerceTypes==="array"&&g.if((0,n._)`${N} == 'object' && Array.isArray(${v}) && ${v}.length == 1`,()=>g.assign(v,(0,n._)`${v}[0]`).assign(N,(0,n._)`typeof ${v}`).if(h(f,v,x.strictNumbers),()=>g.assign(K,v))),g.if((0,n._)`${K} !== undefined`);for(const C of I)(p.has(C)||C==="array"&&x.coerceTypes==="array")&&R(C);g.else(),b(w),g.endIf(),g.if((0,n._)`${K} !== undefined`,()=>{g.assign(v,K),y(w,K)});function R(C){switch(C){case"string":g.elseIf((0,n._)`${N} == "number" || ${N} == "boolean"`).assign(K,(0,n._)`"" + ${v}`).elseIf((0,n._)`${v} === null`).assign(K,(0,n._)`""`);return;case"number":g.elseIf((0,n._)`${N} == "boolean" || ${v} === null
|
|
3
3
|
|| (${N} == "string" && ${v} && ${v} == +${v})`).assign(K,(0,n._)`+${v}`);return;case"integer":g.elseIf((0,n._)`${N} === "boolean" || ${v} === null
|
|
4
4
|
|| (${N} === "string" && ${v} && ${v} == +${v} && !(${v} % 1))`).assign(K,(0,n._)`+${v}`);return;case"boolean":g.elseIf((0,n._)`${v} === "false" || ${v} === 0 || ${v} === null`).assign(K,!1).elseIf((0,n._)`${v} === "true" || ${v} === 1`).assign(K,!0);return;case"null":g.elseIf((0,n._)`${v} === "" || ${v} === 0 || ${v} === false`),g.assign(K,null);return;case"array":g.elseIf((0,n._)`${N} === "string" || ${N} === "number"
|
|
@@ -171,4 +171,4 @@ ${f.message}
|
|
|
171
171
|
`:"",d=i.message+(p!==""||l!==""?`
|
|
172
172
|
|
|
173
173
|
`:"")+p+l,y={title:i.ruleId,file:tt(c.source.absoluteRef)?c.source.absoluteRef:Ke.relative(t,c.source.absoluteRef),line:c.start.line,col:c.start.col,endLine:c.end?.line,endColumn:c.end?.col};Se.output(`::${a} ${r(y)}::${o(d)}
|
|
174
|
-
`)}function r(i){return Object.entries(i).filter(([,c])=>c!=null).map(([c,a])=>`${c}=${s(a)}`).join(",")}function n(i){return i==null?"":typeof i=="string"||i instanceof String?i:JSON.stringify(i)}function o(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function s(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:vx,...ux}=vn.properties,dx={...vn,properties:ux};async function fx(e){const{ref:t,externalRefResolver:r=new Yt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Qi({document:n,...e,externalRefResolver:r})}async function mx(e){const{source:t,absoluteRef:r,externalRefResolver:n=new Yt(e.config.resolve)}=e,o=us(t,r||"/");return Qi({document:o,...e,externalRefResolver:n})}async function Qi(e){const{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(Cf(t.source.absoluteRef)){const{lintGraphqlDocument:m}=await import("./redocly-openapi-docs.min.lint-graphql-
|
|
174
|
+
`)}function r(i){return Object.entries(i).filter(([,c])=>c!=null).map(([c,a])=>`${c}=${s(a)}`).join(",")}function n(i){return i==null?"":typeof i=="string"||i instanceof String?i:JSON.stringify(i)}function o(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function s(i){return n(i).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}const{theme:vx,...ux}=vn.properties,dx={...vn,properties:ux};async function fx(e){const{ref:t,externalRefResolver:r=new Yt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Qi({document:n,...e,externalRefResolver:r})}async function mx(e){const{source:t,absoluteRef:r,externalRefResolver:n=new Yt(e.config.resolve)}=e,o=us(t,r||"/");return Qi({document:o,...e,externalRefResolver:n})}async function Qi(e){const{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(Cf(t.source.absoluteRef)){const{lintGraphqlDocument:m}=await import("./redocly-openapi-docs.min.lint-graphql-CVRQfjxQ.js");return m({document:t,config:o})}const s=rn(t.parsed),i=o.getRulesForSpecVersion(Df(s)),c=ps(o.extendTypes(r??en(s),s),o),a={problems:[],specVersion:s,config:o,visitorsData:{}},p=la(i,o,"preprocessors",s),l=la(i,o,"rules",s);let d=await sn({rootDocument:t,rootType:c.Root,externalRefResolver:n});p.length>0&&(nn({document:t,rootType:c.Root,normalizedVisitors:Tr(p,c),resolvedRefMap:d,ctx:a}),d=await sn({rootDocument:t,rootType:c.Root,externalRefResolver:n}));const y=Tr(l,c);return nn({document:t,rootType:c.Root,normalizedVisitors:y,resolvedRefMap:d,ctx:a}),a.problems.map(m=>o.addProblemToIgnore(m))}async function hx(e){const{severity:t,externalRefResolver:r=new Yt,config:n}=e;if(!n.document)throw new Error("Config document is not set.");const o={problems:[],specVersion:"config",config:n,visitorsData:{}},s=ps(e.externalConfigTypes||Rs(dx,n)),i=[{severity:t||"error",ruleId:"configuration struct",visitor:Ct()},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:Vt()}],c=Tr(i,s),a=n.resolvedRefMap||await sn({rootDocument:n.document,rootType:s.ConfigRoot,externalRefResolver:r});return nn({document:n.document,rootType:s.ConfigRoot,normalizedVisitors:c,resolvedRefMap:a,ctx:o}),o.problems}export{Ut as A,x1 as B,hy as C,Tt as D,As as E,Ll as F,fe as G,Vl as H,z0 as I,zl as J,Ve as K,ge as L,vt as M,B as N,lt as O,he as P,L0 as Q,yy as R,Ct as S,M0 as T,qo as U,Ys as V,Kl as W,el as a,s1 as b,S1 as c,l1 as d,u1 as e,b1 as f,Qp as g,Rs as h,P1 as i,ax as j,af as k,Qi as l,Yi as m,Gt as n,g1 as o,lf as p,_r as q,ds as r,fx as s,Ge as t,hx as u,mx as v,_1 as w,xd as x,Se as y,zf as z};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{bK as B}from"./redocly-openapi-docs.min.standalone-DweQeOg3.js";import{G as y,T as C,F as x,H as I,I as M,J as K,K as A,L as U,M as V,N as a,O as k,P as G,Q as $,U as R,V as Y,W as j}from"./redocly-openapi-docs.min.lint-DBvVDQqS.js";function u(s,t,e){return new y(`Syntax Error: ${e}`,{source:s,positions:[t]})}var n;(function(s){s.SOF="<SOF>",s.EOF="<EOF>",s.BANG="!",s.DOLLAR="$",s.AMP="&",s.PAREN_L="(",s.PAREN_R=")",s.DOT=".",s.SPREAD="...",s.COLON=":",s.EQUALS="=",s.AT="@",s.BRACKET_L="[",s.BRACKET_R="]",s.BRACE_L="{",s.PIPE="|",s.BRACE_R="}",s.NAME="Name",s.INT="Int",s.FLOAT="Float",s.STRING="String",s.BLOCK_STRING="BlockString",s.COMMENT="Comment"})(n||(n={}));class q{constructor(t){const e=new C(n.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==n.EOF)do if(t.next)t=t.next;else{const e=Q(this,t.end);t.next=e,e.prev=t,t=e}while(t.kind===n.COMMENT);return t}}function z(s){return s===n.BANG||s===n.DOLLAR||s===n.AMP||s===n.PAREN_L||s===n.PAREN_R||s===n.DOT||s===n.SPREAD||s===n.COLON||s===n.EQUALS||s===n.AT||s===n.BRACKET_L||s===n.BRACKET_R||s===n.BRACE_L||s===n.PIPE||s===n.BRACE_R}function m(s){return s>=0&&s<=55295||s>=57344&&s<=1114111}function N(s,t){return L(s.charCodeAt(t))&&g(s.charCodeAt(t+1))}function L(s){return s>=55296&&s<=56319}function g(s){return s>=56320&&s<=57343}function E(s,t){const e=s.source.body.codePointAt(t);if(e===void 0)return n.EOF;if(e>=32&&e<=126){const r=String.fromCodePoint(e);return r==='"'?`'"'`:`"${r}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function p(s,t,e,r,i){const o=s.line,c=1+e-s.lineStart;return new C(t,e,r,o,c,i)}function Q(s,t){const e=s.source.body,r=e.length;let i=t;for(;i<r;){const o=e.charCodeAt(i);switch(o){case 65279:case 9:case 32:case 44:++i;continue;case 10:++i,++s.line,s.lineStart=i;continue;case 13:e.charCodeAt(i+1)===10?i+=2:++i,++s.line,s.lineStart=i;continue;case 35:return X(s,i);case 33:return p(s,n.BANG,i,i+1);case 36:return p(s,n.DOLLAR,i,i+1);case 38:return p(s,n.AMP,i,i+1);case 40:return p(s,n.PAREN_L,i,i+1);case 41:return p(s,n.PAREN_R,i,i+1);case 46:if(e.charCodeAt(i+1)===46&&e.charCodeAt(i+2)===46)return p(s,n.SPREAD,i,i+3);break;case 58:return p(s,n.COLON,i,i+1);case 61:return p(s,n.EQUALS,i,i+1);case 64:return p(s,n.AT,i,i+1);case 91:return p(s,n.BRACKET_L,i,i+1);case 93:return p(s,n.BRACKET_R,i,i+1);case 123:return p(s,n.BRACE_L,i,i+1);case 124:return p(s,n.PIPE,i,i+1);case 125:return p(s,n.BRACE_R,i,i+1);case 34:return e.charCodeAt(i+1)===34&&e.charCodeAt(i+2)===34?te(s,i):H(s,i)}if(x(o)||o===45)return J(s,i,o);if(I(o))return ie(s,i);throw u(s.source,i,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:m(o)||N(e,i)?`Unexpected character: ${E(s,i)}.`:`Invalid character: ${E(s,i)}.`)}return p(s,n.EOF,r,r)}function X(s,t){const e=s.source.body,r=e.length;let i=t+1;for(;i<r;){const o=e.charCodeAt(i);if(o===10||o===13)break;if(m(o))++i;else if(N(e,i))i+=2;else break}return p(s,n.COMMENT,t,i,e.slice(t+1,i))}function J(s,t,e){const r=s.source.body;let i=t,o=e,c=!1;if(o===45&&(o=r.charCodeAt(++i)),o===48){if(o=r.charCodeAt(++i),x(o))throw u(s.source,i,`Invalid number, unexpected digit after 0: ${E(s,i)}.`)}else i=v(s,i,o),o=r.charCodeAt(i);if(o===46&&(c=!0,o=r.charCodeAt(++i),i=v(s,i,o),o=r.charCodeAt(i)),(o===69||o===101)&&(c=!0,o=r.charCodeAt(++i),(o===43||o===45)&&(o=r.charCodeAt(++i)),i=v(s,i,o),o=r.charCodeAt(i)),o===46||I(o))throw u(s.source,i,`Invalid number, expected digit but got: ${E(s,i)}.`);return p(s,c?n.FLOAT:n.INT,t,i,r.slice(t,i))}function v(s,t,e){if(!x(e))throw u(s.source,t,`Invalid number, expected digit but got: ${E(s,t)}.`);const r=s.source.body;let i=t+1;for(;x(r.charCodeAt(i));)++i;return i}function H(s,t){const e=s.source.body,r=e.length;let i=t+1,o=i,c="";for(;i<r;){const h=e.charCodeAt(i);if(h===34)return c+=e.slice(o,i),p(s,n.STRING,t,i+1,c);if(h===92){c+=e.slice(o,i);const d=e.charCodeAt(i+1)===117?e.charCodeAt(i+2)===123?W(s,i):Z(s,i):ee(s,i);c+=d.value,i+=d.size,o=i;continue}if(h===10||h===13)break;if(m(h))++i;else if(N(e,i))i+=2;else throw u(s.source,i,`Invalid character within String: ${E(s,i)}.`)}throw u(s.source,i,"Unterminated string.")}function W(s,t){const e=s.source.body;let r=0,i=3;for(;i<12;){const o=e.charCodeAt(t+i++);if(o===125){if(i<5||!m(r))break;return{value:String.fromCodePoint(r),size:i}}if(r=r<<4|T(o),r<0)break}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+i)}".`)}function Z(s,t){const e=s.source.body,r=S(e,t+2);if(m(r))return{value:String.fromCodePoint(r),size:6};if(L(r)&&e.charCodeAt(t+6)===92&&e.charCodeAt(t+7)===117){const i=S(e,t+8);if(g(i))return{value:String.fromCodePoint(r,i),size:12}}throw u(s.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+6)}".`)}function S(s,t){return T(s.charCodeAt(t))<<12|T(s.charCodeAt(t+1))<<8|T(s.charCodeAt(t+2))<<4|T(s.charCodeAt(t+3))}function T(s){return s>=48&&s<=57?s-48:s>=65&&s<=70?s-55:s>=97&&s<=102?s-87:-1}function ee(s,t){const e=s.source.body;switch(e.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
2
2
|
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw u(s.source,t,`Invalid character escape sequence: "${e.slice(t,t+2)}".`)}function te(s,t){const e=s.source.body,r=e.length;let i=s.lineStart,o=t+3,c=o,h="";const d=[];for(;o<r;){const f=e.charCodeAt(o);if(f===34&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34){h+=e.slice(c,o),d.push(h);const l=p(s,n.BLOCK_STRING,t,o+3,M(d).join(`
|
|
3
3
|
`));return s.line+=d.length-1,s.lineStart=i,l}if(f===92&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34&&e.charCodeAt(o+3)===34){h+=e.slice(c,o),c=o+1,o+=4;continue}if(f===10||f===13){h+=e.slice(c,o),d.push(h),f===13&&e.charCodeAt(o+1)===10?o+=2:++o,h="",c=o,i=o;continue}if(m(f))++o;else if(N(e,o))o+=2;else throw u(s.source,o,`Invalid character within String: ${E(s,o)}.`)}throw u(s.source,o,"Unterminated string.")}function ie(s,t){const e=s.source.body,r=e.length;let i=t+1;for(;i<r;){const o=e.charCodeAt(i);if(K(o))++i;else break}return p(s,n.NAME,t,i,e.slice(t,i))}class D{constructor(t,e="GraphQL request",r={line:1,column:1}){typeof t=="string"||A(!1,`Body must be a string. Received: ${U(t)}.`),this.body=t,this.name=e,this.locationOffset=r,this.locationOffset.line>0||A(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||A(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function se(s){return V(s,D)}function re(s,t){const e=new ne(s,t),r=e.parseDocument();return Object.defineProperty(r,"tokenCount",{enumerable:!1,value:e.tokenCount}),r}class ne{constructor(t,e={}){const{lexer:r,...i}=e;if(r)this._lexer=r;else{const o=se(t)?t:new D(t);this._lexer=new q(o)}this._options=i,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(n.NAME);return this.node(t,{kind:a.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.DOCUMENT,definitions:this.many(n.SOF,this.parseDefinition,n.EOF)})}parseDefinition(){if(this.peek(n.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(t&&e.kind===n.BRACE_L)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===n.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(e.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(n.BRACE_L))return this.node(t,{kind:a.OPERATION_DEFINITION,operation:k.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseDescription(),r=this.parseOperationType();let i;return this.peek(n.NAME)&&(i=this.parseName()),this.node(t,{kind:a.OPERATION_DEFINITION,operation:r,description:e,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(n.NAME);switch(t.value){case"query":return k.QUERY;case"mutation":return k.MUTATION;case"subscription":return k.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(n.PAREN_L,this.parseVariableDefinition,n.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(n.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(n.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(n.DOLLAR),this.node(t,{kind:a.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.SELECTION_SET,selections:this.many(n.BRACE_L,this.parseSelection,n.BRACE_R)})}parseSelection(){return this.peek(n.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let r,i;return this.expectOptionalToken(n.COLON)?(r=e,i=this.parseName()):i=e,this.node(t,{kind:a.FIELD,alias:r,name:i,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(n.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(n.PAREN_L,e,n.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,r=this.parseName();return this.expectToken(n.COLON),this.node(e,{kind:a.ARGUMENT,name:r,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(n.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(n.NAME)?this.node(t,{kind:a.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:a.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:a.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:a.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case n.BRACKET_L:return this.parseList(t);case n.BRACE_L:return this.parseObject(t);case n.INT:return this.advanceLexer(),this.node(e,{kind:a.INT,value:e.value});case n.FLOAT:return this.advanceLexer(),this.node(e,{kind:a.FLOAT,value:e.value});case n.STRING:case n.BLOCK_STRING:return this.parseStringLiteral();case n.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:a.BOOLEAN,value:!0});case"false":return this.node(e,{kind:a.BOOLEAN,value:!1});case"null":return this.node(e,{kind:a.NULL});default:return this.node(e,{kind:a.ENUM,value:e.value})}case n.DOLLAR:if(t)if(this.expectToken(n.DOLLAR),this._lexer.token.kind===n.NAME){const r=this._lexer.token.value;throw u(this._lexer.source,e.start,`Unexpected variable "$${r}" in constant value.`)}else throw this.unexpected(e);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:a.STRING,value:t.value,block:t.kind===n.BLOCK_STRING})}parseList(t){const e=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:a.LIST,values:this.any(n.BRACKET_L,e,n.BRACKET_R)})}parseObject(t){const e=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:a.OBJECT,fields:this.any(n.BRACE_L,e,n.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,r=this.parseName();return this.expectToken(n.COLON),this.node(e,{kind:a.OBJECT_FIELD,name:r,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(n.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(n.AT),this.node(e,{kind:a.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(n.BRACKET_L)){const r=this.parseTypeReference();this.expectToken(n.BRACKET_R),e=this.node(t,{kind:a.LIST_TYPE,type:r})}else e=this.parseNamedType();return this.expectOptionalToken(n.BANG)?this.node(t,{kind:a.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:a.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(n.STRING)||this.peek(n.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const r=this.parseConstDirectives(),i=this.many(n.BRACE_L,this.parseOperationTypeDefinition,n.BRACE_R);return this.node(t,{kind:a.SCHEMA_DEFINITION,description:e,directives:r,operationTypes:i})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(n.COLON);const r=this.parseNamedType();return this.node(t,{kind:a.OPERATION_TYPE_DEFINITION,operation:e,type:r})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const r=this.parseName(),i=this.parseConstDirectives();return this.node(t,{kind:a.SCALAR_TYPE_DEFINITION,description:e,name:r,directives:i})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.OBJECT_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(n.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(n.BRACE_L,this.parseFieldDefinition,n.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName(),i=this.parseArgumentDefs();this.expectToken(n.COLON);const o=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(t,{kind:a.FIELD_DEFINITION,description:e,name:r,arguments:i,type:o,directives:c})}parseArgumentDefs(){return this.optionalMany(n.PAREN_L,this.parseInputValueDef,n.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseName();this.expectToken(n.COLON);const i=this.parseTypeReference();let o;this.expectOptionalToken(n.EQUALS)&&(o=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(t,{kind:a.INPUT_VALUE_DEFINITION,description:e,name:r,type:i,defaultValue:o,directives:c})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const r=this.parseName(),i=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.INTERFACE_TYPE_DEFINITION,description:e,name:r,interfaces:i,directives:o,fields:c})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:a.UNION_TYPE_DEFINITION,description:e,name:r,directives:i,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(n.EQUALS)?this.delimitedMany(n.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:a.ENUM_TYPE_DEFINITION,description:e,name:r,directives:i,values:o})}parseEnumValuesDefinition(){return this.optionalMany(n.BRACE_L,this.parseEnumValueDefinition,n.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),r=this.parseEnumValueName(),i=this.parseConstDirectives();return this.node(t,{kind:a.ENUM_VALUE_DEFINITION,description:e,name:r,directives:i})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw u(this._lexer.source,this._lexer.token.start,`${_(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const r=this.parseName(),i=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:a.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:r,directives:i,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(n.BRACE_L,this.parseInputValueDef,n.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===n.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),r=this.optionalMany(n.BRACE_L,this.parseOperationTypeDefinition,n.BRACE_R);if(e.length===0&&r.length===0)throw this.unexpected();return this.node(t,{kind:a.SCHEMA_EXTENSION,directives:e,operationTypes:r})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:a.SCALAR_TYPE_EXTENSION,name:e,directives:r})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.OBJECT_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),r=this.parseImplementsInterfaces(),i=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(r.length===0&&i.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.INTERFACE_TYPE_EXTENSION,name:e,interfaces:r,directives:i,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseUnionMemberTypes();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:a.UNION_TYPE_EXTENSION,name:e,directives:r,types:i})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseEnumValuesDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:a.ENUM_TYPE_EXTENSION,name:e,directives:r,values:i})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),r=this.parseConstDirectives(),i=this.parseInputFieldsDefinition();if(r.length===0&&i.length===0)throw this.unexpected();return this.node(t,{kind:a.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:r,fields:i})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(n.AT);const e=this.parseName(),r=this.parseConstDirectives();if(r.length===0)throw this.unexpected();return this.node(t,{kind:a.DIRECTIVE_EXTENSION,name:e,directives:r})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(n.AT);const r=this.parseName(),i=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const h=this.parseDirectiveLocations();return this.node(t,{kind:a.DIRECTIVE_DEFINITION,description:e,name:r,arguments:i,directives:o,repeatable:c,locations:h})}parseDirectiveLocations(){return this.delimitedMany(n.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(G,e.value))return e;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,e=this.expectOptionalToken(n.AT),r=this.parseName();let i;!e&&this.expectOptionalToken(n.DOT)&&(i=this.parseName());let o;return(e||i)&&this.expectOptionalToken(n.PAREN_L)&&(o=this.parseName(),this.expectToken(n.COLON),this.expectToken(n.PAREN_R)),e?o?this.node(t,{kind:a.DIRECTIVE_ARGUMENT_COORDINATE,name:r,argumentName:o}):this.node(t,{kind:a.DIRECTIVE_COORDINATE,name:r}):i?o?this.node(t,{kind:a.ARGUMENT_COORDINATE,name:r,fieldName:i,argumentName:o}):this.node(t,{kind:a.MEMBER_COORDINATE,name:r,memberName:i}):this.node(t,{kind:a.TYPE_COORDINATE,name:r})}node(t,e){return this._options.noLocation!==!0&&(e.loc=new $(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw u(this._lexer.source,e.start,`Expected ${w(t)}, found ${_(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const e=this._lexer.token;if(e.kind===n.NAME&&e.value===t)this.advanceLexer();else throw u(this._lexer.source,e.start,`Expected "${t}", found ${_(e)}.`)}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===n.NAME&&e.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const e=t??this._lexer.token;return u(this._lexer.source,e.start,`Unexpected ${_(e)}.`)}any(t,e,r){this.expectToken(t);const i=[];for(;!this.expectOptionalToken(r);)i.push(e.call(this));return i}optionalMany(t,e,r){if(this.expectOptionalToken(t)){const i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}return[]}many(t,e,r){this.expectToken(t);const i=[];do i.push(e.call(this));while(!this.expectOptionalToken(r));return i}delimitedMany(t,e){this.expectOptionalToken(t);const r=[];do r.push(e.call(this));while(this.expectOptionalToken(t));return r}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(e.kind!==n.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw u(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function _(s){const t=s.value;return w(s.kind)+(t!=null?` "${t}"`:"")}function w(s){return z(s)?`"${s}"`:s}function oe(s,t){const e={};for(const r of Object.keys(s)){const i=s[r];if(!i)continue;const o=typeof i=="function"?i:i.enter,c=typeof i=="function"?void 0:i.leave;e[r]={...o?{enter:b(o,t)}:{},...c?{leave:b(c,t)}:{}}}return e}function b(s,t){return(e,r,i,o,c)=>{s(e,ae(e,t,c))}}function ae(s,t,e=[]){const{ruleId:r,severity:i,message:o,source:c,config:h,problems:d}=t,f=e.filter(l=>!Array.isArray(l));return{source:c,config:h,ancestors:f,report(l){const P=l.node??s,O=l.loc??ce(P),F={source:c,pointer:void 0,start:O?.start??{line:1,col:1},end:O?.end};d.push({ruleId:l.ruleId??r,severity:l.severity??i,message:o?o.replace("{{message}}",l.message):l.message,suggest:l.suggest??[],location:[F]})}}}function ce(s){if(!s?.loc)return;const t=R(s.loc.source,s.loc.start),e=R(s.loc.source,s.loc.end);return{start:{line:t.line,col:t.column},end:{line:e.line,col:e.column}}}function he(s){const{document:t,config:e}=s,r=t.source;if(r.body.trim()==="")return[{ruleId:"struct",severity:"error",message:"The GraphQL document is empty. Expected at least one type definition.",suggest:[],location:[{source:r,pointer:void 0,start:{line:1,col:1}}]}];let i;try{i=re(new D(r.body,r.absoluteRef))}catch(h){if(h instanceof y)return[pe(h,r)];throw h}const o=e.getRulesForSpecVersion("graphql")??[],c=B(o,e,"rules","graphql");return ue({ast:i,source:r,config:e,rules:c}).map(h=>e.addProblemToIgnore(h))}function pe(s,t){const e=s.locations?.[0];return{ruleId:"struct",severity:"error",message:s.message,suggest:[],location:[{source:t,pointer:void 0,start:e?{line:e.line,col:e.column}:{line:1,col:1}}]}}function ue(s){const{ast:t,source:e,config:r,rules:i}=s,o=[],c=i.map(({ruleId:h,severity:d,message:f,visitor:l})=>oe(l,{ruleId:h,severity:d,message:f,source:e,config:r,problems:o}));return c.length>0&&Y(t,j(c)),o}export{he as lintGraphqlDocument};
|