@sockethub/examples 1.0.0-alpha.24 → 1.0.0-alpha.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/_app/immutable/assets/0.qOXUWaGZ.css +1 -0
- package/build/_app/immutable/chunks/{Cj_plMLy.js → 1avIAF2I.js} +1 -1
- package/build/_app/immutable/chunks/{C5qpDfpL.js → 33lEaGXm.js} +2 -2
- package/build/_app/immutable/chunks/BLqyXFvH.js +1 -0
- package/build/_app/immutable/chunks/BSMEOyoG.js +1 -0
- package/build/_app/immutable/chunks/{Cql_8FxA.js → BVuLyJ7q.js} +1 -1
- package/build/_app/immutable/chunks/C1MOh-XY.js +9 -0
- package/build/_app/immutable/chunks/C7DuqNbl.js +1 -0
- package/build/_app/immutable/chunks/CAT4ZdDs.js +1 -0
- package/build/_app/immutable/chunks/{M4yGBGmj.js → CT9Y_tQ4.js} +1 -1
- package/build/_app/immutable/chunks/CnmpubcX.js +1 -0
- package/build/_app/immutable/chunks/Cs24jlvn.js +36 -0
- package/build/_app/immutable/chunks/DYRq57vD.js +1 -0
- package/build/_app/immutable/chunks/EYcEpRKU.js +2 -0
- package/build/_app/immutable/chunks/{CluiWps8.js → hMyUYPEq.js} +1 -1
- package/build/_app/immutable/chunks/lzIpFC7n.js +1 -0
- package/build/_app/immutable/chunks/yWT4YlSI.js +1 -0
- package/build/_app/immutable/entry/app.ztAFZXMv.js +2 -0
- package/build/_app/immutable/entry/start._QPU_uWU.js +1 -0
- package/build/_app/immutable/nodes/{0.CIgA3-VU.js → 0.Df5wjAcn.js} +2 -2
- package/build/_app/immutable/nodes/{1.C7n4GBxp.js → 1.IOrVTpza.js} +1 -1
- package/build/_app/immutable/nodes/2.BS3KT_lf.js +5 -0
- package/build/_app/immutable/nodes/3.DXNrVIwE.js +1 -0
- package/build/_app/immutable/nodes/{7.BdFFHD3t.js → 4.BL1-bQ7L.js} +1 -1
- package/build/_app/immutable/nodes/5.1YpnKe2X.js +1 -0
- package/build/_app/immutable/nodes/6.C9NLPLub.js +2 -0
- package/build/_app/immutable/nodes/{3.CXZYDGj0.js → 7.D1TuxuLE.js} +1 -1
- package/build/_app/immutable/nodes/{4.CPgcqwJB.js → 8.nRxJTb1X.js} +1 -1
- package/build/_app/immutable/nodes/{9.CO3JNyJf.js → 9.ClqrhF8-.js} +1 -1
- package/build/_app/version.json +1 -1
- package/build/caldav.html +12 -12
- package/build/carddav.html +12 -12
- package/build/dummy.html +12 -12
- package/build/feeds.html +12 -12
- package/build/index.html +12 -12
- package/build/irc.html +12 -12
- package/build/metadata.html +12 -12
- package/build/xmpp.html +12 -12
- package/package.json +4 -4
- package/build/_app/immutable/assets/0.C4UYQlfe.css +0 -1
- package/build/_app/immutable/chunks/BBWhllcJ.js +0 -1
- package/build/_app/immutable/chunks/BYPKMD8u.js +0 -1
- package/build/_app/immutable/chunks/C7RIZnpe.js +0 -1
- package/build/_app/immutable/chunks/CD2k2u89.js +0 -1
- package/build/_app/immutable/chunks/CbROi3Jn.js +0 -1
- package/build/_app/immutable/chunks/D-BRhX9k.js +0 -1
- package/build/_app/immutable/chunks/DES_NVaV.js +0 -1
- package/build/_app/immutable/chunks/DRQf9AgU.js +0 -1
- package/build/_app/immutable/chunks/Dm9HHmcs.js +0 -2
- package/build/_app/immutable/chunks/DtLGjLnP.js +0 -43
- package/build/_app/immutable/chunks/XtX2ckS1.js +0 -2
- package/build/_app/immutable/entry/app._k8f24KG.js +0 -2
- package/build/_app/immutable/entry/start.AL1ku_EU.js +0 -1
- package/build/_app/immutable/nodes/2.CcUlaCge.js +0 -5
- package/build/_app/immutable/nodes/5.C5JcmYto.js +0 -2
- package/build/_app/immutable/nodes/6.nHKMDGo9.js +0 -1
- package/build/_app/immutable/nodes/8.Dfm8aOrv.js +0 -1
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{X as Dt,a1 as jn,a7 as Vt,Z as oe,aE as Xn,a2 as Zn,g as Zt,F as xn,a4 as es,a5 as ts,a6 as or,a8 as Ce,_ as De,am as rs,aS as ns,ax as ur,T as St,a_ as _e,Y as Me,a0 as ss,B as cr,z as as,aQ as er,a$ as Tn,b0 as is,b1 as os,b2 as us,U as In,W as qn,b3 as Ut,aM as cs,aP as ls,V as Pt,af as Cn,b4 as An,b5 as fs,a3 as ds,b6 as Mn,ai as tr,b7 as hs,ae as ps,w as ms,aa as ys,ad as vs,b8 as _s,b9 as gs,ba as $s,bb as ws,bc as bs,bd as Es,be as Ss,bf as Ps,bg as Ns}from"./lzIpFC7n.js";import{B as Rs}from"./CnmpubcX.js";import{i as Os,g as ks,d as js,n as Ts,j as Is}from"./EYcEpRKU.js";function ii(e,t){return t}function qs(e,t,u){for(var a=[],_=t.length,r,f=t.length,l=0;l<_;l++){let S=t[l];qn(S,()=>{if(r){if(r.pending.delete(S),r.done.add(S),r.pending.size===0){var m=e.outrogroups;xt(er(r.done)),m.delete(r),m.size===0&&(e.outrogroups=null)}}else f-=1},!1)}if(f===0){var h=a.length===0&&u!==null;if(h){var b=u,y=b.parentNode;ls(y),y.append(b),e.items.clear()}xt(t,!h)}else r={pending:new Set(t),done:new Set},(e.outrogroups??(e.outrogroups=new Set)).add(r)}function xt(e,t=!0){for(var u=0;u<e.length;u++)Pt(e[u],t)}var lr;function oi(e,t,u,a,_,r=null){var f=e,l=new Map,h=(t&An)!==0;if(h){var b=e;f=oe?Vt(Xn(b)):b.appendChild(Dt())}oe&&Zn();var y=null,S=xn(()=>{var o=u();return Tn(o)?o:o==null?[]:er(o)}),m,g=!0;function $(){s.fallback=y,Cs(s,m,f,t,a),y!==null&&(m.length===0?(y.f&_e)===0?In(y):(y.f^=_e,qe(y,null,f)):qn(y,()=>{y=null}))}var E=jn(()=>{m=Zt(S);var o=m.length;let n=!1;if(oe){var c=es(f)===ts;c!==(o===0)&&(f=or(),Vt(f),Ce(!1),n=!0)}for(var v=new Set,i=St,d=ss(),w=0;w<o;w+=1){oe&&De.nodeType===rs&&De.data===ns&&(f=De,n=!0,Ce(!1));var k=m[w],q=a(k,w),C=g?null:l.get(q);C?(C.v&&ur(C.v,k),C.i&&ur(C.i,w),d&&i.skipped_effects.delete(C.e)):(C=As(l,g?f:lr??(lr=Dt()),k,q,w,_,t,u),g||(C.e.f|=_e),l.set(q,C)),v.add(q)}if(o===0&&r&&!y&&(g?y=Me(()=>r(f)):(y=Me(()=>r(lr??(lr=Dt()))),y.f|=_e)),oe&&o>0&&Vt(or()),!g)if(d){for(const[V,L]of l)v.has(V)||i.skipped_effects.add(L.e);i.oncommit($),i.ondiscard(()=>{})}else $();n&&Ce(!0),Zt(S)}),s={effect:E,items:l,outrogroups:null,fallback:y};g=!1,oe&&(f=De)}function Cs(e,t,u,a,_){var C,V,L,K,W,x,ue,le,X;var r=(a&fs)!==0,f=t.length,l=e.items,h=e.effect.first,b,y=null,S,m=[],g=[],$,E,s,o;if(r)for(o=0;o<f;o+=1)$=t[o],E=_($,o),s=l.get(E).e,(s.f&_e)===0&&((V=(C=s.nodes)==null?void 0:C.a)==null||V.measure(),(S??(S=new Set)).add(s));for(o=0;o<f;o+=1){if($=t[o],E=_($,o),s=l.get(E).e,e.outrogroups!==null)for(const ee of e.outrogroups)ee.pending.delete(s),ee.done.delete(s);if((s.f&_e)!==0)if(s.f^=_e,s===h)qe(s,null,u);else{var n=y?y.next:h;s===e.effect.last&&(e.effect.last=s.prev),s.prev&&(s.prev.next=s.next),s.next&&(s.next.prev=s.prev),ge(e,y,s),ge(e,s,n),qe(s,n,u),y=s,m=[],g=[],h=y.next;continue}if((s.f&Ut)!==0&&(In(s),r&&((K=(L=s.nodes)==null?void 0:L.a)==null||K.unfix(),(S??(S=new Set)).delete(s))),s!==h){if(b!==void 0&&b.has(s)){if(m.length<g.length){var c=g[0],v;y=c.prev;var i=m[0],d=m[m.length-1];for(v=0;v<m.length;v+=1)qe(m[v],c,u);for(v=0;v<g.length;v+=1)b.delete(g[v]);ge(e,i.prev,d.next),ge(e,y,i),ge(e,d,c),h=c,y=d,o-=1,m=[],g=[]}else b.delete(s),qe(s,h,u),ge(e,s.prev,s.next),ge(e,s,y===null?e.effect.first:y.next),ge(e,y,s),y=s;continue}for(m=[],g=[];h!==null&&h!==s;)(b??(b=new Set)).add(h),g.push(h),h=h.next;if(h===null)continue}(s.f&_e)===0&&m.push(s),y=s,h=s.next}if(e.outrogroups!==null){for(const ee of e.outrogroups)ee.pending.size===0&&(xt(er(ee.done)),(W=e.outrogroups)==null||W.delete(ee));e.outrogroups.size===0&&(e.outrogroups=null)}if(h!==null||b!==void 0){var w=[];if(b!==void 0)for(s of b)(s.f&Ut)===0&&w.push(s);for(;h!==null;)(h.f&Ut)===0&&h!==e.fallback&&w.push(h),h=h.next;var k=w.length;if(k>0){var q=(a&An)!==0&&f===0?u:null;if(r){for(o=0;o<k;o+=1)(ue=(x=w[o].nodes)==null?void 0:x.a)==null||ue.measure();for(o=0;o<k;o+=1)(X=(le=w[o].nodes)==null?void 0:le.a)==null||X.fix()}qs(e,w,q)}}r&&Cn(()=>{var ee,M;if(S!==void 0)for(s of S)(M=(ee=s.nodes)==null?void 0:ee.a)==null||M.apply()})}function As(e,t,u,a,_,r,f,l){var h=(f&is)!==0?(f&os)===0?as(u,!1,!1):cr(u):null,b=(f&us)!==0?cr(_):null;return{v:h,i:b,e:Me(()=>(r(t,h??u,b??_,l),()=>{e.delete(a)}))}}function qe(e,t,u){if(e.nodes)for(var a=e.nodes.start,_=e.nodes.end,r=t&&(t.f&_e)===0?t.nodes.start:u;a!==null;){var f=cs(a);if(r.before(a),a===_)return;a=f}}function ge(e,t,u){t===null?e.effect.first=u:t.next=u,u===null?e.effect.last=t:u.prev=t}function ui(e,t,...u){var a=new Rs(e);jn(()=>{const _=t()??null;a.ensure(_,_&&(r=>_(r,...u)))},ds)}function Ms(e,t){var u=void 0,a;Mn(()=>{u!==(u=t())&&(a&&(Pt(a),a=null),u&&(a=Me(()=>{tr(()=>u(e))})))})}function Dn(e){var t,u,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var _=e.length;for(t=0;t<_;t++)e[t]&&(u=Dn(e[t]))&&(a&&(a+=" "),a+=u)}else for(u in e)e[u]&&(a&&(a+=" "),a+=u);return a}function Ds(){for(var e,t,u=0,a="",_=arguments.length;u<_;u++)(e=arguments[u])&&(t=Dn(e))&&(a&&(a+=" "),a+=t);return a}function Vs(e){return typeof e=="object"?Ds(e):e??""}const fr=[...`
|
|
2
|
+
\r\f \v\uFEFF`];function Us(e,t,u){var a=e==null?"":""+e;if(t&&(a=a?a+" "+t:t),u){for(var _ in u)if(u[_])a=a?a+" "+_:_;else if(a.length)for(var r=_.length,f=0;(f=a.indexOf(_,f))>=0;){var l=f+r;(f===0||fr.includes(a[f-1]))&&(l===a.length||fr.includes(a[l]))?a=(f===0?"":a.substring(0,f))+a.substring(l+1):f=l}}return a===""?null:a}function dr(e,t=!1){var u=t?" !important;":";",a="";for(var _ in e){var r=e[_];r!=null&&r!==""&&(a+=" "+_+": "+r+u)}return a}function zt(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function zs(e,t){if(t){var u="",a,_;if(Array.isArray(t)?(a=t[0],_=t[1]):a=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,f=0,l=!1,h=[];a&&h.push(...Object.keys(a).map(zt)),_&&h.push(...Object.keys(_).map(zt));var b=0,y=-1;const E=e.length;for(var S=0;S<E;S++){var m=e[S];if(l?m==="/"&&e[S-1]==="*"&&(l=!1):r?r===m&&(r=!1):m==="/"&&e[S+1]==="*"?l=!0:m==='"'||m==="'"?r=m:m==="("?f++:m===")"&&f--,!l&&r===!1&&f===0){if(m===":"&&y===-1)y=S;else if(m===";"||S===E-1){if(y!==-1){var g=zt(e.substring(b,y).trim());if(!h.includes(g)){m!==";"&&S++;var $=e.substring(b,S).trim();u+=" "+$+";"}}b=S+1,y=-1}}}}return a&&(u+=dr(a)),_&&(u+=dr(_,!0)),u=u.trim(),u===""?null:u}return e==null?null:String(e)}function Fs(e,t,u,a,_,r){var f=e.__className;if(oe||f!==u||f===void 0){var l=Us(u,a,r);(!oe||l!==e.getAttribute("class"))&&(l==null?e.removeAttribute("class"):t?e.className=l:e.setAttribute("class",l)),e.__className=u}else if(r&&_!==r)for(var h in r){var b=!!r[h];(_==null||b!==!!_[h])&&e.classList.toggle(h,b)}return r}function Ft(e,t={},u,a){for(var _ in u){var r=u[_];t[_]!==r&&(u[_]==null?e.style.removeProperty(_):e.style.setProperty(_,r,a))}}function Ls(e,t,u,a){var _=e.__style;if(oe||_!==t){var r=zs(t,a);(!oe||r!==e.getAttribute("style"))&&(r==null?e.removeAttribute("style"):e.style.cssText=r),e.__style=t}else a&&(Array.isArray(a)?(Ft(e,u==null?void 0:u[0],a[0]),Ft(e,u==null?void 0:u[1],a[1],"important")):Ft(e,u,a));return a}function Nt(e,t,u=!1){if(e.multiple){if(t==null)return;if(!Tn(t))return hs();for(var a of e.options)a.selected=t.includes(Ae(a));return}for(a of e.options){var _=Ae(a);if(ps(_,t)){a.selected=!0;return}}(!u||t!==void 0)&&(e.selectedIndex=-1)}function Vn(e){var t=new MutationObserver(()=>{Nt(e,e.__value)});t.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ms(()=>{t.disconnect()})}function ci(e,t,u=t){var a=new WeakSet,_=!0;ys(e,"change",r=>{var f=r?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(f),Ae);else{var h=e.querySelector(f)??e.querySelector("option:not([disabled])");l=h&&Ae(h)}u(l),St!==null&&a.add(St)}),tr(()=>{var r=t();if(e===document.activeElement){var f=vs??St;if(a.has(f))return}if(Nt(e,r,_),_&&r===void 0){var l=e.querySelector(":checked");l!==null&&(r=Ae(l),u(r))}e.__value=r,_=!1}),Vn(e)}function Ae(e){return"__value"in e?e.__value:e.value}const Ve=Symbol("class"),ke=Symbol("style"),Un=Symbol("is custom element"),zn=Symbol("is html");function Ks(e){if(oe){var t=!1,u=()=>{if(!t){if(t=!0,e.hasAttribute("value")){var a=e.value;Rt(e,"value",null),e.value=a}if(e.hasAttribute("checked")){var _=e.checked;Rt(e,"checked",null),e.checked=_}}};e.__on_r=u,Cn(u),bs()}}function Hs(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function Rt(e,t,u,a){var _=Fn(e);oe&&(_[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||_[t]!==(_[t]=u)&&(t==="loading"&&(e[Ps]=u),u==null?e.removeAttribute(t):typeof u!="string"&&Ln(e).includes(t)?e[t]=u:e.setAttribute(t,u))}function Gs(e,t,u,a,_=!1,r=!1){if(oe&&_&&e.tagName==="INPUT"){var f=e,l=f.type==="checkbox"?"defaultChecked":"defaultValue";l in u||Ks(f)}var h=Fn(e),b=h[Un],y=!h[zn];let S=oe&&b;S&&Ce(!1);var m=t||{},g=e.tagName==="OPTION";for(var $ in t)$ in u||(u[$]=null);u.class?u.class=Vs(u.class):u.class=null,u[ke]&&(u.style??(u.style=null));var E=Ln(e);for(const d in u){let w=u[d];if(g&&d==="value"&&w==null){e.value=e.__value="",m[d]=w;continue}if(d==="class"){var s=e.namespaceURI==="http://www.w3.org/1999/xhtml";Fs(e,s,w,a,t==null?void 0:t[Ve],u[Ve]),m[d]=w,m[Ve]=u[Ve];continue}if(d==="style"){Ls(e,w,t==null?void 0:t[ke],u[ke]),m[d]=w,m[ke]=u[ke];continue}var o=m[d];if(!(w===o&&!(w===void 0&&e.hasAttribute(d)))){m[d]=w;var n=d[0]+d[1];if(n!=="$$")if(n==="on"){const k={},q="$$"+d;let C=d.slice(2);var c=Is(C);if(Os(C)&&(C=C.slice(0,-7),k.capture=!0),!c&&o){if(w!=null)continue;e.removeEventListener(C,m[q],k),m[q]=null}if(w!=null)if(c)e[`__${C}`]=w,js([C]);else{let V=function(L){m[d].call(this,L)};m[q]=ks(C,e,V,k)}else c&&(e[`__${C}`]=void 0)}else if(d==="style")Rt(e,d,w);else if(d==="autofocus")$s(e,!!w);else if(!b&&(d==="__value"||d==="value"&&w!=null))e.value=e.__value=w;else if(d==="selected"&&g)Hs(e,w);else{var v=d;y||(v=Ts(v));var i=v==="defaultValue"||v==="defaultChecked";if(w==null&&!b&&!i)if(h[d]=null,v==="value"||v==="checked"){let k=e;const q=t===void 0;if(v==="value"){let C=k.defaultValue;k.removeAttribute(v),k.defaultValue=C,k.value=k.__value=q?C:null}else{let C=k.defaultChecked;k.removeAttribute(v),k.defaultChecked=C,k.checked=q?C:!1}}else e.removeAttribute(d);else i||E.includes(v)&&(b||typeof w!="string")?(e[v]=w,v in h&&(h[v]=ws)):typeof w!="function"&&Rt(e,v,w)}}}return S&&Ce(!0),m}function li(e,t,u=[],a=[],_=[],r,f=!1,l=!1){_s(_,u,a,h=>{var b=void 0,y={},S=e.nodeName==="SELECT",m=!1;if(Mn(()=>{var $=t(...h.map(Zt)),E=Gs(e,b,$,r,f,l);m&&S&&"value"in $&&Nt(e,$.value);for(let o of Object.getOwnPropertySymbols(y))$[o]||Pt(y[o]);for(let o of Object.getOwnPropertySymbols($)){var s=$[o];o.description===gs&&(!b||s!==b[o])&&(y[o]&&Pt(y[o]),y[o]=Me(()=>Ms(e,()=>s))),E[o]=s}b=E}),S){var g=e;tr(()=>{Nt(g,b.value,!0),Vn(g)})}m=!0})}function Fn(e){return e.__attributes??(e.__attributes={[Un]:e.nodeName.includes("-"),[zn]:e.namespaceURI===Es})}var hr=new Map;function Ln(e){var t=e.getAttribute("is")||e.nodeName,u=hr.get(t);if(u)return u;hr.set(t,u=[]);for(var a,_=e,r=Element.prototype;r!==_;){a=Ns(_);for(var f in a)a[f].set&&u.push(f);_=Ss(_)}return u}function Js(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ue={exports:{}},Lt={},me={},be={},Kt={},Ht={},Gt={},pr;function Ot(){return pr||(pr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;class t{}e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class u extends t{constructor(n){if(super(),!e.IDENTIFIER.test(n))throw new Error("CodeGen: name must be a valid identifier");this.str=n}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}e.Name=u;class a extends t{constructor(n){super(),this._items=typeof n=="string"?[n]:n}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const n=this._items[0];return n===""||n==='""'}get str(){var n;return(n=this._str)!==null&&n!==void 0?n:this._str=this._items.reduce((c,v)=>`${c}${v}`,"")}get names(){var n;return(n=this._names)!==null&&n!==void 0?n:this._names=this._items.reduce((c,v)=>(v instanceof u&&(c[v.str]=(c[v.str]||0)+1),c),{})}}e._Code=a,e.nil=new a("");function _(o,...n){const c=[o[0]];let v=0;for(;v<n.length;)l(c,n[v]),c.push(o[++v]);return new a(c)}e._=_;const r=new a("+");function f(o,...n){const c=[g(o[0])];let v=0;for(;v<n.length;)c.push(r),l(c,n[v]),c.push(r,g(o[++v]));return h(c),new a(c)}e.str=f;function l(o,n){n instanceof a?o.push(...n._items):n instanceof u?o.push(n):o.push(S(n))}e.addCodeArg=l;function h(o){let n=1;for(;n<o.length-1;){if(o[n]===r){const c=b(o[n-1],o[n+1]);if(c!==void 0){o.splice(n-1,3,c);continue}o[n++]="+"}n++}}function b(o,n){if(n==='""')return o;if(o==='""')return n;if(typeof o=="string")return n instanceof u||o[o.length-1]!=='"'?void 0:typeof n!="string"?`${o.slice(0,-1)}${n}"`:n[0]==='"'?o.slice(0,-1)+n.slice(1):void 0;if(typeof n=="string"&&n[0]==='"'&&!(o instanceof u))return`"${o}${n.slice(1)}`}function y(o,n){return n.emptyStr()?o:o.emptyStr()?n:f`${o}${n}`}e.strConcat=y;function S(o){return typeof o=="number"||typeof o=="boolean"||o===null?o:g(Array.isArray(o)?o.join(","):o)}function m(o){return new a(g(o))}e.stringify=m;function g(o){return JSON.stringify(o).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}e.safeStringify=g;function $(o){return typeof o=="string"&&e.IDENTIFIER.test(o)?new a(`.${o}`):_`[${o}]`}e.getProperty=$;function E(o){if(typeof o=="string"&&e.IDENTIFIER.test(o))return new a(`${o}`);throw new Error(`CodeGen: invalid export name: ${o}, use explicit $id name mapping`)}e.getEsmExportName=E;function s(o){return new a(o.toString())}e.regexpCode=s}(Gt)),Gt}var Jt={},mr;function yr(){return mr||(mr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;const t=Ot();class u extends Error{constructor(b){super(`CodeGen: "code" for ${b} not defined`),this.value=b.value}}var a;(function(h){h[h.Started=0]="Started",h[h.Completed=1]="Completed"})(a||(e.UsedValueState=a={})),e.varKinds={const:new t.Name("const"),let:new t.Name("let"),var:new t.Name("var")};class _{constructor({prefixes:b,parent:y}={}){this._names={},this._prefixes=b,this._parent=y}toName(b){return b instanceof t.Name?b:this.name(b)}name(b){return new t.Name(this._newName(b))}_newName(b){const y=this._names[b]||this._nameGroup(b);return`${b}${y.index++}`}_nameGroup(b){var y,S;if(!((S=(y=this._parent)===null||y===void 0?void 0:y._prefixes)===null||S===void 0)&&S.has(b)||this._prefixes&&!this._prefixes.has(b))throw new Error(`CodeGen: prefix "${b}" is not allowed in this scope`);return this._names[b]={prefix:b,index:0}}}e.Scope=_;class r extends t.Name{constructor(b,y){super(y),this.prefix=b}setValue(b,{property:y,itemIndex:S}){this.value=b,this.scopePath=(0,t._)`.${new t.Name(y)}[${S}]`}}e.ValueScopeName=r;const f=(0,t._)`\n`;class l extends _{constructor(b){super(b),this._values={},this._scope=b.scope,this.opts={...b,_n:b.lines?f:t.nil}}get(){return this._scope}name(b){return new r(b,this._newName(b))}value(b,y){var S;if(y.ref===void 0)throw new Error("CodeGen: ref must be passed in value");const m=this.toName(b),{prefix:g}=m,$=(S=y.key)!==null&&S!==void 0?S:y.ref;let E=this._values[g];if(E){const n=E.get($);if(n)return n}else E=this._values[g]=new Map;E.set($,m);const s=this._scope[g]||(this._scope[g]=[]),o=s.length;return s[o]=y.ref,m.setValue(y,{property:g,itemIndex:o}),m}getValue(b,y){const S=this._values[b];if(S)return S.get(y)}scopeRefs(b,y=this._values){return this._reduceValues(y,S=>{if(S.scopePath===void 0)throw new Error(`CodeGen: name "${S}" has no value`);return(0,t._)`${b}${S.scopePath}`})}scopeCode(b=this._values,y,S){return this._reduceValues(b,m=>{if(m.value===void 0)throw new Error(`CodeGen: name "${m}" has no value`);return m.value.code},y,S)}_reduceValues(b,y,S={},m){let g=t.nil;for(const $ in b){const E=b[$];if(!E)continue;const s=S[$]=S[$]||new Map;E.forEach(o=>{if(s.has(o))return;s.set(o,a.Started);let n=y(o);if(n){const c=this.opts.es5?e.varKinds.var:e.varKinds.const;g=(0,t._)`${g}${c} ${o} = ${n};${this.opts._n}`}else if(n=m==null?void 0:m(o))g=(0,t._)`${g}${n}${this.opts._n}`;else throw new u(o);s.set(o,a.Completed)})}return g}}e.ValueScope=l}(Jt)),Jt}var vr;function J(){return vr||(vr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;const t=Ot(),u=yr();var a=Ot();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return a._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return a.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return a.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return a.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return a.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return a.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return a.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return a.Name}});var _=yr();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return _.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return _.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return _.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return _.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 r{optimizeNodes(){return this}optimizeNames(p,P){return this}}class f extends r{constructor(p,P,T){super(),this.varKind=p,this.name=P,this.rhs=T}render({es5:p,_n:P}){const T=p?u.varKinds.var:this.varKind,U=this.rhs===void 0?"":` = ${this.rhs}`;return`${T} ${this.name}${U};`+P}optimizeNames(p,P){if(p[this.name.str])return this.rhs&&(this.rhs=W(this.rhs,p,P)),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}}class l extends r{constructor(p,P,T){super(),this.lhs=p,this.rhs=P,this.sideEffects=T}render({_n:p}){return`${this.lhs} = ${this.rhs};`+p}optimizeNames(p,P){if(!(this.lhs instanceof t.Name&&!p[this.lhs.str]&&!this.sideEffects))return this.rhs=W(this.rhs,p,P),this}get names(){const p=this.lhs instanceof t.Name?{}:{...this.lhs.names};return K(p,this.rhs)}}class h extends l{constructor(p,P,T,U){super(p,T,U),this.op=P}render({_n:p}){return`${this.lhs} ${this.op}= ${this.rhs};`+p}}class b extends r{constructor(p){super(),this.label=p,this.names={}}render({_n:p}){return`${this.label}:`+p}}class y extends r{constructor(p){super(),this.label=p,this.names={}}render({_n:p}){return`break${this.label?` ${this.label}`:""};`+p}}class S extends r{constructor(p){super(),this.error=p}render({_n:p}){return`throw ${this.error};`+p}get names(){return this.error.names}}class m extends r{constructor(p){super(),this.code=p}render({_n:p}){return`${this.code};`+p}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(p,P){return this.code=W(this.code,p,P),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}}class g extends r{constructor(p=[]){super(),this.nodes=p}render(p){return this.nodes.reduce((P,T)=>P+T.render(p),"")}optimizeNodes(){const{nodes:p}=this;let P=p.length;for(;P--;){const T=p[P].optimizeNodes();Array.isArray(T)?p.splice(P,1,...T):T?p[P]=T:p.splice(P,1)}return p.length>0?this:void 0}optimizeNames(p,P){const{nodes:T}=this;let U=T.length;for(;U--;){const F=T[U];F.optimizeNames(p,P)||(x(p,F.names),T.splice(U,1))}return T.length>0?this:void 0}get names(){return this.nodes.reduce((p,P)=>L(p,P.names),{})}}class $ extends g{render(p){return"{"+p._n+super.render(p)+"}"+p._n}}class E extends g{}class s extends ${}s.kind="else";class o extends ${constructor(p,P){super(P),this.condition=p}render(p){let P=`if(${this.condition})`+super.render(p);return this.else&&(P+="else "+this.else.render(p)),P}optimizeNodes(){super.optimizeNodes();const p=this.condition;if(p===!0)return this.nodes;let P=this.else;if(P){const T=P.optimizeNodes();P=this.else=Array.isArray(T)?new s(T):T}if(P)return p===!1?P instanceof o?P:P.nodes:this.nodes.length?this:new o(ue(p),P instanceof o?[P]:P.nodes);if(!(p===!1||!this.nodes.length))return this}optimizeNames(p,P){var T;if(this.else=(T=this.else)===null||T===void 0?void 0:T.optimizeNames(p,P),!!(super.optimizeNames(p,P)||this.else))return this.condition=W(this.condition,p,P),this}get names(){const p=super.names;return K(p,this.condition),this.else&&L(p,this.else.names),p}}o.kind="if";class n extends ${}n.kind="for";class c extends n{constructor(p){super(),this.iteration=p}render(p){return`for(${this.iteration})`+super.render(p)}optimizeNames(p,P){if(super.optimizeNames(p,P))return this.iteration=W(this.iteration,p,P),this}get names(){return L(super.names,this.iteration.names)}}class v extends n{constructor(p,P,T,U){super(),this.varKind=p,this.name=P,this.from=T,this.to=U}render(p){const P=p.es5?u.varKinds.var:this.varKind,{name:T,from:U,to:F}=this;return`for(${P} ${T}=${U}; ${T}<${F}; ${T}++)`+super.render(p)}get names(){const p=K(super.names,this.from);return K(p,this.to)}}class i extends n{constructor(p,P,T,U){super(),this.loop=p,this.varKind=P,this.name=T,this.iterable=U}render(p){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(p)}optimizeNames(p,P){if(super.optimizeNames(p,P))return this.iterable=W(this.iterable,p,P),this}get names(){return L(super.names,this.iterable.names)}}class d extends ${constructor(p,P,T){super(),this.name=p,this.args=P,this.async=T}render(p){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(p)}}d.kind="func";class w extends g{render(p){return"return "+super.render(p)}}w.kind="return";class k extends ${render(p){let P="try"+super.render(p);return this.catch&&(P+=this.catch.render(p)),this.finally&&(P+=this.finally.render(p)),P}optimizeNodes(){var p,P;return super.optimizeNodes(),(p=this.catch)===null||p===void 0||p.optimizeNodes(),(P=this.finally)===null||P===void 0||P.optimizeNodes(),this}optimizeNames(p,P){var T,U;return super.optimizeNames(p,P),(T=this.catch)===null||T===void 0||T.optimizeNames(p,P),(U=this.finally)===null||U===void 0||U.optimizeNames(p,P),this}get names(){const p=super.names;return this.catch&&L(p,this.catch.names),this.finally&&L(p,this.finally.names),p}}class q extends ${constructor(p){super(),this.error=p}render(p){return`catch(${this.error})`+super.render(p)}}q.kind="catch";class C extends ${render(p){return"finally"+super.render(p)}}C.kind="finally";class V{constructor(p,P={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...P,_n:P.lines?`
|
|
3
|
+
`:""},this._extScope=p,this._scope=new u.Scope({parent:p}),this._nodes=[new E]}toString(){return this._root.render(this.opts)}name(p){return this._scope.name(p)}scopeName(p){return this._extScope.name(p)}scopeValue(p,P){const T=this._extScope.value(p,P);return(this._values[T.prefix]||(this._values[T.prefix]=new Set)).add(T),T}getScopeValue(p,P){return this._extScope.getValue(p,P)}scopeRefs(p){return this._extScope.scopeRefs(p,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(p,P,T,U){const F=this._scope.toName(P);return T!==void 0&&U&&(this._constants[F.str]=T),this._leafNode(new f(p,F,T)),F}const(p,P,T){return this._def(u.varKinds.const,p,P,T)}let(p,P,T){return this._def(u.varKinds.let,p,P,T)}var(p,P,T){return this._def(u.varKinds.var,p,P,T)}assign(p,P,T){return this._leafNode(new l(p,P,T))}add(p,P){return this._leafNode(new h(p,e.operators.ADD,P))}code(p){return typeof p=="function"?p():p!==t.nil&&this._leafNode(new m(p)),this}object(...p){const P=["{"];for(const[T,U]of p)P.length>1&&P.push(","),P.push(T),(T!==U||this.opts.es5)&&(P.push(":"),(0,t.addCodeArg)(P,U));return P.push("}"),new t._Code(P)}if(p,P,T){if(this._blockNode(new o(p)),P&&T)this.code(P).else().code(T).endIf();else if(P)this.code(P).endIf();else if(T)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(p){return this._elseNode(new o(p))}else(){return this._elseNode(new s)}endIf(){return this._endBlockNode(o,s)}_for(p,P){return this._blockNode(p),P&&this.code(P).endFor(),this}for(p,P){return this._for(new c(p),P)}forRange(p,P,T,U,F=this.opts.es5?u.varKinds.var:u.varKinds.let){const Q=this._scope.toName(p);return this._for(new v(F,Q,P,T),()=>U(Q))}forOf(p,P,T,U=u.varKinds.const){const F=this._scope.toName(p);if(this.opts.es5){const Q=P instanceof t.Name?P:this.var("_arr",P);return this.forRange("_i",0,(0,t._)`${Q}.length`,B=>{this.var(F,(0,t._)`${Q}[${B}]`),T(F)})}return this._for(new i("of",U,F,P),()=>T(F))}forIn(p,P,T,U=this.opts.es5?u.varKinds.var:u.varKinds.const){if(this.opts.ownProperties)return this.forOf(p,(0,t._)`Object.keys(${P})`,T);const F=this._scope.toName(p);return this._for(new i("in",U,F,P),()=>T(F))}endFor(){return this._endBlockNode(n)}label(p){return this._leafNode(new b(p))}break(p){return this._leafNode(new y(p))}return(p){const P=new w;if(this._blockNode(P),this.code(p),P.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(w)}try(p,P,T){if(!P&&!T)throw new Error('CodeGen: "try" without "catch" and "finally"');const U=new k;if(this._blockNode(U),this.code(p),P){const F=this.name("e");this._currNode=U.catch=new q(F),P(F)}return T&&(this._currNode=U.finally=new C,this.code(T)),this._endBlockNode(q,C)}throw(p){return this._leafNode(new S(p))}block(p,P){return this._blockStarts.push(this._nodes.length),p&&this.code(p).endBlock(P),this}endBlock(p){const P=this._blockStarts.pop();if(P===void 0)throw new Error("CodeGen: not in self-balancing block");const T=this._nodes.length-P;if(T<0||p!==void 0&&T!==p)throw new Error(`CodeGen: wrong number of nodes: ${T} vs ${p} expected`);return this._nodes.length=P,this}func(p,P=t.nil,T,U){return this._blockNode(new d(p,P,T)),U&&this.code(U).endFunc(),this}endFunc(){return this._endBlockNode(d)}optimize(p=1){for(;p-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(p){return this._currNode.nodes.push(p),this}_blockNode(p){this._currNode.nodes.push(p),this._nodes.push(p)}_endBlockNode(p,P){const T=this._currNode;if(T instanceof p||P&&T instanceof P)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${P?`${p.kind}/${P.kind}`:p.kind}"`)}_elseNode(p){const P=this._currNode;if(!(P instanceof o))throw new Error('CodeGen: "else" without "if"');return this._currNode=P.else=p,this}get _root(){return this._nodes[0]}get _currNode(){const p=this._nodes;return p[p.length-1]}set _currNode(p){const P=this._nodes;P[P.length-1]=p}}e.CodeGen=V;function L(j,p){for(const P in p)j[P]=(j[P]||0)+(p[P]||0);return j}function K(j,p){return p instanceof t._CodeOrName?L(j,p.names):j}function W(j,p,P){if(j instanceof t.Name)return T(j);if(!U(j))return j;return new t._Code(j._items.reduce((F,Q)=>(Q instanceof t.Name&&(Q=T(Q)),Q instanceof t._Code?F.push(...Q._items):F.push(Q),F),[]));function T(F){const Q=P[F.str];return Q===void 0||p[F.str]!==1?F:(delete p[F.str],Q)}function U(F){return F instanceof t._Code&&F._items.some(Q=>Q instanceof t.Name&&p[Q.str]===1&&P[Q.str]!==void 0)}}function x(j,p){for(const P in p)j[P]=(j[P]||0)-(p[P]||0)}function ue(j){return typeof j=="boolean"||typeof j=="number"||j===null?!j:(0,t._)`!${A(j)}`}e.not=ue;const le=R(e.operators.AND);function X(...j){return j.reduce(le)}e.and=X;const ee=R(e.operators.OR);function M(...j){return j.reduce(ee)}e.or=M;function R(j){return(p,P)=>p===t.nil?P:P===t.nil?p:(0,t._)`${A(p)} ${j} ${A(P)}`}function A(j){return j instanceof t.Name?j:(0,t._)`(${j})`}}(Ht)),Ht}var H={},_r;function Y(){if(_r)return H;_r=1,Object.defineProperty(H,"__esModule",{value:!0}),H.checkStrictMode=H.getErrorPath=H.Type=H.useFunc=H.setEvaluated=H.evaluatedPropsToName=H.mergeEvaluated=H.eachItem=H.unescapeJsonPointer=H.escapeJsonPointer=H.escapeFragment=H.unescapeFragment=H.schemaRefOrVal=H.schemaHasRulesButRef=H.schemaHasRules=H.checkUnknownRules=H.alwaysValidSchema=H.toHash=void 0;const e=J(),t=Ot();function u(i){const d={};for(const w of i)d[w]=!0;return d}H.toHash=u;function a(i,d){return typeof d=="boolean"?d:Object.keys(d).length===0?!0:(_(i,d),!r(d,i.self.RULES.all))}H.alwaysValidSchema=a;function _(i,d=i.schema){const{opts:w,self:k}=i;if(!w.strictSchema||typeof d=="boolean")return;const q=k.RULES.keywords;for(const C in d)q[C]||v(i,`unknown keyword: "${C}"`)}H.checkUnknownRules=_;function r(i,d){if(typeof i=="boolean")return!i;for(const w in i)if(d[w])return!0;return!1}H.schemaHasRules=r;function f(i,d){if(typeof i=="boolean")return!i;for(const w in i)if(w!=="$ref"&&d.all[w])return!0;return!1}H.schemaHasRulesButRef=f;function l({topSchemaRef:i,schemaPath:d},w,k,q){if(!q){if(typeof w=="number"||typeof w=="boolean")return w;if(typeof w=="string")return(0,e._)`${w}`}return(0,e._)`${i}${d}${(0,e.getProperty)(k)}`}H.schemaRefOrVal=l;function h(i){return S(decodeURIComponent(i))}H.unescapeFragment=h;function b(i){return encodeURIComponent(y(i))}H.escapeFragment=b;function y(i){return typeof i=="number"?`${i}`:i.replace(/~/g,"~0").replace(/\//g,"~1")}H.escapeJsonPointer=y;function S(i){return i.replace(/~1/g,"/").replace(/~0/g,"~")}H.unescapeJsonPointer=S;function m(i,d){if(Array.isArray(i))for(const w of i)d(w);else d(i)}H.eachItem=m;function g({mergeNames:i,mergeToName:d,mergeValues:w,resultToName:k}){return(q,C,V,L)=>{const K=V===void 0?C:V instanceof e.Name?(C instanceof e.Name?i(q,C,V):d(q,C,V),V):C instanceof e.Name?(d(q,V,C),C):w(C,V);return L===e.Name&&!(K instanceof e.Name)?k(q,K):K}}H.mergeEvaluated={props:g({mergeNames:(i,d,w)=>i.if((0,e._)`${w} !== true && ${d} !== undefined`,()=>{i.if((0,e._)`${d} === true`,()=>i.assign(w,!0),()=>i.assign(w,(0,e._)`${w} || {}`).code((0,e._)`Object.assign(${w}, ${d})`))}),mergeToName:(i,d,w)=>i.if((0,e._)`${w} !== true`,()=>{d===!0?i.assign(w,!0):(i.assign(w,(0,e._)`${w} || {}`),E(i,w,d))}),mergeValues:(i,d)=>i===!0?!0:{...i,...d},resultToName:$}),items:g({mergeNames:(i,d,w)=>i.if((0,e._)`${w} !== true && ${d} !== undefined`,()=>i.assign(w,(0,e._)`${d} === true ? true : ${w} > ${d} ? ${w} : ${d}`)),mergeToName:(i,d,w)=>i.if((0,e._)`${w} !== true`,()=>i.assign(w,d===!0?!0:(0,e._)`${w} > ${d} ? ${w} : ${d}`)),mergeValues:(i,d)=>i===!0?!0:Math.max(i,d),resultToName:(i,d)=>i.var("items",d)})};function $(i,d){if(d===!0)return i.var("props",!0);const w=i.var("props",(0,e._)`{}`);return d!==void 0&&E(i,w,d),w}H.evaluatedPropsToName=$;function E(i,d,w){Object.keys(w).forEach(k=>i.assign((0,e._)`${d}${(0,e.getProperty)(k)}`,!0))}H.setEvaluated=E;const s={};function o(i,d){return i.scopeValue("func",{ref:d,code:s[d.code]||(s[d.code]=new t._Code(d.code))})}H.useFunc=o;var n;(function(i){i[i.Num=0]="Num",i[i.Str=1]="Str"})(n||(H.Type=n={}));function c(i,d,w){if(i instanceof e.Name){const k=d===n.Num;return w?k?(0,e._)`"[" + ${i} + "]"`:(0,e._)`"['" + ${i} + "']"`:k?(0,e._)`"/" + ${i}`:(0,e._)`"/" + ${i}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return w?(0,e.getProperty)(i).toString():"/"+y(i)}H.getErrorPath=c;function v(i,d,w=i.opts.strictSchema){if(w){if(d=`strict mode: ${d}`,w===!0)throw new Error(d);i.self.logger.warn(d)}}return H.checkStrictMode=v,H}var ze={},gr;function we(){if(gr)return ze;gr=1,Object.defineProperty(ze,"__esModule",{value:!0});const e=J(),t={data:new e.Name("data"),valCxt:new e.Name("valCxt"),instancePath:new e.Name("instancePath"),parentData:new e.Name("parentData"),parentDataProperty:new e.Name("parentDataProperty"),rootData:new e.Name("rootData"),dynamicAnchors:new e.Name("dynamicAnchors"),vErrors:new e.Name("vErrors"),errors:new e.Name("errors"),this:new e.Name("this"),self:new e.Name("self"),scope:new e.Name("scope"),json:new e.Name("json"),jsonPos:new e.Name("jsonPos"),jsonLen:new e.Name("jsonLen"),jsonPart:new e.Name("jsonPart")};return ze.default=t,ze}var $r;function jt(){return $r||($r=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;const t=J(),u=Y(),a=we();e.keywordError={message:({keyword:s})=>(0,t.str)`must pass "${s}" keyword validation`},e.keyword$DataError={message:({keyword:s,schemaType:o})=>o?(0,t.str)`"${s}" keyword must be ${o} ($data)`:(0,t.str)`"${s}" keyword is invalid ($data)`};function _(s,o=e.keywordError,n,c){const{it:v}=s,{gen:i,compositeRule:d,allErrors:w}=v,k=S(s,o,n);c??(d||w)?h(i,k):b(v,(0,t._)`[${k}]`)}e.reportError=_;function r(s,o=e.keywordError,n){const{it:c}=s,{gen:v,compositeRule:i,allErrors:d}=c,w=S(s,o,n);h(v,w),i||d||b(c,a.default.vErrors)}e.reportExtraError=r;function f(s,o){s.assign(a.default.errors,o),s.if((0,t._)`${a.default.vErrors} !== null`,()=>s.if(o,()=>s.assign((0,t._)`${a.default.vErrors}.length`,o),()=>s.assign(a.default.vErrors,null)))}e.resetErrorsCount=f;function l({gen:s,keyword:o,schemaValue:n,data:c,errsCount:v,it:i}){if(v===void 0)throw new Error("ajv implementation error");const d=s.name("err");s.forRange("i",v,a.default.errors,w=>{s.const(d,(0,t._)`${a.default.vErrors}[${w}]`),s.if((0,t._)`${d}.instancePath === undefined`,()=>s.assign((0,t._)`${d}.instancePath`,(0,t.strConcat)(a.default.instancePath,i.errorPath))),s.assign((0,t._)`${d}.schemaPath`,(0,t.str)`${i.errSchemaPath}/${o}`),i.opts.verbose&&(s.assign((0,t._)`${d}.schema`,n),s.assign((0,t._)`${d}.data`,c))})}e.extendErrors=l;function h(s,o){const n=s.const("err",o);s.if((0,t._)`${a.default.vErrors} === null`,()=>s.assign(a.default.vErrors,(0,t._)`[${n}]`),(0,t._)`${a.default.vErrors}.push(${n})`),s.code((0,t._)`${a.default.errors}++`)}function b(s,o){const{gen:n,validateName:c,schemaEnv:v}=s;v.$async?n.throw((0,t._)`new ${s.ValidationError}(${o})`):(n.assign((0,t._)`${c}.errors`,o),n.return(!1))}const y={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 S(s,o,n){const{createErrors:c}=s.it;return c===!1?(0,t._)`{}`:m(s,o,n)}function m(s,o,n={}){const{gen:c,it:v}=s,i=[g(v,n),$(s,n)];return E(s,o,i),c.object(...i)}function g({errorPath:s},{instancePath:o}){const n=o?(0,t.str)`${s}${(0,u.getErrorPath)(o,u.Type.Str)}`:s;return[a.default.instancePath,(0,t.strConcat)(a.default.instancePath,n)]}function $({keyword:s,it:{errSchemaPath:o}},{schemaPath:n,parentSchema:c}){let v=c?o:(0,t.str)`${o}/${s}`;return n&&(v=(0,t.str)`${v}${(0,u.getErrorPath)(n,u.Type.Str)}`),[y.schemaPath,v]}function E(s,{params:o,message:n},c){const{keyword:v,data:i,schemaValue:d,it:w}=s,{opts:k,propertyName:q,topSchemaRef:C,schemaPath:V}=w;c.push([y.keyword,v],[y.params,typeof o=="function"?o(s):o||(0,t._)`{}`]),k.messages&&c.push([y.message,typeof n=="function"?n(s):n]),k.verbose&&c.push([y.schema,d],[y.parentSchema,(0,t._)`${C}${V}`],[a.default.data,i]),q&&c.push([y.propertyName,q])}}(Kt)),Kt}var wr;function Ws(){if(wr)return be;wr=1,Object.defineProperty(be,"__esModule",{value:!0}),be.boolOrEmptySchema=be.topBoolOrEmptySchema=void 0;const e=jt(),t=J(),u=we(),a={message:"boolean schema is false"};function _(l){const{gen:h,schema:b,validateName:y}=l;b===!1?f(l,!1):typeof b=="object"&&b.$async===!0?h.return(u.default.data):(h.assign((0,t._)`${y}.errors`,null),h.return(!0))}be.topBoolOrEmptySchema=_;function r(l,h){const{gen:b,schema:y}=l;y===!1?(b.var(h,!1),f(l)):b.var(h,!0)}be.boolOrEmptySchema=r;function f(l,h){const{gen:b,data:y}=l,S={gen:b,keyword:"false schema",data:y,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:l};(0,e.reportError)(S,a,void 0,h)}return be}var ne={},Ee={},br;function Kn(){if(br)return Ee;br=1,Object.defineProperty(Ee,"__esModule",{value:!0}),Ee.getRules=Ee.isJSONType=void 0;const e=["string","number","integer","boolean","null","object","array"],t=new Set(e);function u(_){return typeof _=="string"&&t.has(_)}Ee.isJSONType=u;function a(){const _={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{..._,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},_.number,_.string,_.array,_.object],post:{rules:[]},all:{},keywords:{}}}return Ee.getRules=a,Ee}var ye={},Er;function Hn(){if(Er)return ye;Er=1,Object.defineProperty(ye,"__esModule",{value:!0}),ye.shouldUseRule=ye.shouldUseGroup=ye.schemaHasRulesForType=void 0;function e({schema:a,self:_},r){const f=_.RULES.types[r];return f&&f!==!0&&t(a,f)}ye.schemaHasRulesForType=e;function t(a,_){return _.rules.some(r=>u(a,r))}ye.shouldUseGroup=t;function u(a,_){var r;return a[_.keyword]!==void 0||((r=_.definition.implements)===null||r===void 0?void 0:r.some(f=>a[f]!==void 0))}return ye.shouldUseRule=u,ye}var Sr;function kt(){if(Sr)return ne;Sr=1,Object.defineProperty(ne,"__esModule",{value:!0}),ne.reportTypeError=ne.checkDataTypes=ne.checkDataType=ne.coerceAndCheckDataType=ne.getJSONTypes=ne.getSchemaTypes=ne.DataType=void 0;const e=Kn(),t=Hn(),u=jt(),a=J(),_=Y();var r;(function(n){n[n.Correct=0]="Correct",n[n.Wrong=1]="Wrong"})(r||(ne.DataType=r={}));function f(n){const c=l(n.type);if(c.includes("null")){if(n.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!c.length&&n.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');n.nullable===!0&&c.push("null")}return c}ne.getSchemaTypes=f;function l(n){const c=Array.isArray(n)?n:n?[n]:[];if(c.every(e.isJSONType))return c;throw new Error("type must be JSONType or JSONType[]: "+c.join(","))}ne.getJSONTypes=l;function h(n,c){const{gen:v,data:i,opts:d}=n,w=y(c,d.coerceTypes),k=c.length>0&&!(w.length===0&&c.length===1&&(0,t.schemaHasRulesForType)(n,c[0]));if(k){const q=$(c,i,d.strictNumbers,r.Wrong);v.if(q,()=>{w.length?S(n,c,w):s(n)})}return k}ne.coerceAndCheckDataType=h;const b=new Set(["string","number","integer","boolean","null"]);function y(n,c){return c?n.filter(v=>b.has(v)||c==="array"&&v==="array"):[]}function S(n,c,v){const{gen:i,data:d,opts:w}=n,k=i.let("dataType",(0,a._)`typeof ${d}`),q=i.let("coerced",(0,a._)`undefined`);w.coerceTypes==="array"&&i.if((0,a._)`${k} == 'object' && Array.isArray(${d}) && ${d}.length == 1`,()=>i.assign(d,(0,a._)`${d}[0]`).assign(k,(0,a._)`typeof ${d}`).if($(c,d,w.strictNumbers),()=>i.assign(q,d))),i.if((0,a._)`${q} !== undefined`);for(const V of v)(b.has(V)||V==="array"&&w.coerceTypes==="array")&&C(V);i.else(),s(n),i.endIf(),i.if((0,a._)`${q} !== undefined`,()=>{i.assign(d,q),m(n,q)});function C(V){switch(V){case"string":i.elseIf((0,a._)`${k} == "number" || ${k} == "boolean"`).assign(q,(0,a._)`"" + ${d}`).elseIf((0,a._)`${d} === null`).assign(q,(0,a._)`""`);return;case"number":i.elseIf((0,a._)`${k} == "boolean" || ${d} === null
|
|
4
|
+
|| (${k} == "string" && ${d} && ${d} == +${d})`).assign(q,(0,a._)`+${d}`);return;case"integer":i.elseIf((0,a._)`${k} === "boolean" || ${d} === null
|
|
5
|
+
|| (${k} === "string" && ${d} && ${d} == +${d} && !(${d} % 1))`).assign(q,(0,a._)`+${d}`);return;case"boolean":i.elseIf((0,a._)`${d} === "false" || ${d} === 0 || ${d} === null`).assign(q,!1).elseIf((0,a._)`${d} === "true" || ${d} === 1`).assign(q,!0);return;case"null":i.elseIf((0,a._)`${d} === "" || ${d} === 0 || ${d} === false`),i.assign(q,null);return;case"array":i.elseIf((0,a._)`${k} === "string" || ${k} === "number"
|
|
6
|
+
|| ${k} === "boolean" || ${d} === null`).assign(q,(0,a._)`[${d}]`)}}}function m({gen:n,parentData:c,parentDataProperty:v},i){n.if((0,a._)`${c} !== undefined`,()=>n.assign((0,a._)`${c}[${v}]`,i))}function g(n,c,v,i=r.Correct){const d=i===r.Correct?a.operators.EQ:a.operators.NEQ;let w;switch(n){case"null":return(0,a._)`${c} ${d} null`;case"array":w=(0,a._)`Array.isArray(${c})`;break;case"object":w=(0,a._)`${c} && typeof ${c} == "object" && !Array.isArray(${c})`;break;case"integer":w=k((0,a._)`!(${c} % 1) && !isNaN(${c})`);break;case"number":w=k();break;default:return(0,a._)`typeof ${c} ${d} ${n}`}return i===r.Correct?w:(0,a.not)(w);function k(q=a.nil){return(0,a.and)((0,a._)`typeof ${c} == "number"`,q,v?(0,a._)`isFinite(${c})`:a.nil)}}ne.checkDataType=g;function $(n,c,v,i){if(n.length===1)return g(n[0],c,v,i);let d;const w=(0,_.toHash)(n);if(w.array&&w.object){const k=(0,a._)`typeof ${c} != "object"`;d=w.null?k:(0,a._)`!${c} || ${k}`,delete w.null,delete w.array,delete w.object}else d=a.nil;w.number&&delete w.integer;for(const k in w)d=(0,a.and)(d,g(k,c,v,i));return d}ne.checkDataTypes=$;const E={message:({schema:n})=>`must be ${n}`,params:({schema:n,schemaValue:c})=>typeof n=="string"?(0,a._)`{type: ${n}}`:(0,a._)`{type: ${c}}`};function s(n){const c=o(n);(0,u.reportError)(c,E)}ne.reportTypeError=s;function o(n){const{gen:c,data:v,schema:i}=n,d=(0,_.schemaRefOrVal)(n,i,"type");return{gen:c,keyword:"type",data:v,schema:i.type,schemaCode:d,schemaValue:d,parentSchema:i,params:{},it:n}}return ne}var je={},Pr;function Bs(){if(Pr)return je;Pr=1,Object.defineProperty(je,"__esModule",{value:!0}),je.assignDefaults=void 0;const e=J(),t=Y();function u(_,r){const{properties:f,items:l}=_.schema;if(r==="object"&&f)for(const h in f)a(_,h,f[h].default);else r==="array"&&Array.isArray(l)&&l.forEach((h,b)=>a(_,b,h.default))}je.assignDefaults=u;function a(_,r,f){const{gen:l,compositeRule:h,data:b,opts:y}=_;if(f===void 0)return;const S=(0,e._)`${b}${(0,e.getProperty)(r)}`;if(h){(0,t.checkStrictMode)(_,`default is ignored for: ${S}`);return}let m=(0,e._)`${S} === undefined`;y.useDefaults==="empty"&&(m=(0,e._)`${m} || ${S} === null || ${S} === ""`),l.if(m,(0,e._)`${S} = ${(0,e.stringify)(f)}`)}return je}var he={},Z={},Nr;function pe(){if(Nr)return Z;Nr=1,Object.defineProperty(Z,"__esModule",{value:!0}),Z.validateUnion=Z.validateArray=Z.usePattern=Z.callValidateCode=Z.schemaProperties=Z.allSchemaProperties=Z.noPropertyInData=Z.propertyInData=Z.isOwnProperty=Z.hasPropFunc=Z.reportMissingProp=Z.checkMissingProp=Z.checkReportMissingProp=void 0;const e=J(),t=Y(),u=we(),a=Y();function _(n,c){const{gen:v,data:i,it:d}=n;v.if(y(v,i,c,d.opts.ownProperties),()=>{n.setParams({missingProperty:(0,e._)`${c}`},!0),n.error()})}Z.checkReportMissingProp=_;function r({gen:n,data:c,it:{opts:v}},i,d){return(0,e.or)(...i.map(w=>(0,e.and)(y(n,c,w,v.ownProperties),(0,e._)`${d} = ${w}`)))}Z.checkMissingProp=r;function f(n,c){n.setParams({missingProperty:c},!0),n.error()}Z.reportMissingProp=f;function l(n){return n.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,e._)`Object.prototype.hasOwnProperty`})}Z.hasPropFunc=l;function h(n,c,v){return(0,e._)`${l(n)}.call(${c}, ${v})`}Z.isOwnProperty=h;function b(n,c,v,i){const d=(0,e._)`${c}${(0,e.getProperty)(v)} !== undefined`;return i?(0,e._)`${d} && ${h(n,c,v)}`:d}Z.propertyInData=b;function y(n,c,v,i){const d=(0,e._)`${c}${(0,e.getProperty)(v)} === undefined`;return i?(0,e.or)(d,(0,e.not)(h(n,c,v))):d}Z.noPropertyInData=y;function S(n){return n?Object.keys(n).filter(c=>c!=="__proto__"):[]}Z.allSchemaProperties=S;function m(n,c){return S(c).filter(v=>!(0,t.alwaysValidSchema)(n,c[v]))}Z.schemaProperties=m;function g({schemaCode:n,data:c,it:{gen:v,topSchemaRef:i,schemaPath:d,errorPath:w},it:k},q,C,V){const L=V?(0,e._)`${n}, ${c}, ${i}${d}`:c,K=[[u.default.instancePath,(0,e.strConcat)(u.default.instancePath,w)],[u.default.parentData,k.parentData],[u.default.parentDataProperty,k.parentDataProperty],[u.default.rootData,u.default.rootData]];k.opts.dynamicRef&&K.push([u.default.dynamicAnchors,u.default.dynamicAnchors]);const W=(0,e._)`${L}, ${v.object(...K)}`;return C!==e.nil?(0,e._)`${q}.call(${C}, ${W})`:(0,e._)`${q}(${W})`}Z.callValidateCode=g;const $=(0,e._)`new RegExp`;function E({gen:n,it:{opts:c}},v){const i=c.unicodeRegExp?"u":"",{regExp:d}=c.code,w=d(v,i);return n.scopeValue("pattern",{key:w.toString(),ref:w,code:(0,e._)`${d.code==="new RegExp"?$:(0,a.useFunc)(n,d)}(${v}, ${i})`})}Z.usePattern=E;function s(n){const{gen:c,data:v,keyword:i,it:d}=n,w=c.name("valid");if(d.allErrors){const q=c.let("valid",!0);return k(()=>c.assign(q,!1)),q}return c.var(w,!0),k(()=>c.break()),w;function k(q){const C=c.const("len",(0,e._)`${v}.length`);c.forRange("i",0,C,V=>{n.subschema({keyword:i,dataProp:V,dataPropType:t.Type.Num},w),c.if((0,e.not)(w),q)})}}Z.validateArray=s;function o(n){const{gen:c,schema:v,keyword:i,it:d}=n;if(!Array.isArray(v))throw new Error("ajv implementation error");if(v.some(C=>(0,t.alwaysValidSchema)(d,C))&&!d.opts.unevaluated)return;const k=c.let("valid",!1),q=c.name("_valid");c.block(()=>v.forEach((C,V)=>{const L=n.subschema({keyword:i,schemaProp:V,compositeRule:!0},q);c.assign(k,(0,e._)`${k} || ${q}`),n.mergeValidEvaluated(L,q)||c.if((0,e.not)(k))})),n.result(k,()=>n.reset(),()=>n.error(!0))}return Z.validateUnion=o,Z}var Rr;function Ys(){if(Rr)return he;Rr=1,Object.defineProperty(he,"__esModule",{value:!0}),he.validateKeywordUsage=he.validSchemaType=he.funcKeywordCode=he.macroKeywordCode=void 0;const e=J(),t=we(),u=pe(),a=jt();function _(m,g){const{gen:$,keyword:E,schema:s,parentSchema:o,it:n}=m,c=g.macro.call(n.self,s,o,n),v=b($,E,c);n.opts.validateSchema!==!1&&n.self.validateSchema(c,!0);const i=$.name("valid");m.subschema({schema:c,schemaPath:e.nil,errSchemaPath:`${n.errSchemaPath}/${E}`,topSchemaRef:v,compositeRule:!0},i),m.pass(i,()=>m.error(!0))}he.macroKeywordCode=_;function r(m,g){var $;const{gen:E,keyword:s,schema:o,parentSchema:n,$data:c,it:v}=m;h(v,g);const i=!c&&g.compile?g.compile.call(v.self,o,n,v):g.validate,d=b(E,s,i),w=E.let("valid");m.block$data(w,k),m.ok(($=g.valid)!==null&&$!==void 0?$:w);function k(){if(g.errors===!1)V(),g.modifying&&f(m),L(()=>m.error());else{const K=g.async?q():C();g.modifying&&f(m),L(()=>l(m,K))}}function q(){const K=E.let("ruleErrs",null);return E.try(()=>V((0,e._)`await `),W=>E.assign(w,!1).if((0,e._)`${W} instanceof ${v.ValidationError}`,()=>E.assign(K,(0,e._)`${W}.errors`),()=>E.throw(W))),K}function C(){const K=(0,e._)`${d}.errors`;return E.assign(K,null),V(e.nil),K}function V(K=g.async?(0,e._)`await `:e.nil){const W=v.opts.passContext?t.default.this:t.default.self,x=!("compile"in g&&!c||g.schema===!1);E.assign(w,(0,e._)`${K}${(0,u.callValidateCode)(m,d,W,x)}`,g.modifying)}function L(K){var W;E.if((0,e.not)((W=g.valid)!==null&&W!==void 0?W:w),K)}}he.funcKeywordCode=r;function f(m){const{gen:g,data:$,it:E}=m;g.if(E.parentData,()=>g.assign($,(0,e._)`${E.parentData}[${E.parentDataProperty}]`))}function l(m,g){const{gen:$}=m;$.if((0,e._)`Array.isArray(${g})`,()=>{$.assign(t.default.vErrors,(0,e._)`${t.default.vErrors} === null ? ${g} : ${t.default.vErrors}.concat(${g})`).assign(t.default.errors,(0,e._)`${t.default.vErrors}.length`),(0,a.extendErrors)(m)},()=>m.error())}function h({schemaEnv:m},g){if(g.async&&!m.$async)throw new Error("async keyword in sync schema")}function b(m,g,$){if($===void 0)throw new Error(`keyword "${g}" failed to compile`);return m.scopeValue("keyword",typeof $=="function"?{ref:$}:{ref:$,code:(0,e.stringify)($)})}function y(m,g,$=!1){return!g.length||g.some(E=>E==="array"?Array.isArray(m):E==="object"?m&&typeof m=="object"&&!Array.isArray(m):typeof m==E||$&&typeof m>"u")}he.validSchemaType=y;function S({schema:m,opts:g,self:$,errSchemaPath:E},s,o){if(Array.isArray(s.keyword)?!s.keyword.includes(o):s.keyword!==o)throw new Error("ajv implementation error");const n=s.dependencies;if(n!=null&&n.some(c=>!Object.prototype.hasOwnProperty.call(m,c)))throw new Error(`parent schema must have dependencies of ${o}: ${n.join(",")}`);if(s.validateSchema&&!s.validateSchema(m[o])){const v=`keyword "${o}" value is invalid at path "${E}": `+$.errorsText(s.validateSchema.errors);if(g.validateSchema==="log")$.logger.error(v);else throw new Error(v)}}return he.validateKeywordUsage=S,he}var ve={},Or;function Qs(){if(Or)return ve;Or=1,Object.defineProperty(ve,"__esModule",{value:!0}),ve.extendSubschemaMode=ve.extendSubschemaData=ve.getSubschema=void 0;const e=J(),t=Y();function u(r,{keyword:f,schemaProp:l,schema:h,schemaPath:b,errSchemaPath:y,topSchemaRef:S}){if(f!==void 0&&h!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(f!==void 0){const m=r.schema[f];return l===void 0?{schema:m,schemaPath:(0,e._)`${r.schemaPath}${(0,e.getProperty)(f)}`,errSchemaPath:`${r.errSchemaPath}/${f}`}:{schema:m[l],schemaPath:(0,e._)`${r.schemaPath}${(0,e.getProperty)(f)}${(0,e.getProperty)(l)}`,errSchemaPath:`${r.errSchemaPath}/${f}/${(0,t.escapeFragment)(l)}`}}if(h!==void 0){if(b===void 0||y===void 0||S===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:h,schemaPath:b,topSchemaRef:S,errSchemaPath:y}}throw new Error('either "keyword" or "schema" must be passed')}ve.getSubschema=u;function a(r,f,{dataProp:l,dataPropType:h,data:b,dataTypes:y,propertyName:S}){if(b!==void 0&&l!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:m}=f;if(l!==void 0){const{errorPath:$,dataPathArr:E,opts:s}=f,o=m.let("data",(0,e._)`${f.data}${(0,e.getProperty)(l)}`,!0);g(o),r.errorPath=(0,e.str)`${$}${(0,t.getErrorPath)(l,h,s.jsPropertySyntax)}`,r.parentDataProperty=(0,e._)`${l}`,r.dataPathArr=[...E,r.parentDataProperty]}if(b!==void 0){const $=b instanceof e.Name?b:m.let("data",b,!0);g($),S!==void 0&&(r.propertyName=S)}y&&(r.dataTypes=y);function g($){r.data=$,r.dataLevel=f.dataLevel+1,r.dataTypes=[],f.definedProperties=new Set,r.parentData=f.data,r.dataNames=[...f.dataNames,$]}}ve.extendSubschemaData=a;function _(r,{jtdDiscriminator:f,jtdMetadata:l,compositeRule:h,createErrors:b,allErrors:y}){h!==void 0&&(r.compositeRule=h),b!==void 0&&(r.createErrors=b),y!==void 0&&(r.allErrors=y),r.jtdDiscriminator=f,r.jtdMetadata=l}return ve.extendSubschemaMode=_,ve}var se={},Wt,kr;function Gn(){return kr||(kr=1,Wt=function e(t,u){if(t===u)return!0;if(t&&u&&typeof t=="object"&&typeof u=="object"){if(t.constructor!==u.constructor)return!1;var a,_,r;if(Array.isArray(t)){if(a=t.length,a!=u.length)return!1;for(_=a;_--!==0;)if(!e(t[_],u[_]))return!1;return!0}if(t.constructor===RegExp)return t.source===u.source&&t.flags===u.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===u.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===u.toString();if(r=Object.keys(t),a=r.length,a!==Object.keys(u).length)return!1;for(_=a;_--!==0;)if(!Object.prototype.hasOwnProperty.call(u,r[_]))return!1;for(_=a;_--!==0;){var f=r[_];if(!e(t[f],u[f]))return!1}return!0}return t!==t&&u!==u}),Wt}var Bt={exports:{}},jr;function Xs(){if(jr)return Bt.exports;jr=1;var e=Bt.exports=function(a,_,r){typeof _=="function"&&(r=_,_={}),r=_.cb||r;var f=typeof r=="function"?r:r.pre||function(){},l=r.post||function(){};t(_,f,l,a,"",a)};e.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0},e.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},e.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},e.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function t(a,_,r,f,l,h,b,y,S,m){if(f&&typeof f=="object"&&!Array.isArray(f)){_(f,l,h,b,y,S,m);for(var g in f){var $=f[g];if(Array.isArray($)){if(g in e.arrayKeywords)for(var E=0;E<$.length;E++)t(a,_,r,$[E],l+"/"+g+"/"+E,h,l,g,f,E)}else if(g in e.propsKeywords){if($&&typeof $=="object")for(var s in $)t(a,_,r,$[s],l+"/"+g+"/"+u(s),h,l,g,f,s)}else(g in e.keywords||a.allKeys&&!(g in e.skipKeywords))&&t(a,_,r,$,l+"/"+g,h,l,g,f)}r(f,l,h,b,y,S,m)}}function u(a){return a.replace(/~/g,"~0").replace(/\//g,"~1")}return Bt.exports}var Tr;function Tt(){if(Tr)return se;Tr=1,Object.defineProperty(se,"__esModule",{value:!0}),se.getSchemaRefs=se.resolveUrl=se.normalizeId=se._getFullPath=se.getFullPath=se.inlineRef=void 0;const e=Y(),t=Gn(),u=Xs(),a=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function _(E,s=!0){return typeof E=="boolean"?!0:s===!0?!f(E):s?l(E)<=s:!1}se.inlineRef=_;const r=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function f(E){for(const s in E){if(r.has(s))return!0;const o=E[s];if(Array.isArray(o)&&o.some(f)||typeof o=="object"&&f(o))return!0}return!1}function l(E){let s=0;for(const o in E){if(o==="$ref")return 1/0;if(s++,!a.has(o)&&(typeof E[o]=="object"&&(0,e.eachItem)(E[o],n=>s+=l(n)),s===1/0))return 1/0}return s}function h(E,s="",o){o!==!1&&(s=S(s));const n=E.parse(s);return b(E,n)}se.getFullPath=h;function b(E,s){return E.serialize(s).split("#")[0]+"#"}se._getFullPath=b;const y=/#\/?$/;function S(E){return E?E.replace(y,""):""}se.normalizeId=S;function m(E,s,o){return o=S(o),E.resolve(s,o)}se.resolveUrl=m;const g=/^[a-z_][-a-z0-9._]*$/i;function $(E,s){if(typeof E=="boolean")return{};const{schemaId:o,uriResolver:n}=this.opts,c=S(E[o]||s),v={"":c},i=h(n,c,!1),d={},w=new Set;return u(E,{allKeys:!0},(C,V,L,K)=>{if(K===void 0)return;const W=i+V;let x=v[K];typeof C[o]=="string"&&(x=ue.call(this,C[o])),le.call(this,C.$anchor),le.call(this,C.$dynamicAnchor),v[V]=x;function ue(X){const ee=this.opts.uriResolver.resolve;if(X=S(x?ee(x,X):X),w.has(X))throw q(X);w.add(X);let M=this.refs[X];return typeof M=="string"&&(M=this.refs[M]),typeof M=="object"?k(C,M.schema,X):X!==S(W)&&(X[0]==="#"?(k(C,d[X],X),d[X]=C):this.refs[X]=W),X}function le(X){if(typeof X=="string"){if(!g.test(X))throw new Error(`invalid anchor "${X}"`);ue.call(this,`#${X}`)}}}),d;function k(C,V,L){if(V!==void 0&&!t(C,V))throw q(L)}function q(C){return new Error(`reference "${C}" resolves to more than one schema`)}}return se.getSchemaRefs=$,se}var Ir;function It(){if(Ir)return me;Ir=1,Object.defineProperty(me,"__esModule",{value:!0}),me.getData=me.KeywordCxt=me.validateFunctionCode=void 0;const e=Ws(),t=kt(),u=Hn(),a=kt(),_=Bs(),r=Ys(),f=Qs(),l=J(),h=we(),b=Tt(),y=Y(),S=jt();function m(N){if(i(N)&&(w(N),v(N))){s(N);return}g(N,()=>(0,e.topBoolOrEmptySchema)(N))}me.validateFunctionCode=m;function g({gen:N,validateName:O,schema:I,schemaEnv:D,opts:z},G){z.code.es5?N.func(O,(0,l._)`${h.default.data}, ${h.default.valCxt}`,D.$async,()=>{N.code((0,l._)`"use strict"; ${n(I,z)}`),E(N,z),N.code(G)}):N.func(O,(0,l._)`${h.default.data}, ${$(z)}`,D.$async,()=>N.code(n(I,z)).code(G))}function $(N){return(0,l._)`{${h.default.instancePath}="", ${h.default.parentData}, ${h.default.parentDataProperty}, ${h.default.rootData}=${h.default.data}${N.dynamicRef?(0,l._)`, ${h.default.dynamicAnchors}={}`:l.nil}}={}`}function E(N,O){N.if(h.default.valCxt,()=>{N.var(h.default.instancePath,(0,l._)`${h.default.valCxt}.${h.default.instancePath}`),N.var(h.default.parentData,(0,l._)`${h.default.valCxt}.${h.default.parentData}`),N.var(h.default.parentDataProperty,(0,l._)`${h.default.valCxt}.${h.default.parentDataProperty}`),N.var(h.default.rootData,(0,l._)`${h.default.valCxt}.${h.default.rootData}`),O.dynamicRef&&N.var(h.default.dynamicAnchors,(0,l._)`${h.default.valCxt}.${h.default.dynamicAnchors}`)},()=>{N.var(h.default.instancePath,(0,l._)`""`),N.var(h.default.parentData,(0,l._)`undefined`),N.var(h.default.parentDataProperty,(0,l._)`undefined`),N.var(h.default.rootData,h.default.data),O.dynamicRef&&N.var(h.default.dynamicAnchors,(0,l._)`{}`)})}function s(N){const{schema:O,opts:I,gen:D}=N;g(N,()=>{I.$comment&&O.$comment&&K(N),C(N),D.let(h.default.vErrors,null),D.let(h.default.errors,0),I.unevaluated&&o(N),k(N),W(N)})}function o(N){const{gen:O,validateName:I}=N;N.evaluated=O.const("evaluated",(0,l._)`${I}.evaluated`),O.if((0,l._)`${N.evaluated}.dynamicProps`,()=>O.assign((0,l._)`${N.evaluated}.props`,(0,l._)`undefined`)),O.if((0,l._)`${N.evaluated}.dynamicItems`,()=>O.assign((0,l._)`${N.evaluated}.items`,(0,l._)`undefined`))}function n(N,O){const I=typeof N=="object"&&N[O.schemaId];return I&&(O.code.source||O.code.process)?(0,l._)`/*# sourceURL=${I} */`:l.nil}function c(N,O){if(i(N)&&(w(N),v(N))){d(N,O);return}(0,e.boolOrEmptySchema)(N,O)}function v({schema:N,self:O}){if(typeof N=="boolean")return!N;for(const I in N)if(O.RULES.all[I])return!0;return!1}function i(N){return typeof N.schema!="boolean"}function d(N,O){const{schema:I,gen:D,opts:z}=N;z.$comment&&I.$comment&&K(N),V(N),L(N);const G=D.const("_errs",h.default.errors);k(N,G),D.var(O,(0,l._)`${G} === ${h.default.errors}`)}function w(N){(0,y.checkUnknownRules)(N),q(N)}function k(N,O){if(N.opts.jtd)return ue(N,[],!1,O);const I=(0,t.getSchemaTypes)(N.schema),D=(0,t.coerceAndCheckDataType)(N,I);ue(N,I,!D,O)}function q(N){const{schema:O,errSchemaPath:I,opts:D,self:z}=N;O.$ref&&D.ignoreKeywordsWithRef&&(0,y.schemaHasRulesButRef)(O,z.RULES)&&z.logger.warn(`$ref: keywords ignored in schema at path "${I}"`)}function C(N){const{schema:O,opts:I}=N;O.default!==void 0&&I.useDefaults&&I.strictSchema&&(0,y.checkStrictMode)(N,"default is ignored in the schema root")}function V(N){const O=N.schema[N.opts.schemaId];O&&(N.baseId=(0,b.resolveUrl)(N.opts.uriResolver,N.baseId,O))}function L(N){if(N.schema.$async&&!N.schemaEnv.$async)throw new Error("async schema in sync schema")}function K({gen:N,schemaEnv:O,schema:I,errSchemaPath:D,opts:z}){const G=I.$comment;if(z.$comment===!0)N.code((0,l._)`${h.default.self}.logger.log(${G})`);else if(typeof z.$comment=="function"){const te=(0,l.str)`${D}/$comment`,de=N.scopeValue("root",{ref:O.root});N.code((0,l._)`${h.default.self}.opts.$comment(${G}, ${te}, ${de}.schema)`)}}function W(N){const{gen:O,schemaEnv:I,validateName:D,ValidationError:z,opts:G}=N;I.$async?O.if((0,l._)`${h.default.errors} === 0`,()=>O.return(h.default.data),()=>O.throw((0,l._)`new ${z}(${h.default.vErrors})`)):(O.assign((0,l._)`${D}.errors`,h.default.vErrors),G.unevaluated&&x(N),O.return((0,l._)`${h.default.errors} === 0`))}function x({gen:N,evaluated:O,props:I,items:D}){I instanceof l.Name&&N.assign((0,l._)`${O}.props`,I),D instanceof l.Name&&N.assign((0,l._)`${O}.items`,D)}function ue(N,O,I,D){const{gen:z,schema:G,data:te,allErrors:de,opts:ae,self:ie}=N,{RULES:re}=ie;if(G.$ref&&(ae.ignoreKeywordsWithRef||!(0,y.schemaHasRulesButRef)(G,re))){z.block(()=>U(N,"$ref",re.all.$ref.definition));return}ae.jtd||X(N,O),z.block(()=>{for(const fe of re.rules)Pe(fe);Pe(re.post)});function Pe(fe){(0,u.shouldUseGroup)(G,fe)&&(fe.type?(z.if((0,a.checkDataType)(fe.type,te,ae.strictNumbers)),le(N,fe),O.length===1&&O[0]===fe.type&&I&&(z.else(),(0,a.reportTypeError)(N)),z.endIf()):le(N,fe),de||z.if((0,l._)`${h.default.errors} === ${D||0}`))}}function le(N,O){const{gen:I,schema:D,opts:{useDefaults:z}}=N;z&&(0,_.assignDefaults)(N,O.type),I.block(()=>{for(const G of O.rules)(0,u.shouldUseRule)(D,G)&&U(N,G.keyword,G.definition,O.type)})}function X(N,O){N.schemaEnv.meta||!N.opts.strictTypes||(ee(N,O),N.opts.allowUnionTypes||M(N,O),R(N,N.dataTypes))}function ee(N,O){if(O.length){if(!N.dataTypes.length){N.dataTypes=O;return}O.forEach(I=>{j(N.dataTypes,I)||P(N,`type "${I}" not allowed by context "${N.dataTypes.join(",")}"`)}),p(N,O)}}function M(N,O){O.length>1&&!(O.length===2&&O.includes("null"))&&P(N,"use allowUnionTypes to allow union type keyword")}function R(N,O){const I=N.self.RULES.all;for(const D in I){const z=I[D];if(typeof z=="object"&&(0,u.shouldUseRule)(N.schema,z)){const{type:G}=z.definition;G.length&&!G.some(te=>A(O,te))&&P(N,`missing type "${G.join(",")}" for keyword "${D}"`)}}}function A(N,O){return N.includes(O)||O==="number"&&N.includes("integer")}function j(N,O){return N.includes(O)||O==="integer"&&N.includes("number")}function p(N,O){const I=[];for(const D of N.dataTypes)j(O,D)?I.push(D):O.includes("integer")&&D==="number"&&I.push("integer");N.dataTypes=I}function P(N,O){const I=N.schemaEnv.baseId+N.errSchemaPath;O+=` at "${I}" (strictTypes)`,(0,y.checkStrictMode)(N,O,N.opts.strictTypes)}class T{constructor(O,I,D){if((0,r.validateKeywordUsage)(O,I,D),this.gen=O.gen,this.allErrors=O.allErrors,this.keyword=D,this.data=O.data,this.schema=O.schema[D],this.$data=I.$data&&O.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,y.schemaRefOrVal)(O,this.schema,D,this.$data),this.schemaType=I.schemaType,this.parentSchema=O.schema,this.params={},this.it=O,this.def=I,this.$data)this.schemaCode=O.gen.const("vSchema",B(this.$data,O));else if(this.schemaCode=this.schemaValue,!(0,r.validSchemaType)(this.schema,I.schemaType,I.allowUndefined))throw new Error(`${D} value must be ${JSON.stringify(I.schemaType)}`);("code"in I?I.trackErrors:I.errors!==!1)&&(this.errsCount=O.gen.const("_errs",h.default.errors))}result(O,I,D){this.failResult((0,l.not)(O),I,D)}failResult(O,I,D){this.gen.if(O),D?D():this.error(),I?(this.gen.else(),I(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(O,I){this.failResult((0,l.not)(O),void 0,I)}fail(O){if(O===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(O),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(O){if(!this.$data)return this.fail(O);const{schemaCode:I}=this;this.fail((0,l._)`${I} !== undefined && (${(0,l.or)(this.invalid$data(),O)})`)}error(O,I,D){if(I){this.setParams(I),this._error(O,D),this.setParams({});return}this._error(O,D)}_error(O,I){(O?S.reportExtraError:S.reportError)(this,this.def.error,I)}$dataError(){(0,S.reportError)(this,this.def.$dataError||S.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,S.resetErrorsCount)(this.gen,this.errsCount)}ok(O){this.allErrors||this.gen.if(O)}setParams(O,I){I?Object.assign(this.params,O):this.params=O}block$data(O,I,D=l.nil){this.gen.block(()=>{this.check$data(O,D),I()})}check$data(O=l.nil,I=l.nil){if(!this.$data)return;const{gen:D,schemaCode:z,schemaType:G,def:te}=this;D.if((0,l.or)((0,l._)`${z} === undefined`,I)),O!==l.nil&&D.assign(O,!0),(G.length||te.validateSchema)&&(D.elseIf(this.invalid$data()),this.$dataError(),O!==l.nil&&D.assign(O,!1)),D.else()}invalid$data(){const{gen:O,schemaCode:I,schemaType:D,def:z,it:G}=this;return(0,l.or)(te(),de());function te(){if(D.length){if(!(I instanceof l.Name))throw new Error("ajv implementation error");const ae=Array.isArray(D)?D:[D];return(0,l._)`${(0,a.checkDataTypes)(ae,I,G.opts.strictNumbers,a.DataType.Wrong)}`}return l.nil}function de(){if(z.validateSchema){const ae=O.scopeValue("validate$data",{ref:z.validateSchema});return(0,l._)`!${ae}(${I})`}return l.nil}}subschema(O,I){const D=(0,f.getSubschema)(this.it,O);(0,f.extendSubschemaData)(D,this.it,O),(0,f.extendSubschemaMode)(D,O);const z={...this.it,...D,items:void 0,props:void 0};return c(z,I),z}mergeEvaluated(O,I){const{it:D,gen:z}=this;D.opts.unevaluated&&(D.props!==!0&&O.props!==void 0&&(D.props=y.mergeEvaluated.props(z,O.props,D.props,I)),D.items!==!0&&O.items!==void 0&&(D.items=y.mergeEvaluated.items(z,O.items,D.items,I)))}mergeValidEvaluated(O,I){const{it:D,gen:z}=this;if(D.opts.unevaluated&&(D.props!==!0||D.items!==!0))return z.if(I,()=>this.mergeEvaluated(O,l.Name)),!0}}me.KeywordCxt=T;function U(N,O,I,D){const z=new T(N,I,O);"code"in I?I.code(z,D):z.$data&&I.validate?(0,r.funcKeywordCode)(z,I):"macro"in I?(0,r.macroKeywordCode)(z,I):(I.compile||I.validate)&&(0,r.funcKeywordCode)(z,I)}const F=/^\/(?:[^~]|~0|~1)*$/,Q=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function B(N,{dataLevel:O,dataNames:I,dataPathArr:D}){let z,G;if(N==="")return h.default.rootData;if(N[0]==="/"){if(!F.test(N))throw new Error(`Invalid JSON-pointer: ${N}`);z=N,G=h.default.rootData}else{const ie=Q.exec(N);if(!ie)throw new Error(`Invalid JSON-pointer: ${N}`);const re=+ie[1];if(z=ie[2],z==="#"){if(re>=O)throw new Error(ae("property/index",re));return D[O-re]}if(re>O)throw new Error(ae("data",re));if(G=I[O-re],!z)return G}let te=G;const de=z.split("/");for(const ie of de)ie&&(G=(0,l._)`${G}${(0,l.getProperty)((0,y.unescapeJsonPointer)(ie))}`,te=(0,l._)`${te} && ${G}`);return te;function ae(ie,re){return`Cannot access ${ie} ${re} levels up, current level is ${O}`}}return me.getData=B,me}var Fe={},qr;function rr(){if(qr)return Fe;qr=1,Object.defineProperty(Fe,"__esModule",{value:!0});class e extends Error{constructor(u){super("validation failed"),this.errors=u,this.ajv=this.validation=!0}}return Fe.default=e,Fe}var Le={},Cr;function qt(){if(Cr)return Le;Cr=1,Object.defineProperty(Le,"__esModule",{value:!0});const e=Tt();class t extends Error{constructor(a,_,r,f){super(f||`can't resolve reference ${r} from id ${_}`),this.missingRef=(0,e.resolveUrl)(a,_,r),this.missingSchema=(0,e.normalizeId)((0,e.getFullPath)(a,this.missingRef))}}return Le.default=t,Le}var ce={},Ar;function nr(){if(Ar)return ce;Ar=1,Object.defineProperty(ce,"__esModule",{value:!0}),ce.resolveSchema=ce.getCompilingSchema=ce.resolveRef=ce.compileSchema=ce.SchemaEnv=void 0;const e=J(),t=rr(),u=we(),a=Tt(),_=Y(),r=It();class f{constructor(o){var n;this.refs={},this.dynamicAnchors={};let c;typeof o.schema=="object"&&(c=o.schema),this.schema=o.schema,this.schemaId=o.schemaId,this.root=o.root||this,this.baseId=(n=o.baseId)!==null&&n!==void 0?n:(0,a.normalizeId)(c==null?void 0:c[o.schemaId||"$id"]),this.schemaPath=o.schemaPath,this.localRefs=o.localRefs,this.meta=o.meta,this.$async=c==null?void 0:c.$async,this.refs={}}}ce.SchemaEnv=f;function l(s){const o=y.call(this,s);if(o)return o;const n=(0,a.getFullPath)(this.opts.uriResolver,s.root.baseId),{es5:c,lines:v}=this.opts.code,{ownProperties:i}=this.opts,d=new e.CodeGen(this.scope,{es5:c,lines:v,ownProperties:i});let w;s.$async&&(w=d.scopeValue("Error",{ref:t.default,code:(0,e._)`require("ajv/dist/runtime/validation_error").default`}));const k=d.scopeName("validate");s.validateName=k;const q={gen:d,allErrors:this.opts.allErrors,data:u.default.data,parentData:u.default.parentData,parentDataProperty:u.default.parentDataProperty,dataNames:[u.default.data],dataPathArr:[e.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",this.opts.code.source===!0?{ref:s.schema,code:(0,e.stringify)(s.schema)}:{ref:s.schema}),validateName:k,ValidationError:w,schema:s.schema,schemaEnv:s,rootId:n,baseId:s.baseId||n,schemaPath:e.nil,errSchemaPath:s.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,e._)`""`,opts:this.opts,self:this};let C;try{this._compilations.add(s),(0,r.validateFunctionCode)(q),d.optimize(this.opts.code.optimize);const V=d.toString();C=`${d.scopeRefs(u.default.scope)}return ${V}`,this.opts.code.process&&(C=this.opts.code.process(C,s));const K=new Function(`${u.default.self}`,`${u.default.scope}`,C)(this,this.scope.get());if(this.scope.value(k,{ref:K}),K.errors=null,K.schema=s.schema,K.schemaEnv=s,s.$async&&(K.$async=!0),this.opts.code.source===!0&&(K.source={validateName:k,validateCode:V,scopeValues:d._values}),this.opts.unevaluated){const{props:W,items:x}=q;K.evaluated={props:W instanceof e.Name?void 0:W,items:x instanceof e.Name?void 0:x,dynamicProps:W instanceof e.Name,dynamicItems:x instanceof e.Name},K.source&&(K.source.evaluated=(0,e.stringify)(K.evaluated))}return s.validate=K,s}catch(V){throw delete s.validate,delete s.validateName,C&&this.logger.error("Error compiling schema, function code:",C),V}finally{this._compilations.delete(s)}}ce.compileSchema=l;function h(s,o,n){var c;n=(0,a.resolveUrl)(this.opts.uriResolver,o,n);const v=s.refs[n];if(v)return v;let i=m.call(this,s,n);if(i===void 0){const d=(c=s.localRefs)===null||c===void 0?void 0:c[n],{schemaId:w}=this.opts;d&&(i=new f({schema:d,schemaId:w,root:s,baseId:o}))}if(i!==void 0)return s.refs[n]=b.call(this,i)}ce.resolveRef=h;function b(s){return(0,a.inlineRef)(s.schema,this.opts.inlineRefs)?s.schema:s.validate?s:l.call(this,s)}function y(s){for(const o of this._compilations)if(S(o,s))return o}ce.getCompilingSchema=y;function S(s,o){return s.schema===o.schema&&s.root===o.root&&s.baseId===o.baseId}function m(s,o){let n;for(;typeof(n=this.refs[o])=="string";)o=n;return n||this.schemas[o]||g.call(this,s,o)}function g(s,o){const n=this.opts.uriResolver.parse(o),c=(0,a._getFullPath)(this.opts.uriResolver,n);let v=(0,a.getFullPath)(this.opts.uriResolver,s.baseId,void 0);if(Object.keys(s.schema).length>0&&c===v)return E.call(this,n,s);const i=(0,a.normalizeId)(c),d=this.refs[i]||this.schemas[i];if(typeof d=="string"){const w=g.call(this,s,d);return typeof(w==null?void 0:w.schema)!="object"?void 0:E.call(this,n,w)}if(typeof(d==null?void 0:d.schema)=="object"){if(d.validate||l.call(this,d),i===(0,a.normalizeId)(o)){const{schema:w}=d,{schemaId:k}=this.opts,q=w[k];return q&&(v=(0,a.resolveUrl)(this.opts.uriResolver,v,q)),new f({schema:w,schemaId:k,root:s,baseId:v})}return E.call(this,n,d)}}ce.resolveSchema=g;const $=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function E(s,{baseId:o,schema:n,root:c}){var v;if(((v=s.fragment)===null||v===void 0?void 0:v[0])!=="/")return;for(const w of s.fragment.slice(1).split("/")){if(typeof n=="boolean")return;const k=n[(0,_.unescapeFragment)(w)];if(k===void 0)return;n=k;const q=typeof n=="object"&&n[this.opts.schemaId];!$.has(w)&&q&&(o=(0,a.resolveUrl)(this.opts.uriResolver,o,q))}let i;if(typeof n!="boolean"&&n.$ref&&!(0,_.schemaHasRulesButRef)(n,this.RULES)){const w=(0,a.resolveUrl)(this.opts.uriResolver,o,n.$ref);i=g.call(this,c,w)}const{schemaId:d}=this.opts;if(i=i||new f({schema:n,schemaId:d,root:c,baseId:o}),i.schema!==i.root.schema)return i}return ce}const Zs="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",xs="Meta-schema for $data reference (JSON AnySchema extension proposal)",ea="object",ta=["$data"],ra={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},na=!1,sa={$id:Zs,description:xs,type:ea,required:ta,properties:ra,additionalProperties:na};var Ke={},Te={exports:{}},Yt,Mr;function Jn(){if(Mr)return Yt;Mr=1;const e=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),t=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);function u(m){let g="",$=0,E=0;for(E=0;E<m.length;E++)if($=m[E].charCodeAt(0),$!==48){if(!($>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102))return"";g+=m[E];break}for(E+=1;E<m.length;E++){if($=m[E].charCodeAt(0),!($>=48&&$<=57||$>=65&&$<=70||$>=97&&$<=102))return"";g+=m[E]}return g}const a=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function _(m){return m.length=0,!0}function r(m,g,$){if(m.length){const E=u(m);if(E!=="")g.push(E);else return $.error=!0,!1;m.length=0}return!0}function f(m){let g=0;const $={error:!1,address:"",zone:""},E=[],s=[];let o=!1,n=!1,c=r;for(let v=0;v<m.length;v++){const i=m[v];if(!(i==="["||i==="]"))if(i===":"){if(o===!0&&(n=!0),!c(s,E,$))break;if(++g>7){$.error=!0;break}v>0&&m[v-1]===":"&&(o=!0),E.push(":");continue}else if(i==="%"){if(!c(s,E,$))break;c=_}else{s.push(i);continue}}return s.length&&(c===_?$.zone=s.join(""):n?E.push(s.join("")):E.push(u(s))),$.address=E.join(""),$}function l(m){if(h(m,":")<2)return{host:m,isIPV6:!1};const g=f(m);if(g.error)return{host:m,isIPV6:!1};{let $=g.address,E=g.address;return g.zone&&($+="%"+g.zone,E+="%25"+g.zone),{host:$,isIPV6:!0,escapedHost:E}}}function h(m,g){let $=0;for(let E=0;E<m.length;E++)m[E]===g&&$++;return $}function b(m){let g=m;const $=[];let E=-1,s=0;for(;s=g.length;){if(s===1){if(g===".")break;if(g==="/"){$.push("/");break}else{$.push(g);break}}else if(s===2){if(g[0]==="."){if(g[1]===".")break;if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&(g[1]==="."||g[1]==="/")){$.push("/");break}}else if(s===3&&g==="/.."){$.length!==0&&$.pop(),$.push("/");break}if(g[0]==="."){if(g[1]==="."){if(g[2]==="/"){g=g.slice(3);continue}}else if(g[1]==="/"){g=g.slice(2);continue}}else if(g[0]==="/"&&g[1]==="."){if(g[2]==="/"){g=g.slice(2);continue}else if(g[2]==="."&&g[3]==="/"){g=g.slice(3),$.length!==0&&$.pop();continue}}if((E=g.indexOf("/",1))===-1){$.push(g);break}else $.push(g.slice(0,E)),g=g.slice(E)}return $.join("")}function y(m,g){const $=g!==!0?escape:unescape;return m.scheme!==void 0&&(m.scheme=$(m.scheme)),m.userinfo!==void 0&&(m.userinfo=$(m.userinfo)),m.host!==void 0&&(m.host=$(m.host)),m.path!==void 0&&(m.path=$(m.path)),m.query!==void 0&&(m.query=$(m.query)),m.fragment!==void 0&&(m.fragment=$(m.fragment)),m}function S(m){const g=[];if(m.userinfo!==void 0&&(g.push(m.userinfo),g.push("@")),m.host!==void 0){let $=unescape(m.host);if(!t($)){const E=l($);E.isIPV6===!0?$=`[${E.escapedHost}]`:$=m.host}g.push($)}return(typeof m.port=="number"||typeof m.port=="string")&&(g.push(":"),g.push(String(m.port))),g.length?g.join(""):void 0}return Yt={nonSimpleDomain:a,recomposeAuthority:S,normalizeComponentEncoding:y,removeDotSegments:b,isIPv4:t,isUUID:e,normalizeIPv6:l,stringArrayToHexStripped:u},Yt}var Qt,Dr;function aa(){if(Dr)return Qt;Dr=1;const{isUUID:e}=Jn(),t=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,u=["http","https","ws","wss","urn","urn:uuid"];function a(i){return u.indexOf(i)!==-1}function _(i){return i.secure===!0?!0:i.secure===!1?!1:i.scheme?i.scheme.length===3&&(i.scheme[0]==="w"||i.scheme[0]==="W")&&(i.scheme[1]==="s"||i.scheme[1]==="S")&&(i.scheme[2]==="s"||i.scheme[2]==="S"):!1}function r(i){return i.host||(i.error=i.error||"HTTP URIs must have a host."),i}function f(i){const d=String(i.scheme).toLowerCase()==="https";return(i.port===(d?443:80)||i.port==="")&&(i.port=void 0),i.path||(i.path="/"),i}function l(i){return i.secure=_(i),i.resourceName=(i.path||"/")+(i.query?"?"+i.query:""),i.path=void 0,i.query=void 0,i}function h(i){if((i.port===(_(i)?443:80)||i.port==="")&&(i.port=void 0),typeof i.secure=="boolean"&&(i.scheme=i.secure?"wss":"ws",i.secure=void 0),i.resourceName){const[d,w]=i.resourceName.split("?");i.path=d&&d!=="/"?d:void 0,i.query=w,i.resourceName=void 0}return i.fragment=void 0,i}function b(i,d){if(!i.path)return i.error="URN can not be parsed",i;const w=i.path.match(t);if(w){const k=d.scheme||i.scheme||"urn";i.nid=w[1].toLowerCase(),i.nss=w[2];const q=`${k}:${d.nid||i.nid}`,C=v(q);i.path=void 0,C&&(i=C.parse(i,d))}else i.error=i.error||"URN can not be parsed.";return i}function y(i,d){if(i.nid===void 0)throw new Error("URN without nid cannot be serialized");const w=d.scheme||i.scheme||"urn",k=i.nid.toLowerCase(),q=`${w}:${d.nid||k}`,C=v(q);C&&(i=C.serialize(i,d));const V=i,L=i.nss;return V.path=`${k||d.nid}:${L}`,d.skipEscape=!0,V}function S(i,d){const w=i;return w.uuid=w.nss,w.nss=void 0,!d.tolerant&&(!w.uuid||!e(w.uuid))&&(w.error=w.error||"UUID is not valid."),w}function m(i){const d=i;return d.nss=(i.uuid||"").toLowerCase(),d}const g={scheme:"http",domainHost:!0,parse:r,serialize:f},$={scheme:"https",domainHost:g.domainHost,parse:r,serialize:f},E={scheme:"ws",domainHost:!0,parse:l,serialize:h},s={scheme:"wss",domainHost:E.domainHost,parse:E.parse,serialize:E.serialize},c={http:g,https:$,ws:E,wss:s,urn:{scheme:"urn",parse:b,serialize:y,skipNormalize:!0},"urn:uuid":{scheme:"urn:uuid",parse:S,serialize:m,skipNormalize:!0}};Object.setPrototypeOf(c,null);function v(i){return i&&(c[i]||c[i.toLowerCase()])||void 0}return Qt={wsIsSecure:_,SCHEMES:c,isValidSchemeName:a,getSchemeHandler:v},Qt}var Vr;function ia(){if(Vr)return Te.exports;Vr=1;const{normalizeIPv6:e,removeDotSegments:t,recomposeAuthority:u,normalizeComponentEncoding:a,isIPv4:_,nonSimpleDomain:r}=Jn(),{SCHEMES:f,getSchemeHandler:l}=aa();function h(s,o){return typeof s=="string"?s=m($(s,o),o):typeof s=="object"&&(s=$(m(s,o),o)),s}function b(s,o,n){const c=n?Object.assign({scheme:"null"},n):{scheme:"null"},v=y($(s,c),$(o,c),c,!0);return c.skipEscape=!0,m(v,c)}function y(s,o,n,c){const v={};return c||(s=$(m(s,n),n),o=$(m(o,n),n)),n=n||{},!n.tolerant&&o.scheme?(v.scheme=o.scheme,v.userinfo=o.userinfo,v.host=o.host,v.port=o.port,v.path=t(o.path||""),v.query=o.query):(o.userinfo!==void 0||o.host!==void 0||o.port!==void 0?(v.userinfo=o.userinfo,v.host=o.host,v.port=o.port,v.path=t(o.path||""),v.query=o.query):(o.path?(o.path[0]==="/"?v.path=t(o.path):((s.userinfo!==void 0||s.host!==void 0||s.port!==void 0)&&!s.path?v.path="/"+o.path:s.path?v.path=s.path.slice(0,s.path.lastIndexOf("/")+1)+o.path:v.path=o.path,v.path=t(v.path)),v.query=o.query):(v.path=s.path,o.query!==void 0?v.query=o.query:v.query=s.query),v.userinfo=s.userinfo,v.host=s.host,v.port=s.port),v.scheme=s.scheme),v.fragment=o.fragment,v}function S(s,o,n){return typeof s=="string"?(s=unescape(s),s=m(a($(s,n),!0),{...n,skipEscape:!0})):typeof s=="object"&&(s=m(a(s,!0),{...n,skipEscape:!0})),typeof o=="string"?(o=unescape(o),o=m(a($(o,n),!0),{...n,skipEscape:!0})):typeof o=="object"&&(o=m(a(o,!0),{...n,skipEscape:!0})),s.toLowerCase()===o.toLowerCase()}function m(s,o){const n={host:s.host,scheme:s.scheme,userinfo:s.userinfo,port:s.port,path:s.path,query:s.query,nid:s.nid,nss:s.nss,uuid:s.uuid,fragment:s.fragment,reference:s.reference,resourceName:s.resourceName,secure:s.secure,error:""},c=Object.assign({},o),v=[],i=l(c.scheme||n.scheme);i&&i.serialize&&i.serialize(n,c),n.path!==void 0&&(c.skipEscape?n.path=unescape(n.path):(n.path=escape(n.path),n.scheme!==void 0&&(n.path=n.path.split("%3A").join(":")))),c.reference!=="suffix"&&n.scheme&&v.push(n.scheme,":");const d=u(n);if(d!==void 0&&(c.reference!=="suffix"&&v.push("//"),v.push(d),n.path&&n.path[0]!=="/"&&v.push("/")),n.path!==void 0){let w=n.path;!c.absolutePath&&(!i||!i.absolutePath)&&(w=t(w)),d===void 0&&w[0]==="/"&&w[1]==="/"&&(w="/%2F"+w.slice(2)),v.push(w)}return n.query!==void 0&&v.push("?",n.query),n.fragment!==void 0&&v.push("#",n.fragment),v.join("")}const g=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function $(s,o){const n=Object.assign({},o),c={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0};let v=!1;n.reference==="suffix"&&(n.scheme?s=n.scheme+":"+s:s="//"+s);const i=s.match(g);if(i){if(c.scheme=i[1],c.userinfo=i[3],c.host=i[4],c.port=parseInt(i[5],10),c.path=i[6]||"",c.query=i[7],c.fragment=i[8],isNaN(c.port)&&(c.port=i[5]),c.host)if(_(c.host)===!1){const k=e(c.host);c.host=k.host.toLowerCase(),v=k.isIPV6}else v=!0;c.scheme===void 0&&c.userinfo===void 0&&c.host===void 0&&c.port===void 0&&c.query===void 0&&!c.path?c.reference="same-document":c.scheme===void 0?c.reference="relative":c.fragment===void 0?c.reference="absolute":c.reference="uri",n.reference&&n.reference!=="suffix"&&n.reference!==c.reference&&(c.error=c.error||"URI is not a "+n.reference+" reference.");const d=l(n.scheme||c.scheme);if(!n.unicodeSupport&&(!d||!d.unicodeSupport)&&c.host&&(n.domainHost||d&&d.domainHost)&&v===!1&&r(c.host))try{c.host=URL.domainToASCII(c.host.toLowerCase())}catch(w){c.error=c.error||"Host's domain name can not be converted to ASCII: "+w}(!d||d&&!d.skipNormalize)&&(s.indexOf("%")!==-1&&(c.scheme!==void 0&&(c.scheme=unescape(c.scheme)),c.host!==void 0&&(c.host=unescape(c.host))),c.path&&(c.path=escape(unescape(c.path))),c.fragment&&(c.fragment=encodeURI(decodeURIComponent(c.fragment)))),d&&d.parse&&d.parse(c,n)}else c.error=c.error||"URI can not be parsed.";return c}const E={SCHEMES:f,normalize:h,resolve:b,resolveComponent:y,equal:S,serialize:m,parse:$};return Te.exports=E,Te.exports.default=E,Te.exports.fastUri=E,Te.exports}var Ur;function oa(){if(Ur)return Ke;Ur=1,Object.defineProperty(Ke,"__esModule",{value:!0});const e=ia();return e.code='require("ajv/dist/runtime/uri").default',Ke.default=e,Ke}var zr;function ua(){return zr||(zr=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;var t=It();Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return t.KeywordCxt}});var u=J();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});const a=rr(),_=qt(),r=Kn(),f=nr(),l=J(),h=Tt(),b=kt(),y=Y(),S=sa,m=oa(),g=(M,R)=>new RegExp(M,R);g.code="new RegExp";const $=["removeAdditional","useDefaults","coerceTypes"],E=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),s={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},o={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},n=200;function c(M){var R,A,j,p,P,T,U,F,Q,B,N,O,I,D,z,G,te,de,ae,ie,re,Pe,fe,Ct,At;const Oe=M.strict,Mt=(R=M.code)===null||R===void 0?void 0:R.optimize,ar=Mt===!0||Mt===void 0?1:Mt||0,ir=(j=(A=M.code)===null||A===void 0?void 0:A.regExp)!==null&&j!==void 0?j:g,Qn=(p=M.uriResolver)!==null&&p!==void 0?p:m.default;return{strictSchema:(T=(P=M.strictSchema)!==null&&P!==void 0?P:Oe)!==null&&T!==void 0?T:!0,strictNumbers:(F=(U=M.strictNumbers)!==null&&U!==void 0?U:Oe)!==null&&F!==void 0?F:!0,strictTypes:(B=(Q=M.strictTypes)!==null&&Q!==void 0?Q:Oe)!==null&&B!==void 0?B:"log",strictTuples:(O=(N=M.strictTuples)!==null&&N!==void 0?N:Oe)!==null&&O!==void 0?O:"log",strictRequired:(D=(I=M.strictRequired)!==null&&I!==void 0?I:Oe)!==null&&D!==void 0?D:!1,code:M.code?{...M.code,optimize:ar,regExp:ir}:{optimize:ar,regExp:ir},loopRequired:(z=M.loopRequired)!==null&&z!==void 0?z:n,loopEnum:(G=M.loopEnum)!==null&&G!==void 0?G:n,meta:(te=M.meta)!==null&&te!==void 0?te:!0,messages:(de=M.messages)!==null&&de!==void 0?de:!0,inlineRefs:(ae=M.inlineRefs)!==null&&ae!==void 0?ae:!0,schemaId:(ie=M.schemaId)!==null&&ie!==void 0?ie:"$id",addUsedSchema:(re=M.addUsedSchema)!==null&&re!==void 0?re:!0,validateSchema:(Pe=M.validateSchema)!==null&&Pe!==void 0?Pe:!0,validateFormats:(fe=M.validateFormats)!==null&&fe!==void 0?fe:!0,unicodeRegExp:(Ct=M.unicodeRegExp)!==null&&Ct!==void 0?Ct:!0,int32range:(At=M.int32range)!==null&&At!==void 0?At:!0,uriResolver:Qn}}class v{constructor(R={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,R=this.opts={...R,...c(R)};const{es5:A,lines:j}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:E,es5:A,lines:j}),this.logger=L(R.logger);const p=R.validateFormats;R.validateFormats=!1,this.RULES=(0,r.getRules)(),i.call(this,s,R,"NOT SUPPORTED"),i.call(this,o,R,"DEPRECATED","warn"),this._metaOpts=C.call(this),R.formats&&k.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),R.keywords&&q.call(this,R.keywords),typeof R.meta=="object"&&this.addMetaSchema(R.meta),w.call(this),R.validateFormats=p}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:R,meta:A,schemaId:j}=this.opts;let p=S;j==="id"&&(p={...S},p.id=p.$id,delete p.$id),A&&R&&this.addMetaSchema(p,p[j],!1)}defaultMeta(){const{meta:R,schemaId:A}=this.opts;return this.opts.defaultMeta=typeof R=="object"?R[A]||R:void 0}validate(R,A){let j;if(typeof R=="string"){if(j=this.getSchema(R),!j)throw new Error(`no schema with key or ref "${R}"`)}else j=this.compile(R);const p=j(A);return"$async"in j||(this.errors=j.errors),p}compile(R,A){const j=this._addSchema(R,A);return j.validate||this._compileSchemaEnv(j)}compileAsync(R,A){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:j}=this.opts;return p.call(this,R,A);async function p(B,N){await P.call(this,B.$schema);const O=this._addSchema(B,N);return O.validate||T.call(this,O)}async function P(B){B&&!this.getSchema(B)&&await p.call(this,{$ref:B},!0)}async function T(B){try{return this._compileSchemaEnv(B)}catch(N){if(!(N instanceof _.default))throw N;return U.call(this,N),await F.call(this,N.missingSchema),T.call(this,B)}}function U({missingSchema:B,missingRef:N}){if(this.refs[B])throw new Error(`AnySchema ${B} is loaded but ${N} cannot be resolved`)}async function F(B){const N=await Q.call(this,B);this.refs[B]||await P.call(this,N.$schema),this.refs[B]||this.addSchema(N,B,A)}async function Q(B){const N=this._loading[B];if(N)return N;try{return await(this._loading[B]=j(B))}finally{delete this._loading[B]}}}addSchema(R,A,j,p=this.opts.validateSchema){if(Array.isArray(R)){for(const T of R)this.addSchema(T,void 0,j,p);return this}let P;if(typeof R=="object"){const{schemaId:T}=this.opts;if(P=R[T],P!==void 0&&typeof P!="string")throw new Error(`schema ${T} must be string`)}return A=(0,h.normalizeId)(A||P),this._checkUnique(A),this.schemas[A]=this._addSchema(R,j,A,p,!0),this}addMetaSchema(R,A,j=this.opts.validateSchema){return this.addSchema(R,A,!0,j),this}validateSchema(R,A){if(typeof R=="boolean")return!0;let j;if(j=R.$schema,j!==void 0&&typeof j!="string")throw new Error("$schema must be a string");if(j=j||this.opts.defaultMeta||this.defaultMeta(),!j)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const p=this.validate(j,R);if(!p&&A){const P="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(P);else throw new Error(P)}return p}getSchema(R){let A;for(;typeof(A=d.call(this,R))=="string";)R=A;if(A===void 0){const{schemaId:j}=this.opts,p=new f.SchemaEnv({schema:{},schemaId:j});if(A=f.resolveSchema.call(this,p,R),!A)return;this.refs[R]=A}return A.validate||this._compileSchemaEnv(A)}removeSchema(R){if(R instanceof RegExp)return this._removeAllSchemas(this.schemas,R),this._removeAllSchemas(this.refs,R),this;switch(typeof R){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const A=d.call(this,R);return typeof A=="object"&&this._cache.delete(A.schema),delete this.schemas[R],delete this.refs[R],this}case"object":{const A=R;this._cache.delete(A);let j=R[this.opts.schemaId];return j&&(j=(0,h.normalizeId)(j),delete this.schemas[j],delete this.refs[j]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(R){for(const A of R)this.addKeyword(A);return this}addKeyword(R,A){let j;if(typeof R=="string")j=R,typeof A=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),A.keyword=j);else if(typeof R=="object"&&A===void 0){if(A=R,j=A.keyword,Array.isArray(j)&&!j.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(W.call(this,j,A),!A)return(0,y.eachItem)(j,P=>x.call(this,P)),this;le.call(this,A);const p={...A,type:(0,b.getJSONTypes)(A.type),schemaType:(0,b.getJSONTypes)(A.schemaType)};return(0,y.eachItem)(j,p.type.length===0?P=>x.call(this,P,p):P=>p.type.forEach(T=>x.call(this,P,p,T))),this}getKeyword(R){const A=this.RULES.all[R];return typeof A=="object"?A.definition:!!A}removeKeyword(R){const{RULES:A}=this;delete A.keywords[R],delete A.all[R];for(const j of A.rules){const p=j.rules.findIndex(P=>P.keyword===R);p>=0&&j.rules.splice(p,1)}return this}addFormat(R,A){return typeof A=="string"&&(A=new RegExp(A)),this.formats[R]=A,this}errorsText(R=this.errors,{separator:A=", ",dataVar:j="data"}={}){return!R||R.length===0?"No errors":R.map(p=>`${j}${p.instancePath} ${p.message}`).reduce((p,P)=>p+A+P)}$dataMetaSchema(R,A){const j=this.RULES.all;R=JSON.parse(JSON.stringify(R));for(const p of A){const P=p.split("/").slice(1);let T=R;for(const U of P)T=T[U];for(const U in j){const F=j[U];if(typeof F!="object")continue;const{$data:Q}=F.definition,B=T[U];Q&&B&&(T[U]=ee(B))}}return R}_removeAllSchemas(R,A){for(const j in R){const p=R[j];(!A||A.test(j))&&(typeof p=="string"?delete R[j]:p&&!p.meta&&(this._cache.delete(p.schema),delete R[j]))}}_addSchema(R,A,j,p=this.opts.validateSchema,P=this.opts.addUsedSchema){let T;const{schemaId:U}=this.opts;if(typeof R=="object")T=R[U];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof R!="boolean")throw new Error("schema must be object or boolean")}let F=this._cache.get(R);if(F!==void 0)return F;j=(0,h.normalizeId)(T||j);const Q=h.getSchemaRefs.call(this,R,j);return F=new f.SchemaEnv({schema:R,schemaId:U,meta:A,baseId:j,localRefs:Q}),this._cache.set(F.schema,F),P&&!j.startsWith("#")&&(j&&this._checkUnique(j),this.refs[j]=F),p&&this.validateSchema(R,!0),F}_checkUnique(R){if(this.schemas[R]||this.refs[R])throw new Error(`schema with key or id "${R}" already exists`)}_compileSchemaEnv(R){if(R.meta?this._compileMetaSchema(R):f.compileSchema.call(this,R),!R.validate)throw new Error("ajv implementation error");return R.validate}_compileMetaSchema(R){const A=this.opts;this.opts=this._metaOpts;try{f.compileSchema.call(this,R)}finally{this.opts=A}}}v.ValidationError=a.default,v.MissingRefError=_.default,e.default=v;function i(M,R,A,j="error"){for(const p in M){const P=p;P in R&&this.logger[j](`${A}: option ${p}. ${M[P]}`)}}function d(M){return M=(0,h.normalizeId)(M),this.schemas[M]||this.refs[M]}function w(){const M=this.opts.schemas;if(M)if(Array.isArray(M))this.addSchema(M);else for(const R in M)this.addSchema(M[R],R)}function k(){for(const M in this.opts.formats){const R=this.opts.formats[M];R&&this.addFormat(M,R)}}function q(M){if(Array.isArray(M)){this.addVocabulary(M);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const R in M){const A=M[R];A.keyword||(A.keyword=R),this.addKeyword(A)}}function C(){const M={...this.opts};for(const R of $)delete M[R];return M}const V={log(){},warn(){},error(){}};function L(M){if(M===!1)return V;if(M===void 0)return console;if(M.log&&M.warn&&M.error)return M;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function W(M,R){const{RULES:A}=this;if((0,y.eachItem)(M,j=>{if(A.keywords[j])throw new Error(`Keyword ${j} is already defined`);if(!K.test(j))throw new Error(`Keyword ${j} has invalid name`)}),!!R&&R.$data&&!("code"in R||"validate"in R))throw new Error('$data keyword must have "code" or "validate" function')}function x(M,R,A){var j;const p=R==null?void 0:R.post;if(A&&p)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:P}=this;let T=p?P.post:P.rules.find(({type:F})=>F===A);if(T||(T={type:A,rules:[]},P.rules.push(T)),P.keywords[M]=!0,!R)return;const U={keyword:M,definition:{...R,type:(0,b.getJSONTypes)(R.type),schemaType:(0,b.getJSONTypes)(R.schemaType)}};R.before?ue.call(this,T,U,R.before):T.rules.push(U),P.all[M]=U,(j=R.implements)===null||j===void 0||j.forEach(F=>this.addKeyword(F))}function ue(M,R,A){const j=M.rules.findIndex(p=>p.keyword===A);j>=0?M.rules.splice(j,0,R):(M.rules.push(R),this.logger.warn(`rule ${A} is not defined`))}function le(M){let{metaSchema:R}=M;R!==void 0&&(M.$data&&this.opts.$data&&(R=ee(R)),M.validateSchema=this.compile(R,!0))}const X={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ee(M){return{anyOf:[M,X]}}}(Lt)),Lt}var He={},Ge={},Je={},Fr;function ca(){if(Fr)return Je;Fr=1,Object.defineProperty(Je,"__esModule",{value:!0});const e={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};return Je.default=e,Je}var $e={},Lr;function la(){if(Lr)return $e;Lr=1,Object.defineProperty($e,"__esModule",{value:!0}),$e.callRef=$e.getValidate=void 0;const e=qt(),t=pe(),u=J(),a=we(),_=nr(),r=Y(),f={keyword:"$ref",schemaType:"string",code(b){const{gen:y,schema:S,it:m}=b,{baseId:g,schemaEnv:$,validateName:E,opts:s,self:o}=m,{root:n}=$;if((S==="#"||S==="#/")&&g===n.baseId)return v();const c=_.resolveRef.call(o,n,g,S);if(c===void 0)throw new e.default(m.opts.uriResolver,g,S);if(c instanceof _.SchemaEnv)return i(c);return d(c);function v(){if($===n)return h(b,E,$,$.$async);const w=y.scopeValue("root",{ref:n});return h(b,(0,u._)`${w}.validate`,n,n.$async)}function i(w){const k=l(b,w);h(b,k,w,w.$async)}function d(w){const k=y.scopeValue("schema",s.code.source===!0?{ref:w,code:(0,u.stringify)(w)}:{ref:w}),q=y.name("valid"),C=b.subschema({schema:w,dataTypes:[],schemaPath:u.nil,topSchemaRef:k,errSchemaPath:S},q);b.mergeEvaluated(C),b.ok(q)}}};function l(b,y){const{gen:S}=b;return y.validate?S.scopeValue("validate",{ref:y.validate}):(0,u._)`${S.scopeValue("wrapper",{ref:y})}.validate`}$e.getValidate=l;function h(b,y,S,m){const{gen:g,it:$}=b,{allErrors:E,schemaEnv:s,opts:o}=$,n=o.passContext?a.default.this:u.nil;m?c():v();function c(){if(!s.$async)throw new Error("async schema referenced by sync schema");const w=g.let("valid");g.try(()=>{g.code((0,u._)`await ${(0,t.callValidateCode)(b,y,n)}`),d(y),E||g.assign(w,!0)},k=>{g.if((0,u._)`!(${k} instanceof ${$.ValidationError})`,()=>g.throw(k)),i(k),E||g.assign(w,!1)}),b.ok(w)}function v(){b.result((0,t.callValidateCode)(b,y,n),()=>d(y),()=>i(y))}function i(w){const k=(0,u._)`${w}.errors`;g.assign(a.default.vErrors,(0,u._)`${a.default.vErrors} === null ? ${k} : ${a.default.vErrors}.concat(${k})`),g.assign(a.default.errors,(0,u._)`${a.default.vErrors}.length`)}function d(w){var k;if(!$.opts.unevaluated)return;const q=(k=S==null?void 0:S.validate)===null||k===void 0?void 0:k.evaluated;if($.props!==!0)if(q&&!q.dynamicProps)q.props!==void 0&&($.props=r.mergeEvaluated.props(g,q.props,$.props));else{const C=g.var("props",(0,u._)`${w}.evaluated.props`);$.props=r.mergeEvaluated.props(g,C,$.props,u.Name)}if($.items!==!0)if(q&&!q.dynamicItems)q.items!==void 0&&($.items=r.mergeEvaluated.items(g,q.items,$.items));else{const C=g.var("items",(0,u._)`${w}.evaluated.items`);$.items=r.mergeEvaluated.items(g,C,$.items,u.Name)}}}return $e.callRef=h,$e.default=f,$e}var Kr;function fa(){if(Kr)return Ge;Kr=1,Object.defineProperty(Ge,"__esModule",{value:!0});const e=ca(),t=la(),u=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",e.default,t.default];return Ge.default=u,Ge}var We={},Be={},Hr;function da(){if(Hr)return Be;Hr=1,Object.defineProperty(Be,"__esModule",{value:!0});const e=J(),t=e.operators,u={maximum:{okStr:"<=",ok:t.LTE,fail:t.GT},minimum:{okStr:">=",ok:t.GTE,fail:t.LT},exclusiveMaximum:{okStr:"<",ok:t.LT,fail:t.GTE},exclusiveMinimum:{okStr:">",ok:t.GT,fail:t.LTE}},a={message:({keyword:r,schemaCode:f})=>(0,e.str)`must be ${u[r].okStr} ${f}`,params:({keyword:r,schemaCode:f})=>(0,e._)`{comparison: ${u[r].okStr}, limit: ${f}}`},_={keyword:Object.keys(u),type:"number",schemaType:"number",$data:!0,error:a,code(r){const{keyword:f,data:l,schemaCode:h}=r;r.fail$data((0,e._)`${l} ${u[f].fail} ${h} || isNaN(${l})`)}};return Be.default=_,Be}var Ye={},Gr;function ha(){if(Gr)return Ye;Gr=1,Object.defineProperty(Ye,"__esModule",{value:!0});const e=J(),u={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must be multiple of ${a}`,params:({schemaCode:a})=>(0,e._)`{multipleOf: ${a}}`},code(a){const{gen:_,data:r,schemaCode:f,it:l}=a,h=l.opts.multipleOfPrecision,b=_.let("res"),y=h?(0,e._)`Math.abs(Math.round(${b}) - ${b}) > 1e-${h}`:(0,e._)`${b} !== parseInt(${b})`;a.fail$data((0,e._)`(${f} === 0 || (${b} = ${r}/${f}, ${y}))`)}};return Ye.default=u,Ye}var Qe={},Xe={},Jr;function pa(){if(Jr)return Xe;Jr=1,Object.defineProperty(Xe,"__esModule",{value:!0});function e(t){const u=t.length;let a=0,_=0,r;for(;_<u;)a++,r=t.charCodeAt(_++),r>=55296&&r<=56319&&_<u&&(r=t.charCodeAt(_),(r&64512)===56320&&_++);return a}return Xe.default=e,e.code='require("ajv/dist/runtime/ucs2length").default',Xe}var Wr;function ma(){if(Wr)return Qe;Wr=1,Object.defineProperty(Qe,"__esModule",{value:!0});const e=J(),t=Y(),u=pa(),_={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:r,schemaCode:f}){const l=r==="maxLength"?"more":"fewer";return(0,e.str)`must NOT have ${l} than ${f} characters`},params:({schemaCode:r})=>(0,e._)`{limit: ${r}}`},code(r){const{keyword:f,data:l,schemaCode:h,it:b}=r,y=f==="maxLength"?e.operators.GT:e.operators.LT,S=b.opts.unicode===!1?(0,e._)`${l}.length`:(0,e._)`${(0,t.useFunc)(r.gen,u.default)}(${l})`;r.fail$data((0,e._)`${S} ${y} ${h}`)}};return Qe.default=_,Qe}var Ze={},Br;function ya(){if(Br)return Ze;Br=1,Object.defineProperty(Ze,"__esModule",{value:!0});const e=pe(),t=Y(),u=J(),_={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:r})=>(0,u.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,u._)`{pattern: ${r}}`},code(r){const{gen:f,data:l,$data:h,schema:b,schemaCode:y,it:S}=r,m=S.opts.unicodeRegExp?"u":"";if(h){const{regExp:g}=S.opts.code,$=g.code==="new RegExp"?(0,u._)`new RegExp`:(0,t.useFunc)(f,g),E=f.let("valid");f.try(()=>f.assign(E,(0,u._)`${$}(${y}, ${m}).test(${l})`),()=>f.assign(E,!1)),r.fail$data((0,u._)`!${E}`)}else{const g=(0,e.usePattern)(r,b);r.fail$data((0,u._)`!${g}.test(${l})`)}}};return Ze.default=_,Ze}var xe={},Yr;function va(){if(Yr)return xe;Yr=1,Object.defineProperty(xe,"__esModule",{value:!0});const e=J(),u={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:_}){const r=a==="maxProperties"?"more":"fewer";return(0,e.str)`must NOT have ${r} than ${_} properties`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:_,data:r,schemaCode:f}=a,l=_==="maxProperties"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`Object.keys(${r}).length ${l} ${f}`)}};return xe.default=u,xe}var et={},Qr;function _a(){if(Qr)return et;Qr=1,Object.defineProperty(et,"__esModule",{value:!0});const e=pe(),t=J(),u=Y(),_={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:r}})=>(0,t.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,t._)`{missingProperty: ${r}}`},code(r){const{gen:f,schema:l,schemaCode:h,data:b,$data:y,it:S}=r,{opts:m}=S;if(!y&&l.length===0)return;const g=l.length>=m.loopRequired;if(S.allErrors?$():E(),m.strictRequired){const n=r.parentSchema.properties,{definedProperties:c}=r.it;for(const v of l)if((n==null?void 0:n[v])===void 0&&!c.has(v)){const i=S.schemaEnv.baseId+S.errSchemaPath,d=`required property "${v}" is not defined at "${i}" (strictRequired)`;(0,u.checkStrictMode)(S,d,S.opts.strictRequired)}}function $(){if(g||y)r.block$data(t.nil,s);else for(const n of l)(0,e.checkReportMissingProp)(r,n)}function E(){const n=f.let("missing");if(g||y){const c=f.let("valid",!0);r.block$data(c,()=>o(n,c)),r.ok(c)}else f.if((0,e.checkMissingProp)(r,l,n)),(0,e.reportMissingProp)(r,n),f.else()}function s(){f.forOf("prop",h,n=>{r.setParams({missingProperty:n}),f.if((0,e.noPropertyInData)(f,b,n,m.ownProperties),()=>r.error())})}function o(n,c){r.setParams({missingProperty:n}),f.forOf(n,h,()=>{f.assign(c,(0,e.propertyInData)(f,b,n,m.ownProperties)),f.if((0,t.not)(c),()=>{r.error(),f.break()})},t.nil)}}};return et.default=_,et}var tt={},Xr;function ga(){if(Xr)return tt;Xr=1,Object.defineProperty(tt,"__esModule",{value:!0});const e=J(),u={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:a,schemaCode:_}){const r=a==="maxItems"?"more":"fewer";return(0,e.str)`must NOT have ${r} than ${_} items`},params:({schemaCode:a})=>(0,e._)`{limit: ${a}}`},code(a){const{keyword:_,data:r,schemaCode:f}=a,l=_==="maxItems"?e.operators.GT:e.operators.LT;a.fail$data((0,e._)`${r}.length ${l} ${f}`)}};return tt.default=u,tt}var rt={},nt={},Zr;function sr(){if(Zr)return nt;Zr=1,Object.defineProperty(nt,"__esModule",{value:!0});const e=Gn();return e.code='require("ajv/dist/runtime/equal").default',nt.default=e,nt}var xr;function $a(){if(xr)return rt;xr=1,Object.defineProperty(rt,"__esModule",{value:!0});const e=kt(),t=J(),u=Y(),a=sr(),r={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:f,j:l}})=>(0,t.str)`must NOT have duplicate items (items ## ${l} and ${f} are identical)`,params:({params:{i:f,j:l}})=>(0,t._)`{i: ${f}, j: ${l}}`},code(f){const{gen:l,data:h,$data:b,schema:y,parentSchema:S,schemaCode:m,it:g}=f;if(!b&&!y)return;const $=l.let("valid"),E=S.items?(0,e.getSchemaTypes)(S.items):[];f.block$data($,s,(0,t._)`${m} === false`),f.ok($);function s(){const v=l.let("i",(0,t._)`${h}.length`),i=l.let("j");f.setParams({i:v,j:i}),l.assign($,!0),l.if((0,t._)`${v} > 1`,()=>(o()?n:c)(v,i))}function o(){return E.length>0&&!E.some(v=>v==="object"||v==="array")}function n(v,i){const d=l.name("item"),w=(0,e.checkDataTypes)(E,d,g.opts.strictNumbers,e.DataType.Wrong),k=l.const("indices",(0,t._)`{}`);l.for((0,t._)`;${v}--;`,()=>{l.let(d,(0,t._)`${h}[${v}]`),l.if(w,(0,t._)`continue`),E.length>1&&l.if((0,t._)`typeof ${d} == "string"`,(0,t._)`${d} += "_"`),l.if((0,t._)`typeof ${k}[${d}] == "number"`,()=>{l.assign(i,(0,t._)`${k}[${d}]`),f.error(),l.assign($,!1).break()}).code((0,t._)`${k}[${d}] = ${v}`)})}function c(v,i){const d=(0,u.useFunc)(l,a.default),w=l.name("outer");l.label(w).for((0,t._)`;${v}--;`,()=>l.for((0,t._)`${i} = ${v}; ${i}--;`,()=>l.if((0,t._)`${d}(${h}[${v}], ${h}[${i}])`,()=>{f.error(),l.assign($,!1).break(w)})))}}};return rt.default=r,rt}var st={},en;function wa(){if(en)return st;en=1,Object.defineProperty(st,"__esModule",{value:!0});const e=J(),t=Y(),u=sr(),_={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:r})=>(0,e._)`{allowedValue: ${r}}`},code(r){const{gen:f,data:l,$data:h,schemaCode:b,schema:y}=r;h||y&&typeof y=="object"?r.fail$data((0,e._)`!${(0,t.useFunc)(f,u.default)}(${l}, ${b})`):r.fail((0,e._)`${y} !== ${l}`)}};return st.default=_,st}var at={},tn;function ba(){if(tn)return at;tn=1,Object.defineProperty(at,"__esModule",{value:!0});const e=J(),t=Y(),u=sr(),_={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,e._)`{allowedValues: ${r}}`},code(r){const{gen:f,data:l,$data:h,schema:b,schemaCode:y,it:S}=r;if(!h&&b.length===0)throw new Error("enum must have non-empty array");const m=b.length>=S.opts.loopEnum;let g;const $=()=>g??(g=(0,t.useFunc)(f,u.default));let E;if(m||h)E=f.let("valid"),r.block$data(E,s);else{if(!Array.isArray(b))throw new Error("ajv implementation error");const n=f.const("vSchema",y);E=(0,e.or)(...b.map((c,v)=>o(n,v)))}r.pass(E);function s(){f.assign(E,!1),f.forOf("v",y,n=>f.if((0,e._)`${$()}(${l}, ${n})`,()=>f.assign(E,!0).break()))}function o(n,c){const v=b[c];return typeof v=="object"&&v!==null?(0,e._)`${$()}(${l}, ${n}[${c}])`:(0,e._)`${l} === ${v}`}}};return at.default=_,at}var rn;function Ea(){if(rn)return We;rn=1,Object.defineProperty(We,"__esModule",{value:!0});const e=da(),t=ha(),u=ma(),a=ya(),_=va(),r=_a(),f=ga(),l=$a(),h=wa(),b=ba(),y=[e.default,t.default,u.default,a.default,_.default,r.default,f.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},h.default,b.default];return We.default=y,We}var it={},Ne={},nn;function Wn(){if(nn)return Ne;nn=1,Object.defineProperty(Ne,"__esModule",{value:!0}),Ne.validateAdditionalItems=void 0;const e=J(),t=Y(),a={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:r}})=>(0,e.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,e._)`{limit: ${r}}`},code(r){const{parentSchema:f,it:l}=r,{items:h}=f;if(!Array.isArray(h)){(0,t.checkStrictMode)(l,'"additionalItems" is ignored when "items" is not an array of schemas');return}_(r,h)}};function _(r,f){const{gen:l,schema:h,data:b,keyword:y,it:S}=r;S.items=!0;const m=l.const("len",(0,e._)`${b}.length`);if(h===!1)r.setParams({len:f.length}),r.pass((0,e._)`${m} <= ${f.length}`);else if(typeof h=="object"&&!(0,t.alwaysValidSchema)(S,h)){const $=l.var("valid",(0,e._)`${m} <= ${f.length}`);l.if((0,e.not)($),()=>g($)),r.ok($)}function g($){l.forRange("i",f.length,m,E=>{r.subschema({keyword:y,dataProp:E,dataPropType:t.Type.Num},$),S.allErrors||l.if((0,e.not)($),()=>l.break())})}}return Ne.validateAdditionalItems=_,Ne.default=a,Ne}var ot={},Re={},sn;function Bn(){if(sn)return Re;sn=1,Object.defineProperty(Re,"__esModule",{value:!0}),Re.validateTuple=void 0;const e=J(),t=Y(),u=pe(),a={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:f,it:l}=r;if(Array.isArray(f))return _(r,"additionalItems",f);l.items=!0,!(0,t.alwaysValidSchema)(l,f)&&r.ok((0,u.validateArray)(r))}};function _(r,f,l=r.schema){const{gen:h,parentSchema:b,data:y,keyword:S,it:m}=r;E(b),m.opts.unevaluated&&l.length&&m.items!==!0&&(m.items=t.mergeEvaluated.items(h,l.length,m.items));const g=h.name("valid"),$=h.const("len",(0,e._)`${y}.length`);l.forEach((s,o)=>{(0,t.alwaysValidSchema)(m,s)||(h.if((0,e._)`${$} > ${o}`,()=>r.subschema({keyword:S,schemaProp:o,dataProp:o},g)),r.ok(g))});function E(s){const{opts:o,errSchemaPath:n}=m,c=l.length,v=c===s.minItems&&(c===s.maxItems||s[f]===!1);if(o.strictTuples&&!v){const i=`"${S}" is ${c}-tuple, but minItems or maxItems/${f} are not specified or different at path "${n}"`;(0,t.checkStrictMode)(m,i,o.strictTuples)}}}return Re.validateTuple=_,Re.default=a,Re}var an;function Sa(){if(an)return ot;an=1,Object.defineProperty(ot,"__esModule",{value:!0});const e=Bn(),t={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:u=>(0,e.validateTuple)(u,"items")};return ot.default=t,ot}var ut={},on;function Pa(){if(on)return ut;on=1,Object.defineProperty(ut,"__esModule",{value:!0});const e=J(),t=Y(),u=pe(),a=Wn(),r={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:f}})=>(0,e.str)`must NOT have more than ${f} items`,params:({params:{len:f}})=>(0,e._)`{limit: ${f}}`},code(f){const{schema:l,parentSchema:h,it:b}=f,{prefixItems:y}=h;b.items=!0,!(0,t.alwaysValidSchema)(b,l)&&(y?(0,a.validateAdditionalItems)(f,y):f.ok((0,u.validateArray)(f)))}};return ut.default=r,ut}var ct={},un;function Na(){if(un)return ct;un=1,Object.defineProperty(ct,"__esModule",{value:!0});const e=J(),t=Y(),a={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:_,max:r}})=>r===void 0?(0,e.str)`must contain at least ${_} valid item(s)`:(0,e.str)`must contain at least ${_} and no more than ${r} valid item(s)`,params:({params:{min:_,max:r}})=>r===void 0?(0,e._)`{minContains: ${_}}`:(0,e._)`{minContains: ${_}, maxContains: ${r}}`},code(_){const{gen:r,schema:f,parentSchema:l,data:h,it:b}=_;let y,S;const{minContains:m,maxContains:g}=l;b.opts.next?(y=m===void 0?1:m,S=g):y=1;const $=r.const("len",(0,e._)`${h}.length`);if(_.setParams({min:y,max:S}),S===void 0&&y===0){(0,t.checkStrictMode)(b,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(S!==void 0&&y>S){(0,t.checkStrictMode)(b,'"minContains" > "maxContains" is always invalid'),_.fail();return}if((0,t.alwaysValidSchema)(b,f)){let c=(0,e._)`${$} >= ${y}`;S!==void 0&&(c=(0,e._)`${c} && ${$} <= ${S}`),_.pass(c);return}b.items=!0;const E=r.name("valid");S===void 0&&y===1?o(E,()=>r.if(E,()=>r.break())):y===0?(r.let(E,!0),S!==void 0&&r.if((0,e._)`${h}.length > 0`,s)):(r.let(E,!1),s()),_.result(E,()=>_.reset());function s(){const c=r.name("_valid"),v=r.let("count",0);o(c,()=>r.if(c,()=>n(v)))}function o(c,v){r.forRange("i",0,$,i=>{_.subschema({keyword:"contains",dataProp:i,dataPropType:t.Type.Num,compositeRule:!0},c),v()})}function n(c){r.code((0,e._)`${c}++`),S===void 0?r.if((0,e._)`${c} >= ${y}`,()=>r.assign(E,!0).break()):(r.if((0,e._)`${c} > ${S}`,()=>r.assign(E,!1).break()),y===1?r.assign(E,!0):r.if((0,e._)`${c} >= ${y}`,()=>r.assign(E,!0)))}}};return ct.default=a,ct}var Xt={},cn;function Ra(){return cn||(cn=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.validateSchemaDeps=e.validatePropertyDeps=e.error=void 0;const t=J(),u=Y(),a=pe();e.error={message:({params:{property:h,depsCount:b,deps:y}})=>{const S=b===1?"property":"properties";return(0,t.str)`must have ${S} ${y} when property ${h} is present`},params:({params:{property:h,depsCount:b,deps:y,missingProperty:S}})=>(0,t._)`{property: ${h},
|
|
7
|
+
missingProperty: ${S},
|
|
8
|
+
depsCount: ${b},
|
|
9
|
+
deps: ${y}}`};const _={keyword:"dependencies",type:"object",schemaType:"object",error:e.error,code(h){const[b,y]=r(h);f(h,b),l(h,y)}};function r({schema:h}){const b={},y={};for(const S in h){if(S==="__proto__")continue;const m=Array.isArray(h[S])?b:y;m[S]=h[S]}return[b,y]}function f(h,b=h.schema){const{gen:y,data:S,it:m}=h;if(Object.keys(b).length===0)return;const g=y.let("missing");for(const $ in b){const E=b[$];if(E.length===0)continue;const s=(0,a.propertyInData)(y,S,$,m.opts.ownProperties);h.setParams({property:$,depsCount:E.length,deps:E.join(", ")}),m.allErrors?y.if(s,()=>{for(const o of E)(0,a.checkReportMissingProp)(h,o)}):(y.if((0,t._)`${s} && (${(0,a.checkMissingProp)(h,E,g)})`),(0,a.reportMissingProp)(h,g),y.else())}}e.validatePropertyDeps=f;function l(h,b=h.schema){const{gen:y,data:S,keyword:m,it:g}=h,$=y.name("valid");for(const E in b)(0,u.alwaysValidSchema)(g,b[E])||(y.if((0,a.propertyInData)(y,S,E,g.opts.ownProperties),()=>{const s=h.subschema({keyword:m,schemaProp:E},$);h.mergeValidEvaluated(s,$)},()=>y.var($,!0)),h.ok($))}e.validateSchemaDeps=l,e.default=_}(Xt)),Xt}var lt={},ln;function Oa(){if(ln)return lt;ln=1,Object.defineProperty(lt,"__esModule",{value:!0});const e=J(),t=Y(),a={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:_})=>(0,e._)`{propertyName: ${_.propertyName}}`},code(_){const{gen:r,schema:f,data:l,it:h}=_;if((0,t.alwaysValidSchema)(h,f))return;const b=r.name("valid");r.forIn("key",l,y=>{_.setParams({propertyName:y}),_.subschema({keyword:"propertyNames",data:y,dataTypes:["string"],propertyName:y,compositeRule:!0},b),r.if((0,e.not)(b),()=>{_.error(!0),h.allErrors||r.break()})}),_.ok(b)}};return lt.default=a,lt}var ft={},fn;function Yn(){if(fn)return ft;fn=1,Object.defineProperty(ft,"__esModule",{value:!0});const e=pe(),t=J(),u=we(),a=Y(),r={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:f})=>(0,t._)`{additionalProperty: ${f.additionalProperty}}`},code(f){const{gen:l,schema:h,parentSchema:b,data:y,errsCount:S,it:m}=f;if(!S)throw new Error("ajv implementation error");const{allErrors:g,opts:$}=m;if(m.props=!0,$.removeAdditional!=="all"&&(0,a.alwaysValidSchema)(m,h))return;const E=(0,e.allSchemaProperties)(b.properties),s=(0,e.allSchemaProperties)(b.patternProperties);o(),f.ok((0,t._)`${S} === ${u.default.errors}`);function o(){l.forIn("key",y,d=>{!E.length&&!s.length?v(d):l.if(n(d),()=>v(d))})}function n(d){let w;if(E.length>8){const k=(0,a.schemaRefOrVal)(m,b.properties,"properties");w=(0,e.isOwnProperty)(l,k,d)}else E.length?w=(0,t.or)(...E.map(k=>(0,t._)`${d} === ${k}`)):w=t.nil;return s.length&&(w=(0,t.or)(w,...s.map(k=>(0,t._)`${(0,e.usePattern)(f,k)}.test(${d})`))),(0,t.not)(w)}function c(d){l.code((0,t._)`delete ${y}[${d}]`)}function v(d){if($.removeAdditional==="all"||$.removeAdditional&&h===!1){c(d);return}if(h===!1){f.setParams({additionalProperty:d}),f.error(),g||l.break();return}if(typeof h=="object"&&!(0,a.alwaysValidSchema)(m,h)){const w=l.name("valid");$.removeAdditional==="failing"?(i(d,w,!1),l.if((0,t.not)(w),()=>{f.reset(),c(d)})):(i(d,w),g||l.if((0,t.not)(w),()=>l.break()))}}function i(d,w,k){const q={keyword:"additionalProperties",dataProp:d,dataPropType:a.Type.Str};k===!1&&Object.assign(q,{compositeRule:!0,createErrors:!1,allErrors:!1}),f.subschema(q,w)}}};return ft.default=r,ft}var dt={},dn;function ka(){if(dn)return dt;dn=1,Object.defineProperty(dt,"__esModule",{value:!0});const e=It(),t=pe(),u=Y(),a=Yn(),_={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:f,schema:l,parentSchema:h,data:b,it:y}=r;y.opts.removeAdditional==="all"&&h.additionalProperties===void 0&&a.default.code(new e.KeywordCxt(y,a.default,"additionalProperties"));const S=(0,t.allSchemaProperties)(l);for(const s of S)y.definedProperties.add(s);y.opts.unevaluated&&S.length&&y.props!==!0&&(y.props=u.mergeEvaluated.props(f,(0,u.toHash)(S),y.props));const m=S.filter(s=>!(0,u.alwaysValidSchema)(y,l[s]));if(m.length===0)return;const g=f.name("valid");for(const s of m)$(s)?E(s):(f.if((0,t.propertyInData)(f,b,s,y.opts.ownProperties)),E(s),y.allErrors||f.else().var(g,!0),f.endIf()),r.it.definedProperties.add(s),r.ok(g);function $(s){return y.opts.useDefaults&&!y.compositeRule&&l[s].default!==void 0}function E(s){r.subschema({keyword:"properties",schemaProp:s,dataProp:s},g)}}};return dt.default=_,dt}var ht={},hn;function ja(){if(hn)return ht;hn=1,Object.defineProperty(ht,"__esModule",{value:!0});const e=pe(),t=J(),u=Y(),a=Y(),_={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:f,schema:l,data:h,parentSchema:b,it:y}=r,{opts:S}=y,m=(0,e.allSchemaProperties)(l),g=m.filter(v=>(0,u.alwaysValidSchema)(y,l[v]));if(m.length===0||g.length===m.length&&(!y.opts.unevaluated||y.props===!0))return;const $=S.strictSchema&&!S.allowMatchingProperties&&b.properties,E=f.name("valid");y.props!==!0&&!(y.props instanceof t.Name)&&(y.props=(0,a.evaluatedPropsToName)(f,y.props));const{props:s}=y;o();function o(){for(const v of m)$&&n(v),y.allErrors?c(v):(f.var(E,!0),c(v),f.if(E))}function n(v){for(const i in $)new RegExp(v).test(i)&&(0,u.checkStrictMode)(y,`property ${i} matches pattern ${v} (use allowMatchingProperties)`)}function c(v){f.forIn("key",h,i=>{f.if((0,t._)`${(0,e.usePattern)(r,v)}.test(${i})`,()=>{const d=g.includes(v);d||r.subschema({keyword:"patternProperties",schemaProp:v,dataProp:i,dataPropType:a.Type.Str},E),y.opts.unevaluated&&s!==!0?f.assign((0,t._)`${s}[${i}]`,!0):!d&&!y.allErrors&&f.if((0,t.not)(E),()=>f.break())})})}}};return ht.default=_,ht}var pt={},pn;function Ta(){if(pn)return pt;pn=1,Object.defineProperty(pt,"__esModule",{value:!0});const e=Y(),t={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(u){const{gen:a,schema:_,it:r}=u;if((0,e.alwaysValidSchema)(r,_)){u.fail();return}const f=a.name("valid");u.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},f),u.failResult(f,()=>u.reset(),()=>u.error())},error:{message:"must NOT be valid"}};return pt.default=t,pt}var mt={},mn;function Ia(){if(mn)return mt;mn=1,Object.defineProperty(mt,"__esModule",{value:!0});const t={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:pe().validateUnion,error:{message:"must match a schema in anyOf"}};return mt.default=t,mt}var yt={},yn;function qa(){if(yn)return yt;yn=1,Object.defineProperty(yt,"__esModule",{value:!0});const e=J(),t=Y(),a={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:_})=>(0,e._)`{passingSchemas: ${_.passing}}`},code(_){const{gen:r,schema:f,parentSchema:l,it:h}=_;if(!Array.isArray(f))throw new Error("ajv implementation error");if(h.opts.discriminator&&l.discriminator)return;const b=f,y=r.let("valid",!1),S=r.let("passing",null),m=r.name("_valid");_.setParams({passing:S}),r.block(g),_.result(y,()=>_.reset(),()=>_.error(!0));function g(){b.forEach(($,E)=>{let s;(0,t.alwaysValidSchema)(h,$)?r.var(m,!0):s=_.subschema({keyword:"oneOf",schemaProp:E,compositeRule:!0},m),E>0&&r.if((0,e._)`${m} && ${y}`).assign(y,!1).assign(S,(0,e._)`[${S}, ${E}]`).else(),r.if(m,()=>{r.assign(y,!0),r.assign(S,E),s&&_.mergeEvaluated(s,e.Name)})})}}};return yt.default=a,yt}var vt={},vn;function Ca(){if(vn)return vt;vn=1,Object.defineProperty(vt,"__esModule",{value:!0});const e=Y(),t={keyword:"allOf",schemaType:"array",code(u){const{gen:a,schema:_,it:r}=u;if(!Array.isArray(_))throw new Error("ajv implementation error");const f=a.name("valid");_.forEach((l,h)=>{if((0,e.alwaysValidSchema)(r,l))return;const b=u.subschema({keyword:"allOf",schemaProp:h},f);u.ok(f),u.mergeEvaluated(b)})}};return vt.default=t,vt}var _t={},_n;function Aa(){if(_n)return _t;_n=1,Object.defineProperty(_t,"__esModule",{value:!0});const e=J(),t=Y(),a={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:r})=>(0,e.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,e._)`{failingKeyword: ${r.ifClause}}`},code(r){const{gen:f,parentSchema:l,it:h}=r;l.then===void 0&&l.else===void 0&&(0,t.checkStrictMode)(h,'"if" without "then" and "else" is ignored');const b=_(h,"then"),y=_(h,"else");if(!b&&!y)return;const S=f.let("valid",!0),m=f.name("_valid");if(g(),r.reset(),b&&y){const E=f.let("ifClause");r.setParams({ifClause:E}),f.if(m,$("then",E),$("else",E))}else b?f.if(m,$("then")):f.if((0,e.not)(m),$("else"));r.pass(S,()=>r.error(!0));function g(){const E=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},m);r.mergeEvaluated(E)}function $(E,s){return()=>{const o=r.subschema({keyword:E},m);f.assign(S,m),r.mergeValidEvaluated(o,S),s?f.assign(s,(0,e._)`${E}`):r.setParams({ifClause:E})}}}};function _(r,f){const l=r.schema[f];return l!==void 0&&!(0,t.alwaysValidSchema)(r,l)}return _t.default=a,_t}var gt={},gn;function Ma(){if(gn)return gt;gn=1,Object.defineProperty(gt,"__esModule",{value:!0});const e=Y(),t={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:u,parentSchema:a,it:_}){a.if===void 0&&(0,e.checkStrictMode)(_,`"${u}" without "if" is ignored`)}};return gt.default=t,gt}var $n;function Da(){if($n)return it;$n=1,Object.defineProperty(it,"__esModule",{value:!0});const e=Wn(),t=Sa(),u=Bn(),a=Pa(),_=Na(),r=Ra(),f=Oa(),l=Yn(),h=ka(),b=ja(),y=Ta(),S=Ia(),m=qa(),g=Ca(),$=Aa(),E=Ma();function s(o=!1){const n=[y.default,S.default,m.default,g.default,$.default,E.default,f.default,l.default,r.default,h.default,b.default];return o?n.push(t.default,a.default):n.push(e.default,u.default),n.push(_.default),n}return it.default=s,it}var $t={},wt={},wn;function Va(){if(wn)return wt;wn=1,Object.defineProperty(wt,"__esModule",{value:!0});const e=J(),u={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:a})=>(0,e.str)`must match format "${a}"`,params:({schemaCode:a})=>(0,e._)`{format: ${a}}`},code(a,_){const{gen:r,data:f,$data:l,schema:h,schemaCode:b,it:y}=a,{opts:S,errSchemaPath:m,schemaEnv:g,self:$}=y;if(!S.validateFormats)return;l?E():s();function E(){const o=r.scopeValue("formats",{ref:$.formats,code:S.code.formats}),n=r.const("fDef",(0,e._)`${o}[${b}]`),c=r.let("fType"),v=r.let("format");r.if((0,e._)`typeof ${n} == "object" && !(${n} instanceof RegExp)`,()=>r.assign(c,(0,e._)`${n}.type || "string"`).assign(v,(0,e._)`${n}.validate`),()=>r.assign(c,(0,e._)`"string"`).assign(v,n)),a.fail$data((0,e.or)(i(),d()));function i(){return S.strictSchema===!1?e.nil:(0,e._)`${b} && !${v}`}function d(){const w=g.$async?(0,e._)`(${n}.async ? await ${v}(${f}) : ${v}(${f}))`:(0,e._)`${v}(${f})`,k=(0,e._)`(typeof ${v} == "function" ? ${w} : ${v}.test(${f}))`;return(0,e._)`${v} && ${v} !== true && ${c} === ${_} && !${k}`}}function s(){const o=$.formats[h];if(!o){i();return}if(o===!0)return;const[n,c,v]=d(o);n===_&&a.pass(w());function i(){if(S.strictSchema===!1){$.logger.warn(k());return}throw new Error(k());function k(){return`unknown format "${h}" ignored in schema at path "${m}"`}}function d(k){const q=k instanceof RegExp?(0,e.regexpCode)(k):S.code.formats?(0,e._)`${S.code.formats}${(0,e.getProperty)(h)}`:void 0,C=r.scopeValue("formats",{key:h,ref:k,code:q});return typeof k=="object"&&!(k instanceof RegExp)?[k.type||"string",k.validate,(0,e._)`${C}.validate`]:["string",k,C]}function w(){if(typeof o=="object"&&!(o instanceof RegExp)&&o.async){if(!g.$async)throw new Error("async format in sync schema");return(0,e._)`await ${v}(${f})`}return typeof c=="function"?(0,e._)`${v}(${f})`:(0,e._)`${v}.test(${f})`}}}};return wt.default=u,wt}var bn;function Ua(){if(bn)return $t;bn=1,Object.defineProperty($t,"__esModule",{value:!0});const t=[Va().default];return $t.default=t,$t}var Se={},En;function za(){return En||(En=1,Object.defineProperty(Se,"__esModule",{value:!0}),Se.contentVocabulary=Se.metadataVocabulary=void 0,Se.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],Se.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]),Se}var Sn;function Fa(){if(Sn)return He;Sn=1,Object.defineProperty(He,"__esModule",{value:!0});const e=fa(),t=Ea(),u=Da(),a=Ua(),_=za(),r=[e.default,t.default,(0,u.default)(),a.default,_.metadataVocabulary,_.contentVocabulary];return He.default=r,He}var bt={},Ie={},Pn;function La(){if(Pn)return Ie;Pn=1,Object.defineProperty(Ie,"__esModule",{value:!0}),Ie.DiscrError=void 0;var e;return function(t){t.Tag="tag",t.Mapping="mapping"}(e||(Ie.DiscrError=e={})),Ie}var Nn;function Ka(){if(Nn)return bt;Nn=1,Object.defineProperty(bt,"__esModule",{value:!0});const e=J(),t=La(),u=nr(),a=qt(),_=Y(),f={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:l,tagName:h}})=>l===t.DiscrError.Tag?`tag "${h}" must be string`:`value of tag "${h}" must be in oneOf`,params:({params:{discrError:l,tag:h,tagName:b}})=>(0,e._)`{error: ${l}, tag: ${b}, tagValue: ${h}}`},code(l){const{gen:h,data:b,schema:y,parentSchema:S,it:m}=l,{oneOf:g}=S;if(!m.opts.discriminator)throw new Error("discriminator: requires discriminator option");const $=y.propertyName;if(typeof $!="string")throw new Error("discriminator: requires propertyName");if(y.mapping)throw new Error("discriminator: mapping is not supported");if(!g)throw new Error("discriminator: requires oneOf keyword");const E=h.let("valid",!1),s=h.const("tag",(0,e._)`${b}${(0,e.getProperty)($)}`);h.if((0,e._)`typeof ${s} == "string"`,()=>o(),()=>l.error(!1,{discrError:t.DiscrError.Tag,tag:s,tagName:$})),l.ok(E);function o(){const v=c();h.if(!1);for(const i in v)h.elseIf((0,e._)`${s} === ${i}`),h.assign(E,n(v[i]));h.else(),l.error(!1,{discrError:t.DiscrError.Mapping,tag:s,tagName:$}),h.endIf()}function n(v){const i=h.name("valid"),d=l.subschema({keyword:"oneOf",schemaProp:v},i);return l.mergeEvaluated(d,e.Name),i}function c(){var v;const i={},d=k(S);let w=!0;for(let V=0;V<g.length;V++){let L=g[V];if(L!=null&&L.$ref&&!(0,_.schemaHasRulesButRef)(L,m.self.RULES)){const W=L.$ref;if(L=u.resolveRef.call(m.self,m.schemaEnv.root,m.baseId,W),L instanceof u.SchemaEnv&&(L=L.schema),L===void 0)throw new a.default(m.opts.uriResolver,m.baseId,W)}const K=(v=L==null?void 0:L.properties)===null||v===void 0?void 0:v[$];if(typeof K!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${$}"`);w=w&&(d||k(L)),q(K,V)}if(!w)throw new Error(`discriminator: "${$}" must be required`);return i;function k({required:V}){return Array.isArray(V)&&V.includes($)}function q(V,L){if(V.const)C(V.const,L);else if(V.enum)for(const K of V.enum)C(K,L);else throw new Error(`discriminator: "properties/${$}" must have "const" or "enum"`)}function C(V,L){if(typeof V!="string"||V in i)throw new Error(`discriminator: "${$}" values must be unique strings`);i[V]=L}}}};return bt.default=f,bt}const Ha="http://json-schema.org/draft-07/schema#",Ga="http://json-schema.org/draft-07/schema#",Ja="Core schema meta-schema",Wa={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},Ba=["object","boolean"],Ya={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},Qa={$schema:Ha,$id:Ga,title:Ja,definitions:Wa,type:Ba,properties:Ya,default:!0};var Rn;function Xa(){return Rn||(Rn=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=t.Ajv=void 0;const u=ua(),a=Fa(),_=Ka(),r=Qa,f=["/properties"],l="http://json-schema.org/draft-07/schema";class h extends u.default{_addVocabularies(){super._addVocabularies(),a.default.forEach($=>this.addVocabulary($)),this.opts.discriminator&&this.addKeyword(_.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const $=this.opts.$data?this.$dataMetaSchema(r,f):r;this.addMetaSchema($,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}t.Ajv=h,e.exports=t=h,e.exports.Ajv=h,Object.defineProperty(t,"__esModule",{value:!0}),t.default=h;var b=It();Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return b.KeywordCxt}});var y=J();Object.defineProperty(t,"_",{enumerable:!0,get:function(){return y._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return y.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return y.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return y.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return y.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return y.CodeGen}});var S=rr();Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return S.default}});var m=qt();Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return m.default}})}(Ue,Ue.exports)),Ue.exports}var Za=Xa();const xa=Js(Za),On={type:"integer",minimum:1,maximum:65535},ei={$id:"https://sockethub.org/schemas/v/examples-config.json",description:"Sockethub examples runtime configuration",type:"object",required:["sockethub","public"],additionalProperties:!1,properties:{sockethub:{type:"object",required:["port","host","path"],additionalProperties:!1,properties:{port:On,host:{type:"string"},path:{type:"string"}}},public:{type:"object",required:["protocol","host","port","path"],additionalProperties:!1,properties:{protocol:{type:"string"},host:{type:"string"},port:On,path:{type:"string"}}},platforms:{type:"array",items:{type:"string"}},httpActions:{type:"object",required:["enabled","path"],additionalProperties:!1,properties:{enabled:{type:"boolean"},path:{type:"string"}}}}},ti=new xa({strictTypes:!1,allErrors:!0});let kn;function ri(e){return kn??(kn=ti.compile(ei)),kn(e)}const fi={sockethub:{port:10550,host:"localhost",path:"/sockethub"},public:{protocol:"http",host:"localhost",port:10550,path:"/"}};let Et;function di(){return Et||(Et=fetch("/examples-config.json").then(async e=>{if(!e.ok)throw new Error(`failed to load runtime config: ${e.status}`);const t=await e.json();if(!ri(t))throw new Error("invalid examples config");return t}).catch(e=>{throw Et=void 0,console.error("failed to load examples config",e),e})),Et}function hi(e){return(e.split("/").pop()??e).replace(/^platform-/,"")}export{xa as A,Ve as C,Fs as a,ci as b,ui as c,Vs as d,oi as e,li as f,Js as g,fi as h,ii as i,di as l,hi as p,Ks as r,Rt as s};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{y as o,h as a,R as d}from"./lzIpFC7n.js";function p(s,u,e){if(s==null)return u(void 0),o;const t=a(()=>s.subscribe(u,e));return t.unsubscribe?()=>t.unsubscribe():t}const i=[];function h(s,u=o){let e=null;const t=new Set;function c(r){if(d(s,r)&&(s=r,e)){const b=!i.length;for(const n of t)n[1](),i.push(n,s);if(b){for(let n=0;n<i.length;n+=2)i[n][0](i[n+1]);i.length=0}}}function f(r){c(r(s))}function l(r,b=o){const n=[r,b];return t.add(n),t.size===1&&(e=u(c,f)||o),r(s),()=>{t.delete(n),t.size===0&&e&&(e(),e=null)}}return{set:c,update:f,subscribe:l}}function _(s){let u;return p(s,e=>u=e)(),u}export{_ as g,p as s,h as w};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var s;const e=((s=globalThis.__sveltekit_6njcpl)==null?void 0:s.base)??"";var a;const t=((a=globalThis.__sveltekit_6njcpl)==null?void 0:a.assets)??e??"";export{t as a,e as b};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as l,a as p,s as h}from"./
|
|
1
|
+
import{f as l,a as p,s as h}from"./EYcEpRKU.js";import{c as t,y as c,r as a,s as g,t as b}from"./lzIpFC7n.js";import{c as x}from"./C1MOh-XY.js";var y=l('<div class="max-w-6xl mx-auto px-4 sm:px-6 lg:px-8 py-8"><!></div>');function u(e,o){var r=y(),s=t(r);x(s,()=>o.children??c),a(r),p(e,r)}var _=l('<div class="bg-white shadow-sm border border-gray-200 rounded-xl overflow-hidden"><div class="bg-gradient-to-r from-blue-50 to-indigo-50 px-8 py-6 border-b border-gray-200"><h1 class="text-3xl font-bold text-gray-900 tracking-tight"> </h1></div> <div class="px-8 py-6"><!></div></div>');function A(e,o){u(e,{children:(r,s)=>{var i=_(),d=t(i),v=t(d),m=t(v,!0);a(v),a(d);var n=g(d,2),f=t(n);x(f,()=>o.children??c),a(n),a(i),b(()=>h(m,o.title)),p(r,i)}})}export{A as I};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var S=Object.defineProperty;var y=a=>{throw TypeError(a)};var x=(a,e,t)=>e in a?S(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t;var T=(a,e,t)=>x(a,typeof e!="symbol"?e+"":e,t),A=(a,e,t)=>e.has(a)||y("Cannot "+t);var s=(a,e,t)=>(A(a,e,"read from private field"),t?t.call(a):e.get(a)),u=(a,e,t)=>e.has(a)?y("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(a):e.set(a,t),w=(a,e,t,i)=>(A(a,e,"write to private field"),i?i.call(a,t):e.set(a,t),t);import{T as E,U as D,V as k,W as N,X as F,Y as M,Z as g,_ as B,$ as C,a0 as Y,a1 as H,a2 as I,a3 as L,a4 as O,a5 as P,a6 as U,a7 as V,a8 as R}from"./lzIpFC7n.js";var d,l,c,_,v,m,b;class W{constructor(e,t=!0){T(this,"anchor");u(this,d,new Map);u(this,l,new Map);u(this,c,new Map);u(this,_,new Set);u(this,v,!0);u(this,m,()=>{var e=E;if(s(this,d).has(e)){var t=s(this,d).get(e),i=s(this,l).get(t);if(i)D(i),s(this,_).delete(t);else{var n=s(this,c).get(t);n&&(s(this,l).set(t,n.effect),s(this,c).delete(t),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),i=n.effect)}for(const[f,r]of s(this,d)){if(s(this,d).delete(f),f===e)break;const h=s(this,c).get(r);h&&(k(h.effect),s(this,c).delete(r))}for(const[f,r]of s(this,l)){if(f===t||s(this,_).has(f))continue;const h=()=>{if(Array.from(s(this,d).values()).includes(f)){var p=document.createDocumentFragment();C(r,p),p.append(F()),s(this,c).set(f,{effect:r,fragment:p})}else k(r);s(this,_).delete(f),s(this,l).delete(f)};s(this,v)||!i?(s(this,_).add(f),N(r,h,!1)):h()}}});u(this,b,e=>{s(this,d).delete(e);const t=Array.from(s(this,d).values());for(const[i,n]of s(this,c))t.includes(i)||(k(n.effect),s(this,c).delete(i))});this.anchor=e,w(this,v,t)}ensure(e,t){var i=E,n=Y();if(t&&!s(this,l).has(e)&&!s(this,c).has(e))if(n){var f=document.createDocumentFragment(),r=F();f.append(r),s(this,c).set(e,{effect:M(()=>t(r)),fragment:f})}else s(this,l).set(e,M(()=>t(this.anchor)));if(s(this,d).set(i,e),n){for(const[h,o]of s(this,l))h===e?i.skipped_effects.delete(o):i.skipped_effects.add(o);for(const[h,o]of s(this,c))h===e?i.skipped_effects.delete(o.effect):i.skipped_effects.add(o.effect);i.oncommit(s(this,m)),i.ondiscard(s(this,b))}else g&&(this.anchor=B),s(this,m).call(this)}}d=new WeakMap,l=new WeakMap,c=new WeakMap,_=new WeakMap,v=new WeakMap,m=new WeakMap,b=new WeakMap;function $(a,e,t=!1){g&&I();var i=new W(a),n=t?L:0;function f(r,h){if(g){const p=O(a)===P;if(r===p){var o=U();V(o),i.anchor=o,R(!1),i.ensure(r,h),R(!0);return}}i.ensure(r,h)}H(()=>{var r=!1;e((h,o=!0)=>{r=!0,f(o,h)}),r||f(!1,null)},n)}export{W as B,$ as i};
|