var Hd=Object.defineProperty;var Kd=(ie,le,ye)=>le in ie?Hd(ie,le,{enumerable:!0,configurable:!0,writable:!0,value:ye}):ie[le]=ye;var Lr=(ie,le,ye)=>(Kd(ie,typeof le!="symbol"?le+"":le,ye),ye),no=(ie,le,ye)=>{if(!le.has(ie))throw TypeError("Cannot "+ye)};var it=(ie,le,ye)=>(no(ie,le,"read from private field"),ye?ye.call(ie):le.get(ie)),tr=(ie,le,ye)=>{if(le.has(ie))throw TypeError("Cannot add the same private member more than once");le instanceof WeakSet?le.add(ie):le.set(ie,ye)},tt=(ie,le,ye,St)=>(no(ie,le,"write to private field"),St?St.call(ie,ye):le.set(ie,ye),ye);var os=(ie,le,ye,St)=>({set _(rr){tt(ie,le,rr,ye)},get _(){return it(ie,le,St)}});(function(ie,le){typeof exports=="object"&&typeof module<"u"?le(exports):typeof define=="function"&&define.amd?define(["exports"],le):(ie=typeof globalThis<"u"?globalThis:ie||self,le(ie.frameworkInfo={}))})(this,function(ie){var Jt,We,yt,$t;"use strict";function le(e,t=1,r={}){const{indent:n=" ",includeEmptyLines:s=!1}=r;if(typeof e!="string")throw new TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if(typeof t!="number")throw new TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if(t<0)throw new RangeError(`Expected \`count\` to be at least 0, got \`${t}\``);if(typeof n!="string")throw new TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof n}\``);if(t===0)return e;const a=s?/^/gm:/^(?!\s*$)/gm;return e.replace(a,n.repeat(t))}const ye={};function St(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const rr=/\s+at.*[(\s](.*)\)?/,so=/^(?:(?:(?:node|node:[\w/]+|(?:(?:node:)?internal\/[\w/]*|.*node_modules\/(?:babel-polyfill|pirates)\/.*)?\w+)(?:\.js)?:\d+:\d+)|native)/,ao=typeof ye.homedir>"u"?"":ye.homedir().replace(/\\/g,"/");function oo(e,{pretty:t=!1,basePath:r}={}){const n=r&&new RegExp(`(at | \\()${St(r.replace(/\\/g,"/"))}`,"g");if(typeof e=="string")return e.replace(/\\/g,"/").split(` `).filter(s=>{const a=s.match(rr);if(a===null||!a[1])return!0;const c=a[1];return c.includes(".app/Contents/Resources/electron.asar")||c.includes(".app/Contents/Resources/default_app.asar")||c.includes("node_modules/electron/dist/resources/electron.asar")||c.includes("node_modules/electron/dist/resources/default_app.asar")?!1:!so.test(c)}).filter(s=>s.trim()!=="").map(s=>(n&&(s=s.replace(n,"$1")),t&&(s=s.replace(rr,(a,c)=>a.replace(c,c.replace(ao,"~")))),s)).join(` `)}const io=e=>e.replace(/\s+at .*aggregate-error\/index.js:\d+:\d+\)?/g,"");class lo extends Error{constructor(r){if(!Array.isArray(r))throw new TypeError(`Expected input to be an Array, got ${typeof r}`);r=r.map(s=>s instanceof Error?s:s!==null&&typeof s=="object"?Object.assign(new Error(s.message),s):new Error(s));let n=r.map(s=>typeof s.stack=="string"&&s.stack.length>0?io(oo(s.stack)):String(s)).join(` `);n=` `+le(n,4);super(n);tr(this,Jt,void 0);Lr(this,"name","AggregateError");tt(this,Jt,r)}get errors(){return it(this,Jt).slice()}}Jt=new WeakMap;class co extends Error{constructor(t){super(),this.name="AbortError",this.message=t}}const is=e=>globalThis.DOMException===void 0?new co(e):new DOMException(e),ls=e=>{const t=e.reason===void 0?is("This operation was aborted."):e.reason;return t instanceof Error?t:is(t)};async function uo(e,t,{concurrency:r=Number.POSITIVE_INFINITY,stopOnError:n=!0,signal:s}={}){return new Promise((a,c)=>{if(e[Symbol.iterator]===void 0&&e[Symbol.asyncIterator]===void 0)throw new TypeError(`Expected \`input\` to be either an \`Iterable\` or \`AsyncIterable\`, got (${typeof e})`);if(typeof t!="function")throw new TypeError("Mapper function is required");if(!((Number.isSafeInteger(r)||r===Number.POSITIVE_INFINITY)&&r>=1))throw new TypeError(`Expected \`concurrency\` to be an integer from 1 and up or \`Infinity\`, got \`${r}\` (${typeof r})`);const i=[],o=[],u=new Map;let f=!1,p=!1,b=!1,v=0,m=0;const S=e[Symbol.iterator]===void 0?e[Symbol.asyncIterator]():e[Symbol.iterator](),E=P=>{f=!0,p=!0,c(P)};s&&(s.aborted&&E(ls(s)),s.addEventListener("abort",()=>{E(ls(s))}));const y=async()=>{if(p)return;const P=await S.next(),A=m;if(m++,P.done){if(b=!0,v===0&&!p){if(!n&&o.length>0){E(new lo(o));return}if(p=!0,u.size===0){a(i);return}const F=[];for(const[V,re]of i.entries())u.get(V)!==cs&&F.push(re);a(F)}return}v++,(async()=>{try{const F=await P.value;if(p)return;const V=await t(F,A);V===cs&&u.set(A,V),i[A]=V,v--,await y()}catch(F){if(n)E(F);else{o.push(F),v--;try{await y()}catch(V){E(V)}}}})()};(async()=>{for(let P=0;PPromise.all([t(s,a),s]),r)).filter(s=>!!s[0]).map(s=>s[1])}class po{constructor(t){Lr(this,"value");Lr(this,"next");this.value=t}}class mo{constructor(){tr(this,We,void 0);tr(this,yt,void 0);tr(this,$t,void 0);this.clear()}enqueue(t){const r=new po(t);it(this,We)?(it(this,yt).next=r,tt(this,yt,r)):(tt(this,We,r),tt(this,yt,r)),os(this,$t)._++}dequeue(){const t=it(this,We);if(t)return tt(this,We,it(this,We).next),os(this,$t)._--,t.value}clear(){tt(this,We,void 0),tt(this,yt,void 0),tt(this,$t,0)}get size(){return it(this,$t)}*[Symbol.iterator](){let t=it(this,We);for(;t;)yield t.value,t=t.next}}We=new WeakMap,yt=new WeakMap,$t=new WeakMap;function us(e){if(!((Number.isInteger(e)||e===Number.POSITIVE_INFINITY)&&e>0))throw new TypeError("Expected `concurrency` to be a number from 1 and up");const t=new mo;let r=0;const n=()=>{r--,t.size>0&&t.dequeue()()},s=async(i,o,u)=>{r++;const f=(async()=>i(...u))();o(f);try{await f}catch{}n()},a=(i,o,u)=>{t.enqueue(s.bind(void 0,i,o,u)),(async()=>(await Promise.resolve(),r0&&t.dequeue()()))()},c=(i,...o)=>new Promise(u=>{a(i,u,o)});return Object.defineProperties(c,{activeCount:{get:()=>r},pendingCount:{get:()=>t.size},clearQueue:{value:()=>{t.clear()}}}),c}class ds extends Error{constructor(t){super(),this.value=t}}const ho=async(e,t)=>t(await e),go=async e=>{const t=await Promise.all(e);if(t[1]===!0)throw new ds(t[0]);return!1};async function vo(e,t,{concurrency:r=Number.POSITIVE_INFINITY,preserveOrder:n=!0}={}){const s=us(r),a=[...e].map(i=>[i,s(ho,i,t)]),c=us(n?1:Number.POSITIVE_INFINITY);try{await Promise.all(a.map(i=>c(go,i)))}catch(i){if(i instanceof ds)return i.value;throw i}}const fs=async function({detect:{npmDependencies:e,excludedNpmDependencies:t,configFiles:r}},{pathExists:n,npmDependencies:s}){return yo(e,s)&&$o(t,s)&&await Eo(r,n)},yo=function(e,t){return e.length===0||e.some(r=>t.includes(r))},$o=function(e,t){return e.every(r=>!t.includes(r))},_o=async(e,t)=>!!await vo(e,n=>t(n)),Eo=async function(e,t){return e.length===0||await _o(e,t)},wo=function({frameworkDevCommand:e,scripts:t,runScriptCommand:r}){if(e===void 0)return[];const n=bo(t,e).map(s=>`${r} ${s}`);return n.length!==0?n:[e]},bo=function(e,t){const r=So(e,t);return r.length!==0?r:Object.keys(e).filter(s=>Po(s,e[s])).sort(ms)},ps=e=>e===-1?Number.MAX_SAFE_INTEGER:e,ms=(e,t)=>{const r=Mr.findIndex(s=>Fr(e,s)),n=Mr.findIndex(s=>Fr(t,s));return ps(r)-ps(n)},So=function(e,t){return Object.entries(e).filter(([,r])=>r.includes(t)).map(([r])=>r).sort(ms)},Po=function(e,t){return Mr.some(r=>Fr(e,r)&&!No(t))},Fr=function(e,t){return e===t||e.endsWith(`:${t}`)},Mr=["dev","serve","develop","start","run","build","web"],No=function(e){return To.some(t=>e.includes(t))},To=["netlify dev"],Vr=[{id:"astro",name:"Astro",category:"static_site_generator",detect:{npmDependencies:["astro"],excludedNpmDependencies:[],configFiles:["astro.config.mjs"]},dev:{command:"astro dev",port:3e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"astro build",directory:"dist"},staticAssetsDirectory:"public",env:{},logo:{default:"https://framework-info.netlify.app/logos/astro/light.svg",light:"https://framework-info.netlify.app/logos/astro/light.svg",dark:"https://framework-info.netlify.app/logos/astro/dark.svg"},plugins:[]},{id:"docusaurus",name:"Docusaurus",category:"static_site_generator",detect:{npmDependencies:["docusaurus"],excludedNpmDependencies:[],configFiles:["siteConfig.js"]},dev:{command:"docusaurus-start",port:3e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"docusaurus-build",directory:"build/"},staticAssetsDirectory:"static",logo:{default:"https://framework-info.netlify.app/logos/docusaurus/default.svg",light:"https://framework-info.netlify.app/logos/docusaurus/default.svg",dark:"https://framework-info.netlify.app/logos/docusaurus/default.svg"},env:{BROWSER:"none"},plugins:[]},{id:"docusaurus-v2",name:"Docusaurus 2",category:"static_site_generator",detect:{npmDependencies:["@docusaurus/core"],excludedNpmDependencies:[],configFiles:["docusaurus.config.js"]},dev:{command:"docusaurus start",port:3e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"docusaurus build",directory:"build"},staticAssetsDirectory:"static",logo:{default:"https://framework-info.netlify.app/logos/docusaurus/default.svg",light:"https://framework-info.netlify.app/logos/docusaurus/default.svg",dark:"https://framework-info.netlify.app/logos/docusaurus/default.svg"},env:{BROWSER:"none"},plugins:[]},{id:"eleventy",name:"Eleventy",category:"static_site_generator",detect:{npmDependencies:["@11ty/eleventy"],excludedNpmDependencies:[],configFiles:[".eleventy.js","eleventy.config.js","eleventy.config.cjs"]},dev:{command:"eleventy --serve",port:8080,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"eleventy",directory:"_site"},logo:{default:"https://framework-info.netlify.app/logos/eleventy/default.svg",light:"https://framework-info.netlify.app/logos/eleventy/default.svg",dark:"https://framework-info.netlify.app/logos/eleventy/default.svg"},env:{},plugins:[]},{id:"gatsby",name:"Gatsby",category:"static_site_generator",detect:{npmDependencies:["gatsby"],excludedNpmDependencies:[],configFiles:["gatsby-config.js","gatsby-config.ts"]},dev:{command:"gatsby develop",port:8e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"gatsby build",directory:"public"},staticAssetsDirectory:"static",env:{GATSBY_LOGGER:"yurnalist",GATSBY_PRECOMPILE_DEVELOP_FUNCTIONS:"true",AWS_LAMBDA_JS_RUNTIME:"nodejs14.x",NODE_VERSION:"14"},logo:{default:"https://framework-info.netlify.app/logos/gatsby/default.svg",light:"https://framework-info.netlify.app/logos/gatsby/light.svg",dark:"https://framework-info.netlify.app/logos/gatsby/dark.svg"},plugins:[{packageName:"@netlify/plugin-gatsby",condition:{minNodeVersion:"12.13.0"}}]},{id:"gridsome",name:"Gridsome",category:"static_site_generator",detect:{npmDependencies:["gridsome"],excludedNpmDependencies:[],configFiles:["gridsome.config.js"]},dev:{command:"gridsome develop",port:8080,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"gridsome build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/gridsome/default.svg",light:"https://framework-info.netlify.app/logos/gridsome/light.svg",dark:"https://framework-info.netlify.app/logos/gridsome/dark.svg"},env:{},plugins:[]},{id:"hexo",name:"Hexo",category:"static_site_generator",detect:{npmDependencies:["hexo"],excludedNpmDependencies:[],configFiles:["_config.yml"]},dev:{command:"hexo server",port:4e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"hexo generate",directory:"public"},logo:{default:"https://framework-info.netlify.app/logos/hexo/default.svg",light:"https://framework-info.netlify.app/logos/hexo/light.svg",dark:"https://framework-info.netlify.app/logos/hexo/dark.svg"},env:{},plugins:[]},{id:"hugo",name:"Hugo",category:"static_site_generator",detect:{npmDependencies:[],excludedNpmDependencies:[],configFiles:["config.json","config.toml","config.yaml","hugo.toml"]},dev:{command:"hugo server -w",port:1313,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"hugo",directory:"public"},logo:{default:"https://framework-info.netlify.app/logos/hugo/default.svg",light:"https://framework-info.netlify.app/logos/hugo/default.svg",dark:"https://framework-info.netlify.app/logos/hugo/default.svg"},env:{},plugins:[]},{id:"hydrogen",name:"Hydrogen",category:"static_site_generator",detect:{npmDependencies:["@shopify/hydrogen"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"vite",port:3e3,pollingStrategies:[{name:"TCP"}]},build:{command:"npm run build",directory:"dist/client"},logo:{default:"https://framework-info.netlify.app/logos/hydrogen/default.svg",light:"https://framework-info.netlify.app/logos/hydrogen/default.svg",dark:"https://framework-info.netlify.app/logos/hydrogen/default.svg"},env:{},plugins:[]},{id:"jekyll",name:"Jekyll",category:"static_site_generator",detect:{npmDependencies:[],excludedNpmDependencies:[],configFiles:["_config.yml","_config.yaml","_config.toml"]},dev:{command:"bundle exec jekyll serve -w",port:4e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"bundle exec jekyll build",directory:"_site"},logo:{default:"https://framework-info.netlify.app/logos/jekyll/dark.svg",light:"https://framework-info.netlify.app/logos/jekyll/light.svg",dark:"https://framework-info.netlify.app/logos/jekyll/dark.svg"},env:{},plugins:[]},{id:"middleman",name:"Middleman",category:"static_site_generator",detect:{npmDependencies:[],excludedNpmDependencies:[],configFiles:["config.rb"]},dev:{command:"bundle exec middleman server",port:4567,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"bundle exec middleman build",directory:"build"},logo:{default:"https://framework-info.netlify.app/logos/middleman/default.svg",light:"https://framework-info.netlify.app/logos/middleman/default.svg",dark:"https://framework-info.netlify.app/logos/middleman/default.svg"},env:{},plugins:[]},{id:"next-nx",name:"Next.js with Nx",category:"static_site_generator",detect:{npmDependencies:["@nrwl/next"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"nx serve",port:4200,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"nx build",directory:"dist/apps//.next"},env:{},plugins:[{packageName:"@netlify/plugin-nextjs",condition:{minNodeVersion:"10.13.0"}}]},{id:"next",name:"Next.js",category:"static_site_generator",detect:{npmDependencies:["next"],excludedNpmDependencies:["@nrwl/next"],configFiles:[]},dev:{command:"next",port:3e3,pollingStrategies:[{name:"TCP"}]},build:{command:"next build",directory:".next"},logo:{default:"https://framework-info.netlify.app/logos/nextjs/light.svg",light:"https://framework-info.netlify.app/logos/nextjs/light.svg",dark:"https://framework-info.netlify.app/logos/nextjs/dark.svg"},env:{},plugins:[{packageName:"@netlify/plugin-nextjs",condition:{minNodeVersion:"10.13.0"}}]},{id:"blitz",name:"Blitz.js",category:"static_site_generator",detect:{npmDependencies:["blitz"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"blitz dev",port:3e3,pollingStrategies:[{name:"TCP"}]},build:{command:"blitz build",directory:"out"},logo:{default:"https://framework-info.netlify.app/logos/blitz/light.svg",light:"https://framework-info.netlify.app/logos/blitz/light.svg",dark:"https://framework-info.netlify.app/logos/blitz/dark.svg"},env:{},plugins:[]},{id:"nuxt",name:"Nuxt 2",category:"static_site_generator",detect:{npmDependencies:["nuxt","nuxt-edge"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"nuxt",port:3e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"nuxt generate",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/nuxt/default.svg",light:"https://framework-info.netlify.app/logos/nuxt/light.svg",dark:"https://framework-info.netlify.app/logos/nuxt/dark.svg"},env:{},plugins:[]},{id:"nuxt3",name:"Nuxt 3",category:"static_site_generator",detect:{npmDependencies:["nuxt3"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"npm run dev",port:3e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"npm run build",directory:"dist"},env:{AWS_LAMBDA_JS_RUNTIME:"nodejs14.x",NODE_VERSION:"14"},logo:{default:"https://framework-info.netlify.app/logos/nuxt/default.svg",light:"https://framework-info.netlify.app/logos/nuxt/light.svg",dark:"https://framework-info.netlify.app/logos/nuxt/dark.svg"},plugins:[]},{id:"phenomic",name:"Phenomic",category:"static_site_generator",detect:{npmDependencies:["@phenomic/core"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"phenomic start",port:3333,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"phenomic build",directory:"public"},logo:{default:"https://framework-info.netlify.app/logos/phenomic/default.svg",light:"https://framework-info.netlify.app/logos/phenomic/default.svg",dark:"https://framework-info.netlify.app/logos/phenomic/default.svg"},env:{},plugins:[]},{id:"qwik",name:"Qwik",category:"static_site_generator",detect:{npmDependencies:["@builder.io/qwik"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"vite",port:5173,pollingStrategies:[{name:"TCP"}]},build:{command:"npm run build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/qwik/default.svg",light:"https://framework-info.netlify.app/logos/qwik/default.svg",dark:"https://framework-info.netlify.app/logos/qwik/default.svg"},env:{},plugins:[]},{id:"react-static",name:"React Static",category:"static_site_generator",detect:{npmDependencies:["react-static"],excludedNpmDependencies:[],configFiles:["static.config.js"]},dev:{command:"react-static start",port:3e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"react-static build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/react-static/default.png",light:"https://framework-info.netlify.app/logos/react-static/default.png",dark:"https://framework-info.netlify.app/logos/react-static/default.png"},env:{},plugins:[]},{id:"redwoodjs",name:"RedwoodJS",category:"static_site_generator",detect:{npmDependencies:["@redwoodjs/core"],excludedNpmDependencies:[],configFiles:["redwood.toml"]},dev:{command:"yarn rw dev",port:8910,pollingStrategies:[{name:"TCP"}]},build:{command:"rw deploy netlify",directory:"web/dist"},staticAssetsDirectory:"public",logo:{default:"https://framework-info.netlify.app/logos/redwoodjs/default.svg",light:"https://framework-info.netlify.app/logos/redwoodjs/default.svg",dark:"https://framework-info.netlify.app/logos/redwoodjs/default.svg"},env:{},plugins:[]},{id:"remix",name:"Remix",category:"static_site_generator",detect:{npmDependencies:["remix","@remix-run/netlify","@remix-run/netlify-edge"],excludedNpmDependencies:[],configFiles:["remix.config.js"]},dev:{command:"remix watch"},build:{command:"remix build",directory:"public"},logo:{default:"https://framework-info.netlify.app/logos/remix/default.svg",light:"https://framework-info.netlify.app/logos/remix/light.svg",dark:"https://framework-info.netlify.app/logos/remix/dark.svg"},env:{},plugins:[]},{id:"solid-js",name:"SolidJS",category:"static_site_generator",detect:{npmDependencies:["solid-js"],excludedNpmDependencies:["solid-start"],configFiles:[]},dev:{command:"npm run dev",port:3e3,pollingStrategies:[{name:"TCP"}]},build:{command:"npm run build",directory:"netlify"},logo:{default:"https://framework-info.netlify.app/logos/solid-js/default.svg",light:"https://framework-info.netlify.app/logos/solid-js/default.svg",dark:"https://framework-info.netlify.app/logos/solid-js/dark.svg"},env:{},plugins:[]},{id:"solid-start",name:"Solid Start",category:"static_site_generator",detect:{npmDependencies:["solid-start"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"solid-start dev",port:3e3,pollingStrategies:[{name:"TCP"}]},build:{command:"solid-start build",directory:"netlify"},logo:{default:"https://framework-info.netlify.app/logos/solid-start/default.svg",light:"https://framework-info.netlify.app/logos/solid-start/default.svg",dark:"https://framework-info.netlify.app/logos/solid-start/default.svg"},env:{},plugins:[]},{id:"stencil",name:"Stencil",category:"static_site_generator",detect:{npmDependencies:["@stencil/core"],excludedNpmDependencies:[],configFiles:["stencil.config.ts"]},dev:{command:"stencil build --dev --watch --serve",port:3333,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"stencil build",directory:"www"},logo:{default:"https://framework-info.netlify.app/logos/stencil/light.svg",light:"https://framework-info.netlify.app/logos/stencil/light.svg",dark:"https://framework-info.netlify.app/logos/stencil/dark.svg"},env:{BROWSER:"none",PORT:"3000"},plugins:[]},{id:"vuepress",name:"VuePress",category:"static_site_generator",detect:{npmDependencies:["vuepress"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"vuepress dev",port:8080,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"vuepress build",directory:".vuepress/dist"},logo:{default:"https://framework-info.netlify.app/logos/vuepress/default.svg",light:"https://framework-info.netlify.app/logos/vuepress/default.svg",dark:"https://framework-info.netlify.app/logos/vuepress/default.svg"},env:{},plugins:[]},{id:"assemble",name:"Assemble",category:"static_site_generator",detect:{npmDependencies:["assemble"],excludedNpmDependencies:[],configFiles:[]},dev:{},build:{command:"grunt build",directory:"dist"},env:{},logo:{default:"https://framework-info.netlify.app/logos/assemble/default.svg",light:"https://framework-info.netlify.app/logos/assemble/default.svg",dark:"https://framework-info.netlify.app/logos/assemble/default.svg"},plugins:[]},{id:"docpad",name:"DocPad",category:"static_site_generator",detect:{npmDependencies:["docpad"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"docpad run",port:9778,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"docpad generate",directory:"out"},env:{},plugins:[]},{id:"harp",name:"Harp",category:"static_site_generator",detect:{npmDependencies:["harp"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"harp server",port:9e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"harp compile",directory:"www"},logo:{default:"https://framework-info.netlify.app/logos/harp/default.svg",light:"https://framework-info.netlify.app/logos/harp/light.svg",dark:"https://framework-info.netlify.app/logos/harp/default.svg"},env:{},plugins:[]},{id:"metalsmith",name:"Metalsmith",category:"static_site_generator",detect:{npmDependencies:["metalsmith"],excludedNpmDependencies:[],configFiles:[]},dev:{},build:{command:"metalsmith",directory:"build"},logo:{default:"https://framework-info.netlify.app/logos/metalsmith/default.svg",light:"https://framework-info.netlify.app/logos/metalsmith/default.svg",dark:"https://framework-info.netlify.app/logos/metalsmith/default.svg"},env:{},plugins:[]},{id:"roots",name:"Roots",category:"static_site_generator",detect:{npmDependencies:["roots"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"roots watch",port:1111,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"roots compile",directory:"public"},logo:{default:"https://framework-info.netlify.app/logos/roots/default.svg",light:"https://framework-info.netlify.app/logos/roots/default.svg",dark:"https://framework-info.netlify.app/logos/roots/default.svg"},env:{},plugins:[]},{id:"wintersmith",name:"Wintersmith",category:"static_site_generator",detect:{npmDependencies:["wintersmith"],excludedNpmDependencies:[],configFiles:["config.json"]},dev:{command:"wintersmith preview",port:8080,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"wintersmith build",directory:"build"},logo:{default:"https://framework-info.netlify.app/logos/wintersmith/default.svg",light:"https://framework-info.netlify.app/logos/wintersmith/default.svg",dark:"https://framework-info.netlify.app/logos/wintersmith/default.svg"},env:{},plugins:[]},{id:"cecil",name:"Cecil",category:"static_site_generator",detect:{npmDependencies:[],excludedNpmDependencies:[],configFiles:["config.yml"]},dev:{command:"cecil serve",port:8e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"cecil build",directory:"_site"},env:{},logo:{default:"https://framework-info.netlify.app/logos/cecil/default.svg",light:"https://framework-info.netlify.app/logos/cecil/default.svg",dark:"https://framework-info.netlify.app/logos/cecil/default.svg"},plugins:[]},{id:"zola",name:"Zola",category:"static_site_generator",detect:{npmDependencies:[],excludedNpmDependencies:[],configFiles:["config.toml"]},dev:{command:"zola serve",port:1111,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"zola build",directory:"public"},env:{},plugins:[]},{id:"angular",name:"Angular",category:"frontend_framework",detect:{npmDependencies:["@angular/cli"],excludedNpmDependencies:[],configFiles:["angular.json"]},dev:{command:"ng serve",port:4200,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"ng build --prod",directory:"dist/"},logo:{default:"https://framework-info.netlify.app/logos/angular/default.svg",light:"https://framework-info.netlify.app/logos/angular/default.svg",dark:"https://framework-info.netlify.app/logos/angular/default.svg"},env:{},plugins:[]},{id:"create-react-app",name:"Create React App",category:"frontend_framework",detect:{npmDependencies:["react-scripts"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"react-scripts start",port:3e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"react-scripts build",directory:"build"},staticAssetsDirectory:"public",logo:{default:"https://framework-info.netlify.app/logos/create-react-app/default.svg",light:"https://framework-info.netlify.app/logos/create-react-app/default.svg",dark:"https://framework-info.netlify.app/logos/create-react-app/default.svg"},env:{BROWSER:"none",PORT:"3000"},plugins:[]},{id:"ember",name:"Ember.js",category:"frontend_framework",detect:{npmDependencies:["ember-cli"],excludedNpmDependencies:[],configFiles:["ember-cli-build.js"]},dev:{command:"ember serve",port:4200,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"ember build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/ember/default.svg",light:"https://framework-info.netlify.app/logos/ember/light.svg",dark:"https://framework-info.netlify.app/logos/ember/dark.svg"},env:{},plugins:[]},{id:"expo",name:"Expo",category:"frontend_framework",detect:{npmDependencies:["expo"],excludedNpmDependencies:[],configFiles:["app.json"]},dev:{command:"expo start --web",port:19006,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"expo build:web",directory:"web-build"},logo:{default:"https://framework-info.netlify.app/logos/expo/default.svg",light:"https://framework-info.netlify.app/logos/expo/light.svg",dark:"https://framework-info.netlify.app/logos/expo/dark.svg"},env:{},plugins:[]},{id:"quasar",name:"Quasar",category:"frontend_framework",detect:{npmDependencies:["@quasar/app"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"quasar dev -p 8081",port:8081,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"quasar build",directory:"dist/spa"},logo:{default:"https://framework-info.netlify.app/logos/quasar/default.svg",light:"https://framework-info.netlify.app/logos/quasar/default.svg",dark:"https://framework-info.netlify.app/logos/quasar/default.svg"},env:{},plugins:[]},{id:"quasar-v0.17",name:"Quasar",category:"frontend_framework",detect:{npmDependencies:["quasar-cli"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"quasar dev -p 8080",port:8080,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"quasar build",directory:".quasar"},logo:{default:"https://framework-info.netlify.app/logos/quasar/default.svg",light:"https://framework-info.netlify.app/logos/quasar/default.svg",dark:"https://framework-info.netlify.app/logos/quasar/default.svg"},env:{},plugins:[]},{id:"sapper",name:"Sapper",category:"frontend_framework",detect:{npmDependencies:["sapper"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"sapper dev",port:3e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"sapper export",directory:"__sapper__/export"},logo:{default:"https://framework-info.netlify.app/logos/sapper/default.svg",light:"https://framework-info.netlify.app/logos/sapper/default.svg",dark:"https://framework-info.netlify.app/logos/sapper/default.svg"},staticAssetsDirectory:"static",env:{},plugins:[]},{id:"svelte",name:"Svelte",category:"frontend_framework",detect:{npmDependencies:["svelte"],excludedNpmDependencies:["sapper","@sveltejs/kit"],configFiles:[]},dev:{command:"npm run dev",port:5e3,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"npm run build",directory:"public"},logo:{default:"https://framework-info.netlify.app/logos/svelte-kit/default.svg",light:"https://framework-info.netlify.app/logos/svelte-kit/default.svg",dark:"https://framework-info.netlify.app/logos/svelte-kit/default.svg"},env:{},plugins:[]},{id:"svelte-kit",name:"SvelteKit",category:"frontend_framework",detect:{npmDependencies:["@sveltejs/kit"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"vite dev",port:5173,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"vite build",directory:"build"},logo:{default:"https://framework-info.netlify.app/logos/svelte-kit/default.svg",light:"https://framework-info.netlify.app/logos/svelte-kit/default.svg",dark:"https://framework-info.netlify.app/logos/svelte-kit/default.svg"},staticAssetsDirectory:"static",env:{},plugins:[]},{id:"vue",name:"Vue.js",category:"frontend_framework",detect:{npmDependencies:["@vue/cli-service"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"vue-cli-service serve",port:8080,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"vue-cli-service build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/vue/default.svg",light:"https://framework-info.netlify.app/logos/vue/default.svg",dark:"https://framework-info.netlify.app/logos/vue/default.svg"},env:{},plugins:[]},{id:"brunch",name:"Brunch",category:"build_tool",detect:{npmDependencies:["brunch"],excludedNpmDependencies:[],configFiles:["brunch-config.js"]},dev:{command:"brunch watch --server",port:3333,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"brunch build",directory:"public"},env:{},logo:{default:"https://framework-info.netlify.app/logos/brunch/default.svg",light:"https://framework-info.netlify.app/logos/brunch/default.svg",dark:"https://framework-info.netlify.app/logos/brunch/default.svg"},plugins:[]},{id:"parcel",name:"Parcel",category:"build_tool",detect:{npmDependencies:["parcel-bundler","parcel"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"parcel",port:1234,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"parcel build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/parcel/default.svg",light:"https://framework-info.netlify.app/logos/parcel/default.svg",dark:"https://framework-info.netlify.app/logos/parcel/default.svg"},env:{},plugins:[]},{id:"grunt",name:"Grunt",category:"build_tool",detect:{npmDependencies:["grunt"],excludedNpmDependencies:[],configFiles:[]},dev:{},build:{command:"grunt build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/grunt/default.svg",light:"https://framework-info.netlify.app/logos/grunt/default.svg",dark:"https://framework-info.netlify.app/logos/grunt/default.svg"},env:{},plugins:[]},{id:"gulp",name:"gulp.js",category:"build_tool",detect:{npmDependencies:["gulp"],excludedNpmDependencies:[],configFiles:[]},dev:{},build:{command:"gulp build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/gulp/default.svg",light:"https://framework-info.netlify.app/logos/gulp/default.svg",dark:"https://framework-info.netlify.app/logos/gulp/default.svg"},env:{},plugins:[]},{id:"vite",name:"Vite",category:"build_tool",detect:{npmDependencies:["vite"],excludedNpmDependencies:["@shopify/hydrogen","@builder.io/qwik","solid-start","solid-js","@sveltejs/kit"],configFiles:[]},dev:{command:"vite",port:5173,pollingStrategies:[{name:"TCP"}]},build:{command:"vite build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/vite/default.svg",light:"https://framework-info.netlify.app/logos/vite/default.svg",dark:"https://framework-info.netlify.app/logos/vite/default.svg"},env:{},plugins:[]},{id:"wmr",name:"WMR",category:"build_tool",detect:{npmDependencies:["wmr"],excludedNpmDependencies:[],configFiles:[]},dev:{command:"wmr",port:8080,pollingStrategies:[{name:"TCP"},{name:"HTTP"}]},build:{command:"wmr build",directory:"dist"},logo:{default:"https://framework-info.netlify.app/logos/wmr/default.svg",light:"https://framework-info.netlify.app/logos/wmr/default.svg",dark:"https://framework-info.netlify.app/logos/wmr/default.svg"},env:{},plugins:[]}];function Ro(e,t){const r={};if(Array.isArray(t))for(const n of t){const s=Object.getOwnPropertyDescriptor(e,n);s!=null&&s.enumerable&&Object.defineProperty(r,n,s)}else for(const n of Reflect.ownKeys(e)){const s=Object.getOwnPropertyDescriptor(e,n);if(s.enumerable){const a=e[n];t(n,a,e)&&Object.defineProperty(r,n,s)}}return r}function hs(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}const ko=function(e){if(e===void 0)return{npmDependencies:[],scripts:{}};const t=Io(e),r=Oo(e);return{npmDependencies:t,scripts:r}},Io=function({dependencies:e,devDependencies:t}){return[...gs(e),...gs(t)]},gs=function(e){return hs(e)?Object.keys(e):[]},Oo=function({scripts:e}){return hs(e)?Ro(e,Do):{}},Do=function(e,t){return typeof t=="string"};var Co=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function vs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qr={exports:{}},ys={},nt={},ft={},Ft={},ee={},Mt={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class r extends t{constructor(P){if(super(),!e.IDENTIFIER.test(P))throw new Error("CodeGen: name must be a valid identifier");this.str=P}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=r;class n extends t{constructor(P){super(),this._items=typeof P=="string"?[P]:P}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const P=this._items[0];return P===""||P==='""'}get str(){var P;return(P=this._str)!==null&&P!==void 0?P:this._str=this._items.reduce((A,F)=>`${A}${F}`,"")}get names(){var P;return(P=this._names)!==null&&P!==void 0?P:this._names=this._items.reduce((A,F)=>(F instanceof r&&(A[F.str]=(A[F.str]||0)+1),A),{})}}e._Code=n,e.nil=new n("");function s(y,...P){const A=[y[0]];let F=0;for(;F{if(p.scopePath===void 0)throw new Error(`CodeGen: name "${p}" has no value`);return(0,t._)`${u}${p.scopePath}`})}scopeCode(u=this._values,f,p){return this._reduceValues(u,b=>{if(b.value===void 0)throw new Error(`CodeGen: name "${b}" has no value`);return b.value.code},f,p)}_reduceValues(u,f,p={},b){let v=t.nil;for(const m in u){const S=u[m];if(!S)continue;const E=p[m]=p[m]||new Map;S.forEach(y=>{if(E.has(y))return;E.set(y,n.Started);let P=f(y);if(P){const A=this.opts.es5?e.varKinds.var:e.varKinds.const;v=(0,t._)`${v}${A} ${y} = ${P};${this.opts._n}`}else if(P=b==null?void 0:b(y))v=(0,t._)`${v}${P}${this.opts._n}`;else throw new r(y);E.set(y,n.Completed)})}return v}}e.ValueScope=i})(Ur),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Mt,r=Ur;var n=Mt;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return n._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return n.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return n.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return n.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return n.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return n.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return n.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return n.Name}});var s=Ur;Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return s.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return s.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return s.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return s.varKinds}}),e.operators={GT:new t._Code(">"),GTE:new t._Code(">="),LT:new t._Code("<"),LTE:new t._Code("<="),EQ:new t._Code("==="),NEQ:new t._Code("!=="),NOT:new t._Code("!"),OR:new t._Code("||"),AND:new t._Code("&&"),ADD:new t._Code("+")};class a{optimizeNodes(){return this}optimizeNames(l,h){return this}}class c extends a{constructor(l,h,I){super(),this.varKind=l,this.name=h,this.rhs=I}render({es5:l,_n:h}){const I=l?r.varKinds.var:this.varKind,q=this.rhs===void 0?"":` = ${this.rhs}`;return`${I} ${this.name}${q};`+h}optimizeNames(l,h){if(l[this.name.str])return this.rhs&&(this.rhs=j(this.rhs,l,h)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class i extends a{constructor(l,h,I){super(),this.lhs=l,this.rhs=h,this.sideEffects=I}render({_n:l}){return`${this.lhs} = ${this.rhs};`+l}optimizeNames(l,h){if(!(this.lhs instanceof t.Name&&!l[this.lhs.str]&&!this.sideEffects))return this.rhs=j(this.rhs,l,h),this}get names(){const l=this.lhs instanceof t.Name?{}:{...this.lhs.names};return L(l,this.rhs)}}class o extends i{constructor(l,h,I,q){super(l,I,q),this.op=h}render({_n:l}){return`${this.lhs} ${this.op}= ${this.rhs};`+l}}class u extends a{constructor(l){super(),this.label=l,this.names={}}render({_n:l}){return`${this.label}:`+l}}class f extends a{constructor(l){super(),this.label=l,this.names={}}render({_n:l}){return`break${this.label?` ${this.label}`:""};`+l}}class p extends a{constructor(l){super(),this.error=l}render({_n:l}){return`throw ${this.error};`+l}get names(){return this.error.names}}class b extends a{constructor(l){super(),this.code=l}render({_n:l}){return`${this.code};`+l}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(l,h){return this.code=j(this.code,l,h),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class v extends a{constructor(l=[]){super(),this.nodes=l}render(l){return this.nodes.reduce((h,I)=>h+I.render(l),"")}optimizeNodes(){const{nodes:l}=this;let h=l.length;for(;h--;){const I=l[h].optimizeNodes();Array.isArray(I)?l.splice(h,1,...I):I?l[h]=I:l.splice(h,1)}return l.length>0?this:void 0}optimizeNames(l,h){const{nodes:I}=this;let q=I.length;for(;q--;){const x=I[q];x.optimizeNames(l,h)||(K(l,x.names),I.splice(q,1))}return I.length>0?this:void 0}get names(){return this.nodes.reduce((l,h)=>de(l,h.names),{})}}class m extends v{render(l){return"{"+l._n+super.render(l)+"}"+l._n}}class S extends v{}class E extends m{}E.kind="else";class y extends m{constructor(l,h){super(h),this.condition=l}render(l){let h=`if(${this.condition})`+super.render(l);return this.else&&(h+="else "+this.else.render(l)),h}optimizeNodes(){super.optimizeNodes();const l=this.condition;if(l===!0)return this.nodes;let h=this.else;if(h){const I=h.optimizeNodes();h=this.else=Array.isArray(I)?new E(I):I}if(h)return l===!1?h instanceof y?h:h.nodes:this.nodes.length?this:new y(z(l),h instanceof y?[h]:h.nodes);if(!(l===!1||!this.nodes.length))return this}optimizeNames(l,h){var I;if(this.else=(I=this.else)===null||I===void 0?void 0:I.optimizeNames(l,h),!!(super.optimizeNames(l,h)||this.else))return this.condition=j(this.condition,l,h),this}get names(){const l=super.names;return L(l,this.condition),this.else&&de(l,this.else.names),l}}y.kind="if";class P extends m{}P.kind="for";class A extends P{constructor(l){super(),this.iteration=l}render(l){return`for(${this.iteration})`+super.render(l)}optimizeNames(l,h){if(super.optimizeNames(l,h))return this.iteration=j(this.iteration,l,h),this}get names(){return de(super.names,this.iteration.names)}}class F extends P{constructor(l,h,I,q){super(),this.varKind=l,this.name=h,this.from=I,this.to=q}render(l){const h=l.es5?r.varKinds.var:this.varKind,{name:I,from:q,to:x}=this;return`for(${h} ${I}=${q}; ${I}<${x}; ${I}++)`+super.render(l)}get names(){const l=L(super.names,this.from);return L(l,this.to)}}class V extends P{constructor(l,h,I,q){super(),this.loop=l,this.varKind=h,this.name=I,this.iterable=q}render(l){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(l)}optimizeNames(l,h){if(super.optimizeNames(l,h))return this.iterable=j(this.iterable,l,h),this}get names(){return de(super.names,this.iterable.names)}}class re extends m{constructor(l,h,I){super(),this.name=l,this.args=h,this.async=I}render(l){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(l)}}re.kind="func";class ce extends v{render(l){return"return "+super.render(l)}}ce.kind="return";class Ne extends m{render(l){let h="try"+super.render(l);return this.catch&&(h+=this.catch.render(l)),this.finally&&(h+=this.finally.render(l)),h}optimizeNodes(){var l,h;return super.optimizeNodes(),(l=this.catch)===null||l===void 0||l.optimizeNodes(),(h=this.finally)===null||h===void 0||h.optimizeNodes(),this}optimizeNames(l,h){var I,q;return super.optimizeNames(l,h),(I=this.catch)===null||I===void 0||I.optimizeNames(l,h),(q=this.finally)===null||q===void 0||q.optimizeNames(l,h),this}get names(){const l=super.names;return this.catch&&de(l,this.catch.names),this.finally&&de(l,this.finally.names),l}}class Ce extends m{constructor(l){super(),this.error=l}render(l){return`catch(${this.error})`+super.render(l)}}Ce.kind="catch";class je extends m{render(l){return"finally"+super.render(l)}}je.kind="finally";class ke{constructor(l,h={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...h,_n:h.lines?` `:""},this._extScope=l,this._scope=new r.Scope({parent:l}),this._nodes=[new S]}toString(){return this._root.render(this.opts)}name(l){return this._scope.name(l)}scopeName(l){return this._extScope.name(l)}scopeValue(l,h){const I=this._extScope.value(l,h);return(this._values[I.prefix]||(this._values[I.prefix]=new Set)).add(I),I}getScopeValue(l,h){return this._extScope.getValue(l,h)}scopeRefs(l){return this._extScope.scopeRefs(l,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(l,h,I,q){const x=this._scope.toName(h);return I!==void 0&&q&&(this._constants[x.str]=I),this._leafNode(new c(l,x,I)),x}const(l,h,I){return this._def(r.varKinds.const,l,h,I)}let(l,h,I){return this._def(r.varKinds.let,l,h,I)}var(l,h,I){return this._def(r.varKinds.var,l,h,I)}assign(l,h,I){return this._leafNode(new i(l,h,I))}add(l,h){return this._leafNode(new o(l,e.operators.ADD,h))}code(l){return typeof l=="function"?l():l!==t.nil&&this._leafNode(new b(l)),this}object(...l){const h=["{"];for(const[I,q]of l)h.length>1&&h.push(","),h.push(I),(I!==q||this.opts.es5)&&(h.push(":"),(0,t.addCodeArg)(h,q));return h.push("}"),new t._Code(h)}if(l,h,I){if(this._blockNode(new y(l)),h&&I)this.code(h).else().code(I).endIf();else if(h)this.code(h).endIf();else if(I)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(l){return this._elseNode(new y(l))}else(){return this._elseNode(new E)}endIf(){return this._endBlockNode(y,E)}_for(l,h){return this._blockNode(l),h&&this.code(h).endFor(),this}for(l,h){return this._for(new A(l),h)}forRange(l,h,I,q,x=this.opts.es5?r.varKinds.var:r.varKinds.let){const ne=this._scope.toName(l);return this._for(new F(x,ne,h,I),()=>q(ne))}forOf(l,h,I,q=r.varKinds.const){const x=this._scope.toName(l);if(this.opts.es5){const ne=h instanceof t.Name?h:this.var("_arr",h);return this.forRange("_i",0,(0,t._)`${ne}.length`,se=>{this.var(x,(0,t._)`${ne}[${se}]`),I(x)})}return this._for(new V("of",q,x,h),()=>I(x))}forIn(l,h,I,q=this.opts.es5?r.varKinds.var:r.varKinds.const){if(this.opts.ownProperties)return this.forOf(l,(0,t._)`Object.keys(${h})`,I);const x=this._scope.toName(l);return this._for(new V("in",q,x,h),()=>I(x))}endFor(){return this._endBlockNode(P)}label(l){return this._leafNode(new u(l))}break(l){return this._leafNode(new f(l))}return(l){const h=new ce;if(this._blockNode(h),this.code(l),h.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ce)}try(l,h,I){if(!h&&!I)throw new Error('CodeGen: "try" without "catch" and "finally"');const q=new Ne;if(this._blockNode(q),this.code(l),h){const x=this.name("e");this._currNode=q.catch=new Ce(x),h(x)}return I&&(this._currNode=q.finally=new je,this.code(I)),this._endBlockNode(Ce,je)}throw(l){return this._leafNode(new p(l))}block(l,h){return this._blockStarts.push(this._nodes.length),l&&this.code(l).endBlock(h),this}endBlock(l){const h=this._blockStarts.pop();if(h===void 0)throw new Error("CodeGen: not in self-balancing block");const I=this._nodes.length-h;if(I<0||l!==void 0&&I!==l)throw new Error(`CodeGen: wrong number of nodes: ${I} vs ${l} expected`);return this._nodes.length=h,this}func(l,h=t.nil,I,q){return this._blockNode(new re(l,h,I)),q&&this.code(q).endFunc(),this}endFunc(){return this._endBlockNode(re)}optimize(l=1){for(;l-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(l){return this._currNode.nodes.push(l),this}_blockNode(l){this._currNode.nodes.push(l),this._nodes.push(l)}_endBlockNode(l,h){const I=this._currNode;if(I instanceof l||h&&I instanceof h)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${h?`${l.kind}/${h.kind}`:l.kind}"`)}_elseNode(l){const h=this._currNode;if(!(h instanceof y))throw new Error('CodeGen: "else" without "if"');return this._currNode=h.else=l,this}get _root(){return this._nodes[0]}get _currNode(){const l=this._nodes;return l[l.length-1]}set _currNode(l){const h=this._nodes;h[h.length-1]=l}}e.CodeGen=ke;function de(N,l){for(const h in l)N[h]=(N[h]||0)+(l[h]||0);return N}function L(N,l){return l instanceof t._CodeOrName?de(N,l.names):N}function j(N,l,h){if(N instanceof t.Name)return I(N);if(!q(N))return N;return new t._Code(N._items.reduce((x,ne)=>(ne instanceof t.Name&&(ne=I(ne)),ne instanceof t._Code?x.push(...ne._items):x.push(ne),x),[]));function I(x){const ne=h[x.str];return ne===void 0||l[x.str]!==1?x:(delete l[x.str],ne)}function q(x){return x instanceof t._Code&&x._items.some(ne=>ne instanceof t.Name&&l[ne.str]===1&&h[ne.str]!==void 0)}}function K(N,l){for(const h in l)N[h]=(N[h]||0)-(l[h]||0)}function z(N){return typeof N=="boolean"||typeof N=="number"||N===null?!N:(0,t._)`!${O(N)}`}e.not=z;const X=_(e.operators.AND);function G(...N){return N.reduce(X)}e.and=G;const W=_(e.operators.OR);function D(...N){return N.reduce(W)}e.or=D;function _(N){return(l,h)=>l===t.nil?h:h===t.nil?l:(0,t._)`${O(l)} ${N} ${O(h)}`}function O(N){return N instanceof t.Name?N:(0,t._)`(${N})`}}(ee);var U={};Object.defineProperty(U,"__esModule",{value:!0}),U.checkStrictMode=U.getErrorPath=U.Type=U.useFunc=U.setEvaluated=U.evaluatedPropsToName=U.mergeEvaluated=U.eachItem=U.unescapeJsonPointer=U.escapeJsonPointer=U.escapeFragment=U.unescapeFragment=U.schemaRefOrVal=U.schemaHasRulesButRef=U.schemaHasRules=U.checkUnknownRules=U.alwaysValidSchema=U.toHash=void 0;const ue=ee,Ao=Mt;function jo(e){const t={};for(const r of e)t[r]=!0;return t}U.toHash=jo;function Lo(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:($s(e,t),!_s(t,e.self.RULES.all))}U.alwaysValidSchema=Lo;function $s(e,t=e.schema){const{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;const s=n.RULES.keywords;for(const a in t)s[a]||Ps(e,`unknown keyword: "${a}"`)}U.checkUnknownRules=$s;function _s(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return!0;return!1}U.schemaHasRules=_s;function Fo(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}U.schemaHasRulesButRef=Fo;function Mo({topSchemaRef:e,schemaPath:t},r,n,s){if(!s){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ue._)`${r}`}return(0,ue._)`${e}${t}${(0,ue.getProperty)(n)}`}U.schemaRefOrVal=Mo;function Vo(e){return Es(decodeURIComponent(e))}U.unescapeFragment=Vo;function qo(e){return encodeURIComponent(xr(e))}U.escapeFragment=qo;function xr(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}U.escapeJsonPointer=xr;function Es(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}U.unescapeJsonPointer=Es;function Uo(e,t){if(Array.isArray(e))for(const r of e)t(r);else t(e)}U.eachItem=Uo;function ws({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(s,a,c,i)=>{const o=c===void 0?a:c instanceof ue.Name?(a instanceof ue.Name?e(s,a,c):t(s,a,c),c):a instanceof ue.Name?(t(s,c,a),a):r(a,c);return i===ue.Name&&!(o instanceof ue.Name)?n(s,o):o}}U.mergeEvaluated={props:ws({mergeNames:(e,t,r)=>e.if((0,ue._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,ue._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,ue._)`${r} || {}`).code((0,ue._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,ue._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,ue._)`${r} || {}`),Gr(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:bs}),items:ws({mergeNames:(e,t,r)=>e.if((0,ue._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,ue._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,ue._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,ue._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function bs(e,t){if(t===!0)return e.var("props",!0);const r=e.var("props",(0,ue._)`{}`);return t!==void 0&&Gr(e,r,t),r}U.evaluatedPropsToName=bs;function Gr(e,t,r){Object.keys(r).forEach(n=>e.assign((0,ue._)`${t}${(0,ue.getProperty)(n)}`,!0))}U.setEvaluated=Gr;const Ss={};function xo(e,t){return e.scopeValue("func",{ref:t,code:Ss[t.code]||(Ss[t.code]=new Ao._Code(t.code))})}U.useFunc=xo;var zr;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(zr||(U.Type=zr={}));function Go(e,t,r){if(e instanceof ue.Name){const n=t===zr.Num;return r?n?(0,ue._)`"[" + ${e} + "]"`:(0,ue._)`"['" + ${e} + "']"`:n?(0,ue._)`"/" + ${e}`:(0,ue._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ue.getProperty)(e).toString():"/"+xr(e)}U.getErrorPath=Go;function Ps(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}U.checkStrictMode=Ps;var Je={};Object.defineProperty(Je,"__esModule",{value:!0});const De=ee,zo={data:new De.Name("data"),valCxt:new De.Name("valCxt"),instancePath:new De.Name("instancePath"),parentData:new De.Name("parentData"),parentDataProperty:new De.Name("parentDataProperty"),rootData:new De.Name("rootData"),dynamicAnchors:new De.Name("dynamicAnchors"),vErrors:new De.Name("vErrors"),errors:new De.Name("errors"),this:new De.Name("this"),self:new De.Name("self"),scope:new De.Name("scope"),json:new De.Name("json"),jsonPos:new De.Name("jsonPos"),jsonLen:new De.Name("jsonLen"),jsonPart:new De.Name("jsonPart")};Je.default=zo,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=ee,r=U,n=Je;e.keywordError={message:({keyword:E})=>(0,t.str)`must pass "${E}" keyword validation`},e.keyword$DataError={message:({keyword:E,schemaType:y})=>y?(0,t.str)`"${E}" keyword must be ${y} ($data)`:(0,t.str)`"${E}" keyword is invalid ($data)`};function s(E,y=e.keywordError,P,A){const{it:F}=E,{gen:V,compositeRule:re,allErrors:ce}=F,Ne=p(E,y,P);A??(re||ce)?o(V,Ne):u(F,(0,t._)`[${Ne}]`)}e.reportError=s;function a(E,y=e.keywordError,P){const{it:A}=E,{gen:F,compositeRule:V,allErrors:re}=A,ce=p(E,y,P);o(F,ce),V||re||u(A,n.default.vErrors)}e.reportExtraError=a;function c(E,y){E.assign(n.default.errors,y),E.if((0,t._)`${n.default.vErrors} !== null`,()=>E.if(y,()=>E.assign((0,t._)`${n.default.vErrors}.length`,y),()=>E.assign(n.default.vErrors,null)))}e.resetErrorsCount=c;function i({gen:E,keyword:y,schemaValue:P,data:A,errsCount:F,it:V}){if(F===void 0)throw new Error("ajv implementation error");const re=E.name("err");E.forRange("i",F,n.default.errors,ce=>{E.const(re,(0,t._)`${n.default.vErrors}[${ce}]`),E.if((0,t._)`${re}.instancePath === undefined`,()=>E.assign((0,t._)`${re}.instancePath`,(0,t.strConcat)(n.default.instancePath,V.errorPath))),E.assign((0,t._)`${re}.schemaPath`,(0,t.str)`${V.errSchemaPath}/${y}`),V.opts.verbose&&(E.assign((0,t._)`${re}.schema`,P),E.assign((0,t._)`${re}.data`,A))})}e.extendErrors=i;function o(E,y){const P=E.const("err",y);E.if((0,t._)`${n.default.vErrors} === null`,()=>E.assign(n.default.vErrors,(0,t._)`[${P}]`),(0,t._)`${n.default.vErrors}.push(${P})`),E.code((0,t._)`${n.default.errors}++`)}function u(E,y){const{gen:P,validateName:A,schemaEnv:F}=E;F.$async?P.throw((0,t._)`new ${E.ValidationError}(${y})`):(P.assign((0,t._)`${A}.errors`,y),P.return(!1))}const f={keyword:new t.Name("keyword"),schemaPath:new t.Name("schemaPath"),params:new t.Name("params"),propertyName:new t.Name("propertyName"),message:new t.Name("message"),schema:new t.Name("schema"),parentSchema:new t.Name("parentSchema")};function p(E,y,P){const{createErrors:A}=E.it;return A===!1?(0,t._)`{}`:b(E,y,P)}function b(E,y,P={}){const{gen:A,it:F}=E,V=[v(F,P),m(E,P)];return S(E,y,V),A.object(...V)}function v({errorPath:E},{instancePath:y}){const P=y?(0,t.str)`${E}${(0,r.getErrorPath)(y,r.Type.Str)}`:E;return[n.default.instancePath,(0,t.strConcat)(n.default.instancePath,P)]}function m({keyword:E,it:{errSchemaPath:y}},{schemaPath:P,parentSchema:A}){let F=A?y:(0,t.str)`${y}/${E}`;return P&&(F=(0,t.str)`${F}${(0,r.getErrorPath)(P,r.Type.Str)}`),[f.schemaPath,F]}function S(E,{params:y,message:P},A){const{keyword:F,data:V,schemaValue:re,it:ce}=E,{opts:Ne,propertyName:Ce,topSchemaRef:je,schemaPath:ke}=ce;A.push([f.keyword,F],[f.params,typeof y=="function"?y(E):y||(0,t._)`{}`]),Ne.messages&&A.push([f.message,typeof P=="function"?P(E):P]),Ne.verbose&&A.push([f.schema,re],[f.parentSchema,(0,t._)`${je}${ke}`],[n.default.data,V]),Ce&&A.push([f.propertyName,Ce])}}(Ft);var Ns;function Ho(){if(Ns)return ft;Ns=1,Object.defineProperty(ft,"__esModule",{value:!0}),ft.boolOrEmptySchema=ft.topBoolOrEmptySchema=void 0;const e=Ft,t=ee,r=Je,n={message:"boolean schema is false"};function s(i){const{gen:o,schema:u,validateName:f}=i;u===!1?c(i,!1):typeof u=="object"&&u.$async===!0?o.return(r.default.data):(o.assign((0,t._)`${f}.errors`,null),o.return(!0))}ft.topBoolOrEmptySchema=s;function a(i,o){const{gen:u,schema:f}=i;f===!1?(u.var(o,!1),c(i)):u.var(o,!0)}ft.boolOrEmptySchema=a;function c(i,o){const{gen:u,data:f}=i,p={gen:u,keyword:"false schema",data:f,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:i};(0,e.reportError)(p,n,void 0,o)}return ft}var be={},pt={};Object.defineProperty(pt,"__esModule",{value:!0}),pt.getRules=pt.isJSONType=void 0;const Ko=["string","number","integer","boolean","null","object","array"],Xo=new Set(Ko);function Bo(e){return typeof e=="string"&&Xo.has(e)}pt.isJSONType=Bo;function Jo(){const 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:{}}}pt.getRules=Jo;var st={};Object.defineProperty(st,"__esModule",{value:!0}),st.shouldUseRule=st.shouldUseGroup=st.schemaHasRulesForType=void 0;function Wo({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==!0&&Ts(e,n)}st.schemaHasRulesForType=Wo;function Ts(e,t){return t.rules.some(r=>Rs(e,r))}st.shouldUseGroup=Ts;function Rs(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))}st.shouldUseRule=Rs,Object.defineProperty(be,"__esModule",{value:!0}),be.reportTypeError=be.checkDataTypes=be.checkDataType=be.coerceAndCheckDataType=be.getJSONTypes=be.getSchemaTypes=be.DataType=void 0;const Yo=pt,Qo=st,Zo=Ft,Z=ee,ks=U;var Pt;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(Pt||(be.DataType=Pt={}));function ei(e){const t=Is(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}be.getSchemaTypes=ei;function Is(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(Yo.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}be.getJSONTypes=Is;function ti(e,t){const{gen:r,data:n,opts:s}=e,a=ri(t,s.coerceTypes),c=t.length>0&&!(a.length===0&&t.length===1&&(0,Qo.schemaHasRulesForType)(e,t[0]));if(c){const i=Kr(t,n,s.strictNumbers,Pt.Wrong);r.if(i,()=>{a.length?ni(e,t,a):Xr(e)})}return c}be.coerceAndCheckDataType=ti;const Os=new Set(["string","number","integer","boolean","null"]);function ri(e,t){return t?e.filter(r=>Os.has(r)||t==="array"&&r==="array"):[]}function ni(e,t,r){const{gen:n,data:s,opts:a}=e,c=n.let("dataType",(0,Z._)`typeof ${s}`),i=n.let("coerced",(0,Z._)`undefined`);a.coerceTypes==="array"&&n.if((0,Z._)`${c} == 'object' && Array.isArray(${s}) && ${s}.length == 1`,()=>n.assign(s,(0,Z._)`${s}[0]`).assign(c,(0,Z._)`typeof ${s}`).if(Kr(t,s,a.strictNumbers),()=>n.assign(i,s))),n.if((0,Z._)`${i} !== undefined`);for(const u of r)(Os.has(u)||u==="array"&&a.coerceTypes==="array")&&o(u);n.else(),Xr(e),n.endIf(),n.if((0,Z._)`${i} !== undefined`,()=>{n.assign(s,i),si(e,i)});function o(u){switch(u){case"string":n.elseIf((0,Z._)`${c} == "number" || ${c} == "boolean"`).assign(i,(0,Z._)`"" + ${s}`).elseIf((0,Z._)`${s} === null`).assign(i,(0,Z._)`""`);return;case"number":n.elseIf((0,Z._)`${c} == "boolean" || ${s} === null || (${c} == "string" && ${s} && ${s} == +${s})`).assign(i,(0,Z._)`+${s}`);return;case"integer":n.elseIf((0,Z._)`${c} === "boolean" || ${s} === null || (${c} === "string" && ${s} && ${s} == +${s} && !(${s} % 1))`).assign(i,(0,Z._)`+${s}`);return;case"boolean":n.elseIf((0,Z._)`${s} === "false" || ${s} === 0 || ${s} === null`).assign(i,!1).elseIf((0,Z._)`${s} === "true" || ${s} === 1`).assign(i,!0);return;case"null":n.elseIf((0,Z._)`${s} === "" || ${s} === 0 || ${s} === false`),n.assign(i,null);return;case"array":n.elseIf((0,Z._)`${c} === "string" || ${c} === "number" || ${c} === "boolean" || ${s} === null`).assign(i,(0,Z._)`[${s}]`)}}}function si({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,Z._)`${t} !== undefined`,()=>e.assign((0,Z._)`${t}[${r}]`,n))}function Hr(e,t,r,n=Pt.Correct){const s=n===Pt.Correct?Z.operators.EQ:Z.operators.NEQ;let a;switch(e){case"null":return(0,Z._)`${t} ${s} null`;case"array":a=(0,Z._)`Array.isArray(${t})`;break;case"object":a=(0,Z._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=c((0,Z._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=c();break;default:return(0,Z._)`typeof ${t} ${s} ${e}`}return n===Pt.Correct?a:(0,Z.not)(a);function c(i=Z.nil){return(0,Z.and)((0,Z._)`typeof ${t} == "number"`,i,r?(0,Z._)`isFinite(${t})`:Z.nil)}}be.checkDataType=Hr;function Kr(e,t,r,n){if(e.length===1)return Hr(e[0],t,r,n);let s;const a=(0,ks.toHash)(e);if(a.array&&a.object){const c=(0,Z._)`typeof ${t} != "object"`;s=a.null?c:(0,Z._)`!${t} || ${c}`,delete a.null,delete a.array,delete a.object}else s=Z.nil;a.number&&delete a.integer;for(const c in a)s=(0,Z.and)(s,Hr(c,t,r,n));return s}be.checkDataTypes=Kr;const ai={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,Z._)`{type: ${e}}`:(0,Z._)`{type: ${t}}`};function Xr(e){const t=oi(e);(0,Zo.reportError)(t,ai)}be.reportTypeError=Xr;function oi(e){const{gen:t,data:r,schema:n}=e,s=(0,ks.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:s,schemaValue:s,parentSchema:n,params:{},it:e}}var Vt={},Ds;function ii(){if(Ds)return Vt;Ds=1,Object.defineProperty(Vt,"__esModule",{value:!0}),Vt.assignDefaults=void 0;const e=ee,t=U;function r(s,a){const{properties:c,items:i}=s.schema;if(a==="object"&&c)for(const o in c)n(s,o,c[o].default);else a==="array"&&Array.isArray(i)&&i.forEach((o,u)=>n(s,u,o.default))}Vt.assignDefaults=r;function n(s,a,c){const{gen:i,compositeRule:o,data:u,opts:f}=s;if(c===void 0)return;const p=(0,e._)`${u}${(0,e.getProperty)(a)}`;if(o){(0,t.checkStrictMode)(s,`default is ignored for: ${p}`);return}let b=(0,e._)`${p} === undefined`;f.useDefaults==="empty"&&(b=(0,e._)`${b} || ${p} === null || ${p} === ""`),i.if(b,(0,e._)`${p} = ${(0,e.stringify)(c)}`)}return Vt}var Ge={},te={};Object.defineProperty(te,"__esModule",{value:!0}),te.validateUnion=te.validateArray=te.usePattern=te.callValidateCode=te.schemaProperties=te.allSchemaProperties=te.noPropertyInData=te.propertyInData=te.isOwnProperty=te.hasPropFunc=te.reportMissingProp=te.checkMissingProp=te.checkReportMissingProp=void 0;const pe=ee,Br=U,lt=Je,li=U;function ci(e,t){const{gen:r,data:n,it:s}=e;r.if(Wr(r,n,t,s.opts.ownProperties),()=>{e.setParams({missingProperty:(0,pe._)`${t}`},!0),e.error()})}te.checkReportMissingProp=ci;function ui({gen:e,data:t,it:{opts:r}},n,s){return(0,pe.or)(...n.map(a=>(0,pe.and)(Wr(e,t,a,r.ownProperties),(0,pe._)`${s} = ${a}`)))}te.checkMissingProp=ui;function di(e,t){e.setParams({missingProperty:t},!0),e.error()}te.reportMissingProp=di;function Cs(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,pe._)`Object.prototype.hasOwnProperty`})}te.hasPropFunc=Cs;function Jr(e,t,r){return(0,pe._)`${Cs(e)}.call(${t}, ${r})`}te.isOwnProperty=Jr;function fi(e,t,r,n){const s=(0,pe._)`${t}${(0,pe.getProperty)(r)} !== undefined`;return n?(0,pe._)`${s} && ${Jr(e,t,r)}`:s}te.propertyInData=fi;function Wr(e,t,r,n){const s=(0,pe._)`${t}${(0,pe.getProperty)(r)} === undefined`;return n?(0,pe.or)(s,(0,pe.not)(Jr(e,t,r))):s}te.noPropertyInData=Wr;function As(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}te.allSchemaProperties=As;function pi(e,t){return As(t).filter(r=>!(0,Br.alwaysValidSchema)(e,t[r]))}te.schemaProperties=pi;function mi({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:s,errorPath:a},it:c},i,o,u){const f=u?(0,pe._)`${e}, ${t}, ${n}${s}`:t,p=[[lt.default.instancePath,(0,pe.strConcat)(lt.default.instancePath,a)],[lt.default.parentData,c.parentData],[lt.default.parentDataProperty,c.parentDataProperty],[lt.default.rootData,lt.default.rootData]];c.opts.dynamicRef&&p.push([lt.default.dynamicAnchors,lt.default.dynamicAnchors]);const b=(0,pe._)`${f}, ${r.object(...p)}`;return o!==pe.nil?(0,pe._)`${i}.call(${o}, ${b})`:(0,pe._)`${i}(${b})`}te.callValidateCode=mi;const hi=(0,pe._)`new RegExp`;function gi({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"",{regExp:s}=t.code,a=s(r,n);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,pe._)`${s.code==="new RegExp"?hi:(0,li.useFunc)(e,s)}(${r}, ${n})`})}te.usePattern=gi;function vi(e){const{gen:t,data:r,keyword:n,it:s}=e,a=t.name("valid");if(s.allErrors){const i=t.let("valid",!0);return c(()=>t.assign(i,!1)),i}return t.var(a,!0),c(()=>t.break()),a;function c(i){const o=t.const("len",(0,pe._)`${r}.length`);t.forRange("i",0,o,u=>{e.subschema({keyword:n,dataProp:u,dataPropType:Br.Type.Num},a),t.if((0,pe.not)(a),i)})}}te.validateArray=vi;function yi(e){const{gen:t,schema:r,keyword:n,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(o=>(0,Br.alwaysValidSchema)(s,o))&&!s.opts.unevaluated)return;const c=t.let("valid",!1),i=t.name("_valid");t.block(()=>r.forEach((o,u)=>{const f=e.subschema({keyword:n,schemaProp:u,compositeRule:!0},i);t.assign(c,(0,pe._)`${c} || ${i}`),e.mergeValidEvaluated(f,i)||t.if((0,pe.not)(c))})),e.result(c,()=>e.reset(),()=>e.error(!0))}te.validateUnion=yi;var js;function $i(){if(js)return Ge;js=1,Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.validateKeywordUsage=Ge.validSchemaType=Ge.funcKeywordCode=Ge.macroKeywordCode=void 0;const e=ee,t=Je,r=te,n=Ft;function s(b,v){const{gen:m,keyword:S,schema:E,parentSchema:y,it:P}=b,A=v.macro.call(P.self,E,y,P),F=u(m,S,A);P.opts.validateSchema!==!1&&P.self.validateSchema(A,!0);const V=m.name("valid");b.subschema({schema:A,schemaPath:e.nil,errSchemaPath:`${P.errSchemaPath}/${S}`,topSchemaRef:F,compositeRule:!0},V),b.pass(V,()=>b.error(!0))}Ge.macroKeywordCode=s;function a(b,v){var m;const{gen:S,keyword:E,schema:y,parentSchema:P,$data:A,it:F}=b;o(F,v);const V=!A&&v.compile?v.compile.call(F.self,y,P,F):v.validate,re=u(S,E,V),ce=S.let("valid");b.block$data(ce,Ne),b.ok((m=v.valid)!==null&&m!==void 0?m:ce);function Ne(){if(v.errors===!1)ke(),v.modifying&&c(b),de(()=>b.error());else{const L=v.async?Ce():je();v.modifying&&c(b),de(()=>i(b,L))}}function Ce(){const L=S.let("ruleErrs",null);return S.try(()=>ke((0,e._)`await `),j=>S.assign(ce,!1).if((0,e._)`${j} instanceof ${F.ValidationError}`,()=>S.assign(L,(0,e._)`${j}.errors`),()=>S.throw(j))),L}function je(){const L=(0,e._)`${re}.errors`;return S.assign(L,null),ke(e.nil),L}function ke(L=v.async?(0,e._)`await `:e.nil){const j=F.opts.passContext?t.default.this:t.default.self,K=!("compile"in v&&!A||v.schema===!1);S.assign(ce,(0,e._)`${L}${(0,r.callValidateCode)(b,re,j,K)}`,v.modifying)}function de(L){var j;S.if((0,e.not)((j=v.valid)!==null&&j!==void 0?j:ce),L)}}Ge.funcKeywordCode=a;function c(b){const{gen:v,data:m,it:S}=b;v.if(S.parentData,()=>v.assign(m,(0,e._)`${S.parentData}[${S.parentDataProperty}]`))}function i(b,v){const{gen:m}=b;m.if((0,e._)`Array.isArray(${v})`,()=>{m.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${v} : ${t.default.vErrors}.concat(${v})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,n.extendErrors)(b)},()=>b.error())}function o({schemaEnv:b},v){if(v.async&&!b.$async)throw new Error("async keyword in sync schema")}function u(b,v,m){if(m===void 0)throw new Error(`keyword "${v}" failed to compile`);return b.scopeValue("keyword",typeof m=="function"?{ref:m}:{ref:m,code:(0,e.stringify)(m)})}function f(b,v,m=!1){return!v.length||v.some(S=>S==="array"?Array.isArray(b):S==="object"?b&&typeof b=="object"&&!Array.isArray(b):typeof b==S||m&&typeof b>"u")}Ge.validSchemaType=f;function p({schema:b,opts:v,self:m,errSchemaPath:S},E,y){if(Array.isArray(E.keyword)?!E.keyword.includes(y):E.keyword!==y)throw new Error("ajv implementation error");const P=E.dependencies;if(P!=null&&P.some(A=>!Object.prototype.hasOwnProperty.call(b,A)))throw new Error(`parent schema must have dependencies of ${y}: ${P.join(",")}`);if(E.validateSchema&&!E.validateSchema(b[y])){const F=`keyword "${y}" value is invalid at path "${S}": `+m.errorsText(E.validateSchema.errors);if(v.validateSchema==="log")m.logger.error(F);else throw new Error(F)}}return Ge.validateKeywordUsage=p,Ge}var at={},Ls;function _i(){if(Ls)return at;Ls=1,Object.defineProperty(at,"__esModule",{value:!0}),at.extendSubschemaMode=at.extendSubschemaData=at.getSubschema=void 0;const e=ee,t=U;function r(a,{keyword:c,schemaProp:i,schema:o,schemaPath:u,errSchemaPath:f,topSchemaRef:p}){if(c!==void 0&&o!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(c!==void 0){const b=a.schema[c];return i===void 0?{schema:b,schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(c)}`,errSchemaPath:`${a.errSchemaPath}/${c}`}:{schema:b[i],schemaPath:(0,e._)`${a.schemaPath}${(0,e.getProperty)(c)}${(0,e.getProperty)(i)}`,errSchemaPath:`${a.errSchemaPath}/${c}/${(0,t.escapeFragment)(i)}`}}if(o!==void 0){if(u===void 0||f===void 0||p===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:o,schemaPath:u,topSchemaRef:p,errSchemaPath:f}}throw new Error('either "keyword" or "schema" must be passed')}at.getSubschema=r;function n(a,c,{dataProp:i,dataPropType:o,data:u,dataTypes:f,propertyName:p}){if(u!==void 0&&i!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:b}=c;if(i!==void 0){const{errorPath:m,dataPathArr:S,opts:E}=c,y=b.let("data",(0,e._)`${c.data}${(0,e.getProperty)(i)}`,!0);v(y),a.errorPath=(0,e.str)`${m}${(0,t.getErrorPath)(i,o,E.jsPropertySyntax)}`,a.parentDataProperty=(0,e._)`${i}`,a.dataPathArr=[...S,a.parentDataProperty]}if(u!==void 0){const m=u instanceof e.Name?u:b.let("data",u,!0);v(m),p!==void 0&&(a.propertyName=p)}f&&(a.dataTypes=f);function v(m){a.data=m,a.dataLevel=c.dataLevel+1,a.dataTypes=[],c.definedProperties=new Set,a.parentData=c.data,a.dataNames=[...c.dataNames,m]}}at.extendSubschemaData=n;function s(a,{jtdDiscriminator:c,jtdMetadata:i,compositeRule:o,createErrors:u,allErrors:f}){o!==void 0&&(a.compositeRule=o),u!==void 0&&(a.createErrors=u),f!==void 0&&(a.allErrors=f),a.jtdDiscriminator=c,a.jtdMetadata=i}return at.extendSubschemaMode=s,at}var Te={},Fs=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,s,a;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(s=n;s--!==0;)if(!e(t[s],r[s]))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(a=Object.keys(t),n=a.length,n!==Object.keys(r).length)return!1;for(s=n;s--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[s]))return!1;for(s=n;s--!==0;){var c=a[s];if(!e(t[c],r[c]))return!1}return!0}return t!==t&&r!==r},Ms={exports:{}},ct=Ms.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},s=r.post||function(){};nr(t,n,s,e,"",e)};ct.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},ct.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},ct.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},ct.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 nr(e,t,r,n,s,a,c,i,o,u){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,s,a,c,i,o,u);for(var f in n){var p=n[f];if(Array.isArray(p)){if(f in ct.arrayKeywords)for(var b=0;bt+=Vs(n)),t===1/0))return 1/0}return t}function qs(e,t="",r){r!==!1&&(t=Nt(t));const n=e.parse(t);return Us(e,n)}Te.getFullPath=qs;function Us(e,t){return e.serialize(t).split("#")[0]+"#"}Te._getFullPath=Us;const ki=/#\/?$/;function Nt(e){return e?e.replace(ki,""):""}Te.normalizeId=Nt;function Ii(e,t,r){return r=Nt(r),e.resolve(t,r)}Te.resolveUrl=Ii;const Oi=/^[a-z_][-a-z0-9._]*$/i;function Di(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:n}=this.opts,s=Nt(e[r]||t),a={"":s},c=qs(n,s,!1),i={},o=new Set;return Pi(e,{allKeys:!0},(p,b,v,m)=>{if(m===void 0)return;const S=c+b;let E=a[m];typeof p[r]=="string"&&(E=y.call(this,p[r])),P.call(this,p.$anchor),P.call(this,p.$dynamicAnchor),a[b]=E;function y(A){const F=this.opts.uriResolver.resolve;if(A=Nt(E?F(E,A):A),o.has(A))throw f(A);o.add(A);let V=this.refs[A];return typeof V=="string"&&(V=this.refs[V]),typeof V=="object"?u(p,V.schema,A):A!==Nt(S)&&(A[0]==="#"?(u(p,i[A],A),i[A]=p):this.refs[A]=S),A}function P(A){if(typeof A=="string"){if(!Oi.test(A))throw new Error(`invalid anchor "${A}"`);y.call(this,`#${A}`)}}}),i;function u(p,b,v){if(b!==void 0&&!Si(p,b))throw f(v)}function f(p){return new Error(`reference "${p}" resolves to more than one schema`)}}Te.getSchemaRefs=Di;var xs;function sr(){if(xs)return nt;xs=1,Object.defineProperty(nt,"__esModule",{value:!0}),nt.getData=nt.KeywordCxt=nt.validateFunctionCode=void 0;const e=Ho(),t=be,r=st,n=be,s=ii(),a=$i(),c=_i(),i=ee,o=Je,u=Te,f=U,p=Ft;function b(w){if(V(w)&&(ce(w),F(w))){E(w);return}v(w,()=>(0,e.topBoolOrEmptySchema)(w))}nt.validateFunctionCode=b;function v({gen:w,validateName:T,schema:C,schemaEnv:M,opts:H},Y){H.code.es5?w.func(T,(0,i._)`${o.default.data}, ${o.default.valCxt}`,M.$async,()=>{w.code((0,i._)`"use strict"; ${P(C,H)}`),S(w,H),w.code(Y)}):w.func(T,(0,i._)`${o.default.data}, ${m(H)}`,M.$async,()=>w.code(P(C,H)).code(Y))}function m(w){return(0,i._)`{${o.default.instancePath}="", ${o.default.parentData}, ${o.default.parentDataProperty}, ${o.default.rootData}=${o.default.data}${w.dynamicRef?(0,i._)`, ${o.default.dynamicAnchors}={}`:i.nil}}={}`}function S(w,T){w.if(o.default.valCxt,()=>{w.var(o.default.instancePath,(0,i._)`${o.default.valCxt}.${o.default.instancePath}`),w.var(o.default.parentData,(0,i._)`${o.default.valCxt}.${o.default.parentData}`),w.var(o.default.parentDataProperty,(0,i._)`${o.default.valCxt}.${o.default.parentDataProperty}`),w.var(o.default.rootData,(0,i._)`${o.default.valCxt}.${o.default.rootData}`),T.dynamicRef&&w.var(o.default.dynamicAnchors,(0,i._)`${o.default.valCxt}.${o.default.dynamicAnchors}`)},()=>{w.var(o.default.instancePath,(0,i._)`""`),w.var(o.default.parentData,(0,i._)`undefined`),w.var(o.default.parentDataProperty,(0,i._)`undefined`),w.var(o.default.rootData,o.default.data),T.dynamicRef&&w.var(o.default.dynamicAnchors,(0,i._)`{}`)})}function E(w){const{schema:T,opts:C,gen:M}=w;v(w,()=>{C.$comment&&T.$comment&&L(w),je(w),M.let(o.default.vErrors,null),M.let(o.default.errors,0),C.unevaluated&&y(w),Ne(w),j(w)})}function y(w){const{gen:T,validateName:C}=w;w.evaluated=T.const("evaluated",(0,i._)`${C}.evaluated`),T.if((0,i._)`${w.evaluated}.dynamicProps`,()=>T.assign((0,i._)`${w.evaluated}.props`,(0,i._)`undefined`)),T.if((0,i._)`${w.evaluated}.dynamicItems`,()=>T.assign((0,i._)`${w.evaluated}.items`,(0,i._)`undefined`))}function P(w,T){const C=typeof w=="object"&&w[T.schemaId];return C&&(T.code.source||T.code.process)?(0,i._)`/*# sourceURL=${C} */`:i.nil}function A(w,T){if(V(w)&&(ce(w),F(w))){re(w,T);return}(0,e.boolOrEmptySchema)(w,T)}function F({schema:w,self:T}){if(typeof w=="boolean")return!w;for(const C in w)if(T.RULES.all[C])return!0;return!1}function V(w){return typeof w.schema!="boolean"}function re(w,T){const{schema:C,gen:M,opts:H}=w;H.$comment&&C.$comment&&L(w),ke(w),de(w);const Y=M.const("_errs",o.default.errors);Ne(w,Y),M.var(T,(0,i._)`${Y} === ${o.default.errors}`)}function ce(w){(0,f.checkUnknownRules)(w),Ce(w)}function Ne(w,T){if(w.opts.jtd)return z(w,[],!1,T);const C=(0,t.getSchemaTypes)(w.schema),M=(0,t.coerceAndCheckDataType)(w,C);z(w,C,!M,T)}function Ce(w){const{schema:T,errSchemaPath:C,opts:M,self:H}=w;T.$ref&&M.ignoreKeywordsWithRef&&(0,f.schemaHasRulesButRef)(T,H.RULES)&&H.logger.warn(`$ref: keywords ignored in schema at path "${C}"`)}function je(w){const{schema:T,opts:C}=w;T.default!==void 0&&C.useDefaults&&C.strictSchema&&(0,f.checkStrictMode)(w,"default is ignored in the schema root")}function ke(w){const T=w.schema[w.opts.schemaId];T&&(w.baseId=(0,u.resolveUrl)(w.opts.uriResolver,w.baseId,T))}function de(w){if(w.schema.$async&&!w.schemaEnv.$async)throw new Error("async schema in sync schema")}function L({gen:w,schemaEnv:T,schema:C,errSchemaPath:M,opts:H}){const Y=C.$comment;if(H.$comment===!0)w.code((0,i._)`${o.default.self}.logger.log(${Y})`);else if(typeof H.$comment=="function"){const Se=(0,i.str)`${M}/$comment`,Me=w.scopeValue("root",{ref:T.root});w.code((0,i._)`${o.default.self}.opts.$comment(${Y}, ${Se}, ${Me}.schema)`)}}function j(w){const{gen:T,schemaEnv:C,validateName:M,ValidationError:H,opts:Y}=w;C.$async?T.if((0,i._)`${o.default.errors} === 0`,()=>T.return(o.default.data),()=>T.throw((0,i._)`new ${H}(${o.default.vErrors})`)):(T.assign((0,i._)`${M}.errors`,o.default.vErrors),Y.unevaluated&&K(w),T.return((0,i._)`${o.default.errors} === 0`))}function K({gen:w,evaluated:T,props:C,items:M}){C instanceof i.Name&&w.assign((0,i._)`${T}.props`,C),M instanceof i.Name&&w.assign((0,i._)`${T}.items`,M)}function z(w,T,C,M){const{gen:H,schema:Y,data:Se,allErrors:Me,opts:Ie,self:Oe}=w,{RULES:Pe}=Oe;if(Y.$ref&&(Ie.ignoreKeywordsWithRef||!(0,f.schemaHasRulesButRef)(Y,Pe))){H.block(()=>q(w,"$ref",Pe.all.$ref.definition));return}Ie.jtd||G(w,T),H.block(()=>{for(const ve of Pe.rules)Ve(ve);Ve(Pe.post)});function Ve(ve){(0,r.shouldUseGroup)(Y,ve)&&(ve.type?(H.if((0,n.checkDataType)(ve.type,Se,Ie.strictNumbers)),X(w,ve),T.length===1&&T[0]===ve.type&&C&&(H.else(),(0,n.reportTypeError)(w)),H.endIf()):X(w,ve),Me||H.if((0,i._)`${o.default.errors} === ${M||0}`))}}function X(w,T){const{gen:C,schema:M,opts:{useDefaults:H}}=w;H&&(0,s.assignDefaults)(w,T.type),C.block(()=>{for(const Y of T.rules)(0,r.shouldUseRule)(M,Y)&&q(w,Y.keyword,Y.definition,T.type)})}function G(w,T){w.schemaEnv.meta||!w.opts.strictTypes||(W(w,T),w.opts.allowUnionTypes||D(w,T),_(w,w.dataTypes))}function W(w,T){if(T.length){if(!w.dataTypes.length){w.dataTypes=T;return}T.forEach(C=>{N(w.dataTypes,C)||h(w,`type "${C}" not allowed by context "${w.dataTypes.join(",")}"`)}),l(w,T)}}function D(w,T){T.length>1&&!(T.length===2&&T.includes("null"))&&h(w,"use allowUnionTypes to allow union type keyword")}function _(w,T){const C=w.self.RULES.all;for(const M in C){const H=C[M];if(typeof H=="object"&&(0,r.shouldUseRule)(w.schema,H)){const{type:Y}=H.definition;Y.length&&!Y.some(Se=>O(T,Se))&&h(w,`missing type "${Y.join(",")}" for keyword "${M}"`)}}}function O(w,T){return w.includes(T)||T==="number"&&w.includes("integer")}function N(w,T){return w.includes(T)||T==="integer"&&w.includes("number")}function l(w,T){const C=[];for(const M of w.dataTypes)N(T,M)?C.push(M):T.includes("integer")&&M==="number"&&C.push("integer");w.dataTypes=C}function h(w,T){const C=w.schemaEnv.baseId+w.errSchemaPath;T+=` at "${C}" (strictTypes)`,(0,f.checkStrictMode)(w,T,w.opts.strictTypes)}class I{constructor(T,C,M){if((0,a.validateKeywordUsage)(T,C,M),this.gen=T.gen,this.allErrors=T.allErrors,this.keyword=M,this.data=T.data,this.schema=T.schema[M],this.$data=C.$data&&T.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,f.schemaRefOrVal)(T,this.schema,M,this.$data),this.schemaType=C.schemaType,this.parentSchema=T.schema,this.params={},this.it=T,this.def=C,this.$data)this.schemaCode=T.gen.const("vSchema",se(this.$data,T));else if(this.schemaCode=this.schemaValue,!(0,a.validSchemaType)(this.schema,C.schemaType,C.allowUndefined))throw new Error(`${M} value must be ${JSON.stringify(C.schemaType)}`);("code"in C?C.trackErrors:C.errors!==!1)&&(this.errsCount=T.gen.const("_errs",o.default.errors))}result(T,C,M){this.failResult((0,i.not)(T),C,M)}failResult(T,C,M){this.gen.if(T),M?M():this.error(),C?(this.gen.else(),C(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(T,C){this.failResult((0,i.not)(T),void 0,C)}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);const{schemaCode:C}=this;this.fail((0,i._)`${C} !== undefined && (${(0,i.or)(this.invalid$data(),T)})`)}error(T,C,M){if(C){this.setParams(C),this._error(T,M),this.setParams({});return}this._error(T,M)}_error(T,C){(T?p.reportExtraError:p.reportError)(this,this.def.error,C)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(T){this.allErrors||this.gen.if(T)}setParams(T,C){C?Object.assign(this.params,T):this.params=T}block$data(T,C,M=i.nil){this.gen.block(()=>{this.check$data(T,M),C()})}check$data(T=i.nil,C=i.nil){if(!this.$data)return;const{gen:M,schemaCode:H,schemaType:Y,def:Se}=this;M.if((0,i.or)((0,i._)`${H} === undefined`,C)),T!==i.nil&&M.assign(T,!0),(Y.length||Se.validateSchema)&&(M.elseIf(this.invalid$data()),this.$dataError(),T!==i.nil&&M.assign(T,!1)),M.else()}invalid$data(){const{gen:T,schemaCode:C,schemaType:M,def:H,it:Y}=this;return(0,i.or)(Se(),Me());function Se(){if(M.length){if(!(C instanceof i.Name))throw new Error("ajv implementation error");const Ie=Array.isArray(M)?M:[M];return(0,i._)`${(0,n.checkDataTypes)(Ie,C,Y.opts.strictNumbers,n.DataType.Wrong)}`}return i.nil}function Me(){if(H.validateSchema){const Ie=T.scopeValue("validate$data",{ref:H.validateSchema});return(0,i._)`!${Ie}(${C})`}return i.nil}}subschema(T,C){const M=(0,c.getSubschema)(this.it,T);(0,c.extendSubschemaData)(M,this.it,T),(0,c.extendSubschemaMode)(M,T);const H={...this.it,...M,items:void 0,props:void 0};return A(H,C),H}mergeEvaluated(T,C){const{it:M,gen:H}=this;M.opts.unevaluated&&(M.props!==!0&&T.props!==void 0&&(M.props=f.mergeEvaluated.props(H,T.props,M.props,C)),M.items!==!0&&T.items!==void 0&&(M.items=f.mergeEvaluated.items(H,T.items,M.items,C)))}mergeValidEvaluated(T,C){const{it:M,gen:H}=this;if(M.opts.unevaluated&&(M.props!==!0||M.items!==!0))return H.if(C,()=>this.mergeEvaluated(T,i.Name)),!0}}nt.KeywordCxt=I;function q(w,T,C,M){const H=new I(w,C,T);"code"in C?C.code(H,M):H.$data&&C.validate?(0,a.funcKeywordCode)(H,C):"macro"in C?(0,a.macroKeywordCode)(H,C):(C.compile||C.validate)&&(0,a.funcKeywordCode)(H,C)}const x=/^\/(?:[^~]|~0|~1)*$/,ne=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function se(w,{dataLevel:T,dataNames:C,dataPathArr:M}){let H,Y;if(w==="")return o.default.rootData;if(w[0]==="/"){if(!x.test(w))throw new Error(`Invalid JSON-pointer: ${w}`);H=w,Y=o.default.rootData}else{const Oe=ne.exec(w);if(!Oe)throw new Error(`Invalid JSON-pointer: ${w}`);const Pe=+Oe[1];if(H=Oe[2],H==="#"){if(Pe>=T)throw new Error(Ie("property/index",Pe));return M[T-Pe]}if(Pe>T)throw new Error(Ie("data",Pe));if(Y=C[T-Pe],!H)return Y}let Se=Y;const Me=H.split("/");for(const Oe of Me)Oe&&(Y=(0,i._)`${Y}${(0,i.getProperty)((0,f.unescapeJsonPointer)(Oe))}`,Se=(0,i._)`${Se} && ${Y}`);return Se;function Ie(Oe,Pe){return`Cannot access ${Oe} ${Pe} levels up, current level is ${T}`}}return nt.getData=se,nt}var ar={},Gs;function Qr(){if(Gs)return ar;Gs=1,Object.defineProperty(ar,"__esModule",{value:!0});class e extends Error{constructor(r){super("validation failed"),this.errors=r,this.ajv=this.validation=!0}}return ar.default=e,ar}var or={},zs;function Zr(){if(zs)return or;zs=1,Object.defineProperty(or,"__esModule",{value:!0});const e=Te;class t extends Error{constructor(n,s,a,c){super(c||`can't resolve reference ${a} from id ${s}`),this.missingRef=(0,e.resolveUrl)(n,s,a),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(n,this.missingRef))}}return or.default=t,or}var Le={};Object.defineProperty(Le,"__esModule",{value:!0}),Le.resolveSchema=Le.getCompilingSchema=Le.resolveRef=Le.compileSchema=Le.SchemaEnv=void 0;const ze=ee,Ci=Qr(),mt=Je,He=Te,Hs=U,Ai=sr();class ir{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,He.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={}}}Le.SchemaEnv=ir;function en(e){const t=Ks.call(this,e);if(t)return t;const r=(0,He.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:s}=this.opts.code,{ownProperties:a}=this.opts,c=new ze.CodeGen(this.scope,{es5:n,lines:s,ownProperties:a});let i;e.$async&&(i=c.scopeValue("Error",{ref:Ci.default,code:(0,ze._)`require("ajv/dist/runtime/validation_error").default`}));const o=c.scopeName("validate");e.validateName=o;const u={gen:c,allErrors:this.opts.allErrors,data:mt.default.data,parentData:mt.default.parentData,parentDataProperty:mt.default.parentDataProperty,dataNames:[mt.default.data],dataPathArr:[ze.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:c.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,ze.stringify)(e.schema)}:{ref:e.schema}),validateName:o,ValidationError:i,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:ze.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ze._)`""`,opts:this.opts,self:this};let f;try{this._compilations.add(e),(0,Ai.validateFunctionCode)(u),c.optimize(this.opts.code.optimize);const p=c.toString();f=`${c.scopeRefs(mt.default.scope)}return ${p}`,this.opts.code.process&&(f=this.opts.code.process(f,e));const v=new Function(`${mt.default.self}`,`${mt.default.scope}`,f)(this,this.scope.get());if(this.scope.value(o,{ref:v}),v.errors=null,v.schema=e.schema,v.schemaEnv=e,e.$async&&(v.$async=!0),this.opts.code.source===!0&&(v.source={validateName:o,validateCode:p,scopeValues:c._values}),this.opts.unevaluated){const{props:m,items:S}=u;v.evaluated={props:m instanceof ze.Name?void 0:m,items:S instanceof ze.Name?void 0:S,dynamicProps:m instanceof ze.Name,dynamicItems:S instanceof ze.Name},v.source&&(v.source.evaluated=(0,ze.stringify)(v.evaluated))}return e.validate=v,e}catch(p){throw delete e.validate,delete e.validateName,f&&this.logger.error("Error compiling schema, function code:",f),p}finally{this._compilations.delete(e)}}Le.compileSchema=en;function ji(e,t,r){var n;r=(0,He.resolveUrl)(this.opts.uriResolver,t,r);const s=e.refs[r];if(s)return s;let a=Mi.call(this,e,r);if(a===void 0){const c=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:i}=this.opts;c&&(a=new ir({schema:c,schemaId:i,root:e,baseId:t}))}if(a!==void 0)return e.refs[r]=Li.call(this,a)}Le.resolveRef=ji;function Li(e){return(0,He.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:en.call(this,e)}function Ks(e){for(const t of this._compilations)if(Fi(t,e))return t}Le.getCompilingSchema=Ks;function Fi(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Mi(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||lr.call(this,e,t)}function lr(e,t){const r=this.opts.uriResolver.parse(t),n=(0,He._getFullPath)(this.opts.uriResolver,r);let s=(0,He.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===s)return tn.call(this,r,e);const a=(0,He.normalizeId)(n),c=this.refs[a]||this.schemas[a];if(typeof c=="string"){const i=lr.call(this,e,c);return typeof(i==null?void 0:i.schema)!="object"?void 0:tn.call(this,r,i)}if(typeof(c==null?void 0:c.schema)=="object"){if(c.validate||en.call(this,c),a===(0,He.normalizeId)(t)){const{schema:i}=c,{schemaId:o}=this.opts,u=i[o];return u&&(s=(0,He.resolveUrl)(this.opts.uriResolver,s,u)),new ir({schema:i,schemaId:o,root:e,baseId:s})}return tn.call(this,r,c)}}Le.resolveSchema=lr;const Vi=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function tn(e,{baseId:t,schema:r,root:n}){var s;if(((s=e.fragment)===null||s===void 0?void 0:s[0])!=="/")return;for(const i of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;const o=r[(0,Hs.unescapeFragment)(i)];if(o===void 0)return;r=o;const u=typeof r=="object"&&r[this.opts.schemaId];!Vi.has(i)&&u&&(t=(0,He.resolveUrl)(this.opts.uriResolver,t,u))}let a;if(typeof r!="boolean"&&r.$ref&&!(0,Hs.schemaHasRulesButRef)(r,this.RULES)){const i=(0,He.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=lr.call(this,n,i)}const{schemaId:c}=this.opts;if(a=a||new ir({schema:r,schemaId:c,root:n,baseId:t}),a.schema!==a.root.schema)return a}const qi={$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 rn={},nn={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(e,t){(function(r,n){n(t)})(Co,function(r){function n(){for(var g=arguments.length,d=Array(g),$=0;$1){d[0]=d[0].slice(0,-1);for(var k=d.length-1,R=1;R= 0x80 (not a basic code point)","invalid-input":"Invalid input"},ke=S-E,de=Math.floor,L=String.fromCharCode;function j(g){throw new RangeError(je[g])}function K(g,d){for(var $=[],k=g.length;k--;)$[k]=d(g[k]);return $}function z(g,d){var $=g.split("@"),k="";$.length>1&&(k=$[0]+"@",g=$[1]),g=g.replace(Ce,".");var R=g.split("."),B=K(R,d).join(".");return k+B}function X(g){for(var d=[],$=0,k=g.length;$=55296&&R<=56319&&$>1,d+=de(d/$);d>ke*y>>1;R+=S)d=de(d/ke);return de(R+(ke+1)*d/(d+P))},O=function(d){var $=[],k=d.length,R=0,B=V,J=F,oe=d.lastIndexOf(re);oe<0&&(oe=0);for(var me=0;me=128&&j("not-basic"),$.push(d.charCodeAt(me));for(var _e=oe>0?oe+1:0;_e=k&&j("invalid-input");var Q=W(d.charCodeAt(_e++));(Q>=S||Q>de((m-R)/fe))&&j("overflow"),R+=Q*fe;var he=Ee<=J?E:Ee>=J+y?y:Ee-J;if(Qde(m/we)&&j("overflow"),fe*=we}var ge=$.length+1;J=_(R-ae,ge,ae==0),de(R/ge)>m-B&&j("overflow"),B+=de(R/ge),R%=ge,$.splice(R++,0,B)}return String.fromCodePoint.apply(String,$)},N=function(d){var $=[];d=X(d);var k=d.length,R=V,B=0,J=F,oe=!0,me=!1,_e=void 0;try{for(var ae=d[Symbol.iterator](),fe;!(oe=(fe=ae.next()).done);oe=!0){var Ee=fe.value;Ee<128&&$.push(L(Ee))}}catch(er){me=!0,_e=er}finally{try{!oe&&ae.return&&ae.return()}finally{if(me)throw _e}}var Q=$.length,he=Q;for(Q&&$.push(re);he=R&&wtde((m-B)/xe)&&j("overflow"),B+=(we-R)*xe,R=we;var et=!0,bt=!1,ot=void 0;try{for(var Zt=d[Symbol.iterator](),Za;!(et=(Za=Zt.next()).done);et=!0){var eo=Za.value;if(eom&&j("overflow"),eo==R){for(var Cr=B,Ar=S;;Ar+=S){var jr=Ar<=J?E:Ar>=J+y?y:Ar-J;if(Cr>6|192).toString(16).toUpperCase()+"%"+(d&63|128).toString(16).toUpperCase():$="%"+(d>>12|224).toString(16).toUpperCase()+"%"+(d>>6&63|128).toString(16).toUpperCase()+"%"+(d&63|128).toString(16).toUpperCase(),$}function ne(g){for(var d="",$=0,k=g.length;$=194&&R<224){if(k-$>=6){var B=parseInt(g.substr($+4,2),16);d+=String.fromCharCode((R&31)<<6|B&63)}else d+=g.substr($,6);$+=6}else if(R>=224){if(k-$>=9){var J=parseInt(g.substr($+4,2),16),oe=parseInt(g.substr($+7,2),16);d+=String.fromCharCode((R&15)<<12|(J&63)<<6|oe&63)}else d+=g.substr($,9);$+=9}else d+=g.substr($,3),$+=3}return d}function se(g,d){function $(k){var R=ne(k);return R.match(d.UNRESERVED)?R:k}return g.scheme&&(g.scheme=String(g.scheme).replace(d.PCT_ENCODED,$).toLowerCase().replace(d.NOT_SCHEME,"")),g.userinfo!==void 0&&(g.userinfo=String(g.userinfo).replace(d.PCT_ENCODED,$).replace(d.NOT_USERINFO,x).replace(d.PCT_ENCODED,c)),g.host!==void 0&&(g.host=String(g.host).replace(d.PCT_ENCODED,$).toLowerCase().replace(d.NOT_HOST,x).replace(d.PCT_ENCODED,c)),g.path!==void 0&&(g.path=String(g.path).replace(d.PCT_ENCODED,$).replace(g.scheme?d.NOT_PATH:d.NOT_PATH_NOSCHEME,x).replace(d.PCT_ENCODED,c)),g.query!==void 0&&(g.query=String(g.query).replace(d.PCT_ENCODED,$).replace(d.NOT_QUERY,x).replace(d.PCT_ENCODED,c)),g.fragment!==void 0&&(g.fragment=String(g.fragment).replace(d.PCT_ENCODED,$).replace(d.NOT_FRAGMENT,x).replace(d.PCT_ENCODED,c)),g}function w(g){return g.replace(/^0*(.*)/,"$1")||"0"}function T(g,d){var $=g.match(d.IPV4ADDRESS)||[],k=b($,2),R=k[1];return R?R.split(".").map(w).join("."):g}function C(g,d){var $=g.match(d.IPV6ADDRESS)||[],k=b($,3),R=k[1],B=k[2];if(R){for(var J=R.toLowerCase().split("::").reverse(),oe=b(J,2),me=oe[0],_e=oe[1],ae=_e?_e.split(":").map(w):[],fe=me.split(":").map(w),Ee=d.IPV4ADDRESS.test(fe[fe.length-1]),Q=Ee?7:8,he=fe.length-Q,we=Array(Q),ge=0;ge1){var Lt=we.slice(0,Qe.index),wt=we.slice(Qe.index+Qe.length);Ze=Lt.join(":")+"::"+wt.join(":")}else Ze=we.join(":");return B&&(Ze+="%"+B),Ze}else return g}var M=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,H="".match(/(){0}/)[1]===void 0;function Y(g){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$={},k=d.iri!==!1?p:f;d.reference==="suffix"&&(g=(d.scheme?d.scheme+":":"")+"//"+g);var R=g.match(M);if(R){H?($.scheme=R[1],$.userinfo=R[3],$.host=R[4],$.port=parseInt(R[5],10),$.path=R[6]||"",$.query=R[7],$.fragment=R[8],isNaN($.port)&&($.port=R[5])):($.scheme=R[1]||void 0,$.userinfo=g.indexOf("@")!==-1?R[3]:void 0,$.host=g.indexOf("//")!==-1?R[4]:void 0,$.port=parseInt(R[5],10),$.path=R[6]||"",$.query=g.indexOf("?")!==-1?R[7]:void 0,$.fragment=g.indexOf("#")!==-1?R[8]:void 0,isNaN($.port)&&($.port=g.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?R[4]:void 0)),$.host&&($.host=C(T($.host,k),k)),$.scheme===void 0&&$.userinfo===void 0&&$.host===void 0&&$.port===void 0&&!$.path&&$.query===void 0?$.reference="same-document":$.scheme===void 0?$.reference="relative":$.fragment===void 0?$.reference="absolute":$.reference="uri",d.reference&&d.reference!=="suffix"&&d.reference!==$.reference&&($.error=$.error||"URI is not a "+d.reference+" reference.");var B=q[(d.scheme||$.scheme||"").toLowerCase()];if(!d.unicodeSupport&&(!B||!B.unicodeSupport)){if($.host&&(d.domainHost||B&&B.domainHost))try{$.host=I.toASCII($.host.replace(k.PCT_ENCODED,ne).toLowerCase())}catch(J){$.error=$.error||"Host's domain name can not be converted to ASCII via punycode: "+J}se($,f)}else se($,k);B&&B.parse&&B.parse($,d)}else $.error=$.error||"URI can not be parsed.";return $}function Se(g,d){var $=d.iri!==!1?p:f,k=[];return g.userinfo!==void 0&&(k.push(g.userinfo),k.push("@")),g.host!==void 0&&k.push(C(T(String(g.host),$),$).replace($.IPV6ADDRESS,function(R,B,J){return"["+B+(J?"%25"+J:"")+"]"})),(typeof g.port=="number"||typeof g.port=="string")&&(k.push(":"),k.push(String(g.port))),k.length?k.join(""):void 0}var Me=/^\.\.?\//,Ie=/^\/\.(\/|$)/,Oe=/^\/\.\.(\/|$)/,Pe=/^\/?(?:.|\n)*?(?=\/|$)/;function Ve(g){for(var d=[];g.length;)if(g.match(Me))g=g.replace(Me,"");else if(g.match(Ie))g=g.replace(Ie,"/");else if(g.match(Oe))g=g.replace(Oe,"/"),d.pop();else if(g==="."||g==="..")g="";else{var $=g.match(Pe);if($){var k=$[0];g=g.slice(k.length),d.push(k)}else throw new Error("Unexpected dot segment condition")}return d.join("")}function ve(g){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},$=d.iri?p:f,k=[],R=q[(d.scheme||g.scheme||"").toLowerCase()];if(R&&R.serialize&&R.serialize(g,d),g.host&&!$.IPV6ADDRESS.test(g.host)){if(d.domainHost||R&&R.domainHost)try{g.host=d.iri?I.toUnicode(g.host):I.toASCII(g.host.replace($.PCT_ENCODED,ne).toLowerCase())}catch(oe){g.error=g.error||"Host's domain name can not be converted to "+(d.iri?"Unicode":"ASCII")+" via punycode: "+oe}}se(g,$),d.reference!=="suffix"&&g.scheme&&(k.push(g.scheme),k.push(":"));var B=Se(g,d);if(B!==void 0&&(d.reference!=="suffix"&&k.push("//"),k.push(B),g.path&&g.path.charAt(0)!=="/"&&k.push("/")),g.path!==void 0){var J=g.path;!d.absolutePath&&(!R||!R.absolutePath)&&(J=Ve(J)),B===void 0&&(J=J.replace(/^\/\//,"/%2F")),k.push(J)}return g.query!==void 0&&(k.push("?"),k.push(g.query)),g.fragment!==void 0&&(k.push("#"),k.push(g.fragment)),k.join("")}function At(g,d){var $=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},k=arguments[3],R={};return k||(g=Y(ve(g,$),$),d=Y(ve(d,$),$)),$=$||{},!$.tolerant&&d.scheme?(R.scheme=d.scheme,R.userinfo=d.userinfo,R.host=d.host,R.port=d.port,R.path=Ve(d.path||""),R.query=d.query):(d.userinfo!==void 0||d.host!==void 0||d.port!==void 0?(R.userinfo=d.userinfo,R.host=d.host,R.port=d.port,R.path=Ve(d.path||""),R.query=d.query):(d.path?(d.path.charAt(0)==="/"?R.path=Ve(d.path):((g.userinfo!==void 0||g.host!==void 0||g.port!==void 0)&&!g.path?R.path="/"+d.path:g.path?R.path=g.path.slice(0,g.path.lastIndexOf("/")+1)+d.path:R.path=d.path,R.path=Ve(R.path)),R.query=d.query):(R.path=g.path,d.query!==void 0?R.query=d.query:R.query=g.query),R.userinfo=g.userinfo,R.host=g.host,R.port=g.port),R.scheme=g.scheme),R.fragment=d.fragment,R}function Wt(g,d,$){var k=o({scheme:"null"},$);return ve(At(Y(g,k),Y(d,k),k,!0),k)}function _t(g,d){return typeof g=="string"?g=ve(Y(g,d),d):a(g)==="object"&&(g=Y(ve(g,d),d)),g}function Yt(g,d,$){return typeof g=="string"?g=ve(Y(g,$),$):a(g)==="object"&&(g=ve(g,$)),typeof d=="string"?d=ve(Y(d,$),$):a(d)==="object"&&(d=ve(d,$)),g===d}function Dr(g,d){return g&&g.toString().replace(!d||!d.iri?f.ESCAPE:p.ESCAPE,x)}function Ue(g,d){return g&&g.toString().replace(!d||!d.iri?f.PCT_ENCODED:p.PCT_ENCODED,ne)}var Et={scheme:"http",domainHost:!0,parse:function(d,$){return d.host||(d.error=d.error||"HTTP URIs must have a host."),d},serialize:function(d,$){var k=String(d.scheme).toLowerCase()==="https";return(d.port===(k?443:80)||d.port==="")&&(d.port=void 0),d.path||(d.path="/"),d}},Ha={scheme:"https",domainHost:Et.domainHost,parse:Et.parse,serialize:Et.serialize};function Ka(g){return typeof g.secure=="boolean"?g.secure:String(g.scheme).toLowerCase()==="wss"}var Qt={scheme:"ws",domainHost:!0,parse:function(d,$){var k=d;return k.secure=Ka(k),k.resourceName=(k.path||"/")+(k.query?"?"+k.query:""),k.path=void 0,k.query=void 0,k},serialize:function(d,$){if((d.port===(Ka(d)?443:80)||d.port==="")&&(d.port=void 0),typeof d.secure=="boolean"&&(d.scheme=d.secure?"wss":"ws",d.secure=void 0),d.resourceName){var k=d.resourceName.split("?"),R=b(k,2),B=R[0],J=R[1];d.path=B&&B!=="/"?B:void 0,d.query=J,d.resourceName=void 0}return d.fragment=void 0,d}},Xa={scheme:"wss",domainHost:Qt.domainHost,parse:Qt.parse,serialize:Qt.serialize},Ad={},Ba="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Ye="[0-9A-Fa-f]",jd=s(s("%[EFef]"+Ye+"%"+Ye+Ye+"%"+Ye+Ye)+"|"+s("%[89A-Fa-f]"+Ye+"%"+Ye+Ye)+"|"+s("%"+Ye+Ye)),Ld="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",Fd="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",Md=n(Fd,'[\\"\\\\]'),Vd="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",qd=new RegExp(Ba,"g"),jt=new RegExp(jd,"g"),Ud=new RegExp(n("[^]",Ld,"[\\.]",'[\\"]',Md),"g"),Ja=new RegExp(n("[^]",Ba,Vd),"g"),xd=Ja;function as(g){var d=ne(g);return d.match(qd)?d:g}var Wa={scheme:"mailto",parse:function(d,$){var k=d,R=k.to=k.path?k.path.split(","):[];if(k.path=void 0,k.query){for(var B=!1,J={},oe=k.query.split("&"),me=0,_e=oe.length;me<_e;++me){var ae=oe[me].split("=");switch(ae[0]){case"to":for(var fe=ae[1].split(","),Ee=0,Q=fe.length;Eenew RegExp(D,_);v.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],S=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),E={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."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},P=200;function A(D){var _,O,N,l,h,I,q,x,ne,se,w,T,C,M,H,Y,Se,Me,Ie,Oe,Pe,Ve,ve,At,Wt;const _t=D.strict,Yt=(_=D.code)===null||_===void 0?void 0:_.optimize,Dr=Yt===!0||Yt===void 0?1:Yt||0,Ue=(N=(O=D.code)===null||O===void 0?void 0:O.regExp)!==null&&N!==void 0?N:v,Et=(l=D.uriResolver)!==null&&l!==void 0?l:b.default;return{strictSchema:(I=(h=D.strictSchema)!==null&&h!==void 0?h:_t)!==null&&I!==void 0?I:!0,strictNumbers:(x=(q=D.strictNumbers)!==null&&q!==void 0?q:_t)!==null&&x!==void 0?x:!0,strictTypes:(se=(ne=D.strictTypes)!==null&&ne!==void 0?ne:_t)!==null&&se!==void 0?se:"log",strictTuples:(T=(w=D.strictTuples)!==null&&w!==void 0?w:_t)!==null&&T!==void 0?T:"log",strictRequired:(M=(C=D.strictRequired)!==null&&C!==void 0?C:_t)!==null&&M!==void 0?M:!1,code:D.code?{...D.code,optimize:Dr,regExp:Ue}:{optimize:Dr,regExp:Ue},loopRequired:(H=D.loopRequired)!==null&&H!==void 0?H:P,loopEnum:(Y=D.loopEnum)!==null&&Y!==void 0?Y:P,meta:(Se=D.meta)!==null&&Se!==void 0?Se:!0,messages:(Me=D.messages)!==null&&Me!==void 0?Me:!0,inlineRefs:(Ie=D.inlineRefs)!==null&&Ie!==void 0?Ie:!0,schemaId:(Oe=D.schemaId)!==null&&Oe!==void 0?Oe:"$id",addUsedSchema:(Pe=D.addUsedSchema)!==null&&Pe!==void 0?Pe:!0,validateSchema:(Ve=D.validateSchema)!==null&&Ve!==void 0?Ve:!0,validateFormats:(ve=D.validateFormats)!==null&&ve!==void 0?ve:!0,unicodeRegExp:(At=D.unicodeRegExp)!==null&&At!==void 0?At:!0,int32range:(Wt=D.int32range)!==null&&Wt!==void 0?Wt:!0,uriResolver:Et}}class F{constructor(_={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,_=this.opts={..._,...A(_)};const{es5:O,lines:N}=this.opts.code;this.scope=new i.ValueScope({scope:{},prefixes:S,es5:O,lines:N}),this.logger=de(_.logger);const l=_.validateFormats;_.validateFormats=!1,this.RULES=(0,a.getRules)(),V.call(this,E,_,"NOT SUPPORTED"),V.call(this,y,_,"DEPRECATED","warn"),this._metaOpts=je.call(this),_.formats&&Ne.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),_.keywords&&Ce.call(this,_.keywords),typeof _.meta=="object"&&this.addMetaSchema(_.meta),ce.call(this),_.validateFormats=l}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:_,meta:O,schemaId:N}=this.opts;let l=p;N==="id"&&(l={...p},l.id=l.$id,delete l.$id),O&&_&&this.addMetaSchema(l,l[N],!1)}defaultMeta(){const{meta:_,schemaId:O}=this.opts;return this.opts.defaultMeta=typeof _=="object"?_[O]||_:void 0}validate(_,O){let N;if(typeof _=="string"){if(N=this.getSchema(_),!N)throw new Error(`no schema with key or ref "${_}"`)}else N=this.compile(_);const l=N(O);return"$async"in N||(this.errors=N.errors),l}compile(_,O){const N=this._addSchema(_,O);return N.validate||this._compileSchemaEnv(N)}compileAsync(_,O){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:N}=this.opts;return l.call(this,_,O);async function l(se,w){await h.call(this,se.$schema);const T=this._addSchema(se,w);return T.validate||I.call(this,T)}async function h(se){se&&!this.getSchema(se)&&await l.call(this,{$ref:se},!0)}async function I(se){try{return this._compileSchemaEnv(se)}catch(w){if(!(w instanceof s.default))throw w;return q.call(this,w),await x.call(this,w.missingSchema),I.call(this,se)}}function q({missingSchema:se,missingRef:w}){if(this.refs[se])throw new Error(`AnySchema ${se} is loaded but ${w} cannot be resolved`)}async function x(se){const w=await ne.call(this,se);this.refs[se]||await h.call(this,w.$schema),this.refs[se]||this.addSchema(w,se,O)}async function ne(se){const w=this._loading[se];if(w)return w;try{return await(this._loading[se]=N(se))}finally{delete this._loading[se]}}}addSchema(_,O,N,l=this.opts.validateSchema){if(Array.isArray(_)){for(const I of _)this.addSchema(I,void 0,N,l);return this}let h;if(typeof _=="object"){const{schemaId:I}=this.opts;if(h=_[I],h!==void 0&&typeof h!="string")throw new Error(`schema ${I} must be string`)}return O=(0,o.normalizeId)(O||h),this._checkUnique(O),this.schemas[O]=this._addSchema(_,N,O,l,!0),this}addMetaSchema(_,O,N=this.opts.validateSchema){return this.addSchema(_,O,!0,N),this}validateSchema(_,O){if(typeof _=="boolean")return!0;let N;if(N=_.$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;const l=this.validate(N,_);if(!l&&O){const h="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(h);else throw new Error(h)}return l}getSchema(_){let O;for(;typeof(O=re.call(this,_))=="string";)_=O;if(O===void 0){const{schemaId:N}=this.opts,l=new c.SchemaEnv({schema:{},schemaId:N});if(O=c.resolveSchema.call(this,l,_),!O)return;this.refs[_]=O}return O.validate||this._compileSchemaEnv(O)}removeSchema(_){if(_ instanceof RegExp)return this._removeAllSchemas(this.schemas,_),this._removeAllSchemas(this.refs,_),this;switch(typeof _){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const O=re.call(this,_);return typeof O=="object"&&this._cache.delete(O.schema),delete this.schemas[_],delete this.refs[_],this}case"object":{const O=_;this._cache.delete(O);let N=_[this.opts.schemaId];return N&&(N=(0,o.normalizeId)(N),delete this.schemas[N],delete this.refs[N]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(_){for(const O of _)this.addKeyword(O);return this}addKeyword(_,O){let N;if(typeof _=="string")N=_,typeof O=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),O.keyword=N);else if(typeof _=="object"&&O===void 0){if(O=_,N=O.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(j.call(this,N,O),!O)return(0,f.eachItem)(N,h=>K.call(this,h)),this;X.call(this,O);const l={...O,type:(0,u.getJSONTypes)(O.type),schemaType:(0,u.getJSONTypes)(O.schemaType)};return(0,f.eachItem)(N,l.type.length===0?h=>K.call(this,h,l):h=>l.type.forEach(I=>K.call(this,h,l,I))),this}getKeyword(_){const O=this.RULES.all[_];return typeof O=="object"?O.definition:!!O}removeKeyword(_){const{RULES:O}=this;delete O.keywords[_],delete O.all[_];for(const N of O.rules){const l=N.rules.findIndex(h=>h.keyword===_);l>=0&&N.rules.splice(l,1)}return this}addFormat(_,O){return typeof O=="string"&&(O=new RegExp(O)),this.formats[_]=O,this}errorsText(_=this.errors,{separator:O=", ",dataVar:N="data"}={}){return!_||_.length===0?"No errors":_.map(l=>`${N}${l.instancePath} ${l.message}`).reduce((l,h)=>l+O+h)}$dataMetaSchema(_,O){const N=this.RULES.all;_=JSON.parse(JSON.stringify(_));for(const l of O){const h=l.split("/").slice(1);let I=_;for(const q of h)I=I[q];for(const q in N){const x=N[q];if(typeof x!="object")continue;const{$data:ne}=x.definition,se=I[q];ne&&se&&(I[q]=W(se))}}return _}_removeAllSchemas(_,O){for(const N in _){const l=_[N];(!O||O.test(N))&&(typeof l=="string"?delete _[N]:l&&!l.meta&&(this._cache.delete(l.schema),delete _[N]))}}_addSchema(_,O,N,l=this.opts.validateSchema,h=this.opts.addUsedSchema){let I;const{schemaId:q}=this.opts;if(typeof _=="object")I=_[q];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof _!="boolean")throw new Error("schema must be object or boolean")}let x=this._cache.get(_);if(x!==void 0)return x;N=(0,o.normalizeId)(I||N);const ne=o.getSchemaRefs.call(this,_,N);return x=new c.SchemaEnv({schema:_,schemaId:q,meta:O,baseId:N,localRefs:ne}),this._cache.set(x.schema,x),h&&!N.startsWith("#")&&(N&&this._checkUnique(N),this.refs[N]=x),l&&this.validateSchema(_,!0),x}_checkUnique(_){if(this.schemas[_]||this.refs[_])throw new Error(`schema with key or id "${_}" already exists`)}_compileSchemaEnv(_){if(_.meta?this._compileMetaSchema(_):c.compileSchema.call(this,_),!_.validate)throw new Error("ajv implementation error");return _.validate}_compileMetaSchema(_){const O=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,_)}finally{this.opts=O}}}F.ValidationError=n.default,F.MissingRefError=s.default,e.default=F;function V(D,_,O,N="error"){for(const l in D){const h=l;h in _&&this.logger[N](`${O}: option ${l}. ${D[h]}`)}}function re(D){return D=(0,o.normalizeId)(D),this.schemas[D]||this.refs[D]}function ce(){const D=this.opts.schemas;if(D)if(Array.isArray(D))this.addSchema(D);else for(const _ in D)this.addSchema(D[_],_)}function Ne(){for(const D in this.opts.formats){const _=this.opts.formats[D];_&&this.addFormat(D,_)}}function Ce(D){if(Array.isArray(D)){this.addVocabulary(D);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const _ in D){const O=D[_];O.keyword||(O.keyword=_),this.addKeyword(O)}}function je(){const D={...this.opts};for(const _ of m)delete D[_];return D}const ke={log(){},warn(){},error(){}};function de(D){if(D===!1)return ke;if(D===void 0)return console;if(D.log&&D.warn&&D.error)return D;throw new Error("logger must implement log, warn and error methods")}const L=/^[a-z_$][a-z0-9_$:-]*$/i;function j(D,_){const{RULES:O}=this;if((0,f.eachItem)(D,N=>{if(O.keywords[N])throw new Error(`Keyword ${N} is already defined`);if(!L.test(N))throw new Error(`Keyword ${N} has invalid name`)}),!!_&&_.$data&&!("code"in _||"validate"in _))throw new Error('$data keyword must have "code" or "validate" function')}function K(D,_,O){var N;const l=_==null?void 0:_.post;if(O&&l)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:h}=this;let I=l?h.post:h.rules.find(({type:x})=>x===O);if(I||(I={type:O,rules:[]},h.rules.push(I)),h.keywords[D]=!0,!_)return;const q={keyword:D,definition:{..._,type:(0,u.getJSONTypes)(_.type),schemaType:(0,u.getJSONTypes)(_.schemaType)}};_.before?z.call(this,I,q,_.before):I.rules.push(q),h.all[D]=q,(N=_.implements)===null||N===void 0||N.forEach(x=>this.addKeyword(x))}function z(D,_,O){const N=D.rules.findIndex(l=>l.keyword===O);N>=0?D.rules.splice(N,0,_):(D.rules.push(_),this.logger.warn(`rule ${O} is not defined`))}function X(D){let{metaSchema:_}=D;_!==void 0&&(D.$data&&this.opts.$data&&(_=W(_)),D.validateSchema=this.compile(_,!0))}const G={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function W(D){return{anyOf:[D,G]}}}(ys);var sn={},an={},on={};Object.defineProperty(on,"__esModule",{value:!0});const xi={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};on.default=xi;var ht={};Object.defineProperty(ht,"__esModule",{value:!0}),ht.callRef=ht.getValidate=void 0;const Gi=Zr(),Bs=te,Fe=ee,Tt=Je,Js=Le,cr=U,zi={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e,{baseId:s,schemaEnv:a,validateName:c,opts:i,self:o}=n,{root:u}=a;if((r==="#"||r==="#/")&&s===u.baseId)return p();const f=Js.resolveRef.call(o,u,s,r);if(f===void 0)throw new Gi.default(n.opts.uriResolver,s,r);if(f instanceof Js.SchemaEnv)return b(f);return v(f);function p(){if(a===u)return ur(e,c,a,a.$async);const m=t.scopeValue("root",{ref:u});return ur(e,(0,Fe._)`${m}.validate`,u,u.$async)}function b(m){const S=Ws(e,m);ur(e,S,m,m.$async)}function v(m){const S=t.scopeValue("schema",i.code.source===!0?{ref:m,code:(0,Fe.stringify)(m)}:{ref:m}),E=t.name("valid"),y=e.subschema({schema:m,dataTypes:[],schemaPath:Fe.nil,topSchemaRef:S,errSchemaPath:r},E);e.mergeEvaluated(y),e.ok(E)}}};function Ws(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Fe._)`${r.scopeValue("wrapper",{ref:t})}.validate`}ht.getValidate=Ws;function ur(e,t,r,n){const{gen:s,it:a}=e,{allErrors:c,schemaEnv:i,opts:o}=a,u=o.passContext?Tt.default.this:Fe.nil;n?f():p();function f(){if(!i.$async)throw new Error("async schema referenced by sync schema");const m=s.let("valid");s.try(()=>{s.code((0,Fe._)`await ${(0,Bs.callValidateCode)(e,t,u)}`),v(t),c||s.assign(m,!0)},S=>{s.if((0,Fe._)`!(${S} instanceof ${a.ValidationError})`,()=>s.throw(S)),b(S),c||s.assign(m,!1)}),e.ok(m)}function p(){e.result((0,Bs.callValidateCode)(e,t,u),()=>v(t),()=>b(t))}function b(m){const S=(0,Fe._)`${m}.errors`;s.assign(Tt.default.vErrors,(0,Fe._)`${Tt.default.vErrors} === null ? ${S} : ${Tt.default.vErrors}.concat(${S})`),s.assign(Tt.default.errors,(0,Fe._)`${Tt.default.vErrors}.length`)}function v(m){var S;if(!a.opts.unevaluated)return;const E=(S=r==null?void 0:r.validate)===null||S===void 0?void 0:S.evaluated;if(a.props!==!0)if(E&&!E.dynamicProps)E.props!==void 0&&(a.props=cr.mergeEvaluated.props(s,E.props,a.props));else{const y=s.var("props",(0,Fe._)`${m}.evaluated.props`);a.props=cr.mergeEvaluated.props(s,y,a.props,Fe.Name)}if(a.items!==!0)if(E&&!E.dynamicItems)E.items!==void 0&&(a.items=cr.mergeEvaluated.items(s,E.items,a.items));else{const y=s.var("items",(0,Fe._)`${m}.evaluated.items`);a.items=cr.mergeEvaluated.items(s,y,a.items,Fe.Name)}}}ht.callRef=ur,ht.default=zi,Object.defineProperty(an,"__esModule",{value:!0});const Hi=on,Ki=ht,Xi=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",Hi.default,Ki.default];an.default=Xi;var ln={},cn={};Object.defineProperty(cn,"__esModule",{value:!0});const dr=ee,ut=dr.operators,fr={maximum:{okStr:"<=",ok:ut.LTE,fail:ut.GT},minimum:{okStr:">=",ok:ut.GTE,fail:ut.LT},exclusiveMaximum:{okStr:"<",ok:ut.LT,fail:ut.GTE},exclusiveMinimum:{okStr:">",ok:ut.GT,fail:ut.LTE}},Bi={message:({keyword:e,schemaCode:t})=>(0,dr.str)`must be ${fr[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,dr._)`{comparison: ${fr[e].okStr}, limit: ${t}}`},Ji={keyword:Object.keys(fr),type:"number",schemaType:"number",$data:!0,error:Bi,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,dr._)`${r} ${fr[t].fail} ${n} || isNaN(${r})`)}};cn.default=Ji;var un={};Object.defineProperty(un,"__esModule",{value:!0});const qt=ee,Wi={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>(0,qt.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,qt._)`{multipleOf: ${e}}`},code(e){const{gen:t,data:r,schemaCode:n,it:s}=e,a=s.opts.multipleOfPrecision,c=t.let("res"),i=a?(0,qt._)`Math.abs(Math.round(${c}) - ${c}) > 1e-${a}`:(0,qt._)`${c} !== parseInt(${c})`;e.fail$data((0,qt._)`(${n} === 0 || (${c} = ${r}/${n}, ${i}))`)}};un.default=Wi;var dn={},fn={};Object.defineProperty(fn,"__esModule",{value:!0});function Ys(e){const t=e.length;let r=0,n=0,s;for(;n=55296&&s<=56319&&n(0,gt._)`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n,it:s}=e,a=t==="maxLength"?gt.operators.GT:gt.operators.LT,c=s.opts.unicode===!1?(0,gt._)`${r}.length`:(0,gt._)`${(0,Yi.useFunc)(e.gen,Qi.default)}(${r})`;e.fail$data((0,gt._)`${c} ${a} ${n}`)}};dn.default=Zi;var pn={};Object.defineProperty(pn,"__esModule",{value:!0});const el=te,pr=ee,tl={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,pr.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,pr._)`{pattern: ${e}}`},code(e){const{data:t,$data:r,schema:n,schemaCode:s,it:a}=e,c=a.opts.unicodeRegExp?"u":"",i=r?(0,pr._)`(new RegExp(${s}, ${c}))`:(0,el.usePattern)(e,n);e.fail$data((0,pr._)`!${i}.test(${t})`)}};pn.default=tl;var mn={};Object.defineProperty(mn,"__esModule",{value:!0});const Ut=ee,rl={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,Ut.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Ut._)`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,s=t==="maxProperties"?Ut.operators.GT:Ut.operators.LT;e.fail$data((0,Ut._)`Object.keys(${r}).length ${s} ${n}`)}};mn.default=rl;var hn={};Object.defineProperty(hn,"__esModule",{value:!0});const xt=te,Gt=ee,nl=U,sl={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>(0,Gt.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Gt._)`{missingProperty: ${e}}`},code(e){const{gen:t,schema:r,schemaCode:n,data:s,$data:a,it:c}=e,{opts:i}=c;if(!a&&r.length===0)return;const o=r.length>=i.loopRequired;if(c.allErrors?u():f(),i.strictRequired){const v=e.parentSchema.properties,{definedProperties:m}=e.it;for(const S of r)if((v==null?void 0:v[S])===void 0&&!m.has(S)){const E=c.schemaEnv.baseId+c.errSchemaPath,y=`required property "${S}" is not defined at "${E}" (strictRequired)`;(0,nl.checkStrictMode)(c,y,c.opts.strictRequired)}}function u(){if(o||a)e.block$data(Gt.nil,p);else for(const v of r)(0,xt.checkReportMissingProp)(e,v)}function f(){const v=t.let("missing");if(o||a){const m=t.let("valid",!0);e.block$data(m,()=>b(v,m)),e.ok(m)}else t.if((0,xt.checkMissingProp)(e,r,v)),(0,xt.reportMissingProp)(e,v),t.else()}function p(){t.forOf("prop",n,v=>{e.setParams({missingProperty:v}),t.if((0,xt.noPropertyInData)(t,s,v,i.ownProperties),()=>e.error())})}function b(v,m){e.setParams({missingProperty:v}),t.forOf(v,n,()=>{t.assign(m,(0,xt.propertyInData)(t,s,v,i.ownProperties)),t.if((0,Gt.not)(m),()=>{e.error(),t.break()})},Gt.nil)}}};hn.default=sl;var gn={};Object.defineProperty(gn,"__esModule",{value:!0});const zt=ee,al={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,zt.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,zt._)`{limit: ${e}}`},code(e){const{keyword:t,data:r,schemaCode:n}=e,s=t==="maxItems"?zt.operators.GT:zt.operators.LT;e.fail$data((0,zt._)`${r}.length ${s} ${n}`)}};gn.default=al;var vn={},Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});const Qs=Fs;Qs.code='require("ajv/dist/runtime/equal").default',Ht.default=Qs,Object.defineProperty(vn,"__esModule",{value:!0});const yn=be,Re=ee,ol=U,il=Ht,ll={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>(0,Re.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,Re._)`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:r,$data:n,schema:s,parentSchema:a,schemaCode:c,it:i}=e;if(!n&&!s)return;const o=t.let("valid"),u=a.items?(0,yn.getSchemaTypes)(a.items):[];e.block$data(o,f,(0,Re._)`${c} === false`),e.ok(o);function f(){const m=t.let("i",(0,Re._)`${r}.length`),S=t.let("j");e.setParams({i:m,j:S}),t.assign(o,!0),t.if((0,Re._)`${m} > 1`,()=>(p()?b:v)(m,S))}function p(){return u.length>0&&!u.some(m=>m==="object"||m==="array")}function b(m,S){const E=t.name("item"),y=(0,yn.checkDataTypes)(u,E,i.opts.strictNumbers,yn.DataType.Wrong),P=t.const("indices",(0,Re._)`{}`);t.for((0,Re._)`;${m}--;`,()=>{t.let(E,(0,Re._)`${r}[${m}]`),t.if(y,(0,Re._)`continue`),u.length>1&&t.if((0,Re._)`typeof ${E} == "string"`,(0,Re._)`${E} += "_"`),t.if((0,Re._)`typeof ${P}[${E}] == "number"`,()=>{t.assign(S,(0,Re._)`${P}[${E}]`),e.error(),t.assign(o,!1).break()}).code((0,Re._)`${P}[${E}] = ${m}`)})}function v(m,S){const E=(0,ol.useFunc)(t,il.default),y=t.name("outer");t.label(y).for((0,Re._)`;${m}--;`,()=>t.for((0,Re._)`${S} = ${m}; ${S}--;`,()=>t.if((0,Re._)`${E}(${r}[${m}], ${r}[${S}])`,()=>{e.error(),t.assign(o,!1).break(y)})))}}};vn.default=ll;var $n={};Object.defineProperty($n,"__esModule",{value:!0});const _n=ee,cl=U,ul=Ht,dl={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>(0,_n._)`{allowedValue: ${e}}`},code(e){const{gen:t,data:r,$data:n,schemaCode:s,schema:a}=e;n||a&&typeof a=="object"?e.fail$data((0,_n._)`!${(0,cl.useFunc)(t,ul.default)}(${r}, ${s})`):e.fail((0,_n._)`${a} !== ${r}`)}};$n.default=dl;var En={};Object.defineProperty(En,"__esModule",{value:!0});const Kt=ee,fl=U,pl=Ht,ml={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Kt._)`{allowedValues: ${e}}`},code(e){const{gen:t,data:r,$data:n,schema:s,schemaCode:a,it:c}=e;if(!n&&s.length===0)throw new Error("enum must have non-empty array");const i=s.length>=c.opts.loopEnum;let o;const u=()=>o??(o=(0,fl.useFunc)(t,pl.default));let f;if(i||n)f=t.let("valid"),e.block$data(f,p);else{if(!Array.isArray(s))throw new Error("ajv implementation error");const v=t.const("vSchema",a);f=(0,Kt.or)(...s.map((m,S)=>b(v,S)))}e.pass(f);function p(){t.assign(f,!1),t.forOf("v",a,v=>t.if((0,Kt._)`${u()}(${r}, ${v})`,()=>t.assign(f,!0).break()))}function b(v,m){const S=s[m];return typeof S=="object"&&S!==null?(0,Kt._)`${u()}(${r}, ${v}[${m}])`:(0,Kt._)`${r} === ${S}`}}};En.default=ml,Object.defineProperty(ln,"__esModule",{value:!0});const hl=cn,gl=un,vl=dn,yl=pn,$l=mn,_l=hn,El=gn,wl=vn,bl=$n,Sl=En,Pl=[hl.default,gl.default,vl.default,yl.default,$l.default,_l.default,El.default,wl.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},bl.default,Sl.default];ln.default=Pl;var wn={},Rt={};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.validateAdditionalItems=void 0;const vt=ee,bn=U,Nl={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,vt.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,vt._)`{limit: ${e}}`},code(e){const{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,bn.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Zs(e,n)}};function Zs(e,t){const{gen:r,schema:n,data:s,keyword:a,it:c}=e;c.items=!0;const i=r.const("len",(0,vt._)`${s}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,vt._)`${i} <= ${t.length}`);else if(typeof n=="object"&&!(0,bn.alwaysValidSchema)(c,n)){const u=r.var("valid",(0,vt._)`${i} <= ${t.length}`);r.if((0,vt.not)(u),()=>o(u)),e.ok(u)}function o(u){r.forRange("i",t.length,i,f=>{e.subschema({keyword:a,dataProp:f,dataPropType:bn.Type.Num},u),c.allErrors||r.if((0,vt.not)(u),()=>r.break())})}}Rt.validateAdditionalItems=Zs,Rt.default=Nl;var Sn={},kt={};Object.defineProperty(kt,"__esModule",{value:!0}),kt.validateTuple=void 0;const ea=ee,mr=U,Tl=te,Rl={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return ta(e,"additionalItems",t);r.items=!0,!(0,mr.alwaysValidSchema)(r,t)&&e.ok((0,Tl.validateArray)(e))}};function ta(e,t,r=e.schema){const{gen:n,parentSchema:s,data:a,keyword:c,it:i}=e;f(s),i.opts.unevaluated&&r.length&&i.items!==!0&&(i.items=mr.mergeEvaluated.items(n,r.length,i.items));const o=n.name("valid"),u=n.const("len",(0,ea._)`${a}.length`);r.forEach((p,b)=>{(0,mr.alwaysValidSchema)(i,p)||(n.if((0,ea._)`${u} > ${b}`,()=>e.subschema({keyword:c,schemaProp:b,dataProp:b},o)),e.ok(o))});function f(p){const{opts:b,errSchemaPath:v}=i,m=r.length,S=m===p.minItems&&(m===p.maxItems||p[t]===!1);if(b.strictTuples&&!S){const E=`"${c}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${v}"`;(0,mr.checkStrictMode)(i,E,b.strictTuples)}}}kt.validateTuple=ta,kt.default=Rl,Object.defineProperty(Sn,"__esModule",{value:!0});const kl=kt,Il={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,kl.validateTuple)(e,"items")};Sn.default=Il;var Pn={};Object.defineProperty(Pn,"__esModule",{value:!0});const ra=ee,Ol=U,Dl=te,Cl=Rt,Al={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>(0,ra.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,ra._)`{limit: ${e}}`},code(e){const{schema:t,parentSchema:r,it:n}=e,{prefixItems:s}=r;n.items=!0,!(0,Ol.alwaysValidSchema)(n,t)&&(s?(0,Cl.validateAdditionalItems)(e,s):e.ok((0,Dl.validateArray)(e)))}};Pn.default=Al;var Nn={};Object.defineProperty(Nn,"__esModule",{value:!0});const qe=ee,hr=U,jl={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>t===void 0?(0,qe.str)`must contain at least ${e} valid item(s)`:(0,qe.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,qe._)`{minContains: ${e}}`:(0,qe._)`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:s,it:a}=e;let c,i;const{minContains:o,maxContains:u}=n;a.opts.next?(c=o===void 0?1:o,i=u):c=1;const f=t.const("len",(0,qe._)`${s}.length`);if(e.setParams({min:c,max:i}),i===void 0&&c===0){(0,hr.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(i!==void 0&&c>i){(0,hr.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,hr.alwaysValidSchema)(a,r)){let S=(0,qe._)`${f} >= ${c}`;i!==void 0&&(S=(0,qe._)`${S} && ${f} <= ${i}`),e.pass(S);return}a.items=!0;const p=t.name("valid");i===void 0&&c===1?v(p,()=>t.if(p,()=>t.break())):c===0?(t.let(p,!0),i!==void 0&&t.if((0,qe._)`${s}.length > 0`,b)):(t.let(p,!1),b()),e.result(p,()=>e.reset());function b(){const S=t.name("_valid"),E=t.let("count",0);v(S,()=>t.if(S,()=>m(E)))}function v(S,E){t.forRange("i",0,f,y=>{e.subschema({keyword:"contains",dataProp:y,dataPropType:hr.Type.Num,compositeRule:!0},S),E()})}function m(S){t.code((0,qe._)`${S}++`),i===void 0?t.if((0,qe._)`${S} >= ${c}`,()=>t.assign(p,!0).break()):(t.if((0,qe._)`${S} > ${i}`,()=>t.assign(p,!1).break()),c===1?t.assign(p,!0):t.if((0,qe._)`${S} >= ${c}`,()=>t.assign(p,!0)))}}};Nn.default=jl;var na={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=ee,r=U,n=te;e.error={message:({params:{property:o,depsCount:u,deps:f}})=>{const p=u===1?"property":"properties";return(0,t.str)`must have ${p} ${f} when property ${o} is present`},params:({params:{property:o,depsCount:u,deps:f,missingProperty:p}})=>(0,t._)`{property: ${o}, missingProperty: ${p}, depsCount: ${u}, deps: ${f}}`};const s={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(o){const[u,f]=a(o);c(o,u),i(o,f)}};function a({schema:o}){const u={},f={};for(const p in o){if(p==="__proto__")continue;const b=Array.isArray(o[p])?u:f;b[p]=o[p]}return[u,f]}function c(o,u=o.schema){const{gen:f,data:p,it:b}=o;if(Object.keys(u).length===0)return;const v=f.let("missing");for(const m in u){const S=u[m];if(S.length===0)continue;const E=(0,n.propertyInData)(f,p,m,b.opts.ownProperties);o.setParams({property:m,depsCount:S.length,deps:S.join(", ")}),b.allErrors?f.if(E,()=>{for(const y of S)(0,n.checkReportMissingProp)(o,y)}):(f.if((0,t._)`${E} && (${(0,n.checkMissingProp)(o,S,v)})`),(0,n.reportMissingProp)(o,v),f.else())}}e.validatePropertyDeps=c;function i(o,u=o.schema){const{gen:f,data:p,keyword:b,it:v}=o,m=f.name("valid");for(const S in u)(0,r.alwaysValidSchema)(v,u[S])||(f.if((0,n.propertyInData)(f,p,S,v.opts.ownProperties),()=>{const E=o.subschema({keyword:b,schemaProp:S},m);o.mergeValidEvaluated(E,m)},()=>f.var(m,!0)),o.ok(m))}e.validateSchemaDeps=i,e.default=s})(na);var Tn={};Object.defineProperty(Tn,"__esModule",{value:!0});const sa=ee,Ll=U,Fl={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>(0,sa._)`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:r,data:n,it:s}=e;if((0,Ll.alwaysValidSchema)(s,r))return;const a=t.name("valid");t.forIn("key",n,c=>{e.setParams({propertyName:c}),e.subschema({keyword:"propertyNames",data:c,dataTypes:["string"],propertyName:c,compositeRule:!0},a),t.if((0,sa.not)(a),()=>{e.error(!0),s.allErrors||t.break()})}),e.ok(a)}};Tn.default=Fl;var gr={};Object.defineProperty(gr,"__esModule",{value:!0});const vr=te,Ke=ee,Ml=Je,yr=U,Vl={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>(0,Ke._)`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:r,parentSchema:n,data:s,errsCount:a,it:c}=e;if(!a)throw new Error("ajv implementation error");const{allErrors:i,opts:o}=c;if(c.props=!0,o.removeAdditional!=="all"&&(0,yr.alwaysValidSchema)(c,r))return;const u=(0,vr.allSchemaProperties)(n.properties),f=(0,vr.allSchemaProperties)(n.patternProperties);p(),e.ok((0,Ke._)`${a} === ${Ml.default.errors}`);function p(){t.forIn("key",s,E=>{!u.length&&!f.length?m(E):t.if(b(E),()=>m(E))})}function b(E){let y;if(u.length>8){const P=(0,yr.schemaRefOrVal)(c,n.properties,"properties");y=(0,vr.isOwnProperty)(t,P,E)}else u.length?y=(0,Ke.or)(...u.map(P=>(0,Ke._)`${E} === ${P}`)):y=Ke.nil;return f.length&&(y=(0,Ke.or)(y,...f.map(P=>(0,Ke._)`${(0,vr.usePattern)(e,P)}.test(${E})`))),(0,Ke.not)(y)}function v(E){t.code((0,Ke._)`delete ${s}[${E}]`)}function m(E){if(o.removeAdditional==="all"||o.removeAdditional&&r===!1){v(E);return}if(r===!1){e.setParams({additionalProperty:E}),e.error(),i||t.break();return}if(typeof r=="object"&&!(0,yr.alwaysValidSchema)(c,r)){const y=t.name("valid");o.removeAdditional==="failing"?(S(E,y,!1),t.if((0,Ke.not)(y),()=>{e.reset(),v(E)})):(S(E,y),i||t.if((0,Ke.not)(y),()=>t.break()))}}function S(E,y,P){const A={keyword:"additionalProperties",dataProp:E,dataPropType:yr.Type.Str};P===!1&&Object.assign(A,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(A,y)}}};gr.default=Vl;var Rn={};Object.defineProperty(Rn,"__esModule",{value:!0});const ql=sr(),aa=te,kn=U,oa=gr,Ul={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:n,data:s,it:a}=e;a.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&oa.default.code(new ql.KeywordCxt(a,oa.default,"additionalProperties"));const c=(0,aa.allSchemaProperties)(r);for(const p of c)a.definedProperties.add(p);a.opts.unevaluated&&c.length&&a.props!==!0&&(a.props=kn.mergeEvaluated.props(t,(0,kn.toHash)(c),a.props));const i=c.filter(p=>!(0,kn.alwaysValidSchema)(a,r[p]));if(i.length===0)return;const o=t.name("valid");for(const p of i)u(p)?f(p):(t.if((0,aa.propertyInData)(t,s,p,a.opts.ownProperties)),f(p),a.allErrors||t.else().var(o,!0),t.endIf()),e.it.definedProperties.add(p),e.ok(o);function u(p){return a.opts.useDefaults&&!a.compositeRule&&r[p].default!==void 0}function f(p){e.subschema({keyword:"properties",schemaProp:p,dataProp:p},o)}}};Rn.default=Ul;var In={};Object.defineProperty(In,"__esModule",{value:!0});const ia=te,$r=ee,la=U,ca=U,xl={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:n,parentSchema:s,it:a}=e,{opts:c}=a,i=(0,ia.allSchemaProperties)(r),o=i.filter(S=>(0,la.alwaysValidSchema)(a,r[S]));if(i.length===0||o.length===i.length&&(!a.opts.unevaluated||a.props===!0))return;const u=c.strictSchema&&!c.allowMatchingProperties&&s.properties,f=t.name("valid");a.props!==!0&&!(a.props instanceof $r.Name)&&(a.props=(0,ca.evaluatedPropsToName)(t,a.props));const{props:p}=a;b();function b(){for(const S of i)u&&v(S),a.allErrors?m(S):(t.var(f,!0),m(S),t.if(f))}function v(S){for(const E in u)new RegExp(S).test(E)&&(0,la.checkStrictMode)(a,`property ${E} matches pattern ${S} (use allowMatchingProperties)`)}function m(S){t.forIn("key",n,E=>{t.if((0,$r._)`${(0,ia.usePattern)(e,S)}.test(${E})`,()=>{const y=o.includes(S);y||e.subschema({keyword:"patternProperties",schemaProp:S,dataProp:E,dataPropType:ca.Type.Str},f),a.opts.unevaluated&&p!==!0?t.assign((0,$r._)`${p}[${E}]`,!0):!y&&!a.allErrors&&t.if((0,$r.not)(f),()=>t.break())})})}}};In.default=xl;var On={};Object.defineProperty(On,"__esModule",{value:!0});const Gl=U,zl={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:r,it:n}=e;if((0,Gl.alwaysValidSchema)(n,r)){e.fail();return}const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};On.default=zl;var Dn={};Object.defineProperty(Dn,"__esModule",{value:!0});const Hl={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:te.validateUnion,error:{message:"must match a schema in anyOf"}};Dn.default=Hl;var Cn={};Object.defineProperty(Cn,"__esModule",{value:!0});const _r=ee,Kl=U,Xl={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>(0,_r._)`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:r,parentSchema:n,it:s}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(s.opts.discriminator&&n.discriminator)return;const a=r,c=t.let("valid",!1),i=t.let("passing",null),o=t.name("_valid");e.setParams({passing:i}),t.block(u),e.result(c,()=>e.reset(),()=>e.error(!0));function u(){a.forEach((f,p)=>{let b;(0,Kl.alwaysValidSchema)(s,f)?t.var(o,!0):b=e.subschema({keyword:"oneOf",schemaProp:p,compositeRule:!0},o),p>0&&t.if((0,_r._)`${o} && ${c}`).assign(c,!1).assign(i,(0,_r._)`[${i}, ${p}]`).else(),t.if(o,()=>{t.assign(c,!0),t.assign(i,p),b&&e.mergeEvaluated(b,_r.Name)})})}}};Cn.default=Xl;var An={};Object.defineProperty(An,"__esModule",{value:!0});const Bl=U,Jl={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const s=t.name("valid");r.forEach((a,c)=>{if((0,Bl.alwaysValidSchema)(n,a))return;const i=e.subschema({keyword:"allOf",schemaProp:c},s);e.ok(s),e.mergeEvaluated(i)})}};An.default=Jl;var jn={};Object.defineProperty(jn,"__esModule",{value:!0});const Er=ee,ua=U,Wl={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>(0,Er.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Er._)`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,ua.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const s=da(n,"then"),a=da(n,"else");if(!s&&!a)return;const c=t.let("valid",!0),i=t.name("_valid");if(o(),e.reset(),s&&a){const f=t.let("ifClause");e.setParams({ifClause:f}),t.if(i,u("then",f),u("else",f))}else s?t.if(i,u("then")):t.if((0,Er.not)(i),u("else"));e.pass(c,()=>e.error(!0));function o(){const f=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},i);e.mergeEvaluated(f)}function u(f,p){return()=>{const b=e.subschema({keyword:f},i);t.assign(c,i),e.mergeValidEvaluated(b,c),p?t.assign(p,(0,Er._)`${f}`):e.setParams({ifClause:f})}}}};function da(e,t){const r=e.schema[t];return r!==void 0&&!(0,ua.alwaysValidSchema)(e,r)}jn.default=Wl;var Ln={};Object.defineProperty(Ln,"__esModule",{value:!0});const Yl=U,Ql={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,Yl.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Ln.default=Ql,Object.defineProperty(wn,"__esModule",{value:!0});const Zl=Rt,ec=Sn,tc=kt,rc=Pn,nc=Nn,sc=na,ac=Tn,oc=gr,ic=Rn,lc=In,cc=On,uc=Dn,dc=Cn,fc=An,pc=jn,mc=Ln;function hc(e=!1){const t=[cc.default,uc.default,dc.default,fc.default,pc.default,mc.default,ac.default,oc.default,sc.default,ic.default,lc.default];return e?t.push(ec.default,rc.default):t.push(Zl.default,tc.default),t.push(nc.default),t}wn.default=hc;var Fn={},Mn={};Object.defineProperty(Mn,"__esModule",{value:!0});const $e=ee,gc={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>(0,$e.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,$e._)`{format: ${e}}`},code(e,t){const{gen:r,data:n,$data:s,schema:a,schemaCode:c,it:i}=e,{opts:o,errSchemaPath:u,schemaEnv:f,self:p}=i;if(!o.validateFormats)return;s?b():v();function b(){const m=r.scopeValue("formats",{ref:p.formats,code:o.code.formats}),S=r.const("fDef",(0,$e._)`${m}[${c}]`),E=r.let("fType"),y=r.let("format");r.if((0,$e._)`typeof ${S} == "object" && !(${S} instanceof RegExp)`,()=>r.assign(E,(0,$e._)`${S}.type || "string"`).assign(y,(0,$e._)`${S}.validate`),()=>r.assign(E,(0,$e._)`"string"`).assign(y,S)),e.fail$data((0,$e.or)(P(),A()));function P(){return o.strictSchema===!1?$e.nil:(0,$e._)`${c} && !${y}`}function A(){const F=f.$async?(0,$e._)`(${S}.async ? await ${y}(${n}) : ${y}(${n}))`:(0,$e._)`${y}(${n})`,V=(0,$e._)`(typeof ${y} == "function" ? ${F} : ${y}.test(${n}))`;return(0,$e._)`${y} && ${y} !== true && ${E} === ${t} && !${V}`}}function v(){const m=p.formats[a];if(!m){P();return}if(m===!0)return;const[S,E,y]=A(m);S===t&&e.pass(F());function P(){if(o.strictSchema===!1){p.logger.warn(V());return}throw new Error(V());function V(){return`unknown format "${a}" ignored in schema at path "${u}"`}}function A(V){const re=V instanceof RegExp?(0,$e.regexpCode)(V):o.code.formats?(0,$e._)`${o.code.formats}${(0,$e.getProperty)(a)}`:void 0,ce=r.scopeValue("formats",{key:a,ref:V,code:re});return typeof V=="object"&&!(V instanceof RegExp)?[V.type||"string",V.validate,(0,$e._)`${ce}.validate`]:["string",V,ce]}function F(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!f.$async)throw new Error("async format in sync schema");return(0,$e._)`await ${y}(${n})`}return typeof E=="function"?(0,$e._)`${y}(${n})`:(0,$e._)`${y}.test(${n})`}}}};Mn.default=gc,Object.defineProperty(Fn,"__esModule",{value:!0});const vc=[Mn.default];Fn.default=vc;var It={};Object.defineProperty(It,"__esModule",{value:!0}),It.contentVocabulary=It.metadataVocabulary=void 0,It.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],It.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"],Object.defineProperty(sn,"__esModule",{value:!0});const yc=an,$c=ln,_c=wn,Ec=Fn,fa=It,wc=[yc.default,$c.default,(0,_c.default)(),Ec.default,fa.metadataVocabulary,fa.contentVocabulary];sn.default=wc;var Vn={},wr={};Object.defineProperty(wr,"__esModule",{value:!0}),wr.DiscrError=void 0;var pa;(function(e){e.Tag="tag",e.Mapping="mapping"})(pa||(wr.DiscrError=pa={})),Object.defineProperty(Vn,"__esModule",{value:!0});const Ot=ee,qn=wr,ma=Le,bc=U,Sc={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===qn.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Ot._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},code(e){const{gen:t,data:r,schema:n,parentSchema:s,it:a}=e,{oneOf:c}=s;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");const i=n.propertyName;if(typeof i!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!c)throw new Error("discriminator: requires oneOf keyword");const o=t.let("valid",!1),u=t.const("tag",(0,Ot._)`${r}${(0,Ot.getProperty)(i)}`);t.if((0,Ot._)`typeof ${u} == "string"`,()=>f(),()=>e.error(!1,{discrError:qn.DiscrError.Tag,tag:u,tagName:i})),e.ok(o);function f(){const v=b();t.if(!1);for(const m in v)t.elseIf((0,Ot._)`${u} === ${m}`),t.assign(o,p(v[m]));t.else(),e.error(!1,{discrError:qn.DiscrError.Mapping,tag:u,tagName:i}),t.endIf()}function p(v){const m=t.name("valid"),S=e.subschema({keyword:"oneOf",schemaProp:v},m);return e.mergeEvaluated(S,Ot.Name),m}function b(){var v;const m={},S=y(s);let E=!0;for(let F=0;Fthis.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(a,c):a;this.addMetaSchema(m,i,!1),this.refs["http://json-schema.org/schema"]=i}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}t.Ajv=o,e.exports=t=o,e.exports.Ajv=o,Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var u=sr();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return u.KeywordCxt}});var f=ee;Object.defineProperty(t,"_",{enumerable:!0,get:function(){return f._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return f.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return f.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return f.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return f.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return f.CodeGen}});var p=Qr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return p.default}});var b=Zr();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return b.default}})})(qr,qr.exports);var Nc=qr.exports;const Tc=vs(Nc);var Un={exports:{}};const Rc="2.0.0",ha=256,kc=Number.MAX_SAFE_INTEGER||9007199254740991,Ic=16,Oc=ha-6;var br={MAX_LENGTH:ha,MAX_SAFE_COMPONENT_LENGTH:Ic,MAX_SAFE_BUILD_LENGTH:Oc,MAX_SAFE_INTEGER:kc,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:Rc,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Sr=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:s}=br,a=Sr;t=e.exports={};const c=t.re=[],i=t.safeRe=[],o=t.src=[],u=t.t={};let f=0;const p="[a-zA-Z0-9-]",b=[["\\s",1],["\\d",s],[p,n]],v=S=>{for(const[E,y]of b)S=S.split(`${E}*`).join(`${E}{0,${y}}`).split(`${E}+`).join(`${E}{1,${y}}`);return S},m=(S,E,y)=>{const P=v(E),A=f++;a(S,A,E),u[S]=A,o[A]=E,c[A]=new RegExp(E,y?"g":void 0),i[A]=new RegExp(P,y?"g":void 0)};m("NUMERICIDENTIFIER","0|[1-9]\\d*"),m("NUMERICIDENTIFIERLOOSE","\\d+"),m("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),m("MAINVERSION",`(${o[u.NUMERICIDENTIFIER]})\\.(${o[u.NUMERICIDENTIFIER]})\\.(${o[u.NUMERICIDENTIFIER]})`),m("MAINVERSIONLOOSE",`(${o[u.NUMERICIDENTIFIERLOOSE]})\\.(${o[u.NUMERICIDENTIFIERLOOSE]})\\.(${o[u.NUMERICIDENTIFIERLOOSE]})`),m("PRERELEASEIDENTIFIER",`(?:${o[u.NUMERICIDENTIFIER]}|${o[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASEIDENTIFIERLOOSE",`(?:${o[u.NUMERICIDENTIFIERLOOSE]}|${o[u.NONNUMERICIDENTIFIER]})`),m("PRERELEASE",`(?:-(${o[u.PRERELEASEIDENTIFIER]}(?:\\.${o[u.PRERELEASEIDENTIFIER]})*))`),m("PRERELEASELOOSE",`(?:-?(${o[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[u.PRERELEASEIDENTIFIERLOOSE]})*))`),m("BUILDIDENTIFIER",`${p}+`),m("BUILD",`(?:\\+(${o[u.BUILDIDENTIFIER]}(?:\\.${o[u.BUILDIDENTIFIER]})*))`),m("FULLPLAIN",`v?${o[u.MAINVERSION]}${o[u.PRERELEASE]}?${o[u.BUILD]}?`),m("FULL",`^${o[u.FULLPLAIN]}$`),m("LOOSEPLAIN",`[v=\\s]*${o[u.MAINVERSIONLOOSE]}${o[u.PRERELEASELOOSE]}?${o[u.BUILD]}?`),m("LOOSE",`^${o[u.LOOSEPLAIN]}$`),m("GTLT","((?:<|>)?=?)"),m("XRANGEIDENTIFIERLOOSE",`${o[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),m("XRANGEIDENTIFIER",`${o[u.NUMERICIDENTIFIER]}|x|X|\\*`),m("XRANGEPLAIN",`[v=\\s]*(${o[u.XRANGEIDENTIFIER]})(?:\\.(${o[u.XRANGEIDENTIFIER]})(?:\\.(${o[u.XRANGEIDENTIFIER]})(?:${o[u.PRERELEASE]})?${o[u.BUILD]}?)?)?`),m("XRANGEPLAINLOOSE",`[v=\\s]*(${o[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${o[u.XRANGEIDENTIFIERLOOSE]})(?:${o[u.PRERELEASELOOSE]})?${o[u.BUILD]}?)?)?`),m("XRANGE",`^${o[u.GTLT]}\\s*${o[u.XRANGEPLAIN]}$`),m("XRANGELOOSE",`^${o[u.GTLT]}\\s*${o[u.XRANGEPLAINLOOSE]}$`),m("COERCEPLAIN",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`),m("COERCE",`${o[u.COERCEPLAIN]}(?:$|[^\\d])`),m("COERCEFULL",o[u.COERCEPLAIN]+`(?:${o[u.PRERELEASE]})?(?:${o[u.BUILD]})?(?:$|[^\\d])`),m("COERCERTL",o[u.COERCE],!0),m("COERCERTLFULL",o[u.COERCEFULL],!0),m("LONETILDE","(?:~>?)"),m("TILDETRIM",`(\\s*)${o[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",m("TILDE",`^${o[u.LONETILDE]}${o[u.XRANGEPLAIN]}$`),m("TILDELOOSE",`^${o[u.LONETILDE]}${o[u.XRANGEPLAINLOOSE]}$`),m("LONECARET","(?:\\^)"),m("CARETTRIM",`(\\s*)${o[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",m("CARET",`^${o[u.LONECARET]}${o[u.XRANGEPLAIN]}$`),m("CARETLOOSE",`^${o[u.LONECARET]}${o[u.XRANGEPLAINLOOSE]}$`),m("COMPARATORLOOSE",`^${o[u.GTLT]}\\s*(${o[u.LOOSEPLAIN]})$|^$`),m("COMPARATOR",`^${o[u.GTLT]}\\s*(${o[u.FULLPLAIN]})$|^$`),m("COMPARATORTRIM",`(\\s*)${o[u.GTLT]}\\s*(${o[u.LOOSEPLAIN]}|${o[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",m("HYPHENRANGE",`^\\s*(${o[u.XRANGEPLAIN]})\\s+-\\s+(${o[u.XRANGEPLAIN]})\\s*$`),m("HYPHENRANGELOOSE",`^\\s*(${o[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${o[u.XRANGEPLAINLOOSE]})\\s*$`),m("STAR","(<|>)?=?\\s*\\*"),m("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),m("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Un,Un.exports);var Xt=Un.exports;const Dc=Object.freeze({loose:!0}),Cc=Object.freeze({});var xn=e=>e?typeof e!="object"?Dc:e:Cc;const ga=/^[0-9]+$/,va=(e,t)=>{const r=ga.test(e),n=ga.test(t);return r&&n&&(e=+e,t=+t),e===t?0:r&&!n?-1:n&&!r?1:eva(t,e)};const Pr=Sr,{MAX_LENGTH:$a,MAX_SAFE_INTEGER:Nr}=br,{safeRe:_a,t:Ea}=Xt,Ac=xn,{compareIdentifiers:Dt}=ya;var Ae=class rt{constructor(t,r){if(r=Ac(r),t instanceof rt){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>$a)throw new TypeError(`version is longer than ${$a} characters`);Pr("SemVer",t,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=t.trim().match(r.loose?_a[Ea.LOOSE]:_a[Ea.FULL]);if(!n)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>Nr||this.major<0)throw new TypeError("Invalid major version");if(this.minor>Nr||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>Nr||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map(s=>{if(/^[0-9]+$/.test(s)){const a=+s;if(a>=0&&a=0;)typeof this.prerelease[a]=="number"&&(this.prerelease[a]++,a=-2);if(a===-1){if(r===this.prerelease.join(".")&&n===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(s)}}if(r){let a=[r,s];n===!1&&(a=[r]),Dt(this.prerelease[0],r)===0?isNaN(this.prerelease[1])&&(this.prerelease=a):this.prerelease=a}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const wa=Ae;var Ct=(e,t,r=!1)=>{if(e instanceof wa)return e;try{return new wa(e,t)}catch(n){if(!r)return null;throw n}};const jc=Ct;var Lc=(e,t)=>{const r=jc(e,t);return r?r.version:null};const Fc=Ct;var Mc=(e,t)=>{const r=Fc(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};const ba=Ae;var Vc=(e,t,r,n,s)=>{typeof r=="string"&&(s=n,n=r,r=void 0);try{return new ba(e instanceof ba?e.version:e,r).inc(t,n,s).version}catch{return null}};const Sa=Ct;var qc=(e,t)=>{const r=Sa(e,null,!0),n=Sa(t,null,!0),s=r.compare(n);if(s===0)return null;const a=s>0,c=a?r:n,i=a?n:r,o=!!c.prerelease.length;if(!!i.prerelease.length&&!o)return!i.patch&&!i.minor?"major":c.patch?"patch":c.minor?"minor":"major";const f=o?"pre":"";return r.major!==n.major?f+"major":r.minor!==n.minor?f+"minor":r.patch!==n.patch?f+"patch":"prerelease"};const Uc=Ae;var xc=(e,t)=>new Uc(e,t).major;const Gc=Ae;var zc=(e,t)=>new Gc(e,t).minor;const Hc=Ae;var Kc=(e,t)=>new Hc(e,t).patch;const Xc=Ct;var Bc=(e,t)=>{const r=Xc(e,t);return r&&r.prerelease.length?r.prerelease:null};const Pa=Ae;var Xe=(e,t,r)=>new Pa(e,r).compare(new Pa(t,r));const Jc=Xe;var Wc=(e,t,r)=>Jc(t,e,r);const Yc=Xe;var Qc=(e,t)=>Yc(e,t,!0);const Na=Ae;var Gn=(e,t,r)=>{const n=new Na(e,r),s=new Na(t,r);return n.compare(s)||n.compareBuild(s)};const Zc=Gn;var eu=(e,t)=>e.sort((r,n)=>Zc(r,n,t));const tu=Gn;var ru=(e,t)=>e.sort((r,n)=>tu(n,r,t));const nu=Xe;var Tr=(e,t,r)=>nu(e,t,r)>0;const su=Xe;var zn=(e,t,r)=>su(e,t,r)<0;const au=Xe;var Ta=(e,t,r)=>au(e,t,r)===0;const ou=Xe;var Ra=(e,t,r)=>ou(e,t,r)!==0;const iu=Xe;var Hn=(e,t,r)=>iu(e,t,r)>=0;const lu=Xe;var Kn=(e,t,r)=>lu(e,t,r)<=0;const cu=Ta,uu=Ra,du=Tr,fu=Hn,pu=zn,mu=Kn;var ka=(e,t,r,n)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e===r;case"!==":return typeof e=="object"&&(e=e.version),typeof r=="object"&&(r=r.version),e!==r;case"":case"=":case"==":return cu(e,r,n);case"!=":return uu(e,r,n);case">":return du(e,r,n);case">=":return fu(e,r,n);case"<":return pu(e,r,n);case"<=":return mu(e,r,n);default:throw new TypeError(`Invalid operator: ${t}`)}};const hu=Ae,gu=Ct,{safeRe:Rr,t:kr}=Xt;var vu=(e,t)=>{if(e instanceof hu)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let r=null;if(!t.rtl)r=e.match(t.includePrerelease?Rr[kr.COERCEFULL]:Rr[kr.COERCE]);else{const o=t.includePrerelease?Rr[kr.COERCERTLFULL]:Rr[kr.COERCERTL];let u;for(;(u=o.exec(e))&&(!r||r.index+r[0].length!==e.length);)(!r||u.index+u[0].length!==r.index+r[0].length)&&(r=u),o.lastIndex=u.index+u[1].length+u[2].length;o.lastIndex=-1}if(r===null)return null;const n=r[2],s=r[3]||"0",a=r[4]||"0",c=t.includePrerelease&&r[5]?`-${r[5]}`:"",i=t.includePrerelease&&r[6]?`+${r[6]}`:"";return gu(`${n}.${s}.${a}${c}${i}`,t)};class yu{constructor(){this.max=1e3,this.map=new Map}get(t){const r=this.map.get(t);if(r!==void 0)return this.map.delete(t),this.map.set(t,r),r}delete(t){return this.map.delete(t)}set(t,r){if(!this.delete(t)&&r!==void 0){if(this.map.size>=this.max){const s=this.map.keys().next().value;this.delete(s)}this.map.set(t,r)}return this}}var $u=yu,Xn,Ia;function Be(){if(Ia)return Xn;Ia=1;class e{constructor(j,K){if(K=n(K),j instanceof e)return j.loose===!!K.loose&&j.includePrerelease===!!K.includePrerelease?j:new e(j.raw,K);if(j instanceof s)return this.raw=j.value,this.set=[[j]],this.format(),this;if(this.options=K,this.loose=!!K.loose,this.includePrerelease=!!K.includePrerelease,this.raw=j.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(z=>this.parseRange(z.trim())).filter(z=>z.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const z=this.set[0];if(this.set=this.set.filter(X=>!m(X[0])),this.set.length===0)this.set=[z];else if(this.set.length>1){for(const X of this.set)if(X.length===1&&S(X[0])){this.set=[X];break}}}this.format()}format(){return this.range=this.set.map(j=>j.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(j){const z=((this.options.includePrerelease&&b)|(this.options.loose&&v))+":"+j,X=r.get(z);if(X)return X;const G=this.options.loose,W=G?i[o.HYPHENRANGELOOSE]:i[o.HYPHENRANGE];j=j.replace(W,ke(this.options.includePrerelease)),a("hyphen replace",j),j=j.replace(i[o.COMPARATORTRIM],u),a("comparator trim",j),j=j.replace(i[o.TILDETRIM],f),a("tilde trim",j),j=j.replace(i[o.CARETTRIM],p),a("caret trim",j);let D=j.split(" ").map(l=>y(l,this.options)).join(" ").split(/\s+/).map(l=>je(l,this.options));G&&(D=D.filter(l=>(a("loose invalid filter",l,this.options),!!l.match(i[o.COMPARATORLOOSE])))),a("range list",D);const _=new Map,O=D.map(l=>new s(l,this.options));for(const l of O){if(m(l))return[l];_.set(l.value,l)}_.size>1&&_.has("")&&_.delete("");const N=[..._.values()];return r.set(z,N),N}intersects(j,K){if(!(j instanceof e))throw new TypeError("a Range is required");return this.set.some(z=>E(z,K)&&j.set.some(X=>E(X,K)&&z.every(G=>X.every(W=>G.intersects(W,K)))))}test(j){if(!j)return!1;if(typeof j=="string")try{j=new c(j,this.options)}catch{return!1}for(let K=0;KL.value==="<0.0.0-0",S=L=>L.value==="",E=(L,j)=>{let K=!0;const z=L.slice();let X=z.pop();for(;K&&z.length;)K=z.every(G=>X.intersects(G,j)),X=z.pop();return K},y=(L,j)=>(a("comp",L,j),L=V(L,j),a("caret",L),L=A(L,j),a("tildes",L),L=ce(L,j),a("xrange",L),L=Ce(L,j),a("stars",L),L),P=L=>!L||L.toLowerCase()==="x"||L==="*",A=(L,j)=>L.trim().split(/\s+/).map(K=>F(K,j)).join(" "),F=(L,j)=>{const K=j.loose?i[o.TILDELOOSE]:i[o.TILDE];return L.replace(K,(z,X,G,W,D)=>{a("tilde",L,z,X,G,W,D);let _;return P(X)?_="":P(G)?_=`>=${X}.0.0 <${+X+1}.0.0-0`:P(W)?_=`>=${X}.${G}.0 <${X}.${+G+1}.0-0`:D?(a("replaceTilde pr",D),_=`>=${X}.${G}.${W}-${D} <${X}.${+G+1}.0-0`):_=`>=${X}.${G}.${W} <${X}.${+G+1}.0-0`,a("tilde return",_),_})},V=(L,j)=>L.trim().split(/\s+/).map(K=>re(K,j)).join(" "),re=(L,j)=>{a("caret",L,j);const K=j.loose?i[o.CARETLOOSE]:i[o.CARET],z=j.includePrerelease?"-0":"";return L.replace(K,(X,G,W,D,_)=>{a("caret",L,X,G,W,D,_);let O;return P(G)?O="":P(W)?O=`>=${G}.0.0${z} <${+G+1}.0.0-0`:P(D)?G==="0"?O=`>=${G}.${W}.0${z} <${G}.${+W+1}.0-0`:O=`>=${G}.${W}.0${z} <${+G+1}.0.0-0`:_?(a("replaceCaret pr",_),G==="0"?W==="0"?O=`>=${G}.${W}.${D}-${_} <${G}.${W}.${+D+1}-0`:O=`>=${G}.${W}.${D}-${_} <${G}.${+W+1}.0-0`:O=`>=${G}.${W}.${D}-${_} <${+G+1}.0.0-0`):(a("no pr"),G==="0"?W==="0"?O=`>=${G}.${W}.${D}${z} <${G}.${W}.${+D+1}-0`:O=`>=${G}.${W}.${D}${z} <${G}.${+W+1}.0-0`:O=`>=${G}.${W}.${D} <${+G+1}.0.0-0`),a("caret return",O),O})},ce=(L,j)=>(a("replaceXRanges",L,j),L.split(/\s+/).map(K=>Ne(K,j)).join(" ")),Ne=(L,j)=>{L=L.trim();const K=j.loose?i[o.XRANGELOOSE]:i[o.XRANGE];return L.replace(K,(z,X,G,W,D,_)=>{a("xRange",L,z,X,G,W,D,_);const O=P(G),N=O||P(W),l=N||P(D),h=l;return X==="="&&h&&(X=""),_=j.includePrerelease?"-0":"",O?X===">"||X==="<"?z="<0.0.0-0":z="*":X&&h?(N&&(W=0),D=0,X===">"?(X=">=",N?(G=+G+1,W=0,D=0):(W=+W+1,D=0)):X==="<="&&(X="<",N?G=+G+1:W=+W+1),X==="<"&&(_="-0"),z=`${X+G}.${W}.${D}${_}`):N?z=`>=${G}.0.0${_} <${+G+1}.0.0-0`:l&&(z=`>=${G}.${W}.0${_} <${G}.${+W+1}.0-0`),a("xRange return",z),z})},Ce=(L,j)=>(a("replaceStars",L,j),L.trim().replace(i[o.STAR],"")),je=(L,j)=>(a("replaceGTE0",L,j),L.trim().replace(i[j.includePrerelease?o.GTE0PRE:o.GTE0],"")),ke=L=>(j,K,z,X,G,W,D,_,O,N,l,h)=>(P(z)?K="":P(X)?K=`>=${z}.0.0${L?"-0":""}`:P(G)?K=`>=${z}.${X}.0${L?"-0":""}`:W?K=`>=${K}`:K=`>=${K}${L?"-0":""}`,P(O)?_="":P(N)?_=`<${+O+1}.0.0-0`:P(l)?_=`<${O}.${+N+1}.0-0`:h?_=`<=${O}.${N}.${l}-${h}`:L?_=`<${O}.${N}.${+l+1}-0`:_=`<=${_}`,`${K} ${_}`.trim()),de=(L,j,K)=>{for(let z=0;z0){const X=L[z].semver;if(X.major===j.major&&X.minor===j.minor&&X.patch===j.patch)return!0}return!1}return!0};return Xn}var Bn,Oa;function Ir(){if(Oa)return Bn;Oa=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(f,p){if(p=r(p),f instanceof t){if(f.loose===!!p.loose)return f;f=f.value}f=f.trim().split(/\s+/).join(" "),c("comparator",f,p),this.options=p,this.loose=!!p.loose,this.parse(f),this.semver===e?this.value="":this.value=this.operator+this.semver.version,c("comp",this)}parse(f){const p=this.options.loose?n[s.COMPARATORLOOSE]:n[s.COMPARATOR],b=f.match(p);if(!b)throw new TypeError(`Invalid comparator: ${f}`);this.operator=b[1]!==void 0?b[1]:"",this.operator==="="&&(this.operator=""),b[2]?this.semver=new i(b[2],this.options.loose):this.semver=e}toString(){return this.value}test(f){if(c("Comparator.test",f,this.options.loose),this.semver===e||f===e)return!0;if(typeof f=="string")try{f=new i(f,this.options)}catch{return!1}return a(f,this.operator,this.semver,this.options)}intersects(f,p){if(!(f instanceof t))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new o(f.value,p).test(this.value):f.operator===""?f.value===""?!0:new o(this.value,p).test(f.semver):(p=r(p),p.includePrerelease&&(this.value==="<0.0.0-0"||f.value==="<0.0.0-0")||!p.includePrerelease&&(this.value.startsWith("<0.0.0")||f.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&f.operator.startsWith(">")||this.operator.startsWith("<")&&f.operator.startsWith("<")||this.semver.version===f.semver.version&&this.operator.includes("=")&&f.operator.includes("=")||a(this.semver,"<",f.semver,p)&&this.operator.startsWith(">")&&f.operator.startsWith("<")||a(this.semver,">",f.semver,p)&&this.operator.startsWith("<")&&f.operator.startsWith(">")))}}Bn=t;const r=xn,{safeRe:n,t:s}=Xt,a=ka,c=Sr,i=Ae,o=Be();return Bn}const _u=Be();var Or=(e,t,r)=>{try{t=new _u(t,r)}catch{return!1}return t.test(e)};const Eu=Be();var wu=(e,t)=>new Eu(e,t).set.map(r=>r.map(n=>n.value).join(" ").trim().split(" "));const bu=Ae,Su=Be();var Pu=(e,t,r)=>{let n=null,s=null,a=null;try{a=new Su(t,r)}catch{return null}return e.forEach(c=>{a.test(c)&&(!n||s.compare(c)===-1)&&(n=c,s=new bu(n,r))}),n};const Nu=Ae,Tu=Be();var Ru=(e,t,r)=>{let n=null,s=null,a=null;try{a=new Tu(t,r)}catch{return null}return e.forEach(c=>{a.test(c)&&(!n||s.compare(c)===1)&&(n=c,s=new Nu(n,r))}),n};const Jn=Ae,ku=Be(),Da=Tr;var Iu=(e,t)=>{e=new ku(e,t);let r=new Jn("0.0.0");if(e.test(r)||(r=new Jn("0.0.0-0"),e.test(r)))return r;r=null;for(let n=0;n{const i=new Jn(c.semver.version);switch(c.operator){case">":i.prerelease.length===0?i.patch++:i.prerelease.push(0),i.raw=i.format();case"":case">=":(!a||Da(i,a))&&(a=i);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${c.operator}`)}}),a&&(!r||Da(r,a))&&(r=a)}return r&&e.test(r)?r:null};const Ou=Be();var Du=(e,t)=>{try{return new Ou(e,t).range||"*"}catch{return null}};const Cu=Ae,Ca=Ir(),{ANY:Au}=Ca,ju=Be(),Lu=Or,Aa=Tr,ja=zn,Fu=Kn,Mu=Hn;var Wn=(e,t,r,n)=>{e=new Cu(e,n),t=new ju(t,n);let s,a,c,i,o;switch(r){case">":s=Aa,a=Fu,c=ja,i=">",o=">=";break;case"<":s=ja,a=Mu,c=Aa,i="<",o="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Lu(e,t,n))return!1;for(let u=0;u{v.semver===Au&&(v=new Ca(">=0.0.0")),p=p||v,b=b||v,s(v.semver,p.semver,n)?p=v:c(v.semver,b.semver,n)&&(b=v)}),p.operator===i||p.operator===o||(!b.operator||b.operator===i)&&a(e,b.semver))return!1;if(b.operator===o&&c(e,b.semver))return!1}return!0};const Vu=Wn;var qu=(e,t,r)=>Vu(e,t,">",r);const Uu=Wn;var xu=(e,t,r)=>Uu(e,t,"<",r);const La=Be();var Gu=(e,t,r)=>(e=new La(e,r),t=new La(t,r),e.intersects(t,r));const zu=Or,Hu=Xe;var Ku=(e,t,r)=>{const n=[];let s=null,a=null;const c=e.sort((f,p)=>Hu(f,p,r));for(const f of c)zu(f,t,r)?(a=f,s||(s=f)):(a&&n.push([s,a]),a=null,s=null);s&&n.push([s,null]);const i=[];for(const[f,p]of n)f===p?i.push(f):!p&&f===c[0]?i.push("*"):p?f===c[0]?i.push(`<=${p}`):i.push(`${f} - ${p}`):i.push(`>=${f}`);const o=i.join(" || "),u=typeof t.raw=="string"?t.raw:String(t);return o.length{if(e===t)return!0;e=new Fa(e,r),t=new Fa(t,r);let n=!1;e:for(const s of e.set){for(const a of t.set){const c=Ju(s,a,r);if(n=n||c!==null,c)continue e}if(n)return!1}return!0},Bu=[new Yn(">=0.0.0-0")],Ma=[new Yn(">=0.0.0")],Ju=(e,t,r)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===Qn){if(t.length===1&&t[0].semver===Qn)return!0;r.includePrerelease?e=Bu:e=Ma}if(t.length===1&&t[0].semver===Qn){if(r.includePrerelease)return!0;t=Ma}const n=new Set;let s,a;for(const v of e)v.operator===">"||v.operator===">="?s=Va(s,v,r):v.operator==="<"||v.operator==="<="?a=qa(a,v,r):n.add(v.semver);if(n.size>1)return null;let c;if(s&&a){if(c=Zn(s.semver,a.semver,r),c>0)return null;if(c===0&&(s.operator!==">="||a.operator!=="<="))return null}for(const v of n){if(s&&!Bt(v,String(s),r)||a&&!Bt(v,String(a),r))return null;for(const m of t)if(!Bt(v,String(m),r))return!1;return!0}let i,o,u,f,p=a&&!r.includePrerelease&&a.semver.prerelease.length?a.semver:!1,b=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:!1;p&&p.prerelease.length===1&&a.operator==="<"&&p.prerelease[0]===0&&(p=!1);for(const v of t){if(f=f||v.operator===">"||v.operator===">=",u=u||v.operator==="<"||v.operator==="<=",s){if(b&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===b.major&&v.semver.minor===b.minor&&v.semver.patch===b.patch&&(b=!1),v.operator===">"||v.operator===">="){if(i=Va(s,v,r),i===v&&i!==s)return!1}else if(s.operator===">="&&!Bt(s.semver,String(v),r))return!1}if(a){if(p&&v.semver.prerelease&&v.semver.prerelease.length&&v.semver.major===p.major&&v.semver.minor===p.minor&&v.semver.patch===p.patch&&(p=!1),v.operator==="<"||v.operator==="<="){if(o=qa(a,v,r),o===v&&o!==a)return!1}else if(a.operator==="<="&&!Bt(a.semver,String(v),r))return!1}if(!v.operator&&(a||s)&&c!==0)return!1}return!(s&&u&&!a&&c!==0||a&&f&&!s&&c!==0||b||p)},Va=(e,t,r)=>{if(!e)return t;const n=Zn(e.semver,t.semver,r);return n>0?e:n<0||t.operator===">"&&e.operator===">="?t:e},qa=(e,t,r)=>{if(!e)return t;const n=Zn(e.semver,t.semver,r);return n<0?e:n>0||t.operator==="<"&&e.operator==="<="?t:e};var Wu=Xu;const es=Xt,Ua=br,Yu=Ae,xa=ya,Qu=Ct,Zu=Lc,ed=Mc,td=Vc,rd=qc,nd=xc,sd=zc,ad=Kc,od=Bc,id=Xe,ld=Wc,cd=Qc,ud=Gn,dd=eu,fd=ru,pd=Tr,md=zn,hd=Ta,gd=Ra,vd=Hn,yd=Kn,$d=ka,_d=vu,Ed=Ir(),wd=Be();var bd={parse:Qu,valid:Zu,clean:ed,inc:td,diff:rd,major:nd,minor:sd,patch:ad,prerelease:od,compare:id,rcompare:ld,compareLoose:cd,compareBuild:ud,sort:dd,rsort:fd,gt:pd,lt:md,eq:hd,neq:gd,gte:vd,lte:yd,cmp:$d,coerce:_d,Comparator:Ed,Range:wd,satisfies:Or,toComparators:wu,maxSatisfying:Pu,minSatisfying:Ru,minVersion:Iu,validRange:Du,outside:Wn,gtr:qu,ltr:xu,intersects:Gu,simplifyRange:Ku,subset:Wu,SemVer:Yu,re:es.re,src:es.src,tokens:es.t,SEMVER_SPEC_VERSION:Ua.SEMVER_SPEC_VERSION,RELEASE_TYPES:Ua.RELEASE_TYPES,compareIdentifiers:xa.compareIdentifiers,rcompareIdentifiers:xa.rcompareIdentifiers};const ts=vs(bd),Sd={keyword:"minNodeVersion",validate:(e,{nodeVersion:t})=>ts.valid(e)&&ts.valid(t)&&ts.gte(t,e)},Ga=new Tc({});Ga.addKeyword(Sd);const Pd=function(e,{nodeVersion:t}){return e.filter(({condition:r})=>Ga.validate(r,{nodeVersion:t})).map(({packageName:r})=>r)};var Nd=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,Td=function(e){return Nd.exec(e).slice(1)};function Rd(e){var t=Td(e),r=t[0],n=t[1];return!r&&!n?".":(n&&(n=n.substr(0,n.length-1)),r+n)}const kd=async function({pathExists:e,packageJsonPath:t}){return await e(`${Rd(t)}/yarn.lock`)?"yarn":"npm run"},rs=e=>{const{pathExists:t,packageJson:r,packageJsonPath:n=".",nodeVersion:s}=e;return{pathExists:t,packageJson:r,packageJsonPath:n,nodeVersion:s}},Id=async function(e){const{pathExists:t,packageJson:r,packageJsonPath:n,nodeVersion:s}=rs(e),{npmDependencies:a,scripts:c,runScriptCommand:i}=await ss({pathExists:t,packageJson:r,packageJsonPath:n});return(await fo(Vr,f=>fs(f,{pathExists:t,npmDependencies:a}))).map(f=>za(f,{scripts:c,runScriptCommand:i,nodeVersion:s}))},Od=async function(e,t){const r=ns(e),{pathExists:n,packageJson:s,packageJsonPath:a}=rs(t),{npmDependencies:c}=await ss({pathExists:n,packageJson:s,packageJsonPath:a});return await fs(r,{pathExists:n,npmDependencies:c})},Dd=async function(e,t){const r=ns(e),{pathExists:n,packageJson:s,packageJsonPath:a,nodeVersion:c}=rs(t),{scripts:i,runScriptCommand:o}=await ss({pathExists:n,packageJson:s,packageJsonPath:a});return za(r,{scripts:i,runScriptCommand:o,nodeVersion:c})},ns=function(e){const t=Vr.find(({id:r})=>r===e);if(t===void 0){const r=Vr.map(n=>Cd(n)).sort().join(", ");throw new Error(`Invalid framework "${e}". It should be one of: ${r}`)}return t},Cd=function({id:e}){return e},ss=async function({pathExists:e,packageJson:t,packageJsonPath:r}){const{npmDependencies:n,scripts:s}=ko(t),a=await kd({pathExists:e,packageJsonPath:r});return{npmDependencies:n,scripts:s,runScriptCommand:a}},za=function({id:e,name:t,detect:r,category:n,dev:{command:s,port:a,pollingStrategies:c},build:{command:i,directory:o},staticAssetsDirectory:u,env:f,logo:p,plugins:b},{scripts:v,runScriptCommand:m,nodeVersion:S}){const E=wo({frameworkDevCommand:s,scripts:v,runScriptCommand:m}),y=Pd(b,{nodeVersion:S});return{id:e,name:t,package:{name:r.npmDependencies[0],version:"unknown"},category:n,dev:{commands:E,port:a,pollingStrategies:c},build:{commands:[i],directory:o},staticAssetsDirectory:u,env:f,logo:p,plugins:y}};ie.getFramework=Dd,ie.getFrameworkById=ns,ie.hasFramework=Od,ie.listFrameworks=Id,Object.defineProperty(ie,Symbol.toStringTag,{value:"Module"})}); //# sourceMappingURL=index.umd.cjs.map