@redocly/mock-server 0.3.6 → 0.3.7
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/bin.js +13 -13
- package/package.json +3 -3
package/dist/bin.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
var rj=Object.create;var Ea=Object.defineProperty;var nj=Object.getOwnPropertyDescriptor;var ij=Object.getOwnPropertyNames;var oj=Object.getPrototypeOf,sj=Object.prototype.hasOwnProperty;var lw=e=>{throw TypeError(e)};var aj=(e,t,r)=>t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gd=(e,t)=>{for(var r in t)Ea(e,r,{get:t[r],enumerable:!0})},uw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ij(t))!sj.call(e,i)&&i!==r&&Ea(e,i,{get:()=>t[i],enumerable:!(n=nj(t,i))||n.enumerable});return e};var Ee=(e,t,r)=>(r=e!=null?rj(oj(e)):{},uw(t||!e||!e.__esModule?Ea(r,"default",{value:e,enumerable:!0}):r,e)),cj=e=>uw(Ea({},"__esModule",{value:!0}),e);var pw=(e,t,r)=>aj(e,typeof t!="symbol"?t+"":t,r),Jd=(e,t,r)=>t.has(e)||lw("Cannot "+r);var F=(e,t,r)=>(Jd(e,t,"read from private field"),r?r.call(e):t.get(e)),Gt=(e,t,r)=>t.has(e)?lw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),We=(e,t,r,n)=>(Jd(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Gn=(e,t,r)=>(Jd(e,t,"access private method"),r);var om=w((nm,im)=>{(function(e,t){typeof require=="function"&&typeof nm=="object"&&typeof im=="object"?im.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(nm,function(){var e=[],t=[],r={},n={},i={};function o(d){return typeof d=="string"?new RegExp("^"+d+"$","i"):d}function s(d,f){return d===f?f:d===d.toLowerCase()?f.toLowerCase():d===d.toUpperCase()?f.toUpperCase():d[0]===d[0].toUpperCase()?f.charAt(0).toUpperCase()+f.substr(1).toLowerCase():f.toLowerCase()}function a(d,f){return d.replace(/\$(\d{1,2})/g,function(h,y){return f[y]||""})}function c(d,f){return d.replace(f[0],function(h,y){var g=a(f[1],arguments);return s(h===""?d[y-1]:h,g)})}function l(d,f,h){if(!d.length||r.hasOwnProperty(d))return f;for(var y=h.length;y--;){var g=h[y];if(g[0].test(f))return c(f,g)}return f}function u(d,f,h){return function(y){var g=y.toLowerCase();return f.hasOwnProperty(g)?s(y,g):d.hasOwnProperty(g)?s(y,d[g]):l(g,y,h)}}function p(d,f,h,y){return function(g){var b=g.toLowerCase();return f.hasOwnProperty(b)?!0:d.hasOwnProperty(b)?!1:l(b,b,h)===b}}function m(d,f,h){var y=f===1?m.singular(d):m.plural(d);return(h?f+" ":"")+y}return m.plural=u(i,n,e),m.isPlural=p(i,n,e),m.singular=u(n,i,t),m.isSingular=p(n,i,t),m.addPluralRule=function(d,f){e.push([o(d),f])},m.addSingularRule=function(d,f){t.push([o(d),f])},m.addUncountableRule=function(d){if(typeof d=="string"){r[d.toLowerCase()]=!0;return}m.addPluralRule(d,"$0"),m.addSingularRule(d,"$0")},m.addIrregularRule=function(d,f){f=f.toLowerCase(),d=d.toLowerCase(),i[d]=f,n[f]=d},[["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(d){return m.addIrregularRule(d[0],d[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(d){return m.addPluralRule(d[0],d[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(d){return m.addSingularRule(d[0],d[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(m.addUncountableRule),m})});var Va=w(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.feedbackConfigSchema=Qt.optionalEmailSettings=Qt.reasonsSettings=void 0;var WS={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}};Qt.reasonsSettings={type:"object",properties:WS,additionalProperties:!1};Qt.optionalEmailSettings={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1};Qt.feedbackConfigSchema={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},WS),{like:Qt.reasonsSettings,dislike:Qt.reasonsSettings,satisfied:Qt.reasonsSettings,neutral:Qt.reasonsSettings,dissatisfied:Qt.reasonsSettings}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Qt.optionalEmailSettings},additionalProperties:!1}},additionalProperties:!1}});var Zl=w(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.redocConfigSchema=eo.downloadUrlsSchema=void 0;var BL=Va(),UL={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},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};eo.downloadUrlsSchema={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}};eo.redocConfigSchema={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:BL.feedbackConfigSchema,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:eo.downloadUrlsSchema,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:UL,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1}});var ih=w(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.graphqlConfigSchema=void 0;var VL=Va(),zL=Zl(),ss={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},HL={type:"object",properties:{name:{type:"string"},items:ss,queries:ss,mutations:ss,subscriptions:ss,types:ss,directives:ss},required:["name"],additionalProperties:!1},KL={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:HL},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1};eu.graphqlConfigSchema={type:"object",properties:{menu:{type:"object",properties:Object.assign({},KL.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:zL.downloadUrlsSchema,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:VL.feedbackConfigSchema},additionalProperties:!1}});var e_=w(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.deprecatedRefDocsSchema=void 0;var WL={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},YL={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"}}},YS={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},GL={type:"object",properties:{beforeInfo:{type:"array",items:YS},end:{type:"array",items:YS}}},to={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},tu={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},JL={type:"object",properties:ou(to.properties,["light","dark"])},XL={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"}}},QL={type:"object",properties:{error:tu,info:tu,redirect:tu,success:tu}},ZL={type:"object",properties:as(to.properties,["dark"])},e3={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},t3={type:"object",properties:{accent:to,border:JL,error:to,http:XL,primary:to,responses:QL,secondary:ZL,success:to,text:e3,tonalOffset:{type:"number"},warning:to}},ru={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},r3={type:"object",properties:{small:ru,medium:ru,large:ru,xlarge:ru}},en={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},n3={type:"object",properties:Object.assign(Object.assign({},as(en.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:r3})},GS={type:"object",properties:ou(en.properties,["fontSize","lineHeight"])},i3={type:"object",properties:{medium:GS,small:GS}},o3={type:"object",properties:Object.assign(Object.assign({},as(en.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:i3})},s3={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},a3={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},JS={type:"object",properties:{fullWidth:{type:"boolean"}}},c3={type:"object",properties:{buttons:n3,httpBadges:o3,layoutControls:s3,panels:a3,tryItButton:JS,tryItSendButton:JS}},iu={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},l3={type:"object",properties:{maxWidth:iu}},u3={type:"object",properties:{maxWidth:iu,middlePanelMaxWidth:iu}},p3={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:l3,"three-panel":u3}},XS={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},f3={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:XS,defaultDetailsWidth:{type:"string"},examples:XS,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},ZS={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},d3={type:"object",properties:ou(ZS.properties,["textTransform"])},m3={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},h3={type:"object",properties:Object.assign(Object.assign({},as(en.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:ZS,level1items:d3,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:m3,textColor:{type:"string"},width:{type:"string"}})},nu={type:"object",properties:Object.assign(Object.assign({},en.properties),{color:{type:"string"},transform:{type:"string"}})},y3={type:"object",properties:Object.assign(Object.assign({},en.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"}})},g3={type:"object",properties:as(en.properties,["fontSize"])},b3={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},v3={type:"object",properties:Object.assign(Object.assign({code:y3,fieldName:en},ou(en.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:nu,heading2:nu,heading3:nu,headings:g3,lineHeight:{type:"string"},links:b3,optimizeSpeed:{type:"boolean"},rightPanelHeading:nu,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},w3={type:"object",properties:Object.assign({color:{type:"string"}},as(en.properties,["fontWeight"]))},x3={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:w3}},S3={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_3={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},QS={type:"object",properties:{custom:{type:"string"}}},O3={type:"object",properties:{DownloadButton:QS,NextSectionButton:QS}},P3={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},$3={type:"object",properties:{borderRadius:{type:"string"}}},E3={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},A3={type:"object",properties:{breakpoints:iu,codeBlock:x3,colors:t3,components:c3,layout:p3,logo:S3,fab:_3,overrides:O3,rightPanel:P3,schema:f3,shape:$3,sidebar:h3,spacing:E3,typography:v3,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},C3={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:WL}},required:["languages"]};su.deprecatedRefDocsSchema={type:"object",properties:{theme:A3,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:C3,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:YL,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{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:GL,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function ou(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function as(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}});var oh=w(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.decoratorsSchemas=ft.preprocessorSchemas=ft.ruleSchemas=ft.rulesSchema=void 0;ft.rulesSchema={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};ft.ruleSchemas={rules:ft.rulesSchema,oas2Rules:ft.rulesSchema,oas3_0Rules:ft.rulesSchema,oas3_1Rules:ft.rulesSchema,async2Rules:ft.rulesSchema,async3Rules:ft.rulesSchema,arazzo1Rules:ft.rulesSchema,overlay1Rules:ft.rulesSchema};ft.preprocessorSchemas={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}};ft.decoratorsSchemas={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}}});var au=w(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.scorecardConfigSchema=M.catalogsConfigSchema=M.catalogSchema=M.catalogFilterSchema=M.breadcrumbsConfigSchema=M.versionPickerConfigSchema=M.userMenuConfigSchema=M.analyticsConfigSchema=M.googleAnalyticsConfigSchema=M.productGoogleAnalyticsConfigSchema=M.gtmAnalyticsConfigSchema=M.segmentAnalyticsConfigSchema=M.rudderstackAnalyticsConfigSchema=M.heapAnalyticsConfigSchema=M.fullstoryAnalyticsConfigSchema=M.amplitudeAnalyticsConfigSchema=M.openapiConfigSchema=M.markdownConfigSchema=M.codeSnippetConfigSchema=M.navigationConfigSchema=M.colorModeConfigSchema=M.searchConfigSchema=M.linksConfigSchema=M.scriptsConfigSchema=M.sidebarConfigSchema=M.footerConfigSchema=M.productsConfigSchema=M.navbarConfigSchema=M.logoConfigSchema=M.searchFiltersConfigSchema=M.searchFacetsConfigSchema=M.aiSearchConfigSchema=M.productConfigSchema=M.navItemsSchema=void 0;var t_=Zl(),R3=e_(),sh=oh(),dt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},r_={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},ah={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},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"],default:"top"},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"}}}};M.navItemsSchema={type:"array",items:Object.assign(Object.assign({},ah),{properties:Object.assign(Object.assign({},ah.properties),{items:{type:"array",items:ah}})})};M.productConfigSchema={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]};M.aiSearchConfigSchema={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1};M.searchFacetsConfigSchema={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}};M.searchFiltersConfigSchema={type:"object",properties:Object.assign({facets:M.searchFacetsConfigSchema},dt.properties),additionalProperties:!1};var T3={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]};M.logoConfigSchema={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1};M.navbarConfigSchema={type:"object",properties:Object.assign({items:M.navItemsSchema},dt.properties),additionalProperties:!1};M.productsConfigSchema={type:"object",additionalProperties:M.productConfigSchema};M.footerConfigSchema={type:"object",properties:Object.assign({items:M.navItemsSchema,copyrightText:{type:"string"},logo:dt},dt.properties),additionalProperties:!1};M.sidebarConfigSchema={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},dt.properties),additionalProperties:!1};M.scriptsConfigSchema={type:"object",properties:{head:{type:"array",items:r_},body:{type:"array",items:r_}},additionalProperties:!1};M.linksConfigSchema={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}};M.searchConfigSchema={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:M.aiSearchConfigSchema,filters:M.searchFiltersConfigSchema,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:T3}},dt.properties),additionalProperties:!1};M.colorModeConfigSchema={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},dt.properties),additionalProperties:!1};var N3={type:"object",properties:Object.assign(Object.assign({},dt.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1};M.navigationConfigSchema={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},dt.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},dt.properties),additionalProperties:!1,default:{}},actions:N3},additionalProperties:!1};M.codeSnippetConfigSchema={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},dt.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},dt.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},dt.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},dt.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1};M.markdownConfigSchema={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},dt.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},dt.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},dt.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}};M.openapiConfigSchema=Object.assign(Object.assign({},t_.redocConfigSchema),{properties:Object.assign(Object.assign({},t_.redocConfigSchema.properties),R3.deprecatedRefDocsSchema.properties)});var k3={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]};M.amplitudeAnalyticsConfigSchema={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"]};M.fullstoryAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]};M.heapAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]};M.rudderstackAnalyticsConfigSchema={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"]};M.segmentAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]};M.gtmAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]};M.productGoogleAnalyticsConfigSchema={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"]};M.googleAnalyticsConfigSchema={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:M.productGoogleAnalyticsConfigSchema}},additionalProperties:!1,required:["trackingId"]};M.analyticsConfigSchema={type:"object",properties:{adobe:k3,amplitude:M.amplitudeAnalyticsConfigSchema,fullstory:M.fullstoryAnalyticsConfigSchema,heap:M.heapAnalyticsConfigSchema,rudderstack:M.rudderstackAnalyticsConfigSchema,segment:M.segmentAnalyticsConfigSchema,gtm:M.gtmAnalyticsConfigSchema,ga:M.googleAnalyticsConfigSchema}};M.userMenuConfigSchema={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},dt.properties),additionalProperties:!1};M.versionPickerConfigSchema={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}};M.breadcrumbsConfigSchema={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,default:{}}}},additionalProperties:!1};M.catalogFilterSchema={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},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"}}}};M.catalogSchema={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:M.catalogFilterSchema},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:M.navItemsSchema,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}};M.catalogsConfigSchema={type:"object",patternProperties:{".*":M.catalogSchema}};M.scorecardConfigSchema={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},sh.ruleSchemas),sh.preprocessorSchemas),sh.decoratorsSchemas),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}}});var ch=w(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.entitiesCatalogConfigSchema=De.entityCatalogSpecificCatalogSchema=De.entityCatalogFilterSchema=De.entityCatalogIncludeSchema=De.entityCatalogExcludeSchema=void 0;De.entityCatalogExcludeSchema={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1};De.entityCatalogIncludeSchema={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1};De.entityCatalogFilterSchema={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"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1};De.entityCatalogSpecificCatalogSchema={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:De.entityCatalogIncludeSchema},excludes:{type:"array",items:De.entityCatalogExcludeSchema},filters:{type:"array",items:De.entityCatalogFilterSchema},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1};De.entitiesCatalogConfigSchema={type:"object",properties:{catalogs:{type:"object",properties:{all:De.entityCatalogSpecificCatalogSchema,services:De.entityCatalogSpecificCatalogSchema,domains:De.entityCatalogSpecificCatalogSchema,teams:De.entityCatalogSpecificCatalogSchema,users:De.entityCatalogSpecificCatalogSchema,apiDescriptions:De.entityCatalogSpecificCatalogSchema,dataSchemas:De.entityCatalogSpecificCatalogSchema,apiOperations:De.entityCatalogSpecificCatalogSchema},additionalProperties:De.entityCatalogSpecificCatalogSchema}},additionalProperties:!1}});var lh=w(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.themeConfigSchema=void 0;var I3=ih(),q3=Va(),et=au(),j3=ch();cu.themeConfigSchema={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:et.logoConfigSchema,navbar:et.navbarConfigSchema,products:et.productsConfigSchema,footer:et.footerConfigSchema,sidebar:et.sidebarConfigSchema,scripts:et.scriptsConfigSchema,links:et.linksConfigSchema,feedback:q3.feedbackConfigSchema,search:et.searchConfigSchema,colorMode:et.colorModeConfigSchema,navigation:et.navigationConfigSchema,codeSnippet:et.codeSnippetConfigSchema,markdown:et.markdownConfigSchema,openapi:et.openapiConfigSchema,graphql:I3.graphqlConfigSchema,analytics:et.analyticsConfigSchema,userMenu:et.userMenuConfigSchema,versionPicker:et.versionPickerConfigSchema,breadcrumbs:et.breadcrumbsConfigSchema,catalog:et.catalogsConfigSchema,entitiesCatalog:j3.entitiesCatalogConfigSchema,catalogClassic:et.catalogsConfigSchema,scorecard:et.scorecardConfigSchema},additionalProperties:!0}});var uh=w(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.LayoutVariant=Zt.REDOCLY_ROUTE_RBAC=Zt.REDOCLY_TEAMS_RBAC=Zt.ApigeeDevOnboardingIntegrationAuthType=Zt.AuthProviderType=Zt.DEFAULT_TEAM_CLAIM_NAME=void 0;Zt.DEFAULT_TEAM_CLAIM_NAME="https://redocly.com/sso/teams";var n_;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(n_||(Zt.AuthProviderType=n_={}));var i_;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(i_||(Zt.ApigeeDevOnboardingIntegrationAuthType=i_={}));Zt.REDOCLY_TEAMS_RBAC="redocly::teams-rbac";Zt.REDOCLY_ROUTE_RBAC="redocly::route-rbac";var o_;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(o_||(Zt.LayoutVariant=o_={}))});var s_=w(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.removePropertyRecursively=ph;function ph(e,t){return Object.fromEntries(Object.entries(e).map(([r,n])=>{if(r!==t)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?ph(i,t):i)]:[r,ph(n,t)]}).filter(Boolean))}});var a_=w(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.reuniteConfigSchema=void 0;var M3={type:"object",additionalProperties:{type:"string"}},L3={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},lu={type:"string",enum:["error","warn","off"]},D3={type:"object",additionalProperties:!1,properties:{schemaCheck:lu,statusCodeCheck:lu,contentTypeCheck:lu,successCriteriaCheck:lu}},F3={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},B3={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1};uu.reuniteConfigSchema={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{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:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[F3,B3]},inputs:M3,servers:L3,severity:D3},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1}});var mh=w(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.rootRedoclyConfigSchema=L.redoclyConfigSchema=L.l10nConfigSchema=L.devOnboardingAdapterConfigSchema=L.apigeeEdgeAdapterConfigSchema=L.apigeeXAdapterConfigSchema=L.apigeeAdapterAuthServiceAccountSchema=L.apigeeAdapterAuthOauth2Schema=L.graviteeAdapterConfigSchema=L.graviteeAdapterAuthIdpSchema=L.graviteeAdapterAuthStaticSchema=L.rbacConfigSchema=L.rbacScopeItemsSchema=L.apiFunctionsConfigSchema=L.seoConfigSchema=L.apiConfigSchema=L.redirectsConfigSchema=L.redirectConfigSchema=L.ssoConfigSchema=L.ssoDirectConfigSchema=L.authProviderConfigSchema=L.saml2ProviderConfigSchema=L.oidcProviderConfigSchema=L.oidcIssuerMetadataSchema=void 0;var za=uh(),U3=lh(),V3=Va(),dh=ih(),z3=s_(),H3=a_(),ze=au(),K3=ch(),cs=oh();L.oidcIssuerMetadataSchema={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};L.oidcProviderConfigSchema={type:"object",properties:{type:{type:"string",const:za.AuthProviderType.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:L.oidcIssuerMetadataSchema,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},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};L.saml2ProviderConfigSchema={type:"object",properties:{type:{type:"string",const:za.AuthProviderType.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:za.DEFAULT_TEAM_CLAIM_NAME},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]};L.authProviderConfigSchema={oneOf:[L.oidcProviderConfigSchema,L.saml2ProviderConfigSchema],discriminator:{propertyName:"type"}};L.ssoDirectConfigSchema={type:"object",additionalProperties:L.authProviderConfigSchema};L.ssoConfigSchema={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]};L.redirectConfigSchema={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1};L.redirectsConfigSchema={type:"object",additionalProperties:L.redirectConfigSchema,default:{}};L.apiConfigSchema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:ze.openapiConfigSchema,graphql:dh.graphqlConfigSchema,theme:{type:"object",properties:{openapi:ze.openapiConfigSchema,graphql:dh.graphqlConfigSchema},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},cs.ruleSchemas),cs.preprocessorSchemas),cs.decoratorsSchemas),{extends:{type:"array",items:{type:"string"}}}),required:["root"]};var W3={type:"object",additionalProperties:!0},Y3={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},c_={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1};L.seoConfigSchema={type:"object",properties:{title:{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:c_},default:{llmstxt:c_.default},additionalProperties:!1};L.apiFunctionsConfigSchema={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1};L.rbacScopeItemsSchema={type:"object",additionalProperties:{type:"string"}};L.rbacConfigSchema={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:L.rbacScopeItemsSchema,cms:L.rbacScopeItemsSchema,reunite:L.rbacScopeItemsSchema,features:{type:"object",properties:{aiSearch:L.rbacScopeItemsSchema},additionalProperties:!1},content:{type:"object",properties:{"**":L.rbacScopeItemsSchema},additionalProperties:L.rbacScopeItemsSchema}},additionalProperties:L.rbacScopeItemsSchema};L.graviteeAdapterAuthStaticSchema={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]};L.graviteeAdapterAuthIdpSchema={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]};L.graviteeAdapterConfigSchema={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[L.graviteeAdapterAuthStaticSchema,L.graviteeAdapterAuthIdpSchema]}},additionalProperties:!1,required:["type","apiBaseUrl"]};L.apigeeAdapterAuthOauth2Schema={type:"object",properties:{type:{type:"string",const:za.ApigeeDevOnboardingIntegrationAuthType.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]};L.apigeeAdapterAuthServiceAccountSchema={type:"object",properties:{type:{type:"string",const:za.ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]};L.apigeeXAdapterConfigSchema={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[L.apigeeAdapterAuthOauth2Schema,L.apigeeAdapterAuthServiceAccountSchema],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]};L.apigeeEdgeAdapterConfigSchema=Object.assign(Object.assign({},L.apigeeXAdapterConfigSchema),{properties:Object.assign(Object.assign({},L.apigeeXAdapterConfigSchema.properties),{type:{type:"string",const:"APIGEE_EDGE"}})});L.devOnboardingAdapterConfigSchema={type:"object",oneOf:[L.apigeeXAdapterConfigSchema,L.apigeeEdgeAdapterConfigSchema,L.graviteeAdapterConfigSchema],discriminator:{propertyName:"type"}};var G3={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:L.devOnboardingAdapterConfigSchema}}};L.l10nConfigSchema={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"]};var J3={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]};L.redoclyConfigSchema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:L.redirectsConfigSchema,seo:L.seoConfigSchema,rbac:L.rbacConfigSchema,apiFunctions:L.apiFunctionsConfigSchema,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:J3}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:L.apiConfigSchema},extends:{type:"array",items:{type:"string"}}},cs.ruleSchemas),cs.decoratorsSchemas),cs.preprocessorSchemas),{ssoDirect:L.ssoDirectConfigSchema,sso:L.ssoConfigSchema,residency:{type:"string"},developerOnboarding:G3,removeAttribution:{type:"boolean"},i18n:L.l10nConfigSchema,l10n:L.l10nConfigSchema,metadata:W3,metadataGlobs:Y3,ignore:{type:"array",items:{type:"string"}},theme:U3.themeConfigSchema,reunite:H3.reuniteConfigSchema,logo:ze.logoConfigSchema,navbar:ze.navbarConfigSchema,products:ze.productsConfigSchema,footer:ze.footerConfigSchema,sidebar:ze.sidebarConfigSchema,scripts:ze.scriptsConfigSchema,links:ze.linksConfigSchema,feedback:V3.feedbackConfigSchema,search:ze.searchConfigSchema,colorMode:ze.colorModeConfigSchema,navigation:ze.navigationConfigSchema,codeSnippet:ze.codeSnippetConfigSchema,markdown:ze.markdownConfigSchema,openapi:ze.openapiConfigSchema,graphql:dh.graphqlConfigSchema,analytics:ze.analyticsConfigSchema,userMenu:ze.userMenuConfigSchema,versionPicker:ze.versionPickerConfigSchema,breadcrumbs:ze.breadcrumbsConfigSchema,catalog:ze.catalogsConfigSchema,entitiesCatalog:K3.entitiesCatalogConfigSchema,catalogClassic:ze.catalogsConfigSchema,scorecard:ze.scorecardConfigSchema}),default:{redirects:{},seo:L.seoConfigSchema.default},additionalProperties:!0};var X3=Object.assign(Object.assign({},(0,z3.removePropertyRecursively)(L.redoclyConfigSchema,"default")),{additionalProperties:!1});L.rootRedoclyConfigSchema=Object.assign(Object.assign({$id:"root-redocly-config"},L.redoclyConfigSchema),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},L.redoclyConfigSchema.properties),{env:{type:"object",additionalProperties:X3}}),default:{},additionalProperties:!1})});var l_=w(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.productConfigOverrideSchema=oi.productThemeOverrideSchema=void 0;var En=lh(),Q3=au(),Z3=mh();oi.productThemeOverrideSchema={type:"object",properties:{logo:En.themeConfigSchema.properties.logo,navbar:En.themeConfigSchema.properties.navbar,footer:En.themeConfigSchema.properties.footer,sidebar:En.themeConfigSchema.properties.sidebar,search:En.themeConfigSchema.properties.search,codeSnippet:En.themeConfigSchema.properties.codeSnippet,breadcrumbs:En.themeConfigSchema.properties.breadcrumbs,openapi:En.themeConfigSchema.properties.openapi,feedback:En.themeConfigSchema.properties.feedback,analytics:{type:"object",properties:{ga:Q3.productGoogleAnalyticsConfigSchema}}},additionalProperties:!0,default:{}};oi.productConfigOverrideSchema={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},oi.productThemeOverrideSchema.properties),{apis:{type:"object",additionalProperties:Z3.apiConfigSchema},theme:oi.productThemeOverrideSchema}),additionalProperties:!1}});var p_=w(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0})});var d_=w(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0})});var h_=w(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0})});var y_=w(ro=>{"use strict";var e6=ro&&ro.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),t6=ro&&ro.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&e6(t,e,r)};Object.defineProperty(ro,"__esModule",{value:!0});t6(h_(),ro)});var b_=w(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0})});var v_=w(tn=>{"use strict";var r6=tn&&tn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),pu=tn&&tn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&r6(t,e,r)};Object.defineProperty(tn,"__esModule",{value:!0});pu(p_(),tn);pu(d_(),tn);pu(y_(),tn);pu(b_(),tn)});var hh=w(_e=>{"use strict";var n6=_e&&_e.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),i6=_e&&_e.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n6(t,e,r)};Object.defineProperty(_e,"__esModule",{value:!0});_e.REDOCLY_ROUTE_RBAC=_e.REDOCLY_TEAMS_RBAC=_e.LayoutVariant=_e.DEFAULT_TEAM_CLAIM_NAME=_e.AuthProviderType=_e.ApigeeDevOnboardingIntegrationAuthType=_e.redocConfigSchema=_e.rootRedoclyConfigSchema=_e.rbacConfigSchema=_e.productConfigOverrideSchema=_e.productThemeOverrideSchema=void 0;var w_=l_();Object.defineProperty(_e,"productThemeOverrideSchema",{enumerable:!0,get:function(){return w_.productThemeOverrideSchema}});Object.defineProperty(_e,"productConfigOverrideSchema",{enumerable:!0,get:function(){return w_.productConfigOverrideSchema}});var x_=mh();Object.defineProperty(_e,"rbacConfigSchema",{enumerable:!0,get:function(){return x_.rbacConfigSchema}});Object.defineProperty(_e,"rootRedoclyConfigSchema",{enumerable:!0,get:function(){return x_.rootRedoclyConfigSchema}});var o6=Zl();Object.defineProperty(_e,"redocConfigSchema",{enumerable:!0,get:function(){return o6.redocConfigSchema}});i6(v_(),_e);var ls=uh();Object.defineProperty(_e,"ApigeeDevOnboardingIntegrationAuthType",{enumerable:!0,get:function(){return ls.ApigeeDevOnboardingIntegrationAuthType}});Object.defineProperty(_e,"AuthProviderType",{enumerable:!0,get:function(){return ls.AuthProviderType}});Object.defineProperty(_e,"DEFAULT_TEAM_CLAIM_NAME",{enumerable:!0,get:function(){return ls.DEFAULT_TEAM_CLAIM_NAME}});Object.defineProperty(_e,"LayoutVariant",{enumerable:!0,get:function(){return ls.LayoutVariant}});Object.defineProperty(_e,"REDOCLY_TEAMS_RBAC",{enumerable:!0,get:function(){return ls.REDOCLY_TEAMS_RBAC}});Object.defineProperty(_e,"REDOCLY_ROUTE_RBAC",{enumerable:!0,get:function(){return ls.REDOCLY_ROUTE_RBAC}})});var Wa=w(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.nil=Fe._Code=Fe.Name=Fe.IDENTIFIER=Fe._CodeOrName=void 0;Fe._=__;Fe.str=O_;Fe.addCodeArg=bh;Fe.strConcat=d6;Fe.stringify=h6;Fe.safeStringify=Ka;Fe.getProperty=y6;Fe.getEsmExportName=g6;Fe.regexpCode=b6;var Ha=class{};Fe._CodeOrName=Ha;Fe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var io=class extends Ha{constructor(t){if(super(),!Fe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Fe.Name=io;var xr=class extends Ha{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof io&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Fe._Code=xr;Fe.nil=new xr("");function __(e,...t){let r=[e[0]],n=0;for(;n<t.length;)bh(r,t[n]),r.push(e[++n]);return new xr(r)}var gh=new xr("+");function O_(e,...t){let r=[Ka(e[0])],n=0;for(;n<t.length;)r.push(gh),bh(r,t[n]),r.push(gh,Ka(e[++n]));return p6(r),new xr(r)}function bh(e,t){t instanceof xr?e.push(...t._items):t instanceof io?e.push(t):e.push(m6(t))}function p6(e){let t=1;for(;t<e.length-1;){if(e[t]===gh){let r=f6(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function f6(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof io||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof io))return`"${e}${t.slice(1)}`}function d6(e,t){return t.emptyStr()?e:e.emptyStr()?t:O_`${e}${t}`}function m6(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ka(Array.isArray(e)?e.join(","):e)}function h6(e){return new xr(Ka(e))}function Ka(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function y6(e){return typeof e=="string"&&Fe.IDENTIFIER.test(e)?new xr(`.${e}`):__`[${e}]`}function g6(e){if(typeof e=="string"&&Fe.IDENTIFIER.test(e))return new xr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}function b6(e){return new xr(e.toString())}});var xh=w(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ValueScope=tr.ValueScopeName=tr.Scope=tr.varKinds=tr.UsedValueState=void 0;var er=Wa(),vh=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},mu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(mu||(tr.UsedValueState=mu={}));tr.varKinds={const:new er.Name("const"),let:new er.Name("let"),var:new er.Name("var")};var hu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof er.Name?t:this.name(t)}name(t){return new er.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};tr.Scope=hu;var yu=class extends er.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,er._)`.${new er.Name(r)}[${n}]`}};tr.ValueScopeName=yu;var v6=(0,er._)`\n`,wh=class extends hu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?v6:er.nil}}get(){return this._scope}name(t){return new yu(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,er._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=er.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,mu.Started);let u=r(l);if(u){let p=this.opts.es5?tr.varKinds.var:tr.varKinds.const;o=(0,er._)`${o}${p} ${l} = ${u};${this.opts._n}`}else if(u=i==null?void 0:i(l))o=(0,er._)`${o}${u}${this.opts._n}`;else throw new vh(l);c.set(l,mu.Completed)})}return o}};tr.ValueScope=wh});var ne=w(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.CodeGen=fe.operators=fe.varKinds=fe.ValueScopeName=fe.ValueScope=fe.Scope=fe.Name=fe.regexpCode=fe.stringify=fe.getProperty=fe.nil=fe.strConcat=fe.str=fe._=void 0;fe.not=P_;fe.and=S6;fe.or=O6;var de=Wa(),Mr=xh(),si=Wa();Object.defineProperty(fe,"_",{enumerable:!0,get:function(){return si._}});Object.defineProperty(fe,"str",{enumerable:!0,get:function(){return si.str}});Object.defineProperty(fe,"strConcat",{enumerable:!0,get:function(){return si.strConcat}});Object.defineProperty(fe,"nil",{enumerable:!0,get:function(){return si.nil}});Object.defineProperty(fe,"getProperty",{enumerable:!0,get:function(){return si.getProperty}});Object.defineProperty(fe,"stringify",{enumerable:!0,get:function(){return si.stringify}});Object.defineProperty(fe,"regexpCode",{enumerable:!0,get:function(){return si.regexpCode}});Object.defineProperty(fe,"Name",{enumerable:!0,get:function(){return si.Name}});var wu=xh();Object.defineProperty(fe,"Scope",{enumerable:!0,get:function(){return wu.Scope}});Object.defineProperty(fe,"ValueScope",{enumerable:!0,get:function(){return wu.ValueScope}});Object.defineProperty(fe,"ValueScopeName",{enumerable:!0,get:function(){return wu.ValueScopeName}});Object.defineProperty(fe,"varKinds",{enumerable:!0,get:function(){return wu.varKinds}});fe.operators={GT:new de._Code(">"),GTE:new de._Code(">="),LT:new de._Code("<"),LTE:new de._Code("<="),EQ:new de._Code("==="),NEQ:new de._Code("!=="),NOT:new de._Code("!"),OR:new de._Code("||"),AND:new de._Code("&&"),ADD:new de._Code("+")};var An=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Sh=class extends An{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Mr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=ds(this.rhs,t,r)),this}get names(){return this.rhs instanceof de._CodeOrName?this.rhs.names:{}}},gu=class extends An{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof de.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ds(this.rhs,t,r),this}get names(){let t=this.lhs instanceof de.Name?{}:{...this.lhs.names};return vu(t,this.rhs)}},_h=class extends gu{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Oh=class extends An{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Ph=class extends An{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},$h=class extends An{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Eh=class extends An{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=ds(this.code,t,r),this}get names(){return this.code instanceof de._CodeOrName?this.code.names:{}}},Ya=class extends An{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(w6(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ao(t,r.names),{})}},Cn=class extends Ya{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Ah=class extends Ya{},fs=class extends Cn{};fs.kind="else";var oo=class e extends Cn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new fs(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(P_(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=ds(this.condition,t,r),this}get names(){let t=super.names;return vu(t,this.condition),this.else&&ao(t,this.else.names),t}};oo.kind="if";var so=class extends Cn{};so.kind="for";var Ch=class extends so{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=ds(this.iteration,t,r),this}get names(){return ao(super.names,this.iteration.names)}},Rh=class extends so{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Mr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=vu(super.names,this.from);return vu(t,this.to)}},bu=class extends so{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=ds(this.iterable,t,r),this}get names(){return ao(super.names,this.iterable.names)}},Ga=class extends Cn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Ga.kind="func";var Ja=class extends Ya{render(t){return"return "+super.render(t)}};Ja.kind="return";var Th=class extends Cn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&ao(t,this.catch.names),this.finally&&ao(t,this.finally.names),t}},Xa=class extends Cn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Xa.kind="catch";var Qa=class extends Cn{render(t){return"finally"+super.render(t)}};Qa.kind="finally";var Nh=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
1
|
+
var rj=Object.create;var Ea=Object.defineProperty;var nj=Object.getOwnPropertyDescriptor;var ij=Object.getOwnPropertyNames;var oj=Object.getPrototypeOf,sj=Object.prototype.hasOwnProperty;var lw=e=>{throw TypeError(e)};var aj=(e,t,r)=>t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var w=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gd=(e,t)=>{for(var r in t)Ea(e,r,{get:t[r],enumerable:!0})},uw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of ij(t))!sj.call(e,i)&&i!==r&&Ea(e,i,{get:()=>t[i],enumerable:!(n=nj(t,i))||n.enumerable});return e};var Ee=(e,t,r)=>(r=e!=null?rj(oj(e)):{},uw(t||!e||!e.__esModule?Ea(r,"default",{value:e,enumerable:!0}):r,e)),cj=e=>uw(Ea({},"__esModule",{value:!0}),e);var pw=(e,t,r)=>aj(e,typeof t!="symbol"?t+"":t,r),Jd=(e,t,r)=>t.has(e)||lw("Cannot "+r);var F=(e,t,r)=>(Jd(e,t,"read from private field"),r?r.call(e):t.get(e)),Gt=(e,t,r)=>t.has(e)?lw("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),We=(e,t,r,n)=>(Jd(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Gn=(e,t,r)=>(Jd(e,t,"access private method"),r);var om=w((nm,im)=>{(function(e,t){typeof require=="function"&&typeof nm=="object"&&typeof im=="object"?im.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(nm,function(){var e=[],t=[],r={},n={},i={};function o(d){return typeof d=="string"?new RegExp("^"+d+"$","i"):d}function s(d,f){return d===f?f:d===d.toLowerCase()?f.toLowerCase():d===d.toUpperCase()?f.toUpperCase():d[0]===d[0].toUpperCase()?f.charAt(0).toUpperCase()+f.substr(1).toLowerCase():f.toLowerCase()}function a(d,f){return d.replace(/\$(\d{1,2})/g,function(h,y){return f[y]||""})}function c(d,f){return d.replace(f[0],function(h,y){var g=a(f[1],arguments);return s(h===""?d[y-1]:h,g)})}function l(d,f,h){if(!d.length||r.hasOwnProperty(d))return f;for(var y=h.length;y--;){var g=h[y];if(g[0].test(f))return c(f,g)}return f}function u(d,f,h){return function(y){var g=y.toLowerCase();return f.hasOwnProperty(g)?s(y,g):d.hasOwnProperty(g)?s(y,d[g]):l(g,y,h)}}function p(d,f,h,y){return function(g){var b=g.toLowerCase();return f.hasOwnProperty(b)?!0:d.hasOwnProperty(b)?!1:l(b,b,h)===b}}function m(d,f,h){var y=f===1?m.singular(d):m.plural(d);return(h?f+" ":"")+y}return m.plural=u(i,n,e),m.isPlural=p(i,n,e),m.singular=u(n,i,t),m.isSingular=p(n,i,t),m.addPluralRule=function(d,f){e.push([o(d),f])},m.addSingularRule=function(d,f){t.push([o(d),f])},m.addUncountableRule=function(d){if(typeof d=="string"){r[d.toLowerCase()]=!0;return}m.addPluralRule(d,"$0"),m.addSingularRule(d,"$0")},m.addIrregularRule=function(d,f){f=f.toLowerCase(),d=d.toLowerCase(),i[d]=f,n[f]=d},[["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(d){return m.addIrregularRule(d[0],d[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(d){return m.addPluralRule(d[0],d[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(d){return m.addSingularRule(d[0],d[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(m.addUncountableRule),m})});var Va=w(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.feedbackConfigSchema=Qt.optionalEmailSettings=Qt.reasonsSettings=void 0;var WS={hide:{type:"boolean",default:!1},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},label:{type:"string"},items:{type:"array",items:{type:"string"}}};Qt.reasonsSettings={type:"object",properties:WS,additionalProperties:!1};Qt.optionalEmailSettings={type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1};Qt.feedbackConfigSchema={type:"object",properties:{hide:{type:"boolean",default:!1},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"],default:"sentiment"},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"],default:"checkbox"},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:Object.assign(Object.assign({},WS),{like:Qt.reasonsSettings,dislike:Qt.reasonsSettings,satisfied:Qt.reasonsSettings,neutral:Qt.reasonsSettings,dissatisfied:Qt.reasonsSettings}),additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean",default:!1},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:Qt.optionalEmailSettings},additionalProperties:!1}},additionalProperties:!1}});var Zl=w(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.redocConfigSchema=eo.downloadUrlsSchema=void 0;var BL=Va(),UL={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string",examples:["curl","JavaScript","Node.js","Python","Java8+Apache","Java","C#","C#+Newtonsoft","PHP","Go","Ruby","R","Payload"]},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};eo.downloadUrlsSchema={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}};eo.redocConfigSchema={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},disableRouter:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:BL.feedbackConfigSchema,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string",nullable:!0},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:eo.downloadUrlsSchema,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:UL,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"}},additionalProperties:!1}});var ih=w(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.graphqlConfigSchema=void 0;var VL=Va(),zL=Zl(),ss={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},HL={type:"object",properties:{name:{type:"string"},items:ss,queries:ss,mutations:ss,subscriptions:ss,types:ss,directives:ss},required:["name"],additionalProperties:!1},KL={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:HL},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1};eu.graphqlConfigSchema={type:"object",properties:{menu:{type:"object",properties:Object.assign({},KL.properties),additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:zL.downloadUrlsSchema,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:VL.feedbackConfigSchema},additionalProperties:!1}});var e_=w(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.deprecatedRefDocsSchema=void 0;var WL={type:"object",properties:{label:{type:"string"},lang:{enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},YL={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"}}},YS={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},GL={type:"object",properties:{beforeInfo:{type:"array",items:YS},end:{type:"array",items:YS}}},to={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},tu={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},JL={type:"object",properties:ou(to.properties,["light","dark"])},XL={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"}}},QL={type:"object",properties:{error:tu,info:tu,redirect:tu,success:tu}},ZL={type:"object",properties:as(to.properties,["dark"])},e3={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},t3={type:"object",properties:{accent:to,border:JL,error:to,http:XL,primary:to,responses:QL,secondary:ZL,success:to,text:e3,tonalOffset:{type:"number"},warning:to}},ru={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},r3={type:"object",properties:{small:ru,medium:ru,large:ru,xlarge:ru}},en={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},n3={type:"object",properties:Object.assign(Object.assign({},as(en.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:r3})},GS={type:"object",properties:ou(en.properties,["fontSize","lineHeight"])},i3={type:"object",properties:{medium:GS,small:GS}},o3={type:"object",properties:Object.assign(Object.assign({},as(en.properties,["fontSize","lineHeight"])),{borderRadius:{type:"string"},color:{type:"string"},sizes:i3})},s3={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},a3={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},JS={type:"object",properties:{fullWidth:{type:"boolean"}}},c3={type:"object",properties:{buttons:n3,httpBadges:o3,layoutControls:s3,panels:a3,tryItButton:JS,tryItSendButton:JS}},iu={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},l3={type:"object",properties:{maxWidth:iu}},u3={type:"object",properties:{maxWidth:iu,middlePanelMaxWidth:iu}},p3={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:l3,"three-panel":u3}},XS={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},f3={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:XS,defaultDetailsWidth:{type:"string"},examples:XS,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},ZS={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},d3={type:"object",properties:ou(ZS.properties,["textTransform"])},m3={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},h3={type:"object",properties:Object.assign(Object.assign({},as(en.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:ZS,level1items:d3,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:m3,textColor:{type:"string"},width:{type:"string"}})},nu={type:"object",properties:Object.assign(Object.assign({},en.properties),{color:{type:"string"},transform:{type:"string"}})},y3={type:"object",properties:Object.assign(Object.assign({},en.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"}})},g3={type:"object",properties:as(en.properties,["fontSize"])},b3={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},v3={type:"object",properties:Object.assign(Object.assign({code:y3,fieldName:en},ou(en.properties,["fontSize","fontFamily"])),{fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:nu,heading2:nu,heading3:nu,headings:g3,lineHeight:{type:"string"},links:b3,optimizeSpeed:{type:"boolean"},rightPanelHeading:nu,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}})},w3={type:"object",properties:Object.assign({color:{type:"string"}},as(en.properties,["fontWeight"]))},x3={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:w3}},S3={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},_3={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},QS={type:"object",properties:{custom:{type:"string"}}},O3={type:"object",properties:{DownloadButton:QS,NextSectionButton:QS}},P3={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},$3={type:"object",properties:{borderRadius:{type:"string"}}},E3={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},A3={type:"object",properties:{breakpoints:iu,codeBlock:x3,colors:t3,components:c3,layout:p3,logo:S3,fab:_3,overrides:O3,rightPanel:P3,schema:f3,shape:$3,sidebar:h3,spacing:E3,typography:v3,links:{properties:{color:{type:"string"}}},codeSample:{properties:{backgroundColor:{type:"string"}}}}},C3={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:WL}},required:["languages"]};su.deprecatedRefDocsSchema={type:"object",properties:{theme:A3,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:C3,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:YL,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{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:GL,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function ou(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function as(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}});var oh=w(ft=>{"use strict";Object.defineProperty(ft,"__esModule",{value:!0});ft.decoratorsSchemas=ft.preprocessorSchemas=ft.ruleSchemas=ft.rulesSchema=void 0;ft.rulesSchema={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]}};ft.ruleSchemas={rules:ft.rulesSchema,oas2Rules:ft.rulesSchema,oas3_0Rules:ft.rulesSchema,oas3_1Rules:ft.rulesSchema,async2Rules:ft.rulesSchema,async3Rules:ft.rulesSchema,arazzo1Rules:ft.rulesSchema,overlay1Rules:ft.rulesSchema};ft.preprocessorSchemas={preprocessors:{type:"object",additionalProperties:!0},oas2Preprocessors:{type:"object",additionalProperties:!0},oas3_0Preprocessors:{type:"object",additionalProperties:!0},oas3_1Preprocessors:{type:"object",additionalProperties:!0},async2Preprocessors:{type:"object",additionalProperties:!0},async3Preprocessors:{type:"object",additionalProperties:!0},arazzo1Preprocessors:{type:"object",additionalProperties:!0},overlay1Preprocessors:{type:"object",additionalProperties:!0}};ft.decoratorsSchemas={decorators:{type:"object",additionalProperties:!0},oas2Decorators:{type:"object",additionalProperties:!0},oas3_0Decorators:{type:"object",additionalProperties:!0},oas3_1Decorators:{type:"object",additionalProperties:!0},async2Decorators:{type:"object",additionalProperties:!0},async3Decorators:{type:"object",additionalProperties:!0},arazzo1Decorators:{type:"object",additionalProperties:!0},overlay1Decorators:{type:"object",additionalProperties:!0}}});var au=w(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.scorecardConfigSchema=M.catalogsConfigSchema=M.catalogSchema=M.catalogFilterSchema=M.breadcrumbsConfigSchema=M.versionPickerConfigSchema=M.userMenuConfigSchema=M.analyticsConfigSchema=M.googleAnalyticsConfigSchema=M.productGoogleAnalyticsConfigSchema=M.gtmAnalyticsConfigSchema=M.segmentAnalyticsConfigSchema=M.rudderstackAnalyticsConfigSchema=M.heapAnalyticsConfigSchema=M.fullstoryAnalyticsConfigSchema=M.amplitudeAnalyticsConfigSchema=M.openapiConfigSchema=M.markdownConfigSchema=M.codeSnippetConfigSchema=M.navigationConfigSchema=M.colorModeConfigSchema=M.searchConfigSchema=M.linksConfigSchema=M.scriptsConfigSchema=M.sidebarConfigSchema=M.footerConfigSchema=M.productsConfigSchema=M.navbarConfigSchema=M.logoConfigSchema=M.searchFiltersConfigSchema=M.searchFacetsConfigSchema=M.aiSearchConfigSchema=M.productConfigSchema=M.navItemsSchema=void 0;var t_=Zl(),R3=e_(),sh=oh(),dt={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},r_={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},ah={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean",default:!1},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"],default:"top"},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"}}}};M.navItemsSchema={type:"array",items:Object.assign(Object.assign({},ah),{properties:Object.assign(Object.assign({},ah.properties),{items:{type:"array",items:ah}})})};M.productConfigSchema={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]};M.aiSearchConfigSchema={type:"object",properties:{hide:{type:"boolean",default:!1},suggestions:{default:[],type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1};M.searchFacetsConfigSchema={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}};M.searchFiltersConfigSchema={type:"object",properties:Object.assign({facets:M.searchFacetsConfigSchema},dt.properties),additionalProperties:!1};var T3={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]};M.logoConfigSchema={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1};M.navbarConfigSchema={type:"object",properties:Object.assign({items:M.navItemsSchema},dt.properties),additionalProperties:!1};M.productsConfigSchema={type:"object",additionalProperties:M.productConfigSchema};M.footerConfigSchema={type:"object",properties:Object.assign({items:M.navItemsSchema,copyrightText:{type:"string"},logo:dt},dt.properties),additionalProperties:!1};M.sidebarConfigSchema={type:"object",properties:Object.assign({separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"],default:"bottom"}},dt.properties),additionalProperties:!1};M.scriptsConfigSchema={type:"object",properties:{head:{type:"array",items:r_},body:{type:"array",items:r_}},additionalProperties:!1};M.linksConfigSchema={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}};M.searchConfigSchema={type:"object",properties:Object.assign({engine:{type:"string",enum:["flexsearch","typesense"],default:"flexsearch"},ai:M.aiSearchConfigSchema,filters:M.searchFiltersConfigSchema,placement:{type:"string",default:"navbar"},shortcuts:{type:"array",items:{type:"string"},default:["\u2318+K,ctrl+K"]},suggestedPages:{type:"array",items:T3}},dt.properties),additionalProperties:!1};M.colorModeConfigSchema={type:"object",properties:Object.assign({ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"},default:["light","dark"]}},dt.properties),additionalProperties:!1};var N3={type:"object",properties:Object.assign(Object.assign({},dt.properties),{items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude"]},default:["copy","view","chatgpt","claude"]}}),additionalProperties:!1};M.navigationConfigSchema={type:"object",properties:{nextButton:{type:"object",properties:Object.assign({text:{type:"string"}},dt.properties),additionalProperties:!1,default:{}},previousButton:{type:"object",properties:Object.assign({text:{type:"string"}},dt.properties),additionalProperties:!1,default:{}},actions:N3},additionalProperties:!1};M.codeSnippetConfigSchema={type:"object",properties:{elementFormat:{type:"string",default:"icon"},copy:{type:"object",properties:Object.assign({},dt.properties),additionalProperties:!1,default:{hide:!1}},report:{type:"object",properties:Object.assign({tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"}},dt.properties),additionalProperties:!1,default:{hide:!1}},expand:{type:"object",properties:Object.assign({},dt.properties),additionalProperties:!1,default:{hide:!1}},collapse:{type:"object",properties:Object.assign({},dt.properties),additionalProperties:!1,default:{hide:!1}}},additionalProperties:!1};M.markdownConfigSchema={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"},default:["image","links"]},partialsFolders:{type:"array",items:{type:"string"},default:["_partials"]},lastUpdatedBlock:{type:"object",properties:Object.assign({format:{type:"string",enum:["timeago","iso","long","short"],default:"timeago"},locale:{type:"string"}},dt.properties),additionalProperties:!1,default:{}},toc:{type:"object",properties:Object.assign({header:{type:"string",default:"On this page"},depth:{type:"integer",default:3,minimum:1}},dt.properties),additionalProperties:!1,default:{}},editPage:{type:"object",properties:Object.assign({baseUrl:{type:"string"}},dt.properties),additionalProperties:!1,default:{}}},additionalProperties:!1,default:{}};M.openapiConfigSchema=Object.assign(Object.assign({},t_.redocConfigSchema),{properties:Object.assign(Object.assign({},t_.redocConfigSchema.properties),R3.deprecatedRefDocsSchema.properties)});var k3={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]};M.amplitudeAnalyticsConfigSchema={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"]};M.fullstoryAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]};M.heapAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]};M.rudderstackAnalyticsConfigSchema={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"]};M.segmentAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]};M.gtmAnalyticsConfigSchema={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]};M.productGoogleAnalyticsConfigSchema={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"]};M.googleAnalyticsConfigSchema={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:M.productGoogleAnalyticsConfigSchema}},additionalProperties:!1,required:["trackingId"]};M.analyticsConfigSchema={type:"object",properties:{adobe:k3,amplitude:M.amplitudeAnalyticsConfigSchema,fullstory:M.fullstoryAnalyticsConfigSchema,heap:M.heapAnalyticsConfigSchema,rudderstack:M.rudderstackAnalyticsConfigSchema,segment:M.segmentAnalyticsConfigSchema,gtm:M.gtmAnalyticsConfigSchema,ga:M.googleAnalyticsConfigSchema}};M.userMenuConfigSchema={type:"object",properties:Object.assign({items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0},default:[]},hideLoginButton:{type:"boolean"}},dt.properties),additionalProperties:!1};M.versionPickerConfigSchema={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}};M.breadcrumbsConfigSchema={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,default:{}}}},additionalProperties:!1};M.catalogFilterSchema={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"],default:"checkboxes"},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"}}}};M.catalogSchema={type:"object",additionalProperties:!0,required:["slug","items"],properties:{slug:{type:"string"},filters:{type:"array",items:M.catalogFilterSchema},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:M.navItemsSchema,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}};M.catalogsConfigSchema={type:"object",patternProperties:{".*":M.catalogSchema}};M.scorecardConfigSchema={type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean",default:!1},teamMetadataProperty:{type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{type:"array",items:{type:"object",required:["name"],properties:Object.assign(Object.assign(Object.assign({name:{type:"string"},color:{type:"string"},extends:{type:"array",items:{type:"string"}}},sh.ruleSchemas),sh.preprocessorSchemas),sh.decoratorsSchemas),additionalProperties:!1}},targets:{type:"array",items:{type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{type:"object",required:["metadata"],properties:{metadata:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}}});var ch=w(De=>{"use strict";Object.defineProperty(De,"__esModule",{value:!0});De.entitiesCatalogConfigSchema=De.entityCatalogSpecificCatalogSchema=De.entityCatalogFilterSchema=De.entityCatalogIncludeSchema=De.entityCatalogExcludeSchema=void 0;De.entityCatalogExcludeSchema={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1};De.entityCatalogIncludeSchema={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1};De.entityCatalogFilterSchema={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"],default:"checkboxes"},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1};De.entityCatalogSpecificCatalogSchema={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:De.entityCatalogIncludeSchema},excludes:{type:"array",items:De.entityCatalogExcludeSchema},filters:{type:"array",items:De.entityCatalogFilterSchema},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1};De.entitiesCatalogConfigSchema={type:"object",properties:{catalogs:{type:"object",properties:{all:De.entityCatalogSpecificCatalogSchema,services:De.entityCatalogSpecificCatalogSchema,domains:De.entityCatalogSpecificCatalogSchema,teams:De.entityCatalogSpecificCatalogSchema,users:De.entityCatalogSpecificCatalogSchema,apiDescriptions:De.entityCatalogSpecificCatalogSchema,dataSchemas:De.entityCatalogSpecificCatalogSchema,apiOperations:De.entityCatalogSpecificCatalogSchema},additionalProperties:De.entityCatalogSpecificCatalogSchema}},additionalProperties:!1}});var lh=w(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.themeConfigSchema=void 0;var I3=ih(),q3=Va(),et=au(),j3=ch();cu.themeConfigSchema={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:et.logoConfigSchema,navbar:et.navbarConfigSchema,products:et.productsConfigSchema,footer:et.footerConfigSchema,sidebar:et.sidebarConfigSchema,scripts:et.scriptsConfigSchema,links:et.linksConfigSchema,feedback:q3.feedbackConfigSchema,search:et.searchConfigSchema,colorMode:et.colorModeConfigSchema,navigation:et.navigationConfigSchema,codeSnippet:et.codeSnippetConfigSchema,markdown:et.markdownConfigSchema,openapi:et.openapiConfigSchema,graphql:I3.graphqlConfigSchema,analytics:et.analyticsConfigSchema,userMenu:et.userMenuConfigSchema,versionPicker:et.versionPickerConfigSchema,breadcrumbs:et.breadcrumbsConfigSchema,catalog:et.catalogsConfigSchema,entitiesCatalog:j3.entitiesCatalogConfigSchema,catalogClassic:et.catalogsConfigSchema,scorecard:et.scorecardConfigSchema},additionalProperties:!0}});var uh=w(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.LayoutVariant=Zt.REDOCLY_ROUTE_RBAC=Zt.REDOCLY_TEAMS_RBAC=Zt.ApigeeDevOnboardingIntegrationAuthType=Zt.AuthProviderType=Zt.DEFAULT_TEAM_CLAIM_NAME=void 0;Zt.DEFAULT_TEAM_CLAIM_NAME="https://redocly.com/sso/teams";var n_;(function(e){e.OIDC="OIDC",e.SAML2="SAML2"})(n_||(Zt.AuthProviderType=n_={}));var i_;(function(e){e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2"})(i_||(Zt.ApigeeDevOnboardingIntegrationAuthType=i_={}));Zt.REDOCLY_TEAMS_RBAC="redocly::teams-rbac";Zt.REDOCLY_ROUTE_RBAC="redocly::route-rbac";var o_;(function(e){e.STACKED="stacked",e.THREE_PANEL="three-panel"})(o_||(Zt.LayoutVariant=o_={}))});var s_=w(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.removePropertyRecursively=ph;function ph(e,t){return Object.fromEntries(Object.entries(e).map(([r,n])=>{if(r!==t)return typeof n!="object"||!n?[r,n]:Array.isArray(n)?[r,n.map(i=>typeof i=="object"?ph(i,t):i)]:[r,ph(n,t)]}).filter(Boolean))}});var a_=w(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.reuniteConfigSchema=void 0;var M3={type:"object",additionalProperties:{type:"string"}},L3={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},lu={type:"string",enum:["error","warn","off"]},D3={type:"object",additionalProperties:!1,properties:{schemaCheck:lu,statusCodeCheck:lu,contentTypeCheck:lu,successCriteriaCheck:lu}},F3={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},B3={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1};uu.reuniteConfigSchema={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean",default:!1},{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:"^(?!\\.\\./)(/[a-zA-Z0-9_\\-\\./]+|./[a-zA-Z0-9_\\-\\./]+|[a-zA-Z0-9_\\-\\./]+)$"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[F3,B3]},inputs:M3,servers:L3,severity:D3},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1}});var mh=w(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.rootRedoclyConfigSchema=L.redoclyConfigSchema=L.l10nConfigSchema=L.devOnboardingAdapterConfigSchema=L.apigeeEdgeAdapterConfigSchema=L.apigeeXAdapterConfigSchema=L.apigeeAdapterAuthServiceAccountSchema=L.apigeeAdapterAuthOauth2Schema=L.graviteeAdapterConfigSchema=L.graviteeAdapterAuthIdpSchema=L.graviteeAdapterAuthStaticSchema=L.rbacConfigSchema=L.rbacScopeItemsSchema=L.apiFunctionsConfigSchema=L.seoConfigSchema=L.apiConfigSchema=L.redirectsConfigSchema=L.redirectConfigSchema=L.ssoConfigSchema=L.ssoDirectConfigSchema=L.authProviderConfigSchema=L.saml2ProviderConfigSchema=L.oidcProviderConfigSchema=L.oidcIssuerMetadataSchema=void 0;var za=uh(),U3=lh(),V3=Va(),dh=ih(),z3=s_(),H3=a_(),ze=au(),K3=ch(),cs=oh();L.oidcIssuerMetadataSchema={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};L.oidcProviderConfigSchema={type:"object",properties:{type:{type:"string",const:za.AuthProviderType.OIDC},title:{type:"string"},pkce:{type:"boolean",default:!1},configurationUrl:{type:"string",minLength:1},configuration:L.oidcIssuerMetadataSchema,clientId:{type:"string",minLength:1},clientSecret:{type:"string",minLength:0},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};L.saml2ProviderConfigSchema={type:"object",properties:{type:{type:"string",const:za.AuthProviderType.SAML2},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string",default:za.DEFAULT_TEAM_CLAIM_NAME},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]};L.authProviderConfigSchema={oneOf:[L.oidcProviderConfigSchema,L.saml2ProviderConfigSchema],discriminator:{propertyName:"type"}};L.ssoDirectConfigSchema={type:"object",additionalProperties:L.authProviderConfigSchema};L.ssoConfigSchema={oneOf:[{type:"array",items:{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]},uniqueItems:!0},{type:"string",enum:["REDOCLY","CORPORATE","GUEST"]}]};L.redirectConfigSchema={type:"object",properties:{to:{type:"string"},type:{type:"number",default:301}},additionalProperties:!1};L.redirectsConfigSchema={type:"object",additionalProperties:L.redirectConfigSchema,default:{}};L.apiConfigSchema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:{type:"object",additionalProperties:!0},openapi:ze.openapiConfigSchema,graphql:dh.graphqlConfigSchema,theme:{type:"object",properties:{openapi:ze.openapiConfigSchema,graphql:dh.graphqlConfigSchema},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0}},cs.ruleSchemas),cs.preprocessorSchemas),cs.decoratorsSchemas),{extends:{type:"array",items:{type:"string"}}}),required:["root"]};var W3={type:"object",additionalProperties:!0},Y3={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},c_={type:"object",properties:{hide:{type:"boolean",default:!1},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"},default:[]},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"},default:[]},excludeFiles:{type:"array",items:{type:"string"},default:[]}},required:["title"],additionalProperties:!1}}},default:{hide:!1,title:void 0,description:void 0,details:void 0,sections:[{title:"Table of contents",includeFiles:["**/*"],excludeFiles:[]}]},additionalProperties:!1};L.seoConfigSchema={type:"object",properties:{title:{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:c_},default:{llmstxt:c_.default},additionalProperties:!1};L.apiFunctionsConfigSchema={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1};L.rbacScopeItemsSchema={type:"object",additionalProperties:{type:"string"}};L.rbacConfigSchema={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:L.rbacScopeItemsSchema,cms:L.rbacScopeItemsSchema,reunite:L.rbacScopeItemsSchema,features:{type:"object",properties:{aiSearch:L.rbacScopeItemsSchema},additionalProperties:!1},content:{type:"object",properties:{"**":L.rbacScopeItemsSchema},additionalProperties:L.rbacScopeItemsSchema}},additionalProperties:L.rbacScopeItemsSchema};L.graviteeAdapterAuthStaticSchema={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]};L.graviteeAdapterAuthIdpSchema={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]};L.graviteeAdapterConfigSchema={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},stage:{type:"string",default:"non-production"},auth:{oneOf:[L.graviteeAdapterAuthStaticSchema,L.graviteeAdapterAuthIdpSchema]}},additionalProperties:!1,required:["type","apiBaseUrl"]};L.apigeeAdapterAuthOauth2Schema={type:"object",properties:{type:{type:"string",const:za.ApigeeDevOnboardingIntegrationAuthType.OAUTH2},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]};L.apigeeAdapterAuthServiceAccountSchema={type:"object",properties:{type:{type:"string",const:za.ApigeeDevOnboardingIntegrationAuthType.SERVICE_ACCOUNT},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]};L.apigeeXAdapterConfigSchema={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string",default:"non-production"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean",default:!1},auth:{type:"object",oneOf:[L.apigeeAdapterAuthOauth2Schema,L.apigeeAdapterAuthServiceAccountSchema],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]};L.apigeeEdgeAdapterConfigSchema=Object.assign(Object.assign({},L.apigeeXAdapterConfigSchema),{properties:Object.assign(Object.assign({},L.apigeeXAdapterConfigSchema.properties),{type:{type:"string",const:"APIGEE_EDGE"}})});L.devOnboardingAdapterConfigSchema={type:"object",oneOf:[L.apigeeXAdapterConfigSchema,L.apigeeEdgeAdapterConfigSchema,L.graviteeAdapterConfigSchema],discriminator:{propertyName:"type"}};var G3={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:L.devOnboardingAdapterConfigSchema}}};L.l10nConfigSchema={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"]};var J3={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]};L.redoclyConfigSchema={type:"object",properties:Object.assign(Object.assign(Object.assign(Object.assign({imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:L.redirectsConfigSchema,seo:L.seoConfigSchema,rbac:L.rbacConfigSchema,apiFunctions:L.apiFunctionsConfigSchema,requiresLogin:{type:"boolean"},responseHeaders:{type:"object",additionalProperties:{type:"array",items:J3}},mockServer:{type:"object",properties:{off:{type:"boolean",default:!1},position:{type:"string",enum:["first","last","replace","off"],default:"first"},strictExamples:{type:"boolean",default:!1},errorIfForcedExampleNotFound:{type:"boolean",default:!1},description:{type:"string"}}},apis:{type:"object",additionalProperties:L.apiConfigSchema},extends:{type:"array",items:{type:"string"}}},cs.ruleSchemas),cs.decoratorsSchemas),cs.preprocessorSchemas),{ssoDirect:L.ssoDirectConfigSchema,sso:L.ssoConfigSchema,residency:{type:"string"},developerOnboarding:G3,removeAttribution:{type:"boolean"},i18n:L.l10nConfigSchema,l10n:L.l10nConfigSchema,metadata:W3,metadataGlobs:Y3,ignore:{type:"array",items:{type:"string"}},theme:U3.themeConfigSchema,reunite:H3.reuniteConfigSchema,logo:ze.logoConfigSchema,navbar:ze.navbarConfigSchema,products:ze.productsConfigSchema,footer:ze.footerConfigSchema,sidebar:ze.sidebarConfigSchema,scripts:ze.scriptsConfigSchema,links:ze.linksConfigSchema,feedback:V3.feedbackConfigSchema,search:ze.searchConfigSchema,colorMode:ze.colorModeConfigSchema,navigation:ze.navigationConfigSchema,codeSnippet:ze.codeSnippetConfigSchema,markdown:ze.markdownConfigSchema,openapi:ze.openapiConfigSchema,graphql:dh.graphqlConfigSchema,analytics:ze.analyticsConfigSchema,userMenu:ze.userMenuConfigSchema,versionPicker:ze.versionPickerConfigSchema,breadcrumbs:ze.breadcrumbsConfigSchema,catalog:ze.catalogsConfigSchema,entitiesCatalog:K3.entitiesCatalogConfigSchema,catalogClassic:ze.catalogsConfigSchema,scorecard:ze.scorecardConfigSchema}),default:{redirects:{},seo:L.seoConfigSchema.default},additionalProperties:!0};var X3=Object.assign(Object.assign({},(0,z3.removePropertyRecursively)(L.redoclyConfigSchema,"default")),{additionalProperties:!1});L.rootRedoclyConfigSchema=Object.assign(Object.assign({$id:"root-redocly-config"},L.redoclyConfigSchema),{properties:Object.assign(Object.assign({plugins:{type:"array",items:{type:"string"}}},L.redoclyConfigSchema.properties),{env:{type:"object",additionalProperties:X3}}),default:{},additionalProperties:!1})});var l_=w(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.productConfigOverrideSchema=oi.productThemeOverrideSchema=void 0;var En=lh(),Q3=au(),Z3=mh();oi.productThemeOverrideSchema={type:"object",properties:{logo:En.themeConfigSchema.properties.logo,navbar:En.themeConfigSchema.properties.navbar,footer:En.themeConfigSchema.properties.footer,sidebar:En.themeConfigSchema.properties.sidebar,search:En.themeConfigSchema.properties.search,codeSnippet:En.themeConfigSchema.properties.codeSnippet,breadcrumbs:En.themeConfigSchema.properties.breadcrumbs,openapi:En.themeConfigSchema.properties.openapi,feedback:En.themeConfigSchema.properties.feedback,analytics:{type:"object",properties:{ga:Q3.productGoogleAnalyticsConfigSchema}}},additionalProperties:!0,default:{}};oi.productConfigOverrideSchema={$id:"product-config-override",type:"object",properties:Object.assign(Object.assign({},oi.productThemeOverrideSchema.properties),{apis:{type:"object",additionalProperties:Z3.apiConfigSchema},theme:oi.productThemeOverrideSchema}),additionalProperties:!1}});var p_=w(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0})});var d_=w(f_=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0})});var h_=w(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0})});var y_=w(ro=>{"use strict";var e6=ro&&ro.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),t6=ro&&ro.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&e6(t,e,r)};Object.defineProperty(ro,"__esModule",{value:!0});t6(h_(),ro)});var b_=w(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0})});var v_=w(tn=>{"use strict";var r6=tn&&tn.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),pu=tn&&tn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&r6(t,e,r)};Object.defineProperty(tn,"__esModule",{value:!0});pu(p_(),tn);pu(d_(),tn);pu(y_(),tn);pu(b_(),tn)});var hh=w(_e=>{"use strict";var n6=_e&&_e.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),i6=_e&&_e.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&n6(t,e,r)};Object.defineProperty(_e,"__esModule",{value:!0});_e.REDOCLY_ROUTE_RBAC=_e.REDOCLY_TEAMS_RBAC=_e.LayoutVariant=_e.DEFAULT_TEAM_CLAIM_NAME=_e.AuthProviderType=_e.ApigeeDevOnboardingIntegrationAuthType=_e.redocConfigSchema=_e.rootRedoclyConfigSchema=_e.rbacConfigSchema=_e.productConfigOverrideSchema=_e.productThemeOverrideSchema=void 0;var w_=l_();Object.defineProperty(_e,"productThemeOverrideSchema",{enumerable:!0,get:function(){return w_.productThemeOverrideSchema}});Object.defineProperty(_e,"productConfigOverrideSchema",{enumerable:!0,get:function(){return w_.productConfigOverrideSchema}});var x_=mh();Object.defineProperty(_e,"rbacConfigSchema",{enumerable:!0,get:function(){return x_.rbacConfigSchema}});Object.defineProperty(_e,"rootRedoclyConfigSchema",{enumerable:!0,get:function(){return x_.rootRedoclyConfigSchema}});var o6=Zl();Object.defineProperty(_e,"redocConfigSchema",{enumerable:!0,get:function(){return o6.redocConfigSchema}});i6(v_(),_e);var ls=uh();Object.defineProperty(_e,"ApigeeDevOnboardingIntegrationAuthType",{enumerable:!0,get:function(){return ls.ApigeeDevOnboardingIntegrationAuthType}});Object.defineProperty(_e,"AuthProviderType",{enumerable:!0,get:function(){return ls.AuthProviderType}});Object.defineProperty(_e,"DEFAULT_TEAM_CLAIM_NAME",{enumerable:!0,get:function(){return ls.DEFAULT_TEAM_CLAIM_NAME}});Object.defineProperty(_e,"LayoutVariant",{enumerable:!0,get:function(){return ls.LayoutVariant}});Object.defineProperty(_e,"REDOCLY_TEAMS_RBAC",{enumerable:!0,get:function(){return ls.REDOCLY_TEAMS_RBAC}});Object.defineProperty(_e,"REDOCLY_ROUTE_RBAC",{enumerable:!0,get:function(){return ls.REDOCLY_ROUTE_RBAC}})});var Wa=w(Fe=>{"use strict";Object.defineProperty(Fe,"__esModule",{value:!0});Fe.nil=Fe._Code=Fe.Name=Fe.IDENTIFIER=Fe._CodeOrName=void 0;Fe._=__;Fe.str=O_;Fe.addCodeArg=bh;Fe.strConcat=d6;Fe.stringify=h6;Fe.safeStringify=Ka;Fe.getProperty=y6;Fe.getEsmExportName=g6;Fe.regexpCode=b6;var Ha=class{};Fe._CodeOrName=Ha;Fe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var io=class extends Ha{constructor(t){if(super(),!Fe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Fe.Name=io;var xr=class extends Ha{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof io&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Fe._Code=xr;Fe.nil=new xr("");function __(e,...t){let r=[e[0]],n=0;for(;n<t.length;)bh(r,t[n]),r.push(e[++n]);return new xr(r)}var gh=new xr("+");function O_(e,...t){let r=[Ka(e[0])],n=0;for(;n<t.length;)r.push(gh),bh(r,t[n]),r.push(gh,Ka(e[++n]));return p6(r),new xr(r)}function bh(e,t){t instanceof xr?e.push(...t._items):t instanceof io?e.push(t):e.push(m6(t))}function p6(e){let t=1;for(;t<e.length-1;){if(e[t]===gh){let r=f6(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function f6(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof io||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof io))return`"${e}${t.slice(1)}`}function d6(e,t){return t.emptyStr()?e:e.emptyStr()?t:O_`${e}${t}`}function m6(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Ka(Array.isArray(e)?e.join(","):e)}function h6(e){return new xr(Ka(e))}function Ka(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function y6(e){return typeof e=="string"&&Fe.IDENTIFIER.test(e)?new xr(`.${e}`):__`[${e}]`}function g6(e){if(typeof e=="string"&&Fe.IDENTIFIER.test(e))return new xr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}function b6(e){return new xr(e.toString())}});var xh=w(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.ValueScope=tr.ValueScopeName=tr.Scope=tr.varKinds=tr.UsedValueState=void 0;var er=Wa(),vh=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},mu;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(mu||(tr.UsedValueState=mu={}));tr.varKinds={const:new er.Name("const"),let:new er.Name("let"),var:new er.Name("var")};var hu=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof er.Name?t:this.name(t)}name(t){return new er.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};tr.Scope=hu;var yu=class extends er.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,er._)`.${new er.Name(r)}[${n}]`}};tr.ValueScopeName=yu;var v6=(0,er._)`\n`,wh=class extends hu{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?v6:er.nil}}get(){return this._scope}name(t){return new yu(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,er._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=er.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,mu.Started);let u=r(l);if(u){let p=this.opts.es5?tr.varKinds.var:tr.varKinds.const;o=(0,er._)`${o}${p} ${l} = ${u};${this.opts._n}`}else if(u=i==null?void 0:i(l))o=(0,er._)`${o}${u}${this.opts._n}`;else throw new vh(l);c.set(l,mu.Completed)})}return o}};tr.ValueScope=wh});var ne=w(fe=>{"use strict";Object.defineProperty(fe,"__esModule",{value:!0});fe.CodeGen=fe.operators=fe.varKinds=fe.ValueScopeName=fe.ValueScope=fe.Scope=fe.Name=fe.regexpCode=fe.stringify=fe.getProperty=fe.nil=fe.strConcat=fe.str=fe._=void 0;fe.not=P_;fe.and=S6;fe.or=O6;var de=Wa(),Mr=xh(),si=Wa();Object.defineProperty(fe,"_",{enumerable:!0,get:function(){return si._}});Object.defineProperty(fe,"str",{enumerable:!0,get:function(){return si.str}});Object.defineProperty(fe,"strConcat",{enumerable:!0,get:function(){return si.strConcat}});Object.defineProperty(fe,"nil",{enumerable:!0,get:function(){return si.nil}});Object.defineProperty(fe,"getProperty",{enumerable:!0,get:function(){return si.getProperty}});Object.defineProperty(fe,"stringify",{enumerable:!0,get:function(){return si.stringify}});Object.defineProperty(fe,"regexpCode",{enumerable:!0,get:function(){return si.regexpCode}});Object.defineProperty(fe,"Name",{enumerable:!0,get:function(){return si.Name}});var wu=xh();Object.defineProperty(fe,"Scope",{enumerable:!0,get:function(){return wu.Scope}});Object.defineProperty(fe,"ValueScope",{enumerable:!0,get:function(){return wu.ValueScope}});Object.defineProperty(fe,"ValueScopeName",{enumerable:!0,get:function(){return wu.ValueScopeName}});Object.defineProperty(fe,"varKinds",{enumerable:!0,get:function(){return wu.varKinds}});fe.operators={GT:new de._Code(">"),GTE:new de._Code(">="),LT:new de._Code("<"),LTE:new de._Code("<="),EQ:new de._Code("==="),NEQ:new de._Code("!=="),NOT:new de._Code("!"),OR:new de._Code("||"),AND:new de._Code("&&"),ADD:new de._Code("+")};var An=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Sh=class extends An{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Mr.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=ds(this.rhs,t,r)),this}get names(){return this.rhs instanceof de._CodeOrName?this.rhs.names:{}}},gu=class extends An{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof de.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=ds(this.rhs,t,r),this}get names(){let t=this.lhs instanceof de.Name?{}:{...this.lhs.names};return vu(t,this.rhs)}},_h=class extends gu{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Oh=class extends An{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Ph=class extends An{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},$h=class extends An{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Eh=class extends An{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=ds(this.code,t,r),this}get names(){return this.code instanceof de._CodeOrName?this.code.names:{}}},Ya=class extends An{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(w6(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>ao(t,r.names),{})}},Cn=class extends Ya{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Ah=class extends Ya{},fs=class extends Cn{};fs.kind="else";var oo=class e extends Cn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new fs(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(P_(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=ds(this.condition,t,r),this}get names(){let t=super.names;return vu(t,this.condition),this.else&&ao(t,this.else.names),t}};oo.kind="if";var so=class extends Cn{};so.kind="for";var Ch=class extends so{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=ds(this.iteration,t,r),this}get names(){return ao(super.names,this.iteration.names)}},Rh=class extends so{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Mr.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=vu(super.names,this.from);return vu(t,this.to)}},bu=class extends so{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=ds(this.iterable,t,r),this}get names(){return ao(super.names,this.iterable.names)}},Ga=class extends Cn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Ga.kind="func";var Ja=class extends Ya{render(t){return"return "+super.render(t)}};Ja.kind="return";var Th=class extends Cn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&ao(t,this.catch.names),this.finally&&ao(t,this.finally.names),t}},Xa=class extends Cn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Xa.kind="catch";var Qa=class extends Cn{render(t){return"finally"+super.render(t)}};Qa.kind="finally";var Nh=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
2
2
|
`:""},this._extScope=t,this._scope=new Mr.Scope({parent:t}),this._nodes=[new Ah]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Sh(t,o,n)),o}const(t,r,n){return this._def(Mr.varKinds.const,t,r,n)}let(t,r,n){return this._def(Mr.varKinds.let,t,r,n)}var(t,r,n){return this._def(Mr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new gu(t,r,n))}add(t,r){return this._leafNode(new _h(t,fe.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==de.nil&&this._leafNode(new Eh(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,de.addCodeArg)(r,i));return r.push("}"),new de._Code(r)}if(t,r,n){if(this._blockNode(new oo(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new oo(t))}else(){return this._elseNode(new fs)}endIf(){return this._endBlockNode(oo,fs)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ch(t),r)}forRange(t,r,n,i,o=this.opts.es5?Mr.varKinds.var:Mr.varKinds.let){let s=this._scope.toName(t);return this._for(new Rh(o,s,r,n),()=>i(s))}forOf(t,r,n,i=Mr.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let s=r instanceof de.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,de._)`${s}.length`,a=>{this.var(o,(0,de._)`${s}[${a}]`),n(o)})}return this._for(new bu("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Mr.varKinds.var:Mr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,de._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new bu("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(so)}label(t){return this._leafNode(new Oh(t))}break(t){return this._leafNode(new Ph(t))}return(t){let r=new Ja;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ja)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Th;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new Xa(o),r(o)}return n&&(this._currNode=i.finally=new Qa,this.code(n)),this._endBlockNode(Xa,Qa)}throw(t){return this._leafNode(new $h(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=de.nil,n,i){return this._blockNode(new Ga(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(Ga)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof oo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};fe.CodeGen=Nh;function ao(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function vu(e,t){return t instanceof de._CodeOrName?ao(e,t.names):e}function ds(e,t,r){if(e instanceof de.Name)return n(e);if(!i(e))return e;return new de._Code(e._items.reduce((o,s)=>(s instanceof de.Name&&(s=n(s)),s instanceof de._Code?o.push(...s._items):o.push(s),o),[]));function n(o){let s=r[o.str];return s===void 0||t[o.str]!==1?o:(delete t[o.str],s)}function i(o){return o instanceof de._Code&&o._items.some(s=>s instanceof de.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function w6(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function P_(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,de._)`!${kh(e)}`}var x6=$_(fe.operators.AND);function S6(...e){return e.reduce(x6)}var _6=$_(fe.operators.OR);function O6(...e){return e.reduce(_6)}function $_(e){return(t,r)=>t===de.nil?r:r===de.nil?t:(0,de._)`${kh(t)} ${e} ${kh(r)}`}function kh(e){return e instanceof de.Name?e:(0,de._)`(${e})`}});var pe=w(He=>{"use strict";Object.defineProperty(He,"__esModule",{value:!0});He.Type=He.mergeEvaluated=void 0;He.toHash=$6;He.alwaysValidSchema=E6;He.checkUnknownRules=C_;He.schemaHasRules=R_;He.schemaHasRulesButRef=A6;He.schemaRefOrVal=C6;He.unescapeFragment=R6;He.escapeFragment=T6;He.escapeJsonPointer=qh;He.unescapeJsonPointer=T_;He.eachItem=N6;He.evaluatedPropsToName=N_;He.setEvaluated=jh;He.useFunc=k6;He.getErrorPath=I6;He.checkStrictMode=k_;var Re=ne(),P6=Wa();function $6(e){let t={};for(let r of e)t[r]=!0;return t}function E6(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(C_(e,t),!R_(t,e.self.RULES.all))}function C_(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||k_(e,`unknown keyword: "${o}"`)}function R_(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}function A6(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}function C6({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Re._)`${r}`}return(0,Re._)`${e}${t}${(0,Re.getProperty)(n)}`}function R6(e){return T_(decodeURIComponent(e))}function T6(e){return encodeURIComponent(qh(e))}function qh(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function T_(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function N6(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}function E_({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{let c=s===void 0?o:s instanceof Re.Name?(o instanceof Re.Name?e(i,o,s):t(i,o,s),s):o instanceof Re.Name?(t(i,s,o),o):r(o,s);return a===Re.Name&&!(c instanceof Re.Name)?n(i,c):c}}He.mergeEvaluated={props:E_({mergeNames:(e,t,r)=>e.if((0,Re._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Re._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Re._)`${r} || {}`).code((0,Re._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Re._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Re._)`${r} || {}`),jh(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:N_}),items:E_({mergeNames:(e,t,r)=>e.if((0,Re._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Re._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Re._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Re._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function N_(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Re._)`{}`);return t!==void 0&&jh(e,r,t),r}function jh(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Re._)`${t}${(0,Re.getProperty)(n)}`,!0))}var A_={};function k6(e,t){return e.scopeValue("func",{ref:t,code:A_[t.code]||(A_[t.code]=new P6._Code(t.code))})}var Ih;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Ih||(He.Type=Ih={}));function I6(e,t,r){if(e instanceof Re.Name){let n=t===Ih.Num;return r?n?(0,Re._)`"[" + ${e} + "]"`:(0,Re._)`"['" + ${e} + "']"`:n?(0,Re._)`"/" + ${e}`:(0,Re._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Re.getProperty)(e).toString():"/"+qh(e)}function k_(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}});var Sr=w(Mh=>{"use strict";Object.defineProperty(Mh,"__esModule",{value:!0});var bt=ne(),q6={data:new bt.Name("data"),valCxt:new bt.Name("valCxt"),instancePath:new bt.Name("instancePath"),parentData:new bt.Name("parentData"),parentDataProperty:new bt.Name("parentDataProperty"),rootData:new bt.Name("rootData"),dynamicAnchors:new bt.Name("dynamicAnchors"),isAllOfVariant:new bt.Name("isAllOfVariant"),vErrors:new bt.Name("vErrors"),errors:new bt.Name("errors"),this:new bt.Name("this"),self:new bt.Name("self"),scope:new bt.Name("scope"),json:new bt.Name("json"),jsonPos:new bt.Name("jsonPos"),jsonLen:new bt.Name("jsonLen"),jsonPart:new bt.Name("jsonPart")};Mh.default=q6});var Za=w(_r=>{"use strict";Object.defineProperty(_r,"__esModule",{value:!0});_r.keyword$DataError=_r.keywordError=void 0;_r.reportError=j6;_r.reportExtraError=M6;_r.resetErrorsCount=L6;_r.extendErrors=D6;var ge=ne(),xu=pe(),Ft=Sr();_r.keywordError={message:({keyword:e})=>(0,ge.str)`must pass "${e}" keyword validation`};_r.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ge.str)`"${e}" keyword must be ${t} ($data)`:(0,ge.str)`"${e}" keyword is invalid ($data)`};function j6(e,t=_r.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:s,allErrors:a}=i,c=j_(e,t,r);(n!=null?n:s||a)?I_(o,c):q_(i,(0,ge._)`[${c}]`)}function M6(e,t=_r.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:s}=n,a=j_(e,t,r);I_(i,a),o||s||q_(n,Ft.default.vErrors)}function L6(e,t){e.assign(Ft.default.errors,t),e.if((0,ge._)`${Ft.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ge._)`${Ft.default.vErrors}.length`,t),()=>e.assign(Ft.default.vErrors,null)))}function D6({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",i,Ft.default.errors,a=>{e.const(s,(0,ge._)`${Ft.default.vErrors}[${a}]`),e.if((0,ge._)`${s}.instancePath === undefined`,()=>e.assign((0,ge._)`${s}.instancePath`,(0,ge.strConcat)(Ft.default.instancePath,o.errorPath))),e.assign((0,ge._)`${s}.schemaPath`,(0,ge.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,ge._)`${s}.schema`,r),e.assign((0,ge._)`${s}.data`,n))})}function I_(e,t){let r=e.const("err",t);e.if((0,ge._)`${Ft.default.vErrors} === null`,()=>e.assign(Ft.default.vErrors,(0,ge._)`[${r}]`),(0,ge._)`${Ft.default.vErrors}.push(${r})`),e.code((0,ge._)`${Ft.default.errors}++`)}function q_(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,ge._)`new ${e.ValidationError}(${t})`):(r.assign((0,ge._)`${n}.errors`,t),r.return(!1))}var co={keyword:new ge.Name("keyword"),schemaPath:new ge.Name("schemaPath"),params:new ge.Name("params"),propertyName:new ge.Name("propertyName"),message:new ge.Name("message"),schema:new ge.Name("schema"),parentSchema:new ge.Name("parentSchema")};function j_(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ge._)`{}`:F6(e,t,r)}function F6(e,t,r={}){let{gen:n,it:i}=e,o=[B6(i,r),U6(e,r)];return V6(e,t,o),n.object(...o)}function B6({errorPath:e},{instancePath:t}){let r=t?(0,ge.str)`${e}${(0,xu.getErrorPath)(t,xu.Type.Str)}`:e;return[Ft.default.instancePath,(0,ge.strConcat)(Ft.default.instancePath,r)]}function U6({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,ge.str)`${t}/${e}`;return r&&(i=(0,ge.str)`${i}${(0,xu.getErrorPath)(r,xu.Type.Str)}`),[co.schemaPath,i]}function V6(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:p}=a;n.push([co.keyword,i],[co.params,typeof t=="function"?t(e):t||(0,ge._)`{}`]),c.messages&&n.push([co.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([co.schema,s],[co.parentSchema,(0,ge._)`${u}${p}`],[Ft.default.data,o]),l&&n.push([co.propertyName,l])}});var L_=w(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.topBoolOrEmptySchema=Y6;Su.boolOrEmptySchema=G6;var z6=Za(),H6=ne(),K6=Sr(),W6={message:"boolean schema is false"};function Y6(e){let{gen:t,schema:r,validateName:n}=e;r===!1?M_(e,!1):typeof r=="object"&&r.$async===!0?t.return(K6.default.data):(t.assign((0,H6._)`${n}.errors`,null),t.return(!0))}function G6(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),M_(e)):r.var(t,!0)}function M_(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,z6.reportError)(i,W6,void 0,t)}});var Lh=w(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.isJSONType=Q6;_u.getRules=Z6;var J6=["string","number","integer","boolean","null","object","array"],X6=new Set(J6);function Q6(e){return typeof e=="string"&&X6.has(e)}function Z6(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}});var Dh=w(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.schemaHasRulesForType=e5;ec.shouldUseGroup=D_;ec.shouldUseRule=F_;function e5({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&D_(e,n)}function D_(e,t){return t.rules.some(r=>F_(e,r))}function F_(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}});var tc=w(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.DataType=void 0;rn.getSchemaTypes=i5;rn.getJSONTypes=U_;rn.coerceAndCheckDataType=o5;rn.checkDataType=Fh;rn.checkDataTypes=Bh;rn.reportTypeError=Uh;var t5=Lh(),r5=Dh(),n5=Za(),oe=ne(),B_=pe(),ms;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(ms||(rn.DataType=ms={}));function i5(e){let t=U_(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}function U_(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(t5.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}function o5(e,t){let{gen:r,data:n,opts:i}=e,o=s5(t,i.coerceTypes),s=t.length>0&&!(o.length===0&&t.length===1&&(0,r5.schemaHasRulesForType)(e,t[0]));if(s){let a=Bh(t,n,i.strictNumbers,ms.Wrong);r.if(a,()=>{o.length?a5(e,t,o):Uh(e)})}return s}var V_=new Set(["string","number","integer","boolean","null"]);function s5(e,t){return t?e.filter(r=>V_.has(r)||t==="array"&&r==="array"):[]}function a5(e,t,r){let{gen:n,data:i,opts:o}=e,s=n.let("dataType",(0,oe._)`typeof ${i}`),a=n.let("coerced",(0,oe._)`undefined`);o.coerceTypes==="array"&&n.if((0,oe._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,oe._)`${i}[0]`).assign(s,(0,oe._)`typeof ${i}`).if(Bh(t,i,o.strictNumbers),()=>n.assign(a,i))),n.if((0,oe._)`${a} !== undefined`);for(let l of r)(V_.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Uh(e),n.endIf(),n.if((0,oe._)`${a} !== undefined`,()=>{n.assign(i,a),c5(e,a)});function c(l){switch(l){case"string":n.elseIf((0,oe._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,oe._)`"" + ${i}`).elseIf((0,oe._)`${i} === null`).assign(a,(0,oe._)`""`);return;case"number":n.elseIf((0,oe._)`${s} == "boolean" || ${i} === null
|
|
3
3
|
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,oe._)`+${i}`);return;case"integer":n.elseIf((0,oe._)`${s} === "boolean" || ${i} === null
|
|
4
4
|
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,oe._)`+${i}`);return;case"boolean":n.elseIf((0,oe._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,oe._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,oe._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,oe._)`${s} === "string" || ${s} === "number"
|
|
5
|
-
|| ${s} === "boolean" || ${i} === null`).assign(a,(0,oe._)`[${i}]`)}}}function c5({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,oe._)`${t} !== undefined`,()=>e.assign((0,oe._)`${t}[${r}]`,n))}function Fh(e,t,r,n=ms.Correct){let i=n===ms.Correct?oe.operators.EQ:oe.operators.NEQ,o;switch(e){case"null":return(0,oe._)`${t} ${i} null`;case"array":o=(0,oe._)`Array.isArray(${t})`;break;case"object":o=(0,oe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,oe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,oe._)`typeof ${t} ${i} ${e}`}return n===ms.Correct?o:(0,oe.not)(o);function s(a=oe.nil){return(0,oe.and)((0,oe._)`typeof ${t} == "number"`,a,r?(0,oe._)`isFinite(${t})`:oe.nil)}}function Bh(e,t,r,n){if(e.length===1)return Fh(e[0],t,r,n);let i,o=(0,B_.toHash)(e);if(o.array&&o.object){let s=(0,oe._)`typeof ${t} != "object"`;i=o.null?s:(0,oe._)`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else i=oe.nil;o.number&&delete o.integer;for(let s in o)i=(0,oe.and)(i,Fh(s,t,r,n));return i}var l5={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,oe._)`{type: ${e}}`:(0,oe._)`{type: ${t}}`};function Uh(e){let t=u5(e);(0,n5.reportError)(t,l5)}function u5(e){let{gen:t,data:r,schema:n}=e,i=(0,B_.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var H_=w(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.assignDefaults=f5;var hs=ne(),p5=pe();function f5(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)z_(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>z_(e,o,i.default))}function z_(e,t,r){let{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;let a=(0,hs._)`${o}${(0,hs.getProperty)(t)}`;if(i){(0,p5.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,hs._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,hs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,hs._)`${a} = ${(0,hs.stringify)(r)}`)}});var Or=w(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.checkReportMissingProp=m5;Bt.checkMissingProp=h5;Bt.reportMissingProp=y5;Bt.hasPropFunc=K_;Bt.isOwnProperty=Hh;Bt.propertyInData=g5;Bt.noPropertyInData=Kh;Bt.allSchemaProperties=W_;Bt.schemaProperties=b5;Bt.callValidateCode=v5;Bt.usePattern=x5;Bt.validateArray=S5;Bt.validateUnion=_5;var qe=ne(),zh=pe(),Rn=Sr(),d5=pe();function m5(e,t){let{gen:r,data:n,it:i}=e;r.if(Kh(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,qe._)`${t}`},!0),e.error()})}function h5({gen:e,data:t,it:{opts:r}},n,i){return(0,qe.or)(...n.map(o=>(0,qe.and)(Kh(e,t,o,r.ownProperties),(0,qe._)`${i} = ${o}`)))}function y5(e,t){e.setParams({missingProperty:t},!0),e.error()}function K_(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,qe._)`Object.prototype.hasOwnProperty`})}function Hh(e,t,r){return(0,qe._)`${K_(e)}.call(${t}, ${r})`}function g5(e,t,r,n){let i=(0,qe._)`${t}${(0,qe.getProperty)(r)} !== undefined`;return n?(0,qe._)`${i} && ${Hh(e,t,r)}`:i}function Kh(e,t,r,n){let i=(0,qe._)`${t}${(0,qe.getProperty)(r)} === undefined`;return n?(0,qe.or)(i,(0,qe.not)(Hh(e,t,r))):i}function W_(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}function b5(e,t){return W_(t).filter(r=>!(0,zh.alwaysValidSchema)(e,t[r]))}function v5({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){let u=l?(0,qe._)`${e}, ${t}, ${n}${i}`:t,p=[[Rn.default.instancePath,(0,qe.strConcat)(Rn.default.instancePath,o)],[Rn.default.parentData,s.parentData],[Rn.default.parentDataProperty,s.parentDataProperty],[Rn.default.rootData,Rn.default.rootData],[Rn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&p.push([Rn.default.dynamicAnchors,Rn.default.dynamicAnchors]);let m=(0,qe._)`${u}, ${r.object(...p)}`;return c!==qe.nil?(0,qe._)`${a}.call(${c}, ${m})`:(0,qe._)`${a}(${m})`}var w5=(0,qe._)`new RegExp`;function x5({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,qe._)`${i.code==="new RegExp"?w5:(0,d5.useFunc)(e,i)}(${r}, ${n})`})}function S5(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){let c=t.const("len",(0,qe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:zh.Type.Num},o),t.if((0,qe.not)(o),a)})}}function _5(e){let{gen:t,schema:r,keyword:n,parentSchema:i,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&i.discriminator||r.some(l=>(0,zh.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((l,u)=>{let p=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},c);t.assign(a,(0,qe._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,qe.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}});var J_=w(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.macroKeywordCode=$5;ys.funcKeywordCode=E5;ys.validSchemaType=R5;ys.validateKeywordUsage=T5;var Ut=ne(),lo=Sr(),O5=Or(),P5=Za();function $5(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=G_(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:Ut.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}function E5(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;C5(c,t);let l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=G_(n,i,l),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)h(),t.modifying&&Y_(e),y(()=>e.error());else{let g=t.async?d():f();t.modifying&&Y_(e),y(()=>A5(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,Ut._)`await `),b=>n.assign(p,!1).if((0,Ut._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,Ut._)`${b}.errors`),()=>n.throw(b))),g}function f(){let g=(0,Ut._)`${u}.errors`;return n.assign(g,null),h(Ut.nil),g}function h(g=t.async?(0,Ut._)`await `:Ut.nil){let b=c.opts.passContext?lo.default.this:lo.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,Ut._)`${g}${(0,O5.callValidateCode)(e,u,b,v)}`,t.modifying)}function y(g){var b;n.if((0,Ut.not)((b=t.valid)!==null&&b!==void 0?b:p),g)}}function Y_(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Ut._)`${n.parentData}[${n.parentDataProperty}]`))}function A5(e,t){let{gen:r}=e;r.if((0,Ut._)`Array.isArray(${t})`,()=>{r.assign(lo.default.vErrors,(0,Ut._)`${lo.default.vErrors} === null ? ${t} : ${lo.default.vErrors}.concat(${t})`).assign(lo.default.errors,(0,Ut._)`${lo.default.vErrors}.length`),(0,P5.extendErrors)(e)},()=>e.error())}function C5({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function G_(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ut.stringify)(r)})}function R5(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}function T5({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let s=i.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}});var Q_=w(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.getSubschema=N5;rc.extendSubschemaData=k5;rc.extendSubschemaMode=I5;var nn=ne(),X_=pe();function N5(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,nn._)`${e.schemaPath}${(0,nn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,nn._)`${e.schemaPath}${(0,nn.getProperty)(t)}${(0,nn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,X_.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function k5(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:p}=t,m=a.let("data",(0,nn._)`${t.data}${(0,nn.getProperty)(r)}`,!0);c(m),e.errorPath=(0,nn.str)`${l}${(0,X_.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,nn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){let l=i instanceof nn.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}function I5(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}});var nc=w((koe,Z_)=>{"use strict";Z_.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var Wh=w((Ioe,eO)=>{"use strict";var ai=eO.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Ou(t,n,i,e,"",e)};ai.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ai.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ai.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ai.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ou(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var p=n[u];if(Array.isArray(p)){if(u in ai.arrayKeywords)for(var m=0;m<p.length;m++)Ou(e,t,r,p[m],i+"/"+u+"/"+m,o,i,u,n,m)}else if(u in ai.propsKeywords){if(p&&typeof p=="object")for(var d in p)Ou(e,t,r,p[d],i+"/"+u+"/"+q5(d),o,i,u,n,d)}else(u in ai.keywords||e.allKeys&&!(u in ai.skipKeywords))&&Ou(e,t,r,p,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function q5(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var ic=w(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.inlineRef=F5;ci.getFullPath=rO;ci._getFullPath=nO;ci.normalizeId=gs;ci.resolveUrl=V5;ci.getSchemaRefs=H5;var j5=pe(),M5=nc(),L5=Wh(),D5=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function F5(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Yh(e):t?tO(e)<=t:!1}var B5=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Yh(e){for(let t in e){if(B5.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Yh)||typeof r=="object"&&Yh(r))return!0}return!1}function tO(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!D5.has(r)&&(typeof e[r]=="object"&&(0,j5.eachItem)(e[r],n=>t+=tO(n)),t===1/0))return 1/0}return t}function rO(e,t="",r){r!==!1&&(t=gs(t));let n=e.parse(t);return nO(e,n)}function nO(e,t){return e.serialize(t).split("#")[0]+"#"}var U5=/#\/?$/;function gs(e){return e?e.replace(U5,""):""}function V5(e,t,r){return r=gs(r),e.resolve(t,r)}var z5=/^[a-z_][-a-z0-9._]*$/i;function H5(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=gs(e[r]||t),o={"":i},s=rO(n,i,!1),a={},c=new Set;return L5(e,{allKeys:!0},(p,m,d,f)=>{if(f===void 0)return;let h=s+m,y=o[f];typeof p[r]=="string"&&(y=g.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),o[m]=y;function g(v){let x=this.opts.uriResolver.resolve;if(v=gs(y?x(y,v):v),c.has(v))throw u(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?l(p,S.schema,v):v!==gs(h)&&(v[0]==="#"?(l(p,a[v],v),a[v]=p):this.refs[v]=h),v}function b(v){if(typeof v=="string"){if(!z5.test(v))throw new Error(`invalid anchor "${v}"`);g.call(this,`#${v}`)}}}),a;function l(p,m,d){if(m!==void 0&&!M5(p,m))throw u(d)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}});var vs=w(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.KeywordCxt=void 0;bs.validateFunctionCode=Y5;bs.getData=gO;var lO=L_(),iO=tc(),Jh=Dh(),Pu=tc(),K5=H_(),sc=J_(),Gh=Q_(),V=ne(),X=Sr(),W5=ic(),Tn=pe(),oc=Za();function Y5(e){if(fO(e)&&(dO(e),pO(e))){X5(e);return}uO(e,()=>(0,lO.topBoolOrEmptySchema)(e))}function uO({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,V._)`${X.default.data}, ${X.default.valCxt}`,n.$async,()=>{e.code((0,V._)`"use strict"; ${oO(r,i)}`),J5(e,i),e.code(o)}):e.func(t,(0,V._)`${X.default.data}, ${G5(i)}`,n.$async,()=>e.code(oO(r,i)).code(o))}function G5(e){return(0,V._)`{${X.default.instancePath}="", ${X.default.parentData}, ${X.default.parentDataProperty}, ${X.default.rootData}=${X.default.data}${e.dynamicRef?(0,V._)`, ${X.default.dynamicAnchors}={}`:V.nil}, ${X.default.isAllOfVariant} = 0}={}`}function J5(e,t){e.if(X.default.valCxt,()=>{e.var(X.default.instancePath,(0,V._)`${X.default.valCxt}.${X.default.instancePath}`),e.var(X.default.parentData,(0,V._)`${X.default.valCxt}.${X.default.parentData}`),e.var(X.default.parentDataProperty,(0,V._)`${X.default.valCxt}.${X.default.parentDataProperty}`),e.var(X.default.rootData,(0,V._)`${X.default.valCxt}.${X.default.rootData}`),e.var(X.default.isAllOfVariant,(0,V._)`${X.default.valCxt}.${X.default.isAllOfVariant}`),t.dynamicRef&&e.var(X.default.dynamicAnchors,(0,V._)`${X.default.valCxt}.${X.default.dynamicAnchors}`)},()=>{e.var(X.default.instancePath,(0,V._)`""`),e.var(X.default.parentData,(0,V._)`undefined`),e.var(X.default.parentDataProperty,(0,V._)`undefined`),e.var(X.default.rootData,X.default.data),e.var(X.default.isAllOfVariant,(0,V._)`0`),t.dynamicRef&&e.var(X.default.dynamicAnchors,(0,V._)`{}`)})}function X5(e){let{schema:t,opts:r,gen:n}=e;uO(e,()=>{r.$comment&&t.$comment&&hO(e),rD(e),n.let(X.default.vErrors,null),n.let(X.default.errors,0),r.unevaluated&&Q5(e),mO(e),oD(e)})}function Q5(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,V._)`${r}.evaluated`),t.if((0,V._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,V._)`${e.evaluated}.props`,(0,V._)`undefined`)),t.if((0,V._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,V._)`${e.evaluated}.items`,(0,V._)`undefined`))}function oO(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,V._)`/*# sourceURL=${r} */`:V.nil}function Z5(e,t){if(fO(e)&&(dO(e),pO(e))){eD(e,t);return}(0,lO.boolOrEmptySchema)(e,t)}function pO({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function fO(e){return typeof e.schema!="boolean"}function eD(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&hO(e),nD(e),iD(e);let o=n.const("_errs",X.default.errors);mO(e,o),n.var(t,(0,V._)`${o} === ${X.default.errors}`)}function dO(e){(0,Tn.checkUnknownRules)(e),tD(e)}function mO(e,t){if(e.opts.jtd)return sO(e,[],!1,t);let r=(0,iO.getSchemaTypes)(e.schema),n=(0,iO.coerceAndCheckDataType)(e,r);sO(e,r,!n,t)}function tD(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Tn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function rD(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Tn.checkStrictMode)(e,"default is ignored in the schema root")}function nD(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,W5.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function iD(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function hO({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,V._)`${X.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let s=(0,V.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,V._)`${X.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function oD(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,V._)`${X.default.errors} === 0`,()=>t.return(X.default.data),()=>t.throw((0,V._)`new ${i}(${X.default.vErrors})`)):(t.assign((0,V._)`${n}.errors`,X.default.vErrors),o.unevaluated&&sD(e),t.return((0,V._)`${X.default.errors} === 0`))}function sD({gen:e,evaluated:t,props:r,items:n}){r instanceof V.Name&&e.assign((0,V._)`${t}.props`,r),n instanceof V.Name&&e.assign((0,V._)`${t}.items`,n)}function sO(e,t,r,n){let{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Tn.schemaHasRulesButRef)(o,u))){i.block(()=>yO(e,"$ref",u.all.$ref.definition));return}c.jtd||aD(e,t),i.block(()=>{for(let m of u.rules)p(m);p(u.post)});function p(m){(0,Jh.shouldUseGroup)(o,m)&&(m.type?(i.if((0,Pu.checkDataType)(m.type,s,c.strictNumbers)),aO(e,m),t.length===1&&t[0]===m.type&&r&&(i.else(),(0,Pu.reportTypeError)(e)),i.endIf()):aO(e,m),a||i.if((0,V._)`${X.default.errors} === ${n||0}`))}}function aO(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,K5.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,Jh.shouldUseRule)(n,s)||o(n,s))&&yO(e,s.keyword,s.definition,t.type)});function o(s,a){return!!(a.keyword==="unevaluatedProperties"&&(s.properties||s.patternProperties)&&!e.isAllOfVariant&&e.opts.defaultUnevaluatedProperties===!1)}}function aD(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(cD(e,t),e.opts.allowUnionTypes||lD(e,t),uD(e,e.dataTypes))}function cD(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{cO(e.dataTypes,r)||Xh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),e.dataTypes=e.dataTypes.filter(r=>cO(t,r))}}function lD(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Xh(e,"use allowUnionTypes to allow union type keyword")}function uD(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Jh.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(s=>pD(t,s))&&Xh(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function pD(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function cO(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Xh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Tn.checkStrictMode)(e,t,e.opts.strictTypes)}var $u=class{constructor(t,r,n){if((0,sc.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Tn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",gO(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,sc.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",X.default.errors))}result(t,r,n){this.failResult((0,V.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,V.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,V._)`${r} !== undefined && (${(0,V.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?oc.reportExtraError:oc.reportError)(this,this.def.error,r)}$dataError(){(0,oc.reportError)(this,this.def.$dataError||oc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,oc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=V.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=V.nil,r=V.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,V.or)((0,V._)`${i} === undefined`,r)),t!==V.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==V.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,V.or)(s(),a());function s(){if(n.length){if(!(r instanceof V.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,V._)`${(0,Pu.checkDataTypes)(c,r,o.opts.strictNumbers,Pu.DataType.Wrong)}`}return V.nil}function a(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,V._)`!${c}(${r})`}return V.nil}}subschema(t,r,n){let i=(0,Gh.getSubschema)(this.it,t);(0,Gh.extendSubschemaData)(i,this.it,t),(0,Gh.extendSubschemaMode)(i,t);let o={...this.it,...i,items:void 0,props:void 0,isAllOfVariant:n};return Z5(o,r),o}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Tn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Tn.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,V.Name)),!0}};bs.KeywordCxt=$u;function yO(e,t,r,n){let i=new $u(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,sc.funcKeywordCode)(i,r):"macro"in r?(0,sc.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,sc.funcKeywordCode)(i,r)}var fD=/^\/(?:[^~]|~0|~1)*$/,dD=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function gO(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return X.default.rootData;if(e[0]==="/"){if(!fD.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=X.default.rootData}else{let l=dD.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o,a=i.split("/");for(let l of a)l&&(o=(0,V._)`${o}${(0,V.getProperty)((0,Tn.unescapeJsonPointer)(l))}`,s=(0,V._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}});var ey=w(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var Qh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Zh.default=Qh});var iy=w(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var ty=ic(),ry=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ty.resolveUrl)(t,r,n),this.missingSchema=(0,ty.normalizeId)((0,ty.getFullPath)(t,this.missingRef))}};ny.default=ry});var ac=w(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.SchemaEnv=void 0;li.compileSchema=sy;li.resolveRef=yD;li.getCompilingSchema=wO;li.resolveSchema=Eu;var Lr=ne(),mD=ey(),uo=Sr(),Dr=ic(),bO=pe(),hD=vs(),ws=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Dr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};li.SchemaEnv=ws;function sy(e){let t=wO.call(this,e);if(t)return t;let r=(0,Dr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Lr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),a;e.$async&&(a=s.scopeValue("Error",{ref:mD.default,code:(0,Lr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:uo.default.data,parentData:uo.default.parentData,parentDataProperty:uo.default.parentDataProperty,dataNames:[uo.default.data],dataPathArr:[Lr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Lr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Lr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Lr._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,hD.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let p=s.toString();u=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(uo.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let d=new Function(`${uo.default.self}`,`${uo.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=l;d.evaluated={props:f instanceof Lr.Name?void 0:f,items:h instanceof Lr.Name?void 0:h,dynamicProps:f instanceof Lr.Name,dynamicItems:h instanceof Lr.Name},d.source&&(d.source.evaluated=(0,Lr.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(e)}}function yD(e,t,r){var n;let i=(0,Dr.resolveUrl)(this.opts.uriResolver,t,r),o=e.refs[i];if(o)return o;let s=vO.call(this,e,i);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[i],{schemaId:c}=this.opts;a&&(s=new ws({schema:a,schemaId:c,root:e,baseId:t}))}if(s===void 0&&this.opts.loadSchemaSync){let a=this.opts.loadSchemaSync(t,r,i);a&&!(this.refs[i]||this.schemas[i])&&(this.addSchema(a,i,void 0),s=vO.call(this,e,i))}if(s!==void 0)return e.refs[i]=gD.call(this,s)}function gD(e){return(0,Dr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:sy.call(this,e)}function wO(e){for(let t of this._compilations)if(bD(t,e))return t}function bD(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function vO(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Eu.call(this,e,t)}function Eu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Dr._getFullPath)(this.opts.uriResolver,r),i=(0,Dr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return oy.call(this,r,e);let o=(0,Dr.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=Eu.call(this,e,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:oy.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||sy.call(this,s),o===(0,Dr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Dr.resolveUrl)(this.opts.uriResolver,i,l)),new ws({schema:a,schemaId:c,root:e,baseId:i})}return oy.call(this,r,s)}}var vD=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function oy(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,bO.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!vD.has(a)&&l&&(t=(0,Dr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,bO.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Dr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Eu.call(this,n,a)}let{schemaId:s}=this.opts;if(o=o||new ws({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}});var xO=w((Foe,wD)=>{wD.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Cu=w(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.serialize=void 0;function xD(e){let t=SD(e),r;try{r=new URL(t.startUrl)}catch(i){return i.message&&console.error(i.message+" "+t.startUrl),""}if(e.scheme!==void 0&&!t.temporarySchemeAndHostUsed&&!t.temporarySchemeUsed?r.protocol=e.scheme.toLowerCase():r.protocol="",e.host!==void 0&&!t.temporarySchemeAndHostUsed&&!t.temporaryHostUsed?r.host=e.host:r.host="",e.port&&(r.port=String(e.port)),e.path&&(r.pathname=e.path),e.userinfo){let i=e.userinfo.split(":");i[0]&&(r.username=i[0]),i[1]&&(r.password=i[1])}e.query&&(r.search=e.query),e.fragment&&(r.hash=e.fragment);let n=r.toString();return!e.path&&n.endsWith("/")&&(n=n.slice(0,-1)),t.temporarySchemeAndHostUsed&&(n=n.replace(SO,""),n.startsWith("/")&&(n=n.slice(1))),t.temporaryHostUsed&&(n=n.replace(cy,"")),t.temporarySchemeUsed&&(n=n.replace(ay,"")),n}Au.serialize=xD;var ay="https:",cy="_remove_me_host_",SO=ay+"//"+cy;function SD(e){let t={startUrl:"",temporaryHostUsed:!1,temporarySchemeUsed:!1,temporarySchemeAndHostUsed:!1};return e.scheme&&e.host?(t.startUrl=e.scheme+"://"+e.host,t):e.host?(t.temporarySchemeUsed=!0,t.startUrl=ay+e.host,t):e.scheme?e.path?(t.startUrl=e.scheme+":"+e.path,t):(t.temporaryHostUsed=!0,t.startUrl=e.scheme+":"+cy,t):(t.temporarySchemeAndHostUsed=!0,t.startUrl=SO,t)}});var Tu=w(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.parse=void 0;function _D(e){let t={path:"",fragment:void 0,host:void 0,port:void 0,query:void 0,reference:void 0,scheme:void 0,userinfo:void 0};e.includes("#")&&(t.fragment="");let{parsed:r,addedDefaultScheme:n,addedTemporaryHost:i,error:o}=PD(e);if(o||r===void 0)return t.error=o,t;if(typeof r.protocol!==void 0&&r.protocol!==""&&!n&&(t.scheme=String(r.protocol).replace(":","")),typeof r.username!==void 0&&r.username!==""){let s=r.username;r.password&&(s+=":"+r.password),t.userinfo=s}return typeof r.hostname!==void 0&&r.hostname!==""&&!i&&(t.host=r.hostname,t.host.startsWith("[")&&(t.host=t.host.substring(1),t.host=t.host.slice(0,-1))),typeof r.port!==void 0&&r.port!==""&&(t.port=Number(r.port)),typeof r.pathname!==void 0&&r.pathname!=="/"&&(t.path=r.pathname,i&&t.path.startsWith("/")&&(t.path=t.path.substring(1))),typeof r.search!==void 0&&r.search!==""&&(t.query=r.search.replace("?","")),typeof r.hash!==void 0&&r.hash!==""&&(t.fragment=r.hash.replace("#","")),t.scheme===void 0&&t.userinfo===void 0&&t.host===void 0&&t.port===void 0&&!t.path&&t.query===void 0?t.reference="same-document":t.scheme===void 0?t.reference="relative":t.fragment===void 0?t.reference="absolute":t.reference="uri",t}Ru.parse=_D;var OD="_remove_me_host/";function PD(e){let t={parsed:void 0,addedDefaultScheme:!1,addedTemporaryHost:!1,error:void 0},r;try{return t.parsed=new URL(e),t}catch(n){r=n}if(e.startsWith("//"))try{return t.parsed=new URL("https:"+e),t.addedDefaultScheme=!0,t}catch{return t.error=r.message,t}try{return t.parsed=new URL("https://"+OD+e),t.addedDefaultScheme=!0,t.addedTemporaryHost=!0,t}catch{}return t.error=r.message,t}});var OO=w(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.resolveComponents=xs.resolve=void 0;var ku=Tu(),ly=Cu();function $D(e,t,r){let n=Object.assign({scheme:"null"},r),i=_O((0,ku.parse)(e),(0,ku.parse)(t),n,!0);return(0,ly.serialize)(i)}xs.resolve=$D;function _O(e,t,r,n){let i={};return n||(e=(0,ku.parse)((0,ly.serialize)(e)),t=(0,ku.parse)((0,ly.serialize)(t))),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Nu(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Nu(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Nu(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=Nu(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}xs.resolveComponents=_O;function Nu(e){let t=/^\.\.?\//u,r=/^\/\.(?:\/|$)/u,n=/^\/\.\.(?:\/|$)/u,i=/^\/?(?:.|\n)*?(?=\/|$)/u,o=[];for(;e.length;)if(e.match(t))e=e.replace(t,"");else if(e.match(r))e=e.replace(r,"/");else if(e.match(n))e=e.replace(n,"/"),o.pop();else if(e==="."||e==="..")e="";else{let s=e.match(i);if(s){let a=s[0];e=e.slice(a.length),o.push(a)}else throw new Error("Unexpected dot segment condition")}return o.join("")}});var PO=w(lr=>{"use strict";var ED=lr&&lr.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),uy=lr&&lr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ED(t,e,r)};Object.defineProperty(lr,"__esModule",{value:!0});lr.normalize=lr.equal=void 0;var Ss=Cu(),Iu=Tu();uy(OO(),lr);uy(Cu(),lr);uy(Tu(),lr);function AD(e,t){let r,n;return typeof e=="string"?r=(0,Ss.serialize)((0,Iu.parse)(e)):r=(0,Ss.serialize)(e),typeof t=="string"?n=(0,Ss.serialize)((0,Iu.parse)(t)):n=(0,Ss.serialize)(t),r.toLowerCase()===n.toLowerCase()}lr.equal=AD;function CD(e){return typeof e=="string"?(0,Ss.serialize)((0,Iu.parse)(e)):(0,Iu.parse)((0,Ss.serialize)(e))}lr.normalize=CD});var EO=w(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var $O=PO();$O.code='require("ajv/dist/runtime/uri").default';py.default=$O});var my=w(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.CodeGen=vt.Name=vt.nil=vt.stringify=vt.str=vt._=vt.KeywordCxt=void 0;var RD=vs();Object.defineProperty(vt,"KeywordCxt",{enumerable:!0,get:function(){return RD.KeywordCxt}});var _s=ne();Object.defineProperty(vt,"_",{enumerable:!0,get:function(){return _s._}});Object.defineProperty(vt,"str",{enumerable:!0,get:function(){return _s.str}});Object.defineProperty(vt,"stringify",{enumerable:!0,get:function(){return _s.stringify}});Object.defineProperty(vt,"nil",{enumerable:!0,get:function(){return _s.nil}});Object.defineProperty(vt,"Name",{enumerable:!0,get:function(){return _s.Name}});Object.defineProperty(vt,"CodeGen",{enumerable:!0,get:function(){return _s.CodeGen}});var TD=ey(),NO=iy(),ND=Lh(),cc=ac(),kD=ne(),lc=ic(),qu=tc(),dy=pe(),AO=xO(),ID=EO(),kO=(e,t)=>new RegExp(e,t);kO.code="new RegExp";var qD=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],jD=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),MD={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},LD={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},CO=200;function DD(e){var t,r,n,i,o,s,a,c,l,u,p,m,d,f,h,y,g,b,v,x,S,C,_,$,E;let q=e.strict,O=(t=e.code)===null||t===void 0?void 0:t.optimize,P=O===!0||O===void 0?1:O||0,N=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:kO,D=(i=e.uriResolver)!==null&&i!==void 0?i:ID.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:q)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:q)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:q)!==null&&u!==void 0?u:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:q)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:q)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:P,regExp:N}:{optimize:P,regExp:N},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:CO,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:CO,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(C=e.validateSchema)!==null&&C!==void 0?C:!0,validateFormats:(_=e.validateFormats)!==null&&_!==void 0?_:!0,unicodeRegExp:($=e.unicodeRegExp)!==null&&$!==void 0?$:!0,int32range:(E=e.int32range)!==null&&E!==void 0?E:!0,uriResolver:D}}var uc=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...DD(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new kD.ValueScope({scope:{},prefixes:jD,es5:r,lines:n}),this.logger=HD(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,ND.getRules)(),RO.call(this,MD,t,"NOT SUPPORTED"),RO.call(this,LD,t,"DEPRECATED","warn"),this._metaOpts=VD.call(this),t.formats&&BD.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&UD.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),FD.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=AO;n==="id"&&(i={...AO},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(u,p){await o.call(this,u.$schema);let m=this._addSchema(u,p);return m.validate||s.call(this,m)}async function o(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof NO.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),s.call(this,u)}}function a({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function c(u){let p=await l.call(this,u);this.refs[u]||await o.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,r)}async function l(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:s}=this.opts;if(o=t[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,lc.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=TO.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new cc.SchemaEnv({schema:{},schemaId:n});if(r=cc.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=TO.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,lc.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(WD.call(this,n,r),!r)return(0,dy.eachItem)(n,o=>fy.call(this,o)),this;GD.call(this,r);let i={...r,type:(0,qu.getJSONTypes)(r.type),schemaType:(0,qu.getJSONTypes)(r.schemaType)};return(0,dy.eachItem)(n,i.type.length===0?o=>fy.call(this,o,i):o=>i.type.forEach(s=>fy.call(this,o,i,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),s=t;for(let a of o)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=s[a];l&&u&&(s[a]=IO(u))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,lc.normalizeId)(s||n);let l=lc.getSchemaRefs.call(this,t,n);return c=new cc.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):cc.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{cc.compileSchema.call(this,t)}finally{this.opts=r}}};uc.ValidationError=TD.default;uc.MissingRefError=NO.default;vt.default=uc;function RO(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function TO(e){return e=(0,lc.normalizeId)(e),this.schemas[e]||this.refs[e]}function FD(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function BD(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function UD(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function VD(){let e={...this.opts};for(let t of qD)delete e[t];return e}var zD={log(){},warn(){},error(){}};function HD(e){if(e===!1)return zD;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var KD=/^[a-z_$][a-z0-9_$:-]*$/i;function WD(e,t){let{RULES:r}=this;if((0,dy.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!KD.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function fy(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=i?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,qu.getJSONTypes)(t.type),schemaType:(0,qu.getJSONTypes)(t.schemaType)}};t.before?YD.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function YD(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function GD(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=IO(t)),e.validateSchema=this.compile(t,!0))}var JD={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function IO(e){return{anyOf:[e,JD]}}});var qO=w(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var XD={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};hy.default=XD});var Lu=w(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.getValidate=LO;pc.callRef=Mu;var QD=iy(),jO=Or(),tt=ne(),Os=Sr(),MO=ac(),ju=pe(),ZD={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return p();let u=MO.resolveRef.call(c,l,i,r);if(u===void 0)throw new QD.default(n.opts.uriResolver,i,r);if(u instanceof MO.SchemaEnv)return m(u);return d(u);function p(){if(o===l)return Mu(e,s,o,o.$async);let f=t.scopeValue("root",{ref:l});return Mu(e,(0,tt._)`${f}.validate`,l,l.$async)}function m(f){let h=LO(e,f);Mu(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,tt.stringify)(f)}:{ref:f}),y=t.name("valid"),g=e.subschema({schema:f,dataTypes:[],schemaPath:tt.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(g),e.ok(y)}}};function LO(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,tt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}function Mu(e,t,r,n){let{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Os.default.this:tt.nil;n?u():p();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{i.code((0,tt._)`await ${(0,jO.callValidateCode)(e,t,l)}`),d(t),s||i.assign(f,!0)},h=>{i.if((0,tt._)`!(${h} instanceof ${o.ValidationError})`,()=>i.throw(h)),m(h),s||i.assign(f,!1)}),e.ok(f)}function p(){let f=i.name("visitedNodes");i.code((0,tt._)`const ${f} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),i.if((0,tt._)`!${f}.has(${e.data})`,()=>{i.code((0,tt._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${f})`),i.code((0,tt._)`const dataNode = ${e.data}`),i.code((0,tt._)`if (typeof dataNode === "object" && dataNode !== null) ${f}.add(dataNode)`);let h=e.result((0,jO.callValidateCode)(e,t,l),()=>d(t),()=>m(t));return i.code((0,tt._)`${f}.delete(dataNode)`),h})}function m(f){let h=(0,tt._)`${f}.errors`;i.assign(Os.default.vErrors,(0,tt._)`${Os.default.vErrors} === null ? ${h} : ${Os.default.vErrors}.concat(${h})`),i.assign(Os.default.errors,(0,tt._)`${Os.default.vErrors}.length`)}function d(f){var h;if(!o.opts.unevaluated)return;let y=(h=r==null?void 0:r.validate)===null||h===void 0?void 0:h.evaluated;if(o.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(o.props=ju.mergeEvaluated.props(i,y.props,o.props));else{let g=i.var("props",(0,tt._)`${f}.evaluated.props`);o.props=ju.mergeEvaluated.props(i,g,o.props,tt.Name)}if(o.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(o.items=ju.mergeEvaluated.items(i,y.items,o.items));else{let g=i.var("items",(0,tt._)`${f}.evaluated.items`);o.items=ju.mergeEvaluated.items(i,g,o.items,tt.Name)}}}pc.default=ZD});var gy=w(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var eF=qO(),tF=Lu(),rF=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",eF.default,tF.default];yy.default=rF});var DO=w(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var Du=ne(),ui=Du.operators,Fu={maximum:{okStr:"<=",ok:ui.LTE,fail:ui.GT},minimum:{okStr:">=",ok:ui.GTE,fail:ui.LT},exclusiveMaximum:{okStr:"<",ok:ui.LT,fail:ui.GTE},exclusiveMinimum:{okStr:">",ok:ui.GT,fail:ui.LTE}},nF={message:({keyword:e,schemaCode:t})=>(0,Du.str)`must be ${Fu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Du._)`{comparison: ${Fu[e].okStr}, limit: ${t}}`},iF={keyword:Object.keys(Fu),type:"number",schemaType:"number",$data:!0,error:nF,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Du._)`${r} ${Fu[t].fail} ${n} || isNaN(${r})`)}};by.default=iF});var FO=w(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var fc=ne(),oF={message:({schemaCode:e})=>(0,fc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,fc._)`{multipleOf: ${e}}`},sF={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:oF,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,fc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,fc._)`${s} !== parseInt(${s})`;e.fail$data((0,fc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};vy.default=sF});var UO=w(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.default=BO;function BO(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}BO.code='require("ajv/dist/runtime/ucs2length").default'});var VO=w(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var po=ne(),aF=pe(),cF=UO(),lF={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,po.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,po._)`{limit: ${e}}`},uF={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:lF,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?po.operators.GT:po.operators.LT,s=i.opts.unicode===!1?(0,po._)`${r}.length`:(0,po._)`${(0,aF.useFunc)(e.gen,cF.default)}(${r})`;e.fail$data((0,po._)`${s} ${o} ${n}`)}};xy.default=uF});var zO=w(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var pF=Or(),Bu=ne(),fF={message:({schemaCode:e})=>(0,Bu.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Bu._)`{pattern: ${e}}`},dF={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:fF,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,Bu._)`(new RegExp(${i}, ${s}))`:(0,pF.usePattern)(e,n);e.fail$data((0,Bu._)`!${a}.test(${t})`)}};Sy.default=dF});var HO=w(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var dc=ne(),mF={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,dc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,dc._)`{limit: ${e}}`},hF={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:mF,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?dc.operators.GT:dc.operators.LT;e.fail$data((0,dc._)`Object.keys(${r}).length ${i} ${n}`)}};_y.default=hF});var KO=w(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var mc=Or(),hc=ne(),yF=pe(),gF={message:({params:{missingProperty:e}})=>(0,hc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,hc._)`{missingProperty: ${e}}`},bF={keyword:"required",type:"object",schemaType:"array",$data:!0,error:gF,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if((d==null?void 0:d[h])===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,yF.checkStrictMode)(s,g,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(hc.nil,p);else for(let d of r)(0,mc.checkReportMissingProp)(e,d)}function u(){let d=t.let("missing");if(c||o){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,mc.checkMissingProp)(e,r,d)),(0,mc.reportMissingProp)(e,d),t.else()}function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,mc.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,mc.propertyInData)(t,i,d,a.ownProperties)),t.if((0,hc.not)(f),()=>{e.error(),t.break()})},hc.nil)}}};Oy.default=bF});var WO=w(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var yc=ne(),vF={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,yc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,yc._)`{limit: ${e}}`},wF={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:vF,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?yc.operators.GT:yc.operators.LT;e.fail$data((0,yc._)`${r}.length ${i} ${n}`)}};Py.default=wF});var Uu=w($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var YO=nc();YO.code='require("ajv/dist/runtime/equal").default';$y.default=YO});var GO=w(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var Ey=tc(),wt=ne(),xF=pe(),SF=Uu(),_F={message:({params:{i:e,j:t}})=>(0,wt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,wt._)`{i: ${e}, j: ${t}}`},OF={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:_F,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,Ey.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,wt._)`${s} === false`),e.ok(c);function u(){let f=t.let("i",(0,wt._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,wt._)`${f} > 1`,()=>(p()?m:d)(f,h))}function p(){return l.length>0&&!l.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),g=(0,Ey.checkDataTypes)(l,y,a.opts.strictNumbers,Ey.DataType.Wrong),b=t.const("indices",(0,wt._)`{}`);t.for((0,wt._)`;${f}--;`,()=>{t.let(y,(0,wt._)`${r}[${f}]`),t.if(g,(0,wt._)`continue`),l.length>1&&t.if((0,wt._)`typeof ${y} == "string"`,(0,wt._)`${y} += "_"`),t.if((0,wt._)`typeof ${b}[${y}] == "number"`,()=>{t.assign(h,(0,wt._)`${b}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,wt._)`${b}[${y}] = ${f}`)})}function d(f,h){let y=(0,xF.useFunc)(t,SF.default),g=t.name("outer");t.label(g).for((0,wt._)`;${f}--;`,()=>t.for((0,wt._)`${h} = ${f}; ${h}--;`,()=>t.if((0,wt._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};Ay.default=OF});var JO=w(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var Cy=ne(),PF=pe(),$F=Uu(),EF={message:"must be equal to constant",params:({schemaCode:e})=>(0,Cy._)`{allowedValue: ${e}}`},AF={keyword:"const",$data:!0,error:EF,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Cy._)`!${(0,PF.useFunc)(t,$F.default)}(${r}, ${i})`):e.fail((0,Cy._)`${o} !== ${r}`)}};Ry.default=AF});var XO=w(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var gc=ne(),CF=pe(),RF=Uu(),TF={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,gc._)`{allowedValues: ${e}}`},NF={keyword:"enum",schemaType:"array",$data:!0,error:TF,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,c,l=()=>c!=null?c:c=(0,CF.useFunc)(t,RF.default),u;if(a||n)u=t.let("valid"),e.block$data(u,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);u=(0,gc.or)(...i.map((f,h)=>m(d,h)))}e.pass(u);function p(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,gc._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function m(d,f){let h=i[f];return typeof h=="object"&&h!==null?(0,gc._)`${l()}(${r}, ${d}[${f}])`:(0,gc._)`${r} === ${h}`}}};Ty.default=NF});var ky=w(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var kF=DO(),IF=FO(),qF=VO(),jF=zO(),MF=HO(),LF=KO(),DF=WO(),FF=GO(),BF=JO(),UF=XO(),VF=[kF.default,IF.default,qF.default,jF.default,MF.default,LF.default,DF.default,FF.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},BF.default,UF.default];Ny.default=VF});var qy=w(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.validateAdditionalItems=QO;var fo=ne(),Iy=pe(),zF={message:({params:{len:e}})=>(0,fo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,fo._)`{limit: ${e}}`},HF={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:zF,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Iy.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}QO(e,n)}};function QO(e,t){let{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;let a=r.const("len",(0,fo._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,fo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Iy.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,fo._)`${a} <= ${t.length}`);r.if((0,fo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Iy.Type.Num},l),s.allErrors||r.if((0,fo.not)(l),()=>r.break())})}}Vu.default=HF});var jy=w(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.validateTuple=eP;var ZO=ne(),zu=pe(),KF=Or(),WF={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return eP(e,"additionalItems",t);r.items=!0,!(0,zu.alwaysValidSchema)(r,t)&&e.ok((0,KF.validateArray)(e))}};function eP(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=zu.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,ZO._)`${o}.length`);r.forEach((p,m)=>{(0,zu.alwaysValidSchema)(a,p)||(n.if((0,ZO._)`${l} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function u(p){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===p.minItems&&(f===p.maxItems||p[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,zu.checkStrictMode)(a,y,m.strictTuples)}}}Hu.default=WF});var tP=w(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var YF=jy(),GF={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,YF.validateTuple)(e,"items")};My.default=GF});var nP=w(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var rP=ne(),JF=pe(),XF=Or(),QF=qy(),ZF={message:({params:{len:e}})=>(0,rP.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,rP._)`{limit: ${e}}`},eB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ZF,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,JF.alwaysValidSchema)(n,t)&&(i?(0,QF.validateAdditionalItems)(e,i):e.ok((0,XF.validateArray)(e)))}};Ly.default=eB});var iP=w(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var Pr=ne(),Ku=pe(),tB={message:({params:{min:e,max:t}})=>t===void 0?(0,Pr.str)`must contain at least ${e} valid item(s)`:(0,Pr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Pr._)`{minContains: ${e}}`:(0,Pr._)`{minContains: ${e}, maxContains: ${t}}`},rB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:tB,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,s,a,{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let u=t.const("len",(0,Pr._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Ku.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Ku.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ku.alwaysValidSchema)(o,r)){let h=(0,Pr._)`${u} >= ${s}`;a!==void 0&&(h=(0,Pr._)`${h} && ${u} <= ${a}`),e.pass(h);return}o.items=!0;let p=t.name("valid");a===void 0&&s===1?d(p,()=>t.if(p,()=>t.break())):s===0?(t.let(p,!0),a!==void 0&&t.if((0,Pr._)`${i}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Ku.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,Pr._)`${h}++`),a===void 0?t.if((0,Pr._)`${h} >= ${s}`,()=>t.assign(p,!0).break()):(t.if((0,Pr._)`${h} > ${a}`,()=>t.assign(p,!1).break()),s===1?t.assign(p,!0):t.if((0,Pr._)`${h} >= ${s}`,()=>t.assign(p,!0)))}}};Dy.default=rB});var Wu=w(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.error=void 0;pi.validatePropertyDeps=oP;pi.validateSchemaDeps=sP;var Fy=ne(),nB=pe(),bc=Or();pi.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Fy.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Fy._)`{property: ${e},
|
|
5
|
+
|| ${s} === "boolean" || ${i} === null`).assign(a,(0,oe._)`[${i}]`)}}}function c5({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,oe._)`${t} !== undefined`,()=>e.assign((0,oe._)`${t}[${r}]`,n))}function Fh(e,t,r,n=ms.Correct){let i=n===ms.Correct?oe.operators.EQ:oe.operators.NEQ,o;switch(e){case"null":return(0,oe._)`${t} ${i} null`;case"array":o=(0,oe._)`Array.isArray(${t})`;break;case"object":o=(0,oe._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,oe._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,oe._)`typeof ${t} ${i} ${e}`}return n===ms.Correct?o:(0,oe.not)(o);function s(a=oe.nil){return(0,oe.and)((0,oe._)`typeof ${t} == "number"`,a,r?(0,oe._)`isFinite(${t})`:oe.nil)}}function Bh(e,t,r,n){if(e.length===1)return Fh(e[0],t,r,n);let i,o=(0,B_.toHash)(e);if(o.array&&o.object){let s=(0,oe._)`typeof ${t} != "object"`;i=o.null?s:(0,oe._)`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else i=oe.nil;o.number&&delete o.integer;for(let s in o)i=(0,oe.and)(i,Fh(s,t,r,n));return i}var l5={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,oe._)`{type: ${e}}`:(0,oe._)`{type: ${t}}`};function Uh(e){let t=u5(e);(0,n5.reportError)(t,l5)}function u5(e){let{gen:t,data:r,schema:n}=e,i=(0,B_.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var H_=w(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.assignDefaults=f5;var hs=ne(),p5=pe();function f5(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)z_(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>z_(e,o,i.default))}function z_(e,t,r){let{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;let a=(0,hs._)`${o}${(0,hs.getProperty)(t)}`;if(i){(0,p5.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,hs._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,hs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,hs._)`${a} = ${(0,hs.stringify)(r)}`)}});var Or=w(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.checkReportMissingProp=m5;Bt.checkMissingProp=h5;Bt.reportMissingProp=y5;Bt.hasPropFunc=K_;Bt.isOwnProperty=Hh;Bt.propertyInData=g5;Bt.noPropertyInData=Kh;Bt.allSchemaProperties=W_;Bt.schemaProperties=b5;Bt.callValidateCode=v5;Bt.usePattern=x5;Bt.validateArray=S5;Bt.validateUnion=_5;var qe=ne(),zh=pe(),Rn=Sr(),d5=pe();function m5(e,t){let{gen:r,data:n,it:i}=e;r.if(Kh(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,qe._)`${t}`},!0),e.error()})}function h5({gen:e,data:t,it:{opts:r}},n,i){return(0,qe.or)(...n.map(o=>(0,qe.and)(Kh(e,t,o,r.ownProperties),(0,qe._)`${i} = ${o}`)))}function y5(e,t){e.setParams({missingProperty:t},!0),e.error()}function K_(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,qe._)`Object.prototype.hasOwnProperty`})}function Hh(e,t,r){return(0,qe._)`${K_(e)}.call(${t}, ${r})`}function g5(e,t,r,n){let i=(0,qe._)`${t}${(0,qe.getProperty)(r)} !== undefined`;return n?(0,qe._)`${i} && ${Hh(e,t,r)}`:i}function Kh(e,t,r,n){let i=(0,qe._)`${t}${(0,qe.getProperty)(r)} === undefined`;return n?(0,qe.or)(i,(0,qe.not)(Hh(e,t,r))):i}function W_(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}function b5(e,t){return W_(t).filter(r=>!(0,zh.alwaysValidSchema)(e,t[r]))}function v5({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){let u=l?(0,qe._)`${e}, ${t}, ${n}${i}`:t,p=[[Rn.default.instancePath,(0,qe.strConcat)(Rn.default.instancePath,o)],[Rn.default.parentData,s.parentData],[Rn.default.parentDataProperty,s.parentDataProperty],[Rn.default.rootData,Rn.default.rootData],[Rn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&p.push([Rn.default.dynamicAnchors,Rn.default.dynamicAnchors]);let m=(0,qe._)`${u}, ${r.object(...p)}`;return c!==qe.nil?(0,qe._)`${a}.call(${c}, ${m})`:(0,qe._)`${a}(${m})`}var w5=(0,qe._)`new RegExp`;function x5({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,qe._)`${i.code==="new RegExp"?w5:(0,d5.useFunc)(e,i)}(${r}, ${n})`})}function S5(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){let c=t.const("len",(0,qe._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:zh.Type.Num},o),t.if((0,qe.not)(o),a)})}}function _5(e){let{gen:t,schema:r,keyword:n,parentSchema:i,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&i.discriminator||r.some(l=>(0,zh.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((l,u)=>{let p=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},c);t.assign(a,(0,qe._)`${a} || ${c}`),e.mergeValidEvaluated(p,c)||t.if((0,qe.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}});var J_=w(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.macroKeywordCode=$5;ys.funcKeywordCode=E5;ys.validSchemaType=R5;ys.validateKeywordUsage=T5;var Ut=ne(),lo=Sr(),O5=Or(),P5=Za();function $5(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=G_(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:Ut.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}function E5(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;C5(c,t);let l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=G_(n,i,l),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)h(),t.modifying&&Y_(e),y(()=>e.error());else{let g=t.async?d():f();t.modifying&&Y_(e),y(()=>A5(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,Ut._)`await `),b=>n.assign(p,!1).if((0,Ut._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,Ut._)`${b}.errors`),()=>n.throw(b))),g}function f(){let g=(0,Ut._)`${u}.errors`;return n.assign(g,null),h(Ut.nil),g}function h(g=t.async?(0,Ut._)`await `:Ut.nil){let b=c.opts.passContext?lo.default.this:lo.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,Ut._)`${g}${(0,O5.callValidateCode)(e,u,b,v)}`,t.modifying)}function y(g){var b;n.if((0,Ut.not)((b=t.valid)!==null&&b!==void 0?b:p),g)}}function Y_(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Ut._)`${n.parentData}[${n.parentDataProperty}]`))}function A5(e,t){let{gen:r}=e;r.if((0,Ut._)`Array.isArray(${t})`,()=>{r.assign(lo.default.vErrors,(0,Ut._)`${lo.default.vErrors} === null ? ${t} : ${lo.default.vErrors}.concat(${t})`).assign(lo.default.errors,(0,Ut._)`${lo.default.vErrors}.length`),(0,P5.extendErrors)(e)},()=>e.error())}function C5({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function G_(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,Ut.stringify)(r)})}function R5(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}function T5({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let s=i.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}});var Q_=w(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.getSubschema=N5;rc.extendSubschemaData=k5;rc.extendSubschemaMode=I5;var nn=ne(),X_=pe();function N5(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,nn._)`${e.schemaPath}${(0,nn.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,nn._)`${e.schemaPath}${(0,nn.getProperty)(t)}${(0,nn.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,X_.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}function k5(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:p}=t,m=a.let("data",(0,nn._)`${t.data}${(0,nn.getProperty)(r)}`,!0);c(m),e.errorPath=(0,nn.str)`${l}${(0,X_.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,nn._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){let l=i instanceof nn.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}function I5(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}});var nc=w((koe,Z_)=>{"use strict";Z_.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!e(t[i],r[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(o=Object.keys(t),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var Wh=w((Ioe,eO)=>{"use strict";var ai=eO.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};Ou(t,n,i,e,"",e)};ai.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ai.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ai.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ai.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Ou(e,t,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,i,o,s,a,c,l);for(var u in n){var p=n[u];if(Array.isArray(p)){if(u in ai.arrayKeywords)for(var m=0;m<p.length;m++)Ou(e,t,r,p[m],i+"/"+u+"/"+m,o,i,u,n,m)}else if(u in ai.propsKeywords){if(p&&typeof p=="object")for(var d in p)Ou(e,t,r,p[d],i+"/"+u+"/"+q5(d),o,i,u,n,d)}else(u in ai.keywords||e.allKeys&&!(u in ai.skipKeywords))&&Ou(e,t,r,p,i+"/"+u,o,i,u,n)}r(n,i,o,s,a,c,l)}}function q5(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var ic=w(ci=>{"use strict";Object.defineProperty(ci,"__esModule",{value:!0});ci.inlineRef=F5;ci.getFullPath=rO;ci._getFullPath=nO;ci.normalizeId=gs;ci.resolveUrl=V5;ci.getSchemaRefs=H5;var j5=pe(),M5=nc(),L5=Wh(),D5=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function F5(e,t=!0){return typeof e=="boolean"?!0:t===!0?!Yh(e):t?tO(e)<=t:!1}var B5=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Yh(e){for(let t in e){if(B5.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(Yh)||typeof r=="object"&&Yh(r))return!0}return!1}function tO(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!D5.has(r)&&(typeof e[r]=="object"&&(0,j5.eachItem)(e[r],n=>t+=tO(n)),t===1/0))return 1/0}return t}function rO(e,t="",r){r!==!1&&(t=gs(t));let n=e.parse(t);return nO(e,n)}function nO(e,t){return e.serialize(t).split("#")[0]+"#"}var U5=/#\/?$/;function gs(e){return e?e.replace(U5,""):""}function V5(e,t,r){return r=gs(r),e.resolve(t,r)}var z5=/^[a-z_][-a-z0-9._]*$/i;function H5(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=gs(e[r]||t),o={"":i},s=rO(n,i,!1),a={},c=new Set;return L5(e,{allKeys:!0},(p,m,d,f)=>{if(f===void 0)return;let h=s+m,y=o[f];typeof p[r]=="string"&&(y=g.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),o[m]=y;function g(v){let x=this.opts.uriResolver.resolve;if(v=gs(y?x(y,v):v),c.has(v))throw u(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?l(p,S.schema,v):v!==gs(h)&&(v[0]==="#"?(l(p,a[v],v),a[v]=p):this.refs[v]=h),v}function b(v){if(typeof v=="string"){if(!z5.test(v))throw new Error(`invalid anchor "${v}"`);g.call(this,`#${v}`)}}}),a;function l(p,m,d){if(m!==void 0&&!M5(p,m))throw u(d)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}});var vs=w(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.KeywordCxt=void 0;bs.validateFunctionCode=Y5;bs.getData=gO;var lO=L_(),iO=tc(),Jh=Dh(),Pu=tc(),K5=H_(),sc=J_(),Gh=Q_(),V=ne(),X=Sr(),W5=ic(),Tn=pe(),oc=Za();function Y5(e){if(fO(e)&&(dO(e),pO(e))){X5(e);return}uO(e,()=>(0,lO.topBoolOrEmptySchema)(e))}function uO({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,V._)`${X.default.data}, ${X.default.valCxt}`,n.$async,()=>{e.code((0,V._)`"use strict"; ${oO(r,i)}`),J5(e,i),e.code(o)}):e.func(t,(0,V._)`${X.default.data}, ${G5(i)}`,n.$async,()=>e.code(oO(r,i)).code(o))}function G5(e){return(0,V._)`{${X.default.instancePath}="", ${X.default.parentData}, ${X.default.parentDataProperty}, ${X.default.rootData}=${X.default.data}${e.dynamicRef?(0,V._)`, ${X.default.dynamicAnchors}={}`:V.nil}, ${X.default.isAllOfVariant} = 0}={}`}function J5(e,t){e.if(X.default.valCxt,()=>{e.var(X.default.instancePath,(0,V._)`${X.default.valCxt}.${X.default.instancePath}`),e.var(X.default.parentData,(0,V._)`${X.default.valCxt}.${X.default.parentData}`),e.var(X.default.parentDataProperty,(0,V._)`${X.default.valCxt}.${X.default.parentDataProperty}`),e.var(X.default.rootData,(0,V._)`${X.default.valCxt}.${X.default.rootData}`),e.var(X.default.isAllOfVariant,(0,V._)`${X.default.valCxt}.${X.default.isAllOfVariant}`),t.dynamicRef&&e.var(X.default.dynamicAnchors,(0,V._)`${X.default.valCxt}.${X.default.dynamicAnchors}`)},()=>{e.var(X.default.instancePath,(0,V._)`""`),e.var(X.default.parentData,(0,V._)`undefined`),e.var(X.default.parentDataProperty,(0,V._)`undefined`),e.var(X.default.rootData,X.default.data),e.var(X.default.isAllOfVariant,(0,V._)`0`),t.dynamicRef&&e.var(X.default.dynamicAnchors,(0,V._)`{}`)})}function X5(e){let{schema:t,opts:r,gen:n}=e;uO(e,()=>{r.$comment&&t.$comment&&hO(e),rD(e),n.let(X.default.vErrors,null),n.let(X.default.errors,0),r.unevaluated&&Q5(e),mO(e),oD(e)})}function Q5(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,V._)`${r}.evaluated`),t.if((0,V._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,V._)`${e.evaluated}.props`,(0,V._)`undefined`)),t.if((0,V._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,V._)`${e.evaluated}.items`,(0,V._)`undefined`))}function oO(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,V._)`/*# sourceURL=${r} */`:V.nil}function Z5(e,t){if(fO(e)&&(dO(e),pO(e))){eD(e,t);return}(0,lO.boolOrEmptySchema)(e,t)}function pO({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function fO(e){return typeof e.schema!="boolean"}function eD(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&hO(e),nD(e),iD(e);let o=n.const("_errs",X.default.errors);mO(e,o),n.var(t,(0,V._)`${o} === ${X.default.errors}`)}function dO(e){(0,Tn.checkUnknownRules)(e),tD(e)}function mO(e,t){if(e.opts.jtd)return sO(e,[],!1,t);let r=(0,iO.getSchemaTypes)(e.schema),n=(0,iO.coerceAndCheckDataType)(e,r);sO(e,r,!n,t)}function tD(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Tn.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function rD(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Tn.checkStrictMode)(e,"default is ignored in the schema root")}function nD(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,W5.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function iD(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function hO({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,V._)`${X.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let s=(0,V.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,V._)`${X.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function oD(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,V._)`${X.default.errors} === 0`,()=>t.return(X.default.data),()=>t.throw((0,V._)`new ${i}(${X.default.vErrors})`)):(t.assign((0,V._)`${n}.errors`,X.default.vErrors),o.unevaluated&&sD(e),t.return((0,V._)`${X.default.errors} === 0`))}function sD({gen:e,evaluated:t,props:r,items:n}){r instanceof V.Name&&e.assign((0,V._)`${t}.props`,r),n instanceof V.Name&&e.assign((0,V._)`${t}.items`,n)}function sO(e,t,r,n){let{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Tn.schemaHasRulesButRef)(o,u))){i.block(()=>yO(e,"$ref",u.all.$ref.definition));return}c.jtd||aD(e,t),i.block(()=>{for(let m of u.rules)p(m);p(u.post)});function p(m){(0,Jh.shouldUseGroup)(o,m)&&(m.type?(i.if((0,Pu.checkDataType)(m.type,s,c.strictNumbers)),aO(e,m),t.length===1&&t[0]===m.type&&r&&(i.else(),(0,Pu.reportTypeError)(e)),i.endIf()):aO(e,m),a||i.if((0,V._)`${X.default.errors} === ${n||0}`))}}function aO(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,K5.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,Jh.shouldUseRule)(n,s)||o(n,s))&&yO(e,s.keyword,s.definition,t.type)});function o(s,a){return!!(a.keyword==="unevaluatedProperties"&&(s.properties||s.patternProperties)&&!e.isAllOfVariant&&e.opts.defaultUnevaluatedProperties===!1)}}function aD(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(cD(e,t),e.opts.allowUnionTypes||lD(e,t),uD(e,e.dataTypes))}function cD(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{cO(e.dataTypes,r)||Xh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),e.dataTypes=e.dataTypes.filter(r=>cO(t,r))}}function lD(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Xh(e,"use allowUnionTypes to allow union type keyword")}function uD(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,Jh.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(s=>pD(t,s))&&Xh(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function pD(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function cO(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Xh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Tn.checkStrictMode)(e,t,e.opts.strictTypes)}var $u=class{constructor(t,r,n){if((0,sc.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Tn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",gO(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,sc.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",X.default.errors))}result(t,r,n){this.failResult((0,V.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,V.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,V._)`${r} !== undefined && (${(0,V.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?oc.reportExtraError:oc.reportError)(this,this.def.error,r)}$dataError(){(0,oc.reportError)(this,this.def.$dataError||oc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,oc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=V.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=V.nil,r=V.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,V.or)((0,V._)`${i} === undefined`,r)),t!==V.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==V.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,V.or)(s(),a());function s(){if(n.length){if(!(r instanceof V.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,V._)`${(0,Pu.checkDataTypes)(c,r,o.opts.strictNumbers,Pu.DataType.Wrong)}`}return V.nil}function a(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,V._)`!${c}(${r})`}return V.nil}}subschema(t,r,n){let i=(0,Gh.getSubschema)(this.it,t);(0,Gh.extendSubschemaData)(i,this.it,t),(0,Gh.extendSubschemaMode)(i,t);let o={...this.it,...i,items:void 0,props:void 0,isAllOfVariant:n};return Z5(o,r),o}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Tn.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Tn.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,V.Name)),!0}};bs.KeywordCxt=$u;function yO(e,t,r,n){let i=new $u(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,sc.funcKeywordCode)(i,r):"macro"in r?(0,sc.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,sc.funcKeywordCode)(i,r)}var fD=/^\/(?:[^~]|~0|~1)*$/,dD=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function gO(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return X.default.rootData;if(e[0]==="/"){if(!fD.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=X.default.rootData}else{let l=dD.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o,a=i.split("/");for(let l of a)l&&(o=(0,V._)`${o}${(0,V.getProperty)((0,Tn.unescapeJsonPointer)(l))}`,s=(0,V._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}});var ey=w(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});var Qh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Zh.default=Qh});var iy=w(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var ty=ic(),ry=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ty.resolveUrl)(t,r,n),this.missingSchema=(0,ty.normalizeId)((0,ty.getFullPath)(t,this.missingRef))}};ny.default=ry});var ac=w(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.SchemaEnv=void 0;li.compileSchema=sy;li.resolveRef=yD;li.getCompilingSchema=wO;li.resolveSchema=Eu;var Lr=ne(),mD=ey(),uo=Sr(),Dr=ic(),bO=pe(),hD=vs(),ws=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Dr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};li.SchemaEnv=ws;function sy(e){let t=wO.call(this,e);if(t)return t;let r=(0,Dr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Lr.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),a;e.$async&&(a=s.scopeValue("Error",{ref:mD.default,code:(0,Lr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:uo.default.data,parentData:uo.default.parentData,parentDataProperty:uo.default.parentDataProperty,dataNames:[uo.default.data],dataPathArr:[Lr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Lr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Lr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Lr._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,hD.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let p=s.toString();u=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(uo.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let d=new Function(`${uo.default.self}`,`${uo.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=l;d.evaluated={props:f instanceof Lr.Name?void 0:f,items:h instanceof Lr.Name?void 0:h,dynamicProps:f instanceof Lr.Name,dynamicItems:h instanceof Lr.Name},d.source&&(d.source.evaluated=(0,Lr.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(e)}}function yD(e,t,r){var n;let i=(0,Dr.resolveUrl)(this.opts.uriResolver,t,r),o=e.refs[i];if(o)return o;let s=vO.call(this,e,i);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[i],{schemaId:c}=this.opts;a&&(s=new ws({schema:a,schemaId:c,root:e,baseId:t}))}if(s===void 0&&this.opts.loadSchemaSync){let a=this.opts.loadSchemaSync(t,r,i);a&&!(this.refs[i]||this.schemas[i])&&(this.addSchema(a,i,void 0),s=vO.call(this,e,i))}if(s!==void 0)return e.refs[i]=gD.call(this,s)}function gD(e){return(0,Dr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:sy.call(this,e)}function wO(e){for(let t of this._compilations)if(bD(t,e))return t}function bD(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function vO(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Eu.call(this,e,t)}function Eu(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Dr._getFullPath)(this.opts.uriResolver,r),i=(0,Dr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return oy.call(this,r,e);let o=(0,Dr.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=Eu.call(this,e,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:oy.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||sy.call(this,s),o===(0,Dr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Dr.resolveUrl)(this.opts.uriResolver,i,l)),new ws({schema:a,schemaId:c,root:e,baseId:i})}return oy.call(this,r,s)}}var vD=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function oy(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,bO.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!vD.has(a)&&l&&(t=(0,Dr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,bO.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Dr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=Eu.call(this,n,a)}let{schemaId:s}=this.opts;if(o=o||new ws({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}});var xO=w((Foe,wD)=>{wD.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Cu=w(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.serialize=void 0;function xD(e){let t=SD(e),r;try{r=new URL(t.startUrl)}catch(i){return i.message&&console.error(i.message+" "+t.startUrl),""}if(e.scheme!==void 0&&!t.temporarySchemeAndHostUsed&&!t.temporarySchemeUsed?r.protocol=e.scheme.toLowerCase():r.protocol="",e.host!==void 0&&!t.temporarySchemeAndHostUsed&&!t.temporaryHostUsed?r.host=e.host:r.host="",e.port&&(r.port=String(e.port)),e.path&&(r.pathname=e.path),e.userinfo){let i=e.userinfo.split(":");i[0]&&(r.username=i[0]),i[1]&&(r.password=i[1])}e.query&&(r.search=e.query),e.fragment&&(r.hash=e.fragment);let n=r.toString();return!e.path&&n.endsWith("/")&&(n=n.slice(0,-1)),t.temporarySchemeAndHostUsed&&(n=n.replace(SO,""),n.startsWith("/")&&(n=n.slice(1))),t.temporaryHostUsed&&(n=n.replace(cy,"")),t.temporarySchemeUsed&&(n=n.replace(ay,"")),n}Au.serialize=xD;var ay="https:",cy="_remove_me_host_",SO=ay+"//"+cy;function SD(e){let t={startUrl:"",temporaryHostUsed:!1,temporarySchemeUsed:!1,temporarySchemeAndHostUsed:!1};return e.scheme&&e.host?(t.startUrl=e.scheme+"://"+e.host,t):e.host?(t.temporarySchemeUsed=!0,t.startUrl=ay+e.host,t):e.scheme?e.path?(t.startUrl=e.scheme+":"+e.path,t):(t.temporaryHostUsed=!0,t.startUrl=e.scheme+":"+cy,t):(t.temporarySchemeAndHostUsed=!0,t.startUrl=SO,t)}});var Tu=w(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.parse=void 0;function _D(e){let t={path:"",fragment:void 0,host:void 0,port:void 0,query:void 0,reference:void 0,scheme:void 0,userinfo:void 0};e.includes("#")&&(t.fragment="");let{parsed:r,addedDefaultScheme:n,addedTemporaryHost:i,error:o}=PD(e);if(o||r===void 0)return t.error=o,t;if(typeof r.protocol!==void 0&&r.protocol!==""&&!n&&(t.scheme=String(r.protocol).replace(":","")),typeof r.username!==void 0&&r.username!==""){let s=r.username;r.password&&(s+=":"+r.password),t.userinfo=s}return typeof r.hostname!==void 0&&r.hostname!==""&&!i&&(t.host=r.hostname,t.host.startsWith("[")&&(t.host=t.host.substring(1),t.host=t.host.slice(0,-1))),typeof r.port!==void 0&&r.port!==""&&(t.port=Number(r.port)),typeof r.pathname!==void 0&&r.pathname!=="/"&&(t.path=r.pathname,i&&t.path.startsWith("/")&&(t.path=t.path.substring(1))),typeof r.search!==void 0&&r.search!==""&&(t.query=r.search.replace("?","")),typeof r.hash!==void 0&&r.hash!==""&&(t.fragment=r.hash.replace("#","")),t.scheme===void 0&&t.userinfo===void 0&&t.host===void 0&&t.port===void 0&&!t.path&&t.query===void 0?t.reference="same-document":t.scheme===void 0?t.reference="relative":t.fragment===void 0?t.reference="absolute":t.reference="uri",t}Ru.parse=_D;var OD="_remove_me_host/";function PD(e){let t={parsed:void 0,addedDefaultScheme:!1,addedTemporaryHost:!1,error:void 0},r;try{return t.parsed=new URL(e),t}catch(n){r=n}if(e.startsWith("//"))try{return t.parsed=new URL("https:"+e),t.addedDefaultScheme=!0,t}catch{return t.error=r.message,t}try{return t.parsed=new URL("https://"+OD+e),t.addedDefaultScheme=!0,t.addedTemporaryHost=!0,t}catch{}return t.error=r.message,t}});var OO=w(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.resolveComponents=xs.resolve=void 0;var ku=Tu(),ly=Cu();function $D(e,t,r){let n=Object.assign({scheme:"null"},r),i=_O((0,ku.parse)(e),(0,ku.parse)(t),n,!0);return(0,ly.serialize)(i)}xs.resolve=$D;function _O(e,t,r,n){let i={};return n||(e=(0,ku.parse)((0,ly.serialize)(e)),t=(0,ku.parse)((0,ly.serialize)(t))),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Nu(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Nu(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Nu(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=Nu(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}xs.resolveComponents=_O;function Nu(e){let t=/^\.\.?\//u,r=/^\/\.(?:\/|$)/u,n=/^\/\.\.(?:\/|$)/u,i=/^\/?(?:.|\n)*?(?=\/|$)/u,o=[];for(;e.length;)if(e.match(t))e=e.replace(t,"");else if(e.match(r))e=e.replace(r,"/");else if(e.match(n))e=e.replace(n,"/"),o.pop();else if(e==="."||e==="..")e="";else{let s=e.match(i);if(s){let a=s[0];e=e.slice(a.length),o.push(a)}else throw new Error("Unexpected dot segment condition")}return o.join("")}});var PO=w(lr=>{"use strict";var ED=lr&&lr.__createBinding||(Object.create?(function(e,t,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(t,r);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,i)}):(function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]})),uy=lr&&lr.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&ED(t,e,r)};Object.defineProperty(lr,"__esModule",{value:!0});lr.normalize=lr.equal=void 0;var Ss=Cu(),Iu=Tu();uy(OO(),lr);uy(Cu(),lr);uy(Tu(),lr);function AD(e,t){let r,n;return typeof e=="string"?r=(0,Ss.serialize)((0,Iu.parse)(e)):r=(0,Ss.serialize)(e),typeof t=="string"?n=(0,Ss.serialize)((0,Iu.parse)(t)):n=(0,Ss.serialize)(t),r.toLowerCase()===n.toLowerCase()}lr.equal=AD;function CD(e){return typeof e=="string"?(0,Ss.serialize)((0,Iu.parse)(e)):(0,Iu.parse)((0,Ss.serialize)(e))}lr.normalize=CD});var EO=w(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var $O=PO();$O.code='require("ajv/dist/runtime/uri").default';py.default=$O});var my=w(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.CodeGen=vt.Name=vt.nil=vt.stringify=vt.str=vt._=vt.KeywordCxt=void 0;var RD=vs();Object.defineProperty(vt,"KeywordCxt",{enumerable:!0,get:function(){return RD.KeywordCxt}});var _s=ne();Object.defineProperty(vt,"_",{enumerable:!0,get:function(){return _s._}});Object.defineProperty(vt,"str",{enumerable:!0,get:function(){return _s.str}});Object.defineProperty(vt,"stringify",{enumerable:!0,get:function(){return _s.stringify}});Object.defineProperty(vt,"nil",{enumerable:!0,get:function(){return _s.nil}});Object.defineProperty(vt,"Name",{enumerable:!0,get:function(){return _s.Name}});Object.defineProperty(vt,"CodeGen",{enumerable:!0,get:function(){return _s.CodeGen}});var TD=ey(),NO=iy(),ND=Lh(),cc=ac(),kD=ne(),lc=ic(),qu=tc(),dy=pe(),AO=xO(),ID=EO(),kO=(e,t)=>new RegExp(e,t);kO.code="new RegExp";var qD=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],jD=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),MD={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},LD={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},CO=200;function DD(e){var t,r,n,i,o,s,a,c,l,u,p,m,d,f,h,y,g,b,v,x,S,C,_,$,E;let q=e.strict,O=(t=e.code)===null||t===void 0?void 0:t.optimize,P=O===!0||O===void 0?1:O||0,N=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:kO,D=(i=e.uriResolver)!==null&&i!==void 0?i:ID.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:q)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:q)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:q)!==null&&u!==void 0?u:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:q)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:q)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:P,regExp:N}:{optimize:P,regExp:N},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:CO,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:CO,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(C=e.validateSchema)!==null&&C!==void 0?C:!0,validateFormats:(_=e.validateFormats)!==null&&_!==void 0?_:!0,unicodeRegExp:($=e.unicodeRegExp)!==null&&$!==void 0?$:!0,int32range:(E=e.int32range)!==null&&E!==void 0?E:!0,uriResolver:D}}var uc=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...DD(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new kD.ValueScope({scope:{},prefixes:jD,es5:r,lines:n}),this.logger=HD(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,ND.getRules)(),RO.call(this,MD,t,"NOT SUPPORTED"),RO.call(this,LD,t,"DEPRECATED","warn"),this._metaOpts=VD.call(this),t.formats&&BD.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&UD.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),FD.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=AO;n==="id"&&(i={...AO},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(u,p){await o.call(this,u.$schema);let m=this._addSchema(u,p);return m.validate||s.call(this,m)}async function o(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof NO.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),s.call(this,u)}}function a({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function c(u){let p=await l.call(this,u);this.refs[u]||await o.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,r)}async function l(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:s}=this.opts;if(o=t[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,lc.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=TO.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new cc.SchemaEnv({schema:{},schemaId:n});if(r=cc.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=TO.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,lc.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(WD.call(this,n,r),!r)return(0,dy.eachItem)(n,o=>fy.call(this,o)),this;GD.call(this,r);let i={...r,type:(0,qu.getJSONTypes)(r.type),schemaType:(0,qu.getJSONTypes)(r.schemaType)};return(0,dy.eachItem)(n,i.type.length===0?o=>fy.call(this,o,i):o=>i.type.forEach(s=>fy.call(this,o,i,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),s=t;for(let a of o)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=s[a];l&&u&&(s[a]=IO(u))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,lc.normalizeId)(s||n);let l=lc.getSchemaRefs.call(this,t,n);return c=new cc.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):cc.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{cc.compileSchema.call(this,t)}finally{this.opts=r}}};uc.ValidationError=TD.default;uc.MissingRefError=NO.default;vt.default=uc;function RO(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function TO(e){return e=(0,lc.normalizeId)(e),this.schemas[e]||this.refs[e]}function FD(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function BD(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function UD(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function VD(){let e={...this.opts};for(let t of qD)delete e[t];return e}var zD={log(){},warn(){},error(){}};function HD(e){if(e===!1)return zD;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var KD=/^[a-z_$][a-z0-9_$:-]*$/i;function WD(e,t){let{RULES:r}=this;if((0,dy.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!KD.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function fy(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=i?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,qu.getJSONTypes)(t.type),schemaType:(0,qu.getJSONTypes)(t.schemaType)}};t.before?YD.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function YD(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function GD(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=IO(t)),e.validateSchema=this.compile(t,!0))}var JD={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function IO(e){return{anyOf:[e,JD]}}});var qO=w(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var XD={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};hy.default=XD});var Lu=w(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.getValidate=LO;pc.callRef=Mu;var QD=iy(),jO=Or(),tt=ne(),Os=Sr(),MO=ac(),ju=pe(),ZD={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return p();let u=MO.resolveRef.call(c,l,i,r);if(u===void 0)throw new QD.default(n.opts.uriResolver,i,r);if(u instanceof MO.SchemaEnv)return m(u);return d(u);function p(){if(o===l)return Mu(e,s,o,o.$async);let f=t.scopeValue("root",{ref:l});return Mu(e,(0,tt._)`${f}.validate`,l,l.$async)}function m(f){let h=LO(e,f);Mu(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,tt.stringify)(f)}:{ref:f}),y=t.name("valid"),g=e.subschema({schema:f,dataTypes:[],schemaPath:tt.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(g),e.ok(y)}}};function LO(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,tt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}function Mu(e,t,r,n){let{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Os.default.this:tt.nil;n?u():p();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{i.code((0,tt._)`await ${(0,jO.callValidateCode)(e,t,l)}`),d(t),s||i.assign(f,!0)},h=>{i.if((0,tt._)`!(${h} instanceof ${o.ValidationError})`,()=>i.throw(h)),m(h),s||i.assign(f,!1)}),e.ok(f)}function p(){let f=i.name("visitedNodes");i.code((0,tt._)`const ${f} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),i.if((0,tt._)`!${f}.has(${e.data})`,()=>{i.code((0,tt._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${f})`),i.code((0,tt._)`const dataNode = ${e.data}`),i.code((0,tt._)`if (typeof dataNode === "object" && dataNode !== null) ${f}.add(dataNode)`);let h=e.result((0,jO.callValidateCode)(e,t,l),()=>d(t),()=>m(t));return i.code((0,tt._)`${f}.delete(dataNode)`),h})}function m(f){let h=(0,tt._)`${f}.errors`;i.assign(Os.default.vErrors,(0,tt._)`${Os.default.vErrors} === null ? ${h} : ${Os.default.vErrors}.concat(${h})`),i.assign(Os.default.errors,(0,tt._)`${Os.default.vErrors}.length`)}function d(f){var h;if(!o.opts.unevaluated)return;let y=(h=r==null?void 0:r.validate)===null||h===void 0?void 0:h.evaluated;if(o.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(o.props=ju.mergeEvaluated.props(i,y.props,o.props));else{let g=i.var("props",(0,tt._)`${f}.evaluated.props`);o.props=ju.mergeEvaluated.props(i,g,o.props,tt.Name)}if(o.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(o.items=ju.mergeEvaluated.items(i,y.items,o.items));else{let g=i.var("items",(0,tt._)`${f}.evaluated.items`);o.items=ju.mergeEvaluated.items(i,g,o.items,tt.Name)}}}pc.default=ZD});var gy=w(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var eF=qO(),tF=Lu(),rF=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",eF.default,tF.default];yy.default=rF});var DO=w(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var Du=ne(),ui=Du.operators,Fu={maximum:{okStr:"<=",ok:ui.LTE,fail:ui.GT},minimum:{okStr:">=",ok:ui.GTE,fail:ui.LT},exclusiveMaximum:{okStr:"<",ok:ui.LT,fail:ui.GTE},exclusiveMinimum:{okStr:">",ok:ui.GT,fail:ui.LTE}},nF={message:({keyword:e,schemaCode:t})=>(0,Du.str)`must be ${Fu[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Du._)`{comparison: ${Fu[e].okStr}, limit: ${t}}`},iF={keyword:Object.keys(Fu),type:"number",schemaType:"number",$data:!0,error:nF,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Du._)`${r} ${Fu[t].fail} ${n} || isNaN(${r})`)}};by.default=iF});var FO=w(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var fc=ne(),oF={message:({schemaCode:e})=>(0,fc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,fc._)`{multipleOf: ${e}}`},sF={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:oF,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,fc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,fc._)`${s} !== parseInt(${s})`;e.fail$data((0,fc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};vy.default=sF});var UO=w(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.default=BO;function BO(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}BO.code='require("ajv/dist/runtime/ucs2length").default'});var VO=w(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var po=ne(),aF=pe(),cF=UO(),lF={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,po.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,po._)`{limit: ${e}}`},uF={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:lF,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?po.operators.GT:po.operators.LT,s=i.opts.unicode===!1?(0,po._)`${r}.length`:(0,po._)`${(0,aF.useFunc)(e.gen,cF.default)}(${r})`;e.fail$data((0,po._)`${s} ${o} ${n}`)}};xy.default=uF});var zO=w(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var pF=Or(),Bu=ne(),fF={message:({schemaCode:e})=>(0,Bu.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Bu._)`{pattern: ${e}}`},dF={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:fF,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,Bu._)`(new RegExp(${i}, ${s}))`:(0,pF.usePattern)(e,n);e.fail$data((0,Bu._)`!${a}.test(${t})`)}};Sy.default=dF});var HO=w(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var dc=ne(),mF={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,dc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,dc._)`{limit: ${e}}`},hF={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:mF,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?dc.operators.GT:dc.operators.LT;e.fail$data((0,dc._)`Object.keys(${r}).length ${i} ${n}`)}};_y.default=hF});var KO=w(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var mc=Or(),hc=ne(),yF=pe(),gF={message:({params:{missingProperty:e}})=>(0,hc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,hc._)`{missingProperty: ${e}}`},bF={keyword:"required",type:"object",schemaType:"array",$data:!0,error:gF,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if((d==null?void 0:d[h])===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,yF.checkStrictMode)(s,g,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(hc.nil,p);else for(let d of r)(0,mc.checkReportMissingProp)(e,d)}function u(){let d=t.let("missing");if(c||o){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,mc.checkMissingProp)(e,r,d)),(0,mc.reportMissingProp)(e,d),t.else()}function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,mc.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,mc.propertyInData)(t,i,d,a.ownProperties)),t.if((0,hc.not)(f),()=>{e.error(),t.break()})},hc.nil)}}};Oy.default=bF});var WO=w(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var yc=ne(),vF={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,yc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,yc._)`{limit: ${e}}`},wF={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:vF,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?yc.operators.GT:yc.operators.LT;e.fail$data((0,yc._)`${r}.length ${i} ${n}`)}};Py.default=wF});var Uu=w($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var YO=nc();YO.code='require("ajv/dist/runtime/equal").default';$y.default=YO});var GO=w(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var Ey=tc(),wt=ne(),xF=pe(),SF=Uu(),_F={message:({params:{i:e,j:t}})=>(0,wt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,wt._)`{i: ${e}, j: ${t}}`},OF={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:_F,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,Ey.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,wt._)`${s} === false`),e.ok(c);function u(){let f=t.let("i",(0,wt._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,wt._)`${f} > 1`,()=>(p()?m:d)(f,h))}function p(){return l.length>0&&!l.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),g=(0,Ey.checkDataTypes)(l,y,a.opts.strictNumbers,Ey.DataType.Wrong),b=t.const("indices",(0,wt._)`{}`);t.for((0,wt._)`;${f}--;`,()=>{t.let(y,(0,wt._)`${r}[${f}]`),t.if(g,(0,wt._)`continue`),l.length>1&&t.if((0,wt._)`typeof ${y} == "string"`,(0,wt._)`${y} += "_"`),t.if((0,wt._)`typeof ${b}[${y}] == "number"`,()=>{t.assign(h,(0,wt._)`${b}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,wt._)`${b}[${y}] = ${f}`)})}function d(f,h){let y=(0,xF.useFunc)(t,SF.default),g=t.name("outer");t.label(g).for((0,wt._)`;${f}--;`,()=>t.for((0,wt._)`${h} = ${f}; ${h}--;`,()=>t.if((0,wt._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};Ay.default=OF});var JO=w(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var Cy=ne(),PF=pe(),$F=Uu(),EF={message:"must be equal to constant",params:({schemaCode:e})=>(0,Cy._)`{allowedValue: ${e}}`},AF={keyword:"const",$data:!0,error:EF,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,Cy._)`!${(0,PF.useFunc)(t,$F.default)}(${r}, ${i})`):e.fail((0,Cy._)`${o} !== ${r}`)}};Ry.default=AF});var XO=w(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var gc=ne(),CF=pe(),RF=Uu(),TF={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,gc._)`{allowedValues: ${e}}`},NF={keyword:"enum",schemaType:"array",$data:!0,error:TF,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,c,l=()=>c!=null?c:c=(0,CF.useFunc)(t,RF.default),u;if(a||n)u=t.let("valid"),e.block$data(u,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);u=(0,gc.or)(...i.map((f,h)=>m(d,h)))}e.pass(u);function p(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,gc._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function m(d,f){let h=i[f];return typeof h=="object"&&h!==null?(0,gc._)`${l()}(${r}, ${d}[${f}])`:(0,gc._)`${r} === ${h}`}}};Ty.default=NF});var ky=w(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var kF=DO(),IF=FO(),qF=VO(),jF=zO(),MF=HO(),LF=KO(),DF=WO(),FF=GO(),BF=JO(),UF=XO(),VF=[kF.default,IF.default,qF.default,jF.default,MF.default,LF.default,DF.default,FF.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},BF.default,UF.default];Ny.default=VF});var qy=w(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.validateAdditionalItems=QO;var fo=ne(),Iy=pe(),zF={message:({params:{len:e}})=>(0,fo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,fo._)`{limit: ${e}}`},HF={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:zF,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,Iy.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}QO(e,n)}};function QO(e,t){let{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;let a=r.const("len",(0,fo._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,fo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,Iy.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,fo._)`${a} <= ${t.length}`);r.if((0,fo.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:Iy.Type.Num},l),s.allErrors||r.if((0,fo.not)(l),()=>r.break())})}}Vu.default=HF});var jy=w(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.validateTuple=eP;var ZO=ne(),zu=pe(),KF=Or(),WF={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return eP(e,"additionalItems",t);r.items=!0,!(0,zu.alwaysValidSchema)(r,t)&&e.ok((0,KF.validateArray)(e))}};function eP(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=zu.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,ZO._)`${o}.length`);r.forEach((p,m)=>{(0,zu.alwaysValidSchema)(a,p)||(n.if((0,ZO._)`${l} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function u(p){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===p.minItems&&(f===p.maxItems||p[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,zu.checkStrictMode)(a,y,m.strictTuples)}}}Hu.default=WF});var tP=w(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var YF=jy(),GF={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,YF.validateTuple)(e,"items")};My.default=GF});var nP=w(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var rP=ne(),JF=pe(),XF=Or(),QF=qy(),ZF={message:({params:{len:e}})=>(0,rP.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,rP._)`{limit: ${e}}`},eB={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:ZF,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,JF.alwaysValidSchema)(n,t)&&(i?(0,QF.validateAdditionalItems)(e,i):e.ok((0,XF.validateArray)(e)))}};Ly.default=eB});var iP=w(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var Pr=ne(),Ku=pe(),tB={message:({params:{min:e,max:t}})=>t===void 0?(0,Pr.str)`must contain at least ${e} valid item(s)`:(0,Pr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Pr._)`{minContains: ${e}}`:(0,Pr._)`{minContains: ${e}, maxContains: ${t}}`},rB={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:tB,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,s,a,{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let u=t.const("len",(0,Pr._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Ku.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Ku.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Ku.alwaysValidSchema)(o,r)){let h=(0,Pr._)`${u} >= ${s}`;a!==void 0&&(h=(0,Pr._)`${h} && ${u} <= ${a}`),e.pass(h);return}o.items=!0;let p=t.name("valid");a===void 0&&s===1?d(p,()=>t.if(p,()=>t.break())):s===0?(t.let(p,!0),a!==void 0&&t.if((0,Pr._)`${i}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Ku.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,Pr._)`${h}++`),a===void 0?t.if((0,Pr._)`${h} >= ${s}`,()=>t.assign(p,!0).break()):(t.if((0,Pr._)`${h} > ${a}`,()=>t.assign(p,!1).break()),s===1?t.assign(p,!0):t.if((0,Pr._)`${h} >= ${s}`,()=>t.assign(p,!0)))}}};Dy.default=rB});var Wu=w(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.error=void 0;pi.validatePropertyDeps=oP;pi.validateSchemaDeps=sP;var Fy=ne(),nB=pe(),bc=Or();pi.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Fy.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Fy._)`{property: ${e},
|
|
6
6
|
missingProperty: ${n},
|
|
7
7
|
depsCount: ${t},
|
|
8
|
-
deps: ${r}}`};var iB={keyword:"dependencies",type:"object",schemaType:"object",error:pi.error,code(e){let[t,r]=oB(e);oP(e,t),sP(e,r)}};function oB({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function oP(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,bc.propertyInData)(r,n,s,i.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,bc.checkReportMissingProp)(e,l)}):(r.if((0,Fy._)`${c} && (${(0,bc.checkMissingProp)(e,a,o)})`),(0,bc.reportMissingProp)(e,o),r.else())}}function sP(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,s=r.name("valid");for(let a in t)(0,nB.alwaysValidSchema)(o,t[a])||(r.if((0,bc.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}pi.default=iB});var cP=w(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var aP=ne(),sB=pe(),aB={message:"property name must be valid",params:({params:e})=>(0,aP._)`{propertyName: ${e.propertyName}}`},cB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:aB,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,sB.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,aP.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};By.default=cB});var Vy=w(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var Yu=Or(),Fr=ne(),lB=Sr(),Gu=pe(),uB={message:"must NOT have additional properties",params:({params:e})=>(0,Fr._)`{additionalProperty: ${e.additionalProperty}}`},pB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:uB,code(e){let{gen:t,parentSchema:r,data:n,errsCount:i,it:o}=e,{schema:s=o.opts.defaultAdditionalProperties}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,Gu.alwaysValidSchema)(o,s))return;let l=(0,Yu.allSchemaProperties)(r.properties),u=(0,Yu.allSchemaProperties)(r.patternProperties);p(),e.ok((0,Fr._)`${i} === ${lB.default.errors}`);function p(){t.forIn("key",n,y=>{!l.length&&!u.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let g;if(l.length>8){let b=(0,Gu.schemaRefOrVal)(o,r.properties,"properties");g=(0,Yu.isOwnProperty)(t,b,y)}else l.length?g=(0,Fr.or)(...l.map(b=>(0,Fr._)`${y} === ${b}`)):g=Fr.nil;return u.length&&(g=(0,Fr.or)(g,...u.map(b=>(0,Fr._)`${(0,Yu.usePattern)(e,b)}.test(${y})`))),(0,Fr.not)(g)}function d(y){t.code((0,Fr._)`delete ${n}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){d(y);return}if(s===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,Gu.alwaysValidSchema)(o,s)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,Fr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,Fr.not)(g),()=>t.break()))}}function h(y,g,b){let v={keyword:"additionalProperties",dataProp:y,dataPropType:Gu.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,g)}}};Uy.default=pB});var pP=w(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var fB=vs(),lP=Or(),zy=pe(),uP=Vy(),dB={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;(o.opts.removeAdditional==="all"&&n.additionalProperties===void 0||o.opts.defaultAdditionalProperties===!1)&&uP.default.code(new fB.KeywordCxt(o,uP.default,"additionalProperties"));let s=(0,lP.allSchemaProperties)(r);for(let p of s)o.definedProperties.add(p);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=zy.mergeEvaluated.props(t,(0,zy.toHash)(s),o.props));let a=s.filter(p=>!(0,zy.alwaysValidSchema)(o,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,lP.propertyInData)(t,i,p,o.opts.ownProperties)),u(p),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};Hy.default=dB});var hP=w(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});var fP=Or(),Ju=ne(),dP=pe(),mP=pe(),mB={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,fP.allSchemaProperties)(r),c=a.filter(h=>(0,dP.alwaysValidSchema)(o,r[h]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof Ju.Name)&&(o.props=(0,mP.evaluatedPropsToName)(t,o.props));let{props:p}=o;m();function m(){for(let h of a)l&&d(h),o.allErrors?f(h):(t.var(u,!0),f(h),t.if(u))}function d(h){for(let y in l)new RegExp(h).test(y)&&(0,dP.checkStrictMode)(o,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,Ju._)`${(0,fP.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:mP.Type.Str},u),o.opts.unevaluated&&p!==!0?t.assign((0,Ju._)`${p}[${y}]`,!0):!g&&!o.allErrors&&t.if((0,Ju.not)(u),()=>t.break())})})}}};Ky.default=mB});var yP=w(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var hB=pe(),yB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,hB.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Wy.default=yB});var gP=w(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var gB=Or(),bB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:gB.validateUnion,error:{message:"must match a schema in anyOf"}};Yy.default=bB});var bP=w(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var Xu=ne(),vB=pe(),wB={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Xu._)`{passingSchemas: ${e.passing}}`},xB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:wB,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,p)=>{let m;(0,vB.alwaysValidSchema)(i,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,Xu._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Xu._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,p),m&&e.mergeEvaluated(m,Xu.Name)})})}}};Gy.default=xB});var vP=w(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var SB=pe(),_B={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,s)=>{if((0,SB.alwaysValidSchema)(n,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},i,!0);e.ok(i),e.mergeEvaluated(a)})}};Jy.default=_B});var SP=w(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var Qu=ne(),xP=pe(),OB={message:({params:e})=>(0,Qu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Qu._)`{failingKeyword: ${e.ifClause}}`},PB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:OB,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,xP.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=wP(n,"then"),o=wP(n,"else");if(!i&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,Qu.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(m,s),p?t.assign(p,(0,Qu._)`${u}`):e.setParams({ifClause:u})}}}};function wP(e,t){let r=e.schema[t];return r!==void 0&&!(0,xP.alwaysValidSchema)(e,r)}Xy.default=PB});var _P=w(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});var $B=pe(),EB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,$B.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Qy.default=EB});var eg=w(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});Zy.default=zB;var AB=qy(),CB=tP(),RB=jy(),TB=nP(),NB=iP(),kB=Wu(),IB=cP(),qB=Vy(),jB=pP(),MB=hP(),LB=yP(),DB=gP(),FB=bP(),BB=vP(),UB=SP(),VB=_P();function zB(e=!1){let t=[LB.default,DB.default,FB.default,BB.default,UB.default,VB.default,IB.default,qB.default,kB.default,jB.default,MB.default];return e?t.push(CB.default,TB.default):t.push(AB.default,RB.default),t.push(NB.default),t}});var rg=w(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.dynamicAnchor=PP;var tg=ne(),HB=Sr(),OP=ac(),KB=Lu(),WB={keyword:"$dynamicAnchor",schemaType:"string",code:e=>PP(e,e.schema)};function PP(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,tg._)`${HB.default.dynamicAnchors}${(0,tg.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:YB(e);r.if((0,tg._)`!${i}`,()=>r.assign(i,o))}function YB(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:s,meta:a}=t.root,{schemaId:c}=n.opts,l=new OP.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:s,meta:a});return OP.compileSchema.call(n,l),(0,KB.getValidate)(e,l)}Zu.default=WB});var ng=w(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.dynamicRef=AP;var $P=ne(),GB=Sr(),EP=Lu(),JB={keyword:"$dynamicRef",schemaType:"string",code:e=>AP(e,e.schema)};function AP(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)s();else{let c=r.let("valid",!1);s(c),e.ok(c)}function s(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,$P._)`${GB.default.dynamicAnchors}${(0,$P.getProperty)(o)}`);r.if(l,a(l,c),a(i.validateName,c))}else a(i.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,EP.callRef)(e,c),r.let(l,!0)}):()=>(0,EP.callRef)(e,c)}}ep.default=JB});var CP=w(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var XB=rg(),QB=pe(),ZB={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,XB.dynamicAnchor)(e,""):(0,QB.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};ig.default=ZB});var RP=w(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var eU=ng(),tU={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,eU.dynamicRef)(e,e.schema)};og.default=tU});var ag=w(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var rU=rg(),nU=ng(),iU=CP(),oU=RP(),sU=[rU.default,nU.default,iU.default,oU.default];sg.default=sU});var NP=w(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});var TP=Wu(),aU={keyword:"dependentRequired",type:"object",schemaType:"object",error:TP.error,code:e=>(0,TP.validatePropertyDeps)(e)};cg.default=aU});var kP=w(lg=>{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});var cU=Wu(),lU={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,cU.validateSchemaDeps)(e)};lg.default=lU});var IP=w(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var uU=pe(),pU={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,uU.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};ug.default=pU});var fg=w(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});var fU=NP(),dU=kP(),mU=IP(),hU=[fU.default,dU.default,mU.default];pg.default=hU});var MP=w(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});var Nn=ne(),qP=pe(),jP=Sr(),yU={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Nn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},gU={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yU,code(e){let{gen:t,schema:r=e.it.opts.defaultUnevaluatedProperties,data:n,errsCount:i,it:o}=e,s=e.schema===void 0&&e.it.opts.defaultUnevaluatedProperties===!1;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;if(c instanceof Nn.Name)t.if((0,Nn._)`${c} !== true`,()=>t.forIn("key",n,m=>t.if(u(c,m),()=>l(m))));else if(c!==!0){let m=()=>t.forIn("key",n,d=>c===void 0?l(d):t.if(p(c,d),()=>l(d)));s&&o.errorPath.emptyStr()?t.if((0,Nn._)`${jP.default.isAllOfVariant} === 0`,m):m()}s||(o.props=!0),e.ok((0,Nn._)`${i} === ${jP.default.errors}`);function l(m){if(r===!1){e.setParams({unevaluatedProperty:m}),e.error(),a||t.break();return}if(!(0,qP.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:m,dataPropType:qP.Type.Str},d),a||t.if((0,Nn.not)(d),()=>t.break())}}function u(m,d){return(0,Nn._)`!${m} || !${m}[${d}]`}function p(m,d){let f=[];for(let h in m)m[h]===!0&&f.push((0,Nn._)`${d} !== ${h}`);return(0,Nn.and)(...f)}}};dg.default=gU});var DP=w(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});var mo=ne(),LP=pe(),bU={message:({params:{len:e}})=>(0,mo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mo._)`{limit: ${e}}`},vU={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:bU,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let s=t.const("len",(0,mo._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,mo._)`${s} > ${o}`);else if(typeof r=="object"&&!(0,LP.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,mo._)`${s} <= ${o}`);t.if((0,mo.not)(c),()=>a(c,o)),e.ok(c)}i.items=!0;function a(c,l){t.forRange("i",l,s,u=>{e.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:LP.Type.Num},c),i.allErrors||t.if((0,mo.not)(c),()=>t.break())})}}};mg.default=vU});var yg=w(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});var wU=MP(),xU=DP(),SU=[wU.default,xU.default];hg.default=SU});var FP=w(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});var Ge=ne(),_U={message:({schemaCode:e})=>(0,Ge.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ge._)`{format: ${e}}`},OU={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:_U,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;i?m():d();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),h=r.const("fDef",(0,Ge._)`${f}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Ge._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Ge._)`${h}.type || "string"`).assign(g,(0,Ge._)`${h}.validate`),()=>r.assign(y,(0,Ge._)`"string"`).assign(g,h)),e.fail$data((0,Ge.or)(b(),v()));function b(){return c.strictSchema===!1?Ge.nil:(0,Ge._)`${s} && !${g}`}function v(){let x=u.$async?(0,Ge._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Ge._)`${g}(${n})`,S=(0,Ge._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,Ge._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function d(){let f=p.formats[o];if(!f){b();return}if(f===!0)return;let[h,y,g]=v(f);h===t&&e.pass(x());function b(){if(c.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function v(S){let C=S instanceof RegExp?(0,Ge.regexpCode)(S):c.code.formats?(0,Ge._)`${c.code.formats}${(0,Ge.getProperty)(o)}`:void 0,_=r.scopeValue("formats",{key:o,ref:S,code:C});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Ge._)`${_}.validate`]:["string",S,_]}function x(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ge._)`await ${g}(${n})`}return typeof y=="function"?(0,Ge._)`${g}(${n})`:(0,Ge._)`${g}.test(${n})`}}}};gg.default=OU});var vg=w(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});var PU=FP(),$U=[PU.default];bg.default=$U});var wg=w(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.contentVocabulary=Ps.metadataVocabulary=void 0;Ps.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ps.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var UP=w(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});var EU=gy(),AU=ky(),CU=eg(),RU=ag(),TU=fg(),NU=yg(),kU=vg(),BP=wg(),IU=[RU.default,EU.default,AU.default,(0,CU.default)(!0),kU.default,BP.metadataVocabulary,BP.contentVocabulary,TU.default,NU.default];xg.default=IU});var zP=w(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.DiscrError=void 0;var VP;(function(e){e.Tag="tag",e.Mapping="mapping"})(VP||(tp.DiscrError=VP={}))});var Og=w(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});var $s=ne(),Sg=zP(),HP=ac(),qU=pe(),jU={message:({params:{discrError:e,tagName:t}})=>e===Sg.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf or anyOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,$s._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function MU(e,t){var r;if(!(!e.allOf||!Array.isArray(e.allOf))){for(let n of e.allOf)if(!((r=n==null?void 0:n.properties)===null||r===void 0)&&r[t])return n.properties[t]}}var LU={keyword:"discriminator",type:"object",schemaType:"object",error:jU,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,s=i.oneOf?"oneOf":i.anyOf?"anyOf":void 0;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(!s)throw new Error("discriminator: requires oneOf or anyOf composite keyword");let c=i[s],l=t.let("valid",!1),u=t.const("tag",(0,$s._)`${r}${(0,$s.getProperty)(a)}`);t.if((0,$s._)`typeof ${u} == "string"`,()=>p(),()=>e.error(!1,{discrError:Sg.DiscrError.Tag,tag:u,tagName:a})),e.ok(l);function p(){let f=d();t.if(!1);for(let h in f)t.elseIf((0,$s._)`${u} === ${h}`),t.assign(l,m(f[h]));t.else(),e.error(!1,{discrError:Sg.DiscrError.Mapping,tag:u,tagName:a}),t.endIf()}function m(f){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:f},h);return e.mergeEvaluated(y,$s.Name),h}function d(){var f;let h={},y=b(i),g=!0;for(let S=0;S<c.length;S++){let C=c[S],_=C==null?void 0:C.$ref;if(_&&n.mapping){let{mapping:E}=n,q=Object.keys(E).filter(O=>E[O]===C.$ref);if(q.length){for(let O of q)x(O,S);continue}}_&&!(0,qU.schemaHasRulesButRef)(C,o.self.RULES)&&(C=HP.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,_),C instanceof HP.SchemaEnv&&(C=C.schema));let $=(f=C==null?void 0:C.properties)===null||f===void 0?void 0:f[a];if(!$&&(C!=null&&C.allOf)&&($=MU(C,a)),typeof $!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);g=g&&(y||b(C)),v($,S)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return h;function b(S){if(Array.isArray(S.required)&&S.required.includes(a))return!0;if(S.allOf&&Array.isArray(S.allOf))for(let C of S.allOf){let _=C;if(Array.isArray(_.required)&&_.required.includes(a))return!0}return!1}function v(S,C){if(S.const)x(S.const,C);else if(S.enum)for(let _ of S.enum)x(_,C);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function x(S,C){if(typeof S!="string"||S in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[S]=C}}}};_g.default=LU});var KP=w((zse,DU)=>{DU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var WP=w((Hse,FU)=>{FU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var YP=w((Kse,BU)=>{BU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var GP=w((Wse,UU)=>{UU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var JP=w((Yse,VU)=>{VU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var XP=w((Gse,zU)=>{zU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var QP=w((Jse,HU)=>{HU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var ZP=w((Xse,KU)=>{KU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var e$=w(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.default=rV;var WU=KP(),YU=WP(),GU=YP(),JU=GP(),XU=JP(),QU=XP(),ZU=QP(),eV=ZP(),tV=["/properties"];function rV(e){return[WU,YU,GU,JU,XU,t(this,QU),ZU,t(this,eV)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,tV):n}}});var Eg=w((st,t$)=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.CodeGen=st.Name=st.nil=st.stringify=st.str=st._=st.KeywordCxt=void 0;var nV=my(),iV=UP(),oV=Og(),sV=e$(),$g="https://json-schema.org/draft/2020-12/schema",rp=class extends nV.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),iV.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(oV.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(sV.default.call(this,t),this.refs["http://json-schema.org/schema"]=$g)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($g)?$g:void 0)}};t$.exports=st=rp;Object.defineProperty(st,"__esModule",{value:!0});st.default=rp;var aV=vs();Object.defineProperty(st,"KeywordCxt",{enumerable:!0,get:function(){return aV.KeywordCxt}});var Es=ne();Object.defineProperty(st,"_",{enumerable:!0,get:function(){return Es._}});Object.defineProperty(st,"str",{enumerable:!0,get:function(){return Es.str}});Object.defineProperty(st,"stringify",{enumerable:!0,get:function(){return Es.stringify}});Object.defineProperty(st,"nil",{enumerable:!0,get:function(){return Es.nil}});Object.defineProperty(st,"Name",{enumerable:!0,get:function(){return Es.Name}});Object.defineProperty(st,"CodeGen",{enumerable:!0,get:function(){return Es.CodeGen}})});var b$=w((wae,g$)=>{"use strict";g$.exports=function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var a=0,c,l,u,p,m,d,f,h,y,g,b,v,x=[];for(c=0;c<i;c++)x.push(c+1),x.push(t.charCodeAt(s+c));for(var S=x.length-1;a<o-3;)for(y=r.charCodeAt(s+(l=a)),g=r.charCodeAt(s+(u=a+1)),b=r.charCodeAt(s+(p=a+2)),v=r.charCodeAt(s+(m=a+3)),d=a+=4,c=0;c<S;c+=2)f=x[c],h=x[c+1],l=e(f,l,u,y,h),u=e(l,u,p,g,h),p=e(u,p,m,b,h),d=e(p,m,d,v,h),x[c]=d,m=p,p=u,u=l,l=f;for(;a<o;)for(y=r.charCodeAt(s+(l=a)),d=++a,c=0;c<S;c+=2)f=x[c],x[c]=d=e(f,l,d,y,x[c+1]),l=f;return d}}()});var O$=w(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.formatNames=on.fastFormats=on.fullFormats=void 0;function Cs(e,t){return{validate:e,compare:t}}on.fullFormats={date:Cs(x$,kg),time:Cs(S$,Ig),"date-time":Cs(UV,_$),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:HV,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:QV,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:KV,int32:{type:"number",validate:GV},int64:{type:"number",validate:JV},float:{type:"number",validate:w$},double:{type:"number",validate:w$},password:!0,binary:!0};on.fastFormats={...on.fullFormats,date:Cs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,kg),time:Cs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Ig),"date-time":Cs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_$),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};on.formatNames=Object.keys(on.fullFormats);function DV(e){return e%4===0&&(e%100!==0||e%400===0)}var FV=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,BV=[0,31,28,31,30,31,30,31,31,30,31,30,31];function x$(e){let t=FV.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&DV(r)?29:BV[n])}function kg(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Tg=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function S$(e,t){let r=Tg.exec(e);if(!r)return!1;let n=+r[1],i=+r[2],o=+r[3],s=r[5];return(n<=23&&i<=59&&o<=59||n===23&&i===59&&o===60)&&(!t||s!=="")}function Ig(e,t){if(!(e&&t))return;let r=Tg.exec(e),n=Tg.exec(t);if(r&&n)return e=r[1]+r[2]+r[3]+(r[4]||""),t=n[1]+n[2]+n[3]+(n[4]||""),e>t?1:e<t?-1:0}var Ng=/t|\s/i;function UV(e){let t=e.split(Ng);return t.length===2&&x$(t[0])&&S$(t[1],!0)}function _$(e,t){if(!(e&&t))return;let[r,n]=e.split(Ng),[i,o]=t.split(Ng),s=kg(r,i);if(s!==void 0)return s||Ig(n,o)}var VV=/\/|:/,zV=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function HV(e){return VV.test(e)&&zV.test(e)}var v$=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function KV(e){return v$.lastIndex=0,v$.test(e)}var WV=-(2**31),YV=2**31-1;function GV(e){return Number.isInteger(e)&&e<=YV&&e>=WV}function JV(e){return Number.isInteger(e)}function w$(){return!0}var XV=/[^\\]\\Z/;function QV(e){if(XV.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Oc=w(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.regexpCode=xe.getEsmExportName=xe.getProperty=xe.safeStringify=xe.stringify=xe.strConcat=xe.addCodeArg=xe.str=xe._=xe.nil=xe._Code=xe.Name=xe.IDENTIFIER=xe._CodeOrName=void 0;var Sc=class{};xe._CodeOrName=Sc;xe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var go=class extends Sc{constructor(t){if(super(),!xe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};xe.Name=go;var $r=class extends Sc{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof go&&(r[n.str]=(r[n.str]||0)+1),r),{})}};xe._Code=$r;xe.nil=new $r("");function P$(e,...t){let r=[e[0]],n=0;for(;n<t.length;)jg(r,t[n]),r.push(e[++n]);return new $r(r)}xe._=P$;var qg=new $r("+");function $$(e,...t){let r=[_c(e[0])],n=0;for(;n<t.length;)r.push(qg),jg(r,t[n]),r.push(qg,_c(e[++n]));return ZV(r),new $r(r)}xe.str=$$;function jg(e,t){t instanceof $r?e.push(...t._items):t instanceof go?e.push(t):e.push(rz(t))}xe.addCodeArg=jg;function ZV(e){let t=1;for(;t<e.length-1;){if(e[t]===qg){let r=ez(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function ez(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof go||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof go))return`"${e}${t.slice(1)}`}function tz(e,t){return t.emptyStr()?e:e.emptyStr()?t:$$`${e}${t}`}xe.strConcat=tz;function rz(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:_c(Array.isArray(e)?e.join(","):e)}function nz(e){return new $r(_c(e))}xe.stringify=nz;function _c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}xe.safeStringify=_c;function iz(e){return typeof e=="string"&&xe.IDENTIFIER.test(e)?new $r(`.${e}`):P$`[${e}]`}xe.getProperty=iz;function oz(e){if(typeof e=="string"&&xe.IDENTIFIER.test(e))return new $r(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}xe.getEsmExportName=oz;function sz(e){return new $r(e.toString())}xe.regexpCode=sz});var Dg=w(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ValueScope=nr.ValueScopeName=nr.Scope=nr.varKinds=nr.UsedValueState=void 0;var rr=Oc(),Mg=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},cp;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(cp||(nr.UsedValueState=cp={}));nr.varKinds={const:new rr.Name("const"),let:new rr.Name("let"),var:new rr.Name("var")};var lp=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof rr.Name?t:this.name(t)}name(t){return new rr.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};nr.Scope=lp;var up=class extends rr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,rr._)`.${new rr.Name(r)}[${n}]`}};nr.ValueScopeName=up;var az=(0,rr._)`\n`,Lg=class extends lp{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?az:rr.nil}}get(){return this._scope}name(t){return new up(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,rr._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=rr.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,cp.Started);let u=r(l);if(u){let p=this.opts.es5?nr.varKinds.var:nr.varKinds.const;o=(0,rr._)`${o}${p} ${l} = ${u};${this.opts._n}`}else if(u=i==null?void 0:i(l))o=(0,rr._)`${o}${u}${this.opts._n}`;else throw new Mg(l);c.set(l,cp.Completed)})}return o}};nr.ValueScope=Lg});var ae=w(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.or=ce.and=ce.not=ce.CodeGen=ce.operators=ce.varKinds=ce.ValueScopeName=ce.ValueScope=ce.Scope=ce.Name=ce.regexpCode=ce.stringify=ce.getProperty=ce.nil=ce.strConcat=ce.str=ce._=void 0;var me=Oc(),Br=Dg(),mi=Oc();Object.defineProperty(ce,"_",{enumerable:!0,get:function(){return mi._}});Object.defineProperty(ce,"str",{enumerable:!0,get:function(){return mi.str}});Object.defineProperty(ce,"strConcat",{enumerable:!0,get:function(){return mi.strConcat}});Object.defineProperty(ce,"nil",{enumerable:!0,get:function(){return mi.nil}});Object.defineProperty(ce,"getProperty",{enumerable:!0,get:function(){return mi.getProperty}});Object.defineProperty(ce,"stringify",{enumerable:!0,get:function(){return mi.stringify}});Object.defineProperty(ce,"regexpCode",{enumerable:!0,get:function(){return mi.regexpCode}});Object.defineProperty(ce,"Name",{enumerable:!0,get:function(){return mi.Name}});var mp=Dg();Object.defineProperty(ce,"Scope",{enumerable:!0,get:function(){return mp.Scope}});Object.defineProperty(ce,"ValueScope",{enumerable:!0,get:function(){return mp.ValueScope}});Object.defineProperty(ce,"ValueScopeName",{enumerable:!0,get:function(){return mp.ValueScopeName}});Object.defineProperty(ce,"varKinds",{enumerable:!0,get:function(){return mp.varKinds}});ce.operators={GT:new me._Code(">"),GTE:new me._Code(">="),LT:new me._Code("<"),LTE:new me._Code("<="),EQ:new me._Code("==="),NEQ:new me._Code("!=="),NOT:new me._Code("!"),OR:new me._Code("||"),AND:new me._Code("&&"),ADD:new me._Code("+")};var qn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Fg=class extends qn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Br.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Ts(this.rhs,t,r)),this}get names(){return this.rhs instanceof me._CodeOrName?this.rhs.names:{}}},pp=class extends qn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof me.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Ts(this.rhs,t,r),this}get names(){let t=this.lhs instanceof me.Name?{}:{...this.lhs.names};return dp(t,this.rhs)}},Bg=class extends pp{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Ug=class extends qn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Vg=class extends qn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},zg=class extends qn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Hg=class extends qn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Ts(this.code,t,r),this}get names(){return this.code instanceof me._CodeOrName?this.code.names:{}}},Pc=class extends qn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(cz(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>wo(t,r.names),{})}},jn=class extends Pc{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Kg=class extends Pc{},Rs=class extends jn{};Rs.kind="else";var bo=class e extends jn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Rs(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(E$(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Ts(this.condition,t,r),this}get names(){let t=super.names;return dp(t,this.condition),this.else&&wo(t,this.else.names),t}};bo.kind="if";var vo=class extends jn{};vo.kind="for";var Wg=class extends vo{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Ts(this.iteration,t,r),this}get names(){return wo(super.names,this.iteration.names)}},Yg=class extends vo{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Br.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=dp(super.names,this.from);return dp(t,this.to)}},fp=class extends vo{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Ts(this.iterable,t,r),this}get names(){return wo(super.names,this.iterable.names)}},$c=class extends jn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};$c.kind="func";var Ec=class extends Pc{render(t){return"return "+super.render(t)}};Ec.kind="return";var Gg=class extends jn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&wo(t,this.catch.names),this.finally&&wo(t,this.finally.names),t}},Ac=class extends jn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ac.kind="catch";var Cc=class extends jn{render(t){return"finally"+super.render(t)}};Cc.kind="finally";var Jg=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
8
|
+
deps: ${r}}`};var iB={keyword:"dependencies",type:"object",schemaType:"object",error:pi.error,code(e){let[t,r]=oB(e);oP(e,t),sP(e,r)}};function oB({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function oP(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,bc.propertyInData)(r,n,s,i.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,bc.checkReportMissingProp)(e,l)}):(r.if((0,Fy._)`${c} && (${(0,bc.checkMissingProp)(e,a,o)})`),(0,bc.reportMissingProp)(e,o),r.else())}}function sP(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,s=r.name("valid");for(let a in t)(0,nB.alwaysValidSchema)(o,t[a])||(r.if((0,bc.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}pi.default=iB});var cP=w(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var aP=ne(),sB=pe(),aB={message:"property name must be valid",params:({params:e})=>(0,aP._)`{propertyName: ${e.propertyName}}`},cB={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:aB,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,sB.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,aP.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};By.default=cB});var Vy=w(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var Yu=Or(),Fr=ne(),lB=Sr(),Gu=pe(),uB={message:"must NOT have additional properties",params:({params:e})=>(0,Fr._)`{additionalProperty: ${e.additionalProperty}}`},pB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:uB,code(e){let{gen:t,parentSchema:r,data:n,errsCount:i,it:o}=e,{schema:s=o.opts.defaultAdditionalProperties}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=o;if(o.props=!0,c.removeAdditional!=="all"&&(0,Gu.alwaysValidSchema)(o,s))return;let l=(0,Yu.allSchemaProperties)(r.properties),u=(0,Yu.allSchemaProperties)(r.patternProperties);p(),e.ok((0,Fr._)`${i} === ${lB.default.errors}`);function p(){t.forIn("key",n,y=>{!l.length&&!u.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let g;if(l.length>8){let b=(0,Gu.schemaRefOrVal)(o,r.properties,"properties");g=(0,Yu.isOwnProperty)(t,b,y)}else l.length?g=(0,Fr.or)(...l.map(b=>(0,Fr._)`${y} === ${b}`)):g=Fr.nil;return u.length&&(g=(0,Fr.or)(g,...u.map(b=>(0,Fr._)`${(0,Yu.usePattern)(e,b)}.test(${y})`))),(0,Fr.not)(g)}function d(y){t.code((0,Fr._)`delete ${n}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){d(y);return}if(s===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,Gu.alwaysValidSchema)(o,s)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,Fr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,Fr.not)(g),()=>t.break()))}}function h(y,g,b){let v={keyword:"additionalProperties",dataProp:y,dataPropType:Gu.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,g)}}};Uy.default=pB});var pP=w(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});var fB=vs(),lP=Or(),zy=pe(),uP=Vy(),dB={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;(o.opts.removeAdditional==="all"&&n.additionalProperties===void 0||o.opts.defaultAdditionalProperties===!1)&&uP.default.code(new fB.KeywordCxt(o,uP.default,"additionalProperties"));let s=(0,lP.allSchemaProperties)(r);for(let p of s)o.definedProperties.add(p);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=zy.mergeEvaluated.props(t,(0,zy.toHash)(s),o.props));let a=s.filter(p=>!(0,zy.alwaysValidSchema)(o,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,lP.propertyInData)(t,i,p,o.opts.ownProperties)),u(p),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};Hy.default=dB});var hP=w(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});var fP=Or(),Ju=ne(),dP=pe(),mP=pe(),mB={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,fP.allSchemaProperties)(r),c=a.filter(h=>(0,dP.alwaysValidSchema)(o,r[h]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof Ju.Name)&&(o.props=(0,mP.evaluatedPropsToName)(t,o.props));let{props:p}=o;m();function m(){for(let h of a)l&&d(h),o.allErrors?f(h):(t.var(u,!0),f(h),t.if(u))}function d(h){for(let y in l)new RegExp(h).test(y)&&(0,dP.checkStrictMode)(o,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,Ju._)`${(0,fP.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:mP.Type.Str},u),o.opts.unevaluated&&p!==!0?t.assign((0,Ju._)`${p}[${y}]`,!0):!g&&!o.allErrors&&t.if((0,Ju.not)(u),()=>t.break())})})}}};Ky.default=mB});var yP=w(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var hB=pe(),yB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,hB.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};Wy.default=yB});var gP=w(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var gB=Or(),bB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:gB.validateUnion,error:{message:"must match a schema in anyOf"}};Yy.default=bB});var bP=w(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var Xu=ne(),vB=pe(),wB={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Xu._)`{passingSchemas: ${e.passing}}`},xB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:wB,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,p)=>{let m;(0,vB.alwaysValidSchema)(i,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,Xu._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Xu._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,p),m&&e.mergeEvaluated(m,Xu.Name)})})}}};Gy.default=xB});var vP=w(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var SB=pe(),_B={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,s)=>{if((0,SB.alwaysValidSchema)(n,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},i,!0);e.ok(i),e.mergeEvaluated(a)})}};Jy.default=_B});var SP=w(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var Qu=ne(),xP=pe(),OB={message:({params:e})=>(0,Qu.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Qu._)`{failingKeyword: ${e.ifClause}}`},PB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:OB,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,xP.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=wP(n,"then"),o=wP(n,"else");if(!i&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,Qu.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(m,s),p?t.assign(p,(0,Qu._)`${u}`):e.setParams({ifClause:u})}}}};function wP(e,t){let r=e.schema[t];return r!==void 0&&!(0,xP.alwaysValidSchema)(e,r)}Xy.default=PB});var _P=w(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});var $B=pe(),EB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,$B.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Qy.default=EB});var eg=w(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});Zy.default=zB;var AB=qy(),CB=tP(),RB=jy(),TB=nP(),NB=iP(),kB=Wu(),IB=cP(),qB=Vy(),jB=pP(),MB=hP(),LB=yP(),DB=gP(),FB=bP(),BB=vP(),UB=SP(),VB=_P();function zB(e=!1){let t=[LB.default,DB.default,FB.default,BB.default,UB.default,VB.default,IB.default,qB.default,kB.default,jB.default,MB.default];return e?t.push(CB.default,TB.default):t.push(AB.default,RB.default),t.push(NB.default),t}});var rg=w(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.dynamicAnchor=PP;var tg=ne(),HB=Sr(),OP=ac(),KB=Lu(),WB={keyword:"$dynamicAnchor",schemaType:"string",code:e=>PP(e,e.schema)};function PP(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let i=(0,tg._)`${HB.default.dynamicAnchors}${(0,tg.getProperty)(t)}`,o=n.errSchemaPath==="#"?n.validateName:YB(e);r.if((0,tg._)`!${i}`,()=>r.assign(i,o))}function YB(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:i,baseId:o,localRefs:s,meta:a}=t.root,{schemaId:c}=n.opts,l=new OP.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:s,meta:a});return OP.compileSchema.call(n,l),(0,KB.getValidate)(e,l)}Zu.default=WB});var ng=w(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.dynamicRef=AP;var $P=ne(),GB=Sr(),EP=Lu(),JB={keyword:"$dynamicRef",schemaType:"string",code:e=>AP(e,e.schema)};function AP(e,t){let{gen:r,keyword:n,it:i}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=t.slice(1);if(i.allErrors)s();else{let c=r.let("valid",!1);s(c),e.ok(c)}function s(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,$P._)`${GB.default.dynamicAnchors}${(0,$P.getProperty)(o)}`);r.if(l,a(l,c),a(i.validateName,c))}else a(i.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,EP.callRef)(e,c),r.let(l,!0)}):()=>(0,EP.callRef)(e,c)}}ep.default=JB});var CP=w(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});var XB=rg(),QB=pe(),ZB={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,XB.dynamicAnchor)(e,""):(0,QB.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};ig.default=ZB});var RP=w(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var eU=ng(),tU={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,eU.dynamicRef)(e,e.schema)};og.default=tU});var ag=w(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var rU=rg(),nU=ng(),iU=CP(),oU=RP(),sU=[rU.default,nU.default,iU.default,oU.default];sg.default=sU});var NP=w(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});var TP=Wu(),aU={keyword:"dependentRequired",type:"object",schemaType:"object",error:TP.error,code:e=>(0,TP.validatePropertyDeps)(e)};cg.default=aU});var kP=w(lg=>{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});var cU=Wu(),lU={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,cU.validateSchemaDeps)(e)};lg.default=lU});var IP=w(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});var uU=pe(),pU={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,uU.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};ug.default=pU});var fg=w(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});var fU=NP(),dU=kP(),mU=IP(),hU=[fU.default,dU.default,mU.default];pg.default=hU});var MP=w(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});var Nn=ne(),qP=pe(),jP=Sr(),yU={message:"must NOT have unevaluated properties",params:({params:e})=>(0,Nn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},gU={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:yU,code(e){let{gen:t,schema:r=e.it.opts.defaultUnevaluatedProperties,data:n,errsCount:i,it:o}=e,s=e.schema===void 0&&e.it.opts.defaultUnevaluatedProperties===!1;if(!i)throw new Error("ajv implementation error");let{allErrors:a,props:c}=o;if(c instanceof Nn.Name)t.if((0,Nn._)`${c} !== true`,()=>t.forIn("key",n,m=>t.if(u(c,m),()=>l(m))));else if(c!==!0){let m=()=>t.forIn("key",n,d=>c===void 0?l(d):t.if(p(c,d),()=>l(d)));s&&o.errorPath.emptyStr()?t.if((0,Nn._)`${jP.default.isAllOfVariant} === 0`,m):m()}s||(o.props=!0),e.ok((0,Nn._)`${i} === ${jP.default.errors}`);function l(m){if(r===!1){e.setParams({unevaluatedProperty:m}),e.error(),a||t.break();return}if(!(0,qP.alwaysValidSchema)(o,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:m,dataPropType:qP.Type.Str},d),a||t.if((0,Nn.not)(d),()=>t.break())}}function u(m,d){return(0,Nn._)`!${m} || !${m}[${d}]`}function p(m,d){let f=[];for(let h in m)m[h]===!0&&f.push((0,Nn._)`${d} !== ${h}`);return(0,Nn.and)(...f)}}};dg.default=gU});var DP=w(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});var mo=ne(),LP=pe(),bU={message:({params:{len:e}})=>(0,mo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,mo._)`{limit: ${e}}`},vU={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:bU,code(e){let{gen:t,schema:r,data:n,it:i}=e,o=i.items||0;if(o===!0)return;let s=t.const("len",(0,mo._)`${n}.length`);if(r===!1)e.setParams({len:o}),e.fail((0,mo._)`${s} > ${o}`);else if(typeof r=="object"&&!(0,LP.alwaysValidSchema)(i,r)){let c=t.var("valid",(0,mo._)`${s} <= ${o}`);t.if((0,mo.not)(c),()=>a(c,o)),e.ok(c)}i.items=!0;function a(c,l){t.forRange("i",l,s,u=>{e.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:LP.Type.Num},c),i.allErrors||t.if((0,mo.not)(c),()=>t.break())})}}};mg.default=vU});var yg=w(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});var wU=MP(),xU=DP(),SU=[wU.default,xU.default];hg.default=SU});var FP=w(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});var Ge=ne(),_U={message:({schemaCode:e})=>(0,Ge.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ge._)`{format: ${e}}`},OU={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:_U,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;i?m():d();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),h=r.const("fDef",(0,Ge._)`${f}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Ge._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Ge._)`${h}.type || "string"`).assign(g,(0,Ge._)`${h}.validate`),()=>r.assign(y,(0,Ge._)`"string"`).assign(g,h)),e.fail$data((0,Ge.or)(b(),v()));function b(){return c.strictSchema===!1?Ge.nil:(0,Ge._)`${s} && !${g}`}function v(){let x=u.$async?(0,Ge._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Ge._)`${g}(${n})`,S=(0,Ge._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,Ge._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function d(){let f=p.formats[o];if(!f){b();return}if(f===!0)return;let[h,y,g]=v(f);h===t&&e.pass(x());function b(){if(c.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function v(S){let C=S instanceof RegExp?(0,Ge.regexpCode)(S):c.code.formats?(0,Ge._)`${c.code.formats}${(0,Ge.getProperty)(o)}`:void 0,_=r.scopeValue("formats",{key:o,ref:S,code:C});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Ge._)`${_}.validate`]:["string",S,_]}function x(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Ge._)`await ${g}(${n})`}return typeof y=="function"?(0,Ge._)`${g}(${n})`:(0,Ge._)`${g}.test(${n})`}}}};gg.default=OU});var vg=w(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});var PU=FP(),$U=[PU.default];bg.default=$U});var wg=w(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.contentVocabulary=Ps.metadataVocabulary=void 0;Ps.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Ps.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var UP=w(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});var EU=gy(),AU=ky(),CU=eg(),RU=ag(),TU=fg(),NU=yg(),kU=vg(),BP=wg(),IU=[RU.default,EU.default,AU.default,(0,CU.default)(!0),kU.default,BP.metadataVocabulary,BP.contentVocabulary,TU.default,NU.default];xg.default=IU});var zP=w(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.DiscrError=void 0;var VP;(function(e){e.Tag="tag",e.Mapping="mapping"})(VP||(tp.DiscrError=VP={}))});var Og=w(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});var $s=ne(),Sg=zP(),HP=ac(),qU=pe(),jU={message:({params:{discrError:e,tagName:t}})=>e===Sg.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf or anyOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,$s._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function MU(e,t){var r;if(!(!e.allOf||!Array.isArray(e.allOf))){for(let n of e.allOf)if(!((r=n==null?void 0:n.properties)===null||r===void 0)&&r[t])return n.properties[t]}}var LU={keyword:"discriminator",type:"object",schemaType:"object",error:jU,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,s=i.oneOf?"oneOf":i.anyOf?"anyOf":void 0;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(!s)throw new Error("discriminator: requires oneOf or anyOf composite keyword");let c=i[s],l=t.let("valid",!1),u=t.const("tag",(0,$s._)`${r}${(0,$s.getProperty)(a)}`);t.if((0,$s._)`typeof ${u} == "string"`,()=>p(),()=>e.error(!1,{discrError:Sg.DiscrError.Tag,tag:u,tagName:a})),e.ok(l);function p(){let f=d();t.if(!1);for(let h in f)t.elseIf((0,$s._)`${u} === ${h}`),t.assign(l,m(f[h]));t.else(),e.error(!1,{discrError:Sg.DiscrError.Mapping,tag:u,tagName:a}),t.endIf()}function m(f){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:f},h);return e.mergeEvaluated(y,$s.Name),h}function d(){var f;let h={},y=b(i),g=!0;for(let S=0;S<c.length;S++){let C=c[S],_=C==null?void 0:C.$ref;if(_&&n.mapping){let{mapping:E}=n,q=Object.keys(E).filter(O=>E[O]===C.$ref);if(q.length){for(let O of q)x(O,S);continue}}_&&!(0,qU.schemaHasRulesButRef)(C,o.self.RULES)&&(C=HP.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,_),C instanceof HP.SchemaEnv&&(C=C.schema));let $=(f=C==null?void 0:C.properties)===null||f===void 0?void 0:f[a];if(!$&&(C!=null&&C.allOf)&&($=MU(C,a)),typeof $!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);g=g&&(y||b(C)),v($,S)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return h;function b(S){if(Array.isArray(S.required)&&S.required.includes(a))return!0;if(S.allOf&&Array.isArray(S.allOf))for(let C of S.allOf){let _=C;if(Array.isArray(_.required)&&_.required.includes(a))return!0}return!1}function v(S,C){if(S.const)x(S.const,C);else if(S.enum)for(let _ of S.enum)x(_,C);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function x(S,C){if(typeof S!="string"||S in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[S]=C}}}};_g.default=LU});var KP=w((zse,DU)=>{DU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var WP=w((Hse,FU)=>{FU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var YP=w((Kse,BU)=>{BU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var GP=w((Wse,UU)=>{UU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var JP=w((Yse,VU)=>{VU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var XP=w((Gse,zU)=>{zU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var QP=w((Jse,HU)=>{HU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var ZP=w((Xse,KU)=>{KU.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var e$=w(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.default=rV;var WU=KP(),YU=WP(),GU=YP(),JU=GP(),XU=JP(),QU=XP(),ZU=QP(),eV=ZP(),tV=["/properties"];function rV(e){return[WU,YU,GU,JU,XU,t(this,QU),ZU,t(this,eV)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,tV):n}}});var Eg=w((st,t$)=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.CodeGen=st.Name=st.nil=st.stringify=st.str=st._=st.KeywordCxt=void 0;var nV=my(),iV=UP(),oV=Og(),sV=e$(),$g="https://json-schema.org/draft/2020-12/schema",rp=class extends nV.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),iV.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(oV.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(sV.default.call(this,t),this.refs["http://json-schema.org/schema"]=$g)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema($g)?$g:void 0)}};t$.exports=st=rp;Object.defineProperty(st,"__esModule",{value:!0});st.default=rp;var aV=vs();Object.defineProperty(st,"KeywordCxt",{enumerable:!0,get:function(){return aV.KeywordCxt}});var Es=ne();Object.defineProperty(st,"_",{enumerable:!0,get:function(){return Es._}});Object.defineProperty(st,"str",{enumerable:!0,get:function(){return Es.str}});Object.defineProperty(st,"stringify",{enumerable:!0,get:function(){return Es.stringify}});Object.defineProperty(st,"nil",{enumerable:!0,get:function(){return Es.nil}});Object.defineProperty(st,"Name",{enumerable:!0,get:function(){return Es.Name}});Object.defineProperty(st,"CodeGen",{enumerable:!0,get:function(){return Es.CodeGen}})});var b$=w((wae,g$)=>{"use strict";g$.exports=(function(){function e(t,r,n,i,o){return t<r||n<r?t>n?n+1:t+1:i===o?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var i=t.length,o=r.length;i>0&&t.charCodeAt(i-1)===r.charCodeAt(o-1);)i--,o--;for(var s=0;s<i&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(i-=s,o-=s,i===0||o<3)return o;var a=0,c,l,u,p,m,d,f,h,y,g,b,v,x=[];for(c=0;c<i;c++)x.push(c+1),x.push(t.charCodeAt(s+c));for(var S=x.length-1;a<o-3;)for(y=r.charCodeAt(s+(l=a)),g=r.charCodeAt(s+(u=a+1)),b=r.charCodeAt(s+(p=a+2)),v=r.charCodeAt(s+(m=a+3)),d=a+=4,c=0;c<S;c+=2)f=x[c],h=x[c+1],l=e(f,l,u,y,h),u=e(l,u,p,g,h),p=e(u,p,m,b,h),d=e(p,m,d,v,h),x[c]=d,m=p,p=u,u=l,l=f;for(;a<o;)for(y=r.charCodeAt(s+(l=a)),d=++a,c=0;c<S;c+=2)f=x[c],x[c]=d=e(f,l,d,y,x[c+1]),l=f;return d}})()});var O$=w(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.formatNames=on.fastFormats=on.fullFormats=void 0;function Cs(e,t){return{validate:e,compare:t}}on.fullFormats={date:Cs(x$,kg),time:Cs(S$,Ig),"date-time":Cs(UV,_$),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:HV,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:QV,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:KV,int32:{type:"number",validate:GV},int64:{type:"number",validate:JV},float:{type:"number",validate:w$},double:{type:"number",validate:w$},password:!0,binary:!0};on.fastFormats={...on.fullFormats,date:Cs(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,kg),time:Cs(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,Ig),"date-time":Cs(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,_$),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};on.formatNames=Object.keys(on.fullFormats);function DV(e){return e%4===0&&(e%100!==0||e%400===0)}var FV=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,BV=[0,31,28,31,30,31,30,31,31,30,31,30,31];function x$(e){let t=FV.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],i=+t[3];return n>=1&&n<=12&&i>=1&&i<=(n===2&&DV(r)?29:BV[n])}function kg(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Tg=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i;function S$(e,t){let r=Tg.exec(e);if(!r)return!1;let n=+r[1],i=+r[2],o=+r[3],s=r[5];return(n<=23&&i<=59&&o<=59||n===23&&i===59&&o===60)&&(!t||s!=="")}function Ig(e,t){if(!(e&&t))return;let r=Tg.exec(e),n=Tg.exec(t);if(r&&n)return e=r[1]+r[2]+r[3]+(r[4]||""),t=n[1]+n[2]+n[3]+(n[4]||""),e>t?1:e<t?-1:0}var Ng=/t|\s/i;function UV(e){let t=e.split(Ng);return t.length===2&&x$(t[0])&&S$(t[1],!0)}function _$(e,t){if(!(e&&t))return;let[r,n]=e.split(Ng),[i,o]=t.split(Ng),s=kg(r,i);if(s!==void 0)return s||Ig(n,o)}var VV=/\/|:/,zV=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function HV(e){return VV.test(e)&&zV.test(e)}var v$=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function KV(e){return v$.lastIndex=0,v$.test(e)}var WV=-(2**31),YV=2**31-1;function GV(e){return Number.isInteger(e)&&e<=YV&&e>=WV}function JV(e){return Number.isInteger(e)}function w$(){return!0}var XV=/[^\\]\\Z/;function QV(e){if(XV.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Oc=w(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.regexpCode=xe.getEsmExportName=xe.getProperty=xe.safeStringify=xe.stringify=xe.strConcat=xe.addCodeArg=xe.str=xe._=xe.nil=xe._Code=xe.Name=xe.IDENTIFIER=xe._CodeOrName=void 0;var Sc=class{};xe._CodeOrName=Sc;xe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var go=class extends Sc{constructor(t){if(super(),!xe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};xe.Name=go;var $r=class extends Sc{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof go&&(r[n.str]=(r[n.str]||0)+1),r),{})}};xe._Code=$r;xe.nil=new $r("");function P$(e,...t){let r=[e[0]],n=0;for(;n<t.length;)jg(r,t[n]),r.push(e[++n]);return new $r(r)}xe._=P$;var qg=new $r("+");function $$(e,...t){let r=[_c(e[0])],n=0;for(;n<t.length;)r.push(qg),jg(r,t[n]),r.push(qg,_c(e[++n]));return ZV(r),new $r(r)}xe.str=$$;function jg(e,t){t instanceof $r?e.push(...t._items):t instanceof go?e.push(t):e.push(rz(t))}xe.addCodeArg=jg;function ZV(e){let t=1;for(;t<e.length-1;){if(e[t]===qg){let r=ez(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function ez(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof go||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof go))return`"${e}${t.slice(1)}`}function tz(e,t){return t.emptyStr()?e:e.emptyStr()?t:$$`${e}${t}`}xe.strConcat=tz;function rz(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:_c(Array.isArray(e)?e.join(","):e)}function nz(e){return new $r(_c(e))}xe.stringify=nz;function _c(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}xe.safeStringify=_c;function iz(e){return typeof e=="string"&&xe.IDENTIFIER.test(e)?new $r(`.${e}`):P$`[${e}]`}xe.getProperty=iz;function oz(e){if(typeof e=="string"&&xe.IDENTIFIER.test(e))return new $r(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}xe.getEsmExportName=oz;function sz(e){return new $r(e.toString())}xe.regexpCode=sz});var Dg=w(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.ValueScope=nr.ValueScopeName=nr.Scope=nr.varKinds=nr.UsedValueState=void 0;var rr=Oc(),Mg=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},cp;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(cp||(nr.UsedValueState=cp={}));nr.varKinds={const:new rr.Name("const"),let:new rr.Name("let"),var:new rr.Name("var")};var lp=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof rr.Name?t:this.name(t)}name(t){return new rr.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};nr.Scope=lp;var up=class extends rr.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,rr._)`.${new rr.Name(r)}[${n}]`}};nr.ValueScopeName=up;var az=(0,rr._)`\n`,Lg=class extends lp{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?az:rr.nil}}get(){return this._scope}name(t){return new up(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(t),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let u=a.get(s);if(u)return u}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,rr._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(t,r,n={},i){let o=rr.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,cp.Started);let u=r(l);if(u){let p=this.opts.es5?nr.varKinds.var:nr.varKinds.const;o=(0,rr._)`${o}${p} ${l} = ${u};${this.opts._n}`}else if(u=i==null?void 0:i(l))o=(0,rr._)`${o}${u}${this.opts._n}`;else throw new Mg(l);c.set(l,cp.Completed)})}return o}};nr.ValueScope=Lg});var ae=w(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.or=ce.and=ce.not=ce.CodeGen=ce.operators=ce.varKinds=ce.ValueScopeName=ce.ValueScope=ce.Scope=ce.Name=ce.regexpCode=ce.stringify=ce.getProperty=ce.nil=ce.strConcat=ce.str=ce._=void 0;var me=Oc(),Br=Dg(),mi=Oc();Object.defineProperty(ce,"_",{enumerable:!0,get:function(){return mi._}});Object.defineProperty(ce,"str",{enumerable:!0,get:function(){return mi.str}});Object.defineProperty(ce,"strConcat",{enumerable:!0,get:function(){return mi.strConcat}});Object.defineProperty(ce,"nil",{enumerable:!0,get:function(){return mi.nil}});Object.defineProperty(ce,"getProperty",{enumerable:!0,get:function(){return mi.getProperty}});Object.defineProperty(ce,"stringify",{enumerable:!0,get:function(){return mi.stringify}});Object.defineProperty(ce,"regexpCode",{enumerable:!0,get:function(){return mi.regexpCode}});Object.defineProperty(ce,"Name",{enumerable:!0,get:function(){return mi.Name}});var mp=Dg();Object.defineProperty(ce,"Scope",{enumerable:!0,get:function(){return mp.Scope}});Object.defineProperty(ce,"ValueScope",{enumerable:!0,get:function(){return mp.ValueScope}});Object.defineProperty(ce,"ValueScopeName",{enumerable:!0,get:function(){return mp.ValueScopeName}});Object.defineProperty(ce,"varKinds",{enumerable:!0,get:function(){return mp.varKinds}});ce.operators={GT:new me._Code(">"),GTE:new me._Code(">="),LT:new me._Code("<"),LTE:new me._Code("<="),EQ:new me._Code("==="),NEQ:new me._Code("!=="),NOT:new me._Code("!"),OR:new me._Code("||"),AND:new me._Code("&&"),ADD:new me._Code("+")};var qn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Fg=class extends qn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?Br.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Ts(this.rhs,t,r)),this}get names(){return this.rhs instanceof me._CodeOrName?this.rhs.names:{}}},pp=class extends qn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof me.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Ts(this.rhs,t,r),this}get names(){let t=this.lhs instanceof me.Name?{}:{...this.lhs.names};return dp(t,this.rhs)}},Bg=class extends pp{constructor(t,r,n,i){super(t,n,i),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Ug=class extends qn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Vg=class extends qn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},zg=class extends qn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Hg=class extends qn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Ts(this.code,t,r),this}get names(){return this.code instanceof me._CodeOrName?this.code.names:{}}},Pc=class extends qn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(t,r)||(cz(t,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>wo(t,r.names),{})}},jn=class extends Pc{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Kg=class extends Pc{},Rs=class extends jn{};Rs.kind="else";var bo=class e extends jn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Rs(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(E$(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Ts(this.condition,t,r),this}get names(){let t=super.names;return dp(t,this.condition),this.else&&wo(t,this.else.names),t}};bo.kind="if";var vo=class extends jn{};vo.kind="for";var Wg=class extends vo{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Ts(this.iteration,t,r),this}get names(){return wo(super.names,this.iteration.names)}},Yg=class extends vo{constructor(t,r,n,i){super(),this.varKind=t,this.name=r,this.from=n,this.to=i}render(t){let r=t.es5?Br.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(t)}get names(){let t=dp(super.names,this.from);return dp(t,this.to)}},fp=class extends vo{constructor(t,r,n,i){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=i}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Ts(this.iterable,t,r),this}get names(){return wo(super.names,this.iterable.names)}},$c=class extends jn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};$c.kind="func";var Ec=class extends Pc{render(t){return"return "+super.render(t)}};Ec.kind="return";var Gg=class extends jn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,i;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(i=this.finally)===null||i===void 0||i.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&wo(t,this.catch.names),this.finally&&wo(t,this.finally.names),t}},Ac=class extends jn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ac.kind="catch";var Cc=class extends jn{render(t){return"finally"+super.render(t)}};Cc.kind="finally";var Jg=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
9
9
|
`:""},this._extScope=t,this._scope=new Br.Scope({parent:t}),this._nodes=[new Kg]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Fg(t,o,n)),o}const(t,r,n){return this._def(Br.varKinds.const,t,r,n)}let(t,r,n){return this._def(Br.varKinds.let,t,r,n)}var(t,r,n){return this._def(Br.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new pp(t,r,n))}add(t,r){return this._leafNode(new Bg(t,ce.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==me.nil&&this._leafNode(new Hg(t)),this}object(...t){let r=["{"];for(let[n,i]of t)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,me.addCodeArg)(r,i));return r.push("}"),new me._Code(r)}if(t,r,n){if(this._blockNode(new bo(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new bo(t))}else(){return this._elseNode(new Rs)}endIf(){return this._endBlockNode(bo,Rs)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Wg(t),r)}forRange(t,r,n,i,o=this.opts.es5?Br.varKinds.var:Br.varKinds.let){let s=this._scope.toName(t);return this._for(new Yg(o,s,r,n),()=>i(s))}forOf(t,r,n,i=Br.varKinds.const){let o=this._scope.toName(t);if(this.opts.es5){let s=r instanceof me.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,me._)`${s}.length`,a=>{this.var(o,(0,me._)`${s}[${a}]`),n(o)})}return this._for(new fp("of",i,o,r),()=>n(o))}forIn(t,r,n,i=this.opts.es5?Br.varKinds.var:Br.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,me._)`Object.keys(${r})`,n);let o=this._scope.toName(t);return this._for(new fp("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(vo)}label(t){return this._leafNode(new Ug(t))}break(t){return this._leafNode(new Vg(t))}return(t){let r=new Ec;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ec)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Gg;if(this._blockNode(i),this.code(t),r){let o=this.name("e");this._currNode=i.catch=new Ac(o),r(o)}return n&&(this._currNode=i.finally=new Cc,this.code(n)),this._endBlockNode(Ac,Cc)}throw(t){return this._leafNode(new zg(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=me.nil,n,i){return this._blockNode(new $c(t,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode($c)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof bo))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ce.CodeGen=Jg;function wo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function dp(e,t){return t instanceof me._CodeOrName?wo(e,t.names):e}function Ts(e,t,r){if(e instanceof me.Name)return n(e);if(!i(e))return e;return new me._Code(e._items.reduce((o,s)=>(s instanceof me.Name&&(s=n(s)),s instanceof me._Code?o.push(...s._items):o.push(s),o),[]));function n(o){let s=r[o.str];return s===void 0||t[o.str]!==1?o:(delete t[o.str],s)}function i(o){return o instanceof me._Code&&o._items.some(s=>s instanceof me.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function cz(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function E$(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,me._)`!${Xg(e)}`}ce.not=E$;var lz=A$(ce.operators.AND);function uz(...e){return e.reduce(lz)}ce.and=uz;var pz=A$(ce.operators.OR);function fz(...e){return e.reduce(pz)}ce.or=fz;function A$(e){return(t,r)=>t===me.nil?r:r===me.nil?t:(0,me._)`${Xg(t)} ${e} ${Xg(r)}`}function Xg(e){return e instanceof me.Name?e:(0,me._)`(${e})`}});var Se=w(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.checkStrictMode=ue.getErrorPath=ue.Type=ue.useFunc=ue.setEvaluated=ue.evaluatedPropsToName=ue.mergeEvaluated=ue.eachItem=ue.unescapeJsonPointer=ue.escapeJsonPointer=ue.escapeFragment=ue.unescapeFragment=ue.schemaRefOrVal=ue.schemaHasRulesButRef=ue.schemaHasRules=ue.checkUnknownRules=ue.alwaysValidSchema=ue.toHash=void 0;var Te=ae(),dz=Oc();function mz(e){let t={};for(let r of e)t[r]=!0;return t}ue.toHash=mz;function hz(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(T$(e,t),!N$(t,e.self.RULES.all))}ue.alwaysValidSchema=hz;function T$(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let i=n.RULES.keywords;for(let o in t)i[o]||q$(e,`unknown keyword: "${o}"`)}ue.checkUnknownRules=T$;function N$(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ue.schemaHasRules=N$;function yz(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ue.schemaHasRulesButRef=yz;function gz({topSchemaRef:e,schemaPath:t},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Te._)`${r}`}return(0,Te._)`${e}${t}${(0,Te.getProperty)(n)}`}ue.schemaRefOrVal=gz;function bz(e){return k$(decodeURIComponent(e))}ue.unescapeFragment=bz;function vz(e){return encodeURIComponent(Zg(e))}ue.escapeFragment=vz;function Zg(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ue.escapeJsonPointer=Zg;function k$(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ue.unescapeJsonPointer=k$;function wz(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ue.eachItem=wz;function C$({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{let c=s===void 0?o:s instanceof Te.Name?(o instanceof Te.Name?e(i,o,s):t(i,o,s),s):o instanceof Te.Name?(t(i,s,o),o):r(o,s);return a===Te.Name&&!(c instanceof Te.Name)?n(i,c):c}}ue.mergeEvaluated={props:C$({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Te._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Te._)`${r} || {}`).code((0,Te._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Te._)`${r} || {}`),e0(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:I$}),items:C$({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Te._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Te._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function I$(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Te._)`{}`);return t!==void 0&&e0(e,r,t),r}ue.evaluatedPropsToName=I$;function e0(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Te._)`${t}${(0,Te.getProperty)(n)}`,!0))}ue.setEvaluated=e0;var R$={};function xz(e,t){return e.scopeValue("func",{ref:t,code:R$[t.code]||(R$[t.code]=new dz._Code(t.code))})}ue.useFunc=xz;var Qg;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Qg||(ue.Type=Qg={}));function Sz(e,t,r){if(e instanceof Te.Name){let n=t===Qg.Num;return r?n?(0,Te._)`"[" + ${e} + "]"`:(0,Te._)`"['" + ${e} + "']"`:n?(0,Te._)`"/" + ${e}`:(0,Te._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Te.getProperty)(e).toString():"/"+Zg(e)}ue.getErrorPath=Sz;function q$(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ue.checkStrictMode=q$});var Mn=w(t0=>{"use strict";Object.defineProperty(t0,"__esModule",{value:!0});var Rt=ae(),_z={data:new Rt.Name("data"),valCxt:new Rt.Name("valCxt"),instancePath:new Rt.Name("instancePath"),parentData:new Rt.Name("parentData"),parentDataProperty:new Rt.Name("parentDataProperty"),rootData:new Rt.Name("rootData"),dynamicAnchors:new Rt.Name("dynamicAnchors"),vErrors:new Rt.Name("vErrors"),errors:new Rt.Name("errors"),this:new Rt.Name("this"),self:new Rt.Name("self"),scope:new Rt.Name("scope"),json:new Rt.Name("json"),jsonPos:new Rt.Name("jsonPos"),jsonLen:new Rt.Name("jsonLen"),jsonPart:new Rt.Name("jsonPart")};t0.default=_z});var Rc=w(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.extendErrors=Tt.resetErrorsCount=Tt.reportExtraError=Tt.reportError=Tt.keyword$DataError=Tt.keywordError=void 0;var be=ae(),hp=Se(),Vt=Mn();Tt.keywordError={message:({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`};Tt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`};function Oz(e,t=Tt.keywordError,r,n){let{it:i}=e,{gen:o,compositeRule:s,allErrors:a}=i,c=L$(e,t,r);(n!=null?n:s||a)?j$(o,c):M$(i,(0,be._)`[${c}]`)}Tt.reportError=Oz;function Pz(e,t=Tt.keywordError,r){let{it:n}=e,{gen:i,compositeRule:o,allErrors:s}=n,a=L$(e,t,r);j$(i,a),o||s||M$(n,Vt.default.vErrors)}Tt.reportExtraError=Pz;function $z(e,t){e.assign(Vt.default.errors,t),e.if((0,be._)`${Vt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${Vt.default.vErrors}.length`,t),()=>e.assign(Vt.default.vErrors,null)))}Tt.resetErrorsCount=$z;function Ez({gen:e,keyword:t,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",i,Vt.default.errors,a=>{e.const(s,(0,be._)`${Vt.default.vErrors}[${a}]`),e.if((0,be._)`${s}.instancePath === undefined`,()=>e.assign((0,be._)`${s}.instancePath`,(0,be.strConcat)(Vt.default.instancePath,o.errorPath))),e.assign((0,be._)`${s}.schemaPath`,(0,be.str)`${o.errSchemaPath}/${t}`),o.opts.verbose&&(e.assign((0,be._)`${s}.schema`,r),e.assign((0,be._)`${s}.data`,n))})}Tt.extendErrors=Ez;function j$(e,t){let r=e.const("err",t);e.if((0,be._)`${Vt.default.vErrors} === null`,()=>e.assign(Vt.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${Vt.default.vErrors}.push(${r})`),e.code((0,be._)`${Vt.default.errors}++`)}function M$(e,t){let{gen:r,validateName:n,schemaEnv:i}=e;i.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}var xo={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function L$(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:Az(e,t,r)}function Az(e,t,r={}){let{gen:n,it:i}=e,o=[Cz(i,r),Rz(e,r)];return Tz(e,t,o),n.object(...o)}function Cz({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,hp.getErrorPath)(t,hp.Type.Str)}`:e;return[Vt.default.instancePath,(0,be.strConcat)(Vt.default.instancePath,r)]}function Rz({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let i=n?t:(0,be.str)`${t}/${e}`;return r&&(i=(0,be.str)`${i}${(0,hp.getErrorPath)(r,hp.Type.Str)}`),[xo.schemaPath,i]}function Tz(e,{params:t,message:r},n){let{keyword:i,data:o,schemaValue:s,it:a}=e,{opts:c,propertyName:l,topSchemaRef:u,schemaPath:p}=a;n.push([xo.keyword,i],[xo.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),c.messages&&n.push([xo.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([xo.schema,s],[xo.parentSchema,(0,be._)`${u}${p}`],[Vt.default.data,o]),l&&n.push([xo.propertyName,l])}});var F$=w(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.boolOrEmptySchema=Ns.topBoolOrEmptySchema=void 0;var Nz=Rc(),kz=ae(),Iz=Mn(),qz={message:"boolean schema is false"};function jz(e){let{gen:t,schema:r,validateName:n}=e;r===!1?D$(e,!1):typeof r=="object"&&r.$async===!0?t.return(Iz.default.data):(t.assign((0,kz._)`${n}.errors`,null),t.return(!0))}Ns.topBoolOrEmptySchema=jz;function Mz(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),D$(e)):r.var(t,!0)}Ns.boolOrEmptySchema=Mz;function D$(e,t){let{gen:r,data:n}=e,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,Nz.reportError)(i,qz,void 0,t)}});var r0=w(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.getRules=ks.isJSONType=void 0;var Lz=["string","number","integer","boolean","null","object","array"],Dz=new Set(Lz);function Fz(e){return typeof e=="string"&&Dz.has(e)}ks.isJSONType=Fz;function Bz(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}ks.getRules=Bz});var n0=w(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.shouldUseRule=hi.shouldUseGroup=hi.schemaHasRulesForType=void 0;function Uz({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&B$(e,n)}hi.schemaHasRulesForType=Uz;function B$(e,t){return t.rules.some(r=>U$(e,r))}hi.shouldUseGroup=B$;function U$(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}hi.shouldUseRule=U$});var Tc=w(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.reportTypeError=Nt.checkDataTypes=Nt.checkDataType=Nt.coerceAndCheckDataType=Nt.getJSONTypes=Nt.getSchemaTypes=Nt.DataType=void 0;var Vz=r0(),zz=n0(),Hz=Rc(),se=ae(),V$=Se(),Is;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Is||(Nt.DataType=Is={}));function Kz(e){let t=z$(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}Nt.getSchemaTypes=Kz;function z$(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(Vz.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}Nt.getJSONTypes=z$;function Wz(e,t){let{gen:r,data:n,opts:i}=e,o=Yz(t,i.coerceTypes),s=t.length>0&&!(o.length===0&&t.length===1&&(0,zz.schemaHasRulesForType)(e,t[0]));if(s){let a=o0(t,n,i.strictNumbers,Is.Wrong);r.if(a,()=>{o.length?Gz(e,t,o):s0(e)})}return s}Nt.coerceAndCheckDataType=Wz;var H$=new Set(["string","number","integer","boolean","null"]);function Yz(e,t){return t?e.filter(r=>H$.has(r)||t==="array"&&r==="array"):[]}function Gz(e,t,r){let{gen:n,data:i,opts:o}=e,s=n.let("dataType",(0,se._)`typeof ${i}`),a=n.let("coerced",(0,se._)`undefined`);o.coerceTypes==="array"&&n.if((0,se._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,se._)`${i}[0]`).assign(s,(0,se._)`typeof ${i}`).if(o0(t,i,o.strictNumbers),()=>n.assign(a,i))),n.if((0,se._)`${a} !== undefined`);for(let l of r)(H$.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),s0(e),n.endIf(),n.if((0,se._)`${a} !== undefined`,()=>{n.assign(i,a),Jz(e,a)});function c(l){switch(l){case"string":n.elseIf((0,se._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,se._)`"" + ${i}`).elseIf((0,se._)`${i} === null`).assign(a,(0,se._)`""`);return;case"number":n.elseIf((0,se._)`${s} == "boolean" || ${i} === null
|
|
10
10
|
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,se._)`+${i}`);return;case"integer":n.elseIf((0,se._)`${s} === "boolean" || ${i} === null
|
|
11
11
|
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,se._)`+${i}`);return;case"boolean":n.elseIf((0,se._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,se._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,se._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,se._)`${s} === "string" || ${s} === "number"
|
|
12
12
|
|| ${s} === "boolean" || ${i} === null`).assign(a,(0,se._)`[${i}]`)}}}function Jz({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,se._)`${t} !== undefined`,()=>e.assign((0,se._)`${t}[${r}]`,n))}function i0(e,t,r,n=Is.Correct){let i=n===Is.Correct?se.operators.EQ:se.operators.NEQ,o;switch(e){case"null":return(0,se._)`${t} ${i} null`;case"array":o=(0,se._)`Array.isArray(${t})`;break;case"object":o=(0,se._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":o=s((0,se._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":o=s();break;default:return(0,se._)`typeof ${t} ${i} ${e}`}return n===Is.Correct?o:(0,se.not)(o);function s(a=se.nil){return(0,se.and)((0,se._)`typeof ${t} == "number"`,a,r?(0,se._)`isFinite(${t})`:se.nil)}}Nt.checkDataType=i0;function o0(e,t,r,n){if(e.length===1)return i0(e[0],t,r,n);let i,o=(0,V$.toHash)(e);if(o.array&&o.object){let s=(0,se._)`typeof ${t} != "object"`;i=o.null?s:(0,se._)`!${t} || ${s}`,delete o.null,delete o.array,delete o.object}else i=se.nil;o.number&&delete o.integer;for(let s in o)i=(0,se.and)(i,i0(s,t,r,n));return i}Nt.checkDataTypes=o0;var Xz={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,se._)`{type: ${e}}`:(0,se._)`{type: ${t}}`};function s0(e){let t=Qz(e);(0,Hz.reportError)(t,Xz)}Nt.reportTypeError=s0;function Qz(e){let{gen:t,data:r,schema:n}=e,i=(0,V$.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:e}}});var W$=w(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.assignDefaults=void 0;var qs=ae(),Zz=Se();function e7(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let i in r)K$(e,i,r[i].default);else t==="array"&&Array.isArray(n)&&n.forEach((i,o)=>K$(e,o,i.default))}yp.assignDefaults=e7;function K$(e,t,r){let{gen:n,compositeRule:i,data:o,opts:s}=e;if(r===void 0)return;let a=(0,qs._)`${o}${(0,qs.getProperty)(t)}`;if(i){(0,Zz.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,qs._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,qs._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,qs._)`${a} = ${(0,qs.stringify)(r)}`)}});var Er=w(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.validateUnion=Ae.validateArray=Ae.usePattern=Ae.callValidateCode=Ae.schemaProperties=Ae.allSchemaProperties=Ae.noPropertyInData=Ae.propertyInData=Ae.isOwnProperty=Ae.hasPropFunc=Ae.reportMissingProp=Ae.checkMissingProp=Ae.checkReportMissingProp=void 0;var je=ae(),a0=Se(),yi=Mn(),t7=Se();function r7(e,t){let{gen:r,data:n,it:i}=e;r.if(l0(r,n,t,i.opts.ownProperties),()=>{e.setParams({missingProperty:(0,je._)`${t}`},!0),e.error()})}Ae.checkReportMissingProp=r7;function n7({gen:e,data:t,it:{opts:r}},n,i){return(0,je.or)(...n.map(o=>(0,je.and)(l0(e,t,o,r.ownProperties),(0,je._)`${i} = ${o}`)))}Ae.checkMissingProp=n7;function i7(e,t){e.setParams({missingProperty:t},!0),e.error()}Ae.reportMissingProp=i7;function Y$(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,je._)`Object.prototype.hasOwnProperty`})}Ae.hasPropFunc=Y$;function c0(e,t,r){return(0,je._)`${Y$(e)}.call(${t}, ${r})`}Ae.isOwnProperty=c0;function o7(e,t,r,n){let i=(0,je._)`${t}${(0,je.getProperty)(r)} !== undefined`;return n?(0,je._)`${i} && ${c0(e,t,r)}`:i}Ae.propertyInData=o7;function l0(e,t,r,n){let i=(0,je._)`${t}${(0,je.getProperty)(r)} === undefined`;return n?(0,je.or)(i,(0,je.not)(c0(e,t,r))):i}Ae.noPropertyInData=l0;function G$(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ae.allSchemaProperties=G$;function s7(e,t){return G$(t).filter(r=>!(0,a0.alwaysValidSchema)(e,t[r]))}Ae.schemaProperties=s7;function a7({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){let u=l?(0,je._)`${e}, ${t}, ${n}${i}`:t,p=[[yi.default.instancePath,(0,je.strConcat)(yi.default.instancePath,o)],[yi.default.parentData,s.parentData],[yi.default.parentDataProperty,s.parentDataProperty],[yi.default.rootData,yi.default.rootData]];s.opts.dynamicRef&&p.push([yi.default.dynamicAnchors,yi.default.dynamicAnchors]);let m=(0,je._)`${u}, ${r.object(...p)}`;return c!==je.nil?(0,je._)`${a}.call(${c}, ${m})`:(0,je._)`${a}(${m})`}Ae.callValidateCode=a7;var c7=(0,je._)`new RegExp`;function l7({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:i}=t.code,o=i(r,n);return e.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,je._)`${i.code==="new RegExp"?c7:(0,t7.useFunc)(e,i)}(${r}, ${n})`})}Ae.usePattern=l7;function u7(e){let{gen:t,data:r,keyword:n,it:i}=e,o=t.name("valid");if(i.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(o,!0),s(()=>t.break()),o;function s(a){let c=t.const("len",(0,je._)`${r}.length`);t.forRange("i",0,c,l=>{e.subschema({keyword:n,dataProp:l,dataPropType:a0.Type.Num},o),t.if((0,je.not)(o),a)})}}Ae.validateArray=u7;function p7(e){let{gen:t,schema:r,keyword:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,a0.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,l)=>{let u=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);t.assign(s,(0,je._)`${s} || ${a}`),e.mergeValidEvaluated(u,a)||t.if((0,je.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Ae.validateUnion=p7});var Q$=w(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.validateKeywordUsage=sn.validSchemaType=sn.funcKeywordCode=sn.macroKeywordCode=void 0;var zt=ae(),So=Mn(),f7=Er(),d7=Rc();function m7(e,t){let{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=e,a=t.macro.call(s.self,i,o,s),c=X$(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");e.subschema({schema:a,schemaPath:zt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),e.pass(l,()=>e.error(!0))}sn.macroKeywordCode=m7;function h7(e,t){var r;let{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=e;g7(c,t);let l=!a&&t.compile?t.compile.call(c.self,o,s,c):t.validate,u=X$(n,i,l),p=n.let("valid");e.block$data(p,m),e.ok((r=t.valid)!==null&&r!==void 0?r:p);function m(){if(t.errors===!1)h(),t.modifying&&J$(e),y(()=>e.error());else{let g=t.async?d():f();t.modifying&&J$(e),y(()=>y7(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,zt._)`await `),b=>n.assign(p,!1).if((0,zt._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,zt._)`${b}.errors`),()=>n.throw(b))),g}function f(){let g=(0,zt._)`${u}.errors`;return n.assign(g,null),h(zt.nil),g}function h(g=t.async?(0,zt._)`await `:zt.nil){let b=c.opts.passContext?So.default.this:So.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(p,(0,zt._)`${g}${(0,f7.callValidateCode)(e,u,b,v)}`,t.modifying)}function y(g){var b;n.if((0,zt.not)((b=t.valid)!==null&&b!==void 0?b:p),g)}}sn.funcKeywordCode=h7;function J$(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,zt._)`${n.parentData}[${n.parentDataProperty}]`))}function y7(e,t){let{gen:r}=e;r.if((0,zt._)`Array.isArray(${t})`,()=>{r.assign(So.default.vErrors,(0,zt._)`${So.default.vErrors} === null ? ${t} : ${So.default.vErrors}.concat(${t})`).assign(So.default.errors,(0,zt._)`${So.default.vErrors}.length`),(0,d7.extendErrors)(e)},()=>e.error())}function g7({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function X$(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,zt.stringify)(r)})}function b7(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}sn.validSchemaType=b7;function v7({schema:e,opts:t,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let s=i.dependencies;if(s!=null&&s.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(e[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}sn.validateKeywordUsage=v7});var eE=w(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});gi.extendSubschemaMode=gi.extendSubschemaData=gi.getSubschema=void 0;var an=ae(),Z$=Se();function w7(e,{keyword:t,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,an._)`${e.schemaPath}${(0,an.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,an._)`${e.schemaPath}${(0,an.getProperty)(t)}${(0,an.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,Z$.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}gi.getSubschema=w7;function x7(e,t,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:l,dataPathArr:u,opts:p}=t,m=a.let("data",(0,an._)`${t.data}${(0,an.getProperty)(r)}`,!0);c(m),e.errorPath=(0,an.str)`${l}${(0,Z$.getErrorPath)(r,n,p.jsPropertySyntax)}`,e.parentDataProperty=(0,an._)`${r}`,e.dataPathArr=[...u,e.parentDataProperty]}if(i!==void 0){let l=i instanceof an.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(e.propertyName=s)}o&&(e.dataTypes=o);function c(l){e.data=l,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,l]}}gi.extendSubschemaData=x7;function S7(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(e.compositeRule=n),i!==void 0&&(e.createErrors=i),o!==void 0&&(e.allErrors=o),e.jtdDiscriminator=t,e.jtdMetadata=r}gi.extendSubschemaMode=S7});var Nc=w(ir=>{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.getSchemaRefs=ir.resolveUrl=ir.normalizeId=ir._getFullPath=ir.getFullPath=ir.inlineRef=void 0;var _7=Se(),O7=nc(),P7=Wh(),$7=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function E7(e,t=!0){return typeof e=="boolean"?!0:t===!0?!u0(e):t?tE(e)<=t:!1}ir.inlineRef=E7;var A7=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function u0(e){for(let t in e){if(A7.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(u0)||typeof r=="object"&&u0(r))return!0}return!1}function tE(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!$7.has(r)&&(typeof e[r]=="object"&&(0,_7.eachItem)(e[r],n=>t+=tE(n)),t===1/0))return 1/0}return t}function rE(e,t="",r){r!==!1&&(t=js(t));let n=e.parse(t);return nE(e,n)}ir.getFullPath=rE;function nE(e,t){return e.serialize(t).split("#")[0]+"#"}ir._getFullPath=nE;var C7=/#\/?$/;function js(e){return e?e.replace(C7,""):""}ir.normalizeId=js;function R7(e,t,r){return r=js(r),e.resolve(t,r)}ir.resolveUrl=R7;var T7=/^[a-z_][-a-z0-9._]*$/i;function N7(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=js(e[r]||t),o={"":i},s=rE(n,i,!1),a={},c=new Set;return P7(e,{allKeys:!0},(p,m,d,f)=>{if(f===void 0)return;let h=s+m,y=o[f];typeof p[r]=="string"&&(y=g.call(this,p[r])),b.call(this,p.$anchor),b.call(this,p.$dynamicAnchor),o[m]=y;function g(v){let x=this.opts.uriResolver.resolve;if(v=js(y?x(y,v):v),c.has(v))throw u(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?l(p,S.schema,v):v!==js(h)&&(v[0]==="#"?(l(p,a[v],v),a[v]=p):this.refs[v]=h),v}function b(v){if(typeof v=="string"){if(!T7.test(v))throw new Error(`invalid anchor "${v}"`);g.call(this,`#${v}`)}}}),a;function l(p,m,d){if(m!==void 0&&!O7(p,m))throw u(d)}function u(p){return new Error(`reference "${p}" resolves to more than one schema`)}}ir.getSchemaRefs=N7});var qc=w(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.getData=bi.KeywordCxt=bi.validateFunctionCode=void 0;var cE=F$(),iE=Tc(),f0=n0(),gp=Tc(),k7=W$(),Ic=Q$(),p0=eE(),K=ae(),Z=Mn(),I7=Nc(),Ln=Se(),kc=Rc();function q7(e){if(pE(e)&&(fE(e),uE(e))){L7(e);return}lE(e,()=>(0,cE.topBoolOrEmptySchema)(e))}bi.validateFunctionCode=q7;function lE({gen:e,validateName:t,schema:r,schemaEnv:n,opts:i},o){i.code.es5?e.func(t,(0,K._)`${Z.default.data}, ${Z.default.valCxt}`,n.$async,()=>{e.code((0,K._)`"use strict"; ${oE(r,i)}`),M7(e,i),e.code(o)}):e.func(t,(0,K._)`${Z.default.data}, ${j7(i)}`,n.$async,()=>e.code(oE(r,i)).code(o))}function j7(e){return(0,K._)`{${Z.default.instancePath}="", ${Z.default.parentData}, ${Z.default.parentDataProperty}, ${Z.default.rootData}=${Z.default.data}${e.dynamicRef?(0,K._)`, ${Z.default.dynamicAnchors}={}`:K.nil}}={}`}function M7(e,t){e.if(Z.default.valCxt,()=>{e.var(Z.default.instancePath,(0,K._)`${Z.default.valCxt}.${Z.default.instancePath}`),e.var(Z.default.parentData,(0,K._)`${Z.default.valCxt}.${Z.default.parentData}`),e.var(Z.default.parentDataProperty,(0,K._)`${Z.default.valCxt}.${Z.default.parentDataProperty}`),e.var(Z.default.rootData,(0,K._)`${Z.default.valCxt}.${Z.default.rootData}`),t.dynamicRef&&e.var(Z.default.dynamicAnchors,(0,K._)`${Z.default.valCxt}.${Z.default.dynamicAnchors}`)},()=>{e.var(Z.default.instancePath,(0,K._)`""`),e.var(Z.default.parentData,(0,K._)`undefined`),e.var(Z.default.parentDataProperty,(0,K._)`undefined`),e.var(Z.default.rootData,Z.default.data),t.dynamicRef&&e.var(Z.default.dynamicAnchors,(0,K._)`{}`)})}function L7(e){let{schema:t,opts:r,gen:n}=e;lE(e,()=>{r.$comment&&t.$comment&&mE(e),V7(e),n.let(Z.default.vErrors,null),n.let(Z.default.errors,0),r.unevaluated&&D7(e),dE(e),K7(e)})}function D7(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,K._)`${r}.evaluated`),t.if((0,K._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,K._)`${e.evaluated}.props`,(0,K._)`undefined`)),t.if((0,K._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,K._)`${e.evaluated}.items`,(0,K._)`undefined`))}function oE(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,K._)`/*# sourceURL=${r} */`:K.nil}function F7(e,t){if(pE(e)&&(fE(e),uE(e))){B7(e,t);return}(0,cE.boolOrEmptySchema)(e,t)}function uE({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function pE(e){return typeof e.schema!="boolean"}function B7(e,t){let{schema:r,gen:n,opts:i}=e;i.$comment&&r.$comment&&mE(e),z7(e),H7(e);let o=n.const("_errs",Z.default.errors);dE(e,o),n.var(t,(0,K._)`${o} === ${Z.default.errors}`)}function fE(e){(0,Ln.checkUnknownRules)(e),U7(e)}function dE(e,t){if(e.opts.jtd)return sE(e,[],!1,t);let r=(0,iE.getSchemaTypes)(e.schema),n=(0,iE.coerceAndCheckDataType)(e,r);sE(e,r,!n,t)}function U7(e){let{schema:t,errSchemaPath:r,opts:n,self:i}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,Ln.schemaHasRulesButRef)(t,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function V7(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Ln.checkStrictMode)(e,"default is ignored in the schema root")}function z7(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,I7.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function H7(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function mE({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)e.code((0,K._)`${Z.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let s=(0,K.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,K._)`${Z.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function K7(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=e;r.$async?t.if((0,K._)`${Z.default.errors} === 0`,()=>t.return(Z.default.data),()=>t.throw((0,K._)`new ${i}(${Z.default.vErrors})`)):(t.assign((0,K._)`${n}.errors`,Z.default.vErrors),o.unevaluated&&W7(e),t.return((0,K._)`${Z.default.errors} === 0`))}function W7({gen:e,evaluated:t,props:r,items:n}){r instanceof K.Name&&e.assign((0,K._)`${t}.props`,r),n instanceof K.Name&&e.assign((0,K._)`${t}.items`,n)}function sE(e,t,r,n){let{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=e,{RULES:u}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Ln.schemaHasRulesButRef)(o,u))){i.block(()=>yE(e,"$ref",u.all.$ref.definition));return}c.jtd||Y7(e,t),i.block(()=>{for(let m of u.rules)p(m);p(u.post)});function p(m){(0,f0.shouldUseGroup)(o,m)&&(m.type?(i.if((0,gp.checkDataType)(m.type,s,c.strictNumbers)),aE(e,m),t.length===1&&t[0]===m.type&&r&&(i.else(),(0,gp.reportTypeError)(e)),i.endIf()):aE(e,m),a||i.if((0,K._)`${Z.default.errors} === ${n||0}`))}}function aE(e,t){let{gen:r,schema:n,opts:{useDefaults:i}}=e;i&&(0,k7.assignDefaults)(e,t.type),r.block(()=>{for(let o of t.rules)(0,f0.shouldUseRule)(n,o)&&yE(e,o.keyword,o.definition,t.type)})}function Y7(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(G7(e,t),e.opts.allowUnionTypes||J7(e,t),X7(e,e.dataTypes))}function G7(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{hE(e.dataTypes,r)||d0(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Z7(e,t)}}function J7(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&d0(e,"use allowUnionTypes to allow union type keyword")}function X7(e,t){let r=e.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,f0.shouldUseRule)(e.schema,i)){let{type:o}=i.definition;o.length&&!o.some(s=>Q7(t,s))&&d0(e,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Q7(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function hE(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Z7(e,t){let r=[];for(let n of e.dataTypes)hE(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function d0(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,Ln.checkStrictMode)(e,t,e.opts.strictTypes)}var bp=class{constructor(t,r,n){if((0,Ic.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Ln.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",gE(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Ic.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",Z.default.errors))}result(t,r,n){this.failResult((0,K.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,K.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,K._)`${r} !== undefined && (${(0,K.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?kc.reportExtraError:kc.reportError)(this,this.def.error,r)}$dataError(){(0,kc.reportError)(this,this.def.$dataError||kc.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,kc.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=K.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=K.nil,r=K.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,K.or)((0,K._)`${i} === undefined`,r)),t!==K.nil&&n.assign(t,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==K.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,K.or)(s(),a());function s(){if(n.length){if(!(r instanceof K.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,K._)`${(0,gp.checkDataTypes)(c,r,o.opts.strictNumbers,gp.DataType.Wrong)}`}return K.nil}function a(){if(i.validateSchema){let c=t.scopeValue("validate$data",{ref:i.validateSchema});return(0,K._)`!${c}(${r})`}return K.nil}}subschema(t,r){let n=(0,p0.getSubschema)(this.it,t);(0,p0.extendSubschemaData)(n,this.it,t),(0,p0.extendSubschemaMode)(n,t);let i={...this.it,...n,items:void 0,props:void 0};return F7(i,r),i}mergeEvaluated(t,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=Ln.mergeEvaluated.props(i,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=Ln.mergeEvaluated.items(i,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(t,K.Name)),!0}};bi.KeywordCxt=bp;function yE(e,t,r,n){let i=new bp(e,r,t);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Ic.funcKeywordCode)(i,r):"macro"in r?(0,Ic.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Ic.funcKeywordCode)(i,r)}var eH=/^\/(?:[^~]|~0|~1)*$/,tH=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function gE(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let i,o;if(e==="")return Z.default.rootData;if(e[0]==="/"){if(!eH.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);i=e,o=Z.default.rootData}else{let l=tH.exec(e);if(!l)throw new Error(`Invalid JSON-pointer: ${e}`);let u=+l[1];if(i=l[2],i==="#"){if(u>=t)throw new Error(c("property/index",u));return n[t-u]}if(u>t)throw new Error(c("data",u));if(o=r[t-u],!i)return o}let s=o,a=i.split("/");for(let l of a)l&&(o=(0,K._)`${o}${(0,K.getProperty)((0,Ln.unescapeJsonPointer)(l))}`,s=(0,K._)`${s} && ${o}`);return s;function c(l,u){return`Cannot access ${l} ${u} levels up, current level is ${t}`}}bi.getData=gE});var vp=w(h0=>{"use strict";Object.defineProperty(h0,"__esModule",{value:!0});var m0=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};h0.default=m0});var jc=w(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});var y0=Nc(),g0=class extends Error{constructor(t,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,y0.resolveUrl)(t,r,n),this.missingSchema=(0,y0.normalizeId)((0,y0.getFullPath)(t,this.missingRef))}};b0.default=g0});var xp=w(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.resolveSchema=Ar.getCompilingSchema=Ar.resolveRef=Ar.compileSchema=Ar.SchemaEnv=void 0;var Ur=ae(),rH=vp(),_o=Mn(),Vr=Nc(),bE=Se(),nH=qc(),Ms=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,Vr.normalizeId)(n==null?void 0:n[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n==null?void 0:n.$async,this.refs={}}};Ar.SchemaEnv=Ms;function w0(e){let t=vE.call(this,e);if(t)return t;let r=(0,Vr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new Ur.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),a;e.$async&&(a=s.scopeValue("Error",{ref:rH.default,code:(0,Ur._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:_o.default.data,parentData:_o.default.parentData,parentDataProperty:_o.default.parentDataProperty,dataNames:[_o.default.data],dataPathArr:[Ur.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Ur.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Ur.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Ur._)`""`,opts:this.opts,self:this},u;try{this._compilations.add(e),(0,nH.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let p=s.toString();u=`${s.scopeRefs(_o.default.scope)}return ${p}`,this.opts.code.process&&(u=this.opts.code.process(u,e));let d=new Function(`${_o.default.self}`,`${_o.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:p,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=l;d.evaluated={props:f instanceof Ur.Name?void 0:f,items:h instanceof Ur.Name?void 0:h,dynamicProps:f instanceof Ur.Name,dynamicItems:h instanceof Ur.Name},d.source&&(d.source.evaluated=(0,Ur.stringify)(d.evaluated))}return e.validate=d,e}catch(p){throw delete e.validate,delete e.validateName,u&&this.logger.error("Error compiling schema, function code:",u),p}finally{this._compilations.delete(e)}}Ar.compileSchema=w0;function iH(e,t,r){var n;r=(0,Vr.resolveUrl)(this.opts.uriResolver,t,r);let i=e.refs[r];if(i)return i;let o=aH.call(this,e,r);if(o===void 0){let s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new Ms({schema:s,schemaId:a,root:e,baseId:t}))}if(o!==void 0)return e.refs[r]=oH.call(this,o)}Ar.resolveRef=iH;function oH(e){return(0,Vr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:w0.call(this,e)}function vE(e){for(let t of this._compilations)if(sH(t,e))return t}Ar.getCompilingSchema=vE;function sH(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function aH(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||wp.call(this,e,t)}function wp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Vr._getFullPath)(this.opts.uriResolver,r),i=(0,Vr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===i)return v0.call(this,r,e);let o=(0,Vr.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=wp.call(this,e,s);return typeof(a==null?void 0:a.schema)!="object"?void 0:v0.call(this,r,a)}if(typeof(s==null?void 0:s.schema)=="object"){if(s.validate||w0.call(this,s),o===(0,Vr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,Vr.resolveUrl)(this.opts.uriResolver,i,l)),new Ms({schema:a,schemaId:c,root:e,baseId:i})}return v0.call(this,r,s)}}Ar.resolveSchema=wp;var cH=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function v0(e,{baseId:t,schema:r,root:n}){var i;if(((i=e.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,bE.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!cH.has(a)&&l&&(t=(0,Vr.resolveUrl)(this.opts.uriResolver,t,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,bE.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Vr.resolveUrl)(this.opts.uriResolver,t,r.$ref);o=wp.call(this,n,a)}let{schemaId:s}=this.opts;if(o=o||new Ms({schema:r,schemaId:s,root:n,baseId:t}),o.schema!==o.root.schema)return o}});var wE=w((Bae,lH)=>{lH.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var SE=w((Uae,xE)=>{"use strict";var uH={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};xE.exports={HEX:uH}});var RE=w((Vae,CE)=>{"use strict";var{HEX:pH}=SE(),fH=/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u;function $E(e){if(AE(e,".")<3)return{host:e,isIPV4:!1};let t=e.match(fH)||[],[r]=t;return r?{host:mH(r,"."),isIPV4:!0}:{host:e,isIPV4:!1}}function x0(e,t=!1){let r="",n=!0;for(let i of e){if(pH[i]===void 0)return;i!=="0"&&n===!0&&(n=!1),n||(r+=i)}return t&&r.length===0&&(r="0"),r}function dH(e){let t=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,s=!1,a=!1;function c(){if(i.length){if(o===!1){let l=x0(i);if(l!==void 0)n.push(l);else return r.error=!0,!1}i.length=0}return!0}for(let l=0;l<e.length;l++){let u=e[l];if(!(u==="["||u==="]"))if(u===":"){if(s===!0&&(a=!0),!c())break;if(t++,n.push(":"),t>7){r.error=!0;break}l-1>=0&&e[l-1]===":"&&(s=!0);continue}else if(u==="%"){if(!c())break;o=!0}else{i.push(u);continue}}return i.length&&(o?r.zone=i.join(""):a?n.push(i.join("")):n.push(x0(i))),r.address=n.join(""),r}function EE(e){if(AE(e,":")<2)return{host:e,isIPV6:!1};let t=dH(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,escapedHost:n,isIPV6:!0}}}function mH(e,t){let r="",n=!0,i=e.length;for(let o=0;o<i;o++){let s=e[o];s==="0"&&n?(o+1<=i&&e[o+1]===t||o+1===i)&&(r+=s,n=!1):(s===t?n=!0:n=!1,r+=s)}return r}function AE(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}var _E=/^\.\.?\//u,OE=/^\/\.(?:\/|$)/u,PE=/^\/\.\.(?:\/|$)/u,hH=/^\/?(?:.|\n)*?(?=\/|$)/u;function yH(e){let t=[];for(;e.length;)if(e.match(_E))e=e.replace(_E,"");else if(e.match(OE))e=e.replace(OE,"/");else if(e.match(PE))e=e.replace(PE,"/"),t.pop();else if(e==="."||e==="..")e="";else{let r=e.match(hH);if(r){let n=r[0];e=e.slice(n.length),t.push(n)}else throw new Error("Unexpected dot segment condition")}return t.join("")}function gH(e,t){let r=t!==!0?escape:unescape;return e.scheme!==void 0&&(e.scheme=r(e.scheme)),e.userinfo!==void 0&&(e.userinfo=r(e.userinfo)),e.host!==void 0&&(e.host=r(e.host)),e.path!==void 0&&(e.path=r(e.path)),e.query!==void 0&&(e.query=r(e.query)),e.fragment!==void 0&&(e.fragment=r(e.fragment)),e}function bH(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host),n=$E(r);if(n.isIPV4)r=n.host;else{let i=EE(n.host);i.isIPV6===!0?r=`[${i.escapedHost}]`:r=e.host}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}CE.exports={recomposeAuthority:bH,normalizeComponentEncoding:gH,removeDotSegments:yH,normalizeIPv4:$E,normalizeIPv6:EE,stringArrayToHexStripped:x0}});var jE=w((zae,qE)=>{"use strict";var vH=/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu,wH=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;function TE(e){return typeof e.secure=="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}function NE(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function kE(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function xH(e){return e.secure=TE(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function SH(e){if((e.port===(TE(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function _H(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(wH);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let i=`${n}:${t.nid||e.nid}`,o=S0[i];e.path=void 0,o&&(e=o.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function OH(e,t){let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),i=`${r}:${t.nid||n}`,o=S0[i];o&&(e=o.serialize(e,t));let s=e,a=e.nss;return s.path=`${n||t.nid}:${a}`,t.skipEscape=!0,s}function PH(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!vH.test(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function $H(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var IE={scheme:"http",domainHost:!0,parse:NE,serialize:kE},EH={scheme:"https",domainHost:IE.domainHost,parse:NE,serialize:kE},Sp={scheme:"ws",domainHost:!0,parse:xH,serialize:SH},AH={scheme:"wss",domainHost:Sp.domainHost,parse:Sp.parse,serialize:Sp.serialize},CH={scheme:"urn",parse:_H,serialize:OH,skipNormalize:!0},RH={scheme:"urn:uuid",parse:PH,serialize:$H,skipNormalize:!0},S0={http:IE,https:EH,ws:Sp,wss:AH,urn:CH,"urn:uuid":RH};qE.exports=S0});var LE=w((Hae,Op)=>{"use strict";var{normalizeIPv6:TH,normalizeIPv4:NH,removeDotSegments:Mc,recomposeAuthority:kH,normalizeComponentEncoding:_p}=RE(),_0=jE();function IH(e,t){return typeof e=="string"?e=cn(Dn(e,t),t):typeof e=="object"&&(e=Dn(cn(e,t),t)),e}function qH(e,t,r){let n=Object.assign({scheme:"null"},r),i=ME(Dn(e,n),Dn(t,n),n,!0);return cn(i,{...n,skipEscape:!0})}function ME(e,t,r,n){let i={};return n||(e=Dn(cn(e,r),r),t=Dn(cn(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(i.scheme=t.scheme,i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Mc(t.path||""),i.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(i.userinfo=t.userinfo,i.host=t.host,i.port=t.port,i.path=Mc(t.path||""),i.query=t.query):(t.path?(t.path.charAt(0)==="/"?i.path=Mc(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?i.path="/"+t.path:e.path?i.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:i.path=t.path,i.path=Mc(i.path)),i.query=t.query):(i.path=e.path,t.query!==void 0?i.query=t.query:i.query=e.query),i.userinfo=e.userinfo,i.host=e.host,i.port=e.port),i.scheme=e.scheme),i.fragment=t.fragment,i}function jH(e,t,r){return typeof e=="string"?(e=unescape(e),e=cn(_p(Dn(e,r),!0),{...r,skipEscape:!0})):typeof e=="object"&&(e=cn(_p(e,!0),{...r,skipEscape:!0})),typeof t=="string"?(t=unescape(t),t=cn(_p(Dn(t,r),!0),{...r,skipEscape:!0})):typeof t=="object"&&(t=cn(_p(t,!0),{...r,skipEscape:!0})),e.toLowerCase()===t.toLowerCase()}function cn(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),i=[],o=_0[(n.scheme||r.scheme||"").toLowerCase()];o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=unescape(r.path):(r.path=escape(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let s=kH(r);if(s!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(s),r.path&&r.path.charAt(0)!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(a=Mc(a)),s===void 0&&(a=a.replace(/^\/\//u,"/%2F")),i.push(a)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var MH=Array.from({length:127},(e,t)=>/[^!"$&'()*+,\-.;=_`a-z{}~]/u.test(String.fromCharCode(t)));function LH(e){let t=0;for(let r=0,n=e.length;r<n;++r)if(t=e.charCodeAt(r),t>126||MH[t])return!0;return!1}var DH=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function Dn(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=e.indexOf("%")!==-1,o=!1;r.reference==="suffix"&&(e=(r.scheme?r.scheme+":":"")+"//"+e);let s=e.match(DH);if(s){if(n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]),n.host){let c=NH(n.host);if(c.isIPV4===!1){let l=TH(c.host);n.host=l.host.toLowerCase(),o=l.isIPV6}else n.host=c.host,o=!0}n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let a=_0[(r.scheme||n.scheme||"").toLowerCase()];if(!r.unicodeSupport&&(!a||!a.unicodeSupport)&&n.host&&(r.domainHost||a&&a.domainHost)&&o===!1&&LH(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(c){n.error=n.error||"Host's domain name can not be converted to ASCII: "+c}(!a||a&&!a.skipNormalize)&&(i&&n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),i&&n.host!==void 0&&(n.host=unescape(n.host)),n.path&&(n.path=escape(unescape(n.path))),n.fragment&&(n.fragment=encodeURI(decodeURIComponent(n.fragment)))),a&&a.parse&&a.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return n}var O0={SCHEMES:_0,normalize:IH,resolve:qH,resolveComponents:ME,equal:jH,serialize:cn,parse:Dn};Op.exports=O0;Op.exports.default=O0;Op.exports.fastUri=O0});var FE=w(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var DE=LE();DE.code='require("ajv/dist/runtime/uri").default';P0.default=DE});var YE=w(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.CodeGen=xt.Name=xt.nil=xt.stringify=xt.str=xt._=xt.KeywordCxt=void 0;var FH=qc();Object.defineProperty(xt,"KeywordCxt",{enumerable:!0,get:function(){return FH.KeywordCxt}});var Ls=ae();Object.defineProperty(xt,"_",{enumerable:!0,get:function(){return Ls._}});Object.defineProperty(xt,"str",{enumerable:!0,get:function(){return Ls.str}});Object.defineProperty(xt,"stringify",{enumerable:!0,get:function(){return Ls.stringify}});Object.defineProperty(xt,"nil",{enumerable:!0,get:function(){return Ls.nil}});Object.defineProperty(xt,"Name",{enumerable:!0,get:function(){return Ls.Name}});Object.defineProperty(xt,"CodeGen",{enumerable:!0,get:function(){return Ls.CodeGen}});var BH=vp(),HE=jc(),UH=r0(),Lc=xp(),VH=ae(),Dc=Nc(),Pp=Tc(),E0=Se(),BE=wE(),zH=FE(),KE=(e,t)=>new RegExp(e,t);KE.code="new RegExp";var HH=["removeAdditional","useDefaults","coerceTypes"],KH=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),WH={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},YH={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},UE=200;function GH(e){var t,r,n,i,o,s,a,c,l,u,p,m,d,f,h,y,g,b,v,x,S,C,_,$,E;let q=e.strict,O=(t=e.code)===null||t===void 0?void 0:t.optimize,P=O===!0||O===void 0?1:O||0,N=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:KE,D=(i=e.uriResolver)!==null&&i!==void 0?i:zH.default;return{strictSchema:(s=(o=e.strictSchema)!==null&&o!==void 0?o:q)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:q)!==null&&c!==void 0?c:!0,strictTypes:(u=(l=e.strictTypes)!==null&&l!==void 0?l:q)!==null&&u!==void 0?u:"log",strictTuples:(m=(p=e.strictTuples)!==null&&p!==void 0?p:q)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:q)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:P,regExp:N}:{optimize:P,regExp:N},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:UE,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:UE,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(C=e.validateSchema)!==null&&C!==void 0?C:!0,validateFormats:(_=e.validateFormats)!==null&&_!==void 0?_:!0,unicodeRegExp:($=e.unicodeRegExp)!==null&&$!==void 0?$:!0,int32range:(E=e.int32range)!==null&&E!==void 0?E:!0,uriResolver:D}}var Fc=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...GH(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new VH.ValueScope({scope:{},prefixes:KH,es5:r,lines:n}),this.logger=tK(t.logger);let i=t.validateFormats;t.validateFormats=!1,this.RULES=(0,UH.getRules)(),VE.call(this,WH,t,"NOT SUPPORTED"),VE.call(this,YH,t,"DEPRECATED","warn"),this._metaOpts=ZH.call(this),t.formats&&XH.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&QH.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),JH.call(this),t.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,i=BE;n==="id"&&(i={...BE},i.id=i.$id,delete i.$id),r&&t&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,t,r);async function i(u,p){await o.call(this,u.$schema);let m=this._addSchema(u,p);return m.validate||s.call(this,m)}async function o(u){u&&!this.getSchema(u)&&await i.call(this,{$ref:u},!0)}async function s(u){try{return this._compileSchemaEnv(u)}catch(p){if(!(p instanceof HE.default))throw p;return a.call(this,p),await c.call(this,p.missingSchema),s.call(this,u)}}function a({missingSchema:u,missingRef:p}){if(this.refs[u])throw new Error(`AnySchema ${u} is loaded but ${p} cannot be resolved`)}async function c(u){let p=await l.call(this,u);this.refs[u]||await o.call(this,p.$schema),this.refs[u]||this.addSchema(p,u,r)}async function l(u){let p=this._loading[u];if(p)return p;try{return await(this._loading[u]=n(u))}finally{delete this._loading[u]}}}addSchema(t,r,n,i=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,i);return this}let o;if(typeof t=="object"){let{schemaId:s}=this.opts;if(o=t[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,Dc.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,i,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,t);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(t){let r;for(;typeof(r=zE.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Lc.SchemaEnv({schema:{},schemaId:n});if(r=Lc.resolveSchema.call(this,i,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=zE.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Dc.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(nK.call(this,n,r),!r)return(0,E0.eachItem)(n,o=>$0.call(this,o)),this;oK.call(this,r);let i={...r,type:(0,Pp.getJSONTypes)(r.type),schemaType:(0,Pp.getJSONTypes)(r.schemaType)};return(0,E0.eachItem)(n,i.type.length===0?o=>$0.call(this,o,i):o=>i.type.forEach(s=>$0.call(this,o,i,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===t);i>=0&&n.rules.splice(i,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let i of r){let o=i.split("/").slice(1),s=t;for(let a of o)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,u=s[a];l&&u&&(s[a]=WE(u))}}return t}_removeAllSchemas(t,r){for(let n in t){let i=t[n];(!r||r.test(n))&&(typeof i=="string"?delete t[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete t[n]))}}_addSchema(t,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Dc.normalizeId)(s||n);let l=Dc.getSchemaRefs.call(this,t,n);return c=new Lc.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Lc.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Lc.compileSchema.call(this,t)}finally{this.opts=r}}};Fc.ValidationError=BH.default;Fc.MissingRefError=HE.default;xt.default=Fc;function VE(e,t,r,n="error"){for(let i in e){let o=i;o in t&&this.logger[n](`${r}: option ${i}. ${e[o]}`)}}function zE(e){return e=(0,Dc.normalizeId)(e),this.schemas[e]||this.refs[e]}function JH(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function XH(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function QH(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function ZH(){let e={...this.opts};for(let t of HH)delete e[t];return e}var eK={log(){},warn(){},error(){}};function tK(e){if(e===!1)return eK;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var rK=/^[a-z_$][a-z0-9_$:-]*$/i;function nK(e,t){let{RULES:r}=this;if((0,E0.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!rK.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function $0(e,t,r){var n;let i=t==null?void 0:t.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=i?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,Pp.getJSONTypes)(t.type),schemaType:(0,Pp.getJSONTypes)(t.schemaType)}};t.before?iK.call(this,s,a,t.before):s.rules.push(a),o.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function iK(e,t,r){let n=e.rules.findIndex(i=>i.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function oK(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=WE(t)),e.validateSchema=this.compile(t,!0))}var sK={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function WE(e){return{anyOf:[e,sK]}}});var GE=w(A0=>{"use strict";Object.defineProperty(A0,"__esModule",{value:!0});var aK={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};A0.default=aK});var ZE=w(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.callRef=Oo.getValidate=void 0;var cK=jc(),JE=Er(),or=ae(),Ds=Mn(),XE=xp(),$p=Se(),lK={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return p();let u=XE.resolveRef.call(c,l,i,r);if(u===void 0)throw new cK.default(n.opts.uriResolver,i,r);if(u instanceof XE.SchemaEnv)return m(u);return d(u);function p(){if(o===l)return Ep(e,s,o,o.$async);let f=t.scopeValue("root",{ref:l});return Ep(e,(0,or._)`${f}.validate`,l,l.$async)}function m(f){let h=QE(e,f);Ep(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,or.stringify)(f)}:{ref:f}),y=t.name("valid"),g=e.subschema({schema:f,dataTypes:[],schemaPath:or.nil,topSchemaRef:h,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function QE(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,or._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Oo.getValidate=QE;function Ep(e,t,r,n){let{gen:i,it:o}=e,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Ds.default.this:or.nil;n?u():p();function u(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=i.let("valid");i.try(()=>{i.code((0,or._)`await ${(0,JE.callValidateCode)(e,t,l)}`),d(t),s||i.assign(f,!0)},h=>{i.if((0,or._)`!(${h} instanceof ${o.ValidationError})`,()=>i.throw(h)),m(h),s||i.assign(f,!1)}),e.ok(f)}function p(){e.result((0,JE.callValidateCode)(e,t,l),()=>d(t),()=>m(t))}function m(f){let h=(0,or._)`${f}.errors`;i.assign(Ds.default.vErrors,(0,or._)`${Ds.default.vErrors} === null ? ${h} : ${Ds.default.vErrors}.concat(${h})`),i.assign(Ds.default.errors,(0,or._)`${Ds.default.vErrors}.length`)}function d(f){var h;if(!o.opts.unevaluated)return;let y=(h=r==null?void 0:r.validate)===null||h===void 0?void 0:h.evaluated;if(o.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(o.props=$p.mergeEvaluated.props(i,y.props,o.props));else{let g=i.var("props",(0,or._)`${f}.evaluated.props`);o.props=$p.mergeEvaluated.props(i,g,o.props,or.Name)}if(o.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(o.items=$p.mergeEvaluated.items(i,y.items,o.items));else{let g=i.var("items",(0,or._)`${f}.evaluated.items`);o.items=$p.mergeEvaluated.items(i,g,o.items,or.Name)}}}Oo.callRef=Ep;Oo.default=lK});var eA=w(C0=>{"use strict";Object.defineProperty(C0,"__esModule",{value:!0});var uK=GE(),pK=ZE(),fK=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",uK.default,pK.default];C0.default=fK});var tA=w(R0=>{"use strict";Object.defineProperty(R0,"__esModule",{value:!0});var Ap=ae(),vi=Ap.operators,Cp={maximum:{okStr:"<=",ok:vi.LTE,fail:vi.GT},minimum:{okStr:">=",ok:vi.GTE,fail:vi.LT},exclusiveMaximum:{okStr:"<",ok:vi.LT,fail:vi.GTE},exclusiveMinimum:{okStr:">",ok:vi.GT,fail:vi.LTE}},dK={message:({keyword:e,schemaCode:t})=>(0,Ap.str)`must be ${Cp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ap._)`{comparison: ${Cp[e].okStr}, limit: ${t}}`},mK={keyword:Object.keys(Cp),type:"number",schemaType:"number",$data:!0,error:dK,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Ap._)`${r} ${Cp[t].fail} ${n} || isNaN(${r})`)}};R0.default=mK});var rA=w(T0=>{"use strict";Object.defineProperty(T0,"__esModule",{value:!0});var Bc=ae(),hK={message:({schemaCode:e})=>(0,Bc.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Bc._)`{multipleOf: ${e}}`},yK={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:hK,code(e){let{gen:t,data:r,schemaCode:n,it:i}=e,o=i.opts.multipleOfPrecision,s=t.let("res"),a=o?(0,Bc._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,Bc._)`${s} !== parseInt(${s})`;e.fail$data((0,Bc._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};T0.default=yK});var iA=w(N0=>{"use strict";Object.defineProperty(N0,"__esModule",{value:!0});function nA(e){let t=e.length,r=0,n=0,i;for(;n<t;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<t&&(i=e.charCodeAt(n),(i&64512)===56320&&n++);return r}N0.default=nA;nA.code='require("ajv/dist/runtime/ucs2length").default'});var oA=w(k0=>{"use strict";Object.defineProperty(k0,"__esModule",{value:!0});var Po=ae(),gK=Se(),bK=iA(),vK={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Po.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Po._)`{limit: ${e}}`},wK={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:vK,code(e){let{keyword:t,data:r,schemaCode:n,it:i}=e,o=t==="maxLength"?Po.operators.GT:Po.operators.LT,s=i.opts.unicode===!1?(0,Po._)`${r}.length`:(0,Po._)`${(0,gK.useFunc)(e.gen,bK.default)}(${r})`;e.fail$data((0,Po._)`${s} ${o} ${n}`)}};k0.default=wK});var sA=w(I0=>{"use strict";Object.defineProperty(I0,"__esModule",{value:!0});var xK=Er(),Rp=ae(),SK={message:({schemaCode:e})=>(0,Rp.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Rp._)`{pattern: ${e}}`},_K={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:SK,code(e){let{data:t,$data:r,schema:n,schemaCode:i,it:o}=e,s=o.opts.unicodeRegExp?"u":"",a=r?(0,Rp._)`(new RegExp(${i}, ${s}))`:(0,xK.usePattern)(e,n);e.fail$data((0,Rp._)`!${a}.test(${t})`)}};I0.default=_K});var aA=w(q0=>{"use strict";Object.defineProperty(q0,"__esModule",{value:!0});var Uc=ae(),OK={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Uc.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Uc._)`{limit: ${e}}`},PK={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:OK,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxProperties"?Uc.operators.GT:Uc.operators.LT;e.fail$data((0,Uc._)`Object.keys(${r}).length ${i} ${n}`)}};q0.default=PK});var cA=w(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});var Vc=Er(),zc=ae(),$K=Se(),EK={message:({params:{missingProperty:e}})=>(0,zc.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,zc._)`{missingProperty: ${e}}`},AK={keyword:"required",type:"object",schemaType:"array",$data:!0,error:EK,code(e){let{gen:t,schema:r,schemaCode:n,data:i,$data:o,it:s}=e,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():u(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if((d==null?void 0:d[h])===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,$K.checkStrictMode)(s,g,s.opts.strictRequired)}}function l(){if(c||o)e.block$data(zc.nil,p);else for(let d of r)(0,Vc.checkReportMissingProp)(e,d)}function u(){let d=t.let("missing");if(c||o){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,Vc.checkMissingProp)(e,r,d)),(0,Vc.reportMissingProp)(e,d),t.else()}function p(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Vc.noPropertyInData)(t,i,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,Vc.propertyInData)(t,i,d,a.ownProperties)),t.if((0,zc.not)(f),()=>{e.error(),t.break()})},zc.nil)}}};j0.default=AK});var lA=w(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});var Hc=ae(),CK={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Hc.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Hc._)`{limit: ${e}}`},RK={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:CK,code(e){let{keyword:t,data:r,schemaCode:n}=e,i=t==="maxItems"?Hc.operators.GT:Hc.operators.LT;e.fail$data((0,Hc._)`${r}.length ${i} ${n}`)}};M0.default=RK});var Tp=w(L0=>{"use strict";Object.defineProperty(L0,"__esModule",{value:!0});var uA=nc();uA.code='require("ajv/dist/runtime/equal").default';L0.default=uA});var pA=w(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});var D0=Tc(),St=ae(),TK=Se(),NK=Tp(),kK={message:({params:{i:e,j:t}})=>(0,St.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,St._)`{i: ${e}, j: ${t}}`},IK={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:kK,code(e){let{gen:t,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=e;if(!n&&!i)return;let c=t.let("valid"),l=o.items?(0,D0.getSchemaTypes)(o.items):[];e.block$data(c,u,(0,St._)`${s} === false`),e.ok(c);function u(){let f=t.let("i",(0,St._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,St._)`${f} > 1`,()=>(p()?m:d)(f,h))}function p(){return l.length>0&&!l.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),g=(0,D0.checkDataTypes)(l,y,a.opts.strictNumbers,D0.DataType.Wrong),b=t.const("indices",(0,St._)`{}`);t.for((0,St._)`;${f}--;`,()=>{t.let(y,(0,St._)`${r}[${f}]`),t.if(g,(0,St._)`continue`),l.length>1&&t.if((0,St._)`typeof ${y} == "string"`,(0,St._)`${y} += "_"`),t.if((0,St._)`typeof ${b}[${y}] == "number"`,()=>{t.assign(h,(0,St._)`${b}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,St._)`${b}[${y}] = ${f}`)})}function d(f,h){let y=(0,TK.useFunc)(t,NK.default),g=t.name("outer");t.label(g).for((0,St._)`;${f}--;`,()=>t.for((0,St._)`${h} = ${f}; ${h}--;`,()=>t.if((0,St._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};F0.default=IK});var fA=w(U0=>{"use strict";Object.defineProperty(U0,"__esModule",{value:!0});var B0=ae(),qK=Se(),jK=Tp(),MK={message:"must be equal to constant",params:({schemaCode:e})=>(0,B0._)`{allowedValue: ${e}}`},LK={keyword:"const",$data:!0,error:MK,code(e){let{gen:t,data:r,$data:n,schemaCode:i,schema:o}=e;n||o&&typeof o=="object"?e.fail$data((0,B0._)`!${(0,qK.useFunc)(t,jK.default)}(${r}, ${i})`):e.fail((0,B0._)`${o} !== ${r}`)}};U0.default=LK});var dA=w(V0=>{"use strict";Object.defineProperty(V0,"__esModule",{value:!0});var Kc=ae(),DK=Se(),FK=Tp(),BK={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Kc._)`{allowedValues: ${e}}`},UK={keyword:"enum",schemaType:"array",$data:!0,error:BK,code(e){let{gen:t,data:r,$data:n,schema:i,schemaCode:o,it:s}=e;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,c,l=()=>c!=null?c:c=(0,DK.useFunc)(t,FK.default),u;if(a||n)u=t.let("valid"),e.block$data(u,p);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let d=t.const("vSchema",o);u=(0,Kc.or)(...i.map((f,h)=>m(d,h)))}e.pass(u);function p(){t.assign(u,!1),t.forOf("v",o,d=>t.if((0,Kc._)`${l()}(${r}, ${d})`,()=>t.assign(u,!0).break()))}function m(d,f){let h=i[f];return typeof h=="object"&&h!==null?(0,Kc._)`${l()}(${r}, ${d}[${f}])`:(0,Kc._)`${r} === ${h}`}}};V0.default=UK});var mA=w(z0=>{"use strict";Object.defineProperty(z0,"__esModule",{value:!0});var VK=tA(),zK=rA(),HK=oA(),KK=sA(),WK=aA(),YK=cA(),GK=lA(),JK=pA(),XK=fA(),QK=dA(),ZK=[VK.default,zK.default,HK.default,KK.default,WK.default,YK.default,GK.default,JK.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},XK.default,QK.default];z0.default=ZK});var K0=w(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.validateAdditionalItems=void 0;var $o=ae(),H0=Se(),eW={message:({params:{len:e}})=>(0,$o.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,$o._)`{limit: ${e}}`},tW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:eW,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,H0.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}hA(e,n)}};function hA(e,t){let{gen:r,schema:n,data:i,keyword:o,it:s}=e;s.items=!0;let a=r.const("len",(0,$o._)`${i}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,$o._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,H0.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,$o._)`${a} <= ${t.length}`);r.if((0,$o.not)(l),()=>c(l)),e.ok(l)}function c(l){r.forRange("i",t.length,a,u=>{e.subschema({keyword:o,dataProp:u,dataPropType:H0.Type.Num},l),s.allErrors||r.if((0,$o.not)(l),()=>r.break())})}}Wc.validateAdditionalItems=hA;Wc.default=tW});var W0=w(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.validateTuple=void 0;var yA=ae(),Np=Se(),rW=Er(),nW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return gA(e,"additionalItems",t);r.items=!0,!(0,Np.alwaysValidSchema)(r,t)&&e.ok((0,rW.validateArray)(e))}};function gA(e,t,r=e.schema){let{gen:n,parentSchema:i,data:o,keyword:s,it:a}=e;u(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Np.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,yA._)`${o}.length`);r.forEach((p,m)=>{(0,Np.alwaysValidSchema)(a,p)||(n.if((0,yA._)`${l} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function u(p){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===p.minItems&&(f===p.maxItems||p[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Np.checkStrictMode)(a,y,m.strictTuples)}}}Yc.validateTuple=gA;Yc.default=nW});var bA=w(Y0=>{"use strict";Object.defineProperty(Y0,"__esModule",{value:!0});var iW=W0(),oW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,iW.validateTuple)(e,"items")};Y0.default=oW});var wA=w(G0=>{"use strict";Object.defineProperty(G0,"__esModule",{value:!0});var vA=ae(),sW=Se(),aW=Er(),cW=K0(),lW={message:({params:{len:e}})=>(0,vA.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,vA._)`{limit: ${e}}`},uW={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:lW,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:i}=r;n.items=!0,!(0,sW.alwaysValidSchema)(n,t)&&(i?(0,cW.validateAdditionalItems)(e,i):e.ok((0,aW.validateArray)(e)))}};G0.default=uW});var xA=w(J0=>{"use strict";Object.defineProperty(J0,"__esModule",{value:!0});var Cr=ae(),kp=Se(),pW={message:({params:{min:e,max:t}})=>t===void 0?(0,Cr.str)`must contain at least ${e} valid item(s)`:(0,Cr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Cr._)`{minContains: ${e}}`:(0,Cr._)`{minContains: ${e}, maxContains: ${t}}`},fW={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:pW,code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e,s,a,{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let u=t.const("len",(0,Cr._)`${i}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,kp.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,kp.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,kp.alwaysValidSchema)(o,r)){let h=(0,Cr._)`${u} >= ${s}`;a!==void 0&&(h=(0,Cr._)`${h} && ${u} <= ${a}`),e.pass(h);return}o.items=!0;let p=t.name("valid");a===void 0&&s===1?d(p,()=>t.if(p,()=>t.break())):s===0?(t.let(p,!0),a!==void 0&&t.if((0,Cr._)`${i}.length > 0`,m)):(t.let(p,!1),m()),e.result(p,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,u,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:kp.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,Cr._)`${h}++`),a===void 0?t.if((0,Cr._)`${h} >= ${s}`,()=>t.assign(p,!0).break()):(t.if((0,Cr._)`${h} > ${a}`,()=>t.assign(p,!1).break()),s===1?t.assign(p,!0):t.if((0,Cr._)`${h} >= ${s}`,()=>t.assign(p,!0)))}}};J0.default=fW});var OA=w(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.validateSchemaDeps=ln.validatePropertyDeps=ln.error=void 0;var X0=ae(),dW=Se(),Gc=Er();ln.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,X0.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,X0._)`{property: ${e},
|
|
13
13
|
missingProperty: ${n},
|
|
14
14
|
depsCount: ${t},
|
|
15
|
-
deps: ${r}}`};var mW={keyword:"dependencies",type:"object",schemaType:"object",error:ln.error,code(e){let[t,r]=hW(e);SA(e,t),_A(e,r)}};function hW({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function SA(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Gc.propertyInData)(r,n,s,i.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,Gc.checkReportMissingProp)(e,l)}):(r.if((0,X0._)`${c} && (${(0,Gc.checkMissingProp)(e,a,o)})`),(0,Gc.reportMissingProp)(e,o),r.else())}}ln.validatePropertyDeps=SA;function _A(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,s=r.name("valid");for(let a in t)(0,dW.alwaysValidSchema)(o,t[a])||(r.if((0,Gc.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}ln.validateSchemaDeps=_A;ln.default=mW});var $A=w(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});var PA=ae(),yW=Se(),gW={message:"property name must be valid",params:({params:e})=>(0,PA._)`{propertyName: ${e.propertyName}}`},bW={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:gW,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,yW.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,PA.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Q0.default=bW});var eb=w(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});var Ip=Er(),zr=ae(),vW=Mn(),qp=Se(),wW={message:"must NOT have additional properties",params:({params:e})=>(0,zr._)`{additionalProperty: ${e.additionalProperty}}`},xW={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:wW,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,qp.alwaysValidSchema)(s,r))return;let l=(0,Ip.allSchemaProperties)(n.properties),u=(0,Ip.allSchemaProperties)(n.patternProperties);p(),e.ok((0,zr._)`${o} === ${vW.default.errors}`);function p(){t.forIn("key",i,y=>{!l.length&&!u.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let g;if(l.length>8){let b=(0,qp.schemaRefOrVal)(s,n.properties,"properties");g=(0,Ip.isOwnProperty)(t,b,y)}else l.length?g=(0,zr.or)(...l.map(b=>(0,zr._)`${y} === ${b}`)):g=zr.nil;return u.length&&(g=(0,zr.or)(g,...u.map(b=>(0,zr._)`${(0,Ip.usePattern)(e,b)}.test(${y})`))),(0,zr.not)(g)}function d(y){t.code((0,zr._)`delete ${i}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,qp.alwaysValidSchema)(s,r)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,zr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,zr.not)(g),()=>t.break()))}}function h(y,g,b){let v={keyword:"additionalProperties",dataProp:y,dataPropType:qp.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,g)}}};Z0.default=xW});var CA=w(rb=>{"use strict";Object.defineProperty(rb,"__esModule",{value:!0});var SW=qc(),EA=Er(),tb=Se(),AA=eb(),_W={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&AA.default.code(new SW.KeywordCxt(o,AA.default,"additionalProperties"));let s=(0,EA.allSchemaProperties)(r);for(let p of s)o.definedProperties.add(p);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=tb.mergeEvaluated.props(t,(0,tb.toHash)(s),o.props));let a=s.filter(p=>!(0,tb.alwaysValidSchema)(o,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,EA.propertyInData)(t,i,p,o.opts.ownProperties)),u(p),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};rb.default=_W});var kA=w(nb=>{"use strict";Object.defineProperty(nb,"__esModule",{value:!0});var RA=Er(),jp=ae(),TA=Se(),NA=Se(),OW={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,RA.allSchemaProperties)(r),c=a.filter(h=>(0,TA.alwaysValidSchema)(o,r[h]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof jp.Name)&&(o.props=(0,NA.evaluatedPropsToName)(t,o.props));let{props:p}=o;m();function m(){for(let h of a)l&&d(h),o.allErrors?f(h):(t.var(u,!0),f(h),t.if(u))}function d(h){for(let y in l)new RegExp(h).test(y)&&(0,TA.checkStrictMode)(o,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,jp._)`${(0,RA.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:NA.Type.Str},u),o.opts.unevaluated&&p!==!0?t.assign((0,jp._)`${p}[${y}]`,!0):!g&&!o.allErrors&&t.if((0,jp.not)(u),()=>t.break())})})}}};nb.default=OW});var IA=w(ib=>{"use strict";Object.defineProperty(ib,"__esModule",{value:!0});var PW=Se(),$W={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,PW.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};ib.default=$W});var qA=w(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});var EW=Er(),AW={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:EW.validateUnion,error:{message:"must match a schema in anyOf"}};ob.default=AW});var jA=w(sb=>{"use strict";Object.defineProperty(sb,"__esModule",{value:!0});var Mp=ae(),CW=Se(),RW={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Mp._)`{passingSchemas: ${e.passing}}`},TW={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:RW,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,p)=>{let m;(0,CW.alwaysValidSchema)(i,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,Mp._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Mp._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,p),m&&e.mergeEvaluated(m,Mp.Name)})})}}};sb.default=TW});var MA=w(ab=>{"use strict";Object.defineProperty(ab,"__esModule",{value:!0});var NW=Se(),kW={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,s)=>{if((0,NW.alwaysValidSchema)(n,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};ab.default=kW});var FA=w(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});var Lp=ae(),DA=Se(),IW={message:({params:e})=>(0,Lp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Lp._)`{failingKeyword: ${e.ifClause}}`},qW={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:IW,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,DA.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=LA(n,"then"),o=LA(n,"else");if(!i&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,Lp.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(m,s),p?t.assign(p,(0,Lp._)`${u}`):e.setParams({ifClause:u})}}}};function LA(e,t){let r=e.schema[t];return r!==void 0&&!(0,DA.alwaysValidSchema)(e,r)}cb.default=qW});var BA=w(lb=>{"use strict";Object.defineProperty(lb,"__esModule",{value:!0});var jW=Se(),MW={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,jW.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};lb.default=MW});var UA=w(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0});var LW=K0(),DW=bA(),FW=W0(),BW=wA(),UW=xA(),VW=OA(),zW=$A(),HW=eb(),KW=CA(),WW=kA(),YW=IA(),GW=qA(),JW=jA(),XW=MA(),QW=FA(),ZW=BA();function eY(e=!1){let t=[YW.default,GW.default,JW.default,XW.default,QW.default,ZW.default,zW.default,HW.default,VW.default,KW.default,WW.default];return e?t.push(DW.default,BW.default):t.push(LW.default,FW.default),t.push(UW.default),t}ub.default=eY});var VA=w(pb=>{"use strict";Object.defineProperty(pb,"__esModule",{value:!0});var Je=ae(),tY={message:({schemaCode:e})=>(0,Je.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Je._)`{format: ${e}}`},rY={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:tY,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;i?m():d();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),h=r.const("fDef",(0,Je._)`${f}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Je._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Je._)`${h}.type || "string"`).assign(g,(0,Je._)`${h}.validate`),()=>r.assign(y,(0,Je._)`"string"`).assign(g,h)),e.fail$data((0,Je.or)(b(),v()));function b(){return c.strictSchema===!1?Je.nil:(0,Je._)`${s} && !${g}`}function v(){let x=u.$async?(0,Je._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Je._)`${g}(${n})`,S=(0,Je._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,Je._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function d(){let f=p.formats[o];if(!f){b();return}if(f===!0)return;let[h,y,g]=v(f);h===t&&e.pass(x());function b(){if(c.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function v(S){let C=S instanceof RegExp?(0,Je.regexpCode)(S):c.code.formats?(0,Je._)`${c.code.formats}${(0,Je.getProperty)(o)}`:void 0,_=r.scopeValue("formats",{key:o,ref:S,code:C});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Je._)`${_}.validate`]:["string",S,_]}function x(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Je._)`await ${g}(${n})`}return typeof y=="function"?(0,Je._)`${g}(${n})`:(0,Je._)`${g}.test(${n})`}}}};pb.default=rY});var zA=w(fb=>{"use strict";Object.defineProperty(fb,"__esModule",{value:!0});var nY=VA(),iY=[nY.default];fb.default=iY});var HA=w(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.contentVocabulary=Fs.metadataVocabulary=void 0;Fs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Fs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var WA=w(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});var oY=eA(),sY=mA(),aY=UA(),cY=zA(),KA=HA(),lY=[oY.default,sY.default,(0,aY.default)(),cY.default,KA.metadataVocabulary,KA.contentVocabulary];db.default=lY});var GA=w(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.DiscrError=void 0;var YA;(function(e){e.Tag="tag",e.Mapping="mapping"})(YA||(Dp.DiscrError=YA={}))});var XA=w(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0});var Bs=ae(),mb=GA(),JA=xp(),uY=jc(),pY=Se(),fY={message:({params:{discrError:e,tagName:t}})=>e===mb.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Bs._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},dY={keyword:"discriminator",type:"object",schemaType:"object",error:fY,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Bs._)`${r}${(0,Bs.getProperty)(a)}`);t.if((0,Bs._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:mb.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){let d=m();t.if(!1);for(let f in d)t.elseIf((0,Bs._)`${l} === ${f}`),t.assign(c,p(d[f]));t.else(),e.error(!1,{discrError:mb.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function p(d){let f=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:d},f);return e.mergeEvaluated(h,Bs.Name),f}function m(){var d;let f={},h=g(i),y=!0;for(let x=0;x<s.length;x++){let S=s[x];if(S!=null&&S.$ref&&!(0,pY.schemaHasRulesButRef)(S,o.self.RULES)){let _=S.$ref;if(S=JA.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,_),S instanceof JA.SchemaEnv&&(S=S.schema),S===void 0)throw new uY.default(o.opts.uriResolver,o.baseId,_)}let C=(d=S==null?void 0:S.properties)===null||d===void 0?void 0:d[a];if(typeof C!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||g(S)),b(C,x)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return f;function g({required:x}){return Array.isArray(x)&&x.includes(a)}function b(x,S){if(x.const)v(x.const,S);else if(x.enum)for(let C of x.enum)v(C,S);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function v(x,S){if(typeof x!="string"||x in f)throw new Error(`discriminator: "${a}" values must be unique strings`);f[x]=S}}}};hb.default=dY});var QA=w((kce,mY)=>{mY.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var eC=w((Me,yb)=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MissingRefError=Me.ValidationError=Me.CodeGen=Me.Name=Me.nil=Me.stringify=Me.str=Me._=Me.KeywordCxt=Me.Ajv=void 0;var hY=YE(),yY=WA(),gY=XA(),ZA=QA(),bY=["/properties"],Fp="http://json-schema.org/draft-07/schema",Us=class extends hY.default{_addVocabularies(){super._addVocabularies(),yY.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(gY.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(ZA,bY):ZA;this.addMetaSchema(t,Fp,!1),this.refs["http://json-schema.org/schema"]=Fp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Fp)?Fp:void 0)}};Me.Ajv=Us;yb.exports=Me=Us;yb.exports.Ajv=Us;Object.defineProperty(Me,"__esModule",{value:!0});Me.default=Us;var vY=qc();Object.defineProperty(Me,"KeywordCxt",{enumerable:!0,get:function(){return vY.KeywordCxt}});var Vs=ae();Object.defineProperty(Me,"_",{enumerable:!0,get:function(){return Vs._}});Object.defineProperty(Me,"str",{enumerable:!0,get:function(){return Vs.str}});Object.defineProperty(Me,"stringify",{enumerable:!0,get:function(){return Vs.stringify}});Object.defineProperty(Me,"nil",{enumerable:!0,get:function(){return Vs.nil}});Object.defineProperty(Me,"Name",{enumerable:!0,get:function(){return Vs.Name}});Object.defineProperty(Me,"CodeGen",{enumerable:!0,get:function(){return Vs.CodeGen}});var wY=vp();Object.defineProperty(Me,"ValidationError",{enumerable:!0,get:function(){return wY.default}});var xY=jc();Object.defineProperty(Me,"MissingRefError",{enumerable:!0,get:function(){return xY.default}})});var tC=w(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.formatLimitDefinition=void 0;var SY=eC(),Hr=ae(),wi=Hr.operators,Bp={formatMaximum:{okStr:"<=",ok:wi.LTE,fail:wi.GT},formatMinimum:{okStr:">=",ok:wi.GTE,fail:wi.LT},formatExclusiveMaximum:{okStr:"<",ok:wi.LT,fail:wi.GTE},formatExclusiveMinimum:{okStr:">",ok:wi.GT,fail:wi.LTE}},_Y={message:({keyword:e,schemaCode:t})=>Hr.str`should be ${Bp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Hr._`{comparison: ${Bp[e].okStr}, limit: ${t}}`};zs.formatLimitDefinition={keyword:Object.keys(Bp),type:"string",schemaType:"string",$data:!0,error:_Y,code(e){let{gen:t,data:r,schemaCode:n,keyword:i,it:o}=e,{opts:s,self:a}=o;if(!s.validateFormats)return;let c=new SY.KeywordCxt(o,a.RULES.all.format.definition,"format");c.$data?l():u();function l(){let m=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=t.const("fmt",Hr._`${m}[${c.schemaCode}]`);e.fail$data(Hr.or(Hr._`typeof ${d} != "object"`,Hr._`${d} instanceof RegExp`,Hr._`typeof ${d}.compare != "function"`,p(d)))}function u(){let m=c.schema,d=a.formats[m];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${i}": format "${m}" does not define "compare" function`);let f=t.scopeValue("formats",{key:m,ref:d,code:s.code.formats?Hr._`${s.code.formats}${Hr.getProperty(m)}`:void 0});e.fail$data(p(f))}function p(m){return Hr._`${m}.compare(${r}, ${n}) ${Bp[i].fail} 0`}},dependencies:["format"]};var OY=e=>(e.addKeyword(zs.formatLimitDefinition),e);zs.default=OY});var vb=w((Jc,iC)=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var Hs=O$(),PY=tC(),gb=ae(),rC=new gb.Name("fullFormats"),$Y=new gb.Name("fastFormats"),bb=(e,t={keywords:!0})=>{if(Array.isArray(t))return nC(e,t,Hs.fullFormats,rC),e;let[r,n]=t.mode==="fast"?[Hs.fastFormats,$Y]:[Hs.fullFormats,rC],i=t.formats||Hs.formatNames;return nC(e,i,r,n),t.keywords&&PY.default(e),e};bb.get=(e,t="full")=>{let n=(t==="fast"?Hs.fastFormats:Hs.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function nC(e,t,r,n){var i,o;(i=(o=e.opts.code).formats)!==null&&i!==void 0||(o.formats=gb._`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}iC.exports=Jc=bb;Object.defineProperty(Jc,"__esModule",{value:!0});Jc.default=bb});var nl=w(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});var Zs;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(Zs=mn.Kind||(mn.Kind={}));function GG(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:Zs.MAPPING,parent:null,errors:[]};return n}mn.newMapping=GG;function JG(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:Zs.ANCHOR_REF,parent:null}}mn.newAnchorRef=JG;function XG(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:Zs.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}mn.newScalar=XG;function eT(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:Zs.SEQ,parent:null}}mn.newItems=eT;function QG(){return eT()}mn.newSeq=QG;function ZG(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:Zs.MAP,parent:null}}mn.newMap=ZG});var Ao=w(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});function tT(e){return typeof e>"u"||e===null}Ci.isNothing=tT;function eJ(e){return typeof e=="object"&&e!==null}Ci.isObject=eJ;function tJ(e){return Array.isArray(e)?e:tT(e)?[]:[e]}Ci.toArray=tJ;function rJ(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}Ci.extend=rJ;function nJ(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}Ci.repeat=nJ;function iJ(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Ci.isNegativeZero=iJ});var ea=w((zye,rT)=>{"use strict";var oJ=function(){function e(t,r,n){r===void 0&&(r=null),n===void 0&&(n=!1),this.name="YAMLException",this.reason=t,this.mark=r,this.message=this.toString(!1),this.isWarning=n}return e.isInstance=function(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function")for(var r=0,n=t.getClassIdentifier();r<n.length;r++){var i=n[r];if(i==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){var t=[];return t.concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(t){t===void 0&&(t=!1);var r;return r="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(r+=" "+this.mark.toString()),r},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e}();rT.exports=oJ});var oT=w((Hye,iT)=>{"use strict";var nT=Ao(),sJ=function(){function e(t,r,n,i,o){this.name=t,this.buffer=r,this.position=n,this.line=i,this.column=o}return e.prototype.getSnippet=function(t,r){t===void 0&&(t=0),r===void 0&&(r=75);var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
|
|
15
|
+
deps: ${r}}`};var mW={keyword:"dependencies",type:"object",schemaType:"object",error:ln.error,code(e){let[t,r]=hW(e);SA(e,t),_A(e,r)}};function hW({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let i=Array.isArray(e[n])?t:r;i[n]=e[n]}return[t,r]}function SA(e,t=e.schema){let{gen:r,data:n,it:i}=e;if(Object.keys(t).length===0)return;let o=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Gc.propertyInData)(r,n,s,i.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,Gc.checkReportMissingProp)(e,l)}):(r.if((0,X0._)`${c} && (${(0,Gc.checkMissingProp)(e,a,o)})`),(0,Gc.reportMissingProp)(e,o),r.else())}}ln.validatePropertyDeps=SA;function _A(e,t=e.schema){let{gen:r,data:n,keyword:i,it:o}=e,s=r.name("valid");for(let a in t)(0,dW.alwaysValidSchema)(o,t[a])||(r.if((0,Gc.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=e.subschema({keyword:i,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}ln.validateSchemaDeps=_A;ln.default=mW});var $A=w(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});var PA=ae(),yW=Se(),gW={message:"property name must be valid",params:({params:e})=>(0,PA._)`{propertyName: ${e.propertyName}}`},bW={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:gW,code(e){let{gen:t,schema:r,data:n,it:i}=e;if((0,yW.alwaysValidSchema)(i,r))return;let o=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),t.if((0,PA.not)(o),()=>{e.error(!0),i.allErrors||t.break()})}),e.ok(o)}};Q0.default=bW});var eb=w(Z0=>{"use strict";Object.defineProperty(Z0,"__esModule",{value:!0});var Ip=Er(),zr=ae(),vW=Mn(),qp=Se(),wW={message:"must NOT have additional properties",params:({params:e})=>(0,zr._)`{additionalProperty: ${e.additionalProperty}}`},xW={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:wW,code(e){let{gen:t,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,qp.alwaysValidSchema)(s,r))return;let l=(0,Ip.allSchemaProperties)(n.properties),u=(0,Ip.allSchemaProperties)(n.patternProperties);p(),e.ok((0,zr._)`${o} === ${vW.default.errors}`);function p(){t.forIn("key",i,y=>{!l.length&&!u.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let g;if(l.length>8){let b=(0,qp.schemaRefOrVal)(s,n.properties,"properties");g=(0,Ip.isOwnProperty)(t,b,y)}else l.length?g=(0,zr.or)(...l.map(b=>(0,zr._)`${y} === ${b}`)):g=zr.nil;return u.length&&(g=(0,zr.or)(g,...u.map(b=>(0,zr._)`${(0,Ip.usePattern)(e,b)}.test(${y})`))),(0,zr.not)(g)}function d(y){t.code((0,zr._)`delete ${i}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,qp.alwaysValidSchema)(s,r)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,zr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,zr.not)(g),()=>t.break()))}}function h(y,g,b){let v={keyword:"additionalProperties",dataProp:y,dataPropType:qp.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,g)}}};Z0.default=xW});var CA=w(rb=>{"use strict";Object.defineProperty(rb,"__esModule",{value:!0});var SW=qc(),EA=Er(),tb=Se(),AA=eb(),_W={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:i,it:o}=e;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&AA.default.code(new SW.KeywordCxt(o,AA.default,"additionalProperties"));let s=(0,EA.allSchemaProperties)(r);for(let p of s)o.definedProperties.add(p);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=tb.mergeEvaluated.props(t,(0,tb.toHash)(s),o.props));let a=s.filter(p=>!(0,tb.alwaysValidSchema)(o,r[p]));if(a.length===0)return;let c=t.name("valid");for(let p of a)l(p)?u(p):(t.if((0,EA.propertyInData)(t,i,p,o.opts.ownProperties)),u(p),o.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(c);function l(p){return o.opts.useDefaults&&!o.compositeRule&&r[p].default!==void 0}function u(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},c)}}};rb.default=_W});var kA=w(nb=>{"use strict";Object.defineProperty(nb,"__esModule",{value:!0});var RA=Er(),jp=ae(),TA=Se(),NA=Se(),OW={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:i,it:o}=e,{opts:s}=o,a=(0,RA.allSchemaProperties)(r),c=a.filter(h=>(0,TA.alwaysValidSchema)(o,r[h]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,u=t.name("valid");o.props!==!0&&!(o.props instanceof jp.Name)&&(o.props=(0,NA.evaluatedPropsToName)(t,o.props));let{props:p}=o;m();function m(){for(let h of a)l&&d(h),o.allErrors?f(h):(t.var(u,!0),f(h),t.if(u))}function d(h){for(let y in l)new RegExp(h).test(y)&&(0,TA.checkStrictMode)(o,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,jp._)`${(0,RA.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:NA.Type.Str},u),o.opts.unevaluated&&p!==!0?t.assign((0,jp._)`${p}[${y}]`,!0):!g&&!o.allErrors&&t.if((0,jp.not)(u),()=>t.break())})})}}};nb.default=OW});var IA=w(ib=>{"use strict";Object.defineProperty(ib,"__esModule",{value:!0});var PW=Se(),$W={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,PW.alwaysValidSchema)(n,r)){e.fail();return}let i=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),e.failResult(i,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};ib.default=$W});var qA=w(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});var EW=Er(),AW={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:EW.validateUnion,error:{message:"must match a schema in anyOf"}};ob.default=AW});var jA=w(sb=>{"use strict";Object.defineProperty(sb,"__esModule",{value:!0});var Mp=ae(),CW=Se(),RW={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,Mp._)`{passingSchemas: ${e.passing}}`},TW={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:RW,code(e){let{gen:t,schema:r,parentSchema:n,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(l),e.result(s,()=>e.reset(),()=>e.error(!0));function l(){o.forEach((u,p)=>{let m;(0,CW.alwaysValidSchema)(i,u)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},c),p>0&&t.if((0,Mp._)`${c} && ${s}`).assign(s,!1).assign(a,(0,Mp._)`[${a}, ${p}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,p),m&&e.mergeEvaluated(m,Mp.Name)})})}}};sb.default=TW});var MA=w(ab=>{"use strict";Object.defineProperty(ab,"__esModule",{value:!0});var NW=Se(),kW={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=t.name("valid");r.forEach((o,s)=>{if((0,NW.alwaysValidSchema)(n,o))return;let a=e.subschema({keyword:"allOf",schemaProp:s},i);e.ok(i),e.mergeEvaluated(a)})}};ab.default=kW});var FA=w(cb=>{"use strict";Object.defineProperty(cb,"__esModule",{value:!0});var Lp=ae(),DA=Se(),IW={message:({params:e})=>(0,Lp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Lp._)`{failingKeyword: ${e.ifClause}}`},qW={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:IW,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,DA.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=LA(n,"then"),o=LA(n,"else");if(!i&&!o)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),i&&o){let u=t.let("ifClause");e.setParams({ifClause:u}),t.if(a,l("then",u),l("else",u))}else i?t.if(a,l("then")):t.if((0,Lp.not)(a),l("else"));e.pass(s,()=>e.error(!0));function c(){let u=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(u)}function l(u,p){return()=>{let m=e.subschema({keyword:u},a);t.assign(s,a),e.mergeValidEvaluated(m,s),p?t.assign(p,(0,Lp._)`${u}`):e.setParams({ifClause:u})}}}};function LA(e,t){let r=e.schema[t];return r!==void 0&&!(0,DA.alwaysValidSchema)(e,r)}cb.default=qW});var BA=w(lb=>{"use strict";Object.defineProperty(lb,"__esModule",{value:!0});var jW=Se(),MW={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,jW.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};lb.default=MW});var UA=w(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0});var LW=K0(),DW=bA(),FW=W0(),BW=wA(),UW=xA(),VW=OA(),zW=$A(),HW=eb(),KW=CA(),WW=kA(),YW=IA(),GW=qA(),JW=jA(),XW=MA(),QW=FA(),ZW=BA();function eY(e=!1){let t=[YW.default,GW.default,JW.default,XW.default,QW.default,ZW.default,zW.default,HW.default,VW.default,KW.default,WW.default];return e?t.push(DW.default,BW.default):t.push(LW.default,FW.default),t.push(UW.default),t}ub.default=eY});var VA=w(pb=>{"use strict";Object.defineProperty(pb,"__esModule",{value:!0});var Je=ae(),tY={message:({schemaCode:e})=>(0,Je.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Je._)`{format: ${e}}`},rY={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:tY,code(e,t){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:l,schemaEnv:u,self:p}=a;if(!c.validateFormats)return;i?m():d();function m(){let f=r.scopeValue("formats",{ref:p.formats,code:c.code.formats}),h=r.const("fDef",(0,Je._)`${f}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Je._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Je._)`${h}.type || "string"`).assign(g,(0,Je._)`${h}.validate`),()=>r.assign(y,(0,Je._)`"string"`).assign(g,h)),e.fail$data((0,Je.or)(b(),v()));function b(){return c.strictSchema===!1?Je.nil:(0,Je._)`${s} && !${g}`}function v(){let x=u.$async?(0,Je._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Je._)`${g}(${n})`,S=(0,Je._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,Je._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function d(){let f=p.formats[o];if(!f){b();return}if(f===!0)return;let[h,y,g]=v(f);h===t&&e.pass(x());function b(){if(c.strictSchema===!1){p.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function v(S){let C=S instanceof RegExp?(0,Je.regexpCode)(S):c.code.formats?(0,Je._)`${c.code.formats}${(0,Je.getProperty)(o)}`:void 0,_=r.scopeValue("formats",{key:o,ref:S,code:C});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Je._)`${_}.validate`]:["string",S,_]}function x(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Je._)`await ${g}(${n})`}return typeof y=="function"?(0,Je._)`${g}(${n})`:(0,Je._)`${g}.test(${n})`}}}};pb.default=rY});var zA=w(fb=>{"use strict";Object.defineProperty(fb,"__esModule",{value:!0});var nY=VA(),iY=[nY.default];fb.default=iY});var HA=w(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.contentVocabulary=Fs.metadataVocabulary=void 0;Fs.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Fs.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var WA=w(db=>{"use strict";Object.defineProperty(db,"__esModule",{value:!0});var oY=eA(),sY=mA(),aY=UA(),cY=zA(),KA=HA(),lY=[oY.default,sY.default,(0,aY.default)(),cY.default,KA.metadataVocabulary,KA.contentVocabulary];db.default=lY});var GA=w(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.DiscrError=void 0;var YA;(function(e){e.Tag="tag",e.Mapping="mapping"})(YA||(Dp.DiscrError=YA={}))});var XA=w(hb=>{"use strict";Object.defineProperty(hb,"__esModule",{value:!0});var Bs=ae(),mb=GA(),JA=xp(),uY=jc(),pY=Se(),fY={message:({params:{discrError:e,tagName:t}})=>e===mb.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Bs._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},dY={keyword:"discriminator",type:"object",schemaType:"object",error:fY,code(e){let{gen:t,data:r,schema:n,parentSchema:i,it:o}=e,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),l=t.const("tag",(0,Bs._)`${r}${(0,Bs.getProperty)(a)}`);t.if((0,Bs._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:mb.DiscrError.Tag,tag:l,tagName:a})),e.ok(c);function u(){let d=m();t.if(!1);for(let f in d)t.elseIf((0,Bs._)`${l} === ${f}`),t.assign(c,p(d[f]));t.else(),e.error(!1,{discrError:mb.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function p(d){let f=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:d},f);return e.mergeEvaluated(h,Bs.Name),f}function m(){var d;let f={},h=g(i),y=!0;for(let x=0;x<s.length;x++){let S=s[x];if(S!=null&&S.$ref&&!(0,pY.schemaHasRulesButRef)(S,o.self.RULES)){let _=S.$ref;if(S=JA.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,_),S instanceof JA.SchemaEnv&&(S=S.schema),S===void 0)throw new uY.default(o.opts.uriResolver,o.baseId,_)}let C=(d=S==null?void 0:S.properties)===null||d===void 0?void 0:d[a];if(typeof C!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||g(S)),b(C,x)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return f;function g({required:x}){return Array.isArray(x)&&x.includes(a)}function b(x,S){if(x.const)v(x.const,S);else if(x.enum)for(let C of x.enum)v(C,S);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function v(x,S){if(typeof x!="string"||x in f)throw new Error(`discriminator: "${a}" values must be unique strings`);f[x]=S}}}};hb.default=dY});var QA=w((kce,mY)=>{mY.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var eC=w((Me,yb)=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MissingRefError=Me.ValidationError=Me.CodeGen=Me.Name=Me.nil=Me.stringify=Me.str=Me._=Me.KeywordCxt=Me.Ajv=void 0;var hY=YE(),yY=WA(),gY=XA(),ZA=QA(),bY=["/properties"],Fp="http://json-schema.org/draft-07/schema",Us=class extends hY.default{_addVocabularies(){super._addVocabularies(),yY.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(gY.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(ZA,bY):ZA;this.addMetaSchema(t,Fp,!1),this.refs["http://json-schema.org/schema"]=Fp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Fp)?Fp:void 0)}};Me.Ajv=Us;yb.exports=Me=Us;yb.exports.Ajv=Us;Object.defineProperty(Me,"__esModule",{value:!0});Me.default=Us;var vY=qc();Object.defineProperty(Me,"KeywordCxt",{enumerable:!0,get:function(){return vY.KeywordCxt}});var Vs=ae();Object.defineProperty(Me,"_",{enumerable:!0,get:function(){return Vs._}});Object.defineProperty(Me,"str",{enumerable:!0,get:function(){return Vs.str}});Object.defineProperty(Me,"stringify",{enumerable:!0,get:function(){return Vs.stringify}});Object.defineProperty(Me,"nil",{enumerable:!0,get:function(){return Vs.nil}});Object.defineProperty(Me,"Name",{enumerable:!0,get:function(){return Vs.Name}});Object.defineProperty(Me,"CodeGen",{enumerable:!0,get:function(){return Vs.CodeGen}});var wY=vp();Object.defineProperty(Me,"ValidationError",{enumerable:!0,get:function(){return wY.default}});var xY=jc();Object.defineProperty(Me,"MissingRefError",{enumerable:!0,get:function(){return xY.default}})});var tC=w(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.formatLimitDefinition=void 0;var SY=eC(),Hr=ae(),wi=Hr.operators,Bp={formatMaximum:{okStr:"<=",ok:wi.LTE,fail:wi.GT},formatMinimum:{okStr:">=",ok:wi.GTE,fail:wi.LT},formatExclusiveMaximum:{okStr:"<",ok:wi.LT,fail:wi.GTE},formatExclusiveMinimum:{okStr:">",ok:wi.GT,fail:wi.LTE}},_Y={message:({keyword:e,schemaCode:t})=>Hr.str`should be ${Bp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>Hr._`{comparison: ${Bp[e].okStr}, limit: ${t}}`};zs.formatLimitDefinition={keyword:Object.keys(Bp),type:"string",schemaType:"string",$data:!0,error:_Y,code(e){let{gen:t,data:r,schemaCode:n,keyword:i,it:o}=e,{opts:s,self:a}=o;if(!s.validateFormats)return;let c=new SY.KeywordCxt(o,a.RULES.all.format.definition,"format");c.$data?l():u();function l(){let m=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=t.const("fmt",Hr._`${m}[${c.schemaCode}]`);e.fail$data(Hr.or(Hr._`typeof ${d} != "object"`,Hr._`${d} instanceof RegExp`,Hr._`typeof ${d}.compare != "function"`,p(d)))}function u(){let m=c.schema,d=a.formats[m];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${i}": format "${m}" does not define "compare" function`);let f=t.scopeValue("formats",{key:m,ref:d,code:s.code.formats?Hr._`${s.code.formats}${Hr.getProperty(m)}`:void 0});e.fail$data(p(f))}function p(m){return Hr._`${m}.compare(${r}, ${n}) ${Bp[i].fail} 0`}},dependencies:["format"]};var OY=e=>(e.addKeyword(zs.formatLimitDefinition),e);zs.default=OY});var vb=w((Jc,iC)=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});var Hs=O$(),PY=tC(),gb=ae(),rC=new gb.Name("fullFormats"),$Y=new gb.Name("fastFormats"),bb=(e,t={keywords:!0})=>{if(Array.isArray(t))return nC(e,t,Hs.fullFormats,rC),e;let[r,n]=t.mode==="fast"?[Hs.fastFormats,$Y]:[Hs.fullFormats,rC],i=t.formats||Hs.formatNames;return nC(e,i,r,n),t.keywords&&PY.default(e),e};bb.get=(e,t="full")=>{let n=(t==="fast"?Hs.fastFormats:Hs.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function nC(e,t,r,n){var i,o;(i=(o=e.opts.code).formats)!==null&&i!==void 0||(o.formats=gb._`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}iC.exports=Jc=bb;Object.defineProperty(Jc,"__esModule",{value:!0});Jc.default=bb});var nl=w(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});var Zs;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(Zs=mn.Kind||(mn.Kind={}));function GG(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:Zs.MAPPING,parent:null,errors:[]};return n}mn.newMapping=GG;function JG(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:Zs.ANCHOR_REF,parent:null}}mn.newAnchorRef=JG;function XG(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:Zs.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}mn.newScalar=XG;function eT(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:Zs.SEQ,parent:null}}mn.newItems=eT;function QG(){return eT()}mn.newSeq=QG;function ZG(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:Zs.MAP,parent:null}}mn.newMap=ZG});var Ao=w(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});function tT(e){return typeof e>"u"||e===null}Ci.isNothing=tT;function eJ(e){return typeof e=="object"&&e!==null}Ci.isObject=eJ;function tJ(e){return Array.isArray(e)?e:tT(e)?[]:[e]}Ci.toArray=tJ;function rJ(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}Ci.extend=rJ;function nJ(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}Ci.repeat=nJ;function iJ(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Ci.isNegativeZero=iJ});var ea=w((zye,rT)=>{"use strict";var oJ=(function(){function e(t,r,n){r===void 0&&(r=null),n===void 0&&(n=!1),this.name="YAMLException",this.reason=t,this.mark=r,this.message=this.toString(!1),this.isWarning=n}return e.isInstance=function(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function")for(var r=0,n=t.getClassIdentifier();r<n.length;r++){var i=n[r];if(i==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){var t=[];return t.concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(t){t===void 0&&(t=!1);var r;return r="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(r+=" "+this.mark.toString()),r},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e})();rT.exports=oJ});var oT=w((Hye,iT)=>{"use strict";var nT=Ao(),sJ=(function(){function e(t,r,n,i,o){this.name=t,this.buffer=r,this.position=n,this.line=i,this.column=o}return e.prototype.getSnippet=function(t,r){t===void 0&&(t=0),r===void 0&&(r=75);var n,i,o,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",i=this.position;i>0&&`\0\r
|
|
16
16
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(i-1))===-1;)if(i-=1,this.position-i>r/2-1){n=" ... ",i+=5;break}for(o="",s=this.position;s<this.buffer.length&&`\0\r
|
|
17
17
|
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){o=" ... ",s-=5;break}return a=this.buffer.slice(i,s),nT.repeat(" ",t)+n+a+o+`
|
|
18
18
|
`+nT.repeat(" ",t+this.position-i+n.length)+"^"},e.prototype.toString=function(t){t===void 0&&(t=!0);var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
|
|
19
|
-
`+r)),n},e}();iT.exports=sJ});var _t=w(Bb=>{"use strict";Object.defineProperty(Bb,"__esModule",{value:!0});var sT=ea(),aJ=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],cJ=["scalar","sequence","mapping"];function lJ(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var uJ=function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(aJ.indexOf(n)===-1)throw new sT('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.defaultStyle=r.defaultStyle||null,this.styleAliases=lJ(r.styleAliases||null),cJ.indexOf(this.kind)===-1)throw new sT('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e}();Bb.Type=uJ});var ta=w(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});var aT=Ao(),kf=ea(),pJ=_t();function Ub(e,t,r){var n=[];return e.include.forEach(function(i){r=Ub(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,s){o.tag===i.tag&&n.push(s)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}function fJ(){var e={},t,r;function n(i){e[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}var dJ=function(){function e(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(r){if(r.loadKind&&r.loadKind!=="scalar")throw new kf("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ub(this,"implicit",[]),this.compiledExplicit=Ub(this,"explicit",[]),this.compiledTypeMap=fJ(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var r,n;switch(arguments.length){case 1:r=e.DEFAULT,n=arguments[0];break;case 2:r=arguments[0],n=arguments[1];break;default:throw new kf("Wrong number of arguments for Schema.create function")}if(r=aT.toArray(r),n=aT.toArray(n),!r.every(function(i){return i instanceof e}))throw new kf("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(i){return i instanceof pJ.Type}))throw new kf("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e}();Vb.Schema=dJ});var lT=w((Yye,cT)=>{"use strict";var mJ=_t();cT.exports=new mJ.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var pT=w((Gye,uT)=>{"use strict";var hJ=_t();uT.exports=new hJ.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var dT=w((Jye,fT)=>{"use strict";var yJ=_t();fT.exports=new yJ.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var hT=w((Xye,mT)=>{"use strict";var gJ=ta();mT.exports=new gJ.Schema({explicit:[lT(),pT(),dT()]})});var gT=w((Qye,yT)=>{"use strict";var bJ=_t();function vJ(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function wJ(){return null}function xJ(e){return e===null}yT.exports=new bJ.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:vJ,construct:wJ,predicate:xJ,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var vT=w((Zye,bT)=>{"use strict";var SJ=_t();function _J(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function OJ(e){return e==="true"||e==="True"||e==="TRUE"}function PJ(e){return Object.prototype.toString.call(e)==="[object Boolean]"}bT.exports=new SJ.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:_J,construct:OJ,predicate:PJ,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var xT=w((ege,wT)=>{"use strict";var $J=Ao(),EJ=_t();function AJ(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function CJ(e){return 48<=e&&e<=55}function RJ(e){return 48<=e&&e<=57}function TJ(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!AJ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(i=e[r],i!=="_"){if(!CJ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!RJ(e.charCodeAt(r)))return!1;n=!0}return n?i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function NJ(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),r*t):r*parseInt(t,10)}function kJ(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!$J.isNegativeZero(e)}wT.exports=new EJ.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:TJ,construct:NJ,predicate:kJ,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var OT=w((tge,_T)=>{"use strict";var ST=Ao(),IJ=_t(),qJ=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function jJ(e){if(e===null)return!1;var t,r,n,i;return!!qJ.test(e)}function MJ(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:0<=t.indexOf(":")?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}function LJ(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ST.isNegativeZero(e))return"-0.0";return e.toString(10)}function DJ(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ST.isNegativeZero(e))}_T.exports=new IJ.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:jJ,construct:MJ,predicate:DJ,represent:LJ,defaultStyle:"lowercase"})});var $T=w((rge,PT)=>{"use strict";var FJ=ta();PT.exports=new FJ.Schema({include:[hT()],implicit:[gT(),vT(),xT(),OT()]})});var AT=w((nge,ET)=>{"use strict";var BJ=ta();ET.exports=new BJ.Schema({include:[$T()]})});var TT=w((ige,RT)=>{"use strict";var UJ=_t(),CT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function VJ(e){if(e===null)return!1;var t,r,n,i,o,s,a,c=0,l=null,u,p,m;return t=CT.exec(e),t!==null}function zJ(e){var t,r,n,i,o,s,a,c=0,l=null,u,p,m;if(t=CT.exec(e),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(u=+t[10],p=+(t[11]||0),l=(u*60+p)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(r,n,i,o,s,a,c)),l&&m.setTime(m.getTime()-l),m}function HJ(e){return e.toISOString()}RT.exports=new UJ.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:VJ,construct:zJ,instanceOf:Date,represent:HJ})});var kT=w((oge,NT)=>{"use strict";var KJ=_t();function WJ(e){return e==="<<"||e===null}NT.exports=new KJ.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:WJ})});var qT=w((sge,IT)=>{"use strict";var If=require("buffer").Buffer,YJ=_t(),zb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
19
|
+
`+r)),n},e})();iT.exports=sJ});var _t=w(Bb=>{"use strict";Object.defineProperty(Bb,"__esModule",{value:!0});var sT=ea(),aJ=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],cJ=["scalar","sequence","mapping"];function lJ(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var uJ=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(aJ.indexOf(n)===-1)throw new sT('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.defaultStyle=r.defaultStyle||null,this.styleAliases=lJ(r.styleAliases||null),cJ.indexOf(this.kind)===-1)throw new sT('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();Bb.Type=uJ});var ta=w(Vb=>{"use strict";Object.defineProperty(Vb,"__esModule",{value:!0});var aT=Ao(),kf=ea(),pJ=_t();function Ub(e,t,r){var n=[];return e.include.forEach(function(i){r=Ub(i,t,r)}),e[t].forEach(function(i){r.forEach(function(o,s){o.tag===i.tag&&n.push(s)}),r.push(i)}),r.filter(function(i,o){return n.indexOf(o)===-1})}function fJ(){var e={},t,r;function n(i){e[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}var dJ=(function(){function e(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(r){if(r.loadKind&&r.loadKind!=="scalar")throw new kf("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Ub(this,"implicit",[]),this.compiledExplicit=Ub(this,"explicit",[]),this.compiledTypeMap=fJ(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var r,n;switch(arguments.length){case 1:r=e.DEFAULT,n=arguments[0];break;case 2:r=arguments[0],n=arguments[1];break;default:throw new kf("Wrong number of arguments for Schema.create function")}if(r=aT.toArray(r),n=aT.toArray(n),!r.every(function(i){return i instanceof e}))throw new kf("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(i){return i instanceof pJ.Type}))throw new kf("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();Vb.Schema=dJ});var lT=w((Yye,cT)=>{"use strict";var mJ=_t();cT.exports=new mJ.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var pT=w((Gye,uT)=>{"use strict";var hJ=_t();uT.exports=new hJ.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var dT=w((Jye,fT)=>{"use strict";var yJ=_t();fT.exports=new yJ.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var hT=w((Xye,mT)=>{"use strict";var gJ=ta();mT.exports=new gJ.Schema({explicit:[lT(),pT(),dT()]})});var gT=w((Qye,yT)=>{"use strict";var bJ=_t();function vJ(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function wJ(){return null}function xJ(e){return e===null}yT.exports=new bJ.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:vJ,construct:wJ,predicate:xJ,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var vT=w((Zye,bT)=>{"use strict";var SJ=_t();function _J(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function OJ(e){return e==="true"||e==="True"||e==="TRUE"}function PJ(e){return Object.prototype.toString.call(e)==="[object Boolean]"}bT.exports=new SJ.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:_J,construct:OJ,predicate:PJ,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var xT=w((ege,wT)=>{"use strict";var $J=Ao(),EJ=_t();function AJ(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function CJ(e){return 48<=e&&e<=55}function RJ(e){return 48<=e&&e<=57}function TJ(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!AJ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(i=e[r],i!=="_"){if(!CJ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(i=e[r],i!=="_"){if(i===":")break;if(!RJ(e.charCodeAt(r)))return!1;n=!0}return n?i!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function NJ(e){var t=e,r=1,n,i,o=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){o.unshift(parseInt(s,10))}),t=0,i=1,o.forEach(function(s){t+=s*i,i*=60}),r*t):r*parseInt(t,10)}function kJ(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!$J.isNegativeZero(e)}wT.exports=new EJ.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:TJ,construct:NJ,predicate:kJ,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var OT=w((tge,_T)=>{"use strict";var ST=Ao(),IJ=_t(),qJ=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function jJ(e){if(e===null)return!1;var t,r,n,i;return!!qJ.test(e)}function MJ(e){var t,r,n,i;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,i=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:0<=t.indexOf(":")?(t.split(":").forEach(function(o){i.unshift(parseFloat(o,10))}),t=0,n=1,i.forEach(function(o){t+=o*n,n*=60}),r*t):r*parseFloat(t,10)}function LJ(e,t){if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(ST.isNegativeZero(e))return"-0.0";return e.toString(10)}function DJ(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||ST.isNegativeZero(e))}_T.exports=new IJ.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:jJ,construct:MJ,predicate:DJ,represent:LJ,defaultStyle:"lowercase"})});var $T=w((rge,PT)=>{"use strict";var FJ=ta();PT.exports=new FJ.Schema({include:[hT()],implicit:[gT(),vT(),xT(),OT()]})});var AT=w((nge,ET)=>{"use strict";var BJ=ta();ET.exports=new BJ.Schema({include:[$T()]})});var TT=w((ige,RT)=>{"use strict";var UJ=_t(),CT=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?)?$");function VJ(e){if(e===null)return!1;var t,r,n,i,o,s,a,c=0,l=null,u,p,m;return t=CT.exec(e),t!==null}function zJ(e){var t,r,n,i,o,s,a,c=0,l=null,u,p,m;if(t=CT.exec(e),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(o=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(u=+t[10],p=+(t[11]||0),l=(u*60+p)*6e4,t[9]==="-"&&(l=-l)),m=new Date(Date.UTC(r,n,i,o,s,a,c)),l&&m.setTime(m.getTime()-l),m}function HJ(e){return e.toISOString()}RT.exports=new UJ.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:VJ,construct:zJ,instanceOf:Date,represent:HJ})});var kT=w((oge,NT)=>{"use strict";var KJ=_t();function WJ(e){return e==="<<"||e===null}NT.exports=new KJ.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:WJ})});var qT=w((sge,IT)=>{"use strict";var If=require("buffer").Buffer,YJ=_t(),zb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
20
20
|
\r`;function GJ(e){if(e===null)return!1;var t,r,n=0,i=0,o=e.length,s=zb;for(r=0;r<o;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function JJ(e){var t,r,n,i=e.replace(/[\r\n=]/g,""),o=i.length,s=zb,a=0,c=[];for(r=0;r<o;r++)r%4===0&&r&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(i.charAt(r));return n=o%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),If?new If(c):c}function XJ(e){var t="",r=0,n,i,o=e.length,s=zb;for(n=0;n<o;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return i=o%3,i===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):i===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):i===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function QJ(e){return If&&If.isBuffer(e)}IT.exports=new YJ.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:GJ,construct:JJ,predicate:QJ,represent:XJ})});var MT=w((age,jT)=>{"use strict";var ZJ=_t(),eX=Object.prototype.hasOwnProperty,tX=Object.prototype.toString;function rX(e){if(e===null)return!0;var t=[],r,n,i,o,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],s=!1,tX.call(i)!=="[object Object]")return!1;for(o in i)if(eX.call(i,o))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(o)===-1)t.push(o);else return!1}return!0}function nX(e){return e!==null?e:[]}jT.exports=new ZJ.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:rX,construct:nX})});var DT=w((cge,LT)=>{"use strict";var iX=_t(),Hb=nl(),oX=Object.prototype.toString;function sX(e){if(e===null)return!0;if(e.kind!=Hb.Kind.SEQ)return!1;var t,r,n,i,o,s=e.items;for(t=0,r=s.length;t<r;t+=1)if(n=s[t],oX.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function aX(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,i,o=e.items;for(i=Hb.newItems(),i.parent=e.parent,i.startPosition=e.startPosition,i.endPosition=e.endPosition,t=0,r=o.length;t<r;t+=1){var s=o[t],a=s.mappings[0],c=Hb.newItems();c.parent=i,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],i.items.push(c)}return i}LT.exports=new iX.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:sX,construct:aX})});var BT=w((lge,FT)=>{"use strict";var cX=_t(),lX=nl();function uX(e){return e===null?!0:e.kind==lX.Kind.MAP}function pX(e){return e!==null?e:{}}FT.exports=new cX.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:uX,construct:pX})});var qf=w((uge,UT)=>{"use strict";var fX=ta(),dX=new fX.Schema({include:[AT()],implicit:[TT(),kT()],explicit:[qT(),MT(),DT(),BT()]});UT.exports=dX});var zT=w((pge,VT)=>{"use strict";var mX=_t();function hX(){return!0}function yX(){}function gX(){return""}function bX(e){return typeof e>"u"}VT.exports=new mX.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:hX,construct:yX,predicate:bX,represent:gX})});var KT=w((fge,HT)=>{"use strict";var vX=_t();function wX(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/")return!1;t=t.slice(1,t.length-n.length-1)}try{var i=new RegExp(t,n);return!0}catch{return!1}}function xX(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function SX(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function _X(e){return Object.prototype.toString.call(e)==="[object RegExp]"}HT.exports=new vX.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:wX,construct:xX,predicate:_X,represent:SX})});var Kb=w((dge,GT)=>{"use strict";var WT=ta(),YT=new WT.Schema({include:[qf()],explicit:[zT(),KT()]});WT.Schema.DEFAULT=YT;GT.exports=YT});var c2=w((oa,ol)=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});var mr=nl(),Ri=Ao(),Zb=ea(),ev=oT(),ZT=qf(),OX=Kb(),Lf=Object.prototype.hasOwnProperty,jf=1,e2=2,t2=3,Mf=4,Wb=1,PX=2,JT=3,$X=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,EX=/[\x85\u2028\u2029]/,AX=/[,\[\]\{\}]/,r2=/^(?:!|!!|![a-z\-]+!)$/i,n2=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Kr(e){return e===10||e===13}function Co(e){return e===9||e===32}function ar(e){return e===9||e===32||e===10||e===13}function ra(e){return e===44||e===91||e===93||e===123||e===125}function CX(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function RX(e){return e===120?2:e===117?4:e===85?8:0}function TX(e){return 48<=e&&e<=57?e-48:-1}function NX(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
21
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function kX(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Yb=new Array(256),Gb=new Array(256),i2=new Array(256),Jb=new Array(256);for(Tr=0;Tr<256;Tr++)Jb[Tr]=Gb[Tr]=NX(Tr),Yb[Tr]=Gb[Tr]?1:0,i2[Tr]=1,Yb[Tr]||(Jb[Tr]="\\"+String.fromCharCode(Tr));var Tr,IX=function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||OX,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.allowAnyEscape=r.allowAnyEscape||!1,this.ignoreDuplicateKeys=r.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return e}();function tv(e,t,r){return r===void 0&&(r=!1),new Zb(t,new ev(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function Xb(e,t,r,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var o=qX(e,t);if(o){var s=r+t;if(!e.errorMap[s]){var a=new ev(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new Zb(r,a,n);e.errors.push(c)}}}function Q(e,t){var r=tv(e,t),n=r.message+r.mark.position;if(!e.errorMap[n]){e.errors.push(r),e.errorMap[n]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if(o==`
|
|
21
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function kX(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Yb=new Array(256),Gb=new Array(256),i2=new Array(256),Jb=new Array(256);for(Tr=0;Tr<256;Tr++)Jb[Tr]=Gb[Tr]=NX(Tr),Yb[Tr]=Gb[Tr]?1:0,i2[Tr]=1,Yb[Tr]||(Jb[Tr]="\\"+String.fromCharCode(Tr));var Tr,IX=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||OX,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.allowAnyEscape=r.allowAnyEscape||!1,this.ignoreDuplicateKeys=r.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return e})();function tv(e,t,r){return r===void 0&&(r=!1),new Zb(t,new ev(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function Xb(e,t,r,n,i){n===void 0&&(n=!1),i===void 0&&(i=!1);var o=qX(e,t);if(o){var s=r+t;if(!e.errorMap[s]){var a=new ev(e.filename,e.input,t,o.line,t-o.start);i&&(a.toLineEnd=!0);var c=new Zb(r,a,n);e.errors.push(c)}}}function Q(e,t){var r=tv(e,t),n=r.message+r.mark.position;if(!e.errorMap[n]){e.errors.push(r),e.errorMap[n]=1;for(var i=e.position;;){if(e.position>=e.input.length-1)return;var o=e.input.charAt(e.position);if(o==`
|
|
22
22
|
`){e.position--,e.position==i&&(e.position+=1);return}if(o=="\r"){e.position--,e.position==i&&(e.position+=1);return}e.position++}}}function Qb(e,t){var r=tv(e,t);e.onWarning&&e.onWarning.call(null,r)}var XT={YAML:function(t,r,n){var i,o,s;t.version!==null&&Q(t,"duplication of %YAML directive"),n.length!==1&&Q(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Q(t,"ill-formed argument of the YAML directive"),o=parseInt(i[1],10),s=parseInt(i[2],10),o!==1&&Q(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&Q(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var i,o;n.length!==2&&Q(t,"TAG directive accepts exactly two arguments"),i=n[0],o=n[1],r2.test(i)||Q(t,"ill-formed tag handle (first argument) of the TAG directive"),Lf.call(t.tagMap,i)&&Q(t,'there is a previously declared suffix for "'+i+'" tag handle'),n2.test(o)||Q(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[i]=o}};function Ti(e,t,r,n){var i,o,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=r){if(a=e.input.slice(t,r),n)for(i=0,o=a.length;i<o;i+=1)s=a.charCodeAt(i),s===9||32<=s&&s<=1114111||Q(e,"expected valid JSON character");else $X.test(a)&&Q(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function na(e,t,r,n,i){var o,s;if(n!=null){t===null&&(t={startPosition:n.startPosition,endPosition:i.endPosition,parent:null,errors:[],mappings:[],kind:mr.Kind.MAP});var a=mr.newMapping(n,i);return a.parent=t,n.parent=a,i!=null&&(i.parent=a),!e.ignoreDuplicateKeys&&t.mappings.forEach(function(c){c.key&&c.key.value===(a.key&&a.key.value)&&(Xb(e,a.key.startPosition,"duplicate key"),Xb(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=i?i.endPosition:n.endPosition+1,t}}function rv(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Q(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function qX(e,t){for(var r,n=0;n<e.lines.length&&!(e.lines[n].start>t);n++)r=e.lines[n];return r||{start:0,line:0}}function rt(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Co(i);)i===9&&e.errors.push(tv(e,"Using tabs can lead to unpredictable results",!0)),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Kr(i))for(rv(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Qb(e,"deficient indentation"),n}function il(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&e.input.charCodeAt(t+1)===r&&e.input.charCodeAt(t+2)===r&&(t+=3,r=e.input.charCodeAt(t),r===0||ar(r)))}function nv(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=Ri.repeat(`
|
|
23
23
|
`,r-1))}function jX(e,t,r){var n,i,o,s,a,c,l,u,p=e.kind,m=e.result,d,f=mr.newScalar();if(f.plainScalar=!0,e.result=f,d=e.input.charCodeAt(e.position),ar(d)||ra(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),ar(i)||r&&ra(i)))return!1;for(e.kind="scalar",o=s=e.position,a=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),ar(i)||r&&ra(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),ar(n))break}else{if(e.position===e.lineStart&&il(e)||r&&ra(d))break;if(Kr(d))if(c=e.line,l=e.lineStart,u=e.lineIndent,rt(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=l,e.lineIndent=u;break}}if(a&&(Ti(e,o,s,!1),nv(e,f,e.line-c),o=s=e.position,a=!1),Co(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Ti(e,o,s,!1),e.result.startPosition!=-1?(f.rawValue=e.input.substring(f.startPosition,f.endPosition),!0):(e.kind=p,e.result=m,!1)}function MX(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var o=mr.newScalar();for(o.singleQuoted=!0,e.kind="scalar",e.result=o,o.startPosition=e.position,e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Ti(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),o.endPosition=e.position,r===39)n=i=e.position,e.position++;else return!0;else Kr(r)?(Ti(e,n,i,!0),nv(e,o,rt(e,!1,t)),n=i=e.position):e.position===e.lineStart&&il(e)?Q(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position,o.endPosition=e.position);Q(e,"unexpected end of the stream within a single quoted scalar")}function LX(e,t){var r,n,i,o,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var l=mr.newScalar();for(l.doubleQuoted=!0,e.result=l,l.startPosition=e.position,e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Ti(e,r,e.position,!0),e.position++,l.endPosition=e.position,l.rawValue=e.input.substring(l.startPosition,l.endPosition),!0;if(c===92){if(Ti(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Kr(c))rt(e,!1,t);else if(c<256&&(e.allowAnyEscape?i2[c]:Yb[c]))l.value+=e.allowAnyEscape?Jb[c]:Gb[c],e.position++;else if((s=RX(c))>0){for(i=s,o=0;i>0;i--)c=e.input.charCodeAt(++e.position),(s=CX(c))>=0?o=(o<<4)+s:Q(e,"expected hexadecimal character");l.value+=kX(o),e.position++}else Q(e,"unknown escape sequence");r=n=e.position}else Kr(c)?(Ti(e,r,n,!0),nv(e,l,rt(e,!1,t)),r=n=e.position):e.position===e.lineStart&&il(e)?Q(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Q(e,"unexpected end of the stream within a double quoted scalar")}function DX(e,t){var r=!0,n,i=e.tag,o,s=e.anchor,a,c,l,u,p,m,d,f,h;if(h=e.input.charCodeAt(e.position),h===91)c=93,p=!1,o=mr.newItems(),o.startPosition=e.position;else if(h===123)c=125,p=!0,o=mr.newMap(),o.startPosition=e.position;else return!1;for(e.anchor!==null&&(o.anchorId=e.anchor,e.anchorMap[e.anchor]=o),h=e.input.charCodeAt(++e.position);h!==0;){if(rt(e,!0,t),h=e.input.charCodeAt(e.position),h===c)return e.position++,e.tag=i,e.anchor=s,e.kind=p?"mapping":"sequence",e.result=o,o.endPosition=e.position,!0;if(!r){var y=e.position;Q(e,"missed comma between flow collection entries"),e.position=y+1}if(d=m=f=null,l=u=!1,h===63&&(a=e.input.charCodeAt(e.position+1),ar(a)&&(l=u=!0,e.position++,rt(e,!0,t))),n=e.line,ia(e,t,jf,!1,!0),d=e.tag,m=e.result,rt(e,!0,t),h=e.input.charCodeAt(e.position),(u||e.line===n)&&h===58&&(l=!0,h=e.input.charCodeAt(++e.position),rt(e,!0,t),ia(e,t,jf,!1,!0),f=e.result),p)na(e,o,d,m,f);else if(l){var g=na(e,null,d,m,f);g.parent=o,o.items.push(g)}else m&&(m.parent=o),o.items.push(m);o.endPosition=e.position+1,rt(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}Q(e,"unexpected end of the stream within a flow collection")}function FX(e,t){var r,n,i=Wb,o=!1,s=t,a=0,c=!1,l,u;if(u=e.input.charCodeAt(e.position),u===124)n=!1;else if(u===62)n=!0;else return!1;var p=mr.newScalar();for(e.kind="scalar",e.result=p,p.startPosition=e.position;u!==0;)if(u=e.input.charCodeAt(++e.position),u===43||u===45)Wb===i?i=u===43?JT:PX:Q(e,"repeat of a chomping mode identifier");else if((l=TX(u))>=0)l===0?Q(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?Q(e,"repeat of an indentation width identifier"):(s=t+l-1,o=!0);else break;if(Co(u)){do u=e.input.charCodeAt(++e.position);while(Co(u));if(u===35)do u=e.input.charCodeAt(++e.position);while(!Kr(u)&&u!==0)}for(;u!==0;){for(rv(e),e.lineIndent=0,u=e.input.charCodeAt(e.position);(!o||e.lineIndent<s)&&u===32;)e.lineIndent++,u=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>s&&(s=e.lineIndent),Kr(u)){a++;continue}if(e.lineIndent<s){i===JT?p.value+=Ri.repeat(`
|
|
24
24
|
`,a):i===Wb&&o&&(p.value+=`
|
|
@@ -197,13 +197,13 @@ ${s.commentBefore}`:o}e.comment=r.after.join(`
|
|
|
197
197
|
`)||null}}function Bee({tagPrefixes:e},t){let[r,n]=t.parameters;if(!r||!n){let i="Insufficient parameters given for %TAG directive";throw new Wt.YAMLSemanticError(t,i)}if(e.some(i=>i.handle===r)){let i="The %TAG directive must only be given at most once per handle in the same document.";throw new Wt.YAMLSemanticError(t,i)}return{handle:r,prefix:n}}function Uee(e,t){let[r]=t.parameters;if(t.name==="YAML:1.0"&&(r="1.0"),!r){let n="Insufficient parameters given for %YAML directive";throw new Wt.YAMLSemanticError(t,n)}if(!wk[r]){let i=`Document will be parsed as YAML ${e.version||e.options.version} rather than YAML ${r}`;e.warnings.push(new Wt.YAMLWarning(t,i))}return r}function Vee(e,t,r){let n=[],i=!1;for(let o of t){let{comment:s,name:a}=o;switch(a){case"TAG":try{e.tagPrefixes.push(Bee(e,o))}catch(c){e.errors.push(c)}i=!0;break;case"YAML":case"YAML:1.0":if(e.version){let c="The %YAML directive must only be given at most once per document.";e.errors.push(new Wt.YAMLSemanticError(o,c))}try{e.version=Uee(e,o)}catch(c){e.errors.push(c)}i=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;e.warnings.push(new Wt.YAMLWarning(o,c))}}s&&n.push(s)}if(r&&!i&&(e.version||r.version||e.options.version)==="1.1"){let o=({handle:s,prefix:a})=>({handle:s,prefix:a});e.tagPrefixes=r.tagPrefixes.map(o),e.version=r.version}e.commentBefore=n.join(`
|
|
198
198
|
`)||null}function ya(e){if(e instanceof te.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var _d=class e{constructor(t){this.anchors=new j1(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(t){return ya(this.contents),this.contents.add(t)}addIn(t,r){ya(this.contents),this.contents.addIn(t,r)}delete(t){return ya(this.contents),this.contents.delete(t)}deleteIn(t){return te.isEmptyPath(t)?this.contents==null?!1:(this.contents=null,!0):(ya(this.contents),this.contents.deleteIn(t))}getDefaults(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}get(t,r){return this.contents instanceof te.Collection?this.contents.get(t,r):void 0}getIn(t,r){return te.isEmptyPath(t)?!r&&this.contents instanceof te.Scalar?this.contents.value:this.contents:this.contents instanceof te.Collection?this.contents.getIn(t,r):void 0}has(t){return this.contents instanceof te.Collection?this.contents.has(t):!1}hasIn(t){return te.isEmptyPath(t)?this.contents!==void 0:this.contents instanceof te.Collection?this.contents.hasIn(t):!1}set(t,r){ya(this.contents),this.contents.set(t,r)}setIn(t,r){te.isEmptyPath(t)?this.contents=r:(ya(this.contents),this.contents.setIn(t,r))}setSchema(t,r){if(!t&&!r&&this.schema)return;typeof t=="number"&&(t=t.toFixed(1)),t==="1.0"||t==="1.1"||t==="1.2"?(this.version?this.version=t:this.options.version=t,delete this.options.schema):t&&typeof t=="string"&&(this.options.schema=t),Array.isArray(r)&&(this.options.customTags=r);let n=Object.assign({},this.getDefaults(),this.options);this.schema=new bk.Schema(n)}parse(t,r){this.options.keepCstNodes&&(this.cstNode=t),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:n=[],contents:i=[],directivesEndMarker:o,error:s,valueRange:a}=t;if(s&&(s.source||(s.source=this),this.errors.push(s)),Vee(this,n,r),o&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],Fee(this,i),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Wt.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Wt.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Dee(this.contents).filter(t=>t.indexOf(bk.Schema.defaultPrefix)!==0)}setTagPrefix(t,r){if(t[0]!=="!"||t[t.length-1]!=="!")throw new Error("Handle must start and end with !");if(r){let n=this.tagPrefixes.find(i=>i.handle===t);n?n.prefix=r:this.tagPrefixes.push({handle:t,prefix:r})}else this.tagPrefixes=this.tagPrefixes.filter(n=>n.handle!==t)}toJSON(t,r){let{keepBlobsInJSON:n,mapAsMap:i,maxAliasCount:o}=this.options,s=n&&(typeof t!="string"||!(this.contents instanceof te.Scalar)),a={doc:this,indentStep:" ",keep:s,mapAsMap:s&&!!i,maxAliasCount:o,stringify:xd},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(u=>[this.anchors.map[u],{alias:[],aliasCount:0,count:1}])));let l=te.toJSON(this.contents,t,a);if(typeof r=="function"&&a.anchors)for(let{count:u,res:p}of a.anchors.values())r(p,u);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let t=this.options.indent;if(!Number.isInteger(t)||t<=0){let c=JSON.stringify(t);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let r=[],n=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),r.push(c),n=!0}let i=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{i.some(u=>u.indexOf(l)===0)&&(r.push(`%TAG ${c} ${l}`),n=!0)}),(n||this.directivesEndMarker)&&r.push("---"),this.commentBefore&&((n||!this.directivesEndMarker)&&r.unshift(""),r.unshift(this.commentBefore.replace(/^/gm,"#")));let o={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(t),stringify:xd},s=!1,a=null;if(this.contents){this.contents instanceof te.Node&&(this.contents.spaceBefore&&(n||this.directivesEndMarker)&&r.push(""),this.contents.commentBefore&&r.push(this.contents.commentBefore.replace(/^/gm,"#")),o.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>s=!0,l=xd(this.contents,o,()=>a=null,c);r.push(te.addComment(l,"",a))}else this.contents!==void 0&&r.push(xd(this.contents,o));return this.comment&&((!s||a)&&r[r.length-1]!==""&&r.push(""),r.push(this.comment.replace(/^/gm,"#"))),r.join(`
|
|
199
199
|
`)+`
|
|
200
|
-
`}};Wt._defineProperty(_d,"defaults",wk);Od.Document=_d;Od.defaultOptions=qee;Od.scalarOptions=jee});var Ok=w(_k=>{"use strict";var M1=VN(),zo=xk(),zee=q1(),Hee=Lo(),Kee=T1();Ol();function Wee(e,t=!0,r){r===void 0&&typeof t=="string"&&(r=t,t=!0);let n=Object.assign({},zo.Document.defaults[zo.defaultOptions.version],zo.defaultOptions);return new zee.Schema(n).createNode(e,t,r)}var ga=class extends zo.Document{constructor(t){super(Object.assign({},zo.defaultOptions,t))}};function Yee(e,t){let r=[],n;for(let i of M1.parse(e)){let o=new ga(t);o.parse(i,n),r.push(o),n=o}return r}function Sk(e,t){let r=M1.parse(e),n=new ga(t).parse(r[0]);if(r.length>1){let i="Source contains multiple documents; please use YAML.parseAllDocuments()";n.errors.unshift(new Hee.YAMLSemanticError(r[1],i))}return n}function Gee(e,t){let r=Sk(e,t);if(r.warnings.forEach(n=>Kee.warn(n)),r.errors.length>0)throw r.errors[0];return r.toJSON()}function Jee(e,t){let r=new ga(t);return r.contents=e,String(r)}var Xee={createNode:Wee,defaultOptions:zo.defaultOptions,Document:ga,parse:Gee,parseAllDocuments:Yee,parseCST:M1.parse,parseDocument:Sk,scalarOptions:zo.scalarOptions,stringify:Jee};_k.YAML=Xee});var L1=w((mbe,Pk)=>{Pk.exports=Ok().YAML});var Al=w((hbe,Ek)=>{"use strict";function Qee(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")}function $k(e){return e.replace(/\~1/g,"/").replace(/~0/g,"~")}function Zee(e,t,r){if(typeof e>"u")return!1;if(!t||typeof t!="string"||t==="#")return typeof r<"u"?r:e;if(t.indexOf("#")>=0){let i=t.split("#");if(i[0])return!1;t=i[1],t=decodeURIComponent(t.slice(1).split("+").join(" "))}t.startsWith("/")&&(t=t.slice(1));let n=t.split("/");for(let i=0;i<n.length;i++){n[i]=$k(n[i]);let o=typeof r<"u"&&i==n.length-1,s=parseInt(n[i],10);if(!Array.isArray(e)||isNaN(s)||s.toString()!==n[i]?s=Array.isArray(e)&&n[i]==="-"?-2:-1:n[i]=i>0?n[i-1]:"",s!=-1||e&&e.hasOwnProperty(n[i]))if(s>=0)o&&(e[s]=r),e=e[s];else{if(s===-2)return o?(Array.isArray(e)&&e.push(r),r):void 0;o&&(e[n[i]]=r),e=e[n[i]]}else if(typeof r<"u"&&typeof e=="object"&&!Array.isArray(e))e[n[i]]=o?r:n[i+1]==="0"||n[i+1]==="-"?[]:{},e=e[n[i]];else return!1}return e}Ek.exports={jptr:Zee,jpescape:Qee,jpunescape:$k}});var Pd=w((ybe,Ak)=>{"use strict";function ete(e,t){return t==="$ref"&&!!e&&typeof e[t]=="string"}Ak.exports={isRef:ete}});var Cl=w((gbe,Tk)=>{"use strict";function tte(e){return e}function rte(e){return JSON.parse(JSON.stringify(e))}function nte(e){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function Ck(e){let t=Array.isArray(e)?[]:{};for(let r in e)(e.hasOwnProperty(r)||Array.isArray(e))&&(t[r]=typeof e[r]=="object"?Ck(e[r]):e[r]);return t}function ite(e){return Object.assign({},e)}function Rk(e,t){if(t||(t=new WeakMap),Object(e)!==e||e instanceof Function)return e;if(t.has(e))return t.get(e);try{var r=new e.constructor}catch{r=Object.create(Object.getPrototypeOf(e))}return t.set(e,r),Object.assign(r,...Object.keys(e).map(n=>({[n]:Rk(e[n],t)})))}Tk.exports={nop:tte,clone:rte,shallowClone:nte,deepClone:Ck,fastClone:ite,circularClone:Rk}});var $d=w((bbe,kk)=>{"use strict";var ote=Al().jpescape;function ste(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function Nk(e,t,r){if(t||(t={depth:0}),t.depth||(t=Object.assign({},ste(),t)),typeof e!="object")return;let n=t.path;for(let i in e){if(t.key=i,t.path=t.path+"/"+encodeURIComponent(ote(i)),t.identityPath=t.seen.get(e[i]),t.identity=typeof t.identityPath<"u",e.hasOwnProperty(i)&&r(e,i,t),typeof e[i]=="object"&&!t.identity){t.identityDetection&&!Array.isArray(e[i])&&e[i]!==null&&t.seen.set(e[i],t.path);let o={};o.parent=e,o.path=t.path,o.depth=t.depth?t.depth+1:1,o.pkey=i,o.payload=t.payload,o.seen=t.seen,o.identity=!1,o.identityDetection=t.identityDetection,Nk(e[i],o,r)}t.path=n}}kk.exports={recurse:Nk}});var Mk=w((vbe,jk)=>{"use strict";var ate=$d().recurse,Ik=Cl().shallowClone,Rl=Al().jptr,cte=Pd().isRef,lte=function(e){return e&&e.verbose?{warn:function(){var t=Array.prototype.slice.call(arguments);console.warn.apply(console,t)}}:{warn:function(){}}};function qk(e,t,r){r||(r={}),r.cache||(r.cache={}),r.state||(r.state={}),r.state.identityDetection=!0,r.depth=r.depth?r.depth+1:1;let n=r.depth>1?e:Ik(e),i={data:n},o=r.depth>1?t:Ik(t);r.master||(r.master=n);let s=lte(r),a=1;for(;a>0;)a=0,ate(i,r.state,function(c,l,u){if(cte(c,l)){let p=c[l];if(a++,r.cache[p]){let m=r.cache[p];if(m.resolved)s.warn("Patching %s for %s",p,m.path),u.parent[u.pkey]=m.data,r.$ref&&typeof u.parent[u.pkey]=="object"&&u.parent[u.pkey]!==null&&(u.parent[u.pkey][r.$ref]=p);else{if(p===m.path)throw new Error(`Tight circle at ${m.path}`);s.warn("Unresolved ref"),u.parent[u.pkey]=Rl(m.source,m.path),u.parent[u.pkey]===!1&&(u.parent[u.pkey]=Rl(m.source,m.key)),r.$ref&&typeof u.parent[u.pkey]=="object"&&u.parent[u.pkey]!==null&&(u.parent[r.$ref]=p)}}else{let m={};m.path=u.path.split("/$ref")[0],m.key=p,s.warn("Dereffing %s at %s",p,m.path),m.source=o,m.data=Rl(m.source,m.key),m.data===!1&&(m.data=Rl(r.master,m.key),m.source=r.master),m.data===!1&&s.warn("Missing $ref target",m.key),r.cache[p]=m,m.data=u.parent[u.pkey]=qk(Rl(m.source,m.key),m.source,r),r.$ref&&typeof u.parent[u.pkey]=="object"&&u.parent[u.pkey]!==null&&(u.parent[u.pkey][r.$ref]=p),m.resolved=!0}}});return i.data}jk.exports={dereference:qk}});var Vk=w((wbe,Uk)=>{Uk.exports=Tl;Tl.default=Tl;Tl.stable=Fk;Tl.stableStringify=Fk;var Ed="[...]",Lk="[Circular]",Ko=[],Ho=[];function Dk(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Tl(e,t,r,n){typeof n>"u"&&(n=Dk()),D1(e,"",0,[],void 0,0,n);var i;try{Ho.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,Bk(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ko.length!==0;){var o=Ko.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function ba(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),Ko.push([n,r,t,i])):Ho.push([t,r,e]):(n[r]=e,Ko.push([n,r,t]))}function D1(e,t,r,n,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){ba(Lk,e,t,i);return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){ba(Ed,e,t,i);return}if(typeof s.edgesLimit<"u"&&r+1>s.edgesLimit){ba(Ed,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)D1(e[a],a,a,n,e,o,s);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var l=c[a];D1(e[l],l,a,n,e,o,s)}}n.pop()}}function ute(e,t){return e<t?-1:e>t?1:0}function Fk(e,t,r,n){typeof n>"u"&&(n=Dk());var i=F1(e,"",0,[],void 0,0,n)||e,o;try{Ho.length===0?o=JSON.stringify(i,t,r):o=JSON.stringify(i,Bk(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ko.length!==0;){var s=Ko.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function F1(e,t,r,n,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){ba(Lk,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){ba(Ed,e,t,i);return}if(typeof s.edgesLimit<"u"&&r+1>s.edgesLimit){ba(Ed,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)F1(e[a],a,a,n,e,o,s);else{var c={},l=Object.keys(e).sort(ute);for(a=0;a<l.length;a++){var u=l[a];F1(e[u],u,a,n,e,o,s),c[u]=e[u]}if(typeof i<"u")Ko.push([i,t,e]),i[t]=c;else return c}n.pop()}}function Bk(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(Ho.length>0)for(var n=0;n<Ho.length;n++){var i=Ho[n];if(i[1]===t&&i[0]===r){r=i[2],Ho.splice(n,1);break}}return e.call(this,t,r)}}});var B1=w((xbe,Kk)=>{"use strict";var zk=Vk(),pte=process.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function fte(e,t,r){return r.indexOf(e)===t}function dte(e){return new Set(e).size!==e.length}function mte(e){return new Set(e).size<=1}function hte(e,t){function r(n,i){return zk.stringify(n)===zk.stringify(Object.assign({},n,i))}return r(e,t)&&r(t,e)}function yte(e){let t=[];for(let r of e)t.find(function(i,o,s){return hte(i,r)})||t.push(r);return t}function gte(e){return e.length===yte(e).length}function bte(e){return e.find(function(t,r,n){return e.indexOf(t)<r})}function vte(e){let t=0,r;if(e.length===0)return t;for(let n=0;n<e.length;n++)r=e.charCodeAt(n),t=(t<<5)-t+r,t|=0;return t}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(t,r){return r.toUpperCase()})};var wte=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],xte=["items","minItems","maxItems","uniqueItems"],Ste=["get","post","put","delete","patch","head","options","trace"];function Hk(e){e=e.replace("[]","Array");let t=e.split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}function _te(e){return Hk(e.split("/").join("_"))}Kk.exports={colour:pte,uniqueOnly:fte,hasDuplicates:dte,allSame:mte,distinctArray:gte,firstDupe:bte,hash:vte,parameterTypeProperties:wte,arrayProperties:xte,httpMethods:Ste,sanitise:Hk,sanitiseAll:_te}});var Qk=w((Sbe,Xk)=>{"use strict";var Ote=require("fs"),Yk=require("path"),Wo=require("url"),Pte=l1(),Wk=L1(),va=Al().jptr,wa=$d().recurse,zi=Cl().clone,$te=Mk().dereference,Cd=Pd().isRef,br=B1();function Ete(e){return[...new Set(e)]}function Ate(e,t,r,n,i){return new Promise(function(o,s){Ote.readFile(e,t,function(a,c){a?r.ignoreIOErrors&&i?(r.verbose&&console.warn("FAILED",n),r.externalRefs[n].failed=!0,o(i)):s(a):o(c)})})}function U1(e,t,r,n,i,o){let s=o.externalRefs[r+n].paths[0],a=Wo.parse(i),c={},l=1;for(;l;)l=0,wa(e,{identityDetection:!0},function(u,p,m){if(Cd(u,p)){if(u[p].startsWith("#")){if(!c[u[p]]&&!u.$fixed){let d=zi(va(t,u[p]));if(o.verbose>1&&console.warn((d===!1?br.colour.red:br.colour.green)+"Fragment resolution",u[p],br.colour.normal),d===!1){if(m.parent[m.pkey]={},o.fatal){let f=new Error("Fragment $ref resolution failed "+u[p]);if(o.promise)o.promise.reject(f);else throw f}}else l++,m.parent[m.pkey]=d,c[u[p]]=m.path.replace("/%24ref","")}else if(!u.$fixed){let d=(s+"/"+c[u[p]]).split("/#/").join("/");m.parent[m.pkey]={$ref:d,"x-miro":u[p],$fixed:!0},o.verbose>1&&console.warn("Replacing with",d),l++}}else if(a.protocol){let d=Wo.resolve(i,u[p]).toString();o.verbose>1&&console.warn(br.colour.yellow+"Rewriting external url ref",u[p],"as",d,br.colour.normal),u["x-miro"]=u[p],o.externalRefs[u[p]]&&(o.externalRefs[d]||(o.externalRefs[d]=o.externalRefs[u[p]]),o.externalRefs[d].failed=o.externalRefs[u[p]].failed),u[p]=d}else if(!u["x-miro"]){let d=Wo.resolve(i,u[p]).toString(),f=!1;o.externalRefs[u[p]]&&(f=o.externalRefs[u[p]].failed),f||(o.verbose>1&&console.warn(br.colour.yellow+"Rewriting external ref",u[p],"as",d,br.colour.normal),u["x-miro"]=u[p],u[p]=d)}}});return wa(e,{},function(u,p,m){Cd(u,p)&&typeof u.$fixed<"u"&&delete u.$fixed}),o.verbose>1&&console.warn("Finished fragment resolution"),e}function Ad(e,t){if(!t.filters||!t.filters.length)return e;for(let r of t.filters)e=r(e,t);return e}function Cte(e,t){return e&&e.length>2?e:t&&t.length>2?t:"file:"}function Rte(e,t,r,n){var i=Wo.parse(r.source),o=r.source.split("\\").join("/").split("/");o.pop()||o.pop();let a="",c=t.split("#");c.length>1&&(a="#"+c[1],t=c[0]),o=o.join("/");let l=Wo.parse(t),u=Cte(l.protocol,i.protocol),p;if(u==="file:"?p=Yk.resolve(o?o+"/":"",t):p=Wo.resolve(o?o+"/":"",t),r.cache[p]){r.verbose&&console.warn("CACHED",p,a);let m=zi(r.cache[p]),d=r.externalRef=m;if(a&&(d=va(d,a),d===!1&&(d={},r.fatal))){let f=new Error("Cached $ref resolution failed "+p+a);if(r.promise)r.promise.reject(f);else throw f}return d=U1(d,m,t,a,p,r),d=Ad(d,r),n(zi(d),p,r),Promise.resolve(d)}if(r.verbose&&console.warn("GET",p,a),r.handlers&&r.handlers[u])return r.handlers[u](o,t,a,r).then(function(m){return r.externalRef=m,m=Ad(m,r),r.cache[p]=m,n(m,p,r),m}).catch(function(m){throw r.verbose&&console.warn(m),m});if(u&&u.startsWith("http")){let m=Object.assign({},r.fetchOptions,{agent:r.agent});return r.fetch(p,m).then(function(d){if(d.status!==200){if(r.ignoreIOErrors)return r.verbose&&console.warn("FAILED",t),r.externalRefs[t].failed=!0,'{"$ref":"'+t+'"}';throw new Error(`Received status code ${d.status}: ${p}`)}return d.text()}).then(function(d){try{let f=Wk.parse(d,{schema:"core",prettyErrors:!0});if(d=r.externalRef=f,r.cache[p]=zi(d),a&&(d=va(d,a),d===!1&&(d={},r.fatal))){let h=new Error("Remote $ref resolution failed "+p+a);if(r.promise)r.promise.reject(h);else throw h}d=U1(d,f,t,a,p,r),d=Ad(d,r)}catch(f){if(r.verbose&&console.warn(f),r.promise&&r.fatal)r.promise.reject(f);else throw f}return n(d,p,r),d}).catch(function(d){if(r.verbose&&console.warn(d),r.cache[p]={},r.promise&&r.fatal)r.promise.reject(d);else throw d})}else{let m='{"$ref":"'+t+'"}';return Ate(p,r.encoding||"utf8",r,t,m).then(function(d){try{let f=Wk.parse(d,{schema:"core",prettyErrors:!0});if(d=r.externalRef=f,r.cache[p]=zi(d),a&&(d=va(d,a),d===!1&&(d={},r.fatal))){let h=new Error("File $ref resolution failed "+p+a);if(r.promise)r.promise.reject(h);else throw h}d=U1(d,f,t,a,p,r),d=Ad(d,r)}catch(f){if(r.verbose&&console.warn(f),r.promise&&r.fatal)r.promise.reject(f);else throw f}return n(d,p,r),d}).catch(function(d){if(r.verbose&&console.warn(d),r.promise&&r.fatal)r.promise.reject(d);else throw d})}}function Tte(e){return new Promise(function(t,r){function n(o,s,a){if(o[s]&&Cd(o[s],"$ref")){let c=o[s].$ref;if(!c.startsWith("#")){let l="";if(!i[c]){let u=Object.keys(i).find(function(p,m,d){return c.startsWith(p+"/")});u&&(e.verbose&&console.warn("Found potential subschema at",u),l="/"+(c.split("#")[1]||"").replace(u.split("#")[1]||""),l=l.split("/undefined").join(""),c=u)}if(i[c]||(i[c]={resolved:!1,paths:[],extras:{},description:o[s].description}),i[c].resolved){if(!i[c].failed)if(e.rewriteRefs){let u=i[c].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",c,u),o[s]["x-miro"]=c,o[s].$ref=u+l}else o[s]=zi(i[c].data)}else i[c].paths.push(a.path),i[c].extras[a.path]=l}}}let i=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(i);wa(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},n),wa(e.openapi.components,{identityDetection:!0,path:"#/components"},n),wa(e.openapi,{identityDetection:!0},n),t(i)})}function Gk(e){return new Promise(function(t,r){Tte(e).then(function(i){for(let o in i)if(!i[o].resolved){let s=e.resolver.depth;s>0&&s++,e.resolver.actions[s].push(function(){return Rte(e.openapi,o,e,function(a,c,l){if(!i[o].resolved){let m={};m.context=i[o],m.$ref=o,m.original=zi(a),m.updated=a,m.source=c,l.externals.push(m),i[o].resolved=!0}let u=Object.assign({},l,{source:"",resolver:{actions:l.resolver.actions,depth:l.resolver.actions.length-1,base:l.resolver.base}});l.patch&&i[o].description&&!a.description&&typeof a=="object"&&(a.description=i[o].description),i[o].data=a;let p=Ete(i[o].paths);p=p.sort(function(m,d){let f=m.startsWith("#/components/")||m.startsWith("#/definitions/"),h=d.startsWith("#/components/")||d.startsWith("#/definitions/");return f&&!h?-1:h&&!f?1:0});for(let m of p)if(i[o].resolvedAt&&m!==i[o].resolvedAt&&m.indexOf("x-ms-examples/")<0)l.verbose>1&&console.warn("Creating pointer to data at",m),va(l.openapi,m,{$ref:i[o].resolvedAt+i[o].extras[m],"x-miro":o+i[o].extras[m]});else{i[o].resolvedAt?l.verbose>1&&console.warn("Avoiding circular reference"):(i[o].resolvedAt=m,l.verbose>1&&console.warn("Creating initial clone of data at",m));let d=zi(a);va(l.openapi,m,d)}l.resolver.actions[u.resolver.depth].length===0&&l.resolver.actions[u.resolver.depth].push(function(){return Gk(u)})})})}}).catch(function(i){e.verbose&&console.warn(i),r(i)});let n={options:e};n.actions=e.resolver.actions[e.resolver.depth],t(n)})}var Nte=e=>e.reduce((t,r)=>t.then(n=>r().then(Array.prototype.concat.bind(n))),Promise.resolve([]));function V1(e,t,r){e.resolver.actions.push([]),Gk(e).then(function(n){Nte(n.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){V1(n.options,t,r)},0):(e.verbose>1&&console.warn(br.colour.yellow+"Finished external resolution!",br.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(br.colour.yellow+"Starting internal resolution!",br.colour.normal),e.openapi=$te(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(br.colour.yellow+"Finished internal resolution!",br.colour.normal)),wa(e.openapi,{},function(i,o,s){Cd(i,o)&&(e.preserveMiro||delete i["x-miro"])}),t(e))}).catch(function(i){e.verbose&&console.warn(i),r(i)})}).catch(function(n){e.verbose&&console.warn(n),r(n)})}function Jk(e){if(e.cache||(e.cache={}),e.fetch||(e.fetch=Pte),e.source){let t=Wo.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=Yk.resolve(e.source))}e.externals=[],e.externalRefs={},e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}function kte(e){return Jk(e),new Promise(function(t,r){e.resolve?V1(e,t,r):t(e)})}function Ite(e,t,r){return r||(r={}),r.openapi=e,r.source=t,r.resolve=!0,Jk(r),new Promise(function(n,i){V1(r,n,i)})}Xk.exports={optionalResolve:kte,resolve:Ite}});var tI=w((_be,eI)=>{"use strict";function Zk(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function vn(e,t,r,n){if(typeof r.depth>"u"&&(r=Zk()),e===null||typeof e>"u")return e;if(typeof e.$ref<"u"){let i={$ref:e.$ref};return r.allowRefSiblings&&e.description&&(i.description=e.description),n(i,t,r),i}if(r.combine&&(e.allOf&&Array.isArray(e.allOf)&&e.allOf.length===1&&(e=Object.assign({},e.allOf[0],e),delete e.allOf),e.anyOf&&Array.isArray(e.anyOf)&&e.anyOf.length===1&&(e=Object.assign({},e.anyOf[0],e),delete e.anyOf),e.oneOf&&Array.isArray(e.oneOf)&&e.oneOf.length===1&&(e=Object.assign({},e.oneOf[0],e),delete e.oneOf)),n(e,t,r),r.seen.has(e))return e;if(typeof e=="object"&&e!==null&&r.seen.set(e,!0),r.top=!1,r.depth++,typeof e.items<"u"&&(r.property="items",vn(e.items,e,r,n)),e.additionalItems&&typeof e.additionalItems=="object"&&(r.property="additionalItems",vn(e.additionalItems,e,r,n)),e.additionalProperties&&typeof e.additionalProperties=="object"&&(r.property="additionalProperties",vn(e.additionalProperties,e,r,n)),e.properties)for(let i in e.properties){let o=e.properties[i];r.property="properties/"+i,vn(o,e,r,n)}if(e.patternProperties)for(let i in e.patternProperties){let o=e.patternProperties[i];r.property="patternProperties/"+i,vn(o,e,r,n)}if(e.allOf)for(let i in e.allOf){let o=e.allOf[i];r.property="allOf/"+i,vn(o,e,r,n)}if(e.anyOf)for(let i in e.anyOf){let o=e.anyOf[i];r.property="anyOf/"+i,vn(o,e,r,n)}if(e.oneOf)for(let i in e.oneOf){let o=e.oneOf[i];r.property="oneOf/"+i,vn(o,e,r,n)}return e.not&&(r.property="not",vn(e.not,e,r,n)),r.depth--,e}eI.exports={getDefaultState:Zk,walkSchema:vn}});var nI=w((Obe,rI)=>{"use strict";var qte=require("http"),jte={default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"};rI.exports={statusCodes:Object.assign({},jte,qte.STATUS_CODES)}});var iI=w((Pbe,Mte)=>{Mte.exports={name:"swagger2openapi",version:"7.0.8",description:"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate",main:"index.js",bin:{swagger2openapi:"./swagger2openapi.js","oas-validate":"./oas-validate.js",boast:"./boast.js"},funding:"https://github.com/Mermade/oas-kit?sponsor=1",scripts:{test:"mocha"},browserify:{transform:[["babelify",{presets:["es2015"]}]]},repository:{url:"https://github.com/Mermade/oas-kit.git",type:"git"},bugs:{url:"https://github.com/mermade/oas-kit/issues"},author:"Mike Ralphson <mike.ralphson@gmail.com>",license:"BSD-3-Clause",dependencies:{"call-me-maybe":"^1.0.1","node-fetch":"^2.6.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.8","oas-resolver":"^2.5.6","oas-schema-walker":"^1.1.5","oas-validator":"^5.0.8",reftools:"^1.1.9",yaml:"^1.10.0",yargs:"^17.0.1"},keywords:["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],gitHead:"b1bba3fc5007e96a991bf2a015cf0534ac36b88b"}});var vI=w((Ebe,bI)=>{"use strict";var Lte=require("fs"),Dte=require("url"),$be=require("path"),Il=E2(),Fte=l1(),fI=L1(),Yn=Al(),Nl=Yn.jptr,Bte=Pd().isRef,wn=Cl().clone,oI=Cl().circularClone,Nd=$d().recurse,sI=Qk(),Ute=tI(),Pe=B1(),Vte=nI().statusCodes,zte=iI().version,dI="3.0.0",Td,qt=class extends Error{constructor(t){super(t),this.name="S2OError"}};function jt(e,t){let r=new qt(e);if(r.options=t,t.promise)t.promise.reject(r);else throw r}function Pt(e,t,r){r.warnOnly?t[r.warnProperty||"x-s2o-warning"]=e:jt(e,r)}function Hte(e,t,r){if(e.nullable&&r.patches++,e.discriminator&&typeof e.discriminator=="string"&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(e.items.length===0?e.items={}:e.items.length===1?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(r.patch){if(r.patches++,e.type.length===0)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let n of e.type){let i={};if(n==="null")e.nullable=!0;else{i.type=n;for(let o of Pe.arrayProperties)typeof e.prop<"u"&&(i[o]=e[o],delete e[o])}i.type&&e.oneOf.push(i)}delete e.type,e.oneOf.length===0?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&Pt("Lost properties from oneOf",e,r),delete e.oneOf)}e.type&&Array.isArray(e.type)&&e.type.length===1&&(e.type=e.type[0])}else jt("(Patchable) schema type must not be an array",r);e.type&&e.type==="null"&&(delete e.type,e.nullable=!0),e.type==="array"&&!e.items&&(e.items={}),e.type==="file"&&(e.type="string",e.format="binary"),typeof e.required=="boolean"&&(e.required&&e.name&&(typeof t.required>"u"&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&typeof e.xml.namespace=="string"&&(e.xml.namespace||delete e.xml.namespace),typeof e.allowEmptyValue<"u"&&(r.patches++,delete e.allowEmptyValue)}function Kte(e,t){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),typeof e["x-nullable"]=="boolean"&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),typeof e["x-discriminator"]=="object"&&typeof e["x-discriminator"].propertyName=="string"){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let r in e.discriminator.mapping){let n=e.discriminator.mapping[r];n.startsWith("#/definitions/")&&(e.discriminator.mapping[r]=n.replace("#/definitions/","#/components/schemas/"))}}}function kl(e,t){Ute.walkSchema(e,{},{},function(r,n,i){Kte(r,n),Hte(r,n,t)})}function Wte(e){return e.indexOf("#")>=0?e=e.split("#")[1].split("/").pop():e=e.split("/").pop().split(".")[0],encodeURIComponent(Pe.sanitise(e))}function Yte(e,t,r){let n=r.payload.options;if(Bte(e,t)){if(!e[t].startsWith("#/components/")){if(e[t]==="#/consumes")delete e[t],r.parent[r.pkey]=wn(n.openapi.consumes);else if(e[t]==="#/produces")delete e[t],r.parent[r.pkey]=wn(n.openapi.produces);else if(e[t].startsWith("#/definitions/")){let i=e[t].replace("#/definitions/","").split("/"),o=Yn.jpunescape(i[0]),s=Td.schemas[decodeURIComponent(o)];s?i[0]=s:Pt("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+i.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+Pe.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+Pe.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let i=wn(Yn.jptr(n.openapi,e[t]));if(i===!1)Pt("direct $ref not found "+e[t],e,n);else if(n.refmap[e[t]])e[t]=n.refmap[e[t]];else{let o=e[t];o=o.replace("/properties/headers/",""),o=o.replace("/properties/responses/",""),o=o.replace("/properties/parameters/",""),o=o.replace("/properties/schemas/","");let s="schemas",a=o.lastIndexOf("/schema");if(s=o.indexOf("/headers/")>a?"headers":o.indexOf("/responses/")>a?"responses":o.indexOf("/example")>a?"examples":o.indexOf("/x-")>a?"extensions":o.indexOf("/parameters/")>a?"parameters":"schemas",s==="schemas"&&kl(i,n),s!=="responses"&&s!=="extensions"){let c=s.substr(0,s.length-1);c==="parameter"&&i.name&&i.name===Pe.sanitise(i.name)&&(c=encodeURIComponent(i.name));let l=1;for(e["x-miro"]&&(c=Wte(e["x-miro"]),l="");Yn.jptr(n.openapi,"#/components/"+s+"/"+c+l);)l=l===""?2:++l;let u="#/components/"+s+"/"+c+l,p="";s==="examples"&&(i={value:i},p="/value"),Yn.jptr(n.openapi,u,i),n.refmap[e[t]]=u+p,e[t]=u+p}}}}if(delete e["x-miro"],Object.keys(e).length>1){let i=e[t],o=r.path.indexOf("/schema")>=0;n.refSiblings==="preserve"||(o&&n.refSiblings==="allOf"?(delete e.$ref,r.parent[r.pkey]={allOf:[{$ref:i},e]}):r.parent[r.pkey]={$ref:i})}}if(t==="x-ms-odata"&&typeof e[t]=="string"&&e[t].startsWith("#/")){let i=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=Td.schemas[decodeURIComponent(i[0])];o?i[0]=o:Pt("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+i.join("/")}}function Gte(e,t){for(let r in t.refmap)Yn.jptr(e,r,{$ref:t.refmap[r]})}function mI(e){for(let t in e)for(let r in e[t]){let n=Pe.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function Jte(e,t){if(e.type==="basic"&&(e.type="http",e.scheme="basic"),e.type==="oauth2"){let r={},n=e.flow;e.flow==="application"&&(n="clientCredentials"),e.flow==="accessCode"&&(n="authorizationCode"),typeof e.authorizationUrl<"u"&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),typeof e.tokenUrl=="string"&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,typeof e.name<"u"&&(t.patch?(t.patches++,delete e.name):jt("(Patchable) oauth2 securitySchemes should not have name property",t))}}function aI(e){return e&&!e["x-s2o-delete"]}function hI(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&e.items.type!=="array"&&(e.items.collectionFormat!==e.collectionFormat&&Pt("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),e.type==="array"?(e.collectionFormat==="ssv"?Pt("collectionFormat:ssv is no longer supported for headers",e,t):e.collectionFormat==="pipes"?Pt("collectionFormat:pipes is no longer supported for headers",e,t):e.collectionFormat==="multi"?e.explode=!0:e.collectionFormat==="tsv"?(Pt("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?(t.patches++,delete e.collectionFormat):jt("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type;for(let r of Pe.parameterTypeProperties)typeof e[r]<"u"&&(e.schema[r]=e[r],delete e[r]);for(let r of Pe.arrayProperties)typeof e[r]<"u"&&(e.schema[r]=e[r],delete e[r])}}function yI(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let r=e.$ref.split("#/parameters/");e.$ref=r[0]+"#/components/parameters/"+Pe.sanitise(r[1])}e.$ref.indexOf("#/definitions/")>=0&&Pt("Definition used as parameter",e,t)}function Xte(e,t){let r={};for(let n of Object.keys(e))r[n]=e[n],n==="parameters"&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}function Rd(e,t,r,n,i,o,s){let a={},c=!0,l;if(t&&t.consumes&&typeof t.consumes=="string")if(s.patch)s.patches++,t.consumes=[t.consumes];else return jt("(Patchable) operation.consumes must be an array",s);Array.isArray(o.consumes)||delete o.consumes;let u=((t?t.consumes:null)||o.consumes||[]).filter(Pe.uniqueOnly);if(e&&e.$ref&&typeof e.$ref=="string"){yI(e,s);let p=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),m=!1,d=o.components.parameters[p];if((!d||d["x-s2o-delete"])&&e.$ref.startsWith("#/")&&(e["x-s2o-delete"]=!0,m=!0),m){let f=e.$ref,h=Nl(o,e.$ref);!h&&f.startsWith("#/")?Pt("Could not resolve reference "+f,e,s):h&&(e=h)}}if(e&&(e.name||e.in)){typeof e["x-deprecated"]=="boolean"&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),typeof e["x-example"]<"u"&&(e.example=e["x-example"],delete e["x-example"]),e.in!=="body"&&!e.type&&(s.patch?(s.patches++,e.type="string"):jt("(Patchable) parameter.type is mandatory for non-body parameters",s)),e.type&&typeof e.type=="object"&&e.type.$ref&&(e.type=Nl(o,e.type.$ref)),e.type==="file"&&(e["x-s2o-originalType"]=e.type,l=e.type),e.description&&typeof e.description=="object"&&e.description.$ref&&(e.description=Nl(o,e.description.$ref)),e.description===null&&delete e.description;let p=e.collectionFormat;if(e.type==="array"&&!p&&(p="csv"),p&&(e.type!=="array"&&(s.patch?(s.patches++,delete e.collectionFormat):jt("(Patchable) collectionFormat is only applicable to param.type array",s)),p==="csv"&&(e.in==="query"||e.in==="cookie")&&(e.style="form",e.explode=!1),p==="csv"&&(e.in==="path"||e.in==="header")&&(e.style="simple"),p==="ssv"&&(e.in==="query"?e.style="spaceDelimited":Pt("collectionFormat:ssv is no longer supported except for in:query parameters",e,s)),p==="pipes"&&(e.in==="query"?e.style="pipeDelimited":Pt("collectionFormat:pipes is no longer supported except for in:query parameters",e,s)),p==="multi"&&(e.explode=!0),p==="tsv"&&(Pt("collectionFormat:tsv is no longer supported",e,s),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&e.type!=="body"&&e.in!=="formData")if(e.items&&e.schema)Pt("parameter has array,items and schema",e,s);else{e.schema&&s.patches++,(!e.schema||typeof e.schema!="object")&&(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,Nd(e.schema.items,null,function(m,d,f){d==="collectionFormat"&&typeof m[d]=="string"&&(p&&m[d]!==p&&Pt("Nested collectionFormats are not supported",e,s),delete m[d])}));for(let m of Pe.parameterTypeProperties)typeof e[m]<"u"&&(e.schema[m]=e[m]),delete e[m]}e.schema&&kl(e.schema,s),e["x-ms-skip-url-encoding"]&&e.in==="query"&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&e.in==="formData"){c=!1,a.content={};let p="application/x-www-form-urlencoded";if(u.length&&u.indexOf("multipart/form-data")>=0&&(p="multipart/form-data"),a.content[p]={},e.schema)a.content[p].schema=e.schema,e.schema.$ref&&(a["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{a.content[p].schema={},a.content[p].schema.type="object",a.content[p].schema.properties={},a.content[p].schema.properties[e.name]={};let m=a.content[p].schema,d=a.content[p].schema.properties[e.name];e.description&&(d.description=e.description),e.example&&(d.example=e.example),e.type&&(d.type=e.type);for(let f of Pe.parameterTypeProperties)typeof e[f]<"u"&&(d[f]=e[f]);e.required===!0&&(m.required||(m.required=[]),m.required.push(e.name),a.required=!0),typeof e.default<"u"&&(d.default=e.default),d.properties&&(d.properties=e.properties),e.allOf&&(d.allOf=e.allOf),e.type==="array"&&e.items&&(d.items=e.items,d.items.collectionFormat&&delete d.items.collectionFormat),(l==="file"||e["x-s2o-originalType"]==="file")&&(d.type="string",d.format="binary"),z1(e,d)}}else e&&e.type==="file"&&(e.required&&(a.required=e.required),a.content={},a.content["application/octet-stream"]={},a.content["application/octet-stream"].schema={},a.content["application/octet-stream"].schema.type="string",a.content["application/octet-stream"].schema.format="binary",z1(e,a));if(e&&e.in==="body"){a.content={},e.name&&(a["x-s2o-name"]=(t&&t.operationId?Pe.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(a.description=e.description),e.required&&(a.required=e.required),t&&s.rbname&&e.name&&(t[s.rbname]=e.name),e.schema&&e.schema.$ref?a["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&e.schema.type==="array"&&e.schema.items&&e.schema.items.$ref&&(a["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),u.length||u.push("application/json");for(let p of u)a.content[p]={},a.content[p].schema=wn(e.schema||{}),kl(a.content[p].schema,s);z1(e,a)}if(Object.keys(a).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&c){t.requestBody["x-s2o-overloaded"]=!0;let p=t.operationId||i;Pt("Operation "+p+" has multiple requestBodies",t,s)}else t.requestBody||(t=r[n]=Xte(t,s)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&a.content["multipart/form-data"]&&a.content["multipart/form-data"].schema&&a.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,a.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(a.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&a.content["application/x-www-form-urlencoded"]&&a.content["application/x-www-form-urlencoded"].schema&&a.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,a.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(a.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,a),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=Pe.sanitiseAll(t.operationId))));if(e&&!e["x-s2o-delete"]){delete e.type;for(let p of Pe.parameterTypeProperties)delete e[p];e.in==="path"&&(typeof e.required>"u"||e.required!==!0)&&(s.patch?(s.patches++,e.required=!0):jt("(Patchable) path parameters must be required:true ["+e.name+" in "+i+"]",s))}return t}function z1(e,t){for(let r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function gI(e,t,r,n,i){if(!e)return!1;if(e.$ref&&typeof e.$ref=="string")e.$ref.indexOf("#/definitions/")>=0?Pt("definition used as response: "+e.$ref,e,i):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+Pe.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((typeof e.description>"u"||e.description===null||e.description===""&&i.patch)&&(i.patch?typeof e=="object"&&!Array.isArray(e)&&(i.patches++,e.description=Vte[e]||""):jt("(Patchable) response.description is mandatory",i)),typeof e.schema<"u"){if(kl(e.schema,i),e.schema.$ref&&typeof e.schema.$ref=="string"&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+Pe.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),r&&r.produces&&typeof r.produces=="string")if(i.patch)i.patches++,r.produces=[r.produces];else return jt("(Patchable) operation.produces must be an array",i);n.produces&&!Array.isArray(n.produces)&&delete n.produces;let o=((r?r.produces:null)||n.produces||[]).filter(Pe.uniqueOnly);o.length||o.push("*/*"),e.content={};for(let s of o){if(e.content[s]={},e.content[s].schema=wn(e.schema),e.examples&&e.examples[s]){let a={};a.value=e.examples[s],e.content[s].examples={},e.content[s].examples.response=a,delete e.examples[s]}e.content[s].schema.type==="file"&&(e.content[s].schema={type:"string",format:"binary"})}delete e.schema}for(let o in e.examples)e.content||(e.content={}),e.content[o]||(e.content[o]={}),e.content[o].examples={},e.content[o].examples.response={},e.content[o].examples.response.value=e.examples[o];if(delete e.examples,e.headers)for(let o in e.headers)o.toLowerCase()==="status code"?i.patch?(i.patches++,delete e.headers[o]):jt('(Patchable) "Status Code" is not a valid header',i):hI(e.headers[o],i)}}function cI(e,t,r,n,i){for(let o in e){let s=e[o];s&&s["x-trace"]&&typeof s["x-trace"]=="object"&&(s.trace=s["x-trace"],delete s["x-trace"]),s&&s["x-summary"]&&typeof s["x-summary"]=="string"&&(s.summary=s["x-summary"],delete s["x-summary"]),s&&s["x-description"]&&typeof s["x-description"]=="string"&&(s.description=s["x-description"],delete s["x-description"]),s&&s["x-servers"]&&Array.isArray(s["x-servers"])&&(s.servers=s["x-servers"],delete s["x-servers"]);for(let a in s)if(Pe.httpMethods.indexOf(a)>=0||a==="x-amazon-apigateway-any-method"){let c=s[a];if(c&&c.parameters&&Array.isArray(c.parameters)){if(s.parameters)for(let l of s.parameters)typeof l.$ref=="string"&&(yI(l,r),l=Nl(i,l.$ref)),!c.parameters.find(function(p,m,d){return p.name===l.name&&p.in===l.in})&&(l.in==="formData"||l.in==="body"||l.type==="file")&&(c=Rd(l,c,s,a,o,i,r),r.rbname&&c[r.rbname]===""&&delete c[r.rbname]);for(let l of c.parameters)c=Rd(l,c,s,a,a+":"+o,i,r);r.rbname&&c[r.rbname]===""&&delete c[r.rbname],r.debug||c.parameters&&(c.parameters=c.parameters.filter(aI))}if(c&&c.security&&mI(c.security),typeof c=="object"){if(!c.responses){let l={};l.description="Default response",c.responses={default:l}}for(let l in c.responses){let u=c.responses[l];gI(u,l,c,i,r)}}if(c&&c["x-servers"]&&Array.isArray(c["x-servers"]))c.servers=c["x-servers"],delete c["x-servers"];else if(c&&c.schemes&&c.schemes.length){for(let l of c.schemes)if((!i.schemes||i.schemes.indexOf(l)<0)&&(c.servers||(c.servers=[]),Array.isArray(i.servers)))for(let u of i.servers){let p=wn(u),m=Dte.parse(p.url);m.protocol=l,p.url=m.format(),c.servers.push(p)}}if(r.debug&&(c["x-s2o-consumes"]=c.consumes||[],c["x-s2o-produces"]=c.produces||[]),c){if(delete c.consumes,delete c.produces,delete c.schemes,c["x-ms-examples"]){for(let l in c["x-ms-examples"]){let u=c["x-ms-examples"][l],p=Pe.sanitiseAll(l);if(u.parameters)for(let m in u.parameters){let d=u.parameters[m];for(let f of(c.parameters||[]).concat(s.parameters||[]))f.$ref&&(f=Yn.jptr(i,f.$ref)),f.name===m&&!f.example&&(f.examples||(f.examples={}),f.examples[l]={value:d})}if(u.responses)for(let m in u.responses){if(u.responses[m].headers)for(let d in u.responses[m].headers){let f=u.responses[m].headers[d];for(let h in c.responses[m].headers)if(h===d){let y=c.responses[m].headers[h];y.example=f}}if(u.responses[m].body&&(i.components.examples[p]={value:wn(u.responses[m].body)},c.responses[m]&&c.responses[m].content))for(let d in c.responses[m].content){let f=c.responses[m].content[d];f.examples||(f.examples={}),f.examples[l]={$ref:"#/components/examples/"+p}}}}delete c["x-ms-examples"]}if(c.parameters&&c.parameters.length===0&&delete c.parameters,c.requestBody){let l=c.operationId?Pe.sanitiseAll(c.operationId):Pe.sanitiseAll(a+o).toCamelCase(),u=Pe.sanitise(c.requestBody["x-s2o-name"]||l||"");delete c.requestBody["x-s2o-name"];let p=JSON.stringify(c.requestBody),m=Pe.hash(p);if(!n[m]){let f={};f.name=u,f.body=c.requestBody,f.refs=[],n[m]=f}let d="#/"+t+"/"+encodeURIComponent(Yn.jpescape(o))+"/"+a+"/requestBody";n[m].refs.push(d)}}}if(s&&s.parameters){for(let a in s.parameters){let c=s.parameters[a];Rd(c,null,s,null,o,i,r)}!r.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(aI))}}}function Qte(e,t){let r={};Td={schemas:{}},e.security&&mI(e.security);for(let i in e.components.securitySchemes){let o=Pe.sanitise(i);i!==o&&(e.components.securitySchemes[o]&&jt("Duplicate sanitised securityScheme name "+o,t),e.components.securitySchemes[o]=e.components.securitySchemes[i],delete e.components.securitySchemes[i]),Jte(e.components.securitySchemes[o],t)}for(let i in e.components.schemas){let o=Pe.sanitiseAll(i),s="";if(i!==o){for(;e.components.schemas[o+s];)s=s?++s:2;e.components.schemas[o+s]=e.components.schemas[i],delete e.components.schemas[i]}Td.schemas[i]=o+s,kl(e.components.schemas[o+s],t)}t.refmap={},Nd(e,{payload:{options:t}},Yte),Gte(e,t);for(let i in e.components.parameters){let o=Pe.sanitise(i);i!==o&&(e.components.parameters[o]&&jt("Duplicate sanitised parameter name "+o,t),e.components.parameters[o]=e.components.parameters[i],delete e.components.parameters[i]);let s=e.components.parameters[o];Rd(s,null,null,null,o,e,t)}for(let i in e.components.responses){let o=Pe.sanitise(i);i!==o&&(e.components.responses[o]&&jt("Duplicate sanitised response name "+o,t),e.components.responses[o]=e.components.responses[i],delete e.components.responses[i]);let s=e.components.responses[o];if(gI(s,o,null,e,t),s.headers)for(let a in s.headers)a.toLowerCase()==="status code"?t.patch?(t.patches++,delete s.headers[a]):jt('(Patchable) "Status Code" is not a valid header',t):hI(s.headers[a],t)}for(let i in e.components.requestBodies){let o=e.components.requestBodies[i],s=JSON.stringify(o),a=Pe.hash(s),c={};c.name=i,c.body=o,c.refs=[],r[a]=c}if(cI(e.paths,"paths",t,r,e),e["x-ms-paths"]&&cI(e["x-ms-paths"],"x-ms-paths",t,r,e),!t.debug)for(let i in e.components.parameters)e.components.parameters[i]["x-s2o-delete"]&&delete e.components.parameters[i];t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let n=[];if(e.components.requestBodies={},!t.resolveInternal){let i=1;for(let o in r){let s=r[o];if(s.refs.length>1){let a="";for(s.name||(s.name="requestBody",a=i++);n.indexOf(s.name+a)>=0;)a=a?++a:2;s.name=s.name+a,n.push(s.name),e.components.requestBodies[s.name]=wn(s.body);for(let c in s.refs){let l={};l.$ref="#/components/requestBodies/"+s.name,Yn.jptr(e,s.refs[c],l)}}}}return e.components.responses&&Object.keys(e.components.responses).length===0&&delete e.components.responses,e.components.parameters&&Object.keys(e.components.parameters).length===0&&delete e.components.parameters,e.components.examples&&Object.keys(e.components.examples).length===0&&delete e.components.examples,e.components.requestBodies&&Object.keys(e.components.requestBodies).length===0&&delete e.components.requestBodies,e.components.securitySchemes&&Object.keys(e.components.securitySchemes).length===0&&delete e.components.securitySchemes,e.components.headers&&Object.keys(e.components.headers).length===0&&delete e.components.headers,e.components.schemas&&Object.keys(e.components.schemas).length===0&&delete e.components.schemas,e.components&&Object.keys(e.components).length===0&&delete e.components,e}function lI(e){return!e||!e.url||typeof e.url!="string"||(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,function(t,r){e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e}function uI(e,t,r){if(typeof e.info>"u"||e.info===null)if(t.patch)t.patches++,e.info={version:"",title:""};else return r(new qt("(Patchable) info object is mandatory"));if(typeof e.info!="object"||Array.isArray(e.info))return r(new qt("info must be an object"));if(typeof e.info.title>"u"||e.info.title===null)if(t.patch)t.patches++,e.info.title="";else return r(new qt("(Patchable) info.title cannot be null"));if(typeof e.info.version>"u"||e.info.version===null)if(t.patch)t.patches++,e.info.version="";else return r(new qt("(Patchable) info.version cannot be null"));if(typeof e.info.version!="string")if(t.patch)t.patches++,e.info.version=e.info.version.toString();else return r(new qt("(Patchable) info.version must be a string"));if(typeof e.info.logo<"u")if(t.patch)t.patches++,e.info["x-logo"]=e.info.logo,delete e.info.logo;else return r(new qt("(Patchable) info should not have logo property"));if(typeof e.info.termsOfService<"u"){if(e.info.termsOfService===null)if(t.patch)t.patches++,e.info.termsOfService="";else return r(new qt("(Patchable) info.termsOfService cannot be null"));try{let n=new URL(e.info.termsOfService)}catch{if(t.patch)t.patches++,delete e.info.termsOfService;else return r(new qt("(Patchable) info.termsOfService must be a URL"))}}}function pI(e,t,r){if(typeof e.paths>"u")if(t.patch)t.patches++,e.paths={};else return r(new qt("(Patchable) paths object is mandatory"))}function Zte(e,t){let r=new WeakSet;Nd(e,{identityDetection:!0},function(n,i,o){typeof n[i]=="object"&&n[i]!==null&&(r.has(n[i])?t.anchors?n[i]=wn(n[i]):jt("YAML anchor or merge key at "+o.path,t):r.add(n[i]))})}function H1(e,t,r){return Il(r,new Promise(function(n,i){if(e||(e={}),t.original=e,t.text||(t.text=fI.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=n,t.promise.reject=i,t.patches=0,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),Zte(e,t),e.openapi&&typeof e.openapi=="string"&&e.openapi.startsWith("3.")){t.openapi=oI(e),uI(t.openapi,t,i),pI(t.openapi,t,i),sI.optionalResolve(t).then(function(){return t.direct?n(t.openapi):n(t)}).catch(function(s){console.warn(s),i(s)});return}if(!e.swagger||e.swagger!="2.0")return i(new qt("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi=typeof t.targetVersion=="string"&&t.targetVersion.startsWith("3.")?t.targetVersion:dI,t.origin){o["x-origin"]||(o["x-origin"]=[]);let s={};s.url=t.source||t.origin,s.format="swagger",s.version=e.swagger,s.converter={},s.converter.url="https://github.com/mermade/oas-kit",s.converter.version=zte,o["x-origin"].push(s)}if(o=Object.assign(o,oI(e)),delete o.swagger,Nd(o,{},function(s,a,c){s[a]===null&&!a.startsWith("x-")&&a!=="default"&&c.path.indexOf("/example")<0&&delete s[a]}),e.host)for(let s of Array.isArray(e.schemes)?e.schemes:[""]){let a={},c=(e.basePath||"").replace(/\/$/,"");a.url=(s?s+":":"")+"//"+e.host+c,lI(a),o.servers||(o.servers=[]),o.servers.push(a)}else if(e.basePath){let s={};s.url=e.basePath,lI(s),o.servers||(o.servers=[]),o.servers.push(s)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let s=e["x-ms-parameterized-host"],a={};a.url=s.hostTemplate+(e.basePath?e.basePath:""),a.variables={};let c=a.url.match(/\{\w+\}/g);for(let l in s.parameters){let u=s.parameters[l];u.$ref&&(u=wn(Nl(o,u.$ref))),l.startsWith("x-")||(delete u.required,delete u.type,delete u.in,typeof u.default>"u"&&(u.enum?u.default=u.enum[0]:u.default="none"),u.name||(u.name=c[l].replace("{","").replace("}","")),a.variables[u.name]=u,delete u.name)}o.servers||(o.servers=[]),s.useSchemePrefix===!1?o.servers.push(a):e.schemes.forEach(l=>{o.servers.push(Object.assign({},a,{url:l+"://"+a.url}))}),delete o["x-ms-parameterized-host"]}uI(o,t,i),pI(o,t,i),typeof o.consumes=="string"&&(o.consumes=[o.consumes]),typeof o.produces=="string"&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,sI.optionalResolve(t).then(function(){Qte(t.openapi,t),t.direct?n(t.openapi):n(t)}).catch(function(s){console.warn(s),i(s)})}))}function kd(e,t,r){return Il(r,new Promise(function(n,i){let o=null,s=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(a){s=a;try{o=fI.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(c){s=c}}o?H1(o,t).then(a=>n(a)).catch(a=>i(a)):i(new qt(s?s.message:"Could not parse string"))}))}function ere(e,t,r){return Il(r,new Promise(function(n,i){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),t.fetch||(t.fetch=Fte);let o=Object.assign({},t.fetchOptions,{agent:t.agent});t.fetch(e,o).then(function(s){if(s.status!==200)throw new qt(`Received status code ${s.status}: ${e}`);return s.text()}).then(function(s){kd(s,t).then(a=>n(a)).catch(a=>i(a))}).catch(function(s){i(s)})}))}function tre(e,t,r){return Il(r,new Promise(function(n,i){Lte.readFile(e,t.encoding||"utf8",function(o,s){o?i(o):(t.sourceFile=e,kd(s,t).then(a=>n(a)).catch(a=>i(a)))})}))}function rre(e,t,r){return Il(r,new Promise(function(n,i){let o="";e.on("data",function(s){o+=s}).on("end",function(){kd(o,t).then(s=>n(s)).catch(s=>i(s))})}))}bI.exports={S2OError:qt,targetVersion:dI,convert:H1,convertObj:H1,convertUrl:ere,convertStr:kd,convertFile:tre,convertStream:rre}});var VI=w((UI,J1)=>{(function(e){if(typeof UI=="object"&&typeof J1<"u")J1.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t=this,t.OpenAPISampler=e()}})(function(){var e,t,r;return function(){function n(i,o,s){function a(u,p){if(!o[u]){if(!i[u]){var m=typeof require=="function"&&require;if(!p&&m)return m(u,!0);if(c)return c(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var f=o[u]={exports:{}};i[u][0].call(f.exports,function(h){var y=i[u][1][h];return a(y||h)},f,f.exports,n,i,o,s)}return o[u].exports}for(var c=typeof require=="function"&&require,l=0;l<s.length;l++)a(s[l]);return a}return n}()({1:[function(n,i,o){"use strict";let s=n("./validator"),a=n("./xmlparser/XMLParser"),c=n("./xmlbuilder/json2xml");i.exports={XMLParser:a,XMLValidator:s,XMLBuilder:c}},{"./validator":4,"./xmlbuilder/json2xml":5,"./xmlparser/XMLParser":10}],2:[function(n,i,o){function s(a){return typeof a=="function"?a:Array.isArray(a)?c=>{for(let l of a)if(typeof l=="string"&&c===l||l instanceof RegExp&&l.test(c))return!0}:()=>!1}i.exports=s},{}],3:[function(n,i,o){"use strict";let s=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",a=s+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",c="["+s+"]["+a+"]*",l=new RegExp("^"+c+"$"),u=function(m,d){let f=[],h=d.exec(m);for(;h;){let y=[];y.startIndex=d.lastIndex-h[0].length;let g=h.length;for(let b=0;b<g;b++)y.push(h[b]);f.push(y),h=d.exec(m)}return f},p=function(m){let d=l.exec(m);return!(d===null||typeof d>"u")};o.isExist=function(m){return typeof m<"u"},o.isEmptyObject=function(m){return Object.keys(m).length===0},o.merge=function(m,d,f){if(d){let h=Object.keys(d),y=h.length;for(let g=0;g<y;g++)f==="strict"?m[h[g]]=[d[h[g]]]:m[h[g]]=d[h[g]]}},o.getValue=function(m){return o.isExist(m)?m:""},o.isName=p,o.getAllMatches=u,o.nameRegexp=c},{}],4:[function(n,i,o){"use strict";let s=n("./util"),a={allowBooleanAttributes:!1,unpairedTags:[]};o.validate=function(_,$){$=Object.assign({},a,$);let E=[],q=!1,O=!1;_[0]==="\uFEFF"&&(_=_.substr(1));for(let P=0;P<_.length;P++)if(_[P]==="<"&&_[P+1]==="?"){if(P+=2,P=l(_,P),P.err)return P}else if(_[P]==="<"){let N=P;if(P++,_[P]==="!"){P=u(_,P);continue}else{let D=!1;_[P]==="/"&&(D=!0,P++);let j="";for(;P<_.length&&_[P]!==">"&&_[P]!==" "&&_[P]!==" "&&_[P]!==`
|
|
200
|
+
`}};Wt._defineProperty(_d,"defaults",wk);Od.Document=_d;Od.defaultOptions=qee;Od.scalarOptions=jee});var Ok=w(_k=>{"use strict";var M1=VN(),zo=xk(),zee=q1(),Hee=Lo(),Kee=T1();Ol();function Wee(e,t=!0,r){r===void 0&&typeof t=="string"&&(r=t,t=!0);let n=Object.assign({},zo.Document.defaults[zo.defaultOptions.version],zo.defaultOptions);return new zee.Schema(n).createNode(e,t,r)}var ga=class extends zo.Document{constructor(t){super(Object.assign({},zo.defaultOptions,t))}};function Yee(e,t){let r=[],n;for(let i of M1.parse(e)){let o=new ga(t);o.parse(i,n),r.push(o),n=o}return r}function Sk(e,t){let r=M1.parse(e),n=new ga(t).parse(r[0]);if(r.length>1){let i="Source contains multiple documents; please use YAML.parseAllDocuments()";n.errors.unshift(new Hee.YAMLSemanticError(r[1],i))}return n}function Gee(e,t){let r=Sk(e,t);if(r.warnings.forEach(n=>Kee.warn(n)),r.errors.length>0)throw r.errors[0];return r.toJSON()}function Jee(e,t){let r=new ga(t);return r.contents=e,String(r)}var Xee={createNode:Wee,defaultOptions:zo.defaultOptions,Document:ga,parse:Gee,parseAllDocuments:Yee,parseCST:M1.parse,parseDocument:Sk,scalarOptions:zo.scalarOptions,stringify:Jee};_k.YAML=Xee});var L1=w((mbe,Pk)=>{Pk.exports=Ok().YAML});var Al=w((hbe,Ek)=>{"use strict";function Qee(e){return e.replace(/\~/g,"~0").replace(/\//g,"~1")}function $k(e){return e.replace(/\~1/g,"/").replace(/~0/g,"~")}function Zee(e,t,r){if(typeof e>"u")return!1;if(!t||typeof t!="string"||t==="#")return typeof r<"u"?r:e;if(t.indexOf("#")>=0){let i=t.split("#");if(i[0])return!1;t=i[1],t=decodeURIComponent(t.slice(1).split("+").join(" "))}t.startsWith("/")&&(t=t.slice(1));let n=t.split("/");for(let i=0;i<n.length;i++){n[i]=$k(n[i]);let o=typeof r<"u"&&i==n.length-1,s=parseInt(n[i],10);if(!Array.isArray(e)||isNaN(s)||s.toString()!==n[i]?s=Array.isArray(e)&&n[i]==="-"?-2:-1:n[i]=i>0?n[i-1]:"",s!=-1||e&&e.hasOwnProperty(n[i]))if(s>=0)o&&(e[s]=r),e=e[s];else{if(s===-2)return o?(Array.isArray(e)&&e.push(r),r):void 0;o&&(e[n[i]]=r),e=e[n[i]]}else if(typeof r<"u"&&typeof e=="object"&&!Array.isArray(e))e[n[i]]=o?r:n[i+1]==="0"||n[i+1]==="-"?[]:{},e=e[n[i]];else return!1}return e}Ek.exports={jptr:Zee,jpescape:Qee,jpunescape:$k}});var Pd=w((ybe,Ak)=>{"use strict";function ete(e,t){return t==="$ref"&&!!e&&typeof e[t]=="string"}Ak.exports={isRef:ete}});var Cl=w((gbe,Tk)=>{"use strict";function tte(e){return e}function rte(e){return JSON.parse(JSON.stringify(e))}function nte(e){let t={};for(let r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function Ck(e){let t=Array.isArray(e)?[]:{};for(let r in e)(e.hasOwnProperty(r)||Array.isArray(e))&&(t[r]=typeof e[r]=="object"?Ck(e[r]):e[r]);return t}function ite(e){return Object.assign({},e)}function Rk(e,t){if(t||(t=new WeakMap),Object(e)!==e||e instanceof Function)return e;if(t.has(e))return t.get(e);try{var r=new e.constructor}catch{r=Object.create(Object.getPrototypeOf(e))}return t.set(e,r),Object.assign(r,...Object.keys(e).map(n=>({[n]:Rk(e[n],t)})))}Tk.exports={nop:tte,clone:rte,shallowClone:nte,deepClone:Ck,fastClone:ite,circularClone:Rk}});var $d=w((bbe,kk)=>{"use strict";var ote=Al().jpescape;function ste(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function Nk(e,t,r){if(t||(t={depth:0}),t.depth||(t=Object.assign({},ste(),t)),typeof e!="object")return;let n=t.path;for(let i in e){if(t.key=i,t.path=t.path+"/"+encodeURIComponent(ote(i)),t.identityPath=t.seen.get(e[i]),t.identity=typeof t.identityPath<"u",e.hasOwnProperty(i)&&r(e,i,t),typeof e[i]=="object"&&!t.identity){t.identityDetection&&!Array.isArray(e[i])&&e[i]!==null&&t.seen.set(e[i],t.path);let o={};o.parent=e,o.path=t.path,o.depth=t.depth?t.depth+1:1,o.pkey=i,o.payload=t.payload,o.seen=t.seen,o.identity=!1,o.identityDetection=t.identityDetection,Nk(e[i],o,r)}t.path=n}}kk.exports={recurse:Nk}});var Mk=w((vbe,jk)=>{"use strict";var ate=$d().recurse,Ik=Cl().shallowClone,Rl=Al().jptr,cte=Pd().isRef,lte=function(e){return e&&e.verbose?{warn:function(){var t=Array.prototype.slice.call(arguments);console.warn.apply(console,t)}}:{warn:function(){}}};function qk(e,t,r){r||(r={}),r.cache||(r.cache={}),r.state||(r.state={}),r.state.identityDetection=!0,r.depth=r.depth?r.depth+1:1;let n=r.depth>1?e:Ik(e),i={data:n},o=r.depth>1?t:Ik(t);r.master||(r.master=n);let s=lte(r),a=1;for(;a>0;)a=0,ate(i,r.state,function(c,l,u){if(cte(c,l)){let p=c[l];if(a++,r.cache[p]){let m=r.cache[p];if(m.resolved)s.warn("Patching %s for %s",p,m.path),u.parent[u.pkey]=m.data,r.$ref&&typeof u.parent[u.pkey]=="object"&&u.parent[u.pkey]!==null&&(u.parent[u.pkey][r.$ref]=p);else{if(p===m.path)throw new Error(`Tight circle at ${m.path}`);s.warn("Unresolved ref"),u.parent[u.pkey]=Rl(m.source,m.path),u.parent[u.pkey]===!1&&(u.parent[u.pkey]=Rl(m.source,m.key)),r.$ref&&typeof u.parent[u.pkey]=="object"&&u.parent[u.pkey]!==null&&(u.parent[r.$ref]=p)}}else{let m={};m.path=u.path.split("/$ref")[0],m.key=p,s.warn("Dereffing %s at %s",p,m.path),m.source=o,m.data=Rl(m.source,m.key),m.data===!1&&(m.data=Rl(r.master,m.key),m.source=r.master),m.data===!1&&s.warn("Missing $ref target",m.key),r.cache[p]=m,m.data=u.parent[u.pkey]=qk(Rl(m.source,m.key),m.source,r),r.$ref&&typeof u.parent[u.pkey]=="object"&&u.parent[u.pkey]!==null&&(u.parent[u.pkey][r.$ref]=p),m.resolved=!0}}});return i.data}jk.exports={dereference:qk}});var Vk=w((wbe,Uk)=>{Uk.exports=Tl;Tl.default=Tl;Tl.stable=Fk;Tl.stableStringify=Fk;var Ed="[...]",Lk="[Circular]",Ko=[],Ho=[];function Dk(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Tl(e,t,r,n){typeof n>"u"&&(n=Dk()),D1(e,"",0,[],void 0,0,n);var i;try{Ho.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,Bk(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ko.length!==0;){var o=Ko.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return i}function ba(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),Ko.push([n,r,t,i])):Ho.push([t,r,e]):(n[r]=e,Ko.push([n,r,t]))}function D1(e,t,r,n,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){ba(Lk,e,t,i);return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){ba(Ed,e,t,i);return}if(typeof s.edgesLimit<"u"&&r+1>s.edgesLimit){ba(Ed,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)D1(e[a],a,a,n,e,o,s);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var l=c[a];D1(e[l],l,a,n,e,o,s)}}n.pop()}}function ute(e,t){return e<t?-1:e>t?1:0}function Fk(e,t,r,n){typeof n>"u"&&(n=Dk());var i=F1(e,"",0,[],void 0,0,n)||e,o;try{Ho.length===0?o=JSON.stringify(i,t,r):o=JSON.stringify(i,Bk(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ko.length!==0;){var s=Ko.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return o}function F1(e,t,r,n,i,o,s){o+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){ba(Lk,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof s.depthLimit<"u"&&o>s.depthLimit){ba(Ed,e,t,i);return}if(typeof s.edgesLimit<"u"&&r+1>s.edgesLimit){ba(Ed,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)F1(e[a],a,a,n,e,o,s);else{var c={},l=Object.keys(e).sort(ute);for(a=0;a<l.length;a++){var u=l[a];F1(e[u],u,a,n,e,o,s),c[u]=e[u]}if(typeof i<"u")Ko.push([i,t,e]),i[t]=c;else return c}n.pop()}}function Bk(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(Ho.length>0)for(var n=0;n<Ho.length;n++){var i=Ho[n];if(i[1]===t&&i[0]===r){r=i[2],Ho.splice(n,1);break}}return e.call(this,t,r)}}});var B1=w((xbe,Kk)=>{"use strict";var zk=Vk(),pte=process.env.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function fte(e,t,r){return r.indexOf(e)===t}function dte(e){return new Set(e).size!==e.length}function mte(e){return new Set(e).size<=1}function hte(e,t){function r(n,i){return zk.stringify(n)===zk.stringify(Object.assign({},n,i))}return r(e,t)&&r(t,e)}function yte(e){let t=[];for(let r of e)t.find(function(i,o,s){return hte(i,r)})||t.push(r);return t}function gte(e){return e.length===yte(e).length}function bte(e){return e.find(function(t,r,n){return e.indexOf(t)<r})}function vte(e){let t=0,r;if(e.length===0)return t;for(let n=0;n<e.length;n++)r=e.charCodeAt(n),t=(t<<5)-t+r,t|=0;return t}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(t,r){return r.toUpperCase()})};var wte=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],xte=["items","minItems","maxItems","uniqueItems"],Ste=["get","post","put","delete","patch","head","options","trace"];function Hk(e){e=e.replace("[]","Array");let t=e.split("/");return t[0]=t[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),t.join("/")}function _te(e){return Hk(e.split("/").join("_"))}Kk.exports={colour:pte,uniqueOnly:fte,hasDuplicates:dte,allSame:mte,distinctArray:gte,firstDupe:bte,hash:vte,parameterTypeProperties:wte,arrayProperties:xte,httpMethods:Ste,sanitise:Hk,sanitiseAll:_te}});var Qk=w((Sbe,Xk)=>{"use strict";var Ote=require("fs"),Yk=require("path"),Wo=require("url"),Pte=l1(),Wk=L1(),va=Al().jptr,wa=$d().recurse,zi=Cl().clone,$te=Mk().dereference,Cd=Pd().isRef,br=B1();function Ete(e){return[...new Set(e)]}function Ate(e,t,r,n,i){return new Promise(function(o,s){Ote.readFile(e,t,function(a,c){a?r.ignoreIOErrors&&i?(r.verbose&&console.warn("FAILED",n),r.externalRefs[n].failed=!0,o(i)):s(a):o(c)})})}function U1(e,t,r,n,i,o){let s=o.externalRefs[r+n].paths[0],a=Wo.parse(i),c={},l=1;for(;l;)l=0,wa(e,{identityDetection:!0},function(u,p,m){if(Cd(u,p)){if(u[p].startsWith("#")){if(!c[u[p]]&&!u.$fixed){let d=zi(va(t,u[p]));if(o.verbose>1&&console.warn((d===!1?br.colour.red:br.colour.green)+"Fragment resolution",u[p],br.colour.normal),d===!1){if(m.parent[m.pkey]={},o.fatal){let f=new Error("Fragment $ref resolution failed "+u[p]);if(o.promise)o.promise.reject(f);else throw f}}else l++,m.parent[m.pkey]=d,c[u[p]]=m.path.replace("/%24ref","")}else if(!u.$fixed){let d=(s+"/"+c[u[p]]).split("/#/").join("/");m.parent[m.pkey]={$ref:d,"x-miro":u[p],$fixed:!0},o.verbose>1&&console.warn("Replacing with",d),l++}}else if(a.protocol){let d=Wo.resolve(i,u[p]).toString();o.verbose>1&&console.warn(br.colour.yellow+"Rewriting external url ref",u[p],"as",d,br.colour.normal),u["x-miro"]=u[p],o.externalRefs[u[p]]&&(o.externalRefs[d]||(o.externalRefs[d]=o.externalRefs[u[p]]),o.externalRefs[d].failed=o.externalRefs[u[p]].failed),u[p]=d}else if(!u["x-miro"]){let d=Wo.resolve(i,u[p]).toString(),f=!1;o.externalRefs[u[p]]&&(f=o.externalRefs[u[p]].failed),f||(o.verbose>1&&console.warn(br.colour.yellow+"Rewriting external ref",u[p],"as",d,br.colour.normal),u["x-miro"]=u[p],u[p]=d)}}});return wa(e,{},function(u,p,m){Cd(u,p)&&typeof u.$fixed<"u"&&delete u.$fixed}),o.verbose>1&&console.warn("Finished fragment resolution"),e}function Ad(e,t){if(!t.filters||!t.filters.length)return e;for(let r of t.filters)e=r(e,t);return e}function Cte(e,t){return e&&e.length>2?e:t&&t.length>2?t:"file:"}function Rte(e,t,r,n){var i=Wo.parse(r.source),o=r.source.split("\\").join("/").split("/");o.pop()||o.pop();let a="",c=t.split("#");c.length>1&&(a="#"+c[1],t=c[0]),o=o.join("/");let l=Wo.parse(t),u=Cte(l.protocol,i.protocol),p;if(u==="file:"?p=Yk.resolve(o?o+"/":"",t):p=Wo.resolve(o?o+"/":"",t),r.cache[p]){r.verbose&&console.warn("CACHED",p,a);let m=zi(r.cache[p]),d=r.externalRef=m;if(a&&(d=va(d,a),d===!1&&(d={},r.fatal))){let f=new Error("Cached $ref resolution failed "+p+a);if(r.promise)r.promise.reject(f);else throw f}return d=U1(d,m,t,a,p,r),d=Ad(d,r),n(zi(d),p,r),Promise.resolve(d)}if(r.verbose&&console.warn("GET",p,a),r.handlers&&r.handlers[u])return r.handlers[u](o,t,a,r).then(function(m){return r.externalRef=m,m=Ad(m,r),r.cache[p]=m,n(m,p,r),m}).catch(function(m){throw r.verbose&&console.warn(m),m});if(u&&u.startsWith("http")){let m=Object.assign({},r.fetchOptions,{agent:r.agent});return r.fetch(p,m).then(function(d){if(d.status!==200){if(r.ignoreIOErrors)return r.verbose&&console.warn("FAILED",t),r.externalRefs[t].failed=!0,'{"$ref":"'+t+'"}';throw new Error(`Received status code ${d.status}: ${p}`)}return d.text()}).then(function(d){try{let f=Wk.parse(d,{schema:"core",prettyErrors:!0});if(d=r.externalRef=f,r.cache[p]=zi(d),a&&(d=va(d,a),d===!1&&(d={},r.fatal))){let h=new Error("Remote $ref resolution failed "+p+a);if(r.promise)r.promise.reject(h);else throw h}d=U1(d,f,t,a,p,r),d=Ad(d,r)}catch(f){if(r.verbose&&console.warn(f),r.promise&&r.fatal)r.promise.reject(f);else throw f}return n(d,p,r),d}).catch(function(d){if(r.verbose&&console.warn(d),r.cache[p]={},r.promise&&r.fatal)r.promise.reject(d);else throw d})}else{let m='{"$ref":"'+t+'"}';return Ate(p,r.encoding||"utf8",r,t,m).then(function(d){try{let f=Wk.parse(d,{schema:"core",prettyErrors:!0});if(d=r.externalRef=f,r.cache[p]=zi(d),a&&(d=va(d,a),d===!1&&(d={},r.fatal))){let h=new Error("File $ref resolution failed "+p+a);if(r.promise)r.promise.reject(h);else throw h}d=U1(d,f,t,a,p,r),d=Ad(d,r)}catch(f){if(r.verbose&&console.warn(f),r.promise&&r.fatal)r.promise.reject(f);else throw f}return n(d,p,r),d}).catch(function(d){if(r.verbose&&console.warn(d),r.promise&&r.fatal)r.promise.reject(d);else throw d})}}function Tte(e){return new Promise(function(t,r){function n(o,s,a){if(o[s]&&Cd(o[s],"$ref")){let c=o[s].$ref;if(!c.startsWith("#")){let l="";if(!i[c]){let u=Object.keys(i).find(function(p,m,d){return c.startsWith(p+"/")});u&&(e.verbose&&console.warn("Found potential subschema at",u),l="/"+(c.split("#")[1]||"").replace(u.split("#")[1]||""),l=l.split("/undefined").join(""),c=u)}if(i[c]||(i[c]={resolved:!1,paths:[],extras:{},description:o[s].description}),i[c].resolved){if(!i[c].failed)if(e.rewriteRefs){let u=i[c].resolvedAt;e.verbose>1&&console.warn("Rewriting ref",c,u),o[s]["x-miro"]=c,o[s].$ref=u+l}else o[s]=zi(i[c].data)}else i[c].paths.push(a.path),i[c].extras[a.path]=l}}}let i=e.externalRefs;if(e.resolver.depth>0&&e.source===e.resolver.base)return t(i);wa(e.openapi.definitions,{identityDetection:!0,path:"#/definitions"},n),wa(e.openapi.components,{identityDetection:!0,path:"#/components"},n),wa(e.openapi,{identityDetection:!0},n),t(i)})}function Gk(e){return new Promise(function(t,r){Tte(e).then(function(i){for(let o in i)if(!i[o].resolved){let s=e.resolver.depth;s>0&&s++,e.resolver.actions[s].push(function(){return Rte(e.openapi,o,e,function(a,c,l){if(!i[o].resolved){let m={};m.context=i[o],m.$ref=o,m.original=zi(a),m.updated=a,m.source=c,l.externals.push(m),i[o].resolved=!0}let u=Object.assign({},l,{source:"",resolver:{actions:l.resolver.actions,depth:l.resolver.actions.length-1,base:l.resolver.base}});l.patch&&i[o].description&&!a.description&&typeof a=="object"&&(a.description=i[o].description),i[o].data=a;let p=Ete(i[o].paths);p=p.sort(function(m,d){let f=m.startsWith("#/components/")||m.startsWith("#/definitions/"),h=d.startsWith("#/components/")||d.startsWith("#/definitions/");return f&&!h?-1:h&&!f?1:0});for(let m of p)if(i[o].resolvedAt&&m!==i[o].resolvedAt&&m.indexOf("x-ms-examples/")<0)l.verbose>1&&console.warn("Creating pointer to data at",m),va(l.openapi,m,{$ref:i[o].resolvedAt+i[o].extras[m],"x-miro":o+i[o].extras[m]});else{i[o].resolvedAt?l.verbose>1&&console.warn("Avoiding circular reference"):(i[o].resolvedAt=m,l.verbose>1&&console.warn("Creating initial clone of data at",m));let d=zi(a);va(l.openapi,m,d)}l.resolver.actions[u.resolver.depth].length===0&&l.resolver.actions[u.resolver.depth].push(function(){return Gk(u)})})})}}).catch(function(i){e.verbose&&console.warn(i),r(i)});let n={options:e};n.actions=e.resolver.actions[e.resolver.depth],t(n)})}var Nte=e=>e.reduce((t,r)=>t.then(n=>r().then(Array.prototype.concat.bind(n))),Promise.resolve([]));function V1(e,t,r){e.resolver.actions.push([]),Gk(e).then(function(n){Nte(n.actions).then(function(){if(e.resolver.depth>=e.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),t(!0);e.resolver.depth++,e.resolver.actions[e.resolver.depth].length?setTimeout(function(){V1(n.options,t,r)},0):(e.verbose>1&&console.warn(br.colour.yellow+"Finished external resolution!",br.colour.normal),e.resolveInternal&&(e.verbose>1&&console.warn(br.colour.yellow+"Starting internal resolution!",br.colour.normal),e.openapi=$te(e.openapi,e.original,{verbose:e.verbose-1}),e.verbose>1&&console.warn(br.colour.yellow+"Finished internal resolution!",br.colour.normal)),wa(e.openapi,{},function(i,o,s){Cd(i,o)&&(e.preserveMiro||delete i["x-miro"])}),t(e))}).catch(function(i){e.verbose&&console.warn(i),r(i)})}).catch(function(n){e.verbose&&console.warn(n),r(n)})}function Jk(e){if(e.cache||(e.cache={}),e.fetch||(e.fetch=Pte),e.source){let t=Wo.parse(e.source);(!t.protocol||t.protocol.length<=2)&&(e.source=Yk.resolve(e.source))}e.externals=[],e.externalRefs={},e.rewriteRefs=!0,e.resolver={},e.resolver.depth=0,e.resolver.base=e.source,e.resolver.actions=[[]]}function kte(e){return Jk(e),new Promise(function(t,r){e.resolve?V1(e,t,r):t(e)})}function Ite(e,t,r){return r||(r={}),r.openapi=e,r.source=t,r.resolve=!0,Jk(r),new Promise(function(n,i){V1(r,n,i)})}Xk.exports={optionalResolve:kte,resolve:Ite}});var tI=w((_be,eI)=>{"use strict";function Zk(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function vn(e,t,r,n){if(typeof r.depth>"u"&&(r=Zk()),e===null||typeof e>"u")return e;if(typeof e.$ref<"u"){let i={$ref:e.$ref};return r.allowRefSiblings&&e.description&&(i.description=e.description),n(i,t,r),i}if(r.combine&&(e.allOf&&Array.isArray(e.allOf)&&e.allOf.length===1&&(e=Object.assign({},e.allOf[0],e),delete e.allOf),e.anyOf&&Array.isArray(e.anyOf)&&e.anyOf.length===1&&(e=Object.assign({},e.anyOf[0],e),delete e.anyOf),e.oneOf&&Array.isArray(e.oneOf)&&e.oneOf.length===1&&(e=Object.assign({},e.oneOf[0],e),delete e.oneOf)),n(e,t,r),r.seen.has(e))return e;if(typeof e=="object"&&e!==null&&r.seen.set(e,!0),r.top=!1,r.depth++,typeof e.items<"u"&&(r.property="items",vn(e.items,e,r,n)),e.additionalItems&&typeof e.additionalItems=="object"&&(r.property="additionalItems",vn(e.additionalItems,e,r,n)),e.additionalProperties&&typeof e.additionalProperties=="object"&&(r.property="additionalProperties",vn(e.additionalProperties,e,r,n)),e.properties)for(let i in e.properties){let o=e.properties[i];r.property="properties/"+i,vn(o,e,r,n)}if(e.patternProperties)for(let i in e.patternProperties){let o=e.patternProperties[i];r.property="patternProperties/"+i,vn(o,e,r,n)}if(e.allOf)for(let i in e.allOf){let o=e.allOf[i];r.property="allOf/"+i,vn(o,e,r,n)}if(e.anyOf)for(let i in e.anyOf){let o=e.anyOf[i];r.property="anyOf/"+i,vn(o,e,r,n)}if(e.oneOf)for(let i in e.oneOf){let o=e.oneOf[i];r.property="oneOf/"+i,vn(o,e,r,n)}return e.not&&(r.property="not",vn(e.not,e,r,n)),r.depth--,e}eI.exports={getDefaultState:Zk,walkSchema:vn}});var nI=w((Obe,rI)=>{"use strict";var qte=require("http"),jte={default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"};rI.exports={statusCodes:Object.assign({},jte,qte.STATUS_CODES)}});var iI=w((Pbe,Mte)=>{Mte.exports={name:"swagger2openapi",version:"7.0.8",description:"Convert Swagger 2.0 definitions to OpenApi 3.0 and validate",main:"index.js",bin:{swagger2openapi:"./swagger2openapi.js","oas-validate":"./oas-validate.js",boast:"./boast.js"},funding:"https://github.com/Mermade/oas-kit?sponsor=1",scripts:{test:"mocha"},browserify:{transform:[["babelify",{presets:["es2015"]}]]},repository:{url:"https://github.com/Mermade/oas-kit.git",type:"git"},bugs:{url:"https://github.com/mermade/oas-kit/issues"},author:"Mike Ralphson <mike.ralphson@gmail.com>",license:"BSD-3-Clause",dependencies:{"call-me-maybe":"^1.0.1","node-fetch":"^2.6.1","node-fetch-h2":"^2.3.0","node-readfiles":"^0.2.0","oas-kit-common":"^1.0.8","oas-resolver":"^2.5.6","oas-schema-walker":"^1.1.5","oas-validator":"^5.0.8",reftools:"^1.1.9",yaml:"^1.10.0",yargs:"^17.0.1"},keywords:["swagger","openapi","openapi2","openapi3","converter","conversion","validator","validation","resolver","lint","linter"],gitHead:"b1bba3fc5007e96a991bf2a015cf0534ac36b88b"}});var vI=w((Ebe,bI)=>{"use strict";var Lte=require("fs"),Dte=require("url"),$be=require("path"),Il=E2(),Fte=l1(),fI=L1(),Yn=Al(),Nl=Yn.jptr,Bte=Pd().isRef,wn=Cl().clone,oI=Cl().circularClone,Nd=$d().recurse,sI=Qk(),Ute=tI(),Pe=B1(),Vte=nI().statusCodes,zte=iI().version,dI="3.0.0",Td,qt=class extends Error{constructor(t){super(t),this.name="S2OError"}};function jt(e,t){let r=new qt(e);if(r.options=t,t.promise)t.promise.reject(r);else throw r}function Pt(e,t,r){r.warnOnly?t[r.warnProperty||"x-s2o-warning"]=e:jt(e,r)}function Hte(e,t,r){if(e.nullable&&r.patches++,e.discriminator&&typeof e.discriminator=="string"&&(e.discriminator={propertyName:e.discriminator}),e.items&&Array.isArray(e.items)&&(e.items.length===0?e.items={}:e.items.length===1?e.items=e.items[0]:e.items={anyOf:e.items}),e.type&&Array.isArray(e.type))if(r.patch){if(r.patches++,e.type.length===0)delete e.type;else{e.oneOf||(e.oneOf=[]);for(let n of e.type){let i={};if(n==="null")e.nullable=!0;else{i.type=n;for(let o of Pe.arrayProperties)typeof e.prop<"u"&&(i[o]=e[o],delete e[o])}i.type&&e.oneOf.push(i)}delete e.type,e.oneOf.length===0?delete e.oneOf:e.oneOf.length<2&&(e.type=e.oneOf[0].type,Object.keys(e.oneOf[0]).length>1&&Pt("Lost properties from oneOf",e,r),delete e.oneOf)}e.type&&Array.isArray(e.type)&&e.type.length===1&&(e.type=e.type[0])}else jt("(Patchable) schema type must not be an array",r);e.type&&e.type==="null"&&(delete e.type,e.nullable=!0),e.type==="array"&&!e.items&&(e.items={}),e.type==="file"&&(e.type="string",e.format="binary"),typeof e.required=="boolean"&&(e.required&&e.name&&(typeof t.required>"u"&&(t.required=[]),Array.isArray(t.required)&&t.required.push(e.name)),delete e.required),e.xml&&typeof e.xml.namespace=="string"&&(e.xml.namespace||delete e.xml.namespace),typeof e.allowEmptyValue<"u"&&(r.patches++,delete e.allowEmptyValue)}function Kte(e,t){if(e["x-required"]&&Array.isArray(e["x-required"])&&(e.required||(e.required=[]),e.required=e.required.concat(e["x-required"]),delete e["x-required"]),e["x-anyOf"]&&(e.anyOf=e["x-anyOf"],delete e["x-anyOf"]),e["x-oneOf"]&&(e.oneOf=e["x-oneOf"],delete e["x-oneOf"]),e["x-not"]&&(e.not=e["x-not"],delete e["x-not"]),typeof e["x-nullable"]=="boolean"&&(e.nullable=e["x-nullable"],delete e["x-nullable"]),typeof e["x-discriminator"]=="object"&&typeof e["x-discriminator"].propertyName=="string"){e.discriminator=e["x-discriminator"],delete e["x-discriminator"];for(let r in e.discriminator.mapping){let n=e.discriminator.mapping[r];n.startsWith("#/definitions/")&&(e.discriminator.mapping[r]=n.replace("#/definitions/","#/components/schemas/"))}}}function kl(e,t){Ute.walkSchema(e,{},{},function(r,n,i){Kte(r,n),Hte(r,n,t)})}function Wte(e){return e.indexOf("#")>=0?e=e.split("#")[1].split("/").pop():e=e.split("/").pop().split(".")[0],encodeURIComponent(Pe.sanitise(e))}function Yte(e,t,r){let n=r.payload.options;if(Bte(e,t)){if(!e[t].startsWith("#/components/")){if(e[t]==="#/consumes")delete e[t],r.parent[r.pkey]=wn(n.openapi.consumes);else if(e[t]==="#/produces")delete e[t],r.parent[r.pkey]=wn(n.openapi.produces);else if(e[t].startsWith("#/definitions/")){let i=e[t].replace("#/definitions/","").split("/"),o=Yn.jpunescape(i[0]),s=Td.schemas[decodeURIComponent(o)];s?i[0]=s:Pt("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+i.join("/")}else if(e[t].startsWith("#/parameters/"))e[t]="#/components/parameters/"+Pe.sanitise(e[t].replace("#/parameters/",""));else if(e[t].startsWith("#/responses/"))e[t]="#/components/responses/"+Pe.sanitise(e[t].replace("#/responses/",""));else if(e[t].startsWith("#")){let i=wn(Yn.jptr(n.openapi,e[t]));if(i===!1)Pt("direct $ref not found "+e[t],e,n);else if(n.refmap[e[t]])e[t]=n.refmap[e[t]];else{let o=e[t];o=o.replace("/properties/headers/",""),o=o.replace("/properties/responses/",""),o=o.replace("/properties/parameters/",""),o=o.replace("/properties/schemas/","");let s="schemas",a=o.lastIndexOf("/schema");if(s=o.indexOf("/headers/")>a?"headers":o.indexOf("/responses/")>a?"responses":o.indexOf("/example")>a?"examples":o.indexOf("/x-")>a?"extensions":o.indexOf("/parameters/")>a?"parameters":"schemas",s==="schemas"&&kl(i,n),s!=="responses"&&s!=="extensions"){let c=s.substr(0,s.length-1);c==="parameter"&&i.name&&i.name===Pe.sanitise(i.name)&&(c=encodeURIComponent(i.name));let l=1;for(e["x-miro"]&&(c=Wte(e["x-miro"]),l="");Yn.jptr(n.openapi,"#/components/"+s+"/"+c+l);)l=l===""?2:++l;let u="#/components/"+s+"/"+c+l,p="";s==="examples"&&(i={value:i},p="/value"),Yn.jptr(n.openapi,u,i),n.refmap[e[t]]=u+p,e[t]=u+p}}}}if(delete e["x-miro"],Object.keys(e).length>1){let i=e[t],o=r.path.indexOf("/schema")>=0;n.refSiblings==="preserve"||(o&&n.refSiblings==="allOf"?(delete e.$ref,r.parent[r.pkey]={allOf:[{$ref:i},e]}):r.parent[r.pkey]={$ref:i})}}if(t==="x-ms-odata"&&typeof e[t]=="string"&&e[t].startsWith("#/")){let i=e[t].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),o=Td.schemas[decodeURIComponent(i[0])];o?i[0]=o:Pt("Could not resolve reference "+e[t],e,n),e[t]="#/components/schemas/"+i.join("/")}}function Gte(e,t){for(let r in t.refmap)Yn.jptr(e,r,{$ref:t.refmap[r]})}function mI(e){for(let t in e)for(let r in e[t]){let n=Pe.sanitise(r);r!==n&&(e[t][n]=e[t][r],delete e[t][r])}}function Jte(e,t){if(e.type==="basic"&&(e.type="http",e.scheme="basic"),e.type==="oauth2"){let r={},n=e.flow;e.flow==="application"&&(n="clientCredentials"),e.flow==="accessCode"&&(n="authorizationCode"),typeof e.authorizationUrl<"u"&&(r.authorizationUrl=e.authorizationUrl.split("?")[0].trim()||"/"),typeof e.tokenUrl=="string"&&(r.tokenUrl=e.tokenUrl.split("?")[0].trim()||"/"),r.scopes=e.scopes||{},e.flows={},e.flows[n]=r,delete e.flow,delete e.authorizationUrl,delete e.tokenUrl,delete e.scopes,typeof e.name<"u"&&(t.patch?(t.patches++,delete e.name):jt("(Patchable) oauth2 securitySchemes should not have name property",t))}}function aI(e){return e&&!e["x-s2o-delete"]}function hI(e,t){if(e.$ref)e.$ref=e.$ref.replace("#/responses/","#/components/responses/");else{e.type&&!e.schema&&(e.schema={}),e.type&&(e.schema.type=e.type),e.items&&e.items.type!=="array"&&(e.items.collectionFormat!==e.collectionFormat&&Pt("Nested collectionFormats are not supported",e,t),delete e.items.collectionFormat),e.type==="array"?(e.collectionFormat==="ssv"?Pt("collectionFormat:ssv is no longer supported for headers",e,t):e.collectionFormat==="pipes"?Pt("collectionFormat:pipes is no longer supported for headers",e,t):e.collectionFormat==="multi"?e.explode=!0:e.collectionFormat==="tsv"?(Pt("collectionFormat:tsv is no longer supported",e,t),e["x-collectionFormat"]="tsv"):e.style="simple",delete e.collectionFormat):e.collectionFormat&&(t.patch?(t.patches++,delete e.collectionFormat):jt("(Patchable) collectionFormat is only applicable to header.type array",t)),delete e.type;for(let r of Pe.parameterTypeProperties)typeof e[r]<"u"&&(e.schema[r]=e[r],delete e[r]);for(let r of Pe.arrayProperties)typeof e[r]<"u"&&(e.schema[r]=e[r],delete e[r])}}function yI(e,t){if(e.$ref.indexOf("#/parameters/")>=0){let r=e.$ref.split("#/parameters/");e.$ref=r[0]+"#/components/parameters/"+Pe.sanitise(r[1])}e.$ref.indexOf("#/definitions/")>=0&&Pt("Definition used as parameter",e,t)}function Xte(e,t){let r={};for(let n of Object.keys(e))r[n]=e[n],n==="parameters"&&(r.requestBody={},t.rbname&&(r[t.rbname]=""));return r.requestBody={},r}function Rd(e,t,r,n,i,o,s){let a={},c=!0,l;if(t&&t.consumes&&typeof t.consumes=="string")if(s.patch)s.patches++,t.consumes=[t.consumes];else return jt("(Patchable) operation.consumes must be an array",s);Array.isArray(o.consumes)||delete o.consumes;let u=((t?t.consumes:null)||o.consumes||[]).filter(Pe.uniqueOnly);if(e&&e.$ref&&typeof e.$ref=="string"){yI(e,s);let p=decodeURIComponent(e.$ref.replace("#/components/parameters/","")),m=!1,d=o.components.parameters[p];if((!d||d["x-s2o-delete"])&&e.$ref.startsWith("#/")&&(e["x-s2o-delete"]=!0,m=!0),m){let f=e.$ref,h=Nl(o,e.$ref);!h&&f.startsWith("#/")?Pt("Could not resolve reference "+f,e,s):h&&(e=h)}}if(e&&(e.name||e.in)){typeof e["x-deprecated"]=="boolean"&&(e.deprecated=e["x-deprecated"],delete e["x-deprecated"]),typeof e["x-example"]<"u"&&(e.example=e["x-example"],delete e["x-example"]),e.in!=="body"&&!e.type&&(s.patch?(s.patches++,e.type="string"):jt("(Patchable) parameter.type is mandatory for non-body parameters",s)),e.type&&typeof e.type=="object"&&e.type.$ref&&(e.type=Nl(o,e.type.$ref)),e.type==="file"&&(e["x-s2o-originalType"]=e.type,l=e.type),e.description&&typeof e.description=="object"&&e.description.$ref&&(e.description=Nl(o,e.description.$ref)),e.description===null&&delete e.description;let p=e.collectionFormat;if(e.type==="array"&&!p&&(p="csv"),p&&(e.type!=="array"&&(s.patch?(s.patches++,delete e.collectionFormat):jt("(Patchable) collectionFormat is only applicable to param.type array",s)),p==="csv"&&(e.in==="query"||e.in==="cookie")&&(e.style="form",e.explode=!1),p==="csv"&&(e.in==="path"||e.in==="header")&&(e.style="simple"),p==="ssv"&&(e.in==="query"?e.style="spaceDelimited":Pt("collectionFormat:ssv is no longer supported except for in:query parameters",e,s)),p==="pipes"&&(e.in==="query"?e.style="pipeDelimited":Pt("collectionFormat:pipes is no longer supported except for in:query parameters",e,s)),p==="multi"&&(e.explode=!0),p==="tsv"&&(Pt("collectionFormat:tsv is no longer supported",e,s),e["x-collectionFormat"]="tsv"),delete e.collectionFormat),e.type&&e.type!=="body"&&e.in!=="formData")if(e.items&&e.schema)Pt("parameter has array,items and schema",e,s);else{e.schema&&s.patches++,(!e.schema||typeof e.schema!="object")&&(e.schema={}),e.schema.type=e.type,e.items&&(e.schema.items=e.items,delete e.items,Nd(e.schema.items,null,function(m,d,f){d==="collectionFormat"&&typeof m[d]=="string"&&(p&&m[d]!==p&&Pt("Nested collectionFormats are not supported",e,s),delete m[d])}));for(let m of Pe.parameterTypeProperties)typeof e[m]<"u"&&(e.schema[m]=e[m]),delete e[m]}e.schema&&kl(e.schema,s),e["x-ms-skip-url-encoding"]&&e.in==="query"&&(e.allowReserved=!0,delete e["x-ms-skip-url-encoding"])}if(e&&e.in==="formData"){c=!1,a.content={};let p="application/x-www-form-urlencoded";if(u.length&&u.indexOf("multipart/form-data")>=0&&(p="multipart/form-data"),a.content[p]={},e.schema)a.content[p].schema=e.schema,e.schema.$ref&&(a["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")));else{a.content[p].schema={},a.content[p].schema.type="object",a.content[p].schema.properties={},a.content[p].schema.properties[e.name]={};let m=a.content[p].schema,d=a.content[p].schema.properties[e.name];e.description&&(d.description=e.description),e.example&&(d.example=e.example),e.type&&(d.type=e.type);for(let f of Pe.parameterTypeProperties)typeof e[f]<"u"&&(d[f]=e[f]);e.required===!0&&(m.required||(m.required=[]),m.required.push(e.name),a.required=!0),typeof e.default<"u"&&(d.default=e.default),d.properties&&(d.properties=e.properties),e.allOf&&(d.allOf=e.allOf),e.type==="array"&&e.items&&(d.items=e.items,d.items.collectionFormat&&delete d.items.collectionFormat),(l==="file"||e["x-s2o-originalType"]==="file")&&(d.type="string",d.format="binary"),z1(e,d)}}else e&&e.type==="file"&&(e.required&&(a.required=e.required),a.content={},a.content["application/octet-stream"]={},a.content["application/octet-stream"].schema={},a.content["application/octet-stream"].schema.type="string",a.content["application/octet-stream"].schema.format="binary",z1(e,a));if(e&&e.in==="body"){a.content={},e.name&&(a["x-s2o-name"]=(t&&t.operationId?Pe.sanitiseAll(t.operationId):"")+("_"+e.name).toCamelCase()),e.description&&(a.description=e.description),e.required&&(a.required=e.required),t&&s.rbname&&e.name&&(t[s.rbname]=e.name),e.schema&&e.schema.$ref?a["x-s2o-name"]=decodeURIComponent(e.schema.$ref.replace("#/components/schemas/","")):e.schema&&e.schema.type==="array"&&e.schema.items&&e.schema.items.$ref&&(a["x-s2o-name"]=decodeURIComponent(e.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),u.length||u.push("application/json");for(let p of u)a.content[p]={},a.content[p].schema=wn(e.schema||{}),kl(a.content[p].schema,s);z1(e,a)}if(Object.keys(a).length>0&&(e["x-s2o-delete"]=!0,t))if(t.requestBody&&c){t.requestBody["x-s2o-overloaded"]=!0;let p=t.operationId||i;Pt("Operation "+p+" has multiple requestBodies",t,s)}else t.requestBody||(t=r[n]=Xte(t,s)),t.requestBody.content&&t.requestBody.content["multipart/form-data"]&&t.requestBody.content["multipart/form-data"].schema&&t.requestBody.content["multipart/form-data"].schema.properties&&a.content["multipart/form-data"]&&a.content["multipart/form-data"].schema&&a.content["multipart/form-data"].schema.properties?(t.requestBody.content["multipart/form-data"].schema.properties=Object.assign(t.requestBody.content["multipart/form-data"].schema.properties,a.content["multipart/form-data"].schema.properties),t.requestBody.content["multipart/form-data"].schema.required=(t.requestBody.content["multipart/form-data"].schema.required||[]).concat(a.content["multipart/form-data"].schema.required||[]),t.requestBody.content["multipart/form-data"].schema.required.length||delete t.requestBody.content["multipart/form-data"].schema.required):t.requestBody.content&&t.requestBody.content["application/x-www-form-urlencoded"]&&t.requestBody.content["application/x-www-form-urlencoded"].schema&&t.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&a.content["application/x-www-form-urlencoded"]&&a.content["application/x-www-form-urlencoded"].schema&&a.content["application/x-www-form-urlencoded"].schema.properties?(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(t.requestBody.content["application/x-www-form-urlencoded"].schema.properties,a.content["application/x-www-form-urlencoded"].schema.properties),t.requestBody.content["application/x-www-form-urlencoded"].schema.required=(t.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(a.content["application/x-www-form-urlencoded"].schema.required||[]),t.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete t.requestBody.content["application/x-www-form-urlencoded"].schema.required):(t.requestBody=Object.assign(t.requestBody,a),t.requestBody["x-s2o-name"]||(t.requestBody.schema&&t.requestBody.schema.$ref?t.requestBody["x-s2o-name"]=decodeURIComponent(t.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):t.operationId&&(t.requestBody["x-s2o-name"]=Pe.sanitiseAll(t.operationId))));if(e&&!e["x-s2o-delete"]){delete e.type;for(let p of Pe.parameterTypeProperties)delete e[p];e.in==="path"&&(typeof e.required>"u"||e.required!==!0)&&(s.patch?(s.patches++,e.required=!0):jt("(Patchable) path parameters must be required:true ["+e.name+" in "+i+"]",s))}return t}function z1(e,t){for(let r in e)r.startsWith("x-")&&!r.startsWith("x-s2o")&&(t[r]=e[r])}function gI(e,t,r,n,i){if(!e)return!1;if(e.$ref&&typeof e.$ref=="string")e.$ref.indexOf("#/definitions/")>=0?Pt("definition used as response: "+e.$ref,e,i):e.$ref.startsWith("#/responses/")&&(e.$ref="#/components/responses/"+Pe.sanitise(decodeURIComponent(e.$ref.replace("#/responses/",""))));else{if((typeof e.description>"u"||e.description===null||e.description===""&&i.patch)&&(i.patch?typeof e=="object"&&!Array.isArray(e)&&(i.patches++,e.description=Vte[e]||""):jt("(Patchable) response.description is mandatory",i)),typeof e.schema<"u"){if(kl(e.schema,i),e.schema.$ref&&typeof e.schema.$ref=="string"&&e.schema.$ref.startsWith("#/responses/")&&(e.schema.$ref="#/components/responses/"+Pe.sanitise(decodeURIComponent(e.schema.$ref.replace("#/responses/","")))),r&&r.produces&&typeof r.produces=="string")if(i.patch)i.patches++,r.produces=[r.produces];else return jt("(Patchable) operation.produces must be an array",i);n.produces&&!Array.isArray(n.produces)&&delete n.produces;let o=((r?r.produces:null)||n.produces||[]).filter(Pe.uniqueOnly);o.length||o.push("*/*"),e.content={};for(let s of o){if(e.content[s]={},e.content[s].schema=wn(e.schema),e.examples&&e.examples[s]){let a={};a.value=e.examples[s],e.content[s].examples={},e.content[s].examples.response=a,delete e.examples[s]}e.content[s].schema.type==="file"&&(e.content[s].schema={type:"string",format:"binary"})}delete e.schema}for(let o in e.examples)e.content||(e.content={}),e.content[o]||(e.content[o]={}),e.content[o].examples={},e.content[o].examples.response={},e.content[o].examples.response.value=e.examples[o];if(delete e.examples,e.headers)for(let o in e.headers)o.toLowerCase()==="status code"?i.patch?(i.patches++,delete e.headers[o]):jt('(Patchable) "Status Code" is not a valid header',i):hI(e.headers[o],i)}}function cI(e,t,r,n,i){for(let o in e){let s=e[o];s&&s["x-trace"]&&typeof s["x-trace"]=="object"&&(s.trace=s["x-trace"],delete s["x-trace"]),s&&s["x-summary"]&&typeof s["x-summary"]=="string"&&(s.summary=s["x-summary"],delete s["x-summary"]),s&&s["x-description"]&&typeof s["x-description"]=="string"&&(s.description=s["x-description"],delete s["x-description"]),s&&s["x-servers"]&&Array.isArray(s["x-servers"])&&(s.servers=s["x-servers"],delete s["x-servers"]);for(let a in s)if(Pe.httpMethods.indexOf(a)>=0||a==="x-amazon-apigateway-any-method"){let c=s[a];if(c&&c.parameters&&Array.isArray(c.parameters)){if(s.parameters)for(let l of s.parameters)typeof l.$ref=="string"&&(yI(l,r),l=Nl(i,l.$ref)),!c.parameters.find(function(p,m,d){return p.name===l.name&&p.in===l.in})&&(l.in==="formData"||l.in==="body"||l.type==="file")&&(c=Rd(l,c,s,a,o,i,r),r.rbname&&c[r.rbname]===""&&delete c[r.rbname]);for(let l of c.parameters)c=Rd(l,c,s,a,a+":"+o,i,r);r.rbname&&c[r.rbname]===""&&delete c[r.rbname],r.debug||c.parameters&&(c.parameters=c.parameters.filter(aI))}if(c&&c.security&&mI(c.security),typeof c=="object"){if(!c.responses){let l={};l.description="Default response",c.responses={default:l}}for(let l in c.responses){let u=c.responses[l];gI(u,l,c,i,r)}}if(c&&c["x-servers"]&&Array.isArray(c["x-servers"]))c.servers=c["x-servers"],delete c["x-servers"];else if(c&&c.schemes&&c.schemes.length){for(let l of c.schemes)if((!i.schemes||i.schemes.indexOf(l)<0)&&(c.servers||(c.servers=[]),Array.isArray(i.servers)))for(let u of i.servers){let p=wn(u),m=Dte.parse(p.url);m.protocol=l,p.url=m.format(),c.servers.push(p)}}if(r.debug&&(c["x-s2o-consumes"]=c.consumes||[],c["x-s2o-produces"]=c.produces||[]),c){if(delete c.consumes,delete c.produces,delete c.schemes,c["x-ms-examples"]){for(let l in c["x-ms-examples"]){let u=c["x-ms-examples"][l],p=Pe.sanitiseAll(l);if(u.parameters)for(let m in u.parameters){let d=u.parameters[m];for(let f of(c.parameters||[]).concat(s.parameters||[]))f.$ref&&(f=Yn.jptr(i,f.$ref)),f.name===m&&!f.example&&(f.examples||(f.examples={}),f.examples[l]={value:d})}if(u.responses)for(let m in u.responses){if(u.responses[m].headers)for(let d in u.responses[m].headers){let f=u.responses[m].headers[d];for(let h in c.responses[m].headers)if(h===d){let y=c.responses[m].headers[h];y.example=f}}if(u.responses[m].body&&(i.components.examples[p]={value:wn(u.responses[m].body)},c.responses[m]&&c.responses[m].content))for(let d in c.responses[m].content){let f=c.responses[m].content[d];f.examples||(f.examples={}),f.examples[l]={$ref:"#/components/examples/"+p}}}}delete c["x-ms-examples"]}if(c.parameters&&c.parameters.length===0&&delete c.parameters,c.requestBody){let l=c.operationId?Pe.sanitiseAll(c.operationId):Pe.sanitiseAll(a+o).toCamelCase(),u=Pe.sanitise(c.requestBody["x-s2o-name"]||l||"");delete c.requestBody["x-s2o-name"];let p=JSON.stringify(c.requestBody),m=Pe.hash(p);if(!n[m]){let f={};f.name=u,f.body=c.requestBody,f.refs=[],n[m]=f}let d="#/"+t+"/"+encodeURIComponent(Yn.jpescape(o))+"/"+a+"/requestBody";n[m].refs.push(d)}}}if(s&&s.parameters){for(let a in s.parameters){let c=s.parameters[a];Rd(c,null,s,null,o,i,r)}!r.debug&&Array.isArray(s.parameters)&&(s.parameters=s.parameters.filter(aI))}}}function Qte(e,t){let r={};Td={schemas:{}},e.security&&mI(e.security);for(let i in e.components.securitySchemes){let o=Pe.sanitise(i);i!==o&&(e.components.securitySchemes[o]&&jt("Duplicate sanitised securityScheme name "+o,t),e.components.securitySchemes[o]=e.components.securitySchemes[i],delete e.components.securitySchemes[i]),Jte(e.components.securitySchemes[o],t)}for(let i in e.components.schemas){let o=Pe.sanitiseAll(i),s="";if(i!==o){for(;e.components.schemas[o+s];)s=s?++s:2;e.components.schemas[o+s]=e.components.schemas[i],delete e.components.schemas[i]}Td.schemas[i]=o+s,kl(e.components.schemas[o+s],t)}t.refmap={},Nd(e,{payload:{options:t}},Yte),Gte(e,t);for(let i in e.components.parameters){let o=Pe.sanitise(i);i!==o&&(e.components.parameters[o]&&jt("Duplicate sanitised parameter name "+o,t),e.components.parameters[o]=e.components.parameters[i],delete e.components.parameters[i]);let s=e.components.parameters[o];Rd(s,null,null,null,o,e,t)}for(let i in e.components.responses){let o=Pe.sanitise(i);i!==o&&(e.components.responses[o]&&jt("Duplicate sanitised response name "+o,t),e.components.responses[o]=e.components.responses[i],delete e.components.responses[i]);let s=e.components.responses[o];if(gI(s,o,null,e,t),s.headers)for(let a in s.headers)a.toLowerCase()==="status code"?t.patch?(t.patches++,delete s.headers[a]):jt('(Patchable) "Status Code" is not a valid header',t):hI(s.headers[a],t)}for(let i in e.components.requestBodies){let o=e.components.requestBodies[i],s=JSON.stringify(o),a=Pe.hash(s),c={};c.name=i,c.body=o,c.refs=[],r[a]=c}if(cI(e.paths,"paths",t,r,e),e["x-ms-paths"]&&cI(e["x-ms-paths"],"x-ms-paths",t,r,e),!t.debug)for(let i in e.components.parameters)e.components.parameters[i]["x-s2o-delete"]&&delete e.components.parameters[i];t.debug&&(e["x-s2o-consumes"]=e.consumes||[],e["x-s2o-produces"]=e.produces||[]),delete e.consumes,delete e.produces,delete e.schemes;let n=[];if(e.components.requestBodies={},!t.resolveInternal){let i=1;for(let o in r){let s=r[o];if(s.refs.length>1){let a="";for(s.name||(s.name="requestBody",a=i++);n.indexOf(s.name+a)>=0;)a=a?++a:2;s.name=s.name+a,n.push(s.name),e.components.requestBodies[s.name]=wn(s.body);for(let c in s.refs){let l={};l.$ref="#/components/requestBodies/"+s.name,Yn.jptr(e,s.refs[c],l)}}}}return e.components.responses&&Object.keys(e.components.responses).length===0&&delete e.components.responses,e.components.parameters&&Object.keys(e.components.parameters).length===0&&delete e.components.parameters,e.components.examples&&Object.keys(e.components.examples).length===0&&delete e.components.examples,e.components.requestBodies&&Object.keys(e.components.requestBodies).length===0&&delete e.components.requestBodies,e.components.securitySchemes&&Object.keys(e.components.securitySchemes).length===0&&delete e.components.securitySchemes,e.components.headers&&Object.keys(e.components.headers).length===0&&delete e.components.headers,e.components.schemas&&Object.keys(e.components.schemas).length===0&&delete e.components.schemas,e.components&&Object.keys(e.components).length===0&&delete e.components,e}function lI(e){return!e||!e.url||typeof e.url!="string"||(e.url=e.url.split("{{").join("{"),e.url=e.url.split("}}").join("}"),e.url.replace(/\{(.+?)\}/g,function(t,r){e.variables||(e.variables={}),e.variables[r]={default:"unknown"}})),e}function uI(e,t,r){if(typeof e.info>"u"||e.info===null)if(t.patch)t.patches++,e.info={version:"",title:""};else return r(new qt("(Patchable) info object is mandatory"));if(typeof e.info!="object"||Array.isArray(e.info))return r(new qt("info must be an object"));if(typeof e.info.title>"u"||e.info.title===null)if(t.patch)t.patches++,e.info.title="";else return r(new qt("(Patchable) info.title cannot be null"));if(typeof e.info.version>"u"||e.info.version===null)if(t.patch)t.patches++,e.info.version="";else return r(new qt("(Patchable) info.version cannot be null"));if(typeof e.info.version!="string")if(t.patch)t.patches++,e.info.version=e.info.version.toString();else return r(new qt("(Patchable) info.version must be a string"));if(typeof e.info.logo<"u")if(t.patch)t.patches++,e.info["x-logo"]=e.info.logo,delete e.info.logo;else return r(new qt("(Patchable) info should not have logo property"));if(typeof e.info.termsOfService<"u"){if(e.info.termsOfService===null)if(t.patch)t.patches++,e.info.termsOfService="";else return r(new qt("(Patchable) info.termsOfService cannot be null"));try{let n=new URL(e.info.termsOfService)}catch{if(t.patch)t.patches++,delete e.info.termsOfService;else return r(new qt("(Patchable) info.termsOfService must be a URL"))}}}function pI(e,t,r){if(typeof e.paths>"u")if(t.patch)t.patches++,e.paths={};else return r(new qt("(Patchable) paths object is mandatory"))}function Zte(e,t){let r=new WeakSet;Nd(e,{identityDetection:!0},function(n,i,o){typeof n[i]=="object"&&n[i]!==null&&(r.has(n[i])?t.anchors?n[i]=wn(n[i]):jt("YAML anchor or merge key at "+o.path,t):r.add(n[i]))})}function H1(e,t,r){return Il(r,new Promise(function(n,i){if(e||(e={}),t.original=e,t.text||(t.text=fI.stringify(e)),t.externals=[],t.externalRefs={},t.rewriteRefs=!0,t.preserveMiro=!0,t.promise={},t.promise.resolve=n,t.promise.reject=i,t.patches=0,t.cache||(t.cache={}),t.source&&(t.cache[t.source]=t.original),Zte(e,t),e.openapi&&typeof e.openapi=="string"&&e.openapi.startsWith("3.")){t.openapi=oI(e),uI(t.openapi,t,i),pI(t.openapi,t,i),sI.optionalResolve(t).then(function(){return t.direct?n(t.openapi):n(t)}).catch(function(s){console.warn(s),i(s)});return}if(!e.swagger||e.swagger!="2.0")return i(new qt("Unsupported swagger/OpenAPI version: "+(e.openapi?e.openapi:e.swagger)));let o=t.openapi={};if(o.openapi=typeof t.targetVersion=="string"&&t.targetVersion.startsWith("3.")?t.targetVersion:dI,t.origin){o["x-origin"]||(o["x-origin"]=[]);let s={};s.url=t.source||t.origin,s.format="swagger",s.version=e.swagger,s.converter={},s.converter.url="https://github.com/mermade/oas-kit",s.converter.version=zte,o["x-origin"].push(s)}if(o=Object.assign(o,oI(e)),delete o.swagger,Nd(o,{},function(s,a,c){s[a]===null&&!a.startsWith("x-")&&a!=="default"&&c.path.indexOf("/example")<0&&delete s[a]}),e.host)for(let s of Array.isArray(e.schemes)?e.schemes:[""]){let a={},c=(e.basePath||"").replace(/\/$/,"");a.url=(s?s+":":"")+"//"+e.host+c,lI(a),o.servers||(o.servers=[]),o.servers.push(a)}else if(e.basePath){let s={};s.url=e.basePath,lI(s),o.servers||(o.servers=[]),o.servers.push(s)}if(delete o.host,delete o.basePath,o["x-servers"]&&Array.isArray(o["x-servers"])&&(o.servers=o["x-servers"],delete o["x-servers"]),e["x-ms-parameterized-host"]){let s=e["x-ms-parameterized-host"],a={};a.url=s.hostTemplate+(e.basePath?e.basePath:""),a.variables={};let c=a.url.match(/\{\w+\}/g);for(let l in s.parameters){let u=s.parameters[l];u.$ref&&(u=wn(Nl(o,u.$ref))),l.startsWith("x-")||(delete u.required,delete u.type,delete u.in,typeof u.default>"u"&&(u.enum?u.default=u.enum[0]:u.default="none"),u.name||(u.name=c[l].replace("{","").replace("}","")),a.variables[u.name]=u,delete u.name)}o.servers||(o.servers=[]),s.useSchemePrefix===!1?o.servers.push(a):e.schemes.forEach(l=>{o.servers.push(Object.assign({},a,{url:l+"://"+a.url}))}),delete o["x-ms-parameterized-host"]}uI(o,t,i),pI(o,t,i),typeof o.consumes=="string"&&(o.consumes=[o.consumes]),typeof o.produces=="string"&&(o.produces=[o.produces]),o.components={},o["x-callbacks"]&&(o.components.callbacks=o["x-callbacks"],delete o["x-callbacks"]),o.components.examples={},o.components.headers={},o["x-links"]&&(o.components.links=o["x-links"],delete o["x-links"]),o.components.parameters=o.parameters||{},o.components.responses=o.responses||{},o.components.requestBodies={},o.components.securitySchemes=o.securityDefinitions||{},o.components.schemas=o.definitions||{},delete o.definitions,delete o.responses,delete o.parameters,delete o.securityDefinitions,sI.optionalResolve(t).then(function(){Qte(t.openapi,t),t.direct?n(t.openapi):n(t)}).catch(function(s){console.warn(s),i(s)})}))}function kd(e,t,r){return Il(r,new Promise(function(n,i){let o=null,s=null;try{o=JSON.parse(e),t.text=JSON.stringify(o,null,2)}catch(a){s=a;try{o=fI.parse(e,{schema:"core",prettyErrors:!0}),t.sourceYaml=!0,t.text=e}catch(c){s=c}}o?H1(o,t).then(a=>n(a)).catch(a=>i(a)):i(new qt(s?s.message:"Could not parse string"))}))}function ere(e,t,r){return Il(r,new Promise(function(n,i){t.origin=!0,t.source||(t.source=e),t.verbose&&console.warn("GET "+e),t.fetch||(t.fetch=Fte);let o=Object.assign({},t.fetchOptions,{agent:t.agent});t.fetch(e,o).then(function(s){if(s.status!==200)throw new qt(`Received status code ${s.status}: ${e}`);return s.text()}).then(function(s){kd(s,t).then(a=>n(a)).catch(a=>i(a))}).catch(function(s){i(s)})}))}function tre(e,t,r){return Il(r,new Promise(function(n,i){Lte.readFile(e,t.encoding||"utf8",function(o,s){o?i(o):(t.sourceFile=e,kd(s,t).then(a=>n(a)).catch(a=>i(a)))})}))}function rre(e,t,r){return Il(r,new Promise(function(n,i){let o="";e.on("data",function(s){o+=s}).on("end",function(){kd(o,t).then(s=>n(s)).catch(s=>i(s))})}))}bI.exports={S2OError:qt,targetVersion:dI,convert:H1,convertObj:H1,convertUrl:ere,convertStr:kd,convertFile:tre,convertStream:rre}});var VI=w((UI,J1)=>{(function(e){if(typeof UI=="object"&&typeof J1<"u")J1.exports=e();else if(typeof define=="function"&&define.amd)define([],e);else{var t;typeof window<"u"?t=window:typeof global<"u"?t=global:typeof self<"u"?t=self:t=this,t.OpenAPISampler=e()}})(function(){var e,t,r;return(function(){function n(i,o,s){function a(u,p){if(!o[u]){if(!i[u]){var m=typeof require=="function"&&require;if(!p&&m)return m(u,!0);if(c)return c(u,!0);var d=new Error("Cannot find module '"+u+"'");throw d.code="MODULE_NOT_FOUND",d}var f=o[u]={exports:{}};i[u][0].call(f.exports,function(h){var y=i[u][1][h];return a(y||h)},f,f.exports,n,i,o,s)}return o[u].exports}for(var c=typeof require=="function"&&require,l=0;l<s.length;l++)a(s[l]);return a}return n})()({1:[function(n,i,o){"use strict";let s=n("./validator"),a=n("./xmlparser/XMLParser"),c=n("./xmlbuilder/json2xml");i.exports={XMLParser:a,XMLValidator:s,XMLBuilder:c}},{"./validator":4,"./xmlbuilder/json2xml":5,"./xmlparser/XMLParser":10}],2:[function(n,i,o){function s(a){return typeof a=="function"?a:Array.isArray(a)?c=>{for(let l of a)if(typeof l=="string"&&c===l||l instanceof RegExp&&l.test(c))return!0}:()=>!1}i.exports=s},{}],3:[function(n,i,o){"use strict";let s=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",a=s+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",c="["+s+"]["+a+"]*",l=new RegExp("^"+c+"$"),u=function(m,d){let f=[],h=d.exec(m);for(;h;){let y=[];y.startIndex=d.lastIndex-h[0].length;let g=h.length;for(let b=0;b<g;b++)y.push(h[b]);f.push(y),h=d.exec(m)}return f},p=function(m){let d=l.exec(m);return!(d===null||typeof d>"u")};o.isExist=function(m){return typeof m<"u"},o.isEmptyObject=function(m){return Object.keys(m).length===0},o.merge=function(m,d,f){if(d){let h=Object.keys(d),y=h.length;for(let g=0;g<y;g++)f==="strict"?m[h[g]]=[d[h[g]]]:m[h[g]]=d[h[g]]}},o.getValue=function(m){return o.isExist(m)?m:""},o.isName=p,o.getAllMatches=u,o.nameRegexp=c},{}],4:[function(n,i,o){"use strict";let s=n("./util"),a={allowBooleanAttributes:!1,unpairedTags:[]};o.validate=function(_,$){$=Object.assign({},a,$);let E=[],q=!1,O=!1;_[0]==="\uFEFF"&&(_=_.substr(1));for(let P=0;P<_.length;P++)if(_[P]==="<"&&_[P+1]==="?"){if(P+=2,P=l(_,P),P.err)return P}else if(_[P]==="<"){let N=P;if(P++,_[P]==="!"){P=u(_,P);continue}else{let D=!1;_[P]==="/"&&(D=!0,P++);let j="";for(;P<_.length&&_[P]!==">"&&_[P]!==" "&&_[P]!==" "&&_[P]!==`
|
|
201
201
|
`&&_[P]!=="\r";P++)j+=_[P];if(j=j.trim(),j[j.length-1]==="/"&&(j=j.substring(0,j.length-1),P--),!x(j)){let k;return j.trim().length===0?k="Invalid space after '<'.":k="Tag '"+j+"' is an invalid name.",b("InvalidTag",k,S(_,P))}let I=d(_,P);if(I===!1)return b("InvalidAttr","Attributes for '"+j+"' have open quote.",S(_,P));let B=I.value;if(P=I.index,B[B.length-1]==="/"){let k=P-B.length;B=B.substring(0,B.length-1);let T=h(B,$);if(T===!0)q=!0;else return b(T.err.code,T.err.msg,S(_,k+T.err.line))}else if(D)if(I.tagClosed){if(B.trim().length>0)return b("InvalidTag","Closing tag '"+j+"' can't have attributes or invalid starting.",S(_,N));if(E.length===0)return b("InvalidTag","Closing tag '"+j+"' has not been opened.",S(_,N));{let k=E.pop();if(j!==k.tagName){let T=S(_,k.tagStartPos);return b("InvalidTag","Expected closing tag '"+k.tagName+"' (opened in line "+T.line+", col "+T.col+") instead of closing tag '"+j+"'.",S(_,N))}E.length==0&&(O=!0)}}else return b("InvalidTag","Closing tag '"+j+"' doesn't have proper closing.",S(_,P));else{let k=h(B,$);if(k!==!0)return b(k.err.code,k.err.msg,S(_,P-B.length+k.err.line));if(O===!0)return b("InvalidXml","Multiple possible root nodes found.",S(_,P));$.unpairedTags.indexOf(j)!==-1||E.push({tagName:j,tagStartPos:N}),q=!0}for(P++;P<_.length;P++)if(_[P]==="<")if(_[P+1]==="!"){P++,P=u(_,P);continue}else if(_[P+1]==="?"){if(P=l(_,++P),P.err)return P}else break;else if(_[P]==="&"){let k=g(_,P);if(k==-1)return b("InvalidChar","char '&' is not expected.",S(_,P));P=k}else if(O===!0&&!c(_[P]))return b("InvalidXml","Extra text at the end",S(_,P));_[P]==="<"&&P--}}else{if(c(_[P]))continue;return b("InvalidChar","char '"+_[P]+"' is not expected.",S(_,P))}if(q){if(E.length==1)return b("InvalidTag","Unclosed tag '"+E[0].tagName+"'.",S(_,E[0].tagStartPos));if(E.length>0)return b("InvalidXml","Invalid '"+JSON.stringify(E.map(P=>P.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return b("InvalidXml","Start tag expected.",1);return!0};function c(_){return _===" "||_===" "||_===`
|
|
202
202
|
`||_==="\r"}function l(_,$){let E=$;for(;$<_.length;$++)if(_[$]=="?"||_[$]==" "){let q=_.substr(E,$-E);if($>5&&q==="xml")return b("InvalidXml","XML declaration allowed only at the start of the document.",S(_,$));if(_[$]=="?"&&_[$+1]==">"){$++;break}else continue}return $}function u(_,$){if(_.length>$+5&&_[$+1]==="-"&&_[$+2]==="-"){for($+=3;$<_.length;$++)if(_[$]==="-"&&_[$+1]==="-"&&_[$+2]===">"){$+=2;break}}else if(_.length>$+8&&_[$+1]==="D"&&_[$+2]==="O"&&_[$+3]==="C"&&_[$+4]==="T"&&_[$+5]==="Y"&&_[$+6]==="P"&&_[$+7]==="E"){let E=1;for($+=8;$<_.length;$++)if(_[$]==="<")E++;else if(_[$]===">"&&(E--,E===0))break}else if(_.length>$+9&&_[$+1]==="["&&_[$+2]==="C"&&_[$+3]==="D"&&_[$+4]==="A"&&_[$+5]==="T"&&_[$+6]==="A"&&_[$+7]==="["){for($+=8;$<_.length;$++)if(_[$]==="]"&&_[$+1]==="]"&&_[$+2]===">"){$+=2;break}}return $}let p='"',m="'";function d(_,$){let E="",q="",O=!1;for(;$<_.length;$++){if(_[$]===p||_[$]===m)q===""?q=_[$]:q!==_[$]||(q="");else if(_[$]===">"&&q===""){O=!0;break}E+=_[$]}return q!==""?!1:{value:E,index:$,tagClosed:O}}let f=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function h(_,$){let E=s.getAllMatches(_,f),q={};for(let O=0;O<E.length;O++){if(E[O][1].length===0)return b("InvalidAttr","Attribute '"+E[O][2]+"' has no space in starting.",C(E[O]));if(E[O][3]!==void 0&&E[O][4]===void 0)return b("InvalidAttr","Attribute '"+E[O][2]+"' is without value.",C(E[O]));if(E[O][3]===void 0&&!$.allowBooleanAttributes)return b("InvalidAttr","boolean attribute '"+E[O][2]+"' is not allowed.",C(E[O]));let P=E[O][2];if(!v(P))return b("InvalidAttr","Attribute '"+P+"' is an invalid name.",C(E[O]));if(!q.hasOwnProperty(P))q[P]=1;else return b("InvalidAttr","Attribute '"+P+"' is repeated.",C(E[O]))}return!0}function y(_,$){let E=/\d/;for(_[$]==="x"&&($++,E=/[\da-fA-F]/);$<_.length;$++){if(_[$]===";")return $;if(!_[$].match(E))break}return-1}function g(_,$){if($++,_[$]===";")return-1;if(_[$]==="#")return $++,y(_,$);let E=0;for(;$<_.length;$++,E++)if(!(_[$].match(/\w/)&&E<20)){if(_[$]===";")break;return-1}return $}function b(_,$,E){return{err:{code:_,msg:$,line:E.line||E,col:E.col}}}function v(_){return s.isName(_)}function x(_){return s.isName(_)}function S(_,$){let E=_.substring(0,$).split(/\r?\n/);return{line:E.length,col:E[E.length-1].length+1}}function C(_){return _.startIndex+_[1].length}},{"./util":3}],5:[function(n,i,o){"use strict";let s=n("./orderedJs2Xml"),a=n("../ignoreAttributes"),c={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(f,h){return h},attributeValueProcessor:function(f,h){return h},preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1};function l(f){this.options=Object.assign({},c,f),this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=a(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=d),this.processTextOrObjNode=u,this.options.format?(this.indentate=m,this.tagEndChar=`>
|
|
203
203
|
`,this.newLine=`
|
|
204
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}l.prototype.build=function(f){return this.options.preserveOrder?s(f,this.options):(Array.isArray(f)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(f={[this.options.arrayNodeName]:f}),this.j2x(f,0,[]).val)},l.prototype.j2x=function(f,h,y){let g="",b="",v=y.join(".");for(let x in f)if(Object.prototype.hasOwnProperty.call(f,x))if(typeof f[x]>"u")this.isAttribute(x)&&(b+="");else if(f[x]===null)this.isAttribute(x)?b+="":x[0]==="?"?b+=this.indentate(h)+"<"+x+"?"+this.tagEndChar:b+=this.indentate(h)+"<"+x+"/"+this.tagEndChar;else if(f[x]instanceof Date)b+=this.buildTextValNode(f[x],x,"",h);else if(typeof f[x]!="object"){let S=this.isAttribute(x);if(S&&!this.ignoreAttributesFn(S,v))g+=this.buildAttrPairStr(S,""+f[x]);else if(!S)if(x===this.options.textNodeName){let C=this.options.tagValueProcessor(x,""+f[x]);b+=this.replaceEntitiesValue(C)}else b+=this.buildTextValNode(f[x],x,"",h)}else if(Array.isArray(f[x])){let S=f[x].length,C="",_="";for(let $=0;$<S;$++){let E=f[x][$];if(!(typeof E>"u"))if(E===null)x[0]==="?"?b+=this.indentate(h)+"<"+x+"?"+this.tagEndChar:b+=this.indentate(h)+"<"+x+"/"+this.tagEndChar;else if(typeof E=="object")if(this.options.oneListGroup){let q=this.j2x(E,h+1,y.concat(x));C+=q.val,this.options.attributesGroupName&&E.hasOwnProperty(this.options.attributesGroupName)&&(_+=q.attrStr)}else C+=this.processTextOrObjNode(E,x,h,y);else if(this.options.oneListGroup){let q=this.options.tagValueProcessor(x,E);q=this.replaceEntitiesValue(q),C+=q}else C+=this.buildTextValNode(E,x,"",h)}this.options.oneListGroup&&(C=this.buildObjectNode(C,x,_,h)),b+=C}else if(this.options.attributesGroupName&&x===this.options.attributesGroupName){let S=Object.keys(f[x]),C=S.length;for(let _=0;_<C;_++)g+=this.buildAttrPairStr(S[_],""+f[x][S[_]])}else b+=this.processTextOrObjNode(f[x],x,h,y);return{attrStr:g,val:b}},l.prototype.buildAttrPairStr=function(f,h){return h=this.options.attributeValueProcessor(f,""+h),h=this.replaceEntitiesValue(h),this.options.suppressBooleanAttributes&&h==="true"?" "+f:" "+f+'="'+h+'"'};function u(f,h,y,g){let b=this.j2x(f,y+1,g.concat(h));return f[this.options.textNodeName]!==void 0&&Object.keys(f).length===1?this.buildTextValNode(f[this.options.textNodeName],h,b.attrStr,y):this.buildObjectNode(b.val,h,b.attrStr,y)}l.prototype.buildObjectNode=function(f,h,y,g){if(f==="")return h[0]==="?"?this.indentate(g)+"<"+h+y+"?"+this.tagEndChar:this.indentate(g)+"<"+h+y+this.closeTag(h)+this.tagEndChar;{let b="</"+h+this.tagEndChar,v="";return h[0]==="?"&&(v="?",b=""),(y||y==="")&&f.indexOf("<")===-1?this.indentate(g)+"<"+h+y+v+">"+f+b:this.options.commentPropName!==!1&&h===this.options.commentPropName&&v.length===0?this.indentate(g)+`<!--${f}-->`+this.newLine:this.indentate(g)+"<"+h+y+v+this.tagEndChar+f+this.indentate(g)+b}},l.prototype.closeTag=function(f){let h="";return this.options.unpairedTags.indexOf(f)!==-1?this.options.suppressUnpairedNode||(h="/"):this.options.suppressEmptyNode?h="/":h=`></${f}`,h};function p(f,h,y,g){return f!==""?this.buildObjectNode(f,h,y,g):h[0]==="?"?this.indentate(g)+"<"+h+y+"?"+this.tagEndChar:this.indentate(g)+"<"+h+y+"/"+this.tagEndChar}l.prototype.buildTextValNode=function(f,h,y,g){if(this.options.cdataPropName!==!1&&h===this.options.cdataPropName)return this.indentate(g)+`<![CDATA[${f}]]>`+this.newLine;if(this.options.commentPropName!==!1&&h===this.options.commentPropName)return this.indentate(g)+`<!--${f}-->`+this.newLine;if(h[0]==="?")return this.indentate(g)+"<"+h+y+"?"+this.tagEndChar;{let b=this.options.tagValueProcessor(h,f);return b=this.replaceEntitiesValue(b),b===""?this.indentate(g)+"<"+h+y+this.closeTag(h)+this.tagEndChar:this.indentate(g)+"<"+h+y+">"+b+"</"+h+this.tagEndChar}},l.prototype.replaceEntitiesValue=function(f){if(f&&f.length>0&&this.options.processEntities)for(let h=0;h<this.options.entities.length;h++){let y=this.options.entities[h];f=f.replace(y.regex,y.val)}return f};function m(f){return this.options.indentBy.repeat(f)}function d(f){return f.startsWith(this.options.attributeNamePrefix)&&f!==this.options.textNodeName?f.substr(this.attrPrefixLen):!1}i.exports=l},{"../ignoreAttributes":2,"./orderedJs2Xml":6}],6:[function(n,i,o){let
|
|
205
|
-
|
|
206
|
-
`);let P=new a("!xml"),N=P,D="",j="";for(let I=0;I<O.length;I++)if(O[I]==="<")if(O[I+1]==="/"){let k=_(O,">",I,"Closing Tag is not closed."),T=O.substring(I+2,k).trim();if(this.options.removeNSPrefix){let re=T.indexOf(":");re!==-1&&(T=T.substr(re+1))}this.options.transformTagName&&(T=this.options.transformTagName(T)),N&&(D=this.saveTextToParentTag(D,N,j));let z=j.substring(j.lastIndexOf(".")+1);if(T&&this.options.unpairedTags.indexOf(T)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${T}>`);let U=0;z&&this.options.unpairedTags.indexOf(z)!==-1?(U=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=j.lastIndexOf("."),j=j.substring(0,U),N=this.tagsNodeStack.pop(),D="",I=k}else if(O[I+1]==="?"){let k=$(O,I,!1,"?>");if(!k)throw new Error("Pi Tag is not closed.");if(D=this.saveTextToParentTag(D,N,j),!(this.options.ignoreDeclaration&&k.tagName==="?xml"||this.options.ignorePiTags)){let T=new a(k.tagName);T.add(this.options.textNodeName,""),k.tagName!==k.tagExp&&k.attrExpPresent&&(T[":@"]=this.buildAttributesMap(k.tagExp,j,k.tagName)),this.addChild(N,T,j)}I=k.closeIndex+1}else if(O.substr(I+1,3)==="!--"){let k=_(O,"-->",I+4,"Comment is not closed.");if(this.options.commentPropName){let T=O.substring(I+4,k-2);D=this.saveTextToParentTag(D,N,j),N.add(this.options.commentPropName,[{[this.options.textNodeName]:T}])}I=k}else if(O.substr(I+1,2)==="!D"){let k=c(O,I);this.docTypeEntities=k.entities,I=k.i}else if(O.substr(I+1,2)==="!["){let k=_(O,"]]>",I,"CDATA is not closed.")-2,T=O.substring(I+9,k);D=this.saveTextToParentTag(D,N,j);let z=this.parseTextData(T,N.tagname,j,!0,!1,!0,!0);z==null&&(z=""),this.options.cdataPropName?N.add(this.options.cdataPropName,[{[this.options.textNodeName]:T}]):N.add(this.options.textNodeName,z),I=k+2}else{let k=$(O,I,this.options.removeNSPrefix),T=k.tagName,z=k.rawTagName,U=k.tagExp,re=k.attrExpPresent,he=k.closeIndex;this.options.transformTagName&&(T=this.options.transformTagName(T)),N&&D&&N.tagname!=="!xml"&&(D=this.saveTextToParentTag(D,N,j,!1));let Ke=N;if(Ke&&this.options.unpairedTags.indexOf(Ke.tagname)!==-1&&(N=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),T!==P.tagname&&(j+=j?"."+T:T),this.isItStopNode(this.options.stopNodes,j,T)){let ke="";if(U.length>0&&U.lastIndexOf("/")===U.length-1)T[T.length-1]==="/"?(T=T.substr(0,T.length-1),j=j.substr(0,j.length-1),U=T):U=U.substr(0,U.length-1),I=k.closeIndex;else if(this.options.unpairedTags.indexOf(T)!==-1)I=k.closeIndex;else{let ye=this.readStopNodeData(O,z,he+1);if(!ye)throw new Error(`Unexpected end of ${z}`);I=ye.i,ke=ye.tagContent}let J=new a(T);T!==U&&re&&(J[":@"]=this.buildAttributesMap(U,j,T)),ke&&(ke=this.parseTextData(ke,T,j,!0,re,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),J.add(this.options.textNodeName,ke),this.addChild(N,J,j)}else{if(U.length>0&&U.lastIndexOf("/")===U.length-1){T[T.length-1]==="/"?(T=T.substr(0,T.length-1),j=j.substr(0,j.length-1),U=T):U=U.substr(0,U.length-1),this.options.transformTagName&&(T=this.options.transformTagName(T));let ke=new a(T);T!==U&&re&&(ke[":@"]=this.buildAttributesMap(U,j,T)),this.addChild(N,ke,j),j=j.substr(0,j.lastIndexOf("."))}else{let ke=new a(T);this.tagsNodeStack.push(N),T!==U&&re&&(ke[":@"]=this.buildAttributesMap(U,j,T)),this.addChild(N,ke,j),N=ke}D="",I=he}}else D+=O[I];return P.child};function b(O,P,N){let D=this.options.updateTag(P.tagname,N,P[":@"]);D===!1||(typeof D=="string"&&(P.tagname=D),O.addChild(P))}let v=function(O){if(this.options.processEntities){for(let P in this.docTypeEntities){let N=this.docTypeEntities[P];O=O.replace(N.regx,N.val)}for(let P in this.lastEntities){let N=this.lastEntities[P];O=O.replace(N.regex,N.val)}if(this.options.htmlEntities)for(let P in this.htmlEntities){let N=this.htmlEntities[P];O=O.replace(N.regex,N.val)}O=O.replace(this.ampEntity.regex,this.ampEntity.val)}return O};function x(O,P,N,D){return O&&(D===void 0&&(D=Object.keys(P.child).length===0),O=this.parseTextData(O,P.tagname,N,!1,P[":@"]?Object.keys(P[":@"]).length!==0:!1,D),O!==void 0&&O!==""&&P.add(this.options.textNodeName,O),O=""),O}function S(O,P,N){let D="*."+N;for(let j in O){let I=O[j];if(D===I||P===I)return!0}return!1}function C(O,P,N=">"){let D,j="";for(let I=P;I<O.length;I++){let B=O[I];if(D)B===D&&(D="");else if(B==='"'||B==="'")D=B;else if(B===N[0])if(N[1]){if(O[I+1]===N[1])return{data:j,index:I}}else return{data:j,index:I};else B===" "&&(B=" ");j+=B}}function _(O,P,N,D){let j=O.indexOf(P,N);if(j===-1)throw new Error(D);return j+P.length-1}function $(O,P,N,D=">"){let j=C(O,P+1,D);if(!j)return;let I=j.data,B=j.index,k=I.search(/\s/),T=I,z=!0;k!==-1&&(T=I.substring(0,k),I=I.substring(k+1).trimStart());let U=T;if(N){let re=T.indexOf(":");re!==-1&&(T=T.substr(re+1),z=T!==j.data.substr(re+1))}return{tagName:T,tagExp:I,closeIndex:B,attrExpPresent:z,rawTagName:U}}function E(O,P,N){let D=N,j=1;for(;N<O.length;N++)if(O[N]==="<")if(O[N+1]==="/"){let I=_(O,">",N,`${P} is not closed`);if(O.substring(N+2,I).trim()===P&&(j--,j===0))return{tagContent:O.substring(D,N),i:I};N=I}else if(O[N+1]==="?")N=_(O,"?>",N+1,"StopNode is not closed.");else if(O.substr(N+1,3)==="!--")N=_(O,"-->",N+3,"StopNode is not closed.");else if(O.substr(N+1,2)==="![")N=_(O,"]]>",N,"StopNode is not closed.")-2;else{let I=$(O,N,">");I&&((I&&I.tagName)===P&&I.tagExp[I.tagExp.length-1]!=="/"&&j++,N=I.closeIndex)}}function q(O,P,N){if(P&&typeof O=="string"){let D=O.trim();return D==="true"?!0:D==="false"?!1:l(O,N)}else return s.isExist(O)?O:""}i.exports=p},{"../ignoreAttributes":2,"../util":3,"./DocTypeReader":7,"./xmlNode":12,strnum:15}],10:[function(n,i,o){let{buildOptions:s}=n("./OptionsBuilder"),a=n("./OrderedObjParser"),{prettify:c}=n("./node2json"),l=n("../validator");class u{constructor(m){this.externalEntities={},this.options=s(m)}parse(m,d){if(typeof m!="string")if(m.toString)m=m.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(d){d===!0&&(d={});let y=l.validate(m,d);if(y!==!0)throw Error(`${y.err.msg}:${y.err.line}:${y.err.col}`)}let f=new a(this.options);f.addExternalEntities(this.externalEntities);let h=f.parseXml(m);return this.options.preserveOrder||h===void 0?h:c(h,this.options)}addEntity(m,d){if(d.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(m.indexOf("&")!==-1||m.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(d==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[m]=d}}i.exports=u},{"../validator":4,"./OptionsBuilder":8,"./OrderedObjParser":9,"./node2json":11}],11:[function(n,i,o){"use strict";function s(p,m){return a(p,m)}function a(p,m,d){let f,h={};for(let y=0;y<p.length;y++){let g=p[y],b=c(g),v="";if(d===void 0?v=b:v=d+"."+b,b===m.textNodeName)f===void 0?f=g[b]:f+=""+g[b];else{if(b===void 0)continue;if(g[b]){let x=a(g[b],m,v),S=u(x,m);g[":@"]?l(x,g[":@"],v,m):Object.keys(x).length===1&&x[m.textNodeName]!==void 0&&!m.alwaysCreateTextNode?x=x[m.textNodeName]:Object.keys(x).length===0&&(m.alwaysCreateTextNode?x[m.textNodeName]="":x=""),h[b]!==void 0&&h.hasOwnProperty(b)?(Array.isArray(h[b])||(h[b]=[h[b]]),h[b].push(x)):m.isArray(b,v,S)?h[b]=[x]:h[b]=x}}}return typeof f=="string"?f.length>0&&(h[m.textNodeName]=f):f!==void 0&&(h[m.textNodeName]=f),h}function c(p){let m=Object.keys(p);for(let d=0;d<m.length;d++){let f=m[d];if(f!==":@")return f}}function l(p,m,d,f){if(m){let h=Object.keys(m),y=h.length;for(let g=0;g<y;g++){let b=h[g];f.isArray(b,d+"."+b,!0,!0)?p[b]=[m[b]]:p[b]=m[b]}}}function u(p,m){let{textNodeName:d}=m,f=Object.keys(p).length;return!!(f===0||f===1&&(p[d]||typeof p[d]=="boolean"||p[d]===0))}o.prettify=s},{}],12:[function(n,i,o){"use strict";class s{constructor(c){this.tagname=c,this.child=[],this[":@"]={}}add(c,l){c==="__proto__"&&(c="#__proto__"),this.child.push({[c]:l})}addChild(c){c.tagname==="__proto__"&&(c.tagname="#__proto__"),c[":@"]&&Object.keys(c[":@"]).length>0?this.child.push({[c.tagname]:c.child,":@":c[":@"]}):this.child.push({[c.tagname]:c.child})}}i.exports=s},{}],13:[function(n,i,o){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString;i.exports=function(l,u,p){if(a.call(u)!=="[object Function]")throw new TypeError("iterator must be a function");var m=l.length;if(m===+m)for(var d=0;d<m;d++)u.call(p,l[d],d,l);else for(var f in l)s.call(l,f)&&u.call(p,l[f],f,l)}},{}],14:[function(n,i,o){"use strict";var s=n("foreach");i.exports=a;function a(c,l,u){if(arguments.length===3)return a.set(c,l,u);if(arguments.length===2)return a.get(c,l);var p=a.bind(a,c);for(var m in a)a.hasOwnProperty(m)&&(p[m]=a[m].bind(p,c));return p}a.get=function(l,u){for(var p=Array.isArray(u)?u:a.parse(u),m=0;m<p.length;++m){var d=p[m];if(!(typeof l=="object"&&d in l))throw new Error("Invalid reference token: "+d);l=l[d]}return l},a.set=function(l,u,p){var m=Array.isArray(u)?u:a.parse(u),d=m[0];if(m.length===0)throw Error("Can not set the root object");for(var f=0;f<m.length-1;++f){var h=m[f];typeof h!="string"&&typeof h!="number"&&(h=String(h)),!(h==="__proto__"||h==="constructor"||h==="prototype")&&(h==="-"&&Array.isArray(l)&&(h=l.length),d=m[f+1],h in l||(d.match(/^(\d+|-)$/)?l[h]=[]:l[h]={}),l=l[h])}return d==="-"&&Array.isArray(l)&&(d=l.length),l[d]=p,this},a.remove=function(c,l){var u=Array.isArray(l)?l:a.parse(l),p=u[u.length-1];if(p===void 0)throw new Error('Invalid JSON pointer for remove: "'+l+'"');var m=a.get(c,u.slice(0,-1));if(Array.isArray(m)){var d=+p;if(p===""&&isNaN(d))throw new Error('Invalid array index: "'+p+'"');Array.prototype.splice.call(m,d,1)}else delete m[p]},a.dict=function(l,u){var p={};return a.walk(l,function(m,d){p[d]=m},u),p},a.walk=function(l,u,p){var m=[];p=p||function(d){var f=Object.prototype.toString.call(d);return f==="[object Object]"||f==="[object Array]"},function d(f){s(f,function(h,y){m.push(String(y)),p(h)?d(h):u(h,a.compile(m)),m.pop()})}(l)},a.has=function(l,u){try{a.get(l,u)}catch{return!1}return!0},a.escape=function(l){return l.toString().replace(/~/g,"~0").replace(/\//g,"~1")},a.unescape=function(l){return l.replace(/~1/g,"/").replace(/~0/g,"~")},a.parse=function(l){if(l==="")return[];if(l.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+l);return l.substring(1).split(/\//).map(a.unescape)},a.compile=function(l){return l.length===0?"":"/"+l.map(a.escape).join("/")}},{foreach:13}],15:[function(n,i,o){let s=/^[-+]?0x[a-fA-F0-9]+$/,a=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let c={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function l(p,m={}){if(m=Object.assign({},c,m),!p||typeof p!="string")return p;let d=p.trim();if(m.skipLike!==void 0&&m.skipLike.test(d))return p;if(m.hex&&s.test(d))return Number.parseInt(d,16);{let f=a.exec(d);if(f){let h=f[1],y=f[2],g=u(f[3]),b=f[4]||f[6];if(!m.leadingZeros&&y.length>0&&h&&d[2]!==".")return p;if(!m.leadingZeros&&y.length>0&&!h&&d[1]!==".")return p;{let v=Number(d),x=""+v;return x.search(/[eE]/)!==-1||b?m.eNotation?v:p:d.indexOf(".")!==-1?x==="0"&&g===""||x===g||h&&x==="-"+g?v:p:y?g===x||h+g===x?v:p:d===x||d===h+x?v:p}}else return p}}function u(p){return p&&p.indexOf(".")!==-1&&(p=p.replace(/0+$/,""),p==="."?p="0":p[0]==="."?p="0"+p:p[p.length-1]==="."&&(p=p.substr(0,p.length-1))),p}i.exports=l},{}],16:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.allOfSample=c;var s=n("./traverse"),a=n("./utils");function c(l,u,p,m,d){let f=(0,s.traverse)(l,p,m),h=[];for(let y of u){let{type:g,readOnly:b,writeOnly:v,value:x}=(0,s.traverse)({type:f.type,...y},p,m,d);f.type&&g&&g!==f.type&&(console.warn("allOf: schemas with different types can't be merged"),f.type=g),f.type=f.type||g,f.readOnly=f.readOnly||b,f.writeOnly=f.writeOnly||v,x!=null&&h.push(x)}if(f.type==="object")return f.value=(0,a.mergeDeep)(f.value||{},...h.filter(y=>typeof y=="object")),f;{f.type==="array"&&(p.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));let y=h[h.length-1];return f.value=y!=null?y:f.value,f}}},{"./traverse":26,"./utils":27}],17:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.inferType=a;let s={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function a(c){if(c.type!==void 0)return Array.isArray(c.type)?c.type.length===0?null:c.type[0]:c.type;let l=Object.keys(s);for(var u=0;u<l.length;u++){let p=l[u],m=s[p];if(c[p]!==void 0)return m}return null}},{}],18:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o._registerSampler=f,o._samplers=void 0,Object.defineProperty(o,"inferType",{enumerable:!0,get:function(){return l.inferType}}),o.sample=d;var s=n("./traverse"),a=n("./samplers/index"),c=n("fast-xml-parser"),l=n("./infer"),u=o._samplers={};let p={skipReadOnly:!1,maxSampleDepth:15};function m(h,y){var b;if(!h)throw new Error("Unknown format output for building XML.");return(Array.isArray(h)||Object.keys(h).length>1)&&(h={[((b=y==null?void 0:y.xml)==null?void 0:b.name)||"root"]:h}),new c.XMLBuilder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text"}).build(h)}function d(h,y,g){let b=Object.assign({},p,y);(0,s.clearCache)();let v=(0,s.traverse)(h,b,g).value;return(b==null?void 0:b.format)==="xml"?m(v,h):v}function f(h,y){u[h]=y}f("array",a.sampleArray),f("boolean",a.sampleBoolean),f("integer",a.sampleNumber),f("number",a.sampleNumber),f("object",a.sampleObject),f("string",a.sampleString)},{"./infer":17,"./samplers/index":21,"./traverse":26,"fast-xml-parser":1}],19:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleArray=c;var s=n("../traverse"),a=n("../utils");function c(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2?arguments[2]:void 0,m=arguments.length>3?arguments[3]:void 0,d=m&&m.depth||1,f=Math.min(l.maxItems!=null?l.maxItems:1/0,l.minItems||1),h=l.prefixItems||l.items||l.contains;Array.isArray(h)&&(f=Math.max(f,h.length));let y=b=>Array.isArray(h)?h[b]||{}:h||{},g=[];if(!h)return g;for(let b=0;b<f;b++){let v=y(b),{value:x}=(0,s.traverse)(v,u,p,{depth:d+1});if((u==null?void 0:u.format)==="xml"){let{value:S,propertyName:C}=(0,a.applyXMLAttributes)({value:x},v,m);C?(g!=null&&g[C]||(g={...g,[C]:[]}),g[C].push(S)):g={...g,...S}}else g.push(x)}if((u==null?void 0:u.format)==="xml"&&d===1){let{value:b,propertyName:v}=(0,a.applyXMLAttributes)({value:null},l,m);v&&(b?g=Array.isArray(g)?{[v]:{...b,...g.map(x=>({"#text":{...x}}))}}:{[v]:{...g,...b}}:g={[v]:g})}return g}},{"../traverse":26,"../utils":27}],20:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleBoolean=s;function s(a){return!0}},{}],21:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"sampleArray",{enumerable:!0,get:function(){return s.sampleArray}}),Object.defineProperty(o,"sampleBoolean",{enumerable:!0,get:function(){return a.sampleBoolean}}),Object.defineProperty(o,"sampleNumber",{enumerable:!0,get:function(){return c.sampleNumber}}),Object.defineProperty(o,"sampleObject",{enumerable:!0,get:function(){return l.sampleObject}}),Object.defineProperty(o,"sampleString",{enumerable:!0,get:function(){return u.sampleString}});var s=n("./array"),a=n("./boolean"),c=n("./number"),l=n("./object"),u=n("./string")},{"./array":19,"./boolean":20,"./number":22,"./object":23,"./string":25}],22:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleNumber=s;function s(a){let c=0;if(a.type==="number"&&(a.format==="float"||a.format==="double")&&(c=.1),typeof a.exclusiveMinimum=="boolean"||typeof a.exclusiveMaximum=="boolean"){if(a.maximum&&a.minimum)return c=a.exclusiveMinimum?Math.floor(a.minimum)+1:a.minimum,(a.exclusiveMaximum&&c>=a.maximum||!a.exclusiveMaximum&&c>a.maximum)&&(c=(a.maximum+a.minimum)/2),c;if(a.minimum)return a.exclusiveMinimum?Math.floor(a.minimum)+1:a.minimum;if(a.maximum)return a.exclusiveMaximum?a.maximum>0?0:Math.floor(a.maximum)-1:a.maximum>0?0:a.maximum}else{if(a.minimum)return a.minimum;a.exclusiveMinimum?(c=Math.floor(a.exclusiveMinimum)+1,c===a.exclusiveMaximum&&(c=(c+Math.floor(a.exclusiveMaximum)-1)/2)):a.exclusiveMaximum?c=Math.floor(a.exclusiveMaximum)-1:a.maximum&&(c=a.maximum)}return c}},{}],23:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleObject=c;var s=n("../traverse"),a=n("../utils");function c(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2?arguments[2]:void 0,m=arguments.length>3?arguments[3]:void 0,d={},f=m&&m.depth||1;if(l&&typeof l.properties=="object"){let h=Array.isArray(l.required)?l.required:[],y={};for(let g of h)y[g]=!0;Object.keys(l.properties).forEach(g=>{if(u.skipNonRequired&&!y.hasOwnProperty(g))return;let b=(0,s.traverse)(l.properties[g],u,p,{propertyName:g,depth:f+1});if(!(u.skipReadOnly&&b.readOnly)&&!(u.skipWriteOnly&&b.writeOnly))if((u==null?void 0:u.format)==="xml"){let{propertyName:v,value:x}=(0,a.applyXMLAttributes)(b,l.properties[g],{propertyName:g});v?d[v]=x:d={...d,...x}}else d[g]=b.value})}if(l&&typeof l.additionalProperties=="object"){let h=l.additionalProperties["x-additionalPropertiesName"]||"property";d[`${String(h)}1`]=(0,s.traverse)(l.additionalProperties,u,p,{depth:f+1}).value,d[`${String(h)}2`]=(0,s.traverse)(l.additionalProperties,u,p,{depth:f+1}).value}if(l&&typeof l.properties=="object"&&l.maxProperties!==void 0&&Object.keys(d).length>l.maxProperties){let h={},y=0;(Array.isArray(l.required)?l.required:[]).forEach(b=>{d[b]!==void 0&&(h[b]=d[b],y++)}),Object.keys(d).forEach(b=>{y<l.maxProperties&&!h.hasOwnProperty(b)&&(h[b]=d[b],y++)}),d=h}return d}},{"../traverse":26,"../utils":27}],24:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.regexSample=l;function s(){return!0}function a(u,p){return u}function c(u,p,m){let d=1;if(u)switch(u){case"?":{d=s()?0:1;break}case"*":{d=a(0,8);break}case"+":{d=a(1,8);break}default:throw new Error("Unknown quantifier symbol provided.")}else p!=null&&m!=null?d=a(parseInt(p),parseInt(m)):p!=null&&m==null&&(d=parseInt(p));return d}function l(u){var S,C;let p=!1;u instanceof RegExp&&(p=u.flags.includes("i"),u=u.toString(),u=(C=(S=u.match(/\/(.+?)\//))==null?void 0:S[1])!=null?C:"");let m,d,f,h=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/,y=u.match(h);for(;y!=null;){let _=y[2],$=y[3],E=y[4];f=c(E,_,$),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(h)}let g=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,b=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(y=u.match(b);y!=null;){let _=y[1]==="^",$=y[2]==="-",E=y[4],q=y[5],O=y[6],P=[],N=y[3],D=N.match(g);for($&&P.push(45);D!=null;){if(D[0].indexOf("-")===-1)p&&isNaN(Number(D[0]))?(P.push(D[0].toUpperCase().charCodeAt(0)),P.push(D[0].toLowerCase().charCodeAt(0))):P.push(D[0].charCodeAt(0));else{let I=D[0].split("-").map(B=>B.charCodeAt(0));if(m=I[0],d=I[1],m>d)throw new Error("Character range provided is out of order.");for(let B=m;B<=d;B++)if(p&&isNaN(Number(String.fromCharCode(B)))){let k=String.fromCharCode(B);P.push(k.toUpperCase().charCodeAt(0)),P.push(k.toLowerCase().charCodeAt(0))}else P.push(B)}N=N.substring(D[0].length),D=N.match(g)}if(f=c(O,E,q),_){let I=-1;for(let B=48;B<=57;B++){if(I=P.indexOf(B),I>-1){P.splice(I,1);continue}P.push(B)}for(let B=65;B<=90;B++){if(I=P.indexOf(B),I>-1){P.splice(I,1);continue}P.push(B)}for(let B=97;B<=122;B++){if(I=P.indexOf(B),I>-1){P.splice(I,1);continue}P.push(B)}}let j=Array.from({length:f},()=>String.fromCharCode(P[a(0,P.length-1)])).join("");u=u.slice(0,y.index)+j+u.slice(y.index+y[0].length),y=u.match(b)}let v=/(.)\{(\d+)\,(\d+)\}/;for(y=u.match(v);y!=null;){if(m=parseInt(y[2]),d=parseInt(y[3]),m>d)throw new Error("Numbers out of order in {} quantifier.");f=a(m,d),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(v)}let x=/(.)\{(\d+)\}/;for(y=u.match(x);y!=null;)f=parseInt(y[2]),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(x);return u}},{}],25:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleString=B;var s=n("../utils"),a=l(n("./string-regex"));function c(k){if(typeof WeakMap!="function")return null;var T=new WeakMap,z=new WeakMap;return(c=function(U){return U?z:T})(k)}function l(k,T){if(!T&&k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var z=c(T);if(z&&z.has(k))return z.get(k);var U={__proto__:null},re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var he in k)if(he!=="default"&&{}.hasOwnProperty.call(k,he)){var Ke=re?Object.getOwnPropertyDescriptor(k,he):null;Ke&&(Ke.get||Ke.set)?Object.defineProperty(U,he,Ke):U[he]=k[he]}return U.default=k,z&&z.set(k,U),U}let u="qwerty!@#$%^123456";function p(){return"user@example.com"}function m(){return"\u043F\u043E\u0448\u0442\u0430@\u0443\u043A\u0440.\u043D\u0435\u0442"}function d(k,T){let z="pa$$word";return k>z.length&&(z+="_",z+=(0,s.ensureMinLength)(u,k-z.length).substring(0,k-z.length)),z}function f(k){let{min:T,max:z,omitTime:U,omitDate:re}=k,he=(0,s.toRFCDateTime)(new Date("2019-08-24T14:15:22.123Z"),U,re,!1);return he.length<T&&console.warn(`Using minLength = ${T} is incorrect with format "date-time"`),z&&he.length>z&&console.warn(`Using maxLength = ${z} is incorrect with format "date-time"`),he}function h(k,T){return f({min:k,max:T,omitTime:!1,omitDate:!1})}function y(k,T){return f({min:k,max:T,omitTime:!0,omitDate:!1})}function g(k,T){return f({min:k,max:T,omitTime:!1,omitDate:!0}).slice(1)}function b(k,T,z,U){let re=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(U&&re)return a.regexSample(U);let he=(0,s.ensureMinLength)("string",k);return T&&he.length>T&&(he=he.substring(0,T)),he}function v(){return"192.168.0.1"}function x(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function S(){return"example.com"}function C(){return"\u043F\u0440\u0438\u043A\u043B\u0430\u0434.\u0443\u043A\u0440"}function _(){return"http://example.com"}function $(){return"../dictionary"}function E(){return"http://example.com/{endpoint}"}function q(){return"http://example.com/entity/1"}function O(){return"/entity/1"}function P(k,T,z){return(0,s.uuid)(z||"id")}function N(){return"/json/pointer"}function D(){return"1/relative/json/pointer"}function j(){return"/regex/"}let I={email:p,"idn-email":m,password:d,"date-time":h,date:y,time:g,ipv4:v,ipv6:x,hostname:S,"idn-hostname":C,iri:q,"iri-reference":O,uri:_,"uri-reference":$,"uri-template":E,uuid:P,default:b,"json-pointer":N,"relative-json-pointer":D,regex:j};function B(k,T,z,U){let re=k.format||"default",he=I[re]||b,Ke=U&&U.propertyName;return he(k.minLength||0,k.maxLength,Ke,k.pattern,T==null?void 0:T.enablePatterns)}},{"../utils":27,"./string-regex":24}],26:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.clearCache=f,o.traverse=g;var s=n("./openapi-sampler"),a=n("./allOf"),c=n("./infer"),l=n("./utils"),u=p(n("json-pointer"));function p(b){return b&&b.__esModule?b:{default:b}}let m={},d=[];function f(){m={},d=[]}function h(b){let v;return b.const!==void 0?v=b.const:b.examples!==void 0&&b.examples.length?v=b.examples[0]:b.enum!==void 0&&b.enum.length?v=b.enum[0]:b.default!==void 0&&(v=b.default),v}function y(b){let v=h(b);if(v!==void 0)return{value:v,readOnly:b.readOnly,writeOnly:b.writeOnly,type:null}}function g(b,v,x,S){if(S){if(d.includes(b))return(0,l.getResultForCircular)((0,c.inferType)(b));d.push(b)}if(S&&S.depth>v.maxSampleDepth)return(0,l.popSchemaStack)(d,S),(0,l.getResultForCircular)((0,c.inferType)(b));if(b.$ref){if(!x)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let E=decodeURIComponent(b.$ref);E.startsWith("#")&&(E=E.substring(1));let q=u.default.get(x,E),O;if(m[E]!==!0){m[E]=!0;let P=g(q,v,x,S);if(v.format==="xml"){let{propertyName:N,value:D}=(0,l.applyXMLAttributes)(P,q,S);O={...P,value:{[N||"root"]:D}}}else O=P;m[E]=!1}else{let P=(0,c.inferType)(q);O=(0,l.getResultForCircular)(P)}return(0,l.popSchemaStack)(d,S),O}if(b.example!==void 0)return(0,l.popSchemaStack)(d,S),{value:b.example,readOnly:b.readOnly,writeOnly:b.writeOnly,type:b.type};if(b.allOf!==void 0)return(0,l.popSchemaStack)(d,S),y(b)||(0,a.allOfSample)({...b,allOf:void 0},b.allOf,v,x,S);if(b.oneOf&&b.oneOf.length){b.anyOf&&(v.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),(0,l.popSchemaStack)(d,S);let E=Object.assign({readOnly:b.readOnly,writeOnly:b.writeOnly},b.oneOf[0]);return $(b,E)}if(b.anyOf&&b.anyOf.length){(0,l.popSchemaStack)(d,S);let E=Object.assign({readOnly:b.readOnly,writeOnly:b.writeOnly},b.anyOf[0]);return $(b,E)}if(b.if&&b.then){(0,l.popSchemaStack)(d,S);let{if:E,then:q,...O}=b;return g((0,l.mergeDeep)(O,E,q),v,x,S)}let C=h(b),_=null;if(C===void 0){C=null,_=b.type,Array.isArray(_)&&b.type.length>0&&(_=b.type[0]),_||(_=(0,c.inferType)(b));let E=s._samplers[_];E&&(C=E(b,v,x,S))}return(0,l.popSchemaStack)(d,S),{value:C,readOnly:b.readOnly,writeOnly:b.writeOnly,type:_};function $(E,q){let O=y(E);if(O!==void 0)return O;let P=g({...E,oneOf:void 0,anyOf:void 0},v,x,S),N=g(q,v,x,S);if(typeof P.value=="object"&&typeof N.value=="object"){let D=(0,l.mergeDeep)(P.value,N.value);return{...N,value:D}}return N}}},{"./allOf":16,"./infer":17,"./openapi-sampler":18,"./utils":27,"json-pointer":14}],27:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.applyXMLAttributes=f,o.ensureMinLength=c,o.getResultForCircular=p,o.getXMLAttributes=d,o.mergeDeep=l,o.popSchemaStack=m,o.toRFCDateTime=a,o.uuid=u;function s(g){return g<10?"0"+g:g}function a(g,b,v,x){var S=v?"":g.getUTCFullYear()+"-"+s(g.getUTCMonth()+1)+"-"+s(g.getUTCDate());return b||(S+="T"+s(g.getUTCHours())+":"+s(g.getUTCMinutes())+":"+s(g.getUTCSeconds())+(x?"."+(g.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),S}function c(g,b){return b>g.length?g.repeat(Math.trunc(b/g.length)+1).substring(0,b):g}function l(){let g=S=>S&&typeof S=="object";for(var b=arguments.length,v=new Array(b),x=0;x<b;x++)v[x]=arguments[x];return v.reduce((S,C)=>(Object.keys(C||{}).forEach(_=>{let $=S[_],E=C[_];g($)&&g(E)?S[_]=l($,E):S[_]=E}),S),Array.isArray(v[v.length-1])?[]:{})}function u(g){var b=h(g),v=y(b,b,b,b),x="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,S=>{var C=v()*16%16|0;return(S=="x"?C:C&3|8).toString(16)});return x}function p(g){return{value:g==="object"?{}:g==="array"?[]:void 0}}function m(g,b){b&&g.pop()}function d(g){var b,v,x,S,C,_,$;return{name:((b=g==null?void 0:g.xml)==null?void 0:b.name)||"",prefix:((v=g==null?void 0:g.xml)==null?void 0:v.prefix)||"",namespace:((x=g==null?void 0:g.xml)==null?void 0:x.namespace)||null,attribute:(C=(S=g==null?void 0:g.xml)==null?void 0:S.attribute)!=null?C:!1,wrapped:($=(_=g==null?void 0:g.xml)==null?void 0:_.wrapped)!=null?$:!1}}function f(g){var N,D;let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{value:x}=g,{propertyName:S}=v,{name:C,prefix:_,namespace:$,attribute:E,wrapped:q}=d(b),O=C||S?`${_?_+":":""}${C||S}`:null,P=typeof x=="object"?Array.isArray(x)?[...x]:{...x}:x;return E&&O&&(O=`$${O}`),$&&(typeof P=="object"?P[`$xmlns${_?":"+_:""}`]=$:P={[`$xmlns${_?":"+_:""}`]:$,"#text":P}),b.type==="array"&&(q&&Array.isArray(P)&&(P={[O]:[...P]}),q||(O=null),b.example!==void 0&&!q&&(O=((D=(N=b.items)==null?void 0:N.xml)==null?void 0:D.name)||O)),(b.oneOf||b.anyOf||b.allOf||b.$ref)&&(O=null),{propertyName:O,value:P}}function h(g){var b=0;if(g.length==0)return b;for(var v=0;v<g.length;v++){var x=g.charCodeAt(v);b=(b<<5)-b+x,b=b&b}return b}function y(g,b,v,x){return function(){g|=0,b|=0,v|=0,x|=0;var S=g-(b<<27|b>>>5)|0;return g=b^(v<<17|v>>>15),b=v+x|0,v=x+S|0,x=g+S|0,(x>>>0)/4294967296}}},{}]},{},[18])(18)})});var Oq=w(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0});var Ure=gy(),Vre=ky(),zre=eg(),Hre=vg(),_q=wg(),Kre=[Ure.default,Vre.default,(0,zre.default)(),Hre.default,_q.metadataVocabulary,_q.contentVocabulary];tw.default=Kre});var Pq=w((cxe,Wre)=>{Wre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/schema",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}}}});var $q=w((lxe,Yre)=>{Yre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/applicator":!0},$recursiveAnchor:!0,title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}}}});var Eq=w((uxe,Gre)=>{Gre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/content",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}}}});var Aq=w((pxe,Jre)=>{Jre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/core",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0},$recursiveAnchor:!0,title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}}}});var Cq=w((fxe,Xre)=>{Xre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/format",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/format":!0},$recursiveAnchor:!0,title:"Format vocabulary meta-schema",type:["object","boolean"],properties:{format:{type:"string"}}}});var Rq=w((dxe,Qre)=>{Qre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},$recursiveAnchor:!0,title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Tq=w((mxe,Zre)=>{Zre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/validation",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/validation":!0},$recursiveAnchor:!0,title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Nq=w(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0});rw.default=cne;var ene=Pq(),tne=$q(),rne=Eq(),nne=Aq(),ine=Cq(),one=Rq(),sne=Tq(),ane=["/properties"];function cne(e){return[ene,tne,rne,nne,t(this,ine),one,t(this,sne)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,ane):n}}});var Iq=w((ct,kq)=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.CodeGen=ct.Name=ct.nil=ct.stringify=ct.str=ct._=ct.KeywordCxt=void 0;var lne=my(),une=Oq(),pne=ag(),fne=fg(),dne=yg(),mne=Og(),hne=Nq(),nw="https://json-schema.org/draft/2019-09/schema",Wd=class extends lne.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(pne.default),une.default.forEach(t=>this.addVocabulary(t)),this.addVocabulary(fne.default),this.addVocabulary(dne.default),this.opts.discriminator&&this.addKeyword(mne.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(hne.default.call(this,t),this.refs["http://json-schema.org/schema"]=nw)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(nw)?nw:void 0)}};kq.exports=ct=Wd;Object.defineProperty(ct,"__esModule",{value:!0});ct.default=Wd;var yne=vs();Object.defineProperty(ct,"KeywordCxt",{enumerable:!0,get:function(){return yne.KeywordCxt}});var Pa=ne();Object.defineProperty(ct,"_",{enumerable:!0,get:function(){return Pa._}});Object.defineProperty(ct,"str",{enumerable:!0,get:function(){return Pa.str}});Object.defineProperty(ct,"stringify",{enumerable:!0,get:function(){return Pa.stringify}});Object.defineProperty(ct,"nil",{enumerable:!0,get:function(){return Pa.nil}});Object.defineProperty(ct,"Name",{enumerable:!0,get:function(){return Pa.Name}});Object.defineProperty(ct,"CodeGen",{enumerable:!0,get:function(){return Pa.CodeGen}})});var Ine={};Gd(Ine,{createMockServer:()=>ej});module.exports=cj(Ine);var On=Ee(require("fs"),1),Zi=Ee(require("path"),1);var Xd=(e,t,r)=>{let n=e instanceof RegExp?fw(e,r):e,i=t instanceof RegExp?fw(t,r):t,o=n!==null&&i!=null&&lj(n,i,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+n.length,o[1]),post:r.slice(o[1]+i.length)}},fw=(e,t)=>{let r=t.match(e);return r?r[0]:null},lj=(e,t,r)=>{let n,i,o,s,a,c=r.indexOf(e),l=r.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(n=[],o=r.length;u>=0&&!a;){if(u===c)n.push(u),c=r.indexOf(e,u+1);else if(n.length===1){let p=n.pop();p!==void 0&&(a=[p,l])}else i=n.pop(),i!==void 0&&i<o&&(o=i,s=l),l=r.indexOf(t,u+1);u=c<l&&c>=0?c:l}n.length&&s!==void 0&&(a=[o,s])}return a};var dw="\0SLASH"+Math.random()+"\0",mw="\0OPEN"+Math.random()+"\0",Zd="\0CLOSE"+Math.random()+"\0",hw="\0COMMA"+Math.random()+"\0",yw="\0PERIOD"+Math.random()+"\0",uj=new RegExp(dw,"g"),pj=new RegExp(mw,"g"),fj=new RegExp(Zd,"g"),dj=new RegExp(hw,"g"),mj=new RegExp(yw,"g"),hj=/\\\\/g,yj=/\\{/g,gj=/\\}/g,bj=/\\,/g,vj=/\\./g;function Qd(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function wj(e){return e.replace(hj,dw).replace(yj,mw).replace(gj,Zd).replace(bj,hw).replace(vj,yw)}function xj(e){return e.replace(uj,"\\").replace(pj,"{").replace(fj,"}").replace(dj,",").replace(mj,".")}function gw(e){if(!e)return[""];let t=[],r=Xd("{","}",e);if(!r)return e.split(",");let{pre:n,body:i,post:o}=r,s=n.split(",");s[s.length-1]+="{"+i+"}";let a=gw(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),t.push.apply(t,s),t}function bw(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Aa(wj(e),!0).map(xj)):[]}function Sj(e){return"{"+e+"}"}function _j(e){return/^-?0\d/.test(e)}function Oj(e,t){return e<=t}function Pj(e,t){return e>=t}function Aa(e,t){let r=[],n=Xd("{","}",e);if(!n)return[e];let i=n.pre,o=n.post.length?Aa(n.post,!1):[""];if(/\$$/.test(n.pre))for(let s=0;s<o.length;s++){let a=i+"{"+n.body+"}"+o[s];r.push(a)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=s||a,l=n.body.indexOf(",")>=0;if(!c&&!l)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+Zd+n.post,Aa(e)):[e];let u;if(c)u=n.body.split(/\.\./);else if(u=gw(n.body),u.length===1&&u[0]!==void 0&&(u=Aa(u[0],!1).map(Sj),u.length===1))return o.map(m=>n.pre+u[0]+m);let p;if(c&&u[0]!==void 0&&u[1]!==void 0){let m=Qd(u[0]),d=Qd(u[1]),f=Math.max(u[0].length,u[1].length),h=u.length===3&&u[2]!==void 0?Math.abs(Qd(u[2])):1,y=Oj;d<m&&(h*=-1,y=Pj);let b=u.some(_j);p=[];for(let v=m;y(v,d);v+=h){let x;if(a)x=String.fromCharCode(v),x==="\\"&&(x="");else if(x=String(v),b){let S=f-x.length;if(S>0){let C=new Array(S+1).join("0");v<0?x="-"+C+x.slice(1):x=C+x}}p.push(x)}}else{p=[];for(let m=0;m<u.length;m++)p.push.apply(p,Aa(u[m],!1))}for(let m=0;m<p.length;m++)for(let d=0;d<o.length;d++){let f=i+p[m]+o[d];(!t||c||f)&&r.push(f)}}return r}var Ca=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var $j={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Ra=e=>e.replace(/[[\]\\-]/g,"\\$&"),Ej=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vw=e=>e.join(""),ww=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],o=r+1,s=!1,a=!1,c=!1,l=!1,u=r,p="";e:for(;o<e.length;){let h=e.charAt(o);if((h==="!"||h==="^")&&o===r+1){l=!0,o++;continue}if(h==="]"&&s&&!c){u=o+1;break}if(s=!0,h==="\\"&&!c){c=!0,o++;continue}if(h==="["&&!c){for(let[y,[g,b,v]]of Object.entries($j))if(e.startsWith(y,o)){if(p)return["$.",!1,e.length-r,!0];o+=y.length,v?i.push(g):n.push(g),a=a||b;continue e}}if(c=!1,p){h>p?n.push(Ra(p)+"-"+Ra(h)):h===p&&n.push(Ra(h)),p="",o++;continue}if(e.startsWith("-]",o+1)){n.push(Ra(h+"-")),o+=2;continue}if(e.startsWith("-",o+1)){p=h,o+=2;continue}n.push(Ra(h)),o++}if(u<o)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!l){let h=n[0].length===2?n[0].slice(-1):n[0];return[Ej(h),!1,u-r,!1]}let m="["+(l?"^":"")+vw(n)+"]",d="["+(l?"":"^")+vw(i)+"]";return[n.length&&i.length?"("+m+"|"+d+")":n.length?m:d,a,u-r,!0]};var Jn=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Aj=new Set(["!","?","+","*","@"]),xw=e=>Aj.has(e),Cj="(?!(?:^|/)\\.\\.?(?:$|/))",Dl="(?!\\.)",Rj=new Set(["[","."]),Tj=new Set(["..","."]),Nj=new Set("().*{}+?[]^$\\!"),kj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tm="[^/]",Sw=tm+"*?",_w=tm+"+?",it,lt,xn,Le,Qe,Xn,Wi,Qn,Gr,Yi,Ta,Gi,Ow,Zn,Fl,em,Pw,Mt=class Mt{constructor(t,r,n={}){Gt(this,Gi);pw(this,"type");Gt(this,it);Gt(this,lt);Gt(this,xn,!1);Gt(this,Le,[]);Gt(this,Qe);Gt(this,Xn);Gt(this,Wi);Gt(this,Qn,!1);Gt(this,Gr);Gt(this,Yi);Gt(this,Ta,!1);this.type=t,t&&We(this,lt,!0),We(this,Qe,r),We(this,it,F(this,Qe)?F(F(this,Qe),it):this),We(this,Gr,F(this,it)===this?n:F(F(this,it),Gr)),We(this,Wi,F(this,it)===this?[]:F(F(this,it),Wi)),t==="!"&&!F(F(this,it),Qn)&&F(this,Wi).push(this),We(this,Xn,F(this,Qe)?F(F(this,Qe),Le).length:0)}get hasMagic(){if(F(this,lt)!==void 0)return F(this,lt);for(let t of F(this,Le))if(typeof t!="string"&&(t.type||t.hasMagic))return We(this,lt,!0);return F(this,lt)}toString(){return F(this,Yi)!==void 0?F(this,Yi):this.type?We(this,Yi,this.type+"("+F(this,Le).map(t=>String(t)).join("|")+")"):We(this,Yi,F(this,Le).map(t=>String(t)).join(""))}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Mt&&F(r,Qe)===this))throw new Error("invalid part: "+r);F(this,Le).push(r)}}toJSON(){var r;let t=this.type===null?F(this,Le).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...F(this,Le).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===F(this,it)||F(F(this,it),Qn)&&((r=F(this,Qe))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(F(this,it)===this)return!0;if(!((r=F(this,Qe))!=null&&r.isStart()))return!1;if(F(this,Xn)===0)return!0;let t=F(this,Qe);for(let n=0;n<F(this,Xn);n++){let i=F(t,Le)[n];if(!(i instanceof Mt&&i.type==="!"))return!1}return!0}isEnd(){var r,n,i;if(F(this,it)===this||((r=F(this,Qe))==null?void 0:r.type)==="!")return!0;if(!((n=F(this,Qe))!=null&&n.isEnd()))return!1;if(!this.type)return(i=F(this,Qe))==null?void 0:i.isEnd();let t=F(this,Qe)?F(F(this,Qe),Le).length:0;return F(this,Xn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new Mt(this.type,t);for(let n of F(this,Le))r.copyIn(n);return r}static fromGlob(t,r={}){var i;let n=new Mt(null,void 0,r);return Gn(i=Mt,Zn,Fl).call(i,t,n,0,r),n}toMMPattern(){if(this!==F(this,it))return F(this,it).toMMPattern();let t=this.toString(),[r,n,i,o]=this.toRegExpSource();if(!(i||F(this,lt)||F(this,Gr).nocase&&!F(this,Gr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let a=(F(this,Gr).nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return F(this,Gr)}toRegExpSource(t){var c;let r=t!=null?t:!!F(this,Gr).dot;if(F(this,it)===this&&Gn(this,Gi,Ow).call(this),!this.type){let l=this.isStart()&&this.isEnd(),u=F(this,Le).map(f=>{var v;let[h,y,g,b]=typeof f=="string"?Gn(v=Mt,Zn,Pw).call(v,f,F(this,lt),l):f.toRegExpSource(t);return We(this,lt,F(this,lt)||g),We(this,xn,F(this,xn)||b),h}).join(""),p="";if(this.isStart()&&typeof F(this,Le)[0]=="string"&&!(F(this,Le).length===1&&Tj.has(F(this,Le)[0]))){let h=Rj,y=r&&h.has(u.charAt(0))||u.startsWith("\\.")&&h.has(u.charAt(2))||u.startsWith("\\.\\.")&&h.has(u.charAt(4)),g=!r&&!t&&h.has(u.charAt(0));p=y?Cj:g?Dl:""}let m="";return this.isEnd()&&F(F(this,it),Qn)&&((c=F(this,Qe))==null?void 0:c.type)==="!"&&(m="(?:$|\\/)"),[p+u+m,Jn(u),We(this,lt,!!F(this,lt)),F(this,xn)]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",o=Gn(this,Gi,em).call(this,r);if(this.isStart()&&this.isEnd()&&!o&&this.type!=="!"){let l=this.toString();return We(this,Le,[l]),this.type=null,We(this,lt,void 0),[l,Jn(this.toString()),!1,!1]}let s=!n||t||r||!Dl?"":Gn(this,Gi,em).call(this,!0);s===o&&(s=""),s&&(o=`(?:${o})(?:${s})*?`);let a="";if(this.type==="!"&&F(this,Ta))a=(this.isStart()&&!r?Dl:"")+_w;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Dl:"")+Sw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&s?")":this.type==="*"&&s?")?":`)${this.type}`;a=i+o+l}return[a,Jn(o),We(this,lt,!!F(this,lt)),F(this,xn)]}};it=new WeakMap,lt=new WeakMap,xn=new WeakMap,Le=new WeakMap,Qe=new WeakMap,Xn=new WeakMap,Wi=new WeakMap,Qn=new WeakMap,Gr=new WeakMap,Yi=new WeakMap,Ta=new WeakMap,Gi=new WeakSet,Ow=function(){if(this!==F(this,it))throw new Error("should only call on root");if(F(this,Qn))return this;this.toString(),We(this,Qn,!0);let t;for(;t=F(this,Wi).pop();){if(t.type!=="!")continue;let r=t,n=F(r,Qe);for(;n;){for(let i=F(r,Xn)+1;!n.type&&i<F(n,Le).length;i++)for(let o of F(t,Le)){if(typeof o=="string")throw new Error("string part in extglob AST??");o.copyIn(F(n,Le)[i])}r=n,n=F(r,Qe)}}return this},Zn=new WeakSet,Fl=function(t,r,n,i){var d,f;let o=!1,s=!1,a=-1,c=!1;if(r.type===null){let h=n,y="";for(;h<t.length;){let g=t.charAt(h++);if(o||g==="\\"){o=!o,y+=g;continue}if(s){h===a+1?(g==="^"||g==="!")&&(c=!0):g==="]"&&!(h===a+2&&c)&&(s=!1),y+=g;continue}else if(g==="["){s=!0,a=h,c=!1,y+=g;continue}if(!i.noext&&xw(g)&&t.charAt(h)==="("){r.push(y),y="";let b=new Mt(g,r);h=Gn(d=Mt,Zn,Fl).call(d,t,b,h,i),r.push(b);continue}y+=g}return r.push(y),h}let l=n+1,u=new Mt(null,r),p=[],m="";for(;l<t.length;){let h=t.charAt(l++);if(o||h==="\\"){o=!o,m+=h;continue}if(s){l===a+1?(h==="^"||h==="!")&&(c=!0):h==="]"&&!(l===a+2&&c)&&(s=!1),m+=h;continue}else if(h==="["){s=!0,a=l,c=!1,m+=h;continue}if(xw(h)&&t.charAt(l)==="("){u.push(m),m="";let y=new Mt(h,u);u.push(y),l=Gn(f=Mt,Zn,Fl).call(f,t,y,l,i);continue}if(h==="|"){u.push(m),m="",p.push(u),u=new Mt(null,r);continue}if(h===")")return m===""&&F(r,Le).length===0&&We(r,Ta,!0),u.push(m),m="",r.push(...p,u),l;m+=h}return r.type=null,We(r,lt,void 0),We(r,Le,[t.substring(n-1)]),l},em=function(t){return F(this,Le).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,o,s]=r.toRegExpSource(t);return We(this,xn,F(this,xn)||s),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Pw=function(t,r,n=!1){let i=!1,o="",s=!1;for(let a=0;a<t.length;a++){let c=t.charAt(a);if(i){i=!1,o+=(Nj.has(c)?"\\":"")+c;continue}if(c==="\\"){a===t.length-1?o+="\\\\":i=!0;continue}if(c==="["){let[l,u,p,m]=ww(t,a);if(p){o+=l,s=s||u,a+=p-1,r=r||m;continue}}if(c==="*"){n&&t==="*"?o+=_w:o+=Sw,r=!0;continue}if(c==="?"){o+=tm,r=!0;continue}o+=kj(c)}return[o,Jn(t),!!r,s]},Gt(Mt,Zn);var Go=Mt;var rm=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var yt=(e,t,r={})=>(Ca(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Jo(t,r).match(e)),Ij=/^\*+([^+@!?\*\[\(]*)$/,qj=e=>t=>!t.startsWith(".")&&t.endsWith(e),jj=e=>t=>t.endsWith(e),Mj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Lj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Dj=/^\*+\.\*+$/,Fj=e=>!e.startsWith(".")&&e.includes("."),Bj=e=>e!=="."&&e!==".."&&e.includes("."),Uj=/^\.\*+$/,Vj=e=>e!=="."&&e!==".."&&e.startsWith("."),zj=/^\*+$/,Hj=e=>e.length!==0&&!e.startsWith("."),Kj=e=>e.length!==0&&e!=="."&&e!=="..",Wj=/^\?+([^+@!?\*\[\(]*)?$/,Yj=([e,t=""])=>{let r=Aw([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Gj=([e,t=""])=>{let r=Cw([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Jj=([e,t=""])=>{let r=Cw([e]);return t?n=>r(n)&&n.endsWith(t):r},Xj=([e,t=""])=>{let r=Aw([e]);return t?n=>r(n)&&n.endsWith(t):r},Aw=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},Cw=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Rw=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$w={win32:{sep:"\\"},posix:{sep:"/"}},Qj=Rw==="win32"?$w.win32.sep:$w.posix.sep;yt.sep=Qj;var wr=Symbol("globstar **");yt.GLOBSTAR=wr;var Zj="[^/]",e8=Zj+"*?",t8="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",r8="(?:(?!(?:\\/|^)\\.).)*?",n8=(e,t={})=>r=>yt(r,e,t);yt.filter=n8;var vr=(e,t={})=>Object.assign({},e,t),i8=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return yt;let t=yt;return Object.assign((n,i,o={})=>t(n,i,vr(e,o)),{Minimatch:class extends t.Minimatch{constructor(i,o={}){super(i,vr(e,o))}static defaults(i){return t.defaults(vr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,o,s={}){super(i,o,vr(e,s))}static fromGlob(i,o={}){return t.AST.fromGlob(i,vr(e,o))}},unescape:(n,i={})=>t.unescape(n,vr(e,i)),escape:(n,i={})=>t.escape(n,vr(e,i)),filter:(n,i={})=>t.filter(n,vr(e,i)),defaults:n=>t.defaults(vr(e,n)),makeRe:(n,i={})=>t.makeRe(n,vr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,vr(e,i)),match:(n,i,o={})=>t.match(n,i,vr(e,o)),sep:t.sep,GLOBSTAR:wr})};yt.defaults=i8;var Tw=(e,t={})=>(Ca(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:bw(e));yt.braceExpand=Tw;var o8=(e,t={})=>new Jo(e,t).makeRe();yt.makeRe=o8;var s8=(e,t,r={})=>{let n=new Jo(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};yt.match=s8;var Ew=/[?*]|[+@!]\(.*?\)|\[|\]/,a8=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Jo=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){Ca(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Rw,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((o,s,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=o[0]===""&&o[1]===""&&(o[2]==="?"||!Ew.test(o[2]))&&!Ew.test(o[3]),l=/^[a-z]:/i.test(o[0]);if(c)return[...o.slice(0,4),...o.slice(4).map(u=>this.parse(u))];if(l)return[o[0],...o.slice(1).map(u=>this.parse(u))]}return o.map(c=>this.parse(c))});if(this.debug(this.pattern,i),this.set=i.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o<this.set.length;o++){let s=this.set[o];s[0]===""&&s[1]===""&&this.globParts[o][2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3])&&(s[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let o=n[n.length-1];return i==="**"&&o==="**"?n:i===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let o=t[i];i===1&&o===""&&t[0]===""||(o==="."||o==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let s=i;for(;n[s+1]==="**";)s++;s>i&&n.splice(i+1,s-i);let a=n[i+1],c=n[i+2],l=n[i+3];if(a!==".."||!c||c==="."||c===".."||!l||l==="."||l==="..")continue;r=!0,n.splice(i,1);let u=n.slice(0);u[i]="**",t.push(u),i--}if(!this.preserveMultipleSlashes){for(let s=1;s<n.length-1;s++){let a=n[s];s===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(s,1),s--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let o=0;for(;(o=n.indexOf("..",o+1))!==-1;){let s=n[o-1];if(s&&s!=="."&&s!==".."&&s!=="**"){r=!0;let c=o===1&&n[o+1]==="**"?["."]:[];n.splice(o-1,2,...c),n.length===0&&n.push(""),o-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,o=0,s=[],a="";for(;i<t.length&&o<r.length;)if(t[i]===r[o])s.push(a==="b"?r[o]:t[i]),i++,o++;else if(n&&t[i]==="**"&&r[o]===t[i+1])s.push(t[i]),i++;else if(n&&r[o]==="**"&&t[i]===r[o+1])s.push(r[o]),o++;else if(t[i]==="*"&&r[o]&&(this.options.dot||!r[o].startsWith("."))&&r[o]!=="**"){if(a==="b")return!1;a="a",s.push(t[i]),i++,o++}else if(r[o]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="a")return!1;a="b",s.push(r[o]),i++,o++}else return!1;return t.length===r.length&&s}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=this.options;if(this.isWindows){let h=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),y=!h&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),g=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),b=!g&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),v=y?3:h?0:void 0,x=b?3:g?0:void 0;if(typeof v=="number"&&typeof x=="number"){let[S,C]=[t[v],r[x]];S.toLowerCase()===C.toLowerCase()&&(r[x]=S,x>v?r=r.slice(x):v>x&&(t=t.slice(v)))}}let{optimizationLevel:o=1}=this.options;o>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var s=0,a=0,c=t.length,l=r.length;s<c&&a<l;s++,a++){this.debug("matchOne loop");var u=r[a],p=t[s];if(this.debug(r,u,p),u===!1)return!1;if(u===wr){this.debug("GLOBSTAR",[r,u,p]);var m=s,d=a+1;if(d===l){for(this.debug("** at the end");s<c;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return!1;return!0}for(;m<c;){var f=t[m];if(this.debug(`
|
|
204
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}l.prototype.build=function(f){return this.options.preserveOrder?s(f,this.options):(Array.isArray(f)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(f={[this.options.arrayNodeName]:f}),this.j2x(f,0,[]).val)},l.prototype.j2x=function(f,h,y){let g="",b="",v=y.join(".");for(let x in f)if(Object.prototype.hasOwnProperty.call(f,x))if(typeof f[x]>"u")this.isAttribute(x)&&(b+="");else if(f[x]===null)this.isAttribute(x)?b+="":x[0]==="?"?b+=this.indentate(h)+"<"+x+"?"+this.tagEndChar:b+=this.indentate(h)+"<"+x+"/"+this.tagEndChar;else if(f[x]instanceof Date)b+=this.buildTextValNode(f[x],x,"",h);else if(typeof f[x]!="object"){let S=this.isAttribute(x);if(S&&!this.ignoreAttributesFn(S,v))g+=this.buildAttrPairStr(S,""+f[x]);else if(!S)if(x===this.options.textNodeName){let C=this.options.tagValueProcessor(x,""+f[x]);b+=this.replaceEntitiesValue(C)}else b+=this.buildTextValNode(f[x],x,"",h)}else if(Array.isArray(f[x])){let S=f[x].length,C="",_="";for(let $=0;$<S;$++){let E=f[x][$];if(!(typeof E>"u"))if(E===null)x[0]==="?"?b+=this.indentate(h)+"<"+x+"?"+this.tagEndChar:b+=this.indentate(h)+"<"+x+"/"+this.tagEndChar;else if(typeof E=="object")if(this.options.oneListGroup){let q=this.j2x(E,h+1,y.concat(x));C+=q.val,this.options.attributesGroupName&&E.hasOwnProperty(this.options.attributesGroupName)&&(_+=q.attrStr)}else C+=this.processTextOrObjNode(E,x,h,y);else if(this.options.oneListGroup){let q=this.options.tagValueProcessor(x,E);q=this.replaceEntitiesValue(q),C+=q}else C+=this.buildTextValNode(E,x,"",h)}this.options.oneListGroup&&(C=this.buildObjectNode(C,x,_,h)),b+=C}else if(this.options.attributesGroupName&&x===this.options.attributesGroupName){let S=Object.keys(f[x]),C=S.length;for(let _=0;_<C;_++)g+=this.buildAttrPairStr(S[_],""+f[x][S[_]])}else b+=this.processTextOrObjNode(f[x],x,h,y);return{attrStr:g,val:b}},l.prototype.buildAttrPairStr=function(f,h){return h=this.options.attributeValueProcessor(f,""+h),h=this.replaceEntitiesValue(h),this.options.suppressBooleanAttributes&&h==="true"?" "+f:" "+f+'="'+h+'"'};function u(f,h,y,g){let b=this.j2x(f,y+1,g.concat(h));return f[this.options.textNodeName]!==void 0&&Object.keys(f).length===1?this.buildTextValNode(f[this.options.textNodeName],h,b.attrStr,y):this.buildObjectNode(b.val,h,b.attrStr,y)}l.prototype.buildObjectNode=function(f,h,y,g){if(f==="")return h[0]==="?"?this.indentate(g)+"<"+h+y+"?"+this.tagEndChar:this.indentate(g)+"<"+h+y+this.closeTag(h)+this.tagEndChar;{let b="</"+h+this.tagEndChar,v="";return h[0]==="?"&&(v="?",b=""),(y||y==="")&&f.indexOf("<")===-1?this.indentate(g)+"<"+h+y+v+">"+f+b:this.options.commentPropName!==!1&&h===this.options.commentPropName&&v.length===0?this.indentate(g)+`<!--${f}-->`+this.newLine:this.indentate(g)+"<"+h+y+v+this.tagEndChar+f+this.indentate(g)+b}},l.prototype.closeTag=function(f){let h="";return this.options.unpairedTags.indexOf(f)!==-1?this.options.suppressUnpairedNode||(h="/"):this.options.suppressEmptyNode?h="/":h=`></${f}`,h};function p(f,h,y,g){return f!==""?this.buildObjectNode(f,h,y,g):h[0]==="?"?this.indentate(g)+"<"+h+y+"?"+this.tagEndChar:this.indentate(g)+"<"+h+y+"/"+this.tagEndChar}l.prototype.buildTextValNode=function(f,h,y,g){if(this.options.cdataPropName!==!1&&h===this.options.cdataPropName)return this.indentate(g)+`<![CDATA[${f}]]>`+this.newLine;if(this.options.commentPropName!==!1&&h===this.options.commentPropName)return this.indentate(g)+`<!--${f}-->`+this.newLine;if(h[0]==="?")return this.indentate(g)+"<"+h+y+"?"+this.tagEndChar;{let b=this.options.tagValueProcessor(h,f);return b=this.replaceEntitiesValue(b),b===""?this.indentate(g)+"<"+h+y+this.closeTag(h)+this.tagEndChar:this.indentate(g)+"<"+h+y+">"+b+"</"+h+this.tagEndChar}},l.prototype.replaceEntitiesValue=function(f){if(f&&f.length>0&&this.options.processEntities)for(let h=0;h<this.options.entities.length;h++){let y=this.options.entities[h];f=f.replace(y.regex,y.val)}return f};function m(f){return this.options.indentBy.repeat(f)}function d(f){return f.startsWith(this.options.attributeNamePrefix)&&f!==this.options.textNodeName?f.substr(this.attrPrefixLen):!1}i.exports=l},{"../ignoreAttributes":2,"./orderedJs2Xml":6}],6:[function(n,i,o){function a(d,f){let h="";return f.format&&f.indentBy.length>0&&(h=`
|
|
205
|
+
`),c(d,f,"",h)}function c(d,f,h,y){let g="",b=!1;for(let v=0;v<d.length;v++){let x=d[v],S=l(x);if(S===void 0)continue;let C="";if(h.length===0?C=S:C=`${h}.${S}`,S===f.textNodeName){let O=x[S];p(C,f)||(O=f.tagValueProcessor(S,O),O=m(O,f)),b&&(g+=y),g+=O,b=!1;continue}else if(S===f.cdataPropName){b&&(g+=y),g+=`<![CDATA[${x[S][0][f.textNodeName]}]]>`,b=!1;continue}else if(S===f.commentPropName){g+=y+`<!--${x[S][0][f.textNodeName]}-->`,b=!0;continue}else if(S[0]==="?"){let O=u(x[":@"],f),P=S==="?xml"?"":y,N=x[S][0][f.textNodeName];N=N.length!==0?" "+N:"",g+=P+`<${S}${N}${O}?>`,b=!0;continue}let _=y;_!==""&&(_+=f.indentBy);let $=u(x[":@"],f),E=y+`<${S}${$}`,q=c(x[S],f,C,_);f.unpairedTags.indexOf(S)!==-1?f.suppressUnpairedNode?g+=E+">":g+=E+"/>":(!q||q.length===0)&&f.suppressEmptyNode?g+=E+"/>":q&&q.endsWith(">")?g+=E+`>${q}${y}</${S}>`:(g+=E+">",q&&y!==""&&(q.includes("/>")||q.includes("</"))?g+=y+f.indentBy+q+y:g+=q,g+=`</${S}>`),b=!0}return g}function l(d){let f=Object.keys(d);for(let h=0;h<f.length;h++){let y=f[h];if(d.hasOwnProperty(y)&&y!==":@")return y}}function u(d,f){let h="";if(d&&!f.ignoreAttributes)for(let y in d){if(!d.hasOwnProperty(y))continue;let g=f.attributeValueProcessor(y,d[y]);g=m(g,f),g===!0&&f.suppressBooleanAttributes?h+=` ${y.substr(f.attributeNamePrefix.length)}`:h+=` ${y.substr(f.attributeNamePrefix.length)}="${g}"`}return h}function p(d,f){d=d.substr(0,d.length-f.textNodeName.length-1);let h=d.substr(d.lastIndexOf(".")+1);for(let y in f.stopNodes)if(f.stopNodes[y]===d||f.stopNodes[y]==="*."+h)return!0;return!1}function m(d,f){if(d&&d.length>0&&f.processEntities)for(let h=0;h<f.entities.length;h++){let y=f.entities[h];d=d.replace(y.regex,y.val)}return d}i.exports=a},{}],7:[function(n,i,o){let s=n("../util");function a(h,y){let g={};if(h[y+3]==="O"&&h[y+4]==="C"&&h[y+5]==="T"&&h[y+6]==="Y"&&h[y+7]==="P"&&h[y+8]==="E"){y=y+9;let b=1,v=!1,x=!1,S="";for(;y<h.length;y++)if(h[y]==="<"&&!x){if(v&&u(h,y))y+=7,[entityName,val,y]=c(h,y+1),val.indexOf("&")===-1&&(g[f(entityName)]={regx:RegExp(`&${entityName};`,"g"),val});else if(v&&p(h,y))y+=8;else if(v&&m(h,y))y+=8;else if(v&&d(h,y))y+=9;else if(l)x=!0;else throw new Error("Invalid DOCTYPE");b++,S=""}else if(h[y]===">"){if(x?h[y-1]==="-"&&h[y-2]==="-"&&(x=!1,b--):b--,b===0)break}else h[y]==="["?v=!0:S+=h[y];if(b!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:g,i:y}}function c(h,y){let g="";for(;y<h.length&&h[y]!=="'"&&h[y]!=='"';y++)g+=h[y];if(g=g.trim(),g.indexOf(" ")!==-1)throw new Error("External entites are not supported");let b=h[y++],v="";for(;y<h.length&&h[y]!==b;y++)v+=h[y];return[g,v,y]}function l(h,y){return h[y+1]==="!"&&h[y+2]==="-"&&h[y+3]==="-"}function u(h,y){return h[y+1]==="!"&&h[y+2]==="E"&&h[y+3]==="N"&&h[y+4]==="T"&&h[y+5]==="I"&&h[y+6]==="T"&&h[y+7]==="Y"}function p(h,y){return h[y+1]==="!"&&h[y+2]==="E"&&h[y+3]==="L"&&h[y+4]==="E"&&h[y+5]==="M"&&h[y+6]==="E"&&h[y+7]==="N"&&h[y+8]==="T"}function m(h,y){return h[y+1]==="!"&&h[y+2]==="A"&&h[y+3]==="T"&&h[y+4]==="T"&&h[y+5]==="L"&&h[y+6]==="I"&&h[y+7]==="S"&&h[y+8]==="T"}function d(h,y){return h[y+1]==="!"&&h[y+2]==="N"&&h[y+3]==="O"&&h[y+4]==="T"&&h[y+5]==="A"&&h[y+6]==="T"&&h[y+7]==="I"&&h[y+8]==="O"&&h[y+9]==="N"}function f(h){if(s.isName(h))return h;throw new Error(`Invalid entity name ${h}`)}i.exports=a},{"../util":3}],8:[function(n,i,o){let s={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(c,l){return l},attributeValueProcessor:function(c,l){return l},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(c,l,u){return c}},a=function(c){return Object.assign({},s,c)};o.buildOptions=a,o.defaultOptions=s},{}],9:[function(n,i,o){"use strict";let s=n("../util"),a=n("./xmlNode"),c=n("./DocTypeReader"),l=n("strnum"),u=n("../ignoreAttributes");class p{constructor(P){this.options=P,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"\xA2"},pound:{regex:/&(pound|#163);/g,val:"\xA3"},yen:{regex:/&(yen|#165);/g,val:"\xA5"},euro:{regex:/&(euro|#8364);/g,val:"\u20AC"},copyright:{regex:/&(copy|#169);/g,val:"\xA9"},reg:{regex:/&(reg|#174);/g,val:"\xAE"},inr:{regex:/&(inr|#8377);/g,val:"\u20B9"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(N,D)=>String.fromCharCode(Number.parseInt(D,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(N,D)=>String.fromCharCode(Number.parseInt(D,16))}},this.addExternalEntities=m,this.parseXml=g,this.parseTextData=d,this.resolveNameSpace=f,this.buildAttributesMap=y,this.isItStopNode=S,this.replaceEntitiesValue=v,this.readStopNodeData=E,this.saveTextToParentTag=x,this.addChild=b,this.ignoreAttributesFn=u(this.options.ignoreAttributes)}}function m(O){let P=Object.keys(O);for(let N=0;N<P.length;N++){let D=P[N];this.lastEntities[D]={regex:new RegExp("&"+D+";","g"),val:O[D]}}}function d(O,P,N,D,j,I,B){if(O!==void 0&&(this.options.trimValues&&!D&&(O=O.trim()),O.length>0)){B||(O=this.replaceEntitiesValue(O));let k=this.options.tagValueProcessor(P,O,N,j,I);return k==null?O:typeof k!=typeof O||k!==O?k:this.options.trimValues?q(O,this.options.parseTagValue,this.options.numberParseOptions):O.trim()===O?q(O,this.options.parseTagValue,this.options.numberParseOptions):O}}function f(O){if(this.options.removeNSPrefix){let P=O.split(":"),N=O.charAt(0)==="/"?"/":"";if(P[0]==="xmlns")return"";P.length===2&&(O=N+P[1])}return O}let h=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function y(O,P,N){if(this.options.ignoreAttributes!==!0&&typeof O=="string"){let D=s.getAllMatches(O,h),j=D.length,I={};for(let B=0;B<j;B++){let k=this.resolveNameSpace(D[B][1]);if(this.ignoreAttributesFn(k,P))continue;let T=D[B][4],z=this.options.attributeNamePrefix+k;if(k.length)if(this.options.transformAttributeName&&(z=this.options.transformAttributeName(z)),z==="__proto__"&&(z="#__proto__"),T!==void 0){this.options.trimValues&&(T=T.trim()),T=this.replaceEntitiesValue(T);let U=this.options.attributeValueProcessor(k,T,P);U==null?I[z]=T:typeof U!=typeof T||U!==T?I[z]=U:I[z]=q(T,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(I[z]=!0)}if(!Object.keys(I).length)return;if(this.options.attributesGroupName){let B={};return B[this.options.attributesGroupName]=I,B}return I}}let g=function(O){O=O.replace(/\r\n?/g,`
|
|
206
|
+
`);let P=new a("!xml"),N=P,D="",j="";for(let I=0;I<O.length;I++)if(O[I]==="<")if(O[I+1]==="/"){let k=_(O,">",I,"Closing Tag is not closed."),T=O.substring(I+2,k).trim();if(this.options.removeNSPrefix){let re=T.indexOf(":");re!==-1&&(T=T.substr(re+1))}this.options.transformTagName&&(T=this.options.transformTagName(T)),N&&(D=this.saveTextToParentTag(D,N,j));let z=j.substring(j.lastIndexOf(".")+1);if(T&&this.options.unpairedTags.indexOf(T)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${T}>`);let U=0;z&&this.options.unpairedTags.indexOf(z)!==-1?(U=j.lastIndexOf(".",j.lastIndexOf(".")-1),this.tagsNodeStack.pop()):U=j.lastIndexOf("."),j=j.substring(0,U),N=this.tagsNodeStack.pop(),D="",I=k}else if(O[I+1]==="?"){let k=$(O,I,!1,"?>");if(!k)throw new Error("Pi Tag is not closed.");if(D=this.saveTextToParentTag(D,N,j),!(this.options.ignoreDeclaration&&k.tagName==="?xml"||this.options.ignorePiTags)){let T=new a(k.tagName);T.add(this.options.textNodeName,""),k.tagName!==k.tagExp&&k.attrExpPresent&&(T[":@"]=this.buildAttributesMap(k.tagExp,j,k.tagName)),this.addChild(N,T,j)}I=k.closeIndex+1}else if(O.substr(I+1,3)==="!--"){let k=_(O,"-->",I+4,"Comment is not closed.");if(this.options.commentPropName){let T=O.substring(I+4,k-2);D=this.saveTextToParentTag(D,N,j),N.add(this.options.commentPropName,[{[this.options.textNodeName]:T}])}I=k}else if(O.substr(I+1,2)==="!D"){let k=c(O,I);this.docTypeEntities=k.entities,I=k.i}else if(O.substr(I+1,2)==="!["){let k=_(O,"]]>",I,"CDATA is not closed.")-2,T=O.substring(I+9,k);D=this.saveTextToParentTag(D,N,j);let z=this.parseTextData(T,N.tagname,j,!0,!1,!0,!0);z==null&&(z=""),this.options.cdataPropName?N.add(this.options.cdataPropName,[{[this.options.textNodeName]:T}]):N.add(this.options.textNodeName,z),I=k+2}else{let k=$(O,I,this.options.removeNSPrefix),T=k.tagName,z=k.rawTagName,U=k.tagExp,re=k.attrExpPresent,he=k.closeIndex;this.options.transformTagName&&(T=this.options.transformTagName(T)),N&&D&&N.tagname!=="!xml"&&(D=this.saveTextToParentTag(D,N,j,!1));let Ke=N;if(Ke&&this.options.unpairedTags.indexOf(Ke.tagname)!==-1&&(N=this.tagsNodeStack.pop(),j=j.substring(0,j.lastIndexOf("."))),T!==P.tagname&&(j+=j?"."+T:T),this.isItStopNode(this.options.stopNodes,j,T)){let ke="";if(U.length>0&&U.lastIndexOf("/")===U.length-1)T[T.length-1]==="/"?(T=T.substr(0,T.length-1),j=j.substr(0,j.length-1),U=T):U=U.substr(0,U.length-1),I=k.closeIndex;else if(this.options.unpairedTags.indexOf(T)!==-1)I=k.closeIndex;else{let ye=this.readStopNodeData(O,z,he+1);if(!ye)throw new Error(`Unexpected end of ${z}`);I=ye.i,ke=ye.tagContent}let J=new a(T);T!==U&&re&&(J[":@"]=this.buildAttributesMap(U,j,T)),ke&&(ke=this.parseTextData(ke,T,j,!0,re,!0,!0)),j=j.substr(0,j.lastIndexOf(".")),J.add(this.options.textNodeName,ke),this.addChild(N,J,j)}else{if(U.length>0&&U.lastIndexOf("/")===U.length-1){T[T.length-1]==="/"?(T=T.substr(0,T.length-1),j=j.substr(0,j.length-1),U=T):U=U.substr(0,U.length-1),this.options.transformTagName&&(T=this.options.transformTagName(T));let ke=new a(T);T!==U&&re&&(ke[":@"]=this.buildAttributesMap(U,j,T)),this.addChild(N,ke,j),j=j.substr(0,j.lastIndexOf("."))}else{let ke=new a(T);this.tagsNodeStack.push(N),T!==U&&re&&(ke[":@"]=this.buildAttributesMap(U,j,T)),this.addChild(N,ke,j),N=ke}D="",I=he}}else D+=O[I];return P.child};function b(O,P,N){let D=this.options.updateTag(P.tagname,N,P[":@"]);D===!1||(typeof D=="string"&&(P.tagname=D),O.addChild(P))}let v=function(O){if(this.options.processEntities){for(let P in this.docTypeEntities){let N=this.docTypeEntities[P];O=O.replace(N.regx,N.val)}for(let P in this.lastEntities){let N=this.lastEntities[P];O=O.replace(N.regex,N.val)}if(this.options.htmlEntities)for(let P in this.htmlEntities){let N=this.htmlEntities[P];O=O.replace(N.regex,N.val)}O=O.replace(this.ampEntity.regex,this.ampEntity.val)}return O};function x(O,P,N,D){return O&&(D===void 0&&(D=Object.keys(P.child).length===0),O=this.parseTextData(O,P.tagname,N,!1,P[":@"]?Object.keys(P[":@"]).length!==0:!1,D),O!==void 0&&O!==""&&P.add(this.options.textNodeName,O),O=""),O}function S(O,P,N){let D="*."+N;for(let j in O){let I=O[j];if(D===I||P===I)return!0}return!1}function C(O,P,N=">"){let D,j="";for(let I=P;I<O.length;I++){let B=O[I];if(D)B===D&&(D="");else if(B==='"'||B==="'")D=B;else if(B===N[0])if(N[1]){if(O[I+1]===N[1])return{data:j,index:I}}else return{data:j,index:I};else B===" "&&(B=" ");j+=B}}function _(O,P,N,D){let j=O.indexOf(P,N);if(j===-1)throw new Error(D);return j+P.length-1}function $(O,P,N,D=">"){let j=C(O,P+1,D);if(!j)return;let I=j.data,B=j.index,k=I.search(/\s/),T=I,z=!0;k!==-1&&(T=I.substring(0,k),I=I.substring(k+1).trimStart());let U=T;if(N){let re=T.indexOf(":");re!==-1&&(T=T.substr(re+1),z=T!==j.data.substr(re+1))}return{tagName:T,tagExp:I,closeIndex:B,attrExpPresent:z,rawTagName:U}}function E(O,P,N){let D=N,j=1;for(;N<O.length;N++)if(O[N]==="<")if(O[N+1]==="/"){let I=_(O,">",N,`${P} is not closed`);if(O.substring(N+2,I).trim()===P&&(j--,j===0))return{tagContent:O.substring(D,N),i:I};N=I}else if(O[N+1]==="?")N=_(O,"?>",N+1,"StopNode is not closed.");else if(O.substr(N+1,3)==="!--")N=_(O,"-->",N+3,"StopNode is not closed.");else if(O.substr(N+1,2)==="![")N=_(O,"]]>",N,"StopNode is not closed.")-2;else{let I=$(O,N,">");I&&((I&&I.tagName)===P&&I.tagExp[I.tagExp.length-1]!=="/"&&j++,N=I.closeIndex)}}function q(O,P,N){if(P&&typeof O=="string"){let D=O.trim();return D==="true"?!0:D==="false"?!1:l(O,N)}else return s.isExist(O)?O:""}i.exports=p},{"../ignoreAttributes":2,"../util":3,"./DocTypeReader":7,"./xmlNode":12,strnum:15}],10:[function(n,i,o){let{buildOptions:s}=n("./OptionsBuilder"),a=n("./OrderedObjParser"),{prettify:c}=n("./node2json"),l=n("../validator");class u{constructor(m){this.externalEntities={},this.options=s(m)}parse(m,d){if(typeof m!="string")if(m.toString)m=m.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(d){d===!0&&(d={});let y=l.validate(m,d);if(y!==!0)throw Error(`${y.err.msg}:${y.err.line}:${y.err.col}`)}let f=new a(this.options);f.addExternalEntities(this.externalEntities);let h=f.parseXml(m);return this.options.preserveOrder||h===void 0?h:c(h,this.options)}addEntity(m,d){if(d.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(m.indexOf("&")!==-1||m.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '
'");if(d==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[m]=d}}i.exports=u},{"../validator":4,"./OptionsBuilder":8,"./OrderedObjParser":9,"./node2json":11}],11:[function(n,i,o){"use strict";function s(p,m){return a(p,m)}function a(p,m,d){let f,h={};for(let y=0;y<p.length;y++){let g=p[y],b=c(g),v="";if(d===void 0?v=b:v=d+"."+b,b===m.textNodeName)f===void 0?f=g[b]:f+=""+g[b];else{if(b===void 0)continue;if(g[b]){let x=a(g[b],m,v),S=u(x,m);g[":@"]?l(x,g[":@"],v,m):Object.keys(x).length===1&&x[m.textNodeName]!==void 0&&!m.alwaysCreateTextNode?x=x[m.textNodeName]:Object.keys(x).length===0&&(m.alwaysCreateTextNode?x[m.textNodeName]="":x=""),h[b]!==void 0&&h.hasOwnProperty(b)?(Array.isArray(h[b])||(h[b]=[h[b]]),h[b].push(x)):m.isArray(b,v,S)?h[b]=[x]:h[b]=x}}}return typeof f=="string"?f.length>0&&(h[m.textNodeName]=f):f!==void 0&&(h[m.textNodeName]=f),h}function c(p){let m=Object.keys(p);for(let d=0;d<m.length;d++){let f=m[d];if(f!==":@")return f}}function l(p,m,d,f){if(m){let h=Object.keys(m),y=h.length;for(let g=0;g<y;g++){let b=h[g];f.isArray(b,d+"."+b,!0,!0)?p[b]=[m[b]]:p[b]=m[b]}}}function u(p,m){let{textNodeName:d}=m,f=Object.keys(p).length;return!!(f===0||f===1&&(p[d]||typeof p[d]=="boolean"||p[d]===0))}o.prettify=s},{}],12:[function(n,i,o){"use strict";class s{constructor(c){this.tagname=c,this.child=[],this[":@"]={}}add(c,l){c==="__proto__"&&(c="#__proto__"),this.child.push({[c]:l})}addChild(c){c.tagname==="__proto__"&&(c.tagname="#__proto__"),c[":@"]&&Object.keys(c[":@"]).length>0?this.child.push({[c.tagname]:c.child,":@":c[":@"]}):this.child.push({[c.tagname]:c.child})}}i.exports=s},{}],13:[function(n,i,o){var s=Object.prototype.hasOwnProperty,a=Object.prototype.toString;i.exports=function(l,u,p){if(a.call(u)!=="[object Function]")throw new TypeError("iterator must be a function");var m=l.length;if(m===+m)for(var d=0;d<m;d++)u.call(p,l[d],d,l);else for(var f in l)s.call(l,f)&&u.call(p,l[f],f,l)}},{}],14:[function(n,i,o){"use strict";var s=n("foreach");i.exports=a;function a(c,l,u){if(arguments.length===3)return a.set(c,l,u);if(arguments.length===2)return a.get(c,l);var p=a.bind(a,c);for(var m in a)a.hasOwnProperty(m)&&(p[m]=a[m].bind(p,c));return p}a.get=function(l,u){for(var p=Array.isArray(u)?u:a.parse(u),m=0;m<p.length;++m){var d=p[m];if(!(typeof l=="object"&&d in l))throw new Error("Invalid reference token: "+d);l=l[d]}return l},a.set=function(l,u,p){var m=Array.isArray(u)?u:a.parse(u),d=m[0];if(m.length===0)throw Error("Can not set the root object");for(var f=0;f<m.length-1;++f){var h=m[f];typeof h!="string"&&typeof h!="number"&&(h=String(h)),!(h==="__proto__"||h==="constructor"||h==="prototype")&&(h==="-"&&Array.isArray(l)&&(h=l.length),d=m[f+1],h in l||(d.match(/^(\d+|-)$/)?l[h]=[]:l[h]={}),l=l[h])}return d==="-"&&Array.isArray(l)&&(d=l.length),l[d]=p,this},a.remove=function(c,l){var u=Array.isArray(l)?l:a.parse(l),p=u[u.length-1];if(p===void 0)throw new Error('Invalid JSON pointer for remove: "'+l+'"');var m=a.get(c,u.slice(0,-1));if(Array.isArray(m)){var d=+p;if(p===""&&isNaN(d))throw new Error('Invalid array index: "'+p+'"');Array.prototype.splice.call(m,d,1)}else delete m[p]},a.dict=function(l,u){var p={};return a.walk(l,function(m,d){p[d]=m},u),p},a.walk=function(l,u,p){var m=[];p=p||function(d){var f=Object.prototype.toString.call(d);return f==="[object Object]"||f==="[object Array]"},(function d(f){s(f,function(h,y){m.push(String(y)),p(h)?d(h):u(h,a.compile(m)),m.pop()})})(l)},a.has=function(l,u){try{a.get(l,u)}catch{return!1}return!0},a.escape=function(l){return l.toString().replace(/~/g,"~0").replace(/\//g,"~1")},a.unescape=function(l){return l.replace(/~1/g,"/").replace(/~0/g,"~")},a.parse=function(l){if(l==="")return[];if(l.charAt(0)!=="/")throw new Error("Invalid JSON pointer: "+l);return l.substring(1).split(/\//).map(a.unescape)},a.compile=function(l){return l.length===0?"":"/"+l.map(a.escape).join("/")}},{foreach:13}],15:[function(n,i,o){let s=/^[-+]?0x[a-fA-F0-9]+$/,a=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let c={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function l(p,m={}){if(m=Object.assign({},c,m),!p||typeof p!="string")return p;let d=p.trim();if(m.skipLike!==void 0&&m.skipLike.test(d))return p;if(m.hex&&s.test(d))return Number.parseInt(d,16);{let f=a.exec(d);if(f){let h=f[1],y=f[2],g=u(f[3]),b=f[4]||f[6];if(!m.leadingZeros&&y.length>0&&h&&d[2]!==".")return p;if(!m.leadingZeros&&y.length>0&&!h&&d[1]!==".")return p;{let v=Number(d),x=""+v;return x.search(/[eE]/)!==-1||b?m.eNotation?v:p:d.indexOf(".")!==-1?x==="0"&&g===""||x===g||h&&x==="-"+g?v:p:y?g===x||h+g===x?v:p:d===x||d===h+x?v:p}}else return p}}function u(p){return p&&p.indexOf(".")!==-1&&(p=p.replace(/0+$/,""),p==="."?p="0":p[0]==="."?p="0"+p:p[p.length-1]==="."&&(p=p.substr(0,p.length-1))),p}i.exports=l},{}],16:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.allOfSample=c;var s=n("./traverse"),a=n("./utils");function c(l,u,p,m,d){let f=(0,s.traverse)(l,p,m),h=[];for(let y of u){let{type:g,readOnly:b,writeOnly:v,value:x}=(0,s.traverse)({type:f.type,...y},p,m,d);f.type&&g&&g!==f.type&&(console.warn("allOf: schemas with different types can't be merged"),f.type=g),f.type=f.type||g,f.readOnly=f.readOnly||b,f.writeOnly=f.writeOnly||v,x!=null&&h.push(x)}if(f.type==="object")return f.value=(0,a.mergeDeep)(f.value||{},...h.filter(y=>typeof y=="object")),f;{f.type==="array"&&(p.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));let y=h[h.length-1];return f.value=y!=null?y:f.value,f}}},{"./traverse":26,"./utils":27}],17:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.inferType=a;let s={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function a(c){if(c.type!==void 0)return Array.isArray(c.type)?c.type.length===0?null:c.type[0]:c.type;let l=Object.keys(s);for(var u=0;u<l.length;u++){let p=l[u],m=s[p];if(c[p]!==void 0)return m}return null}},{}],18:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o._registerSampler=f,o._samplers=void 0,Object.defineProperty(o,"inferType",{enumerable:!0,get:function(){return l.inferType}}),o.sample=d;var s=n("./traverse"),a=n("./samplers/index"),c=n("fast-xml-parser"),l=n("./infer"),u=o._samplers={};let p={skipReadOnly:!1,maxSampleDepth:15};function m(h,y){var b;if(!h)throw new Error("Unknown format output for building XML.");return(Array.isArray(h)||Object.keys(h).length>1)&&(h={[((b=y==null?void 0:y.xml)==null?void 0:b.name)||"root"]:h}),new c.XMLBuilder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text"}).build(h)}function d(h,y,g){let b=Object.assign({},p,y);(0,s.clearCache)();let v=(0,s.traverse)(h,b,g).value;return(b==null?void 0:b.format)==="xml"?m(v,h):v}function f(h,y){u[h]=y}f("array",a.sampleArray),f("boolean",a.sampleBoolean),f("integer",a.sampleNumber),f("number",a.sampleNumber),f("object",a.sampleObject),f("string",a.sampleString)},{"./infer":17,"./samplers/index":21,"./traverse":26,"fast-xml-parser":1}],19:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleArray=c;var s=n("../traverse"),a=n("../utils");function c(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2?arguments[2]:void 0,m=arguments.length>3?arguments[3]:void 0,d=m&&m.depth||1,f=Math.min(l.maxItems!=null?l.maxItems:1/0,l.minItems||1),h=l.prefixItems||l.items||l.contains;Array.isArray(h)&&(f=Math.max(f,h.length));let y=b=>Array.isArray(h)?h[b]||{}:h||{},g=[];if(!h)return g;for(let b=0;b<f;b++){let v=y(b),{value:x}=(0,s.traverse)(v,u,p,{depth:d+1});if((u==null?void 0:u.format)==="xml"){let{value:S,propertyName:C}=(0,a.applyXMLAttributes)({value:x},v,m);C?(g!=null&&g[C]||(g={...g,[C]:[]}),g[C].push(S)):g={...g,...S}}else g.push(x)}if((u==null?void 0:u.format)==="xml"&&d===1){let{value:b,propertyName:v}=(0,a.applyXMLAttributes)({value:null},l,m);v&&(b?g=Array.isArray(g)?{[v]:{...b,...g.map(x=>({"#text":{...x}}))}}:{[v]:{...g,...b}}:g={[v]:g})}return g}},{"../traverse":26,"../utils":27}],20:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleBoolean=s;function s(a){return!0}},{}],21:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),Object.defineProperty(o,"sampleArray",{enumerable:!0,get:function(){return s.sampleArray}}),Object.defineProperty(o,"sampleBoolean",{enumerable:!0,get:function(){return a.sampleBoolean}}),Object.defineProperty(o,"sampleNumber",{enumerable:!0,get:function(){return c.sampleNumber}}),Object.defineProperty(o,"sampleObject",{enumerable:!0,get:function(){return l.sampleObject}}),Object.defineProperty(o,"sampleString",{enumerable:!0,get:function(){return u.sampleString}});var s=n("./array"),a=n("./boolean"),c=n("./number"),l=n("./object"),u=n("./string")},{"./array":19,"./boolean":20,"./number":22,"./object":23,"./string":25}],22:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleNumber=s;function s(a){let c=0;if(a.type==="number"&&(a.format==="float"||a.format==="double")&&(c=.1),typeof a.exclusiveMinimum=="boolean"||typeof a.exclusiveMaximum=="boolean"){if(a.maximum&&a.minimum)return c=a.exclusiveMinimum?Math.floor(a.minimum)+1:a.minimum,(a.exclusiveMaximum&&c>=a.maximum||!a.exclusiveMaximum&&c>a.maximum)&&(c=(a.maximum+a.minimum)/2),c;if(a.minimum)return a.exclusiveMinimum?Math.floor(a.minimum)+1:a.minimum;if(a.maximum)return a.exclusiveMaximum?a.maximum>0?0:Math.floor(a.maximum)-1:a.maximum>0?0:a.maximum}else{if(a.minimum)return a.minimum;a.exclusiveMinimum?(c=Math.floor(a.exclusiveMinimum)+1,c===a.exclusiveMaximum&&(c=(c+Math.floor(a.exclusiveMaximum)-1)/2)):a.exclusiveMaximum?c=Math.floor(a.exclusiveMaximum)-1:a.maximum&&(c=a.maximum)}return c}},{}],23:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleObject=c;var s=n("../traverse"),a=n("../utils");function c(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},p=arguments.length>2?arguments[2]:void 0,m=arguments.length>3?arguments[3]:void 0,d={},f=m&&m.depth||1;if(l&&typeof l.properties=="object"){let h=Array.isArray(l.required)?l.required:[],y={};for(let g of h)y[g]=!0;Object.keys(l.properties).forEach(g=>{if(u.skipNonRequired&&!y.hasOwnProperty(g))return;let b=(0,s.traverse)(l.properties[g],u,p,{propertyName:g,depth:f+1});if(!(u.skipReadOnly&&b.readOnly)&&!(u.skipWriteOnly&&b.writeOnly))if((u==null?void 0:u.format)==="xml"){let{propertyName:v,value:x}=(0,a.applyXMLAttributes)(b,l.properties[g],{propertyName:g});v?d[v]=x:d={...d,...x}}else d[g]=b.value})}if(l&&typeof l.additionalProperties=="object"){let h=l.additionalProperties["x-additionalPropertiesName"]||"property";d[`${String(h)}1`]=(0,s.traverse)(l.additionalProperties,u,p,{depth:f+1}).value,d[`${String(h)}2`]=(0,s.traverse)(l.additionalProperties,u,p,{depth:f+1}).value}if(l&&typeof l.properties=="object"&&l.maxProperties!==void 0&&Object.keys(d).length>l.maxProperties){let h={},y=0;(Array.isArray(l.required)?l.required:[]).forEach(b=>{d[b]!==void 0&&(h[b]=d[b],y++)}),Object.keys(d).forEach(b=>{y<l.maxProperties&&!h.hasOwnProperty(b)&&(h[b]=d[b],y++)}),d=h}return d}},{"../traverse":26,"../utils":27}],24:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.regexSample=l;function s(){return!0}function a(u,p){return u}function c(u,p,m){let d=1;if(u)switch(u){case"?":{d=s()?0:1;break}case"*":{d=a(0,8);break}case"+":{d=a(1,8);break}default:throw new Error("Unknown quantifier symbol provided.")}else p!=null&&m!=null?d=a(parseInt(p),parseInt(m)):p!=null&&m==null&&(d=parseInt(p));return d}function l(u){var S,C;let p=!1;u instanceof RegExp&&(p=u.flags.includes("i"),u=u.toString(),u=(C=(S=u.match(/\/(.+?)\//))==null?void 0:S[1])!=null?C:"");let m,d,f,h=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/,y=u.match(h);for(;y!=null;){let _=y[2],$=y[3],E=y[4];f=c(E,_,$),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(h)}let g=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,b=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(y=u.match(b);y!=null;){let _=y[1]==="^",$=y[2]==="-",E=y[4],q=y[5],O=y[6],P=[],N=y[3],D=N.match(g);for($&&P.push(45);D!=null;){if(D[0].indexOf("-")===-1)p&&isNaN(Number(D[0]))?(P.push(D[0].toUpperCase().charCodeAt(0)),P.push(D[0].toLowerCase().charCodeAt(0))):P.push(D[0].charCodeAt(0));else{let I=D[0].split("-").map(B=>B.charCodeAt(0));if(m=I[0],d=I[1],m>d)throw new Error("Character range provided is out of order.");for(let B=m;B<=d;B++)if(p&&isNaN(Number(String.fromCharCode(B)))){let k=String.fromCharCode(B);P.push(k.toUpperCase().charCodeAt(0)),P.push(k.toLowerCase().charCodeAt(0))}else P.push(B)}N=N.substring(D[0].length),D=N.match(g)}if(f=c(O,E,q),_){let I=-1;for(let B=48;B<=57;B++){if(I=P.indexOf(B),I>-1){P.splice(I,1);continue}P.push(B)}for(let B=65;B<=90;B++){if(I=P.indexOf(B),I>-1){P.splice(I,1);continue}P.push(B)}for(let B=97;B<=122;B++){if(I=P.indexOf(B),I>-1){P.splice(I,1);continue}P.push(B)}}let j=Array.from({length:f},()=>String.fromCharCode(P[a(0,P.length-1)])).join("");u=u.slice(0,y.index)+j+u.slice(y.index+y[0].length),y=u.match(b)}let v=/(.)\{(\d+)\,(\d+)\}/;for(y=u.match(v);y!=null;){if(m=parseInt(y[2]),d=parseInt(y[3]),m>d)throw new Error("Numbers out of order in {} quantifier.");f=a(m,d),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(v)}let x=/(.)\{(\d+)\}/;for(y=u.match(x);y!=null;)f=parseInt(y[2]),u=u.slice(0,y.index)+y[1].repeat(f)+u.slice(y.index+y[0].length),y=u.match(x);return u}},{}],25:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.sampleString=B;var s=n("../utils"),a=l(n("./string-regex"));function c(k){if(typeof WeakMap!="function")return null;var T=new WeakMap,z=new WeakMap;return(c=function(U){return U?z:T})(k)}function l(k,T){if(!T&&k&&k.__esModule)return k;if(k===null||typeof k!="object"&&typeof k!="function")return{default:k};var z=c(T);if(z&&z.has(k))return z.get(k);var U={__proto__:null},re=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var he in k)if(he!=="default"&&{}.hasOwnProperty.call(k,he)){var Ke=re?Object.getOwnPropertyDescriptor(k,he):null;Ke&&(Ke.get||Ke.set)?Object.defineProperty(U,he,Ke):U[he]=k[he]}return U.default=k,z&&z.set(k,U),U}let u="qwerty!@#$%^123456";function p(){return"user@example.com"}function m(){return"\u043F\u043E\u0448\u0442\u0430@\u0443\u043A\u0440.\u043D\u0435\u0442"}function d(k,T){let z="pa$$word";return k>z.length&&(z+="_",z+=(0,s.ensureMinLength)(u,k-z.length).substring(0,k-z.length)),z}function f(k){let{min:T,max:z,omitTime:U,omitDate:re}=k,he=(0,s.toRFCDateTime)(new Date("2019-08-24T14:15:22.123Z"),U,re,!1);return he.length<T&&console.warn(`Using minLength = ${T} is incorrect with format "date-time"`),z&&he.length>z&&console.warn(`Using maxLength = ${z} is incorrect with format "date-time"`),he}function h(k,T){return f({min:k,max:T,omitTime:!1,omitDate:!1})}function y(k,T){return f({min:k,max:T,omitTime:!0,omitDate:!1})}function g(k,T){return f({min:k,max:T,omitTime:!1,omitDate:!0}).slice(1)}function b(k,T,z,U){let re=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(U&&re)return a.regexSample(U);let he=(0,s.ensureMinLength)("string",k);return T&&he.length>T&&(he=he.substring(0,T)),he}function v(){return"192.168.0.1"}function x(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function S(){return"example.com"}function C(){return"\u043F\u0440\u0438\u043A\u043B\u0430\u0434.\u0443\u043A\u0440"}function _(){return"http://example.com"}function $(){return"../dictionary"}function E(){return"http://example.com/{endpoint}"}function q(){return"http://example.com/entity/1"}function O(){return"/entity/1"}function P(k,T,z){return(0,s.uuid)(z||"id")}function N(){return"/json/pointer"}function D(){return"1/relative/json/pointer"}function j(){return"/regex/"}let I={email:p,"idn-email":m,password:d,"date-time":h,date:y,time:g,ipv4:v,ipv6:x,hostname:S,"idn-hostname":C,iri:q,"iri-reference":O,uri:_,"uri-reference":$,"uri-template":E,uuid:P,default:b,"json-pointer":N,"relative-json-pointer":D,regex:j};function B(k,T,z,U){let re=k.format||"default",he=I[re]||b,Ke=U&&U.propertyName;return he(k.minLength||0,k.maxLength,Ke,k.pattern,T==null?void 0:T.enablePatterns)}},{"../utils":27,"./string-regex":24}],26:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.clearCache=f,o.traverse=g;var s=n("./openapi-sampler"),a=n("./allOf"),c=n("./infer"),l=n("./utils"),u=p(n("json-pointer"));function p(b){return b&&b.__esModule?b:{default:b}}let m={},d=[];function f(){m={},d=[]}function h(b){let v;return b.const!==void 0?v=b.const:b.examples!==void 0&&b.examples.length?v=b.examples[0]:b.enum!==void 0&&b.enum.length?v=b.enum[0]:b.default!==void 0&&(v=b.default),v}function y(b){let v=h(b);if(v!==void 0)return{value:v,readOnly:b.readOnly,writeOnly:b.writeOnly,type:null}}function g(b,v,x,S){if(S){if(d.includes(b))return(0,l.getResultForCircular)((0,c.inferType)(b));d.push(b)}if(S&&S.depth>v.maxSampleDepth)return(0,l.popSchemaStack)(d,S),(0,l.getResultForCircular)((0,c.inferType)(b));if(b.$ref){if(!x)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let E=decodeURIComponent(b.$ref);E.startsWith("#")&&(E=E.substring(1));let q=u.default.get(x,E),O;if(m[E]!==!0){m[E]=!0;let P=g(q,v,x,S);if(v.format==="xml"){let{propertyName:N,value:D}=(0,l.applyXMLAttributes)(P,q,S);O={...P,value:{[N||"root"]:D}}}else O=P;m[E]=!1}else{let P=(0,c.inferType)(q);O=(0,l.getResultForCircular)(P)}return(0,l.popSchemaStack)(d,S),O}if(b.example!==void 0)return(0,l.popSchemaStack)(d,S),{value:b.example,readOnly:b.readOnly,writeOnly:b.writeOnly,type:b.type};if(b.allOf!==void 0)return(0,l.popSchemaStack)(d,S),y(b)||(0,a.allOfSample)({...b,allOf:void 0},b.allOf,v,x,S);if(b.oneOf&&b.oneOf.length){b.anyOf&&(v.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),(0,l.popSchemaStack)(d,S);let E=Object.assign({readOnly:b.readOnly,writeOnly:b.writeOnly},b.oneOf[0]);return $(b,E)}if(b.anyOf&&b.anyOf.length){(0,l.popSchemaStack)(d,S);let E=Object.assign({readOnly:b.readOnly,writeOnly:b.writeOnly},b.anyOf[0]);return $(b,E)}if(b.if&&b.then){(0,l.popSchemaStack)(d,S);let{if:E,then:q,...O}=b;return g((0,l.mergeDeep)(O,E,q),v,x,S)}let C=h(b),_=null;if(C===void 0){C=null,_=b.type,Array.isArray(_)&&b.type.length>0&&(_=b.type[0]),_||(_=(0,c.inferType)(b));let E=s._samplers[_];E&&(C=E(b,v,x,S))}return(0,l.popSchemaStack)(d,S),{value:C,readOnly:b.readOnly,writeOnly:b.writeOnly,type:_};function $(E,q){let O=y(E);if(O!==void 0)return O;let P=g({...E,oneOf:void 0,anyOf:void 0},v,x,S),N=g(q,v,x,S);if(typeof P.value=="object"&&typeof N.value=="object"){let D=(0,l.mergeDeep)(P.value,N.value);return{...N,value:D}}return N}}},{"./allOf":16,"./infer":17,"./openapi-sampler":18,"./utils":27,"json-pointer":14}],27:[function(n,i,o){"use strict";Object.defineProperty(o,"__esModule",{value:!0}),o.applyXMLAttributes=f,o.ensureMinLength=c,o.getResultForCircular=p,o.getXMLAttributes=d,o.mergeDeep=l,o.popSchemaStack=m,o.toRFCDateTime=a,o.uuid=u;function s(g){return g<10?"0"+g:g}function a(g,b,v,x){var S=v?"":g.getUTCFullYear()+"-"+s(g.getUTCMonth()+1)+"-"+s(g.getUTCDate());return b||(S+="T"+s(g.getUTCHours())+":"+s(g.getUTCMinutes())+":"+s(g.getUTCSeconds())+(x?"."+(g.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5):"")+"Z"),S}function c(g,b){return b>g.length?g.repeat(Math.trunc(b/g.length)+1).substring(0,b):g}function l(){let g=S=>S&&typeof S=="object";for(var b=arguments.length,v=new Array(b),x=0;x<b;x++)v[x]=arguments[x];return v.reduce((S,C)=>(Object.keys(C||{}).forEach(_=>{let $=S[_],E=C[_];g($)&&g(E)?S[_]=l($,E):S[_]=E}),S),Array.isArray(v[v.length-1])?[]:{})}function u(g){var b=h(g),v=y(b,b,b,b),x="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,S=>{var C=v()*16%16|0;return(S=="x"?C:C&3|8).toString(16)});return x}function p(g){return{value:g==="object"?{}:g==="array"?[]:void 0}}function m(g,b){b&&g.pop()}function d(g){var b,v,x,S,C,_,$;return{name:((b=g==null?void 0:g.xml)==null?void 0:b.name)||"",prefix:((v=g==null?void 0:g.xml)==null?void 0:v.prefix)||"",namespace:((x=g==null?void 0:g.xml)==null?void 0:x.namespace)||null,attribute:(C=(S=g==null?void 0:g.xml)==null?void 0:S.attribute)!=null?C:!1,wrapped:($=(_=g==null?void 0:g.xml)==null?void 0:_.wrapped)!=null?$:!1}}function f(g){var N,D;let b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{value:x}=g,{propertyName:S}=v,{name:C,prefix:_,namespace:$,attribute:E,wrapped:q}=d(b),O=C||S?`${_?_+":":""}${C||S}`:null,P=typeof x=="object"?Array.isArray(x)?[...x]:{...x}:x;return E&&O&&(O=`$${O}`),$&&(typeof P=="object"?P[`$xmlns${_?":"+_:""}`]=$:P={[`$xmlns${_?":"+_:""}`]:$,"#text":P}),b.type==="array"&&(q&&Array.isArray(P)&&(P={[O]:[...P]}),q||(O=null),b.example!==void 0&&!q&&(O=((D=(N=b.items)==null?void 0:N.xml)==null?void 0:D.name)||O)),(b.oneOf||b.anyOf||b.allOf||b.$ref)&&(O=null),{propertyName:O,value:P}}function h(g){var b=0;if(g.length==0)return b;for(var v=0;v<g.length;v++){var x=g.charCodeAt(v);b=(b<<5)-b+x,b=b&b}return b}function y(g,b,v,x){return function(){g|=0,b|=0,v|=0,x|=0;var S=g-(b<<27|b>>>5)|0;return g=b^(v<<17|v>>>15),b=v+x|0,v=x+S|0,x=g+S|0,(x>>>0)/4294967296}}},{}]},{},[18])(18)})});var Oq=w(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0});var Ure=gy(),Vre=ky(),zre=eg(),Hre=vg(),_q=wg(),Kre=[Ure.default,Vre.default,(0,zre.default)(),Hre.default,_q.metadataVocabulary,_q.contentVocabulary];tw.default=Kre});var Pq=w((cxe,Wre)=>{Wre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/schema",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0,"https://json-schema.org/draft/2019-09/vocab/applicator":!0,"https://json-schema.org/draft/2019-09/vocab/validation":!0,"https://json-schema.org/draft/2019-09/vocab/meta-data":!0,"https://json-schema.org/draft/2019-09/vocab/format":!1,"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format"},{$ref:"meta/content"}],type:["object","boolean"],properties:{definitions:{$comment:"While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},dependencies:{$comment:'"dependencies" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to "dependentSchemas" and "dependentRequired"',type:"object",additionalProperties:{anyOf:[{$recursiveRef:"#"},{$ref:"meta/validation#/$defs/stringArray"}]}}}}});var $q=w((lxe,Yre)=>{Yre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/applicator":!0},$recursiveAnchor:!0,title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{additionalItems:{$recursiveRef:"#"},unevaluatedItems:{$recursiveRef:"#"},items:{anyOf:[{$recursiveRef:"#"},{$ref:"#/$defs/schemaArray"}]},contains:{$recursiveRef:"#"},additionalProperties:{$recursiveRef:"#"},unevaluatedProperties:{$recursiveRef:"#"},properties:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$recursiveRef:"#"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$recursiveRef:"#"}},propertyNames:{$recursiveRef:"#"},if:{$recursiveRef:"#"},then:{$recursiveRef:"#"},else:{$recursiveRef:"#"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$recursiveRef:"#"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$recursiveRef:"#"}}}}});var Eq=w((uxe,Gre)=>{Gre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/content",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/content":!0},$recursiveAnchor:!0,title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentMediaType:{type:"string"},contentEncoding:{type:"string"},contentSchema:{$recursiveRef:"#"}}}});var Aq=w((pxe,Jre)=>{Jre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/core",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/core":!0},$recursiveAnchor:!0,title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{type:"string",format:"uri"},$anchor:{type:"string",pattern:"^[A-Za-z][-A-Za-z0-9.:_]*$"},$ref:{type:"string",format:"uri-reference"},$recursiveRef:{type:"string",format:"uri-reference"},$recursiveAnchor:{type:"boolean",default:!1},$vocabulary:{type:"object",propertyNames:{type:"string",format:"uri"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$recursiveRef:"#"},default:{}}}}});var Cq=w((fxe,Xre)=>{Xre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/format",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/format":!0},$recursiveAnchor:!0,title:"Format vocabulary meta-schema",type:["object","boolean"],properties:{format:{type:"string"}}}});var Rq=w((dxe,Qre)=>{Qre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/meta-data":!0},$recursiveAnchor:!0,title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Tq=w((mxe,Zre)=>{Zre.exports={$schema:"https://json-schema.org/draft/2019-09/schema",$id:"https://json-schema.org/draft/2019-09/meta/validation",$vocabulary:{"https://json-schema.org/draft/2019-09/vocab/validation":!0},$recursiveAnchor:!0,title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}},const:!0,enum:{type:"array",items:!0},type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Nq=w(rw=>{"use strict";Object.defineProperty(rw,"__esModule",{value:!0});rw.default=cne;var ene=Pq(),tne=$q(),rne=Eq(),nne=Aq(),ine=Cq(),one=Rq(),sne=Tq(),ane=["/properties"];function cne(e){return[ene,tne,rne,nne,t(this,ine),one,t(this,sne)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,ane):n}}});var Iq=w((ct,kq)=>{"use strict";Object.defineProperty(ct,"__esModule",{value:!0});ct.CodeGen=ct.Name=ct.nil=ct.stringify=ct.str=ct._=ct.KeywordCxt=void 0;var lne=my(),une=Oq(),pne=ag(),fne=fg(),dne=yg(),mne=Og(),hne=Nq(),nw="https://json-schema.org/draft/2019-09/schema",Wd=class extends lne.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),this.addVocabulary(pne.default),une.default.forEach(t=>this.addVocabulary(t)),this.addVocabulary(fne.default),this.addVocabulary(dne.default),this.opts.discriminator&&this.addKeyword(mne.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(hne.default.call(this,t),this.refs["http://json-schema.org/schema"]=nw)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(nw)?nw:void 0)}};kq.exports=ct=Wd;Object.defineProperty(ct,"__esModule",{value:!0});ct.default=Wd;var yne=vs();Object.defineProperty(ct,"KeywordCxt",{enumerable:!0,get:function(){return yne.KeywordCxt}});var Pa=ne();Object.defineProperty(ct,"_",{enumerable:!0,get:function(){return Pa._}});Object.defineProperty(ct,"str",{enumerable:!0,get:function(){return Pa.str}});Object.defineProperty(ct,"stringify",{enumerable:!0,get:function(){return Pa.stringify}});Object.defineProperty(ct,"nil",{enumerable:!0,get:function(){return Pa.nil}});Object.defineProperty(ct,"Name",{enumerable:!0,get:function(){return Pa.Name}});Object.defineProperty(ct,"CodeGen",{enumerable:!0,get:function(){return Pa.CodeGen}})});var Ine={};Gd(Ine,{createMockServer:()=>ej});module.exports=cj(Ine);var On=Ee(require("fs"),1),Zi=Ee(require("path"),1);var Xd=(e,t,r)=>{let n=e instanceof RegExp?fw(e,r):e,i=t instanceof RegExp?fw(t,r):t,o=n!==null&&i!=null&&lj(n,i,r);return o&&{start:o[0],end:o[1],pre:r.slice(0,o[0]),body:r.slice(o[0]+n.length,o[1]),post:r.slice(o[1]+i.length)}},fw=(e,t)=>{let r=t.match(e);return r?r[0]:null},lj=(e,t,r)=>{let n,i,o,s,a,c=r.indexOf(e),l=r.indexOf(t,c+1),u=c;if(c>=0&&l>0){if(e===t)return[c,l];for(n=[],o=r.length;u>=0&&!a;){if(u===c)n.push(u),c=r.indexOf(e,u+1);else if(n.length===1){let p=n.pop();p!==void 0&&(a=[p,l])}else i=n.pop(),i!==void 0&&i<o&&(o=i,s=l),l=r.indexOf(t,u+1);u=c<l&&c>=0?c:l}n.length&&s!==void 0&&(a=[o,s])}return a};var dw="\0SLASH"+Math.random()+"\0",mw="\0OPEN"+Math.random()+"\0",Zd="\0CLOSE"+Math.random()+"\0",hw="\0COMMA"+Math.random()+"\0",yw="\0PERIOD"+Math.random()+"\0",uj=new RegExp(dw,"g"),pj=new RegExp(mw,"g"),fj=new RegExp(Zd,"g"),dj=new RegExp(hw,"g"),mj=new RegExp(yw,"g"),hj=/\\\\/g,yj=/\\{/g,gj=/\\}/g,bj=/\\,/g,vj=/\\./g;function Qd(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function wj(e){return e.replace(hj,dw).replace(yj,mw).replace(gj,Zd).replace(bj,hw).replace(vj,yw)}function xj(e){return e.replace(uj,"\\").replace(pj,"{").replace(fj,"}").replace(dj,",").replace(mj,".")}function gw(e){if(!e)return[""];let t=[],r=Xd("{","}",e);if(!r)return e.split(",");let{pre:n,body:i,post:o}=r,s=n.split(",");s[s.length-1]+="{"+i+"}";let a=gw(o);return o.length&&(s[s.length-1]+=a.shift(),s.push.apply(s,a)),t.push.apply(t,s),t}function bw(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Aa(wj(e),!0).map(xj)):[]}function Sj(e){return"{"+e+"}"}function _j(e){return/^-?0\d/.test(e)}function Oj(e,t){return e<=t}function Pj(e,t){return e>=t}function Aa(e,t){let r=[],n=Xd("{","}",e);if(!n)return[e];let i=n.pre,o=n.post.length?Aa(n.post,!1):[""];if(/\$$/.test(n.pre))for(let s=0;s<o.length;s++){let a=i+"{"+n.body+"}"+o[s];r.push(a)}else{let s=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),a=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),c=s||a,l=n.body.indexOf(",")>=0;if(!c&&!l)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+Zd+n.post,Aa(e)):[e];let u;if(c)u=n.body.split(/\.\./);else if(u=gw(n.body),u.length===1&&u[0]!==void 0&&(u=Aa(u[0],!1).map(Sj),u.length===1))return o.map(m=>n.pre+u[0]+m);let p;if(c&&u[0]!==void 0&&u[1]!==void 0){let m=Qd(u[0]),d=Qd(u[1]),f=Math.max(u[0].length,u[1].length),h=u.length===3&&u[2]!==void 0?Math.abs(Qd(u[2])):1,y=Oj;d<m&&(h*=-1,y=Pj);let b=u.some(_j);p=[];for(let v=m;y(v,d);v+=h){let x;if(a)x=String.fromCharCode(v),x==="\\"&&(x="");else if(x=String(v),b){let S=f-x.length;if(S>0){let C=new Array(S+1).join("0");v<0?x="-"+C+x.slice(1):x=C+x}}p.push(x)}}else{p=[];for(let m=0;m<u.length;m++)p.push.apply(p,Aa(u[m],!1))}for(let m=0;m<p.length;m++)for(let d=0;d<o.length;d++){let f=i+p[m]+o[d];(!t||c||f)&&r.push(f)}}return r}var Ca=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>65536)throw new TypeError("pattern is too long")};var $j={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Ra=e=>e.replace(/[[\]\\-]/g,"\\$&"),Ej=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),vw=e=>e.join(""),ww=(e,t)=>{let r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");let n=[],i=[],o=r+1,s=!1,a=!1,c=!1,l=!1,u=r,p="";e:for(;o<e.length;){let h=e.charAt(o);if((h==="!"||h==="^")&&o===r+1){l=!0,o++;continue}if(h==="]"&&s&&!c){u=o+1;break}if(s=!0,h==="\\"&&!c){c=!0,o++;continue}if(h==="["&&!c){for(let[y,[g,b,v]]of Object.entries($j))if(e.startsWith(y,o)){if(p)return["$.",!1,e.length-r,!0];o+=y.length,v?i.push(g):n.push(g),a=a||b;continue e}}if(c=!1,p){h>p?n.push(Ra(p)+"-"+Ra(h)):h===p&&n.push(Ra(h)),p="",o++;continue}if(e.startsWith("-]",o+1)){n.push(Ra(h+"-")),o+=2;continue}if(e.startsWith("-",o+1)){p=h,o+=2;continue}n.push(Ra(h)),o++}if(u<o)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!l){let h=n[0].length===2?n[0].slice(-1):n[0];return[Ej(h),!1,u-r,!1]}let m="["+(l?"^":"")+vw(n)+"]",d="["+(l?"":"^")+vw(i)+"]";return[n.length&&i.length?"("+m+"|"+d+")":n.length?m:d,a,u-r,!0]};var Jn=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1");var Aj=new Set(["!","?","+","*","@"]),xw=e=>Aj.has(e),Cj="(?!(?:^|/)\\.\\.?(?:$|/))",Dl="(?!\\.)",Rj=new Set(["[","."]),Tj=new Set(["..","."]),Nj=new Set("().*{}+?[]^$\\!"),kj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),tm="[^/]",Sw=tm+"*?",_w=tm+"+?",it,lt,xn,Le,Qe,Xn,Wi,Qn,Gr,Yi,Ta,Gi,Ow,Zn,Fl,em,Pw,Mt=class Mt{constructor(t,r,n={}){Gt(this,Gi);pw(this,"type");Gt(this,it);Gt(this,lt);Gt(this,xn,!1);Gt(this,Le,[]);Gt(this,Qe);Gt(this,Xn);Gt(this,Wi);Gt(this,Qn,!1);Gt(this,Gr);Gt(this,Yi);Gt(this,Ta,!1);this.type=t,t&&We(this,lt,!0),We(this,Qe,r),We(this,it,F(this,Qe)?F(F(this,Qe),it):this),We(this,Gr,F(this,it)===this?n:F(F(this,it),Gr)),We(this,Wi,F(this,it)===this?[]:F(F(this,it),Wi)),t==="!"&&!F(F(this,it),Qn)&&F(this,Wi).push(this),We(this,Xn,F(this,Qe)?F(F(this,Qe),Le).length:0)}get hasMagic(){if(F(this,lt)!==void 0)return F(this,lt);for(let t of F(this,Le))if(typeof t!="string"&&(t.type||t.hasMagic))return We(this,lt,!0);return F(this,lt)}toString(){return F(this,Yi)!==void 0?F(this,Yi):this.type?We(this,Yi,this.type+"("+F(this,Le).map(t=>String(t)).join("|")+")"):We(this,Yi,F(this,Le).map(t=>String(t)).join(""))}push(...t){for(let r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Mt&&F(r,Qe)===this))throw new Error("invalid part: "+r);F(this,Le).push(r)}}toJSON(){var r;let t=this.type===null?F(this,Le).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...F(this,Le).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===F(this,it)||F(F(this,it),Qn)&&((r=F(this,Qe))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(F(this,it)===this)return!0;if(!((r=F(this,Qe))!=null&&r.isStart()))return!1;if(F(this,Xn)===0)return!0;let t=F(this,Qe);for(let n=0;n<F(this,Xn);n++){let i=F(t,Le)[n];if(!(i instanceof Mt&&i.type==="!"))return!1}return!0}isEnd(){var r,n,i;if(F(this,it)===this||((r=F(this,Qe))==null?void 0:r.type)==="!")return!0;if(!((n=F(this,Qe))!=null&&n.isEnd()))return!1;if(!this.type)return(i=F(this,Qe))==null?void 0:i.isEnd();let t=F(this,Qe)?F(F(this,Qe),Le).length:0;return F(this,Xn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){let r=new Mt(this.type,t);for(let n of F(this,Le))r.copyIn(n);return r}static fromGlob(t,r={}){var i;let n=new Mt(null,void 0,r);return Gn(i=Mt,Zn,Fl).call(i,t,n,0,r),n}toMMPattern(){if(this!==F(this,it))return F(this,it).toMMPattern();let t=this.toString(),[r,n,i,o]=this.toRegExpSource();if(!(i||F(this,lt)||F(this,Gr).nocase&&!F(this,Gr).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;let a=(F(this,Gr).nocase?"i":"")+(o?"u":"");return Object.assign(new RegExp(`^${r}$`,a),{_src:r,_glob:t})}get options(){return F(this,Gr)}toRegExpSource(t){var c;let r=t!=null?t:!!F(this,Gr).dot;if(F(this,it)===this&&Gn(this,Gi,Ow).call(this),!this.type){let l=this.isStart()&&this.isEnd(),u=F(this,Le).map(f=>{var v;let[h,y,g,b]=typeof f=="string"?Gn(v=Mt,Zn,Pw).call(v,f,F(this,lt),l):f.toRegExpSource(t);return We(this,lt,F(this,lt)||g),We(this,xn,F(this,xn)||b),h}).join(""),p="";if(this.isStart()&&typeof F(this,Le)[0]=="string"&&!(F(this,Le).length===1&&Tj.has(F(this,Le)[0]))){let h=Rj,y=r&&h.has(u.charAt(0))||u.startsWith("\\.")&&h.has(u.charAt(2))||u.startsWith("\\.\\.")&&h.has(u.charAt(4)),g=!r&&!t&&h.has(u.charAt(0));p=y?Cj:g?Dl:""}let m="";return this.isEnd()&&F(F(this,it),Qn)&&((c=F(this,Qe))==null?void 0:c.type)==="!"&&(m="(?:$|\\/)"),[p+u+m,Jn(u),We(this,lt,!!F(this,lt)),F(this,xn)]}let n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:",o=Gn(this,Gi,em).call(this,r);if(this.isStart()&&this.isEnd()&&!o&&this.type!=="!"){let l=this.toString();return We(this,Le,[l]),this.type=null,We(this,lt,void 0),[l,Jn(this.toString()),!1,!1]}let s=!n||t||r||!Dl?"":Gn(this,Gi,em).call(this,!0);s===o&&(s=""),s&&(o=`(?:${o})(?:${s})*?`);let a="";if(this.type==="!"&&F(this,Ta))a=(this.isStart()&&!r?Dl:"")+_w;else{let l=this.type==="!"?"))"+(this.isStart()&&!r&&!t?Dl:"")+Sw+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&s?")":this.type==="*"&&s?")?":`)${this.type}`;a=i+o+l}return[a,Jn(o),We(this,lt,!!F(this,lt)),F(this,xn)]}};it=new WeakMap,lt=new WeakMap,xn=new WeakMap,Le=new WeakMap,Qe=new WeakMap,Xn=new WeakMap,Wi=new WeakMap,Qn=new WeakMap,Gr=new WeakMap,Yi=new WeakMap,Ta=new WeakMap,Gi=new WeakSet,Ow=function(){if(this!==F(this,it))throw new Error("should only call on root");if(F(this,Qn))return this;this.toString(),We(this,Qn,!0);let t;for(;t=F(this,Wi).pop();){if(t.type!=="!")continue;let r=t,n=F(r,Qe);for(;n;){for(let i=F(r,Xn)+1;!n.type&&i<F(n,Le).length;i++)for(let o of F(t,Le)){if(typeof o=="string")throw new Error("string part in extglob AST??");o.copyIn(F(n,Le)[i])}r=n,n=F(r,Qe)}}return this},Zn=new WeakSet,Fl=function(t,r,n,i){var d,f;let o=!1,s=!1,a=-1,c=!1;if(r.type===null){let h=n,y="";for(;h<t.length;){let g=t.charAt(h++);if(o||g==="\\"){o=!o,y+=g;continue}if(s){h===a+1?(g==="^"||g==="!")&&(c=!0):g==="]"&&!(h===a+2&&c)&&(s=!1),y+=g;continue}else if(g==="["){s=!0,a=h,c=!1,y+=g;continue}if(!i.noext&&xw(g)&&t.charAt(h)==="("){r.push(y),y="";let b=new Mt(g,r);h=Gn(d=Mt,Zn,Fl).call(d,t,b,h,i),r.push(b);continue}y+=g}return r.push(y),h}let l=n+1,u=new Mt(null,r),p=[],m="";for(;l<t.length;){let h=t.charAt(l++);if(o||h==="\\"){o=!o,m+=h;continue}if(s){l===a+1?(h==="^"||h==="!")&&(c=!0):h==="]"&&!(l===a+2&&c)&&(s=!1),m+=h;continue}else if(h==="["){s=!0,a=l,c=!1,m+=h;continue}if(xw(h)&&t.charAt(l)==="("){u.push(m),m="";let y=new Mt(h,u);u.push(y),l=Gn(f=Mt,Zn,Fl).call(f,t,y,l,i);continue}if(h==="|"){u.push(m),m="",p.push(u),u=new Mt(null,r);continue}if(h===")")return m===""&&F(r,Le).length===0&&We(r,Ta,!0),u.push(m),m="",r.push(...p,u),l;m+=h}return r.type=null,We(r,lt,void 0),We(r,Le,[t.substring(n-1)]),l},em=function(t){return F(this,Le).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");let[n,i,o,s]=r.toRegExpSource(t);return We(this,xn,F(this,xn)||s),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},Pw=function(t,r,n=!1){let i=!1,o="",s=!1;for(let a=0;a<t.length;a++){let c=t.charAt(a);if(i){i=!1,o+=(Nj.has(c)?"\\":"")+c;continue}if(c==="\\"){a===t.length-1?o+="\\\\":i=!0;continue}if(c==="["){let[l,u,p,m]=ww(t,a);if(p){o+=l,s=s||u,a+=p-1,r=r||m;continue}}if(c==="*"){n&&t==="*"?o+=_w:o+=Sw,r=!0;continue}if(c==="?"){o+=tm,r=!0;continue}o+=kj(c)}return[o,Jn(t),!!r,s]},Gt(Mt,Zn);var Go=Mt;var rm=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&");var yt=(e,t,r={})=>(Ca(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Jo(t,r).match(e)),Ij=/^\*+([^+@!?\*\[\(]*)$/,qj=e=>t=>!t.startsWith(".")&&t.endsWith(e),jj=e=>t=>t.endsWith(e),Mj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Lj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),Dj=/^\*+\.\*+$/,Fj=e=>!e.startsWith(".")&&e.includes("."),Bj=e=>e!=="."&&e!==".."&&e.includes("."),Uj=/^\.\*+$/,Vj=e=>e!=="."&&e!==".."&&e.startsWith("."),zj=/^\*+$/,Hj=e=>e.length!==0&&!e.startsWith("."),Kj=e=>e.length!==0&&e!=="."&&e!=="..",Wj=/^\?+([^+@!?\*\[\(]*)?$/,Yj=([e,t=""])=>{let r=Aw([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Gj=([e,t=""])=>{let r=Cw([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},Jj=([e,t=""])=>{let r=Cw([e]);return t?n=>r(n)&&n.endsWith(t):r},Xj=([e,t=""])=>{let r=Aw([e]);return t?n=>r(n)&&n.endsWith(t):r},Aw=([e])=>{let t=e.length;return r=>r.length===t&&!r.startsWith(".")},Cw=([e])=>{let t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Rw=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",$w={win32:{sep:"\\"},posix:{sep:"/"}},Qj=Rw==="win32"?$w.win32.sep:$w.posix.sep;yt.sep=Qj;var wr=Symbol("globstar **");yt.GLOBSTAR=wr;var Zj="[^/]",e8=Zj+"*?",t8="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",r8="(?:(?!(?:\\/|^)\\.).)*?",n8=(e,t={})=>r=>yt(r,e,t);yt.filter=n8;var vr=(e,t={})=>Object.assign({},e,t),i8=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return yt;let t=yt;return Object.assign((n,i,o={})=>t(n,i,vr(e,o)),{Minimatch:class extends t.Minimatch{constructor(i,o={}){super(i,vr(e,o))}static defaults(i){return t.defaults(vr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,o,s={}){super(i,o,vr(e,s))}static fromGlob(i,o={}){return t.AST.fromGlob(i,vr(e,o))}},unescape:(n,i={})=>t.unescape(n,vr(e,i)),escape:(n,i={})=>t.escape(n,vr(e,i)),filter:(n,i={})=>t.filter(n,vr(e,i)),defaults:n=>t.defaults(vr(e,n)),makeRe:(n,i={})=>t.makeRe(n,vr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,vr(e,i)),match:(n,i,o={})=>t.match(n,i,vr(e,o)),sep:t.sep,GLOBSTAR:wr})};yt.defaults=i8;var Tw=(e,t={})=>(Ca(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:bw(e));yt.braceExpand=Tw;var o8=(e,t={})=>new Jo(e,t).makeRe();yt.makeRe=o8;var s8=(e,t,r={})=>{let n=new Jo(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};yt.match=s8;var Ew=/[?*]|[+@!]\(.*?\)|\[|\]/,a8=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Jo=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(t,r={}){Ca(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Rw,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let t of this.set)for(let r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){let t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...o)=>console.error(...o)),this.debug(this.pattern,this.globSet);let n=this.globSet.map(o=>this.slashSplit(o));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((o,s,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let c=o[0]===""&&o[1]===""&&(o[2]==="?"||!Ew.test(o[2]))&&!Ew.test(o[3]),l=/^[a-z]:/i.test(o[0]);if(c)return[...o.slice(0,4),...o.slice(4).map(u=>this.parse(u))];if(l)return[o[0],...o.slice(1).map(u=>this.parse(u))]}return o.map(c=>this.parse(c))});if(this.debug(this.pattern,i),this.set=i.filter(o=>o.indexOf(!1)===-1),this.isWindows)for(let o=0;o<this.set.length;o++){let s=this.set[o];s[0]===""&&s[1]===""&&this.globParts[o][2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3])&&(s[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let n=0;n<t.length;n++)for(let i=0;i<t[n].length;i++)t[n][i]==="**"&&(t[n][i]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{let o=n[n.length-1];return i==="**"&&o==="**"?n:i===".."&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){let o=t[i];i===1&&o===""&&t[0]===""||(o==="."||o==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){let i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let s=i;for(;n[s+1]==="**";)s++;s>i&&n.splice(i+1,s-i);let a=n[i+1],c=n[i+2],l=n[i+3];if(a!==".."||!c||c==="."||c===".."||!l||l==="."||l==="..")continue;r=!0,n.splice(i,1);let u=n.slice(0);u[i]="**",t.push(u),i--}if(!this.preserveMultipleSlashes){for(let s=1;s<n.length-1;s++){let a=n[s];s===1&&a===""&&n[0]===""||(a==="."||a==="")&&(r=!0,n.splice(s,1),s--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let o=0;for(;(o=n.indexOf("..",o+1))!==-1;){let s=n[o-1];if(s&&s!=="."&&s!==".."&&s!=="**"){r=!0;let c=o===1&&n[o+1]==="**"?["."]:[];n.splice(o-1,2,...c),n.length===0&&n.push(""),o-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){let i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,o=0,s=[],a="";for(;i<t.length&&o<r.length;)if(t[i]===r[o])s.push(a==="b"?r[o]:t[i]),i++,o++;else if(n&&t[i]==="**"&&r[o]===t[i+1])s.push(t[i]),i++;else if(n&&r[o]==="**"&&t[i]===r[o+1])s.push(r[o]),o++;else if(t[i]==="*"&&r[o]&&(this.options.dot||!r[o].startsWith("."))&&r[o]!=="**"){if(a==="b")return!1;a="a",s.push(t[i]),i++,o++}else if(r[o]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="a")return!1;a="b",s.push(r[o]),i++,o++}else return!1;return t.length===r.length&&s}parseNegate(){if(this.nonegate)return;let t=this.pattern,r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=this.options;if(this.isWindows){let h=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),y=!h&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),g=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),b=!g&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),v=y?3:h?0:void 0,x=b?3:g?0:void 0;if(typeof v=="number"&&typeof x=="number"){let[S,C]=[t[v],r[x]];S.toLowerCase()===C.toLowerCase()&&(r[x]=S,x>v?r=r.slice(x):v>x&&(t=t.slice(v)))}}let{optimizationLevel:o=1}=this.options;o>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var s=0,a=0,c=t.length,l=r.length;s<c&&a<l;s++,a++){this.debug("matchOne loop");var u=r[a],p=t[s];if(this.debug(r,u,p),u===!1)return!1;if(u===wr){this.debug("GLOBSTAR",[r,u,p]);var m=s,d=a+1;if(d===l){for(this.debug("** at the end");s<c;s++)if(t[s]==="."||t[s]===".."||!i.dot&&t[s].charAt(0)===".")return!1;return!0}for(;m<c;){var f=t[m];if(this.debug(`
|
|
207
207
|
globstar while`,t,m,r,d,f),this.matchOne(t.slice(m),r.slice(d),n))return this.debug("globstar found match!",m,c,f),!0;if(f==="."||f===".."||!i.dot&&f.charAt(0)==="."){this.debug("dot detected!",t,m,r,d);break}this.debug("globstar swallow a segment, and continue"),m++}return!!(n&&(this.debug(`
|
|
208
208
|
>>> no match, partial?`,t,m,r,d),m===c))}let h;if(typeof u=="string"?(h=p===u,this.debug("string match",u,p,h)):(h=u.test(p),this.debug("pattern match",u,p,h)),!h)return!1}if(s===c&&a===l)return!0;if(s===c)return n;if(a===l)return s===c-1&&t[s]==="";throw new Error("wtf?")}braceExpand(){return Tw(this.pattern,this.options)}parse(t){Ca(t);let r=this.options;if(t==="**")return wr;if(t==="")return"";let n,i=null;(n=t.match(zj))?i=r.dot?Kj:Hj:(n=t.match(Ij))?i=(r.nocase?r.dot?Lj:Mj:r.dot?jj:qj)(n[1]):(n=t.match(Wj))?i=(r.nocase?r.dot?Gj:Yj:r.dot?Jj:Xj)(n):(n=t.match(Dj))?i=r.dot?Bj:Fj:(n=t.match(Uj))&&(i=Vj);let o=Go.fromGlob(t,this.options).toMMPattern();return i&&typeof o=="object"&&Reflect.defineProperty(o,"test",{value:i}),o}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let t=this.set;if(!t.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?e8:r.dot?t8:r8,i=new Set(r.nocase?["i"]:[]),o=t.map(c=>{let l=c.map(u=>{if(u instanceof RegExp)for(let p of u.flags.split(""))i.add(p);return typeof u=="string"?a8(u):u===wr?wr:u._src});return l.forEach((u,p)=>{let m=l[p+1],d=l[p-1];u!==wr||d===wr||(d===void 0?m!==void 0&&m!==wr?l[p+1]="(?:\\/|"+n+"\\/)?"+m:l[p]=n:m===void 0?l[p-1]=d+"(?:\\/|"+n+")?":m!==wr&&(l[p-1]=d+"(?:\\/|\\/"+n+"\\/)"+m,l[p+1]=wr))}),l.filter(u=>u!==wr).join("/")}).join("|"),[s,a]=t.length>1?["(?:",")"]:["",""];o="^"+s+o+a+"$",this.negate&&(o="^(?!"+o+").+$");try{this.regexp=new RegExp(o,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;let n=this.options;this.isWindows&&(t=t.split("\\").join("/"));let i=this.slashSplit(t);this.debug(this.pattern,"split",i);let o=this.set;this.debug(this.pattern,"set",o);let s=i[i.length-1];if(!s)for(let a=i.length-2;!s&&a>=0;a--)s=i[a];for(let a=0;a<o.length;a++){let c=o[a],l=i;if(n.matchBase&&c.length===1&&(l=[s]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return yt.defaults(t).Minimatch}};yt.AST=Go;yt.Minimatch=Jo;yt.escape=rm;yt.unescape=Jn;var Lx=Ee(om(),1);function Ww(e){return typeof e>"u"||e===null}function c8(e){return typeof e=="object"&&e!==null}function l8(e){return Array.isArray(e)?e:Ww(e)?[]:[e]}function u8(e,t){var r,n,i,o;if(t)for(o=Object.keys(t),r=0,n=o.length;r<n;r+=1)i=o[r],e[i]=t[i];return e}function p8(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function f8(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var d8=Ww,m8=c8,h8=l8,y8=p8,g8=f8,b8=u8,ot={isNothing:d8,isObject:m8,toArray:h8,repeat:y8,isNegativeZero:g8,extend:b8};function Yw(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
209
209
|
|
|
@@ -224,13 +224,13 @@ globstar while`,t,m,r,d,f),this.matchOne(t.slice(m),r.slice(d),n))return this.de
|
|
|
224
224
|
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new vM(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,W(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)CM(r);return r.documents}function RM(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=vx(e,r);if(typeof t!="function")return n;for(var i=0,o=n.length;i<o;i+=1)t(n[i])}function TM(e,t){var r=vx(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new Jt("expected a single document in the stream, but found more")}}var NM=RM,kM=TM,wx={loadAll:NM,load:kM},xx=Object.prototype.toString,Sx=Object.prototype.hasOwnProperty,gm=65279,IM=9,Ia=10,qM=13,jM=32,MM=33,LM=34,um=35,DM=37,FM=38,BM=39,UM=42,_x=44,VM=45,zl=58,zM=61,HM=62,KM=63,WM=64,Ox=91,Px=93,YM=96,$x=123,GM=124,Ex=125,Et={};Et[0]="\\0";Et[7]="\\a";Et[8]="\\b";Et[9]="\\t";Et[10]="\\n";Et[11]="\\v";Et[12]="\\f";Et[13]="\\r";Et[27]="\\e";Et[34]='\\"';Et[92]="\\\\";Et[133]="\\N";Et[160]="\\_";Et[8232]="\\L";Et[8233]="\\P";var JM=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],XM=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function QM(e,t){var r,n,i,o,s,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,o=n.length;i<o;i+=1)s=n[i],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap.fallback[s],c&&Sx.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function ZM(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new Jt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+ot.repeat("0",n-t.length)+t}var e4=1,qa=2;function t4(e){this.schema=e.schema||px,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=ot.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=QM(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?qa:e4,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Dw(e,t){for(var r=ot.repeat(" ",t),n=0,i=-1,o="",s,a=e.length;n<a;)i=e.indexOf(`
|
|
225
225
|
`,n),i===-1?(s=e.slice(n),n=a):(s=e.slice(n,i+1),n=i+1),s.length&&s!==`
|
|
226
226
|
`&&(o+=r),o+=s;return o}function pm(e,t){return`
|
|
227
|
-
`+ot.repeat(" ",e.indent*t)}function r4(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Hl(e){return e===jM||e===IM}function ja(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==gm||65536<=e&&e<=1114111}function Fw(e){return ja(e)&&e!==gm&&e!==qM&&e!==Ia}function Bw(e,t,r){var n=Fw(e),i=n&&!Hl(e);return(r?n:n&&e!==_x&&e!==Ox&&e!==Px&&e!==$x&&e!==Ex)&&e!==um&&!(t===zl&&!i)||Fw(t)&&!Hl(t)&&e===um||t===zl&&i}function n4(e){return ja(e)&&e!==gm&&!Hl(e)&&e!==VM&&e!==KM&&e!==zl&&e!==_x&&e!==Ox&&e!==Px&&e!==$x&&e!==Ex&&e!==um&&e!==FM&&e!==UM&&e!==MM&&e!==GM&&e!==zM&&e!==HM&&e!==BM&&e!==LM&&e!==DM&&e!==WM&&e!==YM}function i4(e){return!Hl(e)&&e!==zl}function Na(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Ax(e){var t=/^\n* /;return t.test(e)}var Cx=1,fm=2,Rx=3,Tx=4,Xo=5;function o4(e,t,r,n,i,o,s,a){var c,l=0,u=null,p=!1,m=!1,d=n!==-1,f=-1,h=n4(Na(e,0))&&i4(Na(e,e.length-1));if(t||s)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=Na(e,c),!ja(l))return Xo;h=h&&Bw(l,u,a),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=Na(e,c),l===Ia)p=!0,d&&(m=m||c-f-1>n&&e[f+1]!==" ",f=c);else if(!ja(l))return Xo;h=h&&Bw(l,u,a),u=l}m=m||d&&c-f-1>n&&e[f+1]!==" "}return!p&&!m?h&&!s&&!i(e)?Cx:o===qa?Xo:fm:r>9&&Ax(e)?Xo:s?o===qa?Xo:fm:m?Tx:Rx}function s4(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===qa?'""':"''";if(!e.noCompatMode&&(JM.indexOf(t)!==-1||XM.test(t)))return e.quotingType===qa?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(l){return r4(e,l)}switch(o4(t,a,e.indent,s,c,e.quotingType,e.forceQuotes&&!n,i)){case Cx:return t;case fm:return"'"+t.replace(/'/g,"''")+"'";case Rx:return"|"+Uw(t,e.indent)+Vw(Dw(t,o));case Tx:return">"+Uw(t,e.indent)+Vw(Dw(a4(t,s),o));case Xo:return'"'+c4(t)+'"';default:throw new Jt("impossible error: invalid scalar style")}}()}function Uw(e,t){var r=Ax(e)?String(t):"",n=e[e.length-1]===`
|
|
227
|
+
`+ot.repeat(" ",e.indent*t)}function r4(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Hl(e){return e===jM||e===IM}function ja(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==gm||65536<=e&&e<=1114111}function Fw(e){return ja(e)&&e!==gm&&e!==qM&&e!==Ia}function Bw(e,t,r){var n=Fw(e),i=n&&!Hl(e);return(r?n:n&&e!==_x&&e!==Ox&&e!==Px&&e!==$x&&e!==Ex)&&e!==um&&!(t===zl&&!i)||Fw(t)&&!Hl(t)&&e===um||t===zl&&i}function n4(e){return ja(e)&&e!==gm&&!Hl(e)&&e!==VM&&e!==KM&&e!==zl&&e!==_x&&e!==Ox&&e!==Px&&e!==$x&&e!==Ex&&e!==um&&e!==FM&&e!==UM&&e!==MM&&e!==GM&&e!==zM&&e!==HM&&e!==BM&&e!==LM&&e!==DM&&e!==WM&&e!==YM}function i4(e){return!Hl(e)&&e!==zl}function Na(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Ax(e){var t=/^\n* /;return t.test(e)}var Cx=1,fm=2,Rx=3,Tx=4,Xo=5;function o4(e,t,r,n,i,o,s,a){var c,l=0,u=null,p=!1,m=!1,d=n!==-1,f=-1,h=n4(Na(e,0))&&i4(Na(e,e.length-1));if(t||s)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=Na(e,c),!ja(l))return Xo;h=h&&Bw(l,u,a),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=Na(e,c),l===Ia)p=!0,d&&(m=m||c-f-1>n&&e[f+1]!==" ",f=c);else if(!ja(l))return Xo;h=h&&Bw(l,u,a),u=l}m=m||d&&c-f-1>n&&e[f+1]!==" "}return!p&&!m?h&&!s&&!i(e)?Cx:o===qa?Xo:fm:r>9&&Ax(e)?Xo:s?o===qa?Xo:fm:m?Tx:Rx}function s4(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===qa?'""':"''";if(!e.noCompatMode&&(JM.indexOf(t)!==-1||XM.test(t)))return e.quotingType===qa?'"'+t+'"':"'"+t+"'";var o=e.indent*Math.max(1,r),s=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(l){return r4(e,l)}switch(o4(t,a,e.indent,s,c,e.quotingType,e.forceQuotes&&!n,i)){case Cx:return t;case fm:return"'"+t.replace(/'/g,"''")+"'";case Rx:return"|"+Uw(t,e.indent)+Vw(Dw(t,o));case Tx:return">"+Uw(t,e.indent)+Vw(Dw(a4(t,s),o));case Xo:return'"'+c4(t)+'"';default:throw new Jt("impossible error: invalid scalar style")}})()}function Uw(e,t){var r=Ax(e)?String(t):"",n=e[e.length-1]===`
|
|
228
228
|
`,i=n&&(e[e.length-2]===`
|
|
229
229
|
`||e===`
|
|
230
230
|
`),o=i?"+":n?"":"-";return r+o+`
|
|
231
231
|
`}function Vw(e){return e[e.length-1]===`
|
|
232
|
-
`?e.slice(0,-1):e}function a4(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var l=e.indexOf(`
|
|
233
|
-
`);return l=l!==-1?l:e.length,r.lastIndex=l,zw(e.slice(0,l),t)}(),i=e[0]===`
|
|
232
|
+
`?e.slice(0,-1):e}function a4(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var l=e.indexOf(`
|
|
233
|
+
`);return l=l!==-1?l:e.length,r.lastIndex=l,zw(e.slice(0,l),t)})(),i=e[0]===`
|
|
234
234
|
`||e[0]===" ",o,s;s=r.exec(e);){var a=s[1],c=s[2];o=c[0]===" ",n+=a+(!i&&!o&&c!==""?`
|
|
235
235
|
`:"")+zw(c,t),i=o}return n}function zw(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,o,s=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(o=s>i?s:a,c+=`
|
|
236
236
|
`+e.slice(i,o),i=o+1),s=a;return c+=`
|