view-contracts 0.4.1 → 0.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dsl.js +2 -0
- package/dist/dsl.js.map +7 -0
- package/dist/preview.mjs +23 -23
- package/dist/preview.mjs.map +2 -2
- package/dist/view-contracts.bundle.mjs +16 -18
- package/dist/view-contracts.bundle.mjs.map +2 -2
- package/package.json +5 -4
- package/src/dsl/index.ts +16 -0
- package/src/dsl/screen.tsx +54 -0
- package/src/dsl/types.ts +68 -0
|
@@ -34,7 +34,7 @@ Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,o=>{let
|
|
|
34
34
|
`;for(let b=1;b<=a.linesAfter&&!(d+b>=p.length);b++){let M=n(s.buffer,l[d+b],p[d+b],s.position-(l[d]-l[d+b]),y);m+=r.repeat(" ",a.indent)+i((s.line+b+1).toString(),g)+" | "+M.str+`
|
|
35
35
|
`}return m.replace(/\n$/,"")}e.exports=o})),Le=de(((t,e)=>{var r=Tn(),n=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];function o(a){let c={};return a!==null&&Object.keys(a).forEach(function(l){a[l].forEach(function(p){c[String(p)]=l})}),c}function s(a,c){if(c=c||{},Object.keys(c).forEach(function(l){if(n.indexOf(l)===-1)throw new r('Unknown option "'+l+'" is met in definition of "'+a+'" YAML type.')}),this.options=c,this.tag=a,this.kind=c.kind||null,this.resolve=c.resolve||function(){return!0},this.construct=c.construct||function(l){return l},this.instanceOf=c.instanceOf||null,this.predicate=c.predicate||null,this.represent=c.represent||null,this.representName=c.representName||null,this.defaultStyle=c.defaultStyle||null,this.multi=c.multi||!1,this.styleAliases=o(c.styleAliases||null),i.indexOf(this.kind)===-1)throw new r('Unknown kind "'+this.kind+'" is specified for "'+a+'" YAML type.')}e.exports=s})),Gf=de(((t,e)=>{var r=Tn(),n=Le();function i(a,c){let l=[];return a[c].forEach(function(p){let f=l.length;l.forEach(function(d,m){d.tag===p.tag&&d.kind===p.kind&&d.multi===p.multi&&(f=m)}),l[f]=p}),l}function o(){let a={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function c(l){l.multi?(a.multi[l.kind].push(l),a.multi.fallback.push(l)):a[l.kind][l.tag]=a.fallback[l.tag]=l}for(let l=0,p=arguments.length;l<p;l+=1)arguments[l].forEach(c);return a}function s(a){return this.extend(a)}s.prototype.extend=function(c){let l=[],p=[];if(c instanceof n)p.push(c);else if(Array.isArray(c))p=p.concat(c);else if(c&&(Array.isArray(c.implicit)||Array.isArray(c.explicit)))c.implicit&&(l=l.concat(c.implicit)),c.explicit&&(p=p.concat(c.explicit));else throw new r("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");l.forEach(function(d){if(!(d instanceof n))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(d.loadKind&&d.loadKind!=="scalar")throw new r("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(d.multi)throw new r("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),p.forEach(function(d){if(!(d instanceof n))throw new r("Specified list of YAML types (or a single Type object) contains a non-Type object.")});let f=Object.create(s.prototype);return f.implicit=(this.implicit||[]).concat(l),f.explicit=(this.explicit||[]).concat(p),f.compiledImplicit=i(f,"implicit"),f.compiledExplicit=i(f,"explicit"),f.compiledTypeMap=o(f.compiledImplicit,f.compiledExplicit),f},e.exports=s})),zf=de(((t,e)=>{e.exports=new(Le())("tag:yaml.org,2002:str",{kind:"scalar",construct:function(r){return r!==null?r:""}})})),Jf=de(((t,e)=>{e.exports=new(Le())("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(r){return r!==null?r:[]}})})),Kf=de(((t,e)=>{e.exports=new(Le())("tag:yaml.org,2002:map",{kind:"mapping",construct:function(r){return r!==null?r:{}}})})),Yf=de(((t,e)=>{e.exports=new(Gf())({explicit:[zf(),Jf(),Kf()]})})),Xf=de(((t,e)=>{var r=Le();function n(s){if(s===null)return!0;let a=s.length;return a===1&&s==="~"||a===4&&(s==="null"||s==="Null"||s==="NULL")}function i(){return null}function o(s){return s===null}e.exports=new r("tag:yaml.org,2002:null",{kind:"scalar",resolve:n,construct:i,predicate:o,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"})})),Qf=de(((t,e)=>{var r=Le();function n(s){if(s===null)return!1;let a=s.length;return a===4&&(s==="true"||s==="True"||s==="TRUE")||a===5&&(s==="false"||s==="False"||s==="FALSE")}function i(s){return s==="true"||s==="True"||s==="TRUE"}function o(s){return Object.prototype.toString.call(s)==="[object Boolean]"}e.exports=new r("tag:yaml.org,2002:bool",{kind:"scalar",resolve:n,construct:i,predicate:o,represent:{lowercase:function(s){return s?"true":"false"},uppercase:function(s){return s?"TRUE":"FALSE"},camelcase:function(s){return s?"True":"False"}},defaultStyle:"lowercase"})})),Zf=de(((t,e)=>{var r=An(),n=Le();function i(f){return f>=48&&f<=57||f>=65&&f<=70||f>=97&&f<=102}function o(f){return f>=48&&f<=55}function s(f){return f>=48&&f<=57}function a(f){if(f===null)return!1;let d=f.length,m=0,g=!1;if(!d)return!1;let y=f[m];if((y==="-"||y==="+")&&(y=f[++m]),y==="0"){if(m+1===d)return!0;if(y=f[++m],y==="b"){for(m++;m<d;m++){if(y=f[m],y!=="0"&&y!=="1")return!1;g=!0}return g&&Number.isFinite(c(f))}if(y==="x"){for(m++;m<d;m++){if(!i(f.charCodeAt(m)))return!1;g=!0}return g&&Number.isFinite(c(f))}if(y==="o"){for(m++;m<d;m++){if(!o(f.charCodeAt(m)))return!1;g=!0}return g&&Number.isFinite(c(f))}}for(;m<d;m++){if(!s(f.charCodeAt(m)))return!1;g=!0}return g?Number.isFinite(c(f)):!1}function c(f){let d=f,m=1,g=d[0];if((g==="-"||g==="+")&&(g==="-"&&(m=-1),d=d.slice(1),g=d[0]),d==="0")return 0;if(g==="0"){if(d[1]==="b")return m*parseInt(d.slice(2),2);if(d[1]==="x")return m*parseInt(d.slice(2),16);if(d[1]==="o")return m*parseInt(d.slice(2),8)}return m*parseInt(d,10)}function l(f){return c(f)}function p(f){return Object.prototype.toString.call(f)==="[object Number]"&&f%1===0&&!r.isNegativeZero(f)}e.exports=new n("tag:yaml.org,2002:int",{kind:"scalar",resolve:a,construct:l,predicate:p,represent:{binary:function(f){return f>=0?"0b"+f.toString(2):"-0b"+f.toString(2).slice(1)},octal:function(f){return f>=0?"0o"+f.toString(8):"-0o"+f.toString(8).slice(1)},decimal:function(f){return f.toString(10)},hexadecimal:function(f){return f>=0?"0x"+f.toString(16).toUpperCase():"-0x"+f.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})})),ep=de(((t,e)=>{var r=An(),n=Le(),i=new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),o=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function s(f){return f===null||!i.test(f)?!1:Number.isFinite(parseFloat(f,10))?!0:o.test(f)}function a(f){let d=f.toLowerCase(),m=d[0]==="-"?-1:1;return"+-".indexOf(d[0])>=0&&(d=d.slice(1)),d===".inf"?m===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:d===".nan"?NaN:m*parseFloat(d,10)}var c=/^[-+]?[0-9]+e/;function l(f,d){if(isNaN(f))switch(d){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===f)switch(d){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===f)switch(d){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(r.isNegativeZero(f))return"-0.0";let m=f.toString(10);return c.test(m)?m.replace("e",".e"):m}function p(f){return Object.prototype.toString.call(f)==="[object Number]"&&(f%1!==0||r.isNegativeZero(f))}e.exports=new n("tag:yaml.org,2002:float",{kind:"scalar",resolve:s,construct:a,predicate:p,represent:l,defaultStyle:"lowercase"})})),tp=de(((t,e)=>{e.exports=Yf().extend({implicit:[Xf(),Qf(),Zf(),ep()]})})),rp=de(((t,e)=>{e.exports=tp()})),np=de(((t,e)=>{var r=Le(),n=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),i=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function o(c){return c===null?!1:n.exec(c)!==null||i.exec(c)!==null}function s(c){let l=0,p=null,f=n.exec(c);if(f===null&&(f=i.exec(c)),f===null)throw new Error("Date resolve error");let d=+f[1],m=+f[2]-1,g=+f[3];if(!f[4])return new Date(Date.UTC(d,m,g));let y=+f[4],_=+f[5],b=+f[6];if(f[7]){for(l=f[7].slice(0,3);l.length<3;)l+="0";l=+l}if(f[9]){let q=+f[10],A=+(f[11]||0);p=(q*60+A)*6e4,f[9]==="-"&&(p=-p)}let M=new Date(Date.UTC(d,m,g,y,_,b,l));return p&&M.setTime(M.getTime()-p),M}function a(c){return c.toISOString()}e.exports=new r("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:o,construct:s,instanceOf:Date,represent:a})})),ip=de(((t,e)=>{var r=Le();function n(i){return i==="<<"||i===null}e.exports=new r("tag:yaml.org,2002:merge",{kind:"scalar",resolve:n})})),op=de(((t,e)=>{var r=Le(),n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
36
36
|
\r`;function i(c){if(c===null)return!1;let l=0,p=c.length,f=n;for(let d=0;d<p;d++){let m=f.indexOf(c.charAt(d));if(!(m>64)){if(m<0)return!1;l+=6}}return l%8===0}function o(c){let l=c.replace(/[\r\n=]/g,""),p=l.length,f=n,d=0,m=[];for(let y=0;y<p;y++)y%4===0&&y&&(m.push(d>>16&255),m.push(d>>8&255),m.push(d&255)),d=d<<6|f.indexOf(l.charAt(y));let g=p%4*6;return g===0?(m.push(d>>16&255),m.push(d>>8&255),m.push(d&255)):g===18?(m.push(d>>10&255),m.push(d>>2&255)):g===12&&m.push(d>>4&255),new Uint8Array(m)}function s(c){let l="",p=0,f=c.length,d=n;for(let g=0;g<f;g++)g%3===0&&g&&(l+=d[p>>18&63],l+=d[p>>12&63],l+=d[p>>6&63],l+=d[p&63]),p=(p<<8)+c[g];let m=f%3;return m===0?(l+=d[p>>18&63],l+=d[p>>12&63],l+=d[p>>6&63],l+=d[p&63]):m===2?(l+=d[p>>10&63],l+=d[p>>4&63],l+=d[p<<2&63],l+=d[64]):m===1&&(l+=d[p>>2&63],l+=d[p<<4&63],l+=d[64],l+=d[64]),l}function a(c){return Object.prototype.toString.call(c)==="[object Uint8Array]"}e.exports=new r("tag:yaml.org,2002:binary",{kind:"scalar",resolve:i,construct:o,predicate:a,represent:s})})),sp=de(((t,e)=>{var r=Le(),n=Object.prototype.hasOwnProperty,i=Object.prototype.toString;function o(a){if(a===null)return!0;let c=[],l=a;for(let p=0,f=l.length;p<f;p+=1){let d=l[p],m=!1;if(i.call(d)!=="[object Object]")return!1;let g;for(g in d)if(n.call(d,g))if(!m)m=!0;else return!1;if(!m)return!1;if(c.indexOf(g)===-1)c.push(g);else return!1}return!0}function s(a){return a!==null?a:[]}e.exports=new r("tag:yaml.org,2002:omap",{kind:"sequence",resolve:o,construct:s})})),ap=de(((t,e)=>{var r=Le(),n=Object.prototype.toString;function i(s){if(s===null)return!0;let a=s,c=new Array(a.length);for(let l=0,p=a.length;l<p;l+=1){let f=a[l];if(n.call(f)!=="[object Object]")return!1;let d=Object.keys(f);if(d.length!==1)return!1;c[l]=[d[0],f[d[0]]]}return!0}function o(s){if(s===null)return[];let a=s,c=new Array(a.length);for(let l=0,p=a.length;l<p;l+=1){let f=a[l],d=Object.keys(f);c[l]=[d[0],f[d[0]]]}return c}e.exports=new r("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:i,construct:o})})),cp=de(((t,e)=>{var r=Le(),n=Object.prototype.hasOwnProperty;function i(s){if(s===null)return!0;let a=s;for(let c in a)if(n.call(a,c)&&a[c]!==null)return!1;return!0}function o(s){return s!==null?s:{}}e.exports=new r("tag:yaml.org,2002:set",{kind:"mapping",resolve:i,construct:o})})),$a=de(((t,e)=>{e.exports=rp().extend({implicit:[np(),ip()],explicit:[op(),sp(),ap(),cp()]})})),Vw=de(((t,e)=>{var r=An(),n=Tn(),i=Lw(),o=$a(),s=Object.prototype.hasOwnProperty,a=1,c=2,l=3,p=4,f=1,d=2,m=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,y=/[\x85\u2028\u2029]/,_=/[,\[\]{}]/,b=/^(?:!|!!|![0-9A-Za-z-]+!)$/,M=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function q(u){return Object.prototype.toString.call(u)}function A(u){return u===10||u===13}function T(u){return u===9||u===32}function L(u){return u===9||u===32||u===10||u===13}function Y(u){return u===44||u===91||u===93||u===123||u===125}function pe(u){if(u>=48&&u<=57)return u-48;let v=u|32;return v>=97&&v<=102?v-97+10:-1}function Re(u){return u===120?2:u===117?4:u===85?8:0}function Ce(u){return u>=48&&u<=57?u-48:-1}function Fe(u){switch(u){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
37
|
-
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function Oe(u){return u<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320)}function at(u,v,$){v==="__proto__"?Object.defineProperty(u,v,{configurable:!0,enumerable:!0,writable:!0,value:$}):u[v]=$}var ct=new Array(256),Pt=new Array(256);for(let u=0;u<256;u++)ct[u]=Fe(u)?1:0,Pt[u]=Fe(u);function ce(u,v){this.input=u,this.filename=v.filename||null,this.schema=v.schema||o,this.onWarning=v.onWarning||null,this.legacy=v.legacy||!1,this.json=v.json||!1,this.listener=v.listener||null,this.maxDepth=typeof v.maxDepth=="number"?v.maxDepth:100,this.maxMergeSeqLength=typeof v.maxMergeSeqLength=="number"?v.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=u.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function ji(u,v){let $={name:u.filename,buffer:u.input.slice(0,-1),position:u.position,line:u.line,column:u.position-u.lineStart};return $.snippet=i($),new n(v,$)}function H(u,v){throw ji(u,v)}function Mr(u,v){u.onWarning&&u.onWarning.call(null,ji(u,v))}function It(u,v,$){let E=u.anchorMapTransactions;if(E.length!==0){let x=E[E.length-1];s.call(x,v)||(x[v]={existed:s.call(u.anchorMap,v),value:u.anchorMap[v]})}u.anchorMap[v]=$}function Us(u){u.anchorMapTransactions.push(Object.create(null))}function lr(u){let v=u.anchorMapTransactions.pop(),$=u.anchorMapTransactions;if($.length===0)return;let E=$[$.length-1],x=Object.keys(v);for(let O=0,h=x.length;O<h;O+=1){let w=x[O];s.call(E,w)||(E[w]=v[w])}}function Ws(u){let v=u.anchorMapTransactions.pop(),$=Object.keys(v);for(let E=$.length-1;E>=0;E-=1){let x=v[$[E]];x.existed?u.anchorMap[$[E]]=x.value:delete u.anchorMap[$[E]]}}function kn(u){return{position:u.position,line:u.line,lineStart:u.lineStart,lineIndent:u.lineIndent,firstTabInLine:u.firstTabInLine,tag:u.tag,anchor:u.anchor,kind:u.kind,result:u.result}}function Lr(u,v){u.position=v.position,u.line=v.line,u.lineStart=v.lineStart,u.lineIndent=v.lineIndent,u.firstTabInLine=v.firstTabInLine,u.tag=v.tag,u.anchor=v.anchor,u.kind=v.kind,u.result=v.result}var Di={YAML:function(v,$,E){v.version!==null&&H(v,"duplication of %YAML directive"),E.length!==1&&H(v,"YAML directive accepts exactly one argument");let x=/^([0-9]+)\.([0-9]+)$/.exec(E[0]);x===null&&H(v,"ill-formed argument of the YAML directive");let O=parseInt(x[1],10),h=parseInt(x[2],10);O!==1&&H(v,"unacceptable YAML version of the document"),v.version=E[0],v.checkLineBreaks=h<2,h!==1&&h!==2&&Mr(v,"unsupported YAML version of the document")},TAG:function(v,$,E){let x;E.length!==2&&H(v,"TAG directive accepts exactly two arguments");let O=E[0];x=E[1],b.test(O)||H(v,"ill-formed tag handle (first argument) of the TAG directive"),s.call(v.tagMap,O)&&H(v,'there is a previously declared suffix for "'+O+'" tag handle'),M.test(x)||H(v,"ill-formed tag prefix (second argument) of the TAG directive");try{x=decodeURIComponent(x)}catch{H(v,"tag prefix is malformed: "+x)}v.tagMap[O]=x}};function ze(u,v,$,E){if(v<$){let x=u.input.slice(v,$);if(E)for(let O=0,h=x.length;O<h;O+=1){let w=x.charCodeAt(O);w===9||w>=32&&w<=1114111||H(u,"expected valid JSON character")}else g.test(x)&&H(u,"the stream contains non-printable characters");u.result+=x}}function
|
|
37
|
+
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}function Oe(u){return u<=65535?String.fromCharCode(u):String.fromCharCode((u-65536>>10)+55296,(u-65536&1023)+56320)}function at(u,v,$){v==="__proto__"?Object.defineProperty(u,v,{configurable:!0,enumerable:!0,writable:!0,value:$}):u[v]=$}var ct=new Array(256),Pt=new Array(256);for(let u=0;u<256;u++)ct[u]=Fe(u)?1:0,Pt[u]=Fe(u);function ce(u,v){this.input=u,this.filename=v.filename||null,this.schema=v.schema||o,this.onWarning=v.onWarning||null,this.legacy=v.legacy||!1,this.json=v.json||!1,this.listener=v.listener||null,this.maxDepth=typeof v.maxDepth=="number"?v.maxDepth:100,this.maxMergeSeqLength=typeof v.maxMergeSeqLength=="number"?v.maxMergeSeqLength:20,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=u.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function ji(u,v){let $={name:u.filename,buffer:u.input.slice(0,-1),position:u.position,line:u.line,column:u.position-u.lineStart};return $.snippet=i($),new n(v,$)}function H(u,v){throw ji(u,v)}function Mr(u,v){u.onWarning&&u.onWarning.call(null,ji(u,v))}function It(u,v,$){let E=u.anchorMapTransactions;if(E.length!==0){let x=E[E.length-1];s.call(x,v)||(x[v]={existed:s.call(u.anchorMap,v),value:u.anchorMap[v]})}u.anchorMap[v]=$}function Us(u){u.anchorMapTransactions.push(Object.create(null))}function lr(u){let v=u.anchorMapTransactions.pop(),$=u.anchorMapTransactions;if($.length===0)return;let E=$[$.length-1],x=Object.keys(v);for(let O=0,h=x.length;O<h;O+=1){let w=x[O];s.call(E,w)||(E[w]=v[w])}}function Ws(u){let v=u.anchorMapTransactions.pop(),$=Object.keys(v);for(let E=$.length-1;E>=0;E-=1){let x=v[$[E]];x.existed?u.anchorMap[$[E]]=x.value:delete u.anchorMap[$[E]]}}function kn(u){return{position:u.position,line:u.line,lineStart:u.lineStart,lineIndent:u.lineIndent,firstTabInLine:u.firstTabInLine,tag:u.tag,anchor:u.anchor,kind:u.kind,result:u.result}}function Lr(u,v){u.position=v.position,u.line=v.line,u.lineStart=v.lineStart,u.lineIndent=v.lineIndent,u.firstTabInLine=v.firstTabInLine,u.tag=v.tag,u.anchor=v.anchor,u.kind=v.kind,u.result=v.result}var Di={YAML:function(v,$,E){v.version!==null&&H(v,"duplication of %YAML directive"),E.length!==1&&H(v,"YAML directive accepts exactly one argument");let x=/^([0-9]+)\.([0-9]+)$/.exec(E[0]);x===null&&H(v,"ill-formed argument of the YAML directive");let O=parseInt(x[1],10),h=parseInt(x[2],10);O!==1&&H(v,"unacceptable YAML version of the document"),v.version=E[0],v.checkLineBreaks=h<2,h!==1&&h!==2&&Mr(v,"unsupported YAML version of the document")},TAG:function(v,$,E){let x;E.length!==2&&H(v,"TAG directive accepts exactly two arguments");let O=E[0];x=E[1],b.test(O)||H(v,"ill-formed tag handle (first argument) of the TAG directive"),s.call(v.tagMap,O)&&H(v,'there is a previously declared suffix for "'+O+'" tag handle'),M.test(x)||H(v,"ill-formed tag prefix (second argument) of the TAG directive");try{x=decodeURIComponent(x)}catch{H(v,"tag prefix is malformed: "+x)}v.tagMap[O]=x}};function ze(u,v,$,E){if(v<$){let x=u.input.slice(v,$);if(E)for(let O=0,h=x.length;O<h;O+=1){let w=x.charCodeAt(O);w===9||w>=32&&w<=1114111||H(u,"expected valid JSON character")}else g.test(x)&&H(u,"the stream contains non-printable characters");u.result+=x}}function Jt(u,v,$,E){r.isObject($)||H(u,"cannot merge mappings; the provided source object is unacceptable");let x=Object.keys($);for(let O=0,h=x.length;O<h;O+=1){let w=x[O];s.call(v,w)||(at(v,w,$[w]),E[w]=!0)}}function Rt(u,v,$,E,x,O,h,w,R){if(Array.isArray(x)){x=Array.prototype.slice.call(x);for(let k=0,C=x.length;k<C;k+=1)Array.isArray(x[k])&&H(u,"nested arrays are not supported inside keys"),typeof x=="object"&&q(x[k])==="[object Object]"&&(x[k]="[object Object]")}if(typeof x=="object"&&q(x)==="[object Object]"&&(x="[object Object]"),x=String(x),v===null&&(v={}),E==="tag:yaml.org,2002:merge")if(Array.isArray(O)){O.length>u.maxMergeSeqLength&&H(u,"merge sequence length exceeded maxMergeSeqLength ("+u.maxMergeSeqLength+")");let k=new Set;for(let C=0,I=O.length;C<I;C+=1){let P=O[C];k.has(P)||(k.add(P),Jt(u,v,P,$))}}else Jt(u,v,O,$);else!u.json&&!s.call($,x)&&s.call(v,x)&&(u.line=h||u.line,u.lineStart=w||u.lineStart,u.position=R||u.position,H(u,"duplicated mapping key")),at(v,x,O),delete $[x];return v}function Vr(u){let v=u.input.charCodeAt(u.position);v===10?u.position++:v===13?(u.position++,u.input.charCodeAt(u.position)===10&&u.position++):H(u,"a line break is expected"),u.line+=1,u.lineStart=u.position,u.firstTabInLine=-1}function we(u,v,$){let E=0,x=u.input.charCodeAt(u.position);for(;x!==0;){for(;T(x);)x===9&&u.firstTabInLine===-1&&(u.firstTabInLine=u.position),x=u.input.charCodeAt(++u.position);if(v&&x===35)do x=u.input.charCodeAt(++u.position);while(x!==10&&x!==13&&x!==0);if(A(x))for(Vr(u),x=u.input.charCodeAt(u.position),E++,u.lineIndent=0;x===32;)u.lineIndent++,x=u.input.charCodeAt(++u.position);else break}return $!==-1&&E!==0&&u.lineIndent<$&&Mr(u,"deficient indentation"),E}function jr(u){let v=u.position,$=u.input.charCodeAt(v);return!!(($===45||$===46)&&$===u.input.charCodeAt(v+1)&&$===u.input.charCodeAt(v+2)&&(v+=3,$=u.input.charCodeAt(v),$===0||L($)))}function Ot(u,v){v===1?u.result+=" ":v>1&&(u.result+=r.repeat(`
|
|
38
38
|
`,v-1))}function qi(u,v,$){let E,x,O,h,w,R,k=u.kind,C=u.result,I=u.input.charCodeAt(u.position);if(L(I)||Y(I)||I===35||I===38||I===42||I===33||I===124||I===62||I===39||I===34||I===37||I===64||I===96)return!1;if(I===63||I===45){let P=u.input.charCodeAt(u.position+1);if(L(P)||$&&Y(P))return!1}for(u.kind="scalar",u.result="",E=x=u.position,O=!1;I!==0;){if(I===58){let P=u.input.charCodeAt(u.position+1);if(L(P)||$&&Y(P))break}else if(I===35){if(L(u.input.charCodeAt(u.position-1)))break}else{if(u.position===u.lineStart&&jr(u)||$&&Y(I))break;if(A(I))if(h=u.line,w=u.lineStart,R=u.lineIndent,we(u,!1,-1),u.lineIndent>=v){O=!0,I=u.input.charCodeAt(u.position);continue}else{u.position=x,u.line=h,u.lineStart=w,u.lineIndent=R;break}}O&&(ze(u,E,x,!1),Ot(u,u.line-h),E=x=u.position,O=!1),T(I)||(x=u.position+1),I=u.input.charCodeAt(++u.position)}return ze(u,E,x,!1),u.result?!0:(u.kind=k,u.result=C,!1)}function Fi(u,v){let $,E,x=u.input.charCodeAt(u.position);if(x!==39)return!1;for(u.kind="scalar",u.result="",u.position++,$=E=u.position;(x=u.input.charCodeAt(u.position))!==0;)if(x===39)if(ze(u,$,u.position,!0),x=u.input.charCodeAt(++u.position),x===39)$=u.position,u.position++,E=u.position;else return!0;else A(x)?(ze(u,$,E,!0),Ot(u,we(u,!1,v)),$=E=u.position):u.position===u.lineStart&&jr(u)?H(u,"unexpected end of the document within a single quoted scalar"):(u.position++,T(x)||(E=u.position));H(u,"unexpected end of the stream within a single quoted scalar")}function Cn(u,v){let $,E,x,O=u.input.charCodeAt(u.position);if(O!==34)return!1;for(u.kind="scalar",u.result="",u.position++,$=E=u.position;(O=u.input.charCodeAt(u.position))!==0;){if(O===34)return ze(u,$,u.position,!0),u.position++,!0;if(O===92){if(ze(u,$,u.position,!0),O=u.input.charCodeAt(++u.position),A(O))we(u,!1,v);else if(O<256&&ct[O])u.result+=Pt[O],u.position++;else if((x=Re(O))>0){let h=x,w=0;for(;h>0;h--)O=u.input.charCodeAt(++u.position),(x=pe(O))>=0?w=(w<<4)+x:H(u,"expected hexadecimal character");u.result+=Oe(w),u.position++}else H(u,"unknown escape sequence");$=E=u.position}else A(O)?(ze(u,$,E,!0),Ot(u,we(u,!1,v)),$=E=u.position):u.position===u.lineStart&&jr(u)?H(u,"unexpected end of the document within a double quoted scalar"):(u.position++,T(O)||(E=u.position))}H(u,"unexpected end of the stream within a double quoted scalar")}function Hi(u,v){let $=!0,E,x,O,h=u.tag,w,R=u.anchor,k,C,I,P,j=Object.create(null),V,U,W,re=u.input.charCodeAt(u.position);if(re===91)k=93,P=!1,w=[];else if(re===123)k=125,P=!0,w={};else return!1;for(u.anchor!==null&&It(u,u.anchor,w),re=u.input.charCodeAt(++u.position);re!==0;){if(we(u,!0,v),re=u.input.charCodeAt(u.position),re===k)return u.position++,u.tag=h,u.anchor=R,u.kind=P?"mapping":"sequence",u.result=w,!0;$?re===44&&H(u,"expected the node content, but found ','"):H(u,"missed comma between flow collection entries"),U=V=W=null,C=I=!1,re===63&&L(u.input.charCodeAt(u.position+1))&&(C=I=!0,u.position++,we(u,!0,v)),E=u.line,x=u.lineStart,O=u.position,Tt(u,v,a,!1,!0),U=u.tag,V=u.result,we(u,!0,v),re=u.input.charCodeAt(u.position),(I||u.line===E)&&re===58&&(C=!0,re=u.input.charCodeAt(++u.position),we(u,!0,v),Tt(u,v,a,!1,!0),W=u.result),P?Rt(u,w,j,U,V,W,E,x,O):C?w.push(Rt(u,null,j,U,V,W,E,x,O)):w.push(V),we(u,!0,v),re=u.input.charCodeAt(u.position),re===44?($=!0,re=u.input.charCodeAt(++u.position)):$=!1}H(u,"unexpected end of the stream within a flow collection")}function Bi(u,v){let $,E=f,x=!1,O=!1,h=v,w=0,R=!1,k,C=u.input.charCodeAt(u.position);if(C===124)$=!1;else if(C===62)$=!0;else return!1;for(u.kind="scalar",u.result="";C!==0;)if(C=u.input.charCodeAt(++u.position),C===43||C===45)f===E?E=C===43?m:d:H(u,"repeat of a chomping mode identifier");else if((k=Ce(C))>=0)k===0?H(u,"bad explicit indentation width of a block scalar; it cannot be less than one"):O?H(u,"repeat of an indentation width identifier"):(h=v+k-1,O=!0);else break;if(T(C)){do C=u.input.charCodeAt(++u.position);while(T(C));if(C===35)do C=u.input.charCodeAt(++u.position);while(!A(C)&&C!==0)}for(;C!==0;){for(Vr(u),u.lineIndent=0,C=u.input.charCodeAt(u.position);(!O||u.lineIndent<h)&&C===32;)u.lineIndent++,C=u.input.charCodeAt(++u.position);if(!O&&u.lineIndent>h&&(h=u.lineIndent),A(C)){w++;continue}if(!O&&h===0&&H(u,"missing indentation for block scalar"),u.lineIndent<h){E===m?u.result+=r.repeat(`
|
|
39
39
|
`,x?1+w:w):E===f&&x&&(u.result+=`
|
|
40
40
|
`);break}$?T(C)?(R=!0,u.result+=r.repeat(`
|
|
@@ -45,7 +45,7 @@ Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,o=>{let
|
|
|
45
45
|
`),u.charCodeAt(0)===65279&&(u=u.slice(1)));let $=new ce(u,v),E=u.indexOf("\0");for(E!==-1&&($.position=E,H($,"null byte is not allowed in input")),$.input+="\0";$.input.charCodeAt($.position)===32;)$.lineIndent+=1,$.position+=1;for(;$.position<$.length-1;)Js($);return $.documents}function Ji(u,v,$){v!==null&&typeof v=="object"&&typeof $>"u"&&($=v,v=null);let E=zi(u,$);if(typeof v!="function")return E;for(let x=0,O=E.length;x<O;x+=1)v(E[x])}function Ks(u,v){let $=zi(u,v);if($.length!==0){if($.length===1)return $[0];throw new n("expected a single document in the stream, but found more")}}e.exports.loadAll=Ji,e.exports.load=Ks})),jw=de(((t,e)=>{var r=An(),n=Tn(),i=$a(),o=Object.prototype.toString,s=Object.prototype.hasOwnProperty,a=65279,c=9,l=10,p=13,f=32,d=33,m=34,g=35,y=37,_=38,b=39,M=42,q=44,A=45,T=58,L=61,Y=62,pe=63,Re=64,Ce=91,Fe=93,Oe=96,at=123,ct=124,Pt=125,ce={};ce[0]="\\0",ce[7]="\\a",ce[8]="\\b",ce[9]="\\t",ce[10]="\\n",ce[11]="\\v",ce[12]="\\f",ce[13]="\\r",ce[27]="\\e",ce[34]='\\"',ce[92]="\\\\",ce[133]="\\N",ce[160]="\\_",ce[8232]="\\L",ce[8233]="\\P";var ji=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],H=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Mr(h,w){if(w===null)return{};let R={},k=Object.keys(w);for(let C=0,I=k.length;C<I;C+=1){let P=k[C],j=String(w[P]);P.slice(0,2)==="!!"&&(P="tag:yaml.org,2002:"+P.slice(2));let V=h.compiledTypeMap.fallback[P];V&&s.call(V.styleAliases,j)&&(j=V.styleAliases[j]),R[P]=j}return R}function It(h){let w,R,k=h.toString(16).toUpperCase();if(h<=255)w="x",R=2;else if(h<=65535)w="u",R=4;else if(h<=4294967295)w="U",R=8;else throw new n("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+w+r.repeat("0",R-k.length)+k}var Us=1,lr=2;function Ws(h){this.schema=h.schema||i,this.indent=Math.max(1,h.indent||2),this.noArrayIndent=h.noArrayIndent||!1,this.skipInvalid=h.skipInvalid||!1,this.flowLevel=r.isNothing(h.flowLevel)?-1:h.flowLevel,this.styleMap=Mr(this.schema,h.styles||null),this.sortKeys=h.sortKeys||!1,this.lineWidth=h.lineWidth||80,this.noRefs=h.noRefs||!1,this.noCompatMode=h.noCompatMode||!1,this.condenseFlow=h.condenseFlow||!1,this.quotingType=h.quotingType==='"'?lr:Us,this.forceQuotes=h.forceQuotes||!1,this.replacer=typeof h.replacer=="function"?h.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function kn(h,w){let R=r.repeat(" ",w),k=0,C="",I=h.length;for(;k<I;){let P,j=h.indexOf(`
|
|
46
46
|
`,k);j===-1?(P=h.slice(k),k=I):(P=h.slice(k,j+1),k=j+1),P.length&&P!==`
|
|
47
47
|
`&&(C+=R),C+=P}return C}function Lr(h,w){return`
|
|
48
|
-
`+r.repeat(" ",h.indent*w)}function Di(h,w){for(let R=0,k=h.implicitTypes.length;R<k;R+=1)if(h.implicitTypes[R].resolve(w))return!0;return!1}function ze(h){return h===f||h===c}function
|
|
48
|
+
`+r.repeat(" ",h.indent*w)}function Di(h,w){for(let R=0,k=h.implicitTypes.length;R<k;R+=1)if(h.implicitTypes[R].resolve(w))return!0;return!1}function ze(h){return h===f||h===c}function Jt(h){return h>=32&&h<=126||h>=161&&h<=55295&&h!==8232&&h!==8233||h>=57344&&h<=65533&&h!==a||h>=65536&&h<=1114111}function Rt(h){return Jt(h)&&h!==a&&h!==p&&h!==l}function Vr(h,w,R){let k=Rt(h),C=k&&!ze(h);return(R?k:k&&h!==q&&h!==Ce&&h!==Fe&&h!==at&&h!==Pt)&&h!==g&&!(w===T&&!C)||Rt(w)&&!ze(w)&&h===g||w===T&&C}function we(h){return Jt(h)&&h!==a&&!ze(h)&&h!==A&&h!==pe&&h!==T&&h!==q&&h!==Ce&&h!==Fe&&h!==at&&h!==Pt&&h!==g&&h!==_&&h!==M&&h!==d&&h!==ct&&h!==L&&h!==Y&&h!==b&&h!==m&&h!==y&&h!==Re&&h!==Oe}function jr(h){return!ze(h)&&h!==T}function Ot(h,w){let R=h.charCodeAt(w),k;return R>=55296&&R<=56319&&w+1<h.length&&(k=h.charCodeAt(w+1),k>=56320&&k<=57343)?(R-55296)*1024+k-56320+65536:R}function qi(h){return/^\n* /.test(h)}var Fi=1,Cn=2,Hi=3,Bi=4,At=5;function Ui(h,w,R,k,C,I,P,j){let V,U=0,W=null,re=!1,ve=!1,ff=k!==-1,En=-1,Pn=we(Ot(h,0))&&jr(Ot(h,h.length-1));if(w||P)for(V=0;V<h.length;U>=65536?V+=2:V++){if(U=Ot(h,V),!Jt(U))return At;Pn=Pn&&Vr(U,W,j),W=U}else{for(V=0;V<h.length;U>=65536?V+=2:V++){if(U=Ot(h,V),U===l)re=!0,ff&&(ve=ve||V-En-1>k&&h[En+1]!==" ",En=V);else if(!Jt(U))return At;Pn=Pn&&Vr(U,W,j),W=U}ve=ve||ff&&V-En-1>k&&h[En+1]!==" "}return!re&&!ve?Pn&&!P&&!C(h)?Fi:I===lr?At:Cn:R>9&&qi(h)?At:P?I===lr?At:Cn:ve?Bi:Hi}function Gs(h,w,R,k,C){h.dump=(function(){if(w.length===0)return h.quotingType===lr?'""':"''";if(!h.noCompatMode&&(ji.indexOf(w)!==-1||H.test(w)))return h.quotingType===lr?'"'+w+'"':"'"+w+"'";let I=h.indent*Math.max(1,R),P=h.lineWidth===-1?-1:Math.max(Math.min(h.lineWidth,40),h.lineWidth-I),j=k||h.flowLevel>-1&&R>=h.flowLevel;function V(U){return Di(h,U)}switch(Ui(w,j,h.indent,P,V,h.quotingType,h.forceQuotes&&!k,C)){case Fi:return w;case Cn:return"'"+w.replace(/'/g,"''")+"'";case Hi:return"|"+Wi(w,h.indent)+Gi(kn(w,I));case Bi:return">"+Wi(w,h.indent)+Gi(kn(zs(w,P),I));case At:return'"'+Js(w,P)+'"';default:throw new n("impossible error: invalid scalar style")}})()}function Wi(h,w){let R=qi(h)?String(w):"",k=h[h.length-1]===`
|
|
49
49
|
`;return R+(k&&(h[h.length-2]===`
|
|
50
50
|
`||h===`
|
|
51
51
|
`)?"+":k?"":"-")+`
|
|
@@ -56,15 +56,15 @@ Expecting one of '${n.join("', '")}'`);let i=`${e}Help`;return this.on(i,o=>{let
|
|
|
56
56
|
`:"")+Tt(V,w),C=I}return k}function Tt(h,w){if(h===""||h[0]===" ")return h;let R=/ [^ ]/g,k,C=0,I,P=0,j=0,V="";for(;k=R.exec(h);)j=k.index,j-C>w&&(I=P>C?P:j,V+=`
|
|
57
57
|
`+h.slice(C,I),C=I+1),P=j;return V+=`
|
|
58
58
|
`,h.length-C>w&&P>C?V+=h.slice(C,P)+`
|
|
59
|
-
`+h.slice(P+1):V+=h.slice(C),V.slice(1)}function Js(h){let w="",R=0;for(let k=0;k<h.length;R>=65536?k+=2:k++){R=Ot(h,k);let C=ce[R];!C&&
|
|
60
|
-
`:""}e.exports.dump=O})),lp=Mw(de(((t,e)=>{var r=Vw(),n=jw();function i(o,s){return function(){throw new Error("Function yaml."+o+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}e.exports.Type=Le(),e.exports.Schema=Gf(),e.exports.FAILSAFE_SCHEMA=Yf(),e.exports.JSON_SCHEMA=tp(),e.exports.CORE_SCHEMA=rp(),e.exports.DEFAULT_SCHEMA=$a(),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=n.dump,e.exports.YAMLException=Tn(),e.exports.types={binary:op(),float:ep(),map:Kf(),null:Xf(),pairs:ap(),set:cp(),timestamp:np(),bool:Qf(),int:Zf(),merge:ip(),omap:sp(),seq:Jf(),str:zf()},e.exports.safeLoad=i("safeLoad","load"),e.exports.safeLoadAll=i("safeLoadAll","loadAll"),e.exports.safeDump=i("safeDump","dump")}))(),1),{Type:HI,Schema:BI,FAILSAFE_SCHEMA:UI,JSON_SCHEMA:WI,CORE_SCHEMA:GI,DEFAULT_SCHEMA:zI,load:JI,loadAll:KI,dump:YI,YAMLException:XI,types:QI,safeLoad:ZI,safeLoadAll:eR,safeDump:tR}=lp.default,ut=lp.default});import{access as Dw,readFile as up}from"node:fs/promises";import{dirname as fp,relative as oR,resolve as _e}from"node:path";async function qw(t=process.cwd()){let e=_e(t);for(;;){let r=_e(e,"view-contracts.config.yaml");try{return await Dw(r),r}catch{let n=fp(e);if(n===e)return null;e=n}}}async function Jt(t){if(t)return _e(t);let e=await qw();if(!e)throw new Error("view-contracts.config.yaml not found. Pass -c <path> or run from a project directory.");return e}async function He(t){let e=_e(t),r=await up(e,"utf-8"),n=ut.load(r);return Fw(e,n)}function Fw(t,e){let r=he(t);return{...e,openapi:_e(r,e.openapi),bindings:_e(r,e.bindings),microContractsConfig:_e(r,e.microContractsConfig),viewsDir:_e(r,e.viewsDir),generated:{contractDir:_e(r,e.generated.contractDir),actions:_e(r,e.generated.actions),bridge:_e(r,e.generated.bridge),reactDir:_e(r,e.generated.reactDir)},runtimeModule:e.runtimeModule?_e(r,e.runtimeModule):e.componentsModule?_e(r,e.componentsModule):void 0,themeModule:e.themeModule?_e(r,e.themeModule):void 0,design:e.design?{tokens:e.design.tokens?_e(r,e.design.tokens):void 0,theme:e.design.theme?_e(r,e.design.theme):void 0,extensionsCss:e.design.extensionsCss?_e(r,e.design.extensionsCss):void 0}:void 0,extensions:e.extensions?_e(r,e.extensions):void 0}}async function wt(t){let e=await up(_e(t),"utf-8");return ut.load(e)}function pp(t,e){return _e(t.generated.reactDir,"components",`${e.screenName}.generated.tsx`)}function he(t){return fp(_e(t))}function Kt(t){let e=t.design?.tokens,r=t.design?.theme;if(!e)throw new Error("view-contracts.config.yaml must define design.tokens (project tokens file path).");if(!r)throw new Error("view-contracts.config.yaml must define design.theme (project theme file path).");return{tokensPath:e,themePath:r}}var ft=X(()=>{"use strict";qr()});var Ln=S(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.regexpCode=oe.getEsmExportName=oe.getProperty=oe.safeStringify=oe.stringify=oe.strConcat=oe.addCodeArg=oe.str=oe._=oe.nil=oe._Code=oe.Name=oe.IDENTIFIER=oe._CodeOrName=void 0;var Nn=class{};oe._CodeOrName=Nn;oe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ur=class extends Nn{constructor(e){if(super(),!oe.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};oe.Name=ur;var et=class extends Nn{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof ur&&(r[n.str]=(r[n.str]||0)+1),r),{})}};oe._Code=et;oe.nil=new et("");function hp(t,...e){let r=[t[0]],n=0;for(;n<e.length;)Ca(r,e[n]),r.push(t[++n]);return new et(r)}oe._=hp;var ka=new et("+");function mp(t,...e){let r=[Mn(t[0])],n=0;for(;n<e.length;)r.push(ka),Ca(r,e[n]),r.push(ka,Mn(t[++n]));return Bw(r),new et(r)}oe.str=mp;function Ca(t,e){e instanceof et?t.push(...e._items):e instanceof ur?t.push(e):t.push(Gw(e))}oe.addCodeArg=Ca;function Bw(t){let e=1;for(;e<t.length-1;){if(t[e]===ka){let r=Uw(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Uw(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof ur||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof ur))return`"${t}${e.slice(1)}`}function Ww(t,e){return e.emptyStr()?t:t.emptyStr()?e:mp`${t}${e}`}oe.strConcat=Ww;function Gw(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Mn(Array.isArray(t)?t.join(","):t)}function zw(t){return new et(Mn(t))}oe.stringify=zw;function Mn(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}oe.safeStringify=Mn;function Jw(t){return typeof t=="string"&&oe.IDENTIFIER.test(t)?new et(`.${t}`):hp`[${t}]`}oe.getProperty=Jw;function Kw(t){if(typeof t=="string"&&oe.IDENTIFIER.test(t))return new et(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}oe.getEsmExportName=Kw;function Yw(t){return new et(t.toString())}oe.regexpCode=Yw});var Ia=S(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ValueScope=Ue.ValueScopeName=Ue.Scope=Ue.varKinds=Ue.UsedValueState=void 0;var Be=Ln(),Ea=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},no;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(no||(Ue.UsedValueState=no={}));Ue.varKinds={const:new Be.Name("const"),let:new Be.Name("let"),var:new Be.Name("var")};var io=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Be.Name?e:this.name(e)}name(e){return new Be.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Ue.Scope=io;var oo=class extends Be.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,Be._)`.${new Be.Name(r)}[${n}]`}};Ue.ValueScopeName=oo;var Xw=(0,Be._)`\n`,Pa=class extends io{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Xw:Be.nil}}get(){return this._scope}name(e){return new oo(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let p=a.get(s);if(p)return p}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Be._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let o=Be.nil;for(let s in e){let a=e[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,no.Started);let p=r(l);if(p){let f=this.opts.es5?Ue.varKinds.var:Ue.varKinds.const;o=(0,Be._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i?.(l))o=(0,Be._)`${o}${p}${this.opts._n}`;else throw new Ea(l);c.set(l,no.Completed)})}return o}};Ue.ValueScope=Pa});var K=S(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.or=Z.and=Z.not=Z.CodeGen=Z.operators=Z.varKinds=Z.ValueScopeName=Z.ValueScope=Z.Scope=Z.Name=Z.regexpCode=Z.stringify=Z.getProperty=Z.nil=Z.strConcat=Z.str=Z._=void 0;var ne=Ln(),pt=Ia(),Yt=Ln();Object.defineProperty(Z,"_",{enumerable:!0,get:function(){return Yt._}});Object.defineProperty(Z,"str",{enumerable:!0,get:function(){return Yt.str}});Object.defineProperty(Z,"strConcat",{enumerable:!0,get:function(){return Yt.strConcat}});Object.defineProperty(Z,"nil",{enumerable:!0,get:function(){return Yt.nil}});Object.defineProperty(Z,"getProperty",{enumerable:!0,get:function(){return Yt.getProperty}});Object.defineProperty(Z,"stringify",{enumerable:!0,get:function(){return Yt.stringify}});Object.defineProperty(Z,"regexpCode",{enumerable:!0,get:function(){return Yt.regexpCode}});Object.defineProperty(Z,"Name",{enumerable:!0,get:function(){return Yt.Name}});var lo=Ia();Object.defineProperty(Z,"Scope",{enumerable:!0,get:function(){return lo.Scope}});Object.defineProperty(Z,"ValueScope",{enumerable:!0,get:function(){return lo.ValueScope}});Object.defineProperty(Z,"ValueScopeName",{enumerable:!0,get:function(){return lo.ValueScopeName}});Object.defineProperty(Z,"varKinds",{enumerable:!0,get:function(){return lo.varKinds}});Z.operators={GT:new ne._Code(">"),GTE:new ne._Code(">="),LT:new ne._Code("<"),LTE:new ne._Code("<="),EQ:new ne._Code("==="),NEQ:new ne._Code("!=="),NOT:new ne._Code("!"),OR:new ne._Code("||"),AND:new ne._Code("&&"),ADD:new ne._Code("+")};var Vt=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Ra=class extends Vt{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?pt.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Hr(this.rhs,e,r)),this}get names(){return this.rhs instanceof ne._CodeOrName?this.rhs.names:{}}},so=class extends Vt{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof ne.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Hr(this.rhs,e,r),this}get names(){let e=this.lhs instanceof ne.Name?{}:{...this.lhs.names};return co(e,this.rhs)}},Oa=class extends so{constructor(e,r,n,i){super(e,n,i),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Aa=class extends Vt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Ta=class extends Vt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Na=class extends Vt{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Ma=class extends Vt{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Hr(this.code,e,r),this}get names(){return this.code instanceof ne._CodeOrName?this.code.names:{}}},Vn=class extends Vt{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(e,r)||(Qw(e,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>dr(e,r.names),{})}},jt=class extends Vn{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},La=class extends Vn{},Fr=class extends jt{};Fr.kind="else";var fr=class t extends jt{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Fr(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(gp(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Hr(this.condition,e,r),this}get names(){let e=super.names;return co(e,this.condition),this.else&&dr(e,this.else.names),e}};fr.kind="if";var pr=class extends jt{};pr.kind="for";var Va=class extends pr{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Hr(this.iteration,e,r),this}get names(){return dr(super.names,this.iteration.names)}},ja=class extends pr{constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this.to=i}render(e){let r=e.es5?pt.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){let e=co(super.names,this.from);return co(e,this.to)}},ao=class extends pr{constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Hr(this.iterable,e,r),this}get names(){return dr(super.names,this.iterable.names)}},jn=class extends jt{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};jn.kind="func";var Dn=class extends Vn{render(e){return"return "+super.render(e)}};Dn.kind="return";var Da=class extends jt{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,i;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&dr(e,this.catch.names),this.finally&&dr(e,this.finally.names),e}},qn=class extends jt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};qn.kind="catch";var Fn=class extends jt{render(e){return"finally"+super.render(e)}};Fn.kind="finally";var qa=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
61
|
-
`:""},this._extScope=e,this._scope=new pt.Scope({parent:e}),this._nodes=[new La]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Ra(e,o,n)),o}const(e,r,n){return this._def(pt.varKinds.const,e,r,n)}let(e,r,n){return this._def(pt.varKinds.let,e,r,n)}var(e,r,n){return this._def(pt.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new so(e,r,n))}add(e,r){return this._leafNode(new Oa(e,Z.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==ne.nil&&this._leafNode(new Ma(e)),this}object(...e){let r=["{"];for(let[n,i]of e)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,ne.addCodeArg)(r,i));return r.push("}"),new ne._Code(r)}if(e,r,n){if(this._blockNode(new fr(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new fr(e))}else(){return this._elseNode(new Fr)}endIf(){return this._endBlockNode(fr,Fr)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new Va(e),r)}forRange(e,r,n,i,o=this.opts.es5?pt.varKinds.var:pt.varKinds.let){let s=this._scope.toName(e);return this._for(new ja(o,s,r,n),()=>i(s))}forOf(e,r,n,i=pt.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let s=r instanceof ne.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ne._)`${s}.length`,a=>{this.var(o,(0,ne._)`${s}[${a}]`),n(o)})}return this._for(new ao("of",i,o,r),()=>n(o))}forIn(e,r,n,i=this.opts.es5?pt.varKinds.var:pt.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,ne._)`Object.keys(${r})`,n);let o=this._scope.toName(e);return this._for(new ao("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(pr)}label(e){return this._leafNode(new Aa(e))}break(e){return this._leafNode(new Ta(e))}return(e){let r=new Dn;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Dn)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Da;if(this._blockNode(i),this.code(e),r){let o=this.name("e");this._currNode=i.catch=new qn(o),r(o)}return n&&(this._currNode=i.finally=new Fn,this.code(n)),this._endBlockNode(qn,Fn)}throw(e){return this._leafNode(new Na(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=ne.nil,n,i){return this._blockNode(new jn(e,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(jn)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof fr))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};Z.CodeGen=qa;function dr(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function co(t,e){return e instanceof ne._CodeOrName?dr(t,e.names):t}function Hr(t,e,r){if(t instanceof ne.Name)return n(t);if(!i(t))return t;return new ne._Code(t._items.reduce((o,s)=>(s instanceof ne.Name&&(s=n(s)),s instanceof ne._Code?o.push(...s._items):o.push(s),o),[]));function n(o){let s=r[o.str];return s===void 0||e[o.str]!==1?o:(delete e[o.str],s)}function i(o){return o instanceof ne._Code&&o._items.some(s=>s instanceof ne.Name&&e[s.str]===1&&r[s.str]!==void 0)}}function Qw(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function gp(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,ne._)`!${Fa(t)}`}Z.not=gp;var Zw=yp(Z.operators.AND);function e_(...t){return t.reduce(Zw)}Z.and=e_;var t_=yp(Z.operators.OR);function r_(...t){return t.reduce(t_)}Z.or=r_;function yp(t){return(e,r)=>e===ne.nil?r:r===ne.nil?e:(0,ne._)`${Fa(e)} ${t} ${Fa(r)}`}function Fa(t){return t instanceof ne.Name?t:(0,ne._)`(${t})`}});var te=S(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.checkStrictMode=ee.getErrorPath=ee.Type=ee.useFunc=ee.setEvaluated=ee.evaluatedPropsToName=ee.mergeEvaluated=ee.eachItem=ee.unescapeJsonPointer=ee.escapeJsonPointer=ee.escapeFragment=ee.unescapeFragment=ee.schemaRefOrVal=ee.schemaHasRulesButRef=ee.schemaHasRules=ee.checkUnknownRules=ee.alwaysValidSchema=ee.toHash=void 0;var ue=K(),n_=Ln();function i_(t){let e={};for(let r of t)e[r]=!0;return e}ee.toHash=i_;function o_(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(_p(t,e),!bp(e,t.self.RULES.all))}ee.alwaysValidSchema=o_;function _p(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let i=n.RULES.keywords;for(let o in e)i[o]||$p(t,`unknown keyword: "${o}"`)}ee.checkUnknownRules=_p;function bp(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}ee.schemaHasRules=bp;function s_(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}ee.schemaHasRulesButRef=s_;function a_({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ue._)`${r}`}return(0,ue._)`${t}${e}${(0,ue.getProperty)(n)}`}ee.schemaRefOrVal=a_;function c_(t){return Sp(decodeURIComponent(t))}ee.unescapeFragment=c_;function l_(t){return encodeURIComponent(Ba(t))}ee.escapeFragment=l_;function Ba(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}ee.escapeJsonPointer=Ba;function Sp(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}ee.unescapeJsonPointer=Sp;function u_(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}ee.eachItem=u_;function vp({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{let c=s===void 0?o:s instanceof ue.Name?(o instanceof ue.Name?t(i,o,s):e(i,o,s),s):o instanceof ue.Name?(e(i,s,o),o):r(o,s);return a===ue.Name&&!(c instanceof ue.Name)?n(i,c):c}}ee.mergeEvaluated={props:vp({mergeNames:(t,e,r)=>t.if((0,ue._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,ue._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,ue._)`${r} || {}`).code((0,ue._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,ue._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,ue._)`${r} || {}`),Ua(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:xp}),items:vp({mergeNames:(t,e,r)=>t.if((0,ue._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,ue._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,ue._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,ue._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function xp(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,ue._)`{}`);return e!==void 0&&Ua(t,r,e),r}ee.evaluatedPropsToName=xp;function Ua(t,e,r){Object.keys(r).forEach(n=>t.assign((0,ue._)`${e}${(0,ue.getProperty)(n)}`,!0))}ee.setEvaluated=Ua;var wp={};function f_(t,e){return t.scopeValue("func",{ref:e,code:wp[e.code]||(wp[e.code]=new n_._Code(e.code))})}ee.useFunc=f_;var Ha;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Ha||(ee.Type=Ha={}));function p_(t,e,r){if(t instanceof ue.Name){let n=e===Ha.Num;return r?n?(0,ue._)`"[" + ${t} + "]"`:(0,ue._)`"['" + ${t} + "']"`:n?(0,ue._)`"/" + ${t}`:(0,ue._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ue.getProperty)(t).toString():"/"+Ba(t)}ee.getErrorPath=p_;function $p(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}ee.checkStrictMode=$p});var tt=S(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var Ae=K(),d_={data:new Ae.Name("data"),valCxt:new Ae.Name("valCxt"),instancePath:new Ae.Name("instancePath"),parentData:new Ae.Name("parentData"),parentDataProperty:new Ae.Name("parentDataProperty"),rootData:new Ae.Name("rootData"),dynamicAnchors:new Ae.Name("dynamicAnchors"),vErrors:new Ae.Name("vErrors"),errors:new Ae.Name("errors"),this:new Ae.Name("this"),self:new Ae.Name("self"),scope:new Ae.Name("scope"),json:new Ae.Name("json"),jsonPos:new Ae.Name("jsonPos"),jsonLen:new Ae.Name("jsonLen"),jsonPart:new Ae.Name("jsonPart")};Wa.default=d_});var Hn=S(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.extendErrors=Te.resetErrorsCount=Te.reportExtraError=Te.reportError=Te.keyword$DataError=Te.keywordError=void 0;var ie=K(),uo=te(),Ve=tt();Te.keywordError={message:({keyword:t})=>(0,ie.str)`must pass "${t}" keyword validation`};Te.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ie.str)`"${t}" keyword must be ${e} ($data)`:(0,ie.str)`"${t}" keyword is invalid ($data)`};function h_(t,e=Te.keywordError,r,n){let{it:i}=t,{gen:o,compositeRule:s,allErrors:a}=i,c=Ep(t,e,r);n??(s||a)?kp(o,c):Cp(i,(0,ie._)`[${c}]`)}Te.reportError=h_;function m_(t,e=Te.keywordError,r){let{it:n}=t,{gen:i,compositeRule:o,allErrors:s}=n,a=Ep(t,e,r);kp(i,a),o||s||Cp(n,Ve.default.vErrors)}Te.reportExtraError=m_;function g_(t,e){t.assign(Ve.default.errors,e),t.if((0,ie._)`${Ve.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ie._)`${Ve.default.vErrors}.length`,e),()=>t.assign(Ve.default.vErrors,null)))}Te.resetErrorsCount=g_;function y_({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",i,Ve.default.errors,a=>{t.const(s,(0,ie._)`${Ve.default.vErrors}[${a}]`),t.if((0,ie._)`${s}.instancePath === undefined`,()=>t.assign((0,ie._)`${s}.instancePath`,(0,ie.strConcat)(Ve.default.instancePath,o.errorPath))),t.assign((0,ie._)`${s}.schemaPath`,(0,ie.str)`${o.errSchemaPath}/${e}`),o.opts.verbose&&(t.assign((0,ie._)`${s}.schema`,r),t.assign((0,ie._)`${s}.data`,n))})}Te.extendErrors=y_;function kp(t,e){let r=t.const("err",e);t.if((0,ie._)`${Ve.default.vErrors} === null`,()=>t.assign(Ve.default.vErrors,(0,ie._)`[${r}]`),(0,ie._)`${Ve.default.vErrors}.push(${r})`),t.code((0,ie._)`${Ve.default.errors}++`)}function Cp(t,e){let{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw((0,ie._)`new ${t.ValidationError}(${e})`):(r.assign((0,ie._)`${n}.errors`,e),r.return(!1))}var hr={keyword:new ie.Name("keyword"),schemaPath:new ie.Name("schemaPath"),params:new ie.Name("params"),propertyName:new ie.Name("propertyName"),message:new ie.Name("message"),schema:new ie.Name("schema"),parentSchema:new ie.Name("parentSchema")};function Ep(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,ie._)`{}`:v_(t,e,r)}function v_(t,e,r={}){let{gen:n,it:i}=t,o=[w_(i,r),__(t,r)];return b_(t,e,o),n.object(...o)}function w_({errorPath:t},{instancePath:e}){let r=e?(0,ie.str)`${t}${(0,uo.getErrorPath)(e,uo.Type.Str)}`:t;return[Ve.default.instancePath,(0,ie.strConcat)(Ve.default.instancePath,r)]}function __({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,ie.str)`${e}/${t}`;return r&&(i=(0,ie.str)`${i}${(0,uo.getErrorPath)(r,uo.Type.Str)}`),[hr.schemaPath,i]}function b_(t,{params:e,message:r},n){let{keyword:i,data:o,schemaValue:s,it:a}=t,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=a;n.push([hr.keyword,i],[hr.params,typeof e=="function"?e(t):e||(0,ie._)`{}`]),c.messages&&n.push([hr.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([hr.schema,s],[hr.parentSchema,(0,ie._)`${p}${f}`],[Ve.default.data,o]),l&&n.push([hr.propertyName,l])}});var Ip=S(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.boolOrEmptySchema=Br.topBoolOrEmptySchema=void 0;var S_=Hn(),x_=K(),$_=tt(),k_={message:"boolean schema is false"};function C_(t){let{gen:e,schema:r,validateName:n}=t;r===!1?Pp(t,!1):typeof r=="object"&&r.$async===!0?e.return($_.default.data):(e.assign((0,x_._)`${n}.errors`,null),e.return(!0))}Br.topBoolOrEmptySchema=C_;function E_(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),Pp(t)):r.var(e,!0)}Br.boolOrEmptySchema=E_;function Pp(t,e){let{gen:r,data:n}=t,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,S_.reportError)(i,k_,void 0,e)}});var Ga=S(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.getRules=Ur.isJSONType=void 0;var P_=["string","number","integer","boolean","null","object","array"],I_=new Set(P_);function R_(t){return typeof t=="string"&&I_.has(t)}Ur.isJSONType=R_;function O_(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Ur.getRules=O_});var za=S(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.shouldUseRule=Xt.shouldUseGroup=Xt.schemaHasRulesForType=void 0;function A_({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&Rp(t,n)}Xt.schemaHasRulesForType=A_;function Rp(t,e){return e.rules.some(r=>Op(t,r))}Xt.shouldUseGroup=Rp;function Op(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Xt.shouldUseRule=Op});var Bn=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.reportTypeError=Ne.checkDataTypes=Ne.checkDataType=Ne.coerceAndCheckDataType=Ne.getJSONTypes=Ne.getSchemaTypes=Ne.DataType=void 0;var T_=Ga(),N_=za(),M_=Hn(),Q=K(),Ap=te(),Wr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Wr||(Ne.DataType=Wr={}));function L_(t){let e=Tp(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Ne.getSchemaTypes=L_;function Tp(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(T_.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ne.getJSONTypes=Tp;function V_(t,e){let{gen:r,data:n,opts:i}=t,o=j_(e,i.coerceTypes),s=e.length>0&&!(o.length===0&&e.length===1&&(0,N_.schemaHasRulesForType)(t,e[0]));if(s){let a=Ka(e,n,i.strictNumbers,Wr.Wrong);r.if(a,()=>{o.length?D_(t,e,o):Ya(t)})}return s}Ne.coerceAndCheckDataType=V_;var Np=new Set(["string","number","integer","boolean","null"]);function j_(t,e){return e?t.filter(r=>Np.has(r)||e==="array"&&r==="array"):[]}function D_(t,e,r){let{gen:n,data:i,opts:o}=t,s=n.let("dataType",(0,Q._)`typeof ${i}`),a=n.let("coerced",(0,Q._)`undefined`);o.coerceTypes==="array"&&n.if((0,Q._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Q._)`${i}[0]`).assign(s,(0,Q._)`typeof ${i}`).if(Ka(e,i,o.strictNumbers),()=>n.assign(a,i))),n.if((0,Q._)`${a} !== undefined`);for(let l of r)(Np.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Ya(t),n.endIf(),n.if((0,Q._)`${a} !== undefined`,()=>{n.assign(i,a),q_(t,a)});function c(l){switch(l){case"string":n.elseIf((0,Q._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,Q._)`"" + ${i}`).elseIf((0,Q._)`${i} === null`).assign(a,(0,Q._)`""`);return;case"number":n.elseIf((0,Q._)`${s} == "boolean" || ${i} === null
|
|
59
|
+
`+h.slice(P+1):V+=h.slice(C),V.slice(1)}function Js(h){let w="",R=0;for(let k=0;k<h.length;R>=65536?k+=2:k++){R=Ot(h,k);let C=ce[R];!C&&Jt(R)?(w+=h[k],R>=65536&&(w+=h[k+1])):w+=C||It(R)}return w}function zi(h,w,R){let k="",C=h.tag;for(let I=0,P=R.length;I<P;I+=1){let j=R[I];h.replacer&&(j=h.replacer.call(R,String(I),j)),($(h,w,j,!1,!1)||typeof j>"u"&&$(h,w,null,!1,!1))&&(k!==""&&(k+=","+(h.condenseFlow?"":" ")),k+=h.dump)}h.tag=C,h.dump="["+k+"]"}function Ji(h,w,R,k){let C="",I=h.tag;for(let P=0,j=R.length;P<j;P+=1){let V=R[P];h.replacer&&(V=h.replacer.call(R,String(P),V)),($(h,w+1,V,!0,!0,!1,!0)||typeof V>"u"&&$(h,w+1,null,!0,!0,!1,!0))&&((!k||C!=="")&&(C+=Lr(h,w)),h.dump&&l===h.dump.charCodeAt(0)?C+="-":C+="- ",C+=h.dump)}h.tag=I,h.dump=C||"[]"}function Ks(h,w,R){let k="",C=h.tag,I=Object.keys(R);for(let P=0,j=I.length;P<j;P+=1){let V="";k!==""&&(V+=", "),h.condenseFlow&&(V+='"');let U=I[P],W=R[U];h.replacer&&(W=h.replacer.call(R,U,W)),$(h,w,U,!1,!1)&&(h.dump.length>1024&&(V+="? "),V+=h.dump+(h.condenseFlow?'"':"")+":"+(h.condenseFlow?"":" "),$(h,w,W,!1,!1)&&(V+=h.dump,k+=V))}h.tag=C,h.dump="{"+k+"}"}function u(h,w,R,k){let C="",I=h.tag,P=Object.keys(R);if(h.sortKeys===!0)P.sort();else if(typeof h.sortKeys=="function")P.sort(h.sortKeys);else if(h.sortKeys)throw new n("sortKeys must be a boolean or a function");for(let j=0,V=P.length;j<V;j+=1){let U="";(!k||C!=="")&&(U+=Lr(h,w));let W=P[j],re=R[W];if(h.replacer&&(re=h.replacer.call(R,W,re)),!$(h,w+1,W,!0,!0,!0))continue;let ve=h.tag!==null&&h.tag!=="?"||h.dump&&h.dump.length>1024;ve&&(h.dump&&l===h.dump.charCodeAt(0)?U+="?":U+="? "),U+=h.dump,ve&&(U+=Lr(h,w)),$(h,w+1,re,!0,ve)&&(h.dump&&l===h.dump.charCodeAt(0)?U+=":":U+=": ",U+=h.dump,C+=U)}h.tag=I,h.dump=C||"{}"}function v(h,w,R){let k=R?h.explicitTypes:h.implicitTypes;for(let C=0,I=k.length;C<I;C+=1){let P=k[C];if((P.instanceOf||P.predicate)&&(!P.instanceOf||typeof w=="object"&&w instanceof P.instanceOf)&&(!P.predicate||P.predicate(w))){if(R?P.multi&&P.representName?h.tag=P.representName(w):h.tag=P.tag:h.tag="?",P.represent){let j=h.styleMap[P.tag]||P.defaultStyle,V;if(o.call(P.represent)==="[object Function]")V=P.represent(w,j);else if(s.call(P.represent,j))V=P.represent[j](w,j);else throw new n("!<"+P.tag+'> tag resolver accepts not "'+j+'" style');h.dump=V}return!0}}return!1}function $(h,w,R,k,C,I,P){h.tag=null,h.dump=R,v(h,R,!1)||v(h,R,!0);let j=o.call(h.dump),V=k;k&&(k=h.flowLevel<0||h.flowLevel>w);let U=j==="[object Object]"||j==="[object Array]",W,re;if(U&&(W=h.duplicates.indexOf(R),re=W!==-1),(h.tag!==null&&h.tag!=="?"||re||h.indent!==2&&w>0)&&(C=!1),re&&h.usedDuplicates[W])h.dump="*ref_"+W;else{if(U&&re&&!h.usedDuplicates[W]&&(h.usedDuplicates[W]=!0),j==="[object Object]")k&&Object.keys(h.dump).length!==0?(u(h,w,h.dump,C),re&&(h.dump="&ref_"+W+h.dump)):(Ks(h,w,h.dump),re&&(h.dump="&ref_"+W+" "+h.dump));else if(j==="[object Array]")k&&h.dump.length!==0?(h.noArrayIndent&&!P&&w>0?Ji(h,w-1,h.dump,C):Ji(h,w,h.dump,C),re&&(h.dump="&ref_"+W+h.dump)):(zi(h,w,h.dump),re&&(h.dump="&ref_"+W+" "+h.dump));else if(j==="[object String]")h.tag!=="?"&&Gs(h,h.dump,w,I,V);else{if(j==="[object Undefined]")return!1;if(h.skipInvalid)return!1;throw new n("unacceptable kind of an object to dump "+j)}if(h.tag!==null&&h.tag!=="?"){let ve=encodeURI(h.tag[0]==="!"?h.tag.slice(1):h.tag).replace(/!/g,"%21");h.tag[0]==="!"?ve="!"+ve:ve.slice(0,18)==="tag:yaml.org,2002:"?ve="!!"+ve.slice(18):ve="!<"+ve+">",h.dump=ve+" "+h.dump}}return!0}function E(h,w){let R=[],k=[];x(h,R,k);let C=k.length;for(let I=0;I<C;I+=1)w.duplicates.push(R[k[I]]);w.usedDuplicates=new Array(C)}function x(h,w,R){if(h!==null&&typeof h=="object"){let k=w.indexOf(h);if(k!==-1)R.indexOf(k)===-1&&R.push(k);else if(w.push(h),Array.isArray(h))for(let C=0,I=h.length;C<I;C+=1)x(h[C],w,R);else{let C=Object.keys(h);for(let I=0,P=C.length;I<P;I+=1)x(h[C[I]],w,R)}}}function O(h,w){w=w||{};let R=new Ws(w);R.noRefs||E(h,R);let k=h;return R.replacer&&(k=R.replacer.call({"":k},"",k)),$(R,0,k,!0,!0)?R.dump+`
|
|
60
|
+
`:""}e.exports.dump=O})),lp=Mw(de(((t,e)=>{var r=Vw(),n=jw();function i(o,s){return function(){throw new Error("Function yaml."+o+" is removed in js-yaml 4. Use yaml."+s+" instead, which is now safe by default.")}}e.exports.Type=Le(),e.exports.Schema=Gf(),e.exports.FAILSAFE_SCHEMA=Yf(),e.exports.JSON_SCHEMA=tp(),e.exports.CORE_SCHEMA=rp(),e.exports.DEFAULT_SCHEMA=$a(),e.exports.load=r.load,e.exports.loadAll=r.loadAll,e.exports.dump=n.dump,e.exports.YAMLException=Tn(),e.exports.types={binary:op(),float:ep(),map:Kf(),null:Xf(),pairs:ap(),set:cp(),timestamp:np(),bool:Qf(),int:Zf(),merge:ip(),omap:sp(),seq:Jf(),str:zf()},e.exports.safeLoad=i("safeLoad","load"),e.exports.safeLoadAll=i("safeLoadAll","loadAll"),e.exports.safeDump=i("safeDump","dump")}))(),1),{Type:HI,Schema:BI,FAILSAFE_SCHEMA:UI,JSON_SCHEMA:WI,CORE_SCHEMA:GI,DEFAULT_SCHEMA:zI,load:JI,loadAll:KI,dump:YI,YAMLException:XI,types:QI,safeLoad:ZI,safeLoadAll:eR,safeDump:tR}=lp.default,ut=lp.default});import{access as Dw,readFile as up}from"node:fs/promises";import{dirname as fp,relative as oR,resolve as _e}from"node:path";async function qw(t=process.cwd()){let e=_e(t);for(;;){let r=_e(e,"view-contracts.config.yaml");try{return await Dw(r),r}catch{let n=fp(e);if(n===e)return null;e=n}}}async function Kt(t){if(t)return _e(t);let e=await qw();if(!e)throw new Error("view-contracts.config.yaml not found. Pass -c <path> or run from a project directory.");return e}async function He(t){let e=_e(t),r=await up(e,"utf-8"),n=ut.load(r);return Fw(e,n)}function Fw(t,e){let r=he(t);return{...e,openapi:_e(r,e.openapi),bindings:_e(r,e.bindings),microContractsConfig:_e(r,e.microContractsConfig),viewsDir:_e(r,e.viewsDir),generated:{contractDir:_e(r,e.generated.contractDir),actions:_e(r,e.generated.actions),bridge:_e(r,e.generated.bridge),reactDir:_e(r,e.generated.reactDir)},runtimeModule:e.runtimeModule?_e(r,e.runtimeModule):e.componentsModule?_e(r,e.componentsModule):void 0,themeModule:e.themeModule?_e(r,e.themeModule):void 0,design:e.design?{tokens:e.design.tokens?_e(r,e.design.tokens):void 0,theme:e.design.theme?_e(r,e.design.theme):void 0,extensionsCss:e.design.extensionsCss?_e(r,e.design.extensionsCss):void 0}:void 0,extensions:e.extensions?_e(r,e.extensions):void 0}}async function wt(t){let e=await up(_e(t),"utf-8");return ut.load(e)}function pp(t,e){return _e(t.generated.reactDir,"components",`${e.screenName}.generated.tsx`)}function he(t){return fp(_e(t))}function Yt(t){let e=t.design?.tokens,r=t.design?.theme;if(!e)throw new Error("view-contracts.config.yaml must define design.tokens (project tokens file path).");if(!r)throw new Error("view-contracts.config.yaml must define design.theme (project theme file path).");return{tokensPath:e,themePath:r}}var ft=X(()=>{"use strict";qr()});var Ln=S(oe=>{"use strict";Object.defineProperty(oe,"__esModule",{value:!0});oe.regexpCode=oe.getEsmExportName=oe.getProperty=oe.safeStringify=oe.stringify=oe.strConcat=oe.addCodeArg=oe.str=oe._=oe.nil=oe._Code=oe.Name=oe.IDENTIFIER=oe._CodeOrName=void 0;var Nn=class{};oe._CodeOrName=Nn;oe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ur=class extends Nn{constructor(e){if(super(),!oe.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};oe.Name=ur;var et=class extends Nn{constructor(e){super(),this._items=typeof e=="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,n)=>(n instanceof ur&&(r[n.str]=(r[n.str]||0)+1),r),{})}};oe._Code=et;oe.nil=new et("");function hp(t,...e){let r=[t[0]],n=0;for(;n<e.length;)Ca(r,e[n]),r.push(t[++n]);return new et(r)}oe._=hp;var ka=new et("+");function mp(t,...e){let r=[Mn(t[0])],n=0;for(;n<e.length;)r.push(ka),Ca(r,e[n]),r.push(ka,Mn(t[++n]));return Bw(r),new et(r)}oe.str=mp;function Ca(t,e){e instanceof et?t.push(...e._items):e instanceof ur?t.push(e):t.push(Gw(e))}oe.addCodeArg=Ca;function Bw(t){let e=1;for(;e<t.length-1;){if(t[e]===ka){let r=Uw(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}function Uw(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof ur||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof ur))return`"${t}${e.slice(1)}`}function Ww(t,e){return e.emptyStr()?t:t.emptyStr()?e:mp`${t}${e}`}oe.strConcat=Ww;function Gw(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Mn(Array.isArray(t)?t.join(","):t)}function zw(t){return new et(Mn(t))}oe.stringify=zw;function Mn(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}oe.safeStringify=Mn;function Jw(t){return typeof t=="string"&&oe.IDENTIFIER.test(t)?new et(`.${t}`):hp`[${t}]`}oe.getProperty=Jw;function Kw(t){if(typeof t=="string"&&oe.IDENTIFIER.test(t))return new et(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}oe.getEsmExportName=Kw;function Yw(t){return new et(t.toString())}oe.regexpCode=Yw});var Ia=S(Ue=>{"use strict";Object.defineProperty(Ue,"__esModule",{value:!0});Ue.ValueScope=Ue.ValueScopeName=Ue.Scope=Ue.varKinds=Ue.UsedValueState=void 0;var Be=Ln(),Ea=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},no;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(no||(Ue.UsedValueState=no={}));Ue.varKinds={const:new Be.Name("const"),let:new Be.Name("let"),var:new Be.Name("var")};var io=class{constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof Be.Name?e:this.name(e)}name(e){return new Be.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};Ue.Scope=io;var oo=class extends Be.Name{constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:n}){this.value=e,this.scopePath=(0,Be._)`.${new Be.Name(r)}[${n}]`}};Ue.ValueScopeName=oo;var Xw=(0,Be._)`\n`,Pa=class extends io{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?Xw:Be.nil}}get(){return this._scope}name(e){return new oo(e,this._newName(e))}value(e,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let i=this.toName(e),{prefix:o}=i,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[o];if(a){let p=a.get(s);if(p)return p}else a=this._values[o]=new Map;a.set(s,i);let c=this._scope[o]||(this._scope[o]=[]),l=c.length;return c[l]=r.ref,i.setValue(r,{property:o,itemIndex:l}),i}getValue(e,r){let n=this._values[e];if(n)return n.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Be._)`${e}${n.scopePath}`})}scopeCode(e=this._values,r,n){return this._reduceValues(e,i=>{if(i.value===void 0)throw new Error(`CodeGen: name "${i}" has no value`);return i.value.code},r,n)}_reduceValues(e,r,n={},i){let o=Be.nil;for(let s in e){let a=e[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(l=>{if(c.has(l))return;c.set(l,no.Started);let p=r(l);if(p){let f=this.opts.es5?Ue.varKinds.var:Ue.varKinds.const;o=(0,Be._)`${o}${f} ${l} = ${p};${this.opts._n}`}else if(p=i?.(l))o=(0,Be._)`${o}${p}${this.opts._n}`;else throw new Ea(l);c.set(l,no.Completed)})}return o}};Ue.ValueScope=Pa});var K=S(Z=>{"use strict";Object.defineProperty(Z,"__esModule",{value:!0});Z.or=Z.and=Z.not=Z.CodeGen=Z.operators=Z.varKinds=Z.ValueScopeName=Z.ValueScope=Z.Scope=Z.Name=Z.regexpCode=Z.stringify=Z.getProperty=Z.nil=Z.strConcat=Z.str=Z._=void 0;var ne=Ln(),pt=Ia(),Xt=Ln();Object.defineProperty(Z,"_",{enumerable:!0,get:function(){return Xt._}});Object.defineProperty(Z,"str",{enumerable:!0,get:function(){return Xt.str}});Object.defineProperty(Z,"strConcat",{enumerable:!0,get:function(){return Xt.strConcat}});Object.defineProperty(Z,"nil",{enumerable:!0,get:function(){return Xt.nil}});Object.defineProperty(Z,"getProperty",{enumerable:!0,get:function(){return Xt.getProperty}});Object.defineProperty(Z,"stringify",{enumerable:!0,get:function(){return Xt.stringify}});Object.defineProperty(Z,"regexpCode",{enumerable:!0,get:function(){return Xt.regexpCode}});Object.defineProperty(Z,"Name",{enumerable:!0,get:function(){return Xt.Name}});var lo=Ia();Object.defineProperty(Z,"Scope",{enumerable:!0,get:function(){return lo.Scope}});Object.defineProperty(Z,"ValueScope",{enumerable:!0,get:function(){return lo.ValueScope}});Object.defineProperty(Z,"ValueScopeName",{enumerable:!0,get:function(){return lo.ValueScopeName}});Object.defineProperty(Z,"varKinds",{enumerable:!0,get:function(){return lo.varKinds}});Z.operators={GT:new ne._Code(">"),GTE:new ne._Code(">="),LT:new ne._Code("<"),LTE:new ne._Code("<="),EQ:new ne._Code("==="),NEQ:new ne._Code("!=="),NOT:new ne._Code("!"),OR:new ne._Code("||"),AND:new ne._Code("&&"),ADD:new ne._Code("+")};var Vt=class{optimizeNodes(){return this}optimizeNames(e,r){return this}},Ra=class extends Vt{constructor(e,r,n){super(),this.varKind=e,this.name=r,this.rhs=n}render({es5:e,_n:r}){let n=e?pt.varKinds.var:this.varKind,i=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Hr(this.rhs,e,r)),this}get names(){return this.rhs instanceof ne._CodeOrName?this.rhs.names:{}}},so=class extends Vt{constructor(e,r,n){super(),this.lhs=e,this.rhs=r,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof ne.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Hr(this.rhs,e,r),this}get names(){let e=this.lhs instanceof ne.Name?{}:{...this.lhs.names};return co(e,this.rhs)}},Oa=class extends so{constructor(e,r,n,i){super(e,n,i),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},Aa=class extends Vt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},Ta=class extends Vt{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},Na=class extends Vt{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},Ma=class extends Vt{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Hr(this.code,e,r),this}get names(){return this.code instanceof ne._CodeOrName?this.code.names:{}}},Vn=class extends Vt{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,n)=>r+n.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let n=e[r].optimizeNodes();Array.isArray(n)?e.splice(r,1,...n):n?e[r]=n:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:n}=this,i=n.length;for(;i--;){let o=n[i];o.optimizeNames(e,r)||(Qw(e,o.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>dr(e,r.names),{})}},jt=class extends Vn{render(e){return"{"+e._n+super.render(e)+"}"+e._n}},La=class extends Vn{},Fr=class extends jt{};Fr.kind="else";var fr=class t extends jt{constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new Fr(n):n}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(gp(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Hr(this.condition,e,r),this}get names(){let e=super.names;return co(e,this.condition),this.else&&dr(e,this.else.names),e}};fr.kind="if";var pr=class extends jt{};pr.kind="for";var Va=class extends pr{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Hr(this.iteration,e,r),this}get names(){return dr(super.names,this.iteration.names)}},ja=class extends pr{constructor(e,r,n,i){super(),this.varKind=e,this.name=r,this.from=n,this.to=i}render(e){let r=e.es5?pt.varKinds.var:this.varKind,{name:n,from:i,to:o}=this;return`for(${r} ${n}=${i}; ${n}<${o}; ${n}++)`+super.render(e)}get names(){let e=co(super.names,this.from);return co(e,this.to)}},ao=class extends pr{constructor(e,r,n,i){super(),this.loop=e,this.varKind=r,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Hr(this.iterable,e,r),this}get names(){return dr(super.names,this.iterable.names)}},jn=class extends jt{constructor(e,r,n){super(),this.name=e,this.args=r,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};jn.kind="func";var Dn=class extends Vn{render(e){return"return "+super.render(e)}};Dn.kind="return";var Da=class extends jt{render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var n,i;return super.optimizeNames(e,r),(n=this.catch)===null||n===void 0||n.optimizeNames(e,r),(i=this.finally)===null||i===void 0||i.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&dr(e,this.catch.names),this.finally&&dr(e,this.finally.names),e}},qn=class extends jt{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};qn.kind="catch";var Fn=class extends jt{render(e){return"finally"+super.render(e)}};Fn.kind="finally";var qa=class{constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
61
|
+
`:""},this._extScope=e,this._scope=new pt.Scope({parent:e}),this._nodes=[new La]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let n=this._extScope.value(e,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,n,i){let o=this._scope.toName(r);return n!==void 0&&i&&(this._constants[o.str]=n),this._leafNode(new Ra(e,o,n)),o}const(e,r,n){return this._def(pt.varKinds.const,e,r,n)}let(e,r,n){return this._def(pt.varKinds.let,e,r,n)}var(e,r,n){return this._def(pt.varKinds.var,e,r,n)}assign(e,r,n){return this._leafNode(new so(e,r,n))}add(e,r){return this._leafNode(new Oa(e,Z.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==ne.nil&&this._leafNode(new Ma(e)),this}object(...e){let r=["{"];for(let[n,i]of e)r.length>1&&r.push(","),r.push(n),(n!==i||this.opts.es5)&&(r.push(":"),(0,ne.addCodeArg)(r,i));return r.push("}"),new ne._Code(r)}if(e,r,n){if(this._blockNode(new fr(e)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new fr(e))}else(){return this._elseNode(new Fr)}endIf(){return this._endBlockNode(fr,Fr)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new Va(e),r)}forRange(e,r,n,i,o=this.opts.es5?pt.varKinds.var:pt.varKinds.let){let s=this._scope.toName(e);return this._for(new ja(o,s,r,n),()=>i(s))}forOf(e,r,n,i=pt.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let s=r instanceof ne.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ne._)`${s}.length`,a=>{this.var(o,(0,ne._)`${s}[${a}]`),n(o)})}return this._for(new ao("of",i,o,r),()=>n(o))}forIn(e,r,n,i=this.opts.es5?pt.varKinds.var:pt.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,ne._)`Object.keys(${r})`,n);let o=this._scope.toName(e);return this._for(new ao("in",i,o,r),()=>n(o))}endFor(){return this._endBlockNode(pr)}label(e){return this._leafNode(new Aa(e))}break(e){return this._leafNode(new Ta(e))}return(e){let r=new Dn;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Dn)}try(e,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let i=new Da;if(this._blockNode(i),this.code(e),r){let o=this.name("e");this._currNode=i.catch=new qn(o),r(o)}return n&&(this._currNode=i.finally=new Fn,this.code(n)),this._endBlockNode(qn,Fn)}throw(e){return this._leafNode(new Na(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||e!==void 0&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=ne.nil,n,i){return this._blockNode(new jn(e,r,n)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(jn)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,r){let n=this._currNode;if(n instanceof e||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof fr))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};Z.CodeGen=qa;function dr(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}function co(t,e){return e instanceof ne._CodeOrName?dr(t,e.names):t}function Hr(t,e,r){if(t instanceof ne.Name)return n(t);if(!i(t))return t;return new ne._Code(t._items.reduce((o,s)=>(s instanceof ne.Name&&(s=n(s)),s instanceof ne._Code?o.push(...s._items):o.push(s),o),[]));function n(o){let s=r[o.str];return s===void 0||e[o.str]!==1?o:(delete e[o.str],s)}function i(o){return o instanceof ne._Code&&o._items.some(s=>s instanceof ne.Name&&e[s.str]===1&&r[s.str]!==void 0)}}function Qw(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}function gp(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,ne._)`!${Fa(t)}`}Z.not=gp;var Zw=yp(Z.operators.AND);function e_(...t){return t.reduce(Zw)}Z.and=e_;var t_=yp(Z.operators.OR);function r_(...t){return t.reduce(t_)}Z.or=r_;function yp(t){return(e,r)=>e===ne.nil?r:r===ne.nil?e:(0,ne._)`${Fa(e)} ${t} ${Fa(r)}`}function Fa(t){return t instanceof ne.Name?t:(0,ne._)`(${t})`}});var te=S(ee=>{"use strict";Object.defineProperty(ee,"__esModule",{value:!0});ee.checkStrictMode=ee.getErrorPath=ee.Type=ee.useFunc=ee.setEvaluated=ee.evaluatedPropsToName=ee.mergeEvaluated=ee.eachItem=ee.unescapeJsonPointer=ee.escapeJsonPointer=ee.escapeFragment=ee.unescapeFragment=ee.schemaRefOrVal=ee.schemaHasRulesButRef=ee.schemaHasRules=ee.checkUnknownRules=ee.alwaysValidSchema=ee.toHash=void 0;var ue=K(),n_=Ln();function i_(t){let e={};for(let r of t)e[r]=!0;return e}ee.toHash=i_;function o_(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(_p(t,e),!bp(e,t.self.RULES.all))}ee.alwaysValidSchema=o_;function _p(t,e=t.schema){let{opts:r,self:n}=t;if(!r.strictSchema||typeof e=="boolean")return;let i=n.RULES.keywords;for(let o in e)i[o]||$p(t,`unknown keyword: "${o}"`)}ee.checkUnknownRules=_p;function bp(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}ee.schemaHasRules=bp;function s_(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}ee.schemaHasRulesButRef=s_;function a_({topSchemaRef:t,schemaPath:e},r,n,i){if(!i){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ue._)`${r}`}return(0,ue._)`${t}${e}${(0,ue.getProperty)(n)}`}ee.schemaRefOrVal=a_;function c_(t){return Sp(decodeURIComponent(t))}ee.unescapeFragment=c_;function l_(t){return encodeURIComponent(Ba(t))}ee.escapeFragment=l_;function Ba(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}ee.escapeJsonPointer=Ba;function Sp(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}ee.unescapeJsonPointer=Sp;function u_(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}ee.eachItem=u_;function vp({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:n}){return(i,o,s,a)=>{let c=s===void 0?o:s instanceof ue.Name?(o instanceof ue.Name?t(i,o,s):e(i,o,s),s):o instanceof ue.Name?(e(i,s,o),o):r(o,s);return a===ue.Name&&!(c instanceof ue.Name)?n(i,c):c}}ee.mergeEvaluated={props:vp({mergeNames:(t,e,r)=>t.if((0,ue._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,ue._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,ue._)`${r} || {}`).code((0,ue._)`Object.assign(${r}, ${e})`))}),mergeToName:(t,e,r)=>t.if((0,ue._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,ue._)`${r} || {}`),Ua(t,r,e))}),mergeValues:(t,e)=>t===!0?!0:{...t,...e},resultToName:xp}),items:vp({mergeNames:(t,e,r)=>t.if((0,ue._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,ue._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),mergeToName:(t,e,r)=>t.if((0,ue._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,ue._)`${r} > ${e} ? ${r} : ${e}`)),mergeValues:(t,e)=>t===!0?!0:Math.max(t,e),resultToName:(t,e)=>t.var("items",e)})};function xp(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,ue._)`{}`);return e!==void 0&&Ua(t,r,e),r}ee.evaluatedPropsToName=xp;function Ua(t,e,r){Object.keys(r).forEach(n=>t.assign((0,ue._)`${e}${(0,ue.getProperty)(n)}`,!0))}ee.setEvaluated=Ua;var wp={};function f_(t,e){return t.scopeValue("func",{ref:e,code:wp[e.code]||(wp[e.code]=new n_._Code(e.code))})}ee.useFunc=f_;var Ha;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(Ha||(ee.Type=Ha={}));function p_(t,e,r){if(t instanceof ue.Name){let n=e===Ha.Num;return r?n?(0,ue._)`"[" + ${t} + "]"`:(0,ue._)`"['" + ${t} + "']"`:n?(0,ue._)`"/" + ${t}`:(0,ue._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ue.getProperty)(t).toString():"/"+Ba(t)}ee.getErrorPath=p_;function $p(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}ee.checkStrictMode=$p});var tt=S(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});var Ae=K(),d_={data:new Ae.Name("data"),valCxt:new Ae.Name("valCxt"),instancePath:new Ae.Name("instancePath"),parentData:new Ae.Name("parentData"),parentDataProperty:new Ae.Name("parentDataProperty"),rootData:new Ae.Name("rootData"),dynamicAnchors:new Ae.Name("dynamicAnchors"),vErrors:new Ae.Name("vErrors"),errors:new Ae.Name("errors"),this:new Ae.Name("this"),self:new Ae.Name("self"),scope:new Ae.Name("scope"),json:new Ae.Name("json"),jsonPos:new Ae.Name("jsonPos"),jsonLen:new Ae.Name("jsonLen"),jsonPart:new Ae.Name("jsonPart")};Wa.default=d_});var Hn=S(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.extendErrors=Te.resetErrorsCount=Te.reportExtraError=Te.reportError=Te.keyword$DataError=Te.keywordError=void 0;var ie=K(),uo=te(),Ve=tt();Te.keywordError={message:({keyword:t})=>(0,ie.str)`must pass "${t}" keyword validation`};Te.keyword$DataError={message:({keyword:t,schemaType:e})=>e?(0,ie.str)`"${t}" keyword must be ${e} ($data)`:(0,ie.str)`"${t}" keyword is invalid ($data)`};function h_(t,e=Te.keywordError,r,n){let{it:i}=t,{gen:o,compositeRule:s,allErrors:a}=i,c=Ep(t,e,r);n??(s||a)?kp(o,c):Cp(i,(0,ie._)`[${c}]`)}Te.reportError=h_;function m_(t,e=Te.keywordError,r){let{it:n}=t,{gen:i,compositeRule:o,allErrors:s}=n,a=Ep(t,e,r);kp(i,a),o||s||Cp(n,Ve.default.vErrors)}Te.reportExtraError=m_;function g_(t,e){t.assign(Ve.default.errors,e),t.if((0,ie._)`${Ve.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,ie._)`${Ve.default.vErrors}.length`,e),()=>t.assign(Ve.default.vErrors,null)))}Te.resetErrorsCount=g_;function y_({gen:t,keyword:e,schemaValue:r,data:n,errsCount:i,it:o}){if(i===void 0)throw new Error("ajv implementation error");let s=t.name("err");t.forRange("i",i,Ve.default.errors,a=>{t.const(s,(0,ie._)`${Ve.default.vErrors}[${a}]`),t.if((0,ie._)`${s}.instancePath === undefined`,()=>t.assign((0,ie._)`${s}.instancePath`,(0,ie.strConcat)(Ve.default.instancePath,o.errorPath))),t.assign((0,ie._)`${s}.schemaPath`,(0,ie.str)`${o.errSchemaPath}/${e}`),o.opts.verbose&&(t.assign((0,ie._)`${s}.schema`,r),t.assign((0,ie._)`${s}.data`,n))})}Te.extendErrors=y_;function kp(t,e){let r=t.const("err",e);t.if((0,ie._)`${Ve.default.vErrors} === null`,()=>t.assign(Ve.default.vErrors,(0,ie._)`[${r}]`),(0,ie._)`${Ve.default.vErrors}.push(${r})`),t.code((0,ie._)`${Ve.default.errors}++`)}function Cp(t,e){let{gen:r,validateName:n,schemaEnv:i}=t;i.$async?r.throw((0,ie._)`new ${t.ValidationError}(${e})`):(r.assign((0,ie._)`${n}.errors`,e),r.return(!1))}var hr={keyword:new ie.Name("keyword"),schemaPath:new ie.Name("schemaPath"),params:new ie.Name("params"),propertyName:new ie.Name("propertyName"),message:new ie.Name("message"),schema:new ie.Name("schema"),parentSchema:new ie.Name("parentSchema")};function Ep(t,e,r){let{createErrors:n}=t.it;return n===!1?(0,ie._)`{}`:v_(t,e,r)}function v_(t,e,r={}){let{gen:n,it:i}=t,o=[w_(i,r),__(t,r)];return b_(t,e,o),n.object(...o)}function w_({errorPath:t},{instancePath:e}){let r=e?(0,ie.str)`${t}${(0,uo.getErrorPath)(e,uo.Type.Str)}`:t;return[Ve.default.instancePath,(0,ie.strConcat)(Ve.default.instancePath,r)]}function __({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:n}){let i=n?e:(0,ie.str)`${e}/${t}`;return r&&(i=(0,ie.str)`${i}${(0,uo.getErrorPath)(r,uo.Type.Str)}`),[hr.schemaPath,i]}function b_(t,{params:e,message:r},n){let{keyword:i,data:o,schemaValue:s,it:a}=t,{opts:c,propertyName:l,topSchemaRef:p,schemaPath:f}=a;n.push([hr.keyword,i],[hr.params,typeof e=="function"?e(t):e||(0,ie._)`{}`]),c.messages&&n.push([hr.message,typeof r=="function"?r(t):r]),c.verbose&&n.push([hr.schema,s],[hr.parentSchema,(0,ie._)`${p}${f}`],[Ve.default.data,o]),l&&n.push([hr.propertyName,l])}});var Ip=S(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.boolOrEmptySchema=Br.topBoolOrEmptySchema=void 0;var S_=Hn(),x_=K(),$_=tt(),k_={message:"boolean schema is false"};function C_(t){let{gen:e,schema:r,validateName:n}=t;r===!1?Pp(t,!1):typeof r=="object"&&r.$async===!0?e.return($_.default.data):(e.assign((0,x_._)`${n}.errors`,null),e.return(!0))}Br.topBoolOrEmptySchema=C_;function E_(t,e){let{gen:r,schema:n}=t;n===!1?(r.var(e,!1),Pp(t)):r.var(e,!0)}Br.boolOrEmptySchema=E_;function Pp(t,e){let{gen:r,data:n}=t,i={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,S_.reportError)(i,k_,void 0,e)}});var Ga=S(Ur=>{"use strict";Object.defineProperty(Ur,"__esModule",{value:!0});Ur.getRules=Ur.isJSONType=void 0;var P_=["string","number","integer","boolean","null","object","array"],I_=new Set(P_);function R_(t){return typeof t=="string"&&I_.has(t)}Ur.isJSONType=R_;function O_(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}Ur.getRules=O_});var za=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.shouldUseRule=Qt.shouldUseGroup=Qt.schemaHasRulesForType=void 0;function A_({schema:t,self:e},r){let n=e.RULES.types[r];return n&&n!==!0&&Rp(t,n)}Qt.schemaHasRulesForType=A_;function Rp(t,e){return e.rules.some(r=>Op(t,r))}Qt.shouldUseGroup=Rp;function Op(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(n=>t[n]!==void 0))}Qt.shouldUseRule=Op});var Bn=S(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.reportTypeError=Ne.checkDataTypes=Ne.checkDataType=Ne.coerceAndCheckDataType=Ne.getJSONTypes=Ne.getSchemaTypes=Ne.DataType=void 0;var T_=Ga(),N_=za(),M_=Hn(),Q=K(),Ap=te(),Wr;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Wr||(Ne.DataType=Wr={}));function L_(t){let e=Tp(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}Ne.getSchemaTypes=L_;function Tp(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(T_.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}Ne.getJSONTypes=Tp;function V_(t,e){let{gen:r,data:n,opts:i}=t,o=j_(e,i.coerceTypes),s=e.length>0&&!(o.length===0&&e.length===1&&(0,N_.schemaHasRulesForType)(t,e[0]));if(s){let a=Ka(e,n,i.strictNumbers,Wr.Wrong);r.if(a,()=>{o.length?D_(t,e,o):Ya(t)})}return s}Ne.coerceAndCheckDataType=V_;var Np=new Set(["string","number","integer","boolean","null"]);function j_(t,e){return e?t.filter(r=>Np.has(r)||e==="array"&&r==="array"):[]}function D_(t,e,r){let{gen:n,data:i,opts:o}=t,s=n.let("dataType",(0,Q._)`typeof ${i}`),a=n.let("coerced",(0,Q._)`undefined`);o.coerceTypes==="array"&&n.if((0,Q._)`${s} == 'object' && Array.isArray(${i}) && ${i}.length == 1`,()=>n.assign(i,(0,Q._)`${i}[0]`).assign(s,(0,Q._)`typeof ${i}`).if(Ka(e,i,o.strictNumbers),()=>n.assign(a,i))),n.if((0,Q._)`${a} !== undefined`);for(let l of r)(Np.has(l)||l==="array"&&o.coerceTypes==="array")&&c(l);n.else(),Ya(t),n.endIf(),n.if((0,Q._)`${a} !== undefined`,()=>{n.assign(i,a),q_(t,a)});function c(l){switch(l){case"string":n.elseIf((0,Q._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,Q._)`"" + ${i}`).elseIf((0,Q._)`${i} === null`).assign(a,(0,Q._)`""`);return;case"number":n.elseIf((0,Q._)`${s} == "boolean" || ${i} === null
|
|
62
62
|
|| (${s} == "string" && ${i} && ${i} == +${i})`).assign(a,(0,Q._)`+${i}`);return;case"integer":n.elseIf((0,Q._)`${s} === "boolean" || ${i} === null
|
|
63
63
|
|| (${s} === "string" && ${i} && ${i} == +${i} && !(${i} % 1))`).assign(a,(0,Q._)`+${i}`);return;case"boolean":n.elseIf((0,Q._)`${i} === "false" || ${i} === 0 || ${i} === null`).assign(a,!1).elseIf((0,Q._)`${i} === "true" || ${i} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Q._)`${i} === "" || ${i} === 0 || ${i} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Q._)`${s} === "string" || ${s} === "number"
|
|
64
|
-
|| ${s} === "boolean" || ${i} === null`).assign(a,(0,Q._)`[${i}]`)}}}function q_({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,Q._)`${e} !== undefined`,()=>t.assign((0,Q._)`${e}[${r}]`,n))}function Ja(t,e,r,n=Wr.Correct){let i=n===Wr.Correct?Q.operators.EQ:Q.operators.NEQ,o;switch(t){case"null":return(0,Q._)`${e} ${i} null`;case"array":o=(0,Q._)`Array.isArray(${e})`;break;case"object":o=(0,Q._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":o=s((0,Q._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":o=s();break;default:return(0,Q._)`typeof ${e} ${i} ${t}`}return n===Wr.Correct?o:(0,Q.not)(o);function s(a=Q.nil){return(0,Q.and)((0,Q._)`typeof ${e} == "number"`,a,r?(0,Q._)`isFinite(${e})`:Q.nil)}}Ne.checkDataType=Ja;function Ka(t,e,r,n){if(t.length===1)return Ja(t[0],e,r,n);let i,o=(0,Ap.toHash)(t);if(o.array&&o.object){let s=(0,Q._)`typeof ${e} != "object"`;i=o.null?s:(0,Q._)`!${e} || ${s}`,delete o.null,delete o.array,delete o.object}else i=Q.nil;o.number&&delete o.integer;for(let s in o)i=(0,Q.and)(i,Ja(s,e,r,n));return i}Ne.checkDataTypes=Ka;var F_={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Q._)`{type: ${t}}`:(0,Q._)`{type: ${e}}`};function Ya(t){let e=H_(t);(0,M_.reportError)(e,F_)}Ne.reportTypeError=Ya;function H_(t){let{gen:e,data:r,schema:n}=t,i=(0,Ap.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var Lp=S(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.assignDefaults=void 0;var Gr=K(),B_=te();function U_(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let i in r)Mp(t,i,r[i].default);else e==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Mp(t,o,i.default))}fo.assignDefaults=U_;function Mp(t,e,r){let{gen:n,compositeRule:i,data:o,opts:s}=t;if(r===void 0)return;let a=(0,Gr._)`${o}${(0,Gr.getProperty)(e)}`;if(i){(0,B_.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,Gr._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Gr._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Gr._)`${a} = ${(0,Gr.stringify)(r)}`)}});var rt=S(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.validateUnion=le.validateArray=le.usePattern=le.callValidateCode=le.schemaProperties=le.allSchemaProperties=le.noPropertyInData=le.propertyInData=le.isOwnProperty=le.hasPropFunc=le.reportMissingProp=le.checkMissingProp=le.checkReportMissingProp=void 0;var me=K(),Xa=te(),Qt=tt(),W_=te();function G_(t,e){let{gen:r,data:n,it:i}=t;r.if(Za(r,n,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,me._)`${e}`},!0),t.error()})}le.checkReportMissingProp=G_;function z_({gen:t,data:e,it:{opts:r}},n,i){return(0,me.or)(...n.map(o=>(0,me.and)(Za(t,e,o,r.ownProperties),(0,me._)`${i} = ${o}`)))}le.checkMissingProp=z_;function J_(t,e){t.setParams({missingProperty:e},!0),t.error()}le.reportMissingProp=J_;function Vp(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,me._)`Object.prototype.hasOwnProperty`})}le.hasPropFunc=Vp;function Qa(t,e,r){return(0,me._)`${Vp(t)}.call(${e}, ${r})`}le.isOwnProperty=Qa;function K_(t,e,r,n){let i=(0,me._)`${e}${(0,me.getProperty)(r)} !== undefined`;return n?(0,me._)`${i} && ${Qa(t,e,r)}`:i}le.propertyInData=K_;function Za(t,e,r,n){let i=(0,me._)`${e}${(0,me.getProperty)(r)} === undefined`;return n?(0,me.or)(i,(0,me.not)(Qa(t,e,r))):i}le.noPropertyInData=Za;function jp(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}le.allSchemaProperties=jp;function Y_(t,e){return jp(e).filter(r=>!(0,Xa.alwaysValidSchema)(t,e[r]))}le.schemaProperties=Y_;function X_({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){let p=l?(0,me._)`${t}, ${e}, ${n}${i}`:e,f=[[Qt.default.instancePath,(0,me.strConcat)(Qt.default.instancePath,o)],[Qt.default.parentData,s.parentData],[Qt.default.parentDataProperty,s.parentDataProperty],[Qt.default.rootData,Qt.default.rootData]];s.opts.dynamicRef&&f.push([Qt.default.dynamicAnchors,Qt.default.dynamicAnchors]);let d=(0,me._)`${p}, ${r.object(...f)}`;return c!==me.nil?(0,me._)`${a}.call(${c}, ${d})`:(0,me._)`${a}(${d})`}le.callValidateCode=X_;var Q_=(0,me._)`new RegExp`;function Z_({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:i}=e.code,o=i(r,n);return t.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,me._)`${i.code==="new RegExp"?Q_:(0,W_.useFunc)(t,i)}(${r}, ${n})`})}le.usePattern=Z_;function eb(t){let{gen:e,data:r,keyword:n,it:i}=t,o=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(o,!0),s(()=>e.break()),o;function s(a){let c=e.const("len",(0,me._)`${r}.length`);e.forRange("i",0,c,l=>{t.subschema({keyword:n,dataProp:l,dataPropType:Xa.Type.Num},o),e.if((0,me.not)(o),a)})}}le.validateArray=eb;function tb(t){let{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Xa.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let s=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,l)=>{let p=t.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);e.assign(s,(0,me._)`${s} || ${a}`),t.mergeValidEvaluated(p,a)||e.if((0,me.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}le.validateUnion=tb});var Fp=S(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.validateKeywordUsage=_t.validSchemaType=_t.funcKeywordCode=_t.macroKeywordCode=void 0;var je=K(),mr=tt(),rb=rt(),nb=Hn();function ib(t,e){let{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=t,a=e.macro.call(s.self,i,o,s),c=qp(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");t.subschema({schema:a,schemaPath:je.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}_t.macroKeywordCode=ib;function ob(t,e){var r;let{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=t;ab(c,e);let l=!a&&e.compile?e.compile.call(c.self,o,s,c):e.validate,p=qp(n,i,l),f=n.let("valid");t.block$data(f,d),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function d(){if(e.errors===!1)y(),e.modifying&&Dp(t),_(()=>t.error());else{let b=e.async?m():g();e.modifying&&Dp(t),_(()=>sb(t,b))}}function m(){let b=n.let("ruleErrs",null);return n.try(()=>y((0,je._)`await `),M=>n.assign(f,!1).if((0,je._)`${M} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,je._)`${M}.errors`),()=>n.throw(M))),b}function g(){let b=(0,je._)`${p}.errors`;return n.assign(b,null),y(je.nil),b}function y(b=e.async?(0,je._)`await `:je.nil){let M=c.opts.passContext?mr.default.this:mr.default.self,q=!("compile"in e&&!a||e.schema===!1);n.assign(f,(0,je._)`${b}${(0,rb.callValidateCode)(t,p,M,q)}`,e.modifying)}function _(b){var M;n.if((0,je.not)((M=e.valid)!==null&&M!==void 0?M:f),b)}}_t.funcKeywordCode=ob;function Dp(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,je._)`${n.parentData}[${n.parentDataProperty}]`))}function sb(t,e){let{gen:r}=t;r.if((0,je._)`Array.isArray(${e})`,()=>{r.assign(mr.default.vErrors,(0,je._)`${mr.default.vErrors} === null ? ${e} : ${mr.default.vErrors}.concat(${e})`).assign(mr.default.errors,(0,je._)`${mr.default.vErrors}.length`),(0,nb.extendErrors)(t)},()=>t.error())}function ab({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function qp(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,je.stringify)(r)})}function cb(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}_t.validSchemaType=cb;function lb({schema:t,opts:e,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let s=i.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}_t.validateKeywordUsage=lb});var Bp=S(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.extendSubschemaMode=Zt.extendSubschemaData=Zt.getSubschema=void 0;var bt=K(),Hp=te();function ub(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,bt._)`${t.schemaPath}${(0,bt.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,bt._)`${t.schemaPath}${(0,bt.getProperty)(e)}${(0,bt.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Hp.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}Zt.getSubschema=ub;function fb(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=e,d=a.let("data",(0,bt._)`${e.data}${(0,bt.getProperty)(r)}`,!0);c(d),t.errorPath=(0,bt.str)`${l}${(0,Hp.getErrorPath)(r,n,f.jsPropertySyntax)}`,t.parentDataProperty=(0,bt._)`${r}`,t.dataPathArr=[...p,t.parentDataProperty]}if(i!==void 0){let l=i instanceof bt.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(t.propertyName=s)}o&&(t.dataTypes=o);function c(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}Zt.extendSubschemaData=fb;function pb(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=r}Zt.extendSubschemaMode=pb});var ec=S(($R,Up)=>{"use strict";Up.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}});var Gp=S((kR,Wp)=>{"use strict";var er=Wp.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};po(e,n,i,t,"",t)};er.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};er.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};er.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};er.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 po(t,e,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,i,o,s,a,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in er.arrayKeywords)for(var d=0;d<f.length;d++)po(t,e,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in er.propsKeywords){if(f&&typeof f=="object")for(var m in f)po(t,e,r,f[m],i+"/"+p+"/"+db(m),o,i,p,n,m)}else(p in er.keywords||t.allKeys&&!(p in er.skipKeywords))&&po(t,e,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,s,a,c,l)}}function db(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Un=S(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.getSchemaRefs=We.resolveUrl=We.normalizeId=We._getFullPath=We.getFullPath=We.inlineRef=void 0;var hb=te(),mb=ec(),gb=Gp(),yb=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function vb(t,e=!0){return typeof t=="boolean"?!0:e===!0?!tc(t):e?zp(t)<=e:!1}We.inlineRef=vb;var wb=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function tc(t){for(let e in t){if(wb.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(tc)||typeof r=="object"&&tc(r))return!0}return!1}function zp(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!yb.has(r)&&(typeof t[r]=="object"&&(0,hb.eachItem)(t[r],n=>e+=zp(n)),e===1/0))return 1/0}return e}function Jp(t,e="",r){r!==!1&&(e=zr(e));let n=t.parse(e);return Kp(t,n)}We.getFullPath=Jp;function Kp(t,e){return t.serialize(e).split("#")[0]+"#"}We._getFullPath=Kp;var _b=/#\/?$/;function zr(t){return t?t.replace(_b,""):""}We.normalizeId=zr;function bb(t,e,r){return r=zr(r),t.resolve(e,r)}We.resolveUrl=bb;var Sb=/^[a-z_][-a-z0-9._]*$/i;function xb(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=zr(t[r]||e),o={"":i},s=Jp(n,i,!1),a={},c=new Set;return gb(t,{allKeys:!0},(f,d,m,g)=>{if(g===void 0)return;let y=s+d,_=o[g];typeof f[r]=="string"&&(_=b.call(this,f[r])),M.call(this,f.$anchor),M.call(this,f.$dynamicAnchor),o[d]=_;function b(q){let A=this.opts.uriResolver.resolve;if(q=zr(_?A(_,q):q),c.has(q))throw p(q);c.add(q);let T=this.refs[q];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?l(f,T.schema,q):q!==zr(y)&&(q[0]==="#"?(l(f,a[q],q),a[q]=f):this.refs[q]=y),q}function M(q){if(typeof q=="string"){if(!Sb.test(q))throw new Error(`invalid anchor "${q}"`);b.call(this,`#${q}`)}}}),a;function l(f,d,m){if(d!==void 0&&!mb(f,d))throw p(m)}function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}}We.getSchemaRefs=xb});var zn=S(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.getData=tr.KeywordCxt=tr.validateFunctionCode=void 0;var ed=Ip(),Yp=Bn(),nc=za(),ho=Bn(),$b=Lp(),Gn=Fp(),rc=Bp(),B=K(),J=tt(),kb=Un(),Dt=te(),Wn=Hn();function Cb(t){if(nd(t)&&(id(t),rd(t))){Ib(t);return}td(t,()=>(0,ed.topBoolOrEmptySchema)(t))}tr.validateFunctionCode=Cb;function td({gen:t,validateName:e,schema:r,schemaEnv:n,opts:i},o){i.code.es5?t.func(e,(0,B._)`${J.default.data}, ${J.default.valCxt}`,n.$async,()=>{t.code((0,B._)`"use strict"; ${Xp(r,i)}`),Pb(t,i),t.code(o)}):t.func(e,(0,B._)`${J.default.data}, ${Eb(i)}`,n.$async,()=>t.code(Xp(r,i)).code(o))}function Eb(t){return(0,B._)`{${J.default.instancePath}="", ${J.default.parentData}, ${J.default.parentDataProperty}, ${J.default.rootData}=${J.default.data}${t.dynamicRef?(0,B._)`, ${J.default.dynamicAnchors}={}`:B.nil}}={}`}function Pb(t,e){t.if(J.default.valCxt,()=>{t.var(J.default.instancePath,(0,B._)`${J.default.valCxt}.${J.default.instancePath}`),t.var(J.default.parentData,(0,B._)`${J.default.valCxt}.${J.default.parentData}`),t.var(J.default.parentDataProperty,(0,B._)`${J.default.valCxt}.${J.default.parentDataProperty}`),t.var(J.default.rootData,(0,B._)`${J.default.valCxt}.${J.default.rootData}`),e.dynamicRef&&t.var(J.default.dynamicAnchors,(0,B._)`${J.default.valCxt}.${J.default.dynamicAnchors}`)},()=>{t.var(J.default.instancePath,(0,B._)`""`),t.var(J.default.parentData,(0,B._)`undefined`),t.var(J.default.parentDataProperty,(0,B._)`undefined`),t.var(J.default.rootData,J.default.data),e.dynamicRef&&t.var(J.default.dynamicAnchors,(0,B._)`{}`)})}function Ib(t){let{schema:e,opts:r,gen:n}=t;td(t,()=>{r.$comment&&e.$comment&&sd(t),Nb(t),n.let(J.default.vErrors,null),n.let(J.default.errors,0),r.unevaluated&&Rb(t),od(t),Vb(t)})}function Rb(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,B._)`${r}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function Xp(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${r} */`:B.nil}function Ob(t,e){if(nd(t)&&(id(t),rd(t))){Ab(t,e);return}(0,ed.boolOrEmptySchema)(t,e)}function rd({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function nd(t){return typeof t.schema!="boolean"}function Ab(t,e){let{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&sd(t),Mb(t),Lb(t);let o=n.const("_errs",J.default.errors);od(t,o),n.var(e,(0,B._)`${o} === ${J.default.errors}`)}function id(t){(0,Dt.checkUnknownRules)(t),Tb(t)}function od(t,e){if(t.opts.jtd)return Qp(t,[],!1,e);let r=(0,Yp.getSchemaTypes)(t.schema),n=(0,Yp.coerceAndCheckDataType)(t,r);Qp(t,r,!n,e)}function Tb(t){let{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,Dt.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Nb(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Dt.checkStrictMode)(t,"default is ignored in the schema root")}function Mb(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,kb.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function Lb(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function sd({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)t.code((0,B._)`${J.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let s=(0,B.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${J.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function Vb(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=t;r.$async?e.if((0,B._)`${J.default.errors} === 0`,()=>e.return(J.default.data),()=>e.throw((0,B._)`new ${i}(${J.default.vErrors})`)):(e.assign((0,B._)`${n}.errors`,J.default.vErrors),o.unevaluated&&jb(t),e.return((0,B._)`${J.default.errors} === 0`))}function jb({gen:t,evaluated:e,props:r,items:n}){r instanceof B.Name&&t.assign((0,B._)`${e}.props`,r),n instanceof B.Name&&t.assign((0,B._)`${e}.items`,n)}function Qp(t,e,r,n){let{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=t,{RULES:p}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Dt.schemaHasRulesButRef)(o,p))){i.block(()=>cd(t,"$ref",p.all.$ref.definition));return}c.jtd||Db(t,e),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,nc.shouldUseGroup)(o,d)&&(d.type?(i.if((0,ho.checkDataType)(d.type,s,c.strictNumbers)),Zp(t,d),e.length===1&&e[0]===d.type&&r&&(i.else(),(0,ho.reportTypeError)(t)),i.endIf()):Zp(t,d),a||i.if((0,B._)`${J.default.errors} === ${n||0}`))}}function Zp(t,e){let{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,$b.assignDefaults)(t,e.type),r.block(()=>{for(let o of e.rules)(0,nc.shouldUseRule)(n,o)&&cd(t,o.keyword,o.definition,e.type)})}function Db(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(qb(t,e),t.opts.allowUnionTypes||Fb(t,e),Hb(t,t.dataTypes))}function qb(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{ad(t.dataTypes,r)||ic(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),Ub(t,e)}}function Fb(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&ic(t,"use allowUnionTypes to allow union type keyword")}function Hb(t,e){let r=t.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,nc.shouldUseRule)(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(s=>Bb(e,s))&&ic(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Bb(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function ad(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function Ub(t,e){let r=[];for(let n of t.dataTypes)ad(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function ic(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,Dt.checkStrictMode)(t,e,t.opts.strictTypes)}var mo=class{constructor(e,r,n){if((0,Gn.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Dt.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",ld(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Gn.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",J.default.errors))}result(e,r,n){this.failResult((0,B.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,B.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,B._)`${r} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?Wn.reportExtraError:Wn.reportError)(this,this.def.error,r)}$dataError(){(0,Wn.reportError)(this,this.def.$dataError||Wn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Wn.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=B.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=B.nil,r=B.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,B.or)((0,B._)`${i} === undefined`,r)),e!==B.nil&&n.assign(e,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,B.or)(s(),a());function s(){if(n.length){if(!(r instanceof B.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,B._)`${(0,ho.checkDataTypes)(c,r,o.opts.strictNumbers,ho.DataType.Wrong)}`}return B.nil}function a(){if(i.validateSchema){let c=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,B._)`!${c}(${r})`}return B.nil}}subschema(e,r){let n=(0,rc.getSubschema)(this.it,e);(0,rc.extendSubschemaData)(n,this.it,e),(0,rc.extendSubschemaMode)(n,e);let i={...this.it,...n,items:void 0,props:void 0};return Ob(i,r),i}mergeEvaluated(e,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=Dt.mergeEvaluated.props(i,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=Dt.mergeEvaluated.items(i,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(e,B.Name)),!0}};tr.KeywordCxt=mo;function cd(t,e,r,n){let i=new mo(t,r,e);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Gn.funcKeywordCode)(i,r):"macro"in r?(0,Gn.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Gn.funcKeywordCode)(i,r)}var Wb=/^\/(?:[^~]|~0|~1)*$/,Gb=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ld(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,o;if(t==="")return J.default.rootData;if(t[0]==="/"){if(!Wb.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=J.default.rootData}else{let l=Gb.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=e)throw new Error(c("property/index",p));return n[e-p]}if(p>e)throw new Error(c("data",p));if(o=r[e-p],!i)return o}let s=o,a=i.split("/");for(let l of a)l&&(o=(0,B._)`${o}${(0,B.getProperty)((0,Dt.unescapeJsonPointer)(l))}`,s=(0,B._)`${s} && ${o}`);return s;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${e}`}}tr.getData=ld});var go=S(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var oc=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};sc.default=oc});var Jn=S(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var ac=Un(),cc=class extends Error{constructor(e,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ac.resolveUrl)(e,r,n),this.missingSchema=(0,ac.normalizeId)((0,ac.getFullPath)(e,this.missingRef))}};lc.default=cc});var Kn=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.resolveSchema=nt.getCompilingSchema=nt.resolveRef=nt.compileSchema=nt.SchemaEnv=void 0;var dt=K(),zb=go(),gr=tt(),ht=Un(),ud=te(),Jb=zn(),Jr=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,ht.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};nt.SchemaEnv=Jr;function fc(t){let e=fd.call(this,t);if(e)return e;let r=(0,ht.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new dt.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),a;t.$async&&(a=s.scopeValue("Error",{ref:zb.default,code:(0,dt._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");t.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:gr.default.data,parentData:gr.default.parentData,parentDataProperty:gr.default.parentDataProperty,dataNames:[gr.default.data],dataPathArr:[dt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,dt.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:dt.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,dt._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(t),(0,Jb.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let f=s.toString();p=`${s.scopeRefs(gr.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,t));let m=new Function(`${gr.default.self}`,`${gr.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:m}),m.errors=null,m.schema=t.schema,m.schemaEnv=t,t.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:c,validateCode:f,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:y}=l;m.evaluated={props:g instanceof dt.Name?void 0:g,items:y instanceof dt.Name?void 0:y,dynamicProps:g instanceof dt.Name,dynamicItems:y instanceof dt.Name},m.source&&(m.source.evaluated=(0,dt.stringify)(m.evaluated))}return t.validate=m,t}catch(f){throw delete t.validate,delete t.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(t)}}nt.compileSchema=fc;function Kb(t,e,r){var n;r=(0,ht.resolveUrl)(this.opts.uriResolver,e,r);let i=t.refs[r];if(i)return i;let o=Qb.call(this,t,r);if(o===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new Jr({schema:s,schemaId:a,root:t,baseId:e}))}if(o!==void 0)return t.refs[r]=Yb.call(this,o)}nt.resolveRef=Kb;function Yb(t){return(0,ht.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:fc.call(this,t)}function fd(t){for(let e of this._compilations)if(Xb(e,t))return e}nt.getCompilingSchema=fd;function Xb(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function Qb(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||yo.call(this,t,e)}function yo(t,e){let r=this.opts.uriResolver.parse(e),n=(0,ht._getFullPath)(this.opts.uriResolver,r),i=(0,ht.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===i)return uc.call(this,r,t);let o=(0,ht.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=yo.call(this,t,s);return typeof a?.schema!="object"?void 0:uc.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||fc.call(this,s),o===(0,ht.normalizeId)(e)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,ht.resolveUrl)(this.opts.uriResolver,i,l)),new Jr({schema:a,schemaId:c,root:t,baseId:i})}return uc.call(this,r,s)}}nt.resolveSchema=yo;var Zb=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function uc(t,{baseId:e,schema:r,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,ud.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!Zb.has(a)&&l&&(e=(0,ht.resolveUrl)(this.opts.uriResolver,e,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,ud.schemaHasRulesButRef)(r,this.RULES)){let a=(0,ht.resolveUrl)(this.opts.uriResolver,e,r.$ref);o=yo.call(this,n,a)}let{schemaId:s}=this.opts;if(o=o||new Jr({schema:r,schemaId:s,root:n,baseId:e}),o.schema!==o.root.schema)return o}});var pd=S((OR,e0)=>{e0.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var hc=S((AR,vd)=>{"use strict";var t0=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),hd=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),pc=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),md=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),r0=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function dc(t){let e="",r=0,n=0;for(n=0;n<t.length;n++)if(r=t[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n<t.length;n++){if(r=t[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var n0=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function dd(t){return t.length=0,!0}function i0(t,e,r){if(t.length){let n=dc(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function o0(t){let e=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,s=!1,a=i0;for(let c=0;c<t.length;c++){let l=t[c];if(!(l==="["||l==="]"))if(l===":"){if(o===!0&&(s=!0),!a(i,n,r))break;if(++e>7){r.error=!0;break}c>0&&t[c-1]===":"&&(o=!0),n.push(":");continue}else if(l==="%"){if(!a(i,n,r))break;a=dd}else{i.push(l);continue}}return i.length&&(a===dd?r.zone=i.join(""):s?n.push(i.join("")):n.push(dc(i))),r.address=n.join(""),r}function gd(t){if(s0(t,":")<2)return{host:t,isIPV6:!1};let e=o0(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function s0(t,e){let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r}function a0(t){let e=t,r=[],n=-1,i=0;for(;i=e.length;){if(i===1){if(e===".")break;if(e==="/"){r.push("/");break}else{r.push(e);break}}else if(i===2){if(e[0]==="."){if(e[1]===".")break;if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&(e[1]==="."||e[1]==="/")){r.push("/");break}}else if(i===3&&e==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(e[0]==="."){if(e[1]==="."){if(e[2]==="/"){e=e.slice(3);continue}}else if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&e[1]==="."){if(e[2]==="/"){e=e.slice(2);continue}else if(e[2]==="."&&e[3]==="/"){e=e.slice(3),r.length!==0&&r.pop();continue}}if((n=e.indexOf("/",1))===-1){r.push(e);break}else r.push(e.slice(0,n)),e=e.slice(n)}return r.join("")}var c0={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},l0=/[@/?#:]/g,u0=/[@/?#]/g;function yd(t,e){let r=e?u0:l0;return r.lastIndex=0,t.replace(r,n=>c0[n])}function f0(t,e=!1){if(t.indexOf("%")===-1)return t;let r="";for(let n=0;n<t.length;n++){if(t[n]==="%"&&n+2<t.length){let i=t.slice(n+1,n+3);if(pc(i)){let o=i.toUpperCase(),s=String.fromCharCode(parseInt(o,16));e&&md(s)?r+=s:r+="%"+o,n+=2;continue}}r+=t[n]}return r}function p0(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(pc(n)){let i=n.toUpperCase(),o=String.fromCharCode(parseInt(i,16));o!=="."&&md(o)?e+=o:e+="%"+i,r+=2;continue}}r0(t[r])?e+=t[r]:e+=escape(t[r])}return e}function d0(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(pc(n)){e+="%"+n.toUpperCase(),r+=2;continue}}e+=escape(t[r])}return e}function h0(t){let e=[];if(t.userinfo!==void 0&&(e.push(t.userinfo),e.push("@")),t.host!==void 0){let r=unescape(t.host);if(!hd(r)){let n=gd(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=yd(r,!1)}e.push(r)}return(typeof t.port=="number"||typeof t.port=="string")&&(e.push(":"),e.push(String(t.port))),e.length?e.join(""):void 0}vd.exports={nonSimpleDomain:n0,recomposeAuthority:h0,reescapeHostDelimiters:yd,normalizePercentEncoding:f0,normalizePathEncoding:p0,escapePreservingEscapes:d0,removeDotSegments:a0,isIPv4:hd,isUUID:t0,normalizeIPv6:gd,stringArrayToHexStripped:dc}});var xd=S((TR,Sd)=>{"use strict";var{isUUID:m0}=hc(),g0=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,y0=["http","https","ws","wss","urn","urn:uuid"];function v0(t){return y0.indexOf(t)!==-1}function mc(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function wd(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function _d(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function w0(t){return t.secure=mc(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function _0(t){if((t.port===(mc(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function b0(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(g0);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let i=`${n}:${e.nid||t.nid}`,o=gc(i);t.path=void 0,o&&(t=o.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function S0(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),i=`${r}:${e.nid||n}`,o=gc(i);o&&(t=o.serialize(t,e));let s=t,a=t.nss;return s.path=`${n||e.nid}:${a}`,e.skipEscape=!0,s}function x0(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!m0(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function $0(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var bd={scheme:"http",domainHost:!0,parse:wd,serialize:_d},k0={scheme:"https",domainHost:bd.domainHost,parse:wd,serialize:_d},vo={scheme:"ws",domainHost:!0,parse:w0,serialize:_0},C0={scheme:"wss",domainHost:vo.domainHost,parse:vo.parse,serialize:vo.serialize},E0={scheme:"urn",parse:b0,serialize:S0,skipNormalize:!0},P0={scheme:"urn:uuid",parse:x0,serialize:$0,skipNormalize:!0},wo={http:bd,https:k0,ws:vo,wss:C0,urn:E0,"urn:uuid":P0};Object.setPrototypeOf(wo,null);function gc(t){return t&&(wo[t]||wo[t.toLowerCase()])||void 0}Sd.exports={wsIsSecure:mc,SCHEMES:wo,isValidSchemeName:v0,getSchemeHandler:gc}});var Id=S((NR,_o)=>{"use strict";var{normalizeIPv6:I0,removeDotSegments:Yn,recomposeAuthority:R0,normalizePercentEncoding:O0,normalizePathEncoding:A0,escapePreservingEscapes:T0,reescapeHostDelimiters:N0,isIPv4:M0,nonSimpleDomain:L0}=hc(),{SCHEMES:V0,getSchemeHandler:kd}=xd();function j0(t,e){return typeof t=="string"?t=B0(t,e):typeof t=="object"&&(t=Kr(yr(t,e),e)),t}function D0(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=Cd(Kr(t,n),Kr(e,n),n,!0);return n.skipEscape=!0,yr(i,n)}function Cd(t,e,r,n){let i={};return n||(t=Kr(yr(t,r),r),e=Kr(yr(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Yn(e.path||""),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Yn(e.path||""),i.query=e.query):(e.path?(e.path[0]==="/"?i.path=Yn(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path="/"+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:i.path=e.path,i.path=Yn(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function q0(t,e,r){let n=$d(t,r),i=$d(e,r);return n!==void 0&&i!==void 0&&n.toLowerCase()===i.toLowerCase()}function yr(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),i=[],o=kd(n.scheme||r.scheme);o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=O0(r.path):(r.path=T0(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let s=R0(r);if(s!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(s),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(a=Yn(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),i.push(a)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var F0=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function H0(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof t.port=="number"&&(t.port<0||t.port>65535))return"URI port is malformed."}function Ed(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1,o=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let s=t.match(F0);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let a=H0(n,s);if(a!==void 0&&(n.error=n.error||a,i=!0),n.host)if(M0(n.host)===!1){let p=I0(n.host);n.host=p.host.toLowerCase(),o=p.isIPV6}else o=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=kd(r.scheme||n.scheme);if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&L0(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(l){n.error=n.error||"Host's domain name can not be converted to ASCII: "+l}if((!c||c&&!c.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=N0(unescape(n.host),o))),n.path&&(n.path=A0(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:i}}function Kr(t,e){return Ed(t,e).parsed}function B0(t,e){return Pd(t,e).normalized}function Pd(t,e){let{parsed:r,malformedAuthorityOrPort:n}=Ed(t,e);return{normalized:n?t:yr(r,e),malformedAuthorityOrPort:n}}function $d(t,e){if(typeof t=="string"){let{normalized:r,malformedAuthorityOrPort:n}=Pd(t,e);return n?void 0:r}if(typeof t=="object")return yr(t,e)}var yc={SCHEMES:V0,normalize:j0,resolve:D0,resolveComponent:Cd,equal:q0,serialize:yr,parse:Kr};_o.exports=yc;_o.exports.default=yc;_o.exports.fastUri=yc});var Od=S(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var Rd=Id();Rd.code='require("ajv/dist/runtime/uri").default';vc.default=Rd});var Dd=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.CodeGen=Ee.Name=Ee.nil=Ee.stringify=Ee.str=Ee._=Ee.KeywordCxt=void 0;var U0=zn();Object.defineProperty(Ee,"KeywordCxt",{enumerable:!0,get:function(){return U0.KeywordCxt}});var Yr=K();Object.defineProperty(Ee,"_",{enumerable:!0,get:function(){return Yr._}});Object.defineProperty(Ee,"str",{enumerable:!0,get:function(){return Yr.str}});Object.defineProperty(Ee,"stringify",{enumerable:!0,get:function(){return Yr.stringify}});Object.defineProperty(Ee,"nil",{enumerable:!0,get:function(){return Yr.nil}});Object.defineProperty(Ee,"Name",{enumerable:!0,get:function(){return Yr.Name}});Object.defineProperty(Ee,"CodeGen",{enumerable:!0,get:function(){return Yr.CodeGen}});var W0=go(),Ld=Jn(),G0=Ga(),Xn=Kn(),z0=K(),Qn=Un(),bo=Bn(),_c=te(),Ad=pd(),J0=Od(),Vd=(t,e)=>new RegExp(t,e);Vd.code="new RegExp";var K0=["removeAdditional","useDefaults","coerceTypes"],Y0=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),X0={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."},Q0={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Td=200;function Z0(t){var e,r,n,i,o,s,a,c,l,p,f,d,m,g,y,_,b,M,q,A,T,L,Y,pe,Re;let Ce=t.strict,Fe=(e=t.code)===null||e===void 0?void 0:e.optimize,Oe=Fe===!0||Fe===void 0?1:Fe||0,at=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Vd,ct=(i=t.uriResolver)!==null&&i!==void 0?i:J0.default;return{strictSchema:(s=(o=t.strictSchema)!==null&&o!==void 0?o:Ce)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:Ce)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=t.strictTypes)!==null&&l!==void 0?l:Ce)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=t.strictTuples)!==null&&f!==void 0?f:Ce)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=t.strictRequired)!==null&&m!==void 0?m:Ce)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Oe,regExp:at}:{optimize:Oe,regExp:at},loopRequired:(y=t.loopRequired)!==null&&y!==void 0?y:Td,loopEnum:(_=t.loopEnum)!==null&&_!==void 0?_:Td,meta:(b=t.meta)!==null&&b!==void 0?b:!0,messages:(M=t.messages)!==null&&M!==void 0?M:!0,inlineRefs:(q=t.inlineRefs)!==null&&q!==void 0?q:!0,schemaId:(A=t.schemaId)!==null&&A!==void 0?A:"$id",addUsedSchema:(T=t.addUsedSchema)!==null&&T!==void 0?T:!0,validateSchema:(L=t.validateSchema)!==null&&L!==void 0?L:!0,validateFormats:(Y=t.validateFormats)!==null&&Y!==void 0?Y:!0,unicodeRegExp:(pe=t.unicodeRegExp)!==null&&pe!==void 0?pe:!0,int32range:(Re=t.int32range)!==null&&Re!==void 0?Re:!0,uriResolver:ct}}var Zn=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...Z0(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new z0.ValueScope({scope:{},prefixes:Y0,es5:r,lines:n}),this.logger=o2(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,G0.getRules)(),Nd.call(this,X0,e,"NOT SUPPORTED"),Nd.call(this,Q0,e,"DEPRECATED","warn"),this._metaOpts=n2.call(this),e.formats&&t2.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&r2.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e2.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,i=Ad;n==="id"&&(i={...Ad},i.id=i.$id,delete i.$id),r&&e&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,e,r);async function i(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||s.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function s(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof Ld.default))throw f;return a.call(this,f),await c.call(this,f.missingSchema),s.call(this,p)}}function a({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(e,r,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,i);return this}let o;if(typeof e=="object"){let{schemaId:s}=this.opts;if(o=e[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,Qn.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,i,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,e);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(e){let r;for(;typeof(r=Md.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Xn.SchemaEnv({schema:{},schemaId:n});if(r=Xn.resolveSchema.call(this,i,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Md.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,Qn.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(a2.call(this,n,r),!r)return(0,_c.eachItem)(n,o=>wc.call(this,o)),this;l2.call(this,r);let i={...r,type:(0,bo.getJSONTypes)(r.type),schemaType:(0,bo.getJSONTypes)(r.schemaType)};return(0,_c.eachItem)(n,i.type.length===0?o=>wc.call(this,o,i):o=>i.type.forEach(s=>wc.call(this,o,i,s))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===e);i>=0&&n.rules.splice(i,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of r){let o=i.split("/").slice(1),s=e;for(let a of o)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,p=s[a];l&&p&&(s[a]=jd(p))}}return e}_removeAllSchemas(e,r){for(let n in e){let i=e[n];(!r||r.test(n))&&(typeof i=="string"?delete e[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[n]))}}_addSchema(e,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof e=="object")s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,Qn.normalizeId)(s||n);let l=Qn.getSchemaRefs.call(this,e,n);return c=new Xn.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Xn.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{Xn.compileSchema.call(this,e)}finally{this.opts=r}}};Zn.ValidationError=W0.default;Zn.MissingRefError=Ld.default;Ee.default=Zn;function Nd(t,e,r,n="error"){for(let i in t){let o=i;o in e&&this.logger[n](`${r}: option ${i}. ${t[o]}`)}}function Md(t){return t=(0,Qn.normalizeId)(t),this.schemas[t]||this.refs[t]}function e2(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function t2(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function r2(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function n2(){let t={...this.opts};for(let e of K0)delete t[e];return t}var i2={log(){},warn(){},error(){}};function o2(t){if(t===!1)return i2;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var s2=/^[a-z_$][a-z0-9_$:-]*$/i;function a2(t,e){let{RULES:r}=this;if((0,_c.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!s2.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function wc(t,e,r){var n;let i=e?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=i?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,bo.getJSONTypes)(e.type),schemaType:(0,bo.getJSONTypes)(e.schemaType)}};e.before?c2.call(this,s,a,e.before):s.rules.push(a),o.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function c2(t,e,r){let n=t.rules.findIndex(i=>i.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function l2(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=jd(e)),t.validateSchema=this.compile(e,!0))}var u2={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jd(t){return{anyOf:[t,u2]}}});var qd=S(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var f2={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};bc.default=f2});var $o=S(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.callRef=vr.getValidate=void 0;var p2=Jn(),Fd=rt(),Ge=K(),Xr=tt(),Hd=Kn(),So=te(),d2={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Hd.resolveRef.call(c,l,i,r);if(p===void 0)throw new p2.default(n.opts.uriResolver,i,r);if(p instanceof Hd.SchemaEnv)return d(p);return m(p);function f(){if(o===l)return xo(t,s,o,o.$async);let g=e.scopeValue("root",{ref:l});return xo(t,(0,Ge._)`${g}.validate`,l,l.$async)}function d(g){let y=Bd(t,g);xo(t,y,g,g.$async)}function m(g){let y=e.scopeValue("schema",a.code.source===!0?{ref:g,code:(0,Ge.stringify)(g)}:{ref:g}),_=e.name("valid"),b=t.subschema({schema:g,dataTypes:[],schemaPath:Ge.nil,topSchemaRef:y,errSchemaPath:r},_);t.mergeEvaluated(b),t.ok(_)}}};function Bd(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,Ge._)`${r.scopeValue("wrapper",{ref:e})}.validate`}vr.getValidate=Bd;function xo(t,e,r,n){let{gen:i,it:o}=t,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Xr.default.this:Ge.nil;n?p():f();function p(){if(!a.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ge._)`await ${(0,Fd.callValidateCode)(t,e,l)}`),m(e),s||i.assign(g,!0)},y=>{i.if((0,Ge._)`!(${y} instanceof ${o.ValidationError})`,()=>i.throw(y)),d(y),s||i.assign(g,!1)}),t.ok(g)}function f(){t.result((0,Fd.callValidateCode)(t,e,l),()=>m(e),()=>d(e))}function d(g){let y=(0,Ge._)`${g}.errors`;i.assign(Xr.default.vErrors,(0,Ge._)`${Xr.default.vErrors} === null ? ${y} : ${Xr.default.vErrors}.concat(${y})`),i.assign(Xr.default.errors,(0,Ge._)`${Xr.default.vErrors}.length`)}function m(g){var y;if(!o.opts.unevaluated)return;let _=(y=r?.validate)===null||y===void 0?void 0:y.evaluated;if(o.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(o.props=So.mergeEvaluated.props(i,_.props,o.props));else{let b=i.var("props",(0,Ge._)`${g}.evaluated.props`);o.props=So.mergeEvaluated.props(i,b,o.props,Ge.Name)}if(o.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(o.items=So.mergeEvaluated.items(i,_.items,o.items));else{let b=i.var("items",(0,Ge._)`${g}.evaluated.items`);o.items=So.mergeEvaluated.items(i,b,o.items,Ge.Name)}}}vr.callRef=xo;vr.default=d2});var Ud=S(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var h2=qd(),m2=$o(),g2=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",h2.default,m2.default];Sc.default=g2});var Wd=S(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var ko=K(),rr=ko.operators,Co={maximum:{okStr:"<=",ok:rr.LTE,fail:rr.GT},minimum:{okStr:">=",ok:rr.GTE,fail:rr.LT},exclusiveMaximum:{okStr:"<",ok:rr.LT,fail:rr.GTE},exclusiveMinimum:{okStr:">",ok:rr.GT,fail:rr.LTE}},y2={message:({keyword:t,schemaCode:e})=>(0,ko.str)`must be ${Co[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,ko._)`{comparison: ${Co[t].okStr}, limit: ${e}}`},v2={keyword:Object.keys(Co),type:"number",schemaType:"number",$data:!0,error:y2,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,ko._)`${r} ${Co[e].fail} ${n} || isNaN(${r})`)}};xc.default=v2});var Gd=S($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var ei=K(),w2={message:({schemaCode:t})=>(0,ei.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,ei._)`{multipleOf: ${t}}`},_2={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:w2,code(t){let{gen:e,data:r,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,s=e.let("res"),a=o?(0,ei._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,ei._)`${s} !== parseInt(${s})`;t.fail$data((0,ei._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};$c.default=_2});var Jd=S(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});function zd(t){let e=t.length,r=0,n=0,i;for(;n<e;)r++,i=t.charCodeAt(n++),i>=55296&&i<=56319&&n<e&&(i=t.charCodeAt(n),(i&64512)===56320&&n++);return r}kc.default=zd;zd.code='require("ajv/dist/runtime/ucs2length").default'});var Kd=S(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var wr=K(),b2=te(),S2=Jd(),x2={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,wr.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,wr._)`{limit: ${t}}`},$2={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:x2,code(t){let{keyword:e,data:r,schemaCode:n,it:i}=t,o=e==="maxLength"?wr.operators.GT:wr.operators.LT,s=i.opts.unicode===!1?(0,wr._)`${r}.length`:(0,wr._)`${(0,b2.useFunc)(t.gen,S2.default)}(${r})`;t.fail$data((0,wr._)`${s} ${o} ${n}`)}};Cc.default=$2});var Yd=S(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var k2=rt(),C2=te(),Qr=K(),E2={message:({schemaCode:t})=>(0,Qr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Qr._)`{pattern: ${t}}`},P2={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:E2,code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:o,it:s}=t,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,l=c.code==="new RegExp"?(0,Qr._)`new RegExp`:(0,C2.useFunc)(e,c),p=e.let("valid");e.try(()=>e.assign(p,(0,Qr._)`${l}(${o}, ${a}).test(${r})`),()=>e.assign(p,!1)),t.fail$data((0,Qr._)`!${p}`)}else{let c=(0,k2.usePattern)(t,i);t.fail$data((0,Qr._)`!${c}.test(${r})`)}}};Ec.default=P2});var Xd=S(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var ti=K(),I2={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,ti.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,ti._)`{limit: ${t}}`},R2={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:I2,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxProperties"?ti.operators.GT:ti.operators.LT;t.fail$data((0,ti._)`Object.keys(${r}).length ${i} ${n}`)}};Pc.default=R2});var Qd=S(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var ri=rt(),ni=K(),O2=te(),A2={message:({params:{missingProperty:t}})=>(0,ni.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,ni._)`{missingProperty: ${t}}`},T2={keyword:"required",type:"object",schemaType:"array",$data:!0,error:A2,code(t){let{gen:e,schema:r,schemaCode:n,data:i,$data:o,it:s}=t,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():p(),a.strictRequired){let m=t.parentSchema.properties,{definedProperties:g}=t.it;for(let y of r)if(m?.[y]===void 0&&!g.has(y)){let _=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${y}" is not defined at "${_}" (strictRequired)`;(0,O2.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)t.block$data(ni.nil,f);else for(let m of r)(0,ri.checkReportMissingProp)(t,m)}function p(){let m=e.let("missing");if(c||o){let g=e.let("valid",!0);t.block$data(g,()=>d(m,g)),t.ok(g)}else e.if((0,ri.checkMissingProp)(t,r,m)),(0,ri.reportMissingProp)(t,m),e.else()}function f(){e.forOf("prop",n,m=>{t.setParams({missingProperty:m}),e.if((0,ri.noPropertyInData)(e,i,m,a.ownProperties),()=>t.error())})}function d(m,g){t.setParams({missingProperty:m}),e.forOf(m,n,()=>{e.assign(g,(0,ri.propertyInData)(e,i,m,a.ownProperties)),e.if((0,ni.not)(g),()=>{t.error(),e.break()})},ni.nil)}}};Ic.default=T2});var Zd=S(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var ii=K(),N2={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,ii.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,ii._)`{limit: ${t}}`},M2={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:N2,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxItems"?ii.operators.GT:ii.operators.LT;t.fail$data((0,ii._)`${r}.length ${i} ${n}`)}};Rc.default=M2});var Eo=S(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var eh=ec();eh.code='require("ajv/dist/runtime/equal").default';Oc.default=eh});var th=S(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var Ac=Bn(),Pe=K(),L2=te(),V2=Eo(),j2={message:({params:{i:t,j:e}})=>(0,Pe.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Pe._)`{i: ${t}, j: ${e}}`},D2={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:j2,code(t){let{gen:e,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=t;if(!n&&!i)return;let c=e.let("valid"),l=o.items?(0,Ac.getSchemaTypes)(o.items):[];t.block$data(c,p,(0,Pe._)`${s} === false`),t.ok(c);function p(){let g=e.let("i",(0,Pe._)`${r}.length`),y=e.let("j");t.setParams({i:g,j:y}),e.assign(c,!0),e.if((0,Pe._)`${g} > 1`,()=>(f()?d:m)(g,y))}function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}function d(g,y){let _=e.name("item"),b=(0,Ac.checkDataTypes)(l,_,a.opts.strictNumbers,Ac.DataType.Wrong),M=e.const("indices",(0,Pe._)`{}`);e.for((0,Pe._)`;${g}--;`,()=>{e.let(_,(0,Pe._)`${r}[${g}]`),e.if(b,(0,Pe._)`continue`),l.length>1&&e.if((0,Pe._)`typeof ${_} == "string"`,(0,Pe._)`${_} += "_"`),e.if((0,Pe._)`typeof ${M}[${_}] == "number"`,()=>{e.assign(y,(0,Pe._)`${M}[${_}]`),t.error(),e.assign(c,!1).break()}).code((0,Pe._)`${M}[${_}] = ${g}`)})}function m(g,y){let _=(0,L2.useFunc)(e,V2.default),b=e.name("outer");e.label(b).for((0,Pe._)`;${g}--;`,()=>e.for((0,Pe._)`${y} = ${g}; ${y}--;`,()=>e.if((0,Pe._)`${_}(${r}[${g}], ${r}[${y}])`,()=>{t.error(),e.assign(c,!1).break(b)})))}}};Tc.default=D2});var rh=S(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var Nc=K(),q2=te(),F2=Eo(),H2={message:"must be equal to constant",params:({schemaCode:t})=>(0,Nc._)`{allowedValue: ${t}}`},B2={keyword:"const",$data:!0,error:H2,code(t){let{gen:e,data:r,$data:n,schemaCode:i,schema:o}=t;n||o&&typeof o=="object"?t.fail$data((0,Nc._)`!${(0,q2.useFunc)(e,F2.default)}(${r}, ${i})`):t.fail((0,Nc._)`${o} !== ${r}`)}};Mc.default=B2});var nh=S(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var oi=K(),U2=te(),W2=Eo(),G2={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,oi._)`{allowedValues: ${t}}`},z2={keyword:"enum",schemaType:"array",$data:!0,error:G2,code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:o,it:s}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,c,l=()=>c??(c=(0,U2.useFunc)(e,W2.default)),p;if(a||n)p=e.let("valid"),t.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=e.const("vSchema",o);p=(0,oi.or)(...i.map((g,y)=>d(m,y)))}t.pass(p);function f(){e.assign(p,!1),e.forOf("v",o,m=>e.if((0,oi._)`${l()}(${r}, ${m})`,()=>e.assign(p,!0).break()))}function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,oi._)`${l()}(${r}, ${m}[${g}])`:(0,oi._)`${r} === ${y}`}}};Lc.default=z2});var ih=S(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var J2=Wd(),K2=Gd(),Y2=Kd(),X2=Yd(),Q2=Xd(),Z2=Qd(),e1=Zd(),t1=th(),r1=rh(),n1=nh(),i1=[J2.default,K2.default,Y2.default,X2.default,Q2.default,Z2.default,e1.default,t1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},r1.default,n1.default];Vc.default=i1});var Dc=S(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.validateAdditionalItems=void 0;var _r=K(),jc=te(),o1={message:({params:{len:t}})=>(0,_r.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,_r._)`{limit: ${t}}`},s1={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:o1,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,jc.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}oh(t,n)}};function oh(t,e){let{gen:r,schema:n,data:i,keyword:o,it:s}=t;s.items=!0;let a=r.const("len",(0,_r._)`${i}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,_r._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,jc.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,_r._)`${a} <= ${e.length}`);r.if((0,_r.not)(l),()=>c(l)),t.ok(l)}function c(l){r.forRange("i",e.length,a,p=>{t.subschema({keyword:o,dataProp:p,dataPropType:jc.Type.Num},l),s.allErrors||r.if((0,_r.not)(l),()=>r.break())})}}si.validateAdditionalItems=oh;si.default=s1});var qc=S(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.validateTuple=void 0;var sh=K(),Po=te(),a1=rt(),c1={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return ah(t,"additionalItems",e);r.items=!0,!(0,Po.alwaysValidSchema)(r,e)&&t.ok((0,a1.validateArray)(t))}};function ah(t,e,r=t.schema){let{gen:n,parentSchema:i,data:o,keyword:s,it:a}=t;p(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Po.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,sh._)`${o}.length`);r.forEach((f,d)=>{(0,Po.alwaysValidSchema)(a,f)||(n.if((0,sh._)`${l} > ${d}`,()=>t.subschema({keyword:s,schemaProp:d,dataProp:d},c)),t.ok(c))});function p(f){let{opts:d,errSchemaPath:m}=a,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[e]===!1);if(d.strictTuples&&!y){let _=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${m}"`;(0,Po.checkStrictMode)(a,_,d.strictTuples)}}}ai.validateTuple=ah;ai.default=c1});var ch=S(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var l1=qc(),u1={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,l1.validateTuple)(t,"items")};Fc.default=u1});var uh=S(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var lh=K(),f1=te(),p1=rt(),d1=Dc(),h1={message:({params:{len:t}})=>(0,lh.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,lh._)`{limit: ${t}}`},m1={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:h1,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:i}=r;n.items=!0,!(0,f1.alwaysValidSchema)(n,e)&&(i?(0,d1.validateAdditionalItems)(t,i):t.ok((0,p1.validateArray)(t)))}};Hc.default=m1});var fh=S(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var it=K(),Io=te(),g1={message:({params:{min:t,max:e}})=>e===void 0?(0,it.str)`must contain at least ${t} valid item(s)`:(0,it.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,it._)`{minContains: ${t}}`:(0,it._)`{minContains: ${t}, maxContains: ${e}}`},y1={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:g1,code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:o}=t,s,a,{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let p=e.const("len",(0,it._)`${i}.length`);if(t.setParams({min:s,max:a}),a===void 0&&s===0){(0,Io.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Io.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Io.alwaysValidSchema)(o,r)){let y=(0,it._)`${p} >= ${s}`;a!==void 0&&(y=(0,it._)`${y} && ${p} <= ${a}`),t.pass(y);return}o.items=!0;let f=e.name("valid");a===void 0&&s===1?m(f,()=>e.if(f,()=>e.break())):s===0?(e.let(f,!0),a!==void 0&&e.if((0,it._)`${i}.length > 0`,d)):(e.let(f,!1),d()),t.result(f,()=>t.reset());function d(){let y=e.name("_valid"),_=e.let("count",0);m(y,()=>e.if(y,()=>g(_)))}function m(y,_){e.forRange("i",0,p,b=>{t.subschema({keyword:"contains",dataProp:b,dataPropType:Io.Type.Num,compositeRule:!0},y),_()})}function g(y){e.code((0,it._)`${y}++`),a===void 0?e.if((0,it._)`${y} >= ${s}`,()=>e.assign(f,!0).break()):(e.if((0,it._)`${y} > ${a}`,()=>e.assign(f,!1).break()),s===1?e.assign(f,!0):e.if((0,it._)`${y} >= ${s}`,()=>e.assign(f,!0)))}}};Bc.default=y1});var Ro=S(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.validateSchemaDeps=St.validatePropertyDeps=St.error=void 0;var Uc=K(),v1=te(),ci=rt();St.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,Uc.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,Uc._)`{property: ${t},
|
|
64
|
+
|| ${s} === "boolean" || ${i} === null`).assign(a,(0,Q._)`[${i}]`)}}}function q_({gen:t,parentData:e,parentDataProperty:r},n){t.if((0,Q._)`${e} !== undefined`,()=>t.assign((0,Q._)`${e}[${r}]`,n))}function Ja(t,e,r,n=Wr.Correct){let i=n===Wr.Correct?Q.operators.EQ:Q.operators.NEQ,o;switch(t){case"null":return(0,Q._)`${e} ${i} null`;case"array":o=(0,Q._)`Array.isArray(${e})`;break;case"object":o=(0,Q._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":o=s((0,Q._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":o=s();break;default:return(0,Q._)`typeof ${e} ${i} ${t}`}return n===Wr.Correct?o:(0,Q.not)(o);function s(a=Q.nil){return(0,Q.and)((0,Q._)`typeof ${e} == "number"`,a,r?(0,Q._)`isFinite(${e})`:Q.nil)}}Ne.checkDataType=Ja;function Ka(t,e,r,n){if(t.length===1)return Ja(t[0],e,r,n);let i,o=(0,Ap.toHash)(t);if(o.array&&o.object){let s=(0,Q._)`typeof ${e} != "object"`;i=o.null?s:(0,Q._)`!${e} || ${s}`,delete o.null,delete o.array,delete o.object}else i=Q.nil;o.number&&delete o.integer;for(let s in o)i=(0,Q.and)(i,Ja(s,e,r,n));return i}Ne.checkDataTypes=Ka;var F_={message:({schema:t})=>`must be ${t}`,params:({schema:t,schemaValue:e})=>typeof t=="string"?(0,Q._)`{type: ${t}}`:(0,Q._)`{type: ${e}}`};function Ya(t){let e=H_(t);(0,M_.reportError)(e,F_)}Ne.reportTypeError=Ya;function H_(t){let{gen:e,data:r,schema:n}=t,i=(0,Ap.schemaRefOrVal)(t,n,"type");return{gen:e,keyword:"type",data:r,schema:n.type,schemaCode:i,schemaValue:i,parentSchema:n,params:{},it:t}}});var Lp=S(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.assignDefaults=void 0;var Gr=K(),B_=te();function U_(t,e){let{properties:r,items:n}=t.schema;if(e==="object"&&r)for(let i in r)Mp(t,i,r[i].default);else e==="array"&&Array.isArray(n)&&n.forEach((i,o)=>Mp(t,o,i.default))}fo.assignDefaults=U_;function Mp(t,e,r){let{gen:n,compositeRule:i,data:o,opts:s}=t;if(r===void 0)return;let a=(0,Gr._)`${o}${(0,Gr.getProperty)(e)}`;if(i){(0,B_.checkStrictMode)(t,`default is ignored for: ${a}`);return}let c=(0,Gr._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Gr._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Gr._)`${a} = ${(0,Gr.stringify)(r)}`)}});var rt=S(le=>{"use strict";Object.defineProperty(le,"__esModule",{value:!0});le.validateUnion=le.validateArray=le.usePattern=le.callValidateCode=le.schemaProperties=le.allSchemaProperties=le.noPropertyInData=le.propertyInData=le.isOwnProperty=le.hasPropFunc=le.reportMissingProp=le.checkMissingProp=le.checkReportMissingProp=void 0;var me=K(),Xa=te(),Zt=tt(),W_=te();function G_(t,e){let{gen:r,data:n,it:i}=t;r.if(Za(r,n,e,i.opts.ownProperties),()=>{t.setParams({missingProperty:(0,me._)`${e}`},!0),t.error()})}le.checkReportMissingProp=G_;function z_({gen:t,data:e,it:{opts:r}},n,i){return(0,me.or)(...n.map(o=>(0,me.and)(Za(t,e,o,r.ownProperties),(0,me._)`${i} = ${o}`)))}le.checkMissingProp=z_;function J_(t,e){t.setParams({missingProperty:e},!0),t.error()}le.reportMissingProp=J_;function Vp(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,me._)`Object.prototype.hasOwnProperty`})}le.hasPropFunc=Vp;function Qa(t,e,r){return(0,me._)`${Vp(t)}.call(${e}, ${r})`}le.isOwnProperty=Qa;function K_(t,e,r,n){let i=(0,me._)`${e}${(0,me.getProperty)(r)} !== undefined`;return n?(0,me._)`${i} && ${Qa(t,e,r)}`:i}le.propertyInData=K_;function Za(t,e,r,n){let i=(0,me._)`${e}${(0,me.getProperty)(r)} === undefined`;return n?(0,me.or)(i,(0,me.not)(Qa(t,e,r))):i}le.noPropertyInData=Za;function jp(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}le.allSchemaProperties=jp;function Y_(t,e){return jp(e).filter(r=>!(0,Xa.alwaysValidSchema)(t,e[r]))}le.schemaProperties=Y_;function X_({schemaCode:t,data:e,it:{gen:r,topSchemaRef:n,schemaPath:i,errorPath:o},it:s},a,c,l){let p=l?(0,me._)`${t}, ${e}, ${n}${i}`:e,f=[[Zt.default.instancePath,(0,me.strConcat)(Zt.default.instancePath,o)],[Zt.default.parentData,s.parentData],[Zt.default.parentDataProperty,s.parentDataProperty],[Zt.default.rootData,Zt.default.rootData]];s.opts.dynamicRef&&f.push([Zt.default.dynamicAnchors,Zt.default.dynamicAnchors]);let d=(0,me._)`${p}, ${r.object(...f)}`;return c!==me.nil?(0,me._)`${a}.call(${c}, ${d})`:(0,me._)`${a}(${d})`}le.callValidateCode=X_;var Q_=(0,me._)`new RegExp`;function Z_({gen:t,it:{opts:e}},r){let n=e.unicodeRegExp?"u":"",{regExp:i}=e.code,o=i(r,n);return t.scopeValue("pattern",{key:o.toString(),ref:o,code:(0,me._)`${i.code==="new RegExp"?Q_:(0,W_.useFunc)(t,i)}(${r}, ${n})`})}le.usePattern=Z_;function eb(t){let{gen:e,data:r,keyword:n,it:i}=t,o=e.name("valid");if(i.allErrors){let a=e.let("valid",!0);return s(()=>e.assign(a,!1)),a}return e.var(o,!0),s(()=>e.break()),o;function s(a){let c=e.const("len",(0,me._)`${r}.length`);e.forRange("i",0,c,l=>{t.subschema({keyword:n,dataProp:l,dataPropType:Xa.Type.Num},o),e.if((0,me.not)(o),a)})}}le.validateArray=eb;function tb(t){let{gen:e,schema:r,keyword:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Xa.alwaysValidSchema)(i,c))&&!i.opts.unevaluated)return;let s=e.let("valid",!1),a=e.name("_valid");e.block(()=>r.forEach((c,l)=>{let p=t.subschema({keyword:n,schemaProp:l,compositeRule:!0},a);e.assign(s,(0,me._)`${s} || ${a}`),t.mergeValidEvaluated(p,a)||e.if((0,me.not)(s))})),t.result(s,()=>t.reset(),()=>t.error(!0))}le.validateUnion=tb});var Fp=S(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.validateKeywordUsage=_t.validSchemaType=_t.funcKeywordCode=_t.macroKeywordCode=void 0;var je=K(),mr=tt(),rb=rt(),nb=Hn();function ib(t,e){let{gen:r,keyword:n,schema:i,parentSchema:o,it:s}=t,a=e.macro.call(s.self,i,o,s),c=qp(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let l=r.name("valid");t.subschema({schema:a,schemaPath:je.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},l),t.pass(l,()=>t.error(!0))}_t.macroKeywordCode=ib;function ob(t,e){var r;let{gen:n,keyword:i,schema:o,parentSchema:s,$data:a,it:c}=t;ab(c,e);let l=!a&&e.compile?e.compile.call(c.self,o,s,c):e.validate,p=qp(n,i,l),f=n.let("valid");t.block$data(f,d),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function d(){if(e.errors===!1)y(),e.modifying&&Dp(t),_(()=>t.error());else{let b=e.async?m():g();e.modifying&&Dp(t),_(()=>sb(t,b))}}function m(){let b=n.let("ruleErrs",null);return n.try(()=>y((0,je._)`await `),M=>n.assign(f,!1).if((0,je._)`${M} instanceof ${c.ValidationError}`,()=>n.assign(b,(0,je._)`${M}.errors`),()=>n.throw(M))),b}function g(){let b=(0,je._)`${p}.errors`;return n.assign(b,null),y(je.nil),b}function y(b=e.async?(0,je._)`await `:je.nil){let M=c.opts.passContext?mr.default.this:mr.default.self,q=!("compile"in e&&!a||e.schema===!1);n.assign(f,(0,je._)`${b}${(0,rb.callValidateCode)(t,p,M,q)}`,e.modifying)}function _(b){var M;n.if((0,je.not)((M=e.valid)!==null&&M!==void 0?M:f),b)}}_t.funcKeywordCode=ob;function Dp(t){let{gen:e,data:r,it:n}=t;e.if(n.parentData,()=>e.assign(r,(0,je._)`${n.parentData}[${n.parentDataProperty}]`))}function sb(t,e){let{gen:r}=t;r.if((0,je._)`Array.isArray(${e})`,()=>{r.assign(mr.default.vErrors,(0,je._)`${mr.default.vErrors} === null ? ${e} : ${mr.default.vErrors}.concat(${e})`).assign(mr.default.errors,(0,je._)`${mr.default.vErrors}.length`),(0,nb.extendErrors)(t)},()=>t.error())}function ab({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}function qp(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,je.stringify)(r)})}function cb(t,e,r=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(t):n==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==n||r&&typeof t>"u")}_t.validSchemaType=cb;function lb({schema:t,opts:e,self:r,errSchemaPath:n},i,o){if(Array.isArray(i.keyword)?!i.keyword.includes(o):i.keyword!==o)throw new Error("ajv implementation error");let s=i.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(t,a)))throw new Error(`parent schema must have dependencies of ${o}: ${s.join(",")}`);if(i.validateSchema&&!i.validateSchema(t[o])){let c=`keyword "${o}" value is invalid at path "${n}": `+r.errorsText(i.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}_t.validateKeywordUsage=lb});var Bp=S(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.extendSubschemaMode=er.extendSubschemaData=er.getSubschema=void 0;var bt=K(),Hp=te();function ub(t,{keyword:e,schemaProp:r,schema:n,schemaPath:i,errSchemaPath:o,topSchemaRef:s}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let a=t.schema[e];return r===void 0?{schema:a,schemaPath:(0,bt._)`${t.schemaPath}${(0,bt.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:a[r],schemaPath:(0,bt._)`${t.schemaPath}${(0,bt.getProperty)(e)}${(0,bt.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,Hp.escapeFragment)(r)}`}}if(n!==void 0){if(i===void 0||o===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:i,topSchemaRef:s,errSchemaPath:o}}throw new Error('either "keyword" or "schema" must be passed')}er.getSubschema=ub;function fb(t,e,{dataProp:r,dataPropType:n,data:i,dataTypes:o,propertyName:s}){if(i!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=e;if(r!==void 0){let{errorPath:l,dataPathArr:p,opts:f}=e,d=a.let("data",(0,bt._)`${e.data}${(0,bt.getProperty)(r)}`,!0);c(d),t.errorPath=(0,bt.str)`${l}${(0,Hp.getErrorPath)(r,n,f.jsPropertySyntax)}`,t.parentDataProperty=(0,bt._)`${r}`,t.dataPathArr=[...p,t.parentDataProperty]}if(i!==void 0){let l=i instanceof bt.Name?i:a.let("data",i,!0);c(l),s!==void 0&&(t.propertyName=s)}o&&(t.dataTypes=o);function c(l){t.data=l,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,l]}}er.extendSubschemaData=fb;function pb(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:n,createErrors:i,allErrors:o}){n!==void 0&&(t.compositeRule=n),i!==void 0&&(t.createErrors=i),o!==void 0&&(t.allErrors=o),t.jtdDiscriminator=e,t.jtdMetadata=r}er.extendSubschemaMode=pb});var ec=S(($R,Up)=>{"use strict";Up.exports=function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var n,i,o;if(Array.isArray(e)){if(n=e.length,n!=r.length)return!1;for(i=n;i--!==0;)if(!t(e[i],r[i]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(r).length)return!1;for(i=n;i--!==0;)if(!Object.prototype.hasOwnProperty.call(r,o[i]))return!1;for(i=n;i--!==0;){var s=o[i];if(!t(e[s],r[s]))return!1}return!0}return e!==e&&r!==r}});var Gp=S((kR,Wp)=>{"use strict";var tr=Wp.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var n=typeof r=="function"?r:r.pre||function(){},i=r.post||function(){};po(e,n,i,t,"",t)};tr.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};tr.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};tr.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};tr.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 po(t,e,r,n,i,o,s,a,c,l){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,i,o,s,a,c,l);for(var p in n){var f=n[p];if(Array.isArray(f)){if(p in tr.arrayKeywords)for(var d=0;d<f.length;d++)po(t,e,r,f[d],i+"/"+p+"/"+d,o,i,p,n,d)}else if(p in tr.propsKeywords){if(f&&typeof f=="object")for(var m in f)po(t,e,r,f[m],i+"/"+p+"/"+db(m),o,i,p,n,m)}else(p in tr.keywords||t.allKeys&&!(p in tr.skipKeywords))&&po(t,e,r,f,i+"/"+p,o,i,p,n)}r(n,i,o,s,a,c,l)}}function db(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Un=S(We=>{"use strict";Object.defineProperty(We,"__esModule",{value:!0});We.getSchemaRefs=We.resolveUrl=We.normalizeId=We._getFullPath=We.getFullPath=We.inlineRef=void 0;var hb=te(),mb=ec(),gb=Gp(),yb=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function vb(t,e=!0){return typeof t=="boolean"?!0:e===!0?!tc(t):e?zp(t)<=e:!1}We.inlineRef=vb;var wb=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function tc(t){for(let e in t){if(wb.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(tc)||typeof r=="object"&&tc(r))return!0}return!1}function zp(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!yb.has(r)&&(typeof t[r]=="object"&&(0,hb.eachItem)(t[r],n=>e+=zp(n)),e===1/0))return 1/0}return e}function Jp(t,e="",r){r!==!1&&(e=zr(e));let n=t.parse(e);return Kp(t,n)}We.getFullPath=Jp;function Kp(t,e){return t.serialize(e).split("#")[0]+"#"}We._getFullPath=Kp;var _b=/#\/?$/;function zr(t){return t?t.replace(_b,""):""}We.normalizeId=zr;function bb(t,e,r){return r=zr(r),t.resolve(e,r)}We.resolveUrl=bb;var Sb=/^[a-z_][-a-z0-9._]*$/i;function xb(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,i=zr(t[r]||e),o={"":i},s=Jp(n,i,!1),a={},c=new Set;return gb(t,{allKeys:!0},(f,d,m,g)=>{if(g===void 0)return;let y=s+d,_=o[g];typeof f[r]=="string"&&(_=b.call(this,f[r])),M.call(this,f.$anchor),M.call(this,f.$dynamicAnchor),o[d]=_;function b(q){let A=this.opts.uriResolver.resolve;if(q=zr(_?A(_,q):q),c.has(q))throw p(q);c.add(q);let T=this.refs[q];return typeof T=="string"&&(T=this.refs[T]),typeof T=="object"?l(f,T.schema,q):q!==zr(y)&&(q[0]==="#"?(l(f,a[q],q),a[q]=f):this.refs[q]=y),q}function M(q){if(typeof q=="string"){if(!Sb.test(q))throw new Error(`invalid anchor "${q}"`);b.call(this,`#${q}`)}}}),a;function l(f,d,m){if(d!==void 0&&!mb(f,d))throw p(m)}function p(f){return new Error(`reference "${f}" resolves to more than one schema`)}}We.getSchemaRefs=xb});var zn=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.getData=rr.KeywordCxt=rr.validateFunctionCode=void 0;var ed=Ip(),Yp=Bn(),nc=za(),ho=Bn(),$b=Lp(),Gn=Fp(),rc=Bp(),B=K(),J=tt(),kb=Un(),Dt=te(),Wn=Hn();function Cb(t){if(nd(t)&&(id(t),rd(t))){Ib(t);return}td(t,()=>(0,ed.topBoolOrEmptySchema)(t))}rr.validateFunctionCode=Cb;function td({gen:t,validateName:e,schema:r,schemaEnv:n,opts:i},o){i.code.es5?t.func(e,(0,B._)`${J.default.data}, ${J.default.valCxt}`,n.$async,()=>{t.code((0,B._)`"use strict"; ${Xp(r,i)}`),Pb(t,i),t.code(o)}):t.func(e,(0,B._)`${J.default.data}, ${Eb(i)}`,n.$async,()=>t.code(Xp(r,i)).code(o))}function Eb(t){return(0,B._)`{${J.default.instancePath}="", ${J.default.parentData}, ${J.default.parentDataProperty}, ${J.default.rootData}=${J.default.data}${t.dynamicRef?(0,B._)`, ${J.default.dynamicAnchors}={}`:B.nil}}={}`}function Pb(t,e){t.if(J.default.valCxt,()=>{t.var(J.default.instancePath,(0,B._)`${J.default.valCxt}.${J.default.instancePath}`),t.var(J.default.parentData,(0,B._)`${J.default.valCxt}.${J.default.parentData}`),t.var(J.default.parentDataProperty,(0,B._)`${J.default.valCxt}.${J.default.parentDataProperty}`),t.var(J.default.rootData,(0,B._)`${J.default.valCxt}.${J.default.rootData}`),e.dynamicRef&&t.var(J.default.dynamicAnchors,(0,B._)`${J.default.valCxt}.${J.default.dynamicAnchors}`)},()=>{t.var(J.default.instancePath,(0,B._)`""`),t.var(J.default.parentData,(0,B._)`undefined`),t.var(J.default.parentDataProperty,(0,B._)`undefined`),t.var(J.default.rootData,J.default.data),e.dynamicRef&&t.var(J.default.dynamicAnchors,(0,B._)`{}`)})}function Ib(t){let{schema:e,opts:r,gen:n}=t;td(t,()=>{r.$comment&&e.$comment&&sd(t),Nb(t),n.let(J.default.vErrors,null),n.let(J.default.errors,0),r.unevaluated&&Rb(t),od(t),Vb(t)})}function Rb(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,B._)`${r}.evaluated`),e.if((0,B._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,B._)`${t.evaluated}.props`,(0,B._)`undefined`)),e.if((0,B._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,B._)`${t.evaluated}.items`,(0,B._)`undefined`))}function Xp(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,B._)`/*# sourceURL=${r} */`:B.nil}function Ob(t,e){if(nd(t)&&(id(t),rd(t))){Ab(t,e);return}(0,ed.boolOrEmptySchema)(t,e)}function rd({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}function nd(t){return typeof t.schema!="boolean"}function Ab(t,e){let{schema:r,gen:n,opts:i}=t;i.$comment&&r.$comment&&sd(t),Mb(t),Lb(t);let o=n.const("_errs",J.default.errors);od(t,o),n.var(e,(0,B._)`${o} === ${J.default.errors}`)}function id(t){(0,Dt.checkUnknownRules)(t),Tb(t)}function od(t,e){if(t.opts.jtd)return Qp(t,[],!1,e);let r=(0,Yp.getSchemaTypes)(t.schema),n=(0,Yp.coerceAndCheckDataType)(t,r);Qp(t,r,!n,e)}function Tb(t){let{schema:e,errSchemaPath:r,opts:n,self:i}=t;e.$ref&&n.ignoreKeywordsWithRef&&(0,Dt.schemaHasRulesButRef)(e,i.RULES)&&i.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function Nb(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,Dt.checkStrictMode)(t,"default is ignored in the schema root")}function Mb(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,kb.resolveUrl)(t.opts.uriResolver,t.baseId,e))}function Lb(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}function sd({gen:t,schemaEnv:e,schema:r,errSchemaPath:n,opts:i}){let o=r.$comment;if(i.$comment===!0)t.code((0,B._)`${J.default.self}.logger.log(${o})`);else if(typeof i.$comment=="function"){let s=(0,B.str)`${n}/$comment`,a=t.scopeValue("root",{ref:e.root});t.code((0,B._)`${J.default.self}.opts.$comment(${o}, ${s}, ${a}.schema)`)}}function Vb(t){let{gen:e,schemaEnv:r,validateName:n,ValidationError:i,opts:o}=t;r.$async?e.if((0,B._)`${J.default.errors} === 0`,()=>e.return(J.default.data),()=>e.throw((0,B._)`new ${i}(${J.default.vErrors})`)):(e.assign((0,B._)`${n}.errors`,J.default.vErrors),o.unevaluated&&jb(t),e.return((0,B._)`${J.default.errors} === 0`))}function jb({gen:t,evaluated:e,props:r,items:n}){r instanceof B.Name&&t.assign((0,B._)`${e}.props`,r),n instanceof B.Name&&t.assign((0,B._)`${e}.items`,n)}function Qp(t,e,r,n){let{gen:i,schema:o,data:s,allErrors:a,opts:c,self:l}=t,{RULES:p}=l;if(o.$ref&&(c.ignoreKeywordsWithRef||!(0,Dt.schemaHasRulesButRef)(o,p))){i.block(()=>cd(t,"$ref",p.all.$ref.definition));return}c.jtd||Db(t,e),i.block(()=>{for(let d of p.rules)f(d);f(p.post)});function f(d){(0,nc.shouldUseGroup)(o,d)&&(d.type?(i.if((0,ho.checkDataType)(d.type,s,c.strictNumbers)),Zp(t,d),e.length===1&&e[0]===d.type&&r&&(i.else(),(0,ho.reportTypeError)(t)),i.endIf()):Zp(t,d),a||i.if((0,B._)`${J.default.errors} === ${n||0}`))}}function Zp(t,e){let{gen:r,schema:n,opts:{useDefaults:i}}=t;i&&(0,$b.assignDefaults)(t,e.type),r.block(()=>{for(let o of e.rules)(0,nc.shouldUseRule)(n,o)&&cd(t,o.keyword,o.definition,e.type)})}function Db(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(qb(t,e),t.opts.allowUnionTypes||Fb(t,e),Hb(t,t.dataTypes))}function qb(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{ad(t.dataTypes,r)||ic(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),Ub(t,e)}}function Fb(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&ic(t,"use allowUnionTypes to allow union type keyword")}function Hb(t,e){let r=t.self.RULES.all;for(let n in r){let i=r[n];if(typeof i=="object"&&(0,nc.shouldUseRule)(t.schema,i)){let{type:o}=i.definition;o.length&&!o.some(s=>Bb(e,s))&&ic(t,`missing type "${o.join(",")}" for keyword "${n}"`)}}}function Bb(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}function ad(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}function Ub(t,e){let r=[];for(let n of t.dataTypes)ad(e,n)?r.push(n):e.includes("integer")&&n==="number"&&r.push("integer");t.dataTypes=r}function ic(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,Dt.checkStrictMode)(t,e,t.opts.strictTypes)}var mo=class{constructor(e,r,n){if((0,Gn.validateKeywordUsage)(e,r,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,Dt.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",ld(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Gn.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",J.default.errors))}result(e,r,n){this.failResult((0,B.not)(e),r,n)}failResult(e,r,n){this.gen.if(e),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,B.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,B._)`${r} !== undefined && (${(0,B.or)(this.invalid$data(),e)})`)}error(e,r,n){if(r){this.setParams(r),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,r){(e?Wn.reportExtraError:Wn.reportError)(this,this.def.error,r)}$dataError(){(0,Wn.reportError)(this,this.def.$dataError||Wn.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,Wn.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,n=B.nil){this.gen.block(()=>{this.check$data(e,n),r()})}check$data(e=B.nil,r=B.nil){if(!this.$data)return;let{gen:n,schemaCode:i,schemaType:o,def:s}=this;n.if((0,B.or)((0,B._)`${i} === undefined`,r)),e!==B.nil&&n.assign(e,!0),(o.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==B.nil&&n.assign(e,!1)),n.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:n,def:i,it:o}=this;return(0,B.or)(s(),a());function s(){if(n.length){if(!(r instanceof B.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,B._)`${(0,ho.checkDataTypes)(c,r,o.opts.strictNumbers,ho.DataType.Wrong)}`}return B.nil}function a(){if(i.validateSchema){let c=e.scopeValue("validate$data",{ref:i.validateSchema});return(0,B._)`!${c}(${r})`}return B.nil}}subschema(e,r){let n=(0,rc.getSubschema)(this.it,e);(0,rc.extendSubschemaData)(n,this.it,e),(0,rc.extendSubschemaMode)(n,e);let i={...this.it,...n,items:void 0,props:void 0};return Ob(i,r),i}mergeEvaluated(e,r){let{it:n,gen:i}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=Dt.mergeEvaluated.props(i,e.props,n.props,r)),n.items!==!0&&e.items!==void 0&&(n.items=Dt.mergeEvaluated.items(i,e.items,n.items,r)))}mergeValidEvaluated(e,r){let{it:n,gen:i}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return i.if(r,()=>this.mergeEvaluated(e,B.Name)),!0}};rr.KeywordCxt=mo;function cd(t,e,r,n){let i=new mo(t,r,e);"code"in r?r.code(i,n):i.$data&&r.validate?(0,Gn.funcKeywordCode)(i,r):"macro"in r?(0,Gn.macroKeywordCode)(i,r):(r.compile||r.validate)&&(0,Gn.funcKeywordCode)(i,r)}var Wb=/^\/(?:[^~]|~0|~1)*$/,Gb=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function ld(t,{dataLevel:e,dataNames:r,dataPathArr:n}){let i,o;if(t==="")return J.default.rootData;if(t[0]==="/"){if(!Wb.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);i=t,o=J.default.rootData}else{let l=Gb.exec(t);if(!l)throw new Error(`Invalid JSON-pointer: ${t}`);let p=+l[1];if(i=l[2],i==="#"){if(p>=e)throw new Error(c("property/index",p));return n[e-p]}if(p>e)throw new Error(c("data",p));if(o=r[e-p],!i)return o}let s=o,a=i.split("/");for(let l of a)l&&(o=(0,B._)`${o}${(0,B.getProperty)((0,Dt.unescapeJsonPointer)(l))}`,s=(0,B._)`${s} && ${o}`);return s;function c(l,p){return`Cannot access ${l} ${p} levels up, current level is ${e}`}}rr.getData=ld});var go=S(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var oc=class extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};sc.default=oc});var Jn=S(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});var ac=Un(),cc=class extends Error{constructor(e,r,n,i){super(i||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,ac.resolveUrl)(e,r,n),this.missingSchema=(0,ac.normalizeId)((0,ac.getFullPath)(e,this.missingRef))}};lc.default=cc});var Kn=S(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.resolveSchema=nt.getCompilingSchema=nt.resolveRef=nt.compileSchema=nt.SchemaEnv=void 0;var dt=K(),zb=go(),gr=tt(),ht=Un(),ud=te(),Jb=zn(),Jr=class{constructor(e){var r;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,ht.normalizeId)(n?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n?.$async,this.refs={}}};nt.SchemaEnv=Jr;function fc(t){let e=fd.call(this,t);if(e)return e;let r=(0,ht.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:n,lines:i}=this.opts.code,{ownProperties:o}=this.opts,s=new dt.CodeGen(this.scope,{es5:n,lines:i,ownProperties:o}),a;t.$async&&(a=s.scopeValue("Error",{ref:zb.default,code:(0,dt._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");t.validateName=c;let l={gen:s,allErrors:this.opts.allErrors,data:gr.default.data,parentData:gr.default.parentData,parentDataProperty:gr.default.parentDataProperty,dataNames:[gr.default.data],dataPathArr:[dt.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,dt.stringify)(t.schema)}:{ref:t.schema}),validateName:c,ValidationError:a,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:dt.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,dt._)`""`,opts:this.opts,self:this},p;try{this._compilations.add(t),(0,Jb.validateFunctionCode)(l),s.optimize(this.opts.code.optimize);let f=s.toString();p=`${s.scopeRefs(gr.default.scope)}return ${f}`,this.opts.code.process&&(p=this.opts.code.process(p,t));let m=new Function(`${gr.default.self}`,`${gr.default.scope}`,p)(this,this.scope.get());if(this.scope.value(c,{ref:m}),m.errors=null,m.schema=t.schema,m.schemaEnv=t,t.$async&&(m.$async=!0),this.opts.code.source===!0&&(m.source={validateName:c,validateCode:f,scopeValues:s._values}),this.opts.unevaluated){let{props:g,items:y}=l;m.evaluated={props:g instanceof dt.Name?void 0:g,items:y instanceof dt.Name?void 0:y,dynamicProps:g instanceof dt.Name,dynamicItems:y instanceof dt.Name},m.source&&(m.source.evaluated=(0,dt.stringify)(m.evaluated))}return t.validate=m,t}catch(f){throw delete t.validate,delete t.validateName,p&&this.logger.error("Error compiling schema, function code:",p),f}finally{this._compilations.delete(t)}}nt.compileSchema=fc;function Kb(t,e,r){var n;r=(0,ht.resolveUrl)(this.opts.uriResolver,e,r);let i=t.refs[r];if(i)return i;let o=Qb.call(this,t,r);if(o===void 0){let s=(n=t.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(o=new Jr({schema:s,schemaId:a,root:t,baseId:e}))}if(o!==void 0)return t.refs[r]=Yb.call(this,o)}nt.resolveRef=Kb;function Yb(t){return(0,ht.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:fc.call(this,t)}function fd(t){for(let e of this._compilations)if(Xb(e,t))return e}nt.getCompilingSchema=fd;function Xb(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}function Qb(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||yo.call(this,t,e)}function yo(t,e){let r=this.opts.uriResolver.parse(e),n=(0,ht._getFullPath)(this.opts.uriResolver,r),i=(0,ht.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&n===i)return uc.call(this,r,t);let o=(0,ht.normalizeId)(n),s=this.refs[o]||this.schemas[o];if(typeof s=="string"){let a=yo.call(this,t,s);return typeof a?.schema!="object"?void 0:uc.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||fc.call(this,s),o===(0,ht.normalizeId)(e)){let{schema:a}=s,{schemaId:c}=this.opts,l=a[c];return l&&(i=(0,ht.resolveUrl)(this.opts.uriResolver,i,l)),new Jr({schema:a,schemaId:c,root:t,baseId:i})}return uc.call(this,r,s)}}nt.resolveSchema=yo;var Zb=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function uc(t,{baseId:e,schema:r,root:n}){var i;if(((i=t.fragment)===null||i===void 0?void 0:i[0])!=="/")return;for(let a of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,ud.unescapeFragment)(a)];if(c===void 0)return;r=c;let l=typeof r=="object"&&r[this.opts.schemaId];!Zb.has(a)&&l&&(e=(0,ht.resolveUrl)(this.opts.uriResolver,e,l))}let o;if(typeof r!="boolean"&&r.$ref&&!(0,ud.schemaHasRulesButRef)(r,this.RULES)){let a=(0,ht.resolveUrl)(this.opts.uriResolver,e,r.$ref);o=yo.call(this,n,a)}let{schemaId:s}=this.opts;if(o=o||new Jr({schema:r,schemaId:s,root:n,baseId:e}),o.schema!==o.root.schema)return o}});var pd=S((OR,e0)=>{e0.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var hc=S((AR,vd)=>{"use strict";var t0=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),hd=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),pc=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),md=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),r0=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function dc(t){let e="",r=0,n=0;for(n=0;n<t.length;n++)if(r=t[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n];break}for(n+=1;n<t.length;n++){if(r=t[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[n]}return e}var n0=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function dd(t){return t.length=0,!0}function i0(t,e,r){if(t.length){let n=dc(t);if(n!=="")e.push(n);else return r.error=!0,!1;t.length=0}return!0}function o0(t){let e=0,r={error:!1,address:"",zone:""},n=[],i=[],o=!1,s=!1,a=i0;for(let c=0;c<t.length;c++){let l=t[c];if(!(l==="["||l==="]"))if(l===":"){if(o===!0&&(s=!0),!a(i,n,r))break;if(++e>7){r.error=!0;break}c>0&&t[c-1]===":"&&(o=!0),n.push(":");continue}else if(l==="%"){if(!a(i,n,r))break;a=dd}else{i.push(l);continue}}return i.length&&(a===dd?r.zone=i.join(""):s?n.push(i.join("")):n.push(dc(i))),r.address=n.join(""),r}function gd(t){if(s0(t,":")<2)return{host:t,isIPV6:!1};let e=o0(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,n=e.address;return e.zone&&(r+="%"+e.zone,n+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:n}}}function s0(t,e){let r=0;for(let n=0;n<t.length;n++)t[n]===e&&r++;return r}function a0(t){let e=t,r=[],n=-1,i=0;for(;i=e.length;){if(i===1){if(e===".")break;if(e==="/"){r.push("/");break}else{r.push(e);break}}else if(i===2){if(e[0]==="."){if(e[1]===".")break;if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&(e[1]==="."||e[1]==="/")){r.push("/");break}}else if(i===3&&e==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(e[0]==="."){if(e[1]==="."){if(e[2]==="/"){e=e.slice(3);continue}}else if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&e[1]==="."){if(e[2]==="/"){e=e.slice(2);continue}else if(e[2]==="."&&e[3]==="/"){e=e.slice(3),r.length!==0&&r.pop();continue}}if((n=e.indexOf("/",1))===-1){r.push(e);break}else r.push(e.slice(0,n)),e=e.slice(n)}return r.join("")}var c0={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},l0=/[@/?#:]/g,u0=/[@/?#]/g;function yd(t,e){let r=e?u0:l0;return r.lastIndex=0,t.replace(r,n=>c0[n])}function f0(t,e=!1){if(t.indexOf("%")===-1)return t;let r="";for(let n=0;n<t.length;n++){if(t[n]==="%"&&n+2<t.length){let i=t.slice(n+1,n+3);if(pc(i)){let o=i.toUpperCase(),s=String.fromCharCode(parseInt(o,16));e&&md(s)?r+=s:r+="%"+o,n+=2;continue}}r+=t[n]}return r}function p0(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(pc(n)){let i=n.toUpperCase(),o=String.fromCharCode(parseInt(i,16));o!=="."&&md(o)?e+=o:e+="%"+i,r+=2;continue}}r0(t[r])?e+=t[r]:e+=escape(t[r])}return e}function d0(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let n=t.slice(r+1,r+3);if(pc(n)){e+="%"+n.toUpperCase(),r+=2;continue}}e+=escape(t[r])}return e}function h0(t){let e=[];if(t.userinfo!==void 0&&(e.push(t.userinfo),e.push("@")),t.host!==void 0){let r=unescape(t.host);if(!hd(r)){let n=gd(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=yd(r,!1)}e.push(r)}return(typeof t.port=="number"||typeof t.port=="string")&&(e.push(":"),e.push(String(t.port))),e.length?e.join(""):void 0}vd.exports={nonSimpleDomain:n0,recomposeAuthority:h0,reescapeHostDelimiters:yd,normalizePercentEncoding:f0,normalizePathEncoding:p0,escapePreservingEscapes:d0,removeDotSegments:a0,isIPv4:hd,isUUID:t0,normalizeIPv6:gd,stringArrayToHexStripped:dc}});var xd=S((TR,Sd)=>{"use strict";var{isUUID:m0}=hc(),g0=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,y0=["http","https","ws","wss","urn","urn:uuid"];function v0(t){return y0.indexOf(t)!==-1}function mc(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}function wd(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}function _d(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}function w0(t){return t.secure=mc(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}function _0(t){if((t.port===(mc(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}function b0(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(g0);if(r){let n=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let i=`${n}:${e.nid||t.nid}`,o=gc(i);t.path=void 0,o&&(t=o.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}function S0(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",n=t.nid.toLowerCase(),i=`${r}:${e.nid||n}`,o=gc(i);o&&(t=o.serialize(t,e));let s=t,a=t.nss;return s.path=`${n||e.nid}:${a}`,e.skipEscape=!0,s}function x0(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!m0(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function $0(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}var bd={scheme:"http",domainHost:!0,parse:wd,serialize:_d},k0={scheme:"https",domainHost:bd.domainHost,parse:wd,serialize:_d},vo={scheme:"ws",domainHost:!0,parse:w0,serialize:_0},C0={scheme:"wss",domainHost:vo.domainHost,parse:vo.parse,serialize:vo.serialize},E0={scheme:"urn",parse:b0,serialize:S0,skipNormalize:!0},P0={scheme:"urn:uuid",parse:x0,serialize:$0,skipNormalize:!0},wo={http:bd,https:k0,ws:vo,wss:C0,urn:E0,"urn:uuid":P0};Object.setPrototypeOf(wo,null);function gc(t){return t&&(wo[t]||wo[t.toLowerCase()])||void 0}Sd.exports={wsIsSecure:mc,SCHEMES:wo,isValidSchemeName:v0,getSchemeHandler:gc}});var Id=S((NR,_o)=>{"use strict";var{normalizeIPv6:I0,removeDotSegments:Yn,recomposeAuthority:R0,normalizePercentEncoding:O0,normalizePathEncoding:A0,escapePreservingEscapes:T0,reescapeHostDelimiters:N0,isIPv4:M0,nonSimpleDomain:L0}=hc(),{SCHEMES:V0,getSchemeHandler:kd}=xd();function j0(t,e){return typeof t=="string"?t=B0(t,e):typeof t=="object"&&(t=Kr(yr(t,e),e)),t}function D0(t,e,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},i=Cd(Kr(t,n),Kr(e,n),n,!0);return n.skipEscape=!0,yr(i,n)}function Cd(t,e,r,n){let i={};return n||(t=Kr(yr(t,r),r),e=Kr(yr(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(i.scheme=e.scheme,i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Yn(e.path||""),i.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(i.userinfo=e.userinfo,i.host=e.host,i.port=e.port,i.path=Yn(e.path||""),i.query=e.query):(e.path?(e.path[0]==="/"?i.path=Yn(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?i.path="/"+e.path:t.path?i.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:i.path=e.path,i.path=Yn(i.path)),i.query=e.query):(i.path=t.path,e.query!==void 0?i.query=e.query:i.query=t.query),i.userinfo=t.userinfo,i.host=t.host,i.port=t.port),i.scheme=t.scheme),i.fragment=e.fragment,i}function q0(t,e,r){let n=$d(t,r),i=$d(e,r);return n!==void 0&&i!==void 0&&n.toLowerCase()===i.toLowerCase()}function yr(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},n=Object.assign({},e),i=[],o=kd(n.scheme||r.scheme);o&&o.serialize&&o.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=O0(r.path):(r.path=T0(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&i.push(r.scheme,":");let s=R0(r);if(s!==void 0&&(n.reference!=="suffix"&&i.push("//"),i.push(s),r.path&&r.path[0]!=="/"&&i.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!o||!o.absolutePath)&&(a=Yn(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),i.push(a)}return r.query!==void 0&&i.push("?",r.query),r.fragment!==void 0&&i.push("#",r.fragment),i.join("")}var F0=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function H0(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof t.port=="number"&&(t.port<0||t.port>65535))return"URI port is malformed."}function Ed(t,e){let r=Object.assign({},e),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},i=!1,o=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let s=t.match(F0);if(s){n.scheme=s[1],n.userinfo=s[3],n.host=s[4],n.port=parseInt(s[5],10),n.path=s[6]||"",n.query=s[7],n.fragment=s[8],isNaN(n.port)&&(n.port=s[5]);let a=H0(n,s);if(a!==void 0&&(n.error=n.error||a,i=!0),n.host)if(M0(n.host)===!1){let p=I0(n.host);n.host=p.host.toLowerCase(),o=p.isIPV6}else o=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let c=kd(r.scheme||n.scheme);if(!r.unicodeSupport&&(!c||!c.unicodeSupport)&&n.host&&(r.domainHost||c&&c.domainHost)&&o===!1&&L0(n.host))try{n.host=URL.domainToASCII(n.host.toLowerCase())}catch(l){n.error=n.error||"Host's domain name can not be converted to ASCII: "+l}if((!c||c&&!c.skipNormalize)&&(t.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=N0(unescape(n.host),o))),n.path&&(n.path=A0(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}c&&c.parse&&c.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:i}}function Kr(t,e){return Ed(t,e).parsed}function B0(t,e){return Pd(t,e).normalized}function Pd(t,e){let{parsed:r,malformedAuthorityOrPort:n}=Ed(t,e);return{normalized:n?t:yr(r,e),malformedAuthorityOrPort:n}}function $d(t,e){if(typeof t=="string"){let{normalized:r,malformedAuthorityOrPort:n}=Pd(t,e);return n?void 0:r}if(typeof t=="object")return yr(t,e)}var yc={SCHEMES:V0,normalize:j0,resolve:D0,resolveComponent:Cd,equal:q0,serialize:yr,parse:Kr};_o.exports=yc;_o.exports.default=yc;_o.exports.fastUri=yc});var Od=S(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});var Rd=Id();Rd.code='require("ajv/dist/runtime/uri").default';vc.default=Rd});var Dd=S(Ee=>{"use strict";Object.defineProperty(Ee,"__esModule",{value:!0});Ee.CodeGen=Ee.Name=Ee.nil=Ee.stringify=Ee.str=Ee._=Ee.KeywordCxt=void 0;var U0=zn();Object.defineProperty(Ee,"KeywordCxt",{enumerable:!0,get:function(){return U0.KeywordCxt}});var Yr=K();Object.defineProperty(Ee,"_",{enumerable:!0,get:function(){return Yr._}});Object.defineProperty(Ee,"str",{enumerable:!0,get:function(){return Yr.str}});Object.defineProperty(Ee,"stringify",{enumerable:!0,get:function(){return Yr.stringify}});Object.defineProperty(Ee,"nil",{enumerable:!0,get:function(){return Yr.nil}});Object.defineProperty(Ee,"Name",{enumerable:!0,get:function(){return Yr.Name}});Object.defineProperty(Ee,"CodeGen",{enumerable:!0,get:function(){return Yr.CodeGen}});var W0=go(),Ld=Jn(),G0=Ga(),Xn=Kn(),z0=K(),Qn=Un(),bo=Bn(),_c=te(),Ad=pd(),J0=Od(),Vd=(t,e)=>new RegExp(t,e);Vd.code="new RegExp";var K0=["removeAdditional","useDefaults","coerceTypes"],Y0=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),X0={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."},Q0={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},Td=200;function Z0(t){var e,r,n,i,o,s,a,c,l,p,f,d,m,g,y,_,b,M,q,A,T,L,Y,pe,Re;let Ce=t.strict,Fe=(e=t.code)===null||e===void 0?void 0:e.optimize,Oe=Fe===!0||Fe===void 0?1:Fe||0,at=(n=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:Vd,ct=(i=t.uriResolver)!==null&&i!==void 0?i:J0.default;return{strictSchema:(s=(o=t.strictSchema)!==null&&o!==void 0?o:Ce)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=t.strictNumbers)!==null&&a!==void 0?a:Ce)!==null&&c!==void 0?c:!0,strictTypes:(p=(l=t.strictTypes)!==null&&l!==void 0?l:Ce)!==null&&p!==void 0?p:"log",strictTuples:(d=(f=t.strictTuples)!==null&&f!==void 0?f:Ce)!==null&&d!==void 0?d:"log",strictRequired:(g=(m=t.strictRequired)!==null&&m!==void 0?m:Ce)!==null&&g!==void 0?g:!1,code:t.code?{...t.code,optimize:Oe,regExp:at}:{optimize:Oe,regExp:at},loopRequired:(y=t.loopRequired)!==null&&y!==void 0?y:Td,loopEnum:(_=t.loopEnum)!==null&&_!==void 0?_:Td,meta:(b=t.meta)!==null&&b!==void 0?b:!0,messages:(M=t.messages)!==null&&M!==void 0?M:!0,inlineRefs:(q=t.inlineRefs)!==null&&q!==void 0?q:!0,schemaId:(A=t.schemaId)!==null&&A!==void 0?A:"$id",addUsedSchema:(T=t.addUsedSchema)!==null&&T!==void 0?T:!0,validateSchema:(L=t.validateSchema)!==null&&L!==void 0?L:!0,validateFormats:(Y=t.validateFormats)!==null&&Y!==void 0?Y:!0,unicodeRegExp:(pe=t.unicodeRegExp)!==null&&pe!==void 0?pe:!0,int32range:(Re=t.int32range)!==null&&Re!==void 0?Re:!0,uriResolver:ct}}var Zn=class{constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...Z0(e)};let{es5:r,lines:n}=this.opts.code;this.scope=new z0.ValueScope({scope:{},prefixes:Y0,es5:r,lines:n}),this.logger=o2(e.logger);let i=e.validateFormats;e.validateFormats=!1,this.RULES=(0,G0.getRules)(),Nd.call(this,X0,e,"NOT SUPPORTED"),Nd.call(this,Q0,e,"DEPRECATED","warn"),this._metaOpts=n2.call(this),e.formats&&t2.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&r2.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),e2.call(this),e.validateFormats=i}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:n}=this.opts,i=Ad;n==="id"&&(i={...Ad},i.id=i.$id,delete i.$id),r&&e&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let n;if(typeof e=="string"){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);let i=n(r);return"$async"in n||(this.errors=n.errors),i}compile(e,r){let n=this._addSchema(e,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return i.call(this,e,r);async function i(p,f){await o.call(this,p.$schema);let d=this._addSchema(p,f);return d.validate||s.call(this,d)}async function o(p){p&&!this.getSchema(p)&&await i.call(this,{$ref:p},!0)}async function s(p){try{return this._compileSchemaEnv(p)}catch(f){if(!(f instanceof Ld.default))throw f;return a.call(this,f),await c.call(this,f.missingSchema),s.call(this,p)}}function a({missingSchema:p,missingRef:f}){if(this.refs[p])throw new Error(`AnySchema ${p} is loaded but ${f} cannot be resolved`)}async function c(p){let f=await l.call(this,p);this.refs[p]||await o.call(this,f.$schema),this.refs[p]||this.addSchema(f,p,r)}async function l(p){let f=this._loading[p];if(f)return f;try{return await(this._loading[p]=n(p))}finally{delete this._loading[p]}}}addSchema(e,r,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(let s of e)this.addSchema(s,void 0,n,i);return this}let o;if(typeof e=="object"){let{schemaId:s}=this.opts;if(o=e[s],o!==void 0&&typeof o!="string")throw new Error(`schema ${s} must be string`)}return r=(0,Qn.normalizeId)(r||o),this._checkUnique(r),this.schemas[r]=this._addSchema(e,n,r,i,!0),this}addMetaSchema(e,r,n=this.opts.validateSchema){return this.addSchema(e,r,!0,n),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let n;if(n=e.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let i=this.validate(n,e);if(!i&&r){let o="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(o);else throw new Error(o)}return i}getSchema(e){let r;for(;typeof(r=Md.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:n}=this.opts,i=new Xn.SchemaEnv({schema:{},schemaId:n});if(r=Xn.resolveSchema.call(this,i,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=Md.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let n=e[this.opts.schemaId];return n&&(n=(0,Qn.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let n;if(typeof e=="string")n=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof e=="object"&&r===void 0){if(r=e,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(a2.call(this,n,r),!r)return(0,_c.eachItem)(n,o=>wc.call(this,o)),this;l2.call(this,r);let i={...r,type:(0,bo.getJSONTypes)(r.type),schemaType:(0,bo.getJSONTypes)(r.schemaType)};return(0,_c.eachItem)(n,i.type.length===0?o=>wc.call(this,o,i):o=>i.type.forEach(s=>wc.call(this,o,i,s))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let n of r.rules){let i=n.rules.findIndex(o=>o.keyword===e);i>=0&&n.rules.splice(i,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!e||e.length===0?"No errors":e.map(i=>`${n}${i.instancePath} ${i.message}`).reduce((i,o)=>i+r+o)}$dataMetaSchema(e,r){let n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let i of r){let o=i.split("/").slice(1),s=e;for(let a of o)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:l}=c.definition,p=s[a];l&&p&&(s[a]=jd(p))}}return e}_removeAllSchemas(e,r){for(let n in e){let i=e[n];(!r||r.test(n))&&(typeof i=="string"?delete e[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[n]))}}_addSchema(e,r,n,i=this.opts.validateSchema,o=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof e=="object")s=e[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(e);if(c!==void 0)return c;n=(0,Qn.normalizeId)(s||n);let l=Qn.getSchemaRefs.call(this,e,n);return c=new Xn.SchemaEnv({schema:e,schemaId:a,meta:r,baseId:n,localRefs:l}),this._cache.set(c.schema,c),o&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),i&&this.validateSchema(e,!0),c}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):Xn.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{Xn.compileSchema.call(this,e)}finally{this.opts=r}}};Zn.ValidationError=W0.default;Zn.MissingRefError=Ld.default;Ee.default=Zn;function Nd(t,e,r,n="error"){for(let i in t){let o=i;o in e&&this.logger[n](`${r}: option ${i}. ${t[o]}`)}}function Md(t){return t=(0,Qn.normalizeId)(t),this.schemas[t]||this.refs[t]}function e2(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}function t2(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}function r2(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}function n2(){let t={...this.opts};for(let e of K0)delete t[e];return t}var i2={log(){},warn(){},error(){}};function o2(t){if(t===!1)return i2;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}var s2=/^[a-z_$][a-z0-9_$:-]*$/i;function a2(t,e){let{RULES:r}=this;if((0,_c.eachItem)(t,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!s2.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}function wc(t,e,r){var n;let i=e?.post;if(r&&i)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:o}=this,s=i?o.post:o.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},o.rules.push(s)),o.keywords[t]=!0,!e)return;let a={keyword:t,definition:{...e,type:(0,bo.getJSONTypes)(e.type),schemaType:(0,bo.getJSONTypes)(e.schemaType)}};e.before?c2.call(this,s,a,e.before):s.rules.push(a),o.all[t]=a,(n=e.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function c2(t,e,r){let n=t.rules.findIndex(i=>i.keyword===r);n>=0?t.rules.splice(n,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}function l2(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=jd(e)),t.validateSchema=this.compile(e,!0))}var u2={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function jd(t){return{anyOf:[t,u2]}}});var qd=S(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});var f2={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};bc.default=f2});var $o=S(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.callRef=vr.getValidate=void 0;var p2=Jn(),Fd=rt(),Ge=K(),Xr=tt(),Hd=Kn(),So=te(),d2={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:n}=t,{baseId:i,schemaEnv:o,validateName:s,opts:a,self:c}=n,{root:l}=o;if((r==="#"||r==="#/")&&i===l.baseId)return f();let p=Hd.resolveRef.call(c,l,i,r);if(p===void 0)throw new p2.default(n.opts.uriResolver,i,r);if(p instanceof Hd.SchemaEnv)return d(p);return m(p);function f(){if(o===l)return xo(t,s,o,o.$async);let g=e.scopeValue("root",{ref:l});return xo(t,(0,Ge._)`${g}.validate`,l,l.$async)}function d(g){let y=Bd(t,g);xo(t,y,g,g.$async)}function m(g){let y=e.scopeValue("schema",a.code.source===!0?{ref:g,code:(0,Ge.stringify)(g)}:{ref:g}),_=e.name("valid"),b=t.subschema({schema:g,dataTypes:[],schemaPath:Ge.nil,topSchemaRef:y,errSchemaPath:r},_);t.mergeEvaluated(b),t.ok(_)}}};function Bd(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,Ge._)`${r.scopeValue("wrapper",{ref:e})}.validate`}vr.getValidate=Bd;function xo(t,e,r,n){let{gen:i,it:o}=t,{allErrors:s,schemaEnv:a,opts:c}=o,l=c.passContext?Xr.default.this:Ge.nil;n?p():f();function p(){if(!a.$async)throw new Error("async schema referenced by sync schema");let g=i.let("valid");i.try(()=>{i.code((0,Ge._)`await ${(0,Fd.callValidateCode)(t,e,l)}`),m(e),s||i.assign(g,!0)},y=>{i.if((0,Ge._)`!(${y} instanceof ${o.ValidationError})`,()=>i.throw(y)),d(y),s||i.assign(g,!1)}),t.ok(g)}function f(){t.result((0,Fd.callValidateCode)(t,e,l),()=>m(e),()=>d(e))}function d(g){let y=(0,Ge._)`${g}.errors`;i.assign(Xr.default.vErrors,(0,Ge._)`${Xr.default.vErrors} === null ? ${y} : ${Xr.default.vErrors}.concat(${y})`),i.assign(Xr.default.errors,(0,Ge._)`${Xr.default.vErrors}.length`)}function m(g){var y;if(!o.opts.unevaluated)return;let _=(y=r?.validate)===null||y===void 0?void 0:y.evaluated;if(o.props!==!0)if(_&&!_.dynamicProps)_.props!==void 0&&(o.props=So.mergeEvaluated.props(i,_.props,o.props));else{let b=i.var("props",(0,Ge._)`${g}.evaluated.props`);o.props=So.mergeEvaluated.props(i,b,o.props,Ge.Name)}if(o.items!==!0)if(_&&!_.dynamicItems)_.items!==void 0&&(o.items=So.mergeEvaluated.items(i,_.items,o.items));else{let b=i.var("items",(0,Ge._)`${g}.evaluated.items`);o.items=So.mergeEvaluated.items(i,b,o.items,Ge.Name)}}}vr.callRef=xo;vr.default=d2});var Ud=S(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});var h2=qd(),m2=$o(),g2=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",h2.default,m2.default];Sc.default=g2});var Wd=S(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});var ko=K(),nr=ko.operators,Co={maximum:{okStr:"<=",ok:nr.LTE,fail:nr.GT},minimum:{okStr:">=",ok:nr.GTE,fail:nr.LT},exclusiveMaximum:{okStr:"<",ok:nr.LT,fail:nr.GTE},exclusiveMinimum:{okStr:">",ok:nr.GT,fail:nr.LTE}},y2={message:({keyword:t,schemaCode:e})=>(0,ko.str)`must be ${Co[t].okStr} ${e}`,params:({keyword:t,schemaCode:e})=>(0,ko._)`{comparison: ${Co[t].okStr}, limit: ${e}}`},v2={keyword:Object.keys(Co),type:"number",schemaType:"number",$data:!0,error:y2,code(t){let{keyword:e,data:r,schemaCode:n}=t;t.fail$data((0,ko._)`${r} ${Co[e].fail} ${n} || isNaN(${r})`)}};xc.default=v2});var Gd=S($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});var ei=K(),w2={message:({schemaCode:t})=>(0,ei.str)`must be multiple of ${t}`,params:({schemaCode:t})=>(0,ei._)`{multipleOf: ${t}}`},_2={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:w2,code(t){let{gen:e,data:r,schemaCode:n,it:i}=t,o=i.opts.multipleOfPrecision,s=e.let("res"),a=o?(0,ei._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${o}`:(0,ei._)`${s} !== parseInt(${s})`;t.fail$data((0,ei._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};$c.default=_2});var Jd=S(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});function zd(t){let e=t.length,r=0,n=0,i;for(;n<e;)r++,i=t.charCodeAt(n++),i>=55296&&i<=56319&&n<e&&(i=t.charCodeAt(n),(i&64512)===56320&&n++);return r}kc.default=zd;zd.code='require("ajv/dist/runtime/ucs2length").default'});var Kd=S(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});var wr=K(),b2=te(),S2=Jd(),x2={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,wr.str)`must NOT have ${r} than ${e} characters`},params:({schemaCode:t})=>(0,wr._)`{limit: ${t}}`},$2={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:x2,code(t){let{keyword:e,data:r,schemaCode:n,it:i}=t,o=e==="maxLength"?wr.operators.GT:wr.operators.LT,s=i.opts.unicode===!1?(0,wr._)`${r}.length`:(0,wr._)`${(0,b2.useFunc)(t.gen,S2.default)}(${r})`;t.fail$data((0,wr._)`${s} ${o} ${n}`)}};Cc.default=$2});var Yd=S(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});var k2=rt(),C2=te(),Qr=K(),E2={message:({schemaCode:t})=>(0,Qr.str)`must match pattern "${t}"`,params:({schemaCode:t})=>(0,Qr._)`{pattern: ${t}}`},P2={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:E2,code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:o,it:s}=t,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,l=c.code==="new RegExp"?(0,Qr._)`new RegExp`:(0,C2.useFunc)(e,c),p=e.let("valid");e.try(()=>e.assign(p,(0,Qr._)`${l}(${o}, ${a}).test(${r})`),()=>e.assign(p,!1)),t.fail$data((0,Qr._)`!${p}`)}else{let c=(0,k2.usePattern)(t,i);t.fail$data((0,Qr._)`!${c}.test(${r})`)}}};Ec.default=P2});var Xd=S(Pc=>{"use strict";Object.defineProperty(Pc,"__esModule",{value:!0});var ti=K(),I2={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,ti.str)`must NOT have ${r} than ${e} properties`},params:({schemaCode:t})=>(0,ti._)`{limit: ${t}}`},R2={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:I2,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxProperties"?ti.operators.GT:ti.operators.LT;t.fail$data((0,ti._)`Object.keys(${r}).length ${i} ${n}`)}};Pc.default=R2});var Qd=S(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});var ri=rt(),ni=K(),O2=te(),A2={message:({params:{missingProperty:t}})=>(0,ni.str)`must have required property '${t}'`,params:({params:{missingProperty:t}})=>(0,ni._)`{missingProperty: ${t}}`},T2={keyword:"required",type:"object",schemaType:"array",$data:!0,error:A2,code(t){let{gen:e,schema:r,schemaCode:n,data:i,$data:o,it:s}=t,{opts:a}=s;if(!o&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?l():p(),a.strictRequired){let m=t.parentSchema.properties,{definedProperties:g}=t.it;for(let y of r)if(m?.[y]===void 0&&!g.has(y)){let _=s.schemaEnv.baseId+s.errSchemaPath,b=`required property "${y}" is not defined at "${_}" (strictRequired)`;(0,O2.checkStrictMode)(s,b,s.opts.strictRequired)}}function l(){if(c||o)t.block$data(ni.nil,f);else for(let m of r)(0,ri.checkReportMissingProp)(t,m)}function p(){let m=e.let("missing");if(c||o){let g=e.let("valid",!0);t.block$data(g,()=>d(m,g)),t.ok(g)}else e.if((0,ri.checkMissingProp)(t,r,m)),(0,ri.reportMissingProp)(t,m),e.else()}function f(){e.forOf("prop",n,m=>{t.setParams({missingProperty:m}),e.if((0,ri.noPropertyInData)(e,i,m,a.ownProperties),()=>t.error())})}function d(m,g){t.setParams({missingProperty:m}),e.forOf(m,n,()=>{e.assign(g,(0,ri.propertyInData)(e,i,m,a.ownProperties)),e.if((0,ni.not)(g),()=>{t.error(),e.break()})},ni.nil)}}};Ic.default=T2});var Zd=S(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});var ii=K(),N2={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,ii.str)`must NOT have ${r} than ${e} items`},params:({schemaCode:t})=>(0,ii._)`{limit: ${t}}`},M2={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:N2,code(t){let{keyword:e,data:r,schemaCode:n}=t,i=e==="maxItems"?ii.operators.GT:ii.operators.LT;t.fail$data((0,ii._)`${r}.length ${i} ${n}`)}};Rc.default=M2});var Eo=S(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});var eh=ec();eh.code='require("ajv/dist/runtime/equal").default';Oc.default=eh});var th=S(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});var Ac=Bn(),Pe=K(),L2=te(),V2=Eo(),j2={message:({params:{i:t,j:e}})=>(0,Pe.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,params:({params:{i:t,j:e}})=>(0,Pe._)`{i: ${t}, j: ${e}}`},D2={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:j2,code(t){let{gen:e,data:r,$data:n,schema:i,parentSchema:o,schemaCode:s,it:a}=t;if(!n&&!i)return;let c=e.let("valid"),l=o.items?(0,Ac.getSchemaTypes)(o.items):[];t.block$data(c,p,(0,Pe._)`${s} === false`),t.ok(c);function p(){let g=e.let("i",(0,Pe._)`${r}.length`),y=e.let("j");t.setParams({i:g,j:y}),e.assign(c,!0),e.if((0,Pe._)`${g} > 1`,()=>(f()?d:m)(g,y))}function f(){return l.length>0&&!l.some(g=>g==="object"||g==="array")}function d(g,y){let _=e.name("item"),b=(0,Ac.checkDataTypes)(l,_,a.opts.strictNumbers,Ac.DataType.Wrong),M=e.const("indices",(0,Pe._)`{}`);e.for((0,Pe._)`;${g}--;`,()=>{e.let(_,(0,Pe._)`${r}[${g}]`),e.if(b,(0,Pe._)`continue`),l.length>1&&e.if((0,Pe._)`typeof ${_} == "string"`,(0,Pe._)`${_} += "_"`),e.if((0,Pe._)`typeof ${M}[${_}] == "number"`,()=>{e.assign(y,(0,Pe._)`${M}[${_}]`),t.error(),e.assign(c,!1).break()}).code((0,Pe._)`${M}[${_}] = ${g}`)})}function m(g,y){let _=(0,L2.useFunc)(e,V2.default),b=e.name("outer");e.label(b).for((0,Pe._)`;${g}--;`,()=>e.for((0,Pe._)`${y} = ${g}; ${y}--;`,()=>e.if((0,Pe._)`${_}(${r}[${g}], ${r}[${y}])`,()=>{t.error(),e.assign(c,!1).break(b)})))}}};Tc.default=D2});var rh=S(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});var Nc=K(),q2=te(),F2=Eo(),H2={message:"must be equal to constant",params:({schemaCode:t})=>(0,Nc._)`{allowedValue: ${t}}`},B2={keyword:"const",$data:!0,error:H2,code(t){let{gen:e,data:r,$data:n,schemaCode:i,schema:o}=t;n||o&&typeof o=="object"?t.fail$data((0,Nc._)`!${(0,q2.useFunc)(e,F2.default)}(${r}, ${i})`):t.fail((0,Nc._)`${o} !== ${r}`)}};Mc.default=B2});var nh=S(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});var oi=K(),U2=te(),W2=Eo(),G2={message:"must be equal to one of the allowed values",params:({schemaCode:t})=>(0,oi._)`{allowedValues: ${t}}`},z2={keyword:"enum",schemaType:"array",$data:!0,error:G2,code(t){let{gen:e,data:r,$data:n,schema:i,schemaCode:o,it:s}=t;if(!n&&i.length===0)throw new Error("enum must have non-empty array");let a=i.length>=s.opts.loopEnum,c,l=()=>c??(c=(0,U2.useFunc)(e,W2.default)),p;if(a||n)p=e.let("valid"),t.block$data(p,f);else{if(!Array.isArray(i))throw new Error("ajv implementation error");let m=e.const("vSchema",o);p=(0,oi.or)(...i.map((g,y)=>d(m,y)))}t.pass(p);function f(){e.assign(p,!1),e.forOf("v",o,m=>e.if((0,oi._)`${l()}(${r}, ${m})`,()=>e.assign(p,!0).break()))}function d(m,g){let y=i[g];return typeof y=="object"&&y!==null?(0,oi._)`${l()}(${r}, ${m}[${g}])`:(0,oi._)`${r} === ${y}`}}};Lc.default=z2});var ih=S(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var J2=Wd(),K2=Gd(),Y2=Kd(),X2=Yd(),Q2=Xd(),Z2=Qd(),e1=Zd(),t1=th(),r1=rh(),n1=nh(),i1=[J2.default,K2.default,Y2.default,X2.default,Q2.default,Z2.default,e1.default,t1.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},r1.default,n1.default];Vc.default=i1});var Dc=S(si=>{"use strict";Object.defineProperty(si,"__esModule",{value:!0});si.validateAdditionalItems=void 0;var _r=K(),jc=te(),o1={message:({params:{len:t}})=>(0,_r.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,_r._)`{limit: ${t}}`},s1={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:o1,code(t){let{parentSchema:e,it:r}=t,{items:n}=e;if(!Array.isArray(n)){(0,jc.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}oh(t,n)}};function oh(t,e){let{gen:r,schema:n,data:i,keyword:o,it:s}=t;s.items=!0;let a=r.const("len",(0,_r._)`${i}.length`);if(n===!1)t.setParams({len:e.length}),t.pass((0,_r._)`${a} <= ${e.length}`);else if(typeof n=="object"&&!(0,jc.alwaysValidSchema)(s,n)){let l=r.var("valid",(0,_r._)`${a} <= ${e.length}`);r.if((0,_r.not)(l),()=>c(l)),t.ok(l)}function c(l){r.forRange("i",e.length,a,p=>{t.subschema({keyword:o,dataProp:p,dataPropType:jc.Type.Num},l),s.allErrors||r.if((0,_r.not)(l),()=>r.break())})}}si.validateAdditionalItems=oh;si.default=s1});var qc=S(ai=>{"use strict";Object.defineProperty(ai,"__esModule",{value:!0});ai.validateTuple=void 0;var sh=K(),Po=te(),a1=rt(),c1={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return ah(t,"additionalItems",e);r.items=!0,!(0,Po.alwaysValidSchema)(r,e)&&t.ok((0,a1.validateArray)(t))}};function ah(t,e,r=t.schema){let{gen:n,parentSchema:i,data:o,keyword:s,it:a}=t;p(i),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Po.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),l=n.const("len",(0,sh._)`${o}.length`);r.forEach((f,d)=>{(0,Po.alwaysValidSchema)(a,f)||(n.if((0,sh._)`${l} > ${d}`,()=>t.subschema({keyword:s,schemaProp:d,dataProp:d},c)),t.ok(c))});function p(f){let{opts:d,errSchemaPath:m}=a,g=r.length,y=g===f.minItems&&(g===f.maxItems||f[e]===!1);if(d.strictTuples&&!y){let _=`"${s}" is ${g}-tuple, but minItems or maxItems/${e} are not specified or different at path "${m}"`;(0,Po.checkStrictMode)(a,_,d.strictTuples)}}}ai.validateTuple=ah;ai.default=c1});var ch=S(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});var l1=qc(),u1={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:t=>(0,l1.validateTuple)(t,"items")};Fc.default=u1});var uh=S(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});var lh=K(),f1=te(),p1=rt(),d1=Dc(),h1={message:({params:{len:t}})=>(0,lh.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,lh._)`{limit: ${t}}`},m1={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:h1,code(t){let{schema:e,parentSchema:r,it:n}=t,{prefixItems:i}=r;n.items=!0,!(0,f1.alwaysValidSchema)(n,e)&&(i?(0,d1.validateAdditionalItems)(t,i):t.ok((0,p1.validateArray)(t)))}};Hc.default=m1});var fh=S(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});var it=K(),Io=te(),g1={message:({params:{min:t,max:e}})=>e===void 0?(0,it.str)`must contain at least ${t} valid item(s)`:(0,it.str)`must contain at least ${t} and no more than ${e} valid item(s)`,params:({params:{min:t,max:e}})=>e===void 0?(0,it._)`{minContains: ${t}}`:(0,it._)`{minContains: ${t}, maxContains: ${e}}`},y1={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:g1,code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:o}=t,s,a,{minContains:c,maxContains:l}=n;o.opts.next?(s=c===void 0?1:c,a=l):s=1;let p=e.const("len",(0,it._)`${i}.length`);if(t.setParams({min:s,max:a}),a===void 0&&s===0){(0,Io.checkStrictMode)(o,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Io.checkStrictMode)(o,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Io.alwaysValidSchema)(o,r)){let y=(0,it._)`${p} >= ${s}`;a!==void 0&&(y=(0,it._)`${y} && ${p} <= ${a}`),t.pass(y);return}o.items=!0;let f=e.name("valid");a===void 0&&s===1?m(f,()=>e.if(f,()=>e.break())):s===0?(e.let(f,!0),a!==void 0&&e.if((0,it._)`${i}.length > 0`,d)):(e.let(f,!1),d()),t.result(f,()=>t.reset());function d(){let y=e.name("_valid"),_=e.let("count",0);m(y,()=>e.if(y,()=>g(_)))}function m(y,_){e.forRange("i",0,p,b=>{t.subschema({keyword:"contains",dataProp:b,dataPropType:Io.Type.Num,compositeRule:!0},y),_()})}function g(y){e.code((0,it._)`${y}++`),a===void 0?e.if((0,it._)`${y} >= ${s}`,()=>e.assign(f,!0).break()):(e.if((0,it._)`${y} > ${a}`,()=>e.assign(f,!1).break()),s===1?e.assign(f,!0):e.if((0,it._)`${y} >= ${s}`,()=>e.assign(f,!0)))}}};Bc.default=y1});var Ro=S(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.validateSchemaDeps=St.validatePropertyDeps=St.error=void 0;var Uc=K(),v1=te(),ci=rt();St.error={message:({params:{property:t,depsCount:e,deps:r}})=>{let n=e===1?"property":"properties";return(0,Uc.str)`must have ${n} ${r} when property ${t} is present`},params:({params:{property:t,depsCount:e,deps:r,missingProperty:n}})=>(0,Uc._)`{property: ${t},
|
|
65
65
|
missingProperty: ${n},
|
|
66
66
|
depsCount: ${e},
|
|
67
|
-
deps: ${r}}`};var w1={keyword:"dependencies",type:"object",schemaType:"object",error:St.error,code(t){let[e,r]=_1(t);ph(t,e),dh(t,r)}};function _1({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?e:r;i[n]=t[n]}return[e,r]}function ph(t,e=t.schema){let{gen:r,data:n,it:i}=t;if(Object.keys(e).length===0)return;let o=r.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let c=(0,ci.propertyInData)(r,n,s,i.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,ci.checkReportMissingProp)(t,l)}):(r.if((0,Uc._)`${c} && (${(0,ci.checkMissingProp)(t,a,o)})`),(0,ci.reportMissingProp)(t,o),r.else())}}St.validatePropertyDeps=ph;function dh(t,e=t.schema){let{gen:r,data:n,keyword:i,it:o}=t,s=r.name("valid");for(let a in e)(0,v1.alwaysValidSchema)(o,e[a])||(r.if((0,ci.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=t.subschema({keyword:i,schemaProp:a},s);t.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),t.ok(s))}St.validateSchemaDeps=dh;St.default=w1});var mh=S(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var hh=K(),b1=te(),S1={message:"property name must be valid",params:({params:t})=>(0,hh._)`{propertyName: ${t.propertyName}}`},x1={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:S1,code(t){let{gen:e,schema:r,data:n,it:i}=t;if((0,b1.alwaysValidSchema)(i,r))return;let o=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),e.if((0,hh.not)(o),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(o)}};Wc.default=x1});var zc=S(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});var Oo=rt(),mt=K(),$1=tt(),Ao=te(),k1={message:"must NOT have additional properties",params:({params:t})=>(0,mt._)`{additionalProperty: ${t.additionalProperty}}`},C1={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:k1,code(t){let{gen:e,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,Ao.alwaysValidSchema)(s,r))return;let l=(0,Oo.allSchemaProperties)(n.properties),p=(0,Oo.allSchemaProperties)(n.patternProperties);f(),t.ok((0,mt._)`${o} === ${$1.default.errors}`);function f(){e.forIn("key",i,_=>{!l.length&&!p.length?g(_):e.if(d(_),()=>g(_))})}function d(_){let b;if(l.length>8){let M=(0,Ao.schemaRefOrVal)(s,n.properties,"properties");b=(0,Oo.isOwnProperty)(e,M,_)}else l.length?b=(0,mt.or)(...l.map(M=>(0,mt._)`${_} === ${M}`)):b=mt.nil;return p.length&&(b=(0,mt.or)(b,...p.map(M=>(0,mt._)`${(0,Oo.usePattern)(t,M)}.test(${_})`))),(0,mt.not)(b)}function m(_){e.code((0,mt._)`delete ${i}[${_}]`)}function g(_){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){m(_);return}if(r===!1){t.setParams({additionalProperty:_}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Ao.alwaysValidSchema)(s,r)){let b=e.name("valid");c.removeAdditional==="failing"?(y(_,b,!1),e.if((0,mt.not)(b),()=>{t.reset(),m(_)})):(y(_,b),a||e.if((0,mt.not)(b),()=>e.break()))}}function y(_,b,M){let q={keyword:"additionalProperties",dataProp:_,dataPropType:Ao.Type.Str};M===!1&&Object.assign(q,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(q,b)}}};Gc.default=C1});var vh=S(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var E1=zn(),gh=rt(),Jc=te(),yh=zc(),P1={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&yh.default.code(new E1.KeywordCxt(o,yh.default,"additionalProperties"));let s=(0,gh.allSchemaProperties)(r);for(let f of s)o.definedProperties.add(f);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Jc.mergeEvaluated.props(e,(0,Jc.toHash)(s),o.props));let a=s.filter(f=>!(0,Jc.alwaysValidSchema)(o,r[f]));if(a.length===0)return;let c=e.name("valid");for(let f of a)l(f)?p(f):(e.if((0,gh.propertyInData)(e,i,f,o.opts.ownProperties)),p(f),o.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}function p(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};Kc.default=P1});var Sh=S(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var wh=rt(),To=K(),_h=te(),bh=te(),I1={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:i,it:o}=t,{opts:s}=o,a=(0,wh.allSchemaProperties)(r),c=a.filter(y=>(0,_h.alwaysValidSchema)(o,r[y]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,p=e.name("valid");o.props!==!0&&!(o.props instanceof To.Name)&&(o.props=(0,bh.evaluatedPropsToName)(e,o.props));let{props:f}=o;d();function d(){for(let y of a)l&&m(y),o.allErrors?g(y):(e.var(p,!0),g(y),e.if(p))}function m(y){for(let _ in l)new RegExp(y).test(_)&&(0,_h.checkStrictMode)(o,`property ${_} matches pattern ${y} (use allowMatchingProperties)`)}function g(y){e.forIn("key",n,_=>{e.if((0,To._)`${(0,wh.usePattern)(t,y)}.test(${_})`,()=>{let b=c.includes(y);b||t.subschema({keyword:"patternProperties",schemaProp:y,dataProp:_,dataPropType:bh.Type.Str},p),o.opts.unevaluated&&f!==!0?e.assign((0,To._)`${f}[${_}]`,!0):!b&&!o.allErrors&&e.if((0,To.not)(p),()=>e.break())})})}}};Yc.default=I1});var xh=S(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var R1=te(),O1={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,R1.alwaysValidSchema)(n,r)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Xc.default=O1});var $h=S(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});var A1=rt(),T1={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:A1.validateUnion,error:{message:"must match a schema in anyOf"}};Qc.default=T1});var kh=S(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var No=K(),N1=te(),M1={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,No._)`{passingSchemas: ${t.passing}}`},L1={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:M1,code(t){let{gen:e,schema:r,parentSchema:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(l),t.result(s,()=>t.reset(),()=>t.error(!0));function l(){o.forEach((p,f)=>{let d;(0,N1.alwaysValidSchema)(i,p)?e.var(c,!0):d=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,No._)`${c} && ${s}`).assign(s,!1).assign(a,(0,No._)`[${a}, ${f}]`).else(),e.if(c,()=>{e.assign(s,!0),e.assign(a,f),d&&t.mergeEvaluated(d,No.Name)})})}}};Zc.default=L1});var Ch=S(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var V1=te(),j1={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=e.name("valid");r.forEach((o,s)=>{if((0,V1.alwaysValidSchema)(n,o))return;let a=t.subschema({keyword:"allOf",schemaProp:s},i);t.ok(i),t.mergeEvaluated(a)})}};el.default=j1});var Ih=S(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var Mo=K(),Ph=te(),D1={message:({params:t})=>(0,Mo.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Mo._)`{failingKeyword: ${t.ifClause}}`},q1={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:D1,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,Ph.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Eh(n,"then"),o=Eh(n,"else");if(!i&&!o)return;let s=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),i&&o){let p=e.let("ifClause");t.setParams({ifClause:p}),e.if(a,l("then",p),l("else",p))}else i?e.if(a,l("then")):e.if((0,Mo.not)(a),l("else"));t.pass(s,()=>t.error(!0));function c(){let p=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(p)}function l(p,f){return()=>{let d=t.subschema({keyword:p},a);e.assign(s,a),t.mergeValidEvaluated(d,s),f?e.assign(f,(0,Mo._)`${p}`):t.setParams({ifClause:p})}}}};function Eh(t,e){let r=t.schema[e];return r!==void 0&&!(0,Ph.alwaysValidSchema)(t,r)}tl.default=q1});var Rh=S(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var F1=te(),H1={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,F1.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};rl.default=H1});var Oh=S(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var B1=Dc(),U1=ch(),W1=qc(),G1=uh(),z1=fh(),J1=Ro(),K1=mh(),Y1=zc(),X1=vh(),Q1=Sh(),Z1=xh(),eS=$h(),tS=kh(),rS=Ch(),nS=Ih(),iS=Rh();function oS(t=!1){let e=[Z1.default,eS.default,tS.default,rS.default,nS.default,iS.default,K1.default,Y1.default,J1.default,X1.default,Q1.default];return t?e.push(U1.default,G1.default):e.push(B1.default,W1.default),e.push(z1.default),e}nl.default=oS});var ol=S(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.dynamicAnchor=void 0;var il=K(),sS=tt(),Ah=Kn(),aS=$o(),cS={keyword:"$dynamicAnchor",schemaType:"string",code:t=>Th(t,t.schema)};function Th(t,e){let{gen:r,it:n}=t;n.schemaEnv.root.dynamicAnchors[e]=!0;let i=(0,il._)`${sS.default.dynamicAnchors}${(0,il.getProperty)(e)}`,o=n.errSchemaPath==="#"?n.validateName:lS(t);r.if((0,il._)`!${i}`,()=>r.assign(i,o))}li.dynamicAnchor=Th;function lS(t){let{schemaEnv:e,schema:r,self:n}=t.it,{root:i,baseId:o,localRefs:s,meta:a}=e.root,{schemaId:c}=n.opts,l=new Ah.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:s,meta:a});return Ah.compileSchema.call(n,l),(0,aS.getValidate)(t,l)}li.default=cS});var sl=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.dynamicRef=void 0;var Nh=K(),uS=tt(),Mh=$o(),fS={keyword:"$dynamicRef",schemaType:"string",code:t=>Lh(t,t.schema)};function Lh(t,e){let{gen:r,keyword:n,it:i}=t;if(e[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=e.slice(1);if(i.allErrors)s();else{let c=r.let("valid",!1);s(c),t.ok(c)}function s(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,Nh._)`${uS.default.dynamicAnchors}${(0,Nh.getProperty)(o)}`);r.if(l,a(l,c),a(i.validateName,c))}else a(i.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,Mh.callRef)(t,c),r.let(l,!0)}):()=>(0,Mh.callRef)(t,c)}}ui.dynamicRef=Lh;ui.default=fS});var Vh=S(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var pS=ol(),dS=te(),hS={keyword:"$recursiveAnchor",schemaType:"boolean",code(t){t.schema?(0,pS.dynamicAnchor)(t,""):(0,dS.checkStrictMode)(t.it,"$recursiveAnchor: false is ignored")}};al.default=hS});var jh=S(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var mS=sl(),gS={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,mS.dynamicRef)(t,t.schema)};cl.default=gS});var Dh=S(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var yS=ol(),vS=sl(),wS=Vh(),_S=jh(),bS=[yS.default,vS.default,wS.default,_S.default];ll.default=bS});var Fh=S(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var qh=Ro(),SS={keyword:"dependentRequired",type:"object",schemaType:"object",error:qh.error,code:t=>(0,qh.validatePropertyDeps)(t)};ul.default=SS});var Hh=S(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var xS=Ro(),$S={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,xS.validateSchemaDeps)(t)};fl.default=$S});var Bh=S(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var kS=te(),CS={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:e,it:r}){e.contains===void 0&&(0,kS.checkStrictMode)(r,`"${t}" without "contains" is ignored`)}};pl.default=CS});var Uh=S(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var ES=Fh(),PS=Hh(),IS=Bh(),RS=[ES.default,PS.default,IS.default];dl.default=RS});var Gh=S(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var nr=K(),Wh=te(),OS=tt(),AS={message:"must NOT have unevaluated properties",params:({params:t})=>(0,nr._)`{unevaluatedProperty: ${t.unevaluatedProperty}}`},TS={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:AS,code(t){let{gen:e,schema:r,data:n,errsCount:i,it:o}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:s,props:a}=o;a instanceof nr.Name?e.if((0,nr._)`${a} !== true`,()=>e.forIn("key",n,f=>e.if(l(a,f),()=>c(f)))):a!==!0&&e.forIn("key",n,f=>a===void 0?c(f):e.if(p(a,f),()=>c(f))),o.props=!0,t.ok((0,nr._)`${i} === ${OS.default.errors}`);function c(f){if(r===!1){t.setParams({unevaluatedProperty:f}),t.error(),s||e.break();return}if(!(0,Wh.alwaysValidSchema)(o,r)){let d=e.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Wh.Type.Str},d),s||e.if((0,nr.not)(d),()=>e.break())}}function l(f,d){return(0,nr._)`!${f} || !${f}[${d}]`}function p(f,d){let m=[];for(let g in f)f[g]===!0&&m.push((0,nr._)`${d} !== ${g}`);return(0,nr.and)(...m)}}};hl.default=TS});var Jh=S(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var br=K(),zh=te(),NS={message:({params:{len:t}})=>(0,br.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,br._)`{limit: ${t}}`},MS={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:NS,code(t){let{gen:e,schema:r,data:n,it:i}=t,o=i.items||0;if(o===!0)return;let s=e.const("len",(0,br._)`${n}.length`);if(r===!1)t.setParams({len:o}),t.fail((0,br._)`${s} > ${o}`);else if(typeof r=="object"&&!(0,zh.alwaysValidSchema)(i,r)){let c=e.var("valid",(0,br._)`${s} <= ${o}`);e.if((0,br.not)(c),()=>a(c,o)),t.ok(c)}i.items=!0;function a(c,l){e.forRange("i",l,s,p=>{t.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:zh.Type.Num},c),i.allErrors||e.if((0,br.not)(c),()=>e.break())})}}};ml.default=MS});var Kh=S(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var LS=Gh(),VS=Jh(),jS=[LS.default,VS.default];gl.default=jS});var Yh=S(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var Se=K(),DS={message:({schemaCode:t})=>(0,Se.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Se._)`{format: ${t}}`},qS={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:DS,code(t,e){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=t,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=a;if(!c.validateFormats)return;i?d():m();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,Se._)`${g}[${s}]`),_=r.let("fType"),b=r.let("format");r.if((0,Se._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(_,(0,Se._)`${y}.type || "string"`).assign(b,(0,Se._)`${y}.validate`),()=>r.assign(_,(0,Se._)`"string"`).assign(b,y)),t.fail$data((0,Se.or)(M(),q()));function M(){return c.strictSchema===!1?Se.nil:(0,Se._)`${s} && !${b}`}function q(){let A=p.$async?(0,Se._)`(${y}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,Se._)`${b}(${n})`,T=(0,Se._)`(typeof ${b} == "function" ? ${A} : ${b}.test(${n}))`;return(0,Se._)`${b} && ${b} !== true && ${_} === ${e} && !${T}`}}function m(){let g=f.formats[o];if(!g){M();return}if(g===!0)return;let[y,_,b]=q(g);y===e&&t.pass(A());function M(){if(c.strictSchema===!1){f.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function q(T){let L=T instanceof RegExp?(0,Se.regexpCode)(T):c.code.formats?(0,Se._)`${c.code.formats}${(0,Se.getProperty)(o)}`:void 0,Y=r.scopeValue("formats",{key:o,ref:T,code:L});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,Se._)`${Y}.validate`]:["string",T,Y]}function A(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Se._)`await ${b}(${n})`}return typeof _=="function"?(0,Se._)`${b}(${n})`:(0,Se._)`${b}.test(${n})`}}}};yl.default=qS});var Xh=S(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var FS=Yh(),HS=[FS.default];vl.default=HS});var Qh=S(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.contentVocabulary=Zr.metadataVocabulary=void 0;Zr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Zr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var em=S(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var BS=Ud(),US=ih(),WS=Oh(),GS=Dh(),zS=Uh(),JS=Kh(),KS=Xh(),Zh=Qh(),YS=[GS.default,BS.default,US.default,(0,WS.default)(!0),KS.default,Zh.metadataVocabulary,Zh.contentVocabulary,zS.default,JS.default];wl.default=YS});var rm=S(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DiscrError=void 0;var tm;(function(t){t.Tag="tag",t.Mapping="mapping"})(tm||(Lo.DiscrError=tm={}))});var im=S(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var en=K(),_l=rm(),nm=Kn(),XS=Jn(),QS=te(),ZS={message:({params:{discrError:t,tagName:e}})=>t===_l.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,en._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},ex={keyword:"discriminator",type:"object",schemaType:"object",error:ZS,code(t){let{gen:e,data:r,schema:n,parentSchema:i,it:o}=t,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),l=e.const("tag",(0,en._)`${r}${(0,en.getProperty)(a)}`);e.if((0,en._)`typeof ${l} == "string"`,()=>p(),()=>t.error(!1,{discrError:_l.DiscrError.Tag,tag:l,tagName:a})),t.ok(c);function p(){let m=d();e.if(!1);for(let g in m)e.elseIf((0,en._)`${l} === ${g}`),e.assign(c,f(m[g]));e.else(),t.error(!1,{discrError:_l.DiscrError.Mapping,tag:l,tagName:a}),e.endIf()}function f(m){let g=e.name("valid"),y=t.subschema({keyword:"oneOf",schemaProp:m},g);return t.mergeEvaluated(y,en.Name),g}function d(){var m;let g={},y=b(i),_=!0;for(let A=0;A<s.length;A++){let T=s[A];if(T?.$ref&&!(0,QS.schemaHasRulesButRef)(T,o.self.RULES)){let Y=T.$ref;if(T=nm.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,Y),T instanceof nm.SchemaEnv&&(T=T.schema),T===void 0)throw new XS.default(o.opts.uriResolver,o.baseId,Y)}let L=(m=T?.properties)===null||m===void 0?void 0:m[a];if(typeof L!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);_=_&&(y||b(T)),M(L,A)}if(!_)throw new Error(`discriminator: "${a}" must be required`);return g;function b({required:A}){return Array.isArray(A)&&A.includes(a)}function M(A,T){if(A.const)q(A.const,T);else if(A.enum)for(let L of A.enum)q(L,T);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function q(A,T){if(typeof A!="string"||A in g)throw new Error(`discriminator: "${a}" values must be unique strings`);g[A]=T}}}};bl.default=ex});var om=S((NO,tx)=>{tx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var sm=S((MO,rx)=>{rx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var am=S((LO,nx)=>{nx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var cm=S((VO,ix)=>{ix.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var lm=S((jO,ox)=>{ox.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var um=S((DO,sx)=>{sx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var fm=S((qO,ax)=>{ax.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var pm=S((FO,cx)=>{cx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var dm=S(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var lx=om(),ux=sm(),fx=am(),px=cm(),dx=lm(),hx=um(),mx=fm(),gx=pm(),yx=["/properties"];function vx(t){return[lx,ux,fx,px,dx,e(this,hx),mx,e(this,gx)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function e(r,n){return t?r.$dataMetaSchema(n,yx):n}}Sl.default=vx});var hm=S((ge,$l)=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.MissingRefError=ge.ValidationError=ge.CodeGen=ge.Name=ge.nil=ge.stringify=ge.str=ge._=ge.KeywordCxt=ge.Ajv2020=void 0;var wx=Dd(),_x=em(),bx=im(),Sx=dm(),xl="https://json-schema.org/draft/2020-12/schema",tn=class extends wx.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),_x.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(bx.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:r}=this.opts;r&&(Sx.default.call(this,e),this.refs["http://json-schema.org/schema"]=xl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(xl)?xl:void 0)}};ge.Ajv2020=tn;$l.exports=ge=tn;$l.exports.Ajv2020=tn;Object.defineProperty(ge,"__esModule",{value:!0});ge.default=tn;var xx=zn();Object.defineProperty(ge,"KeywordCxt",{enumerable:!0,get:function(){return xx.KeywordCxt}});var rn=K();Object.defineProperty(ge,"_",{enumerable:!0,get:function(){return rn._}});Object.defineProperty(ge,"str",{enumerable:!0,get:function(){return rn.str}});Object.defineProperty(ge,"stringify",{enumerable:!0,get:function(){return rn.stringify}});Object.defineProperty(ge,"nil",{enumerable:!0,get:function(){return rn.nil}});Object.defineProperty(ge,"Name",{enumerable:!0,get:function(){return rn.Name}});Object.defineProperty(ge,"CodeGen",{enumerable:!0,get:function(){return rn.CodeGen}});var $x=go();Object.defineProperty(ge,"ValidationError",{enumerable:!0,get:function(){return $x.default}});var kx=Jn();Object.defineProperty(ge,"MissingRefError",{enumerable:!0,get:function(){return kx.default}})});import{readFileSync as Cx}from"node:fs";import{createRequire as Ex}from"node:module";import{dirname as kl,resolve as Px}from"node:path";import{fileURLToPath as Ix}from"node:url";function $e(){if(nn)return nn;let t=Ex(import.meta.url);try{return nn=kl(t.resolve("view-contracts/package.json")),nn}catch{let e=kl(Ix(import.meta.url));for(;;){try{let n=Px(e,"package.json");if(JSON.parse(Cx(n,"utf8")).name==="view-contracts")return nn=e,nn}catch{}let r=kl(e);if(r===e)break;e=r}throw new Error("view-contracts package root not found")}}var nn,qt=X(()=>{"use strict"});import{readFile as Tx}from"node:fs/promises";async function Do(t){return ut.load(await Tx(t,"utf-8"))}function vm(t,e,r){for(let n of t)if(!e.has(n))throw new Error(`${r}: unknown element "${n}" \u2014 not in spec/ui-dsl.schema.json vocabulary`)}function wm(t,e,r){for(let[n,i]of Object.entries(t))for(let o of e)if(i[o]===void 0||i[o]===null||i[o]==="")throw new Error(`${r}: element "${n}" is missing required "${String(o)}"`)}var Cl=X(()=>{"use strict";qr()});import{resolve as Nx}from"node:path";function Mx(t){vm(Object.keys(t.elements),Mt,_m),wm(t.elements,["tag"],_m)}async function Pl(t){if(!t&&El)return El;let e=t??Nx($e(),"renderers/react/elements.yaml"),r=await Do(e);return Mx(r),t||(El=r),r}var _m,El,bm=X(()=>{"use strict";Lt();Lt();qt();Cl();_m="renderers/react/elements.yaml",El=null});function Sm(t){if(t)return t==="start"?"flex-start":t==="end"?"flex-end":t}function xm(t){if(t)return t==="start"?"flex-start":t==="end"?"flex-end":t==="between"||t==="spaceBetween"?"space-between":t==="around"||t==="spaceAround"?"space-around":t==="spaceEvenly"?"space-evenly":t}var $m=X(()=>{"use strict"});function gt(t){return`${t}px`}function on(t){let e=t.match(/^\{([^}]+)\}$/);if(e)return`var(--${e[1].replace(/\./g,"-")})`}function Il(t){let e={},r=t.width;typeof r=="number"?e.width=gt(r):r==="fill"?e.width="100%":typeof r=="string"&&r!=="wrap"&&(e.width=r),typeof t.minWidth=="number"&&(e.minWidth=gt(t.minWidth));let n=t.maxWidth;typeof n=="number"?e.maxWidth=gt(n):n==="fill"&&(e.maxWidth="100%");let i=t.height;typeof i=="number"?e.height=gt(i):i==="fill"?e.height="100%":typeof i=="string"&&i!=="wrap"&&(e.height=i),typeof t.minHeight=="number"&&(e.minHeight=gt(t.minHeight));let o=t.maxHeight;typeof o=="number"?e.maxHeight=gt(o):o==="fill"&&(e.maxHeight="100%"),t.aspectRatio!==void 0&&(e.aspectRatio=String(t.aspectRatio));let s=t.weight;typeof s=="number"&&(e.flexGrow=s),typeof t.padding=="number"&&(e.padding=gt(t.padding)),typeof t.margin=="number"&&(e.margin=gt(t.margin)),typeof t.gap=="number"&&(e.gap=gt(t.gap));let a=t.textAlign;typeof a=="string"&&(e.textAlign=a==="start"?"left":a==="end"?"right":a);let c=t.contentAlign;typeof c=="string"&&c in km&&(e.placeItems=km[c]),typeof t.overflow=="string"&&(e.overflow=t.overflow);let l=t.selfAlign;typeof l=="string"&&(e.alignSelf=l==="start"?"flex-start":l==="end"?"flex-end":l);let p=t.size;typeof p=="number"?e.fontSize=gt(p):typeof p=="string"&&(e.fontSize=p);let f=typeof s=="string"?s:t.fontWeight;typeof f=="string"&&(e.fontWeight=f);let d=t.background;typeof d=="string"&&(e.background=on(d)??d);let m=t.foreground;typeof m=="string"&&(e.color=on(m)??m);let g=t.radius;typeof g=="number"?e.borderRadius=gt(g):typeof g=="string"&&(e.borderRadius=on(g)??g);let y=t.shadow;y===!0?e.boxShadow="var(--ui-shadow)":y===!1?e.boxShadow="none":typeof y=="string"&&(e.boxShadow=Lx[y]??on(y)??y);let _=t.border;typeof _=="string"&&(e.border=on(_)??_),typeof t.opacity=="number"&&(e.opacity=t.opacity);let b=t.clip;typeof b=="string"&&(e.overflow=b==="hidden"?"hidden":b);let M=t.align;if(typeof M=="string"){let L=Sm(M);L&&(e.alignItems=L)}let q=t.justify;if(typeof q=="string"){let L=xm(q);L&&(e.justifyContent=L)}typeof t.display=="string"&&(e.display=t.display),typeof t.gridTemplateColumns=="string"&&(e.gridTemplateColumns=t.gridTemplateColumns),typeof t.flexDirection=="string"&&(e.flexDirection=t.flexDirection),typeof t.alignItems=="string"&&(e.alignItems=t.alignItems);let A=t.borderColor;typeof A=="string"&&(e.borderColor=on(A)??A);let T=t.flex;return typeof T=="number"&&(e.flex=T),e}function fi(t){let e=Object.entries(t);return e.length===0?"":`style={{ ${e.map(([n,i])=>typeof i=="number"?`${n}: ${i}`:`${n}: ${JSON.stringify(i)}`).join(", ")} }}`}var km,Lx,Rl=X(()=>{"use strict";$m();km={topStart:"start start",top:"center start",topEnd:"end start",start:"start center",center:"center center",end:"end center",bottomStart:"start end",bottom:"center end",bottomEnd:"end end"},Lx={none:"none",sm:"var(--ui-shadow-sm, 0 1px 2px rgba(0,0,0,0.05))",md:"var(--ui-shadow)",lg:"var(--ui-shadow-lg, 0 10px 15px rgba(0,0,0,0.1))"}});function qo(t,e){let r=t[e];if(r!=null){if(typeof r=="string"||typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="object"&&"kind"in r&&r.kind==="literal")return r.value}}function Vx(t,e){if(e!=null&&!(typeof e=="string"||typeof e=="number"||typeof e=="boolean")&&!(typeof e=="object"&&"kind"in e&&e.kind==="literal"))throw new Error(`Style property "${t}" must be a compile-time literal; ViewModel bindings are not allowed on layout/visual props`)}function jx(t){let e={};for(let[r,n]of Object.entries(t)){if(!to.has(r))continue;Vx(r,n);let i=qo(t,r);i!==void 0&&(e[r]=i)}return e}function Dx(t){return t.flex?{display:"flex",flexDirection:t.flex==="column"?"column":"row"}:{}}function qx(t){return t==="horizontal"?{overflowX:"auto",overflowY:"hidden"}:t==="both"?{overflowX:"auto",overflowY:"auto"}:t==="none"?{overflowX:"hidden",overflowY:"hidden"}:{overflowX:"hidden",overflowY:"auto"}}function Cm(t,e){let r=jx(e),n=Il(r);if(n={...n,...Dx(t)},t.tableCell){if("alignItems"in n){let i=String(n.alignItems);n.textAlign=i==="flex-end"?"right":i==="center"?"center":"left",delete n.alignItems}"width"in n&&!("flex"in n)&&(n.flexShrink=0,n.flexGrow=0)}if(t.scrollContainer){let i=qo(e,"scroll"),o=qo(e,"axis"),s=typeof i=="string"?i:typeof o=="string"?o==="horizontal"?"horizontal":"vertical":void 0;if(s)return n={...n,...qx(s)},fi(n);throw new Error("ScrollArea scroll/axis must be compile-time literals")}if(t.flexGrowProp&&e[t.flexGrowProp]){let i=qo(e,t.flexGrowProp);if(typeof i=="number")return n.flexGrow=i,fi(n);throw new Error(`"${t.flexGrowProp}" on <Spacer> must be a compile-time literal`)}return fi(n)}var Em=X(()=>{"use strict";Lt();Rl();Rl()});function z(t){return" ".repeat(t)}function xr(t,e="vm"){let r=t.scope??e;return t.path?`${r}.${t.path}`:r}function Am(t){return t.parts.map(e=>typeof e=="string"?e:`\${${xr(e)}}`).join("")}function Fx(t){return`\`${Am(t)}\``}function Fo(t,e=!1){let r=e?" as ActionDescriptor":"";if(!t.params||Object.keys(t.params).length===0)return`{ name: ${JSON.stringify(t.name)} }${r}`;let n=Object.entries(t.params).map(([i,o])=>`${i}: ${an(o,0)}`).join(", ");return`{ name: ${JSON.stringify(t.name)}, params: { ${n} } }${r}`}function Al(t,e,r=!1){if(t===null)return"null";if(typeof t=="string")return JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t))return`[
|
|
67
|
+
deps: ${r}}`};var w1={keyword:"dependencies",type:"object",schemaType:"object",error:St.error,code(t){let[e,r]=_1(t);ph(t,e),dh(t,r)}};function _1({schema:t}){let e={},r={};for(let n in t){if(n==="__proto__")continue;let i=Array.isArray(t[n])?e:r;i[n]=t[n]}return[e,r]}function ph(t,e=t.schema){let{gen:r,data:n,it:i}=t;if(Object.keys(e).length===0)return;let o=r.let("missing");for(let s in e){let a=e[s];if(a.length===0)continue;let c=(0,ci.propertyInData)(r,n,s,i.opts.ownProperties);t.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),i.allErrors?r.if(c,()=>{for(let l of a)(0,ci.checkReportMissingProp)(t,l)}):(r.if((0,Uc._)`${c} && (${(0,ci.checkMissingProp)(t,a,o)})`),(0,ci.reportMissingProp)(t,o),r.else())}}St.validatePropertyDeps=ph;function dh(t,e=t.schema){let{gen:r,data:n,keyword:i,it:o}=t,s=r.name("valid");for(let a in e)(0,v1.alwaysValidSchema)(o,e[a])||(r.if((0,ci.propertyInData)(r,n,a,o.opts.ownProperties),()=>{let c=t.subschema({keyword:i,schemaProp:a},s);t.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),t.ok(s))}St.validateSchemaDeps=dh;St.default=w1});var mh=S(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});var hh=K(),b1=te(),S1={message:"property name must be valid",params:({params:t})=>(0,hh._)`{propertyName: ${t.propertyName}}`},x1={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:S1,code(t){let{gen:e,schema:r,data:n,it:i}=t;if((0,b1.alwaysValidSchema)(i,r))return;let o=e.name("valid");e.forIn("key",n,s=>{t.setParams({propertyName:s}),t.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},o),e.if((0,hh.not)(o),()=>{t.error(!0),i.allErrors||e.break()})}),t.ok(o)}};Wc.default=x1});var zc=S(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});var Oo=rt(),mt=K(),$1=tt(),Ao=te(),k1={message:"must NOT have additional properties",params:({params:t})=>(0,mt._)`{additionalProperty: ${t.additionalProperty}}`},C1={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:k1,code(t){let{gen:e,schema:r,parentSchema:n,data:i,errsCount:o,it:s}=t;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,Ao.alwaysValidSchema)(s,r))return;let l=(0,Oo.allSchemaProperties)(n.properties),p=(0,Oo.allSchemaProperties)(n.patternProperties);f(),t.ok((0,mt._)`${o} === ${$1.default.errors}`);function f(){e.forIn("key",i,_=>{!l.length&&!p.length?g(_):e.if(d(_),()=>g(_))})}function d(_){let b;if(l.length>8){let M=(0,Ao.schemaRefOrVal)(s,n.properties,"properties");b=(0,Oo.isOwnProperty)(e,M,_)}else l.length?b=(0,mt.or)(...l.map(M=>(0,mt._)`${_} === ${M}`)):b=mt.nil;return p.length&&(b=(0,mt.or)(b,...p.map(M=>(0,mt._)`${(0,Oo.usePattern)(t,M)}.test(${_})`))),(0,mt.not)(b)}function m(_){e.code((0,mt._)`delete ${i}[${_}]`)}function g(_){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){m(_);return}if(r===!1){t.setParams({additionalProperty:_}),t.error(),a||e.break();return}if(typeof r=="object"&&!(0,Ao.alwaysValidSchema)(s,r)){let b=e.name("valid");c.removeAdditional==="failing"?(y(_,b,!1),e.if((0,mt.not)(b),()=>{t.reset(),m(_)})):(y(_,b),a||e.if((0,mt.not)(b),()=>e.break()))}}function y(_,b,M){let q={keyword:"additionalProperties",dataProp:_,dataPropType:Ao.Type.Str};M===!1&&Object.assign(q,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(q,b)}}};Gc.default=C1});var vh=S(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});var E1=zn(),gh=rt(),Jc=te(),yh=zc(),P1={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:n,data:i,it:o}=t;o.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&yh.default.code(new E1.KeywordCxt(o,yh.default,"additionalProperties"));let s=(0,gh.allSchemaProperties)(r);for(let f of s)o.definedProperties.add(f);o.opts.unevaluated&&s.length&&o.props!==!0&&(o.props=Jc.mergeEvaluated.props(e,(0,Jc.toHash)(s),o.props));let a=s.filter(f=>!(0,Jc.alwaysValidSchema)(o,r[f]));if(a.length===0)return;let c=e.name("valid");for(let f of a)l(f)?p(f):(e.if((0,gh.propertyInData)(e,i,f,o.opts.ownProperties)),p(f),o.allErrors||e.else().var(c,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(c);function l(f){return o.opts.useDefaults&&!o.compositeRule&&r[f].default!==void 0}function p(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},c)}}};Kc.default=P1});var Sh=S(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});var wh=rt(),To=K(),_h=te(),bh=te(),I1={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:n,parentSchema:i,it:o}=t,{opts:s}=o,a=(0,wh.allSchemaProperties)(r),c=a.filter(y=>(0,_h.alwaysValidSchema)(o,r[y]));if(a.length===0||c.length===a.length&&(!o.opts.unevaluated||o.props===!0))return;let l=s.strictSchema&&!s.allowMatchingProperties&&i.properties,p=e.name("valid");o.props!==!0&&!(o.props instanceof To.Name)&&(o.props=(0,bh.evaluatedPropsToName)(e,o.props));let{props:f}=o;d();function d(){for(let y of a)l&&m(y),o.allErrors?g(y):(e.var(p,!0),g(y),e.if(p))}function m(y){for(let _ in l)new RegExp(y).test(_)&&(0,_h.checkStrictMode)(o,`property ${_} matches pattern ${y} (use allowMatchingProperties)`)}function g(y){e.forIn("key",n,_=>{e.if((0,To._)`${(0,wh.usePattern)(t,y)}.test(${_})`,()=>{let b=c.includes(y);b||t.subschema({keyword:"patternProperties",schemaProp:y,dataProp:_,dataPropType:bh.Type.Str},p),o.opts.unevaluated&&f!==!0?e.assign((0,To._)`${f}[${_}]`,!0):!b&&!o.allErrors&&e.if((0,To.not)(p),()=>e.break())})})}}};Yc.default=I1});var xh=S(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});var R1=te(),O1={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:n}=t;if((0,R1.alwaysValidSchema)(n,r)){t.fail();return}let i=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},i),t.failResult(i,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};Xc.default=O1});var $h=S(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});var A1=rt(),T1={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:A1.validateUnion,error:{message:"must match a schema in anyOf"}};Qc.default=T1});var kh=S(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});var No=K(),N1=te(),M1={message:"must match exactly one schema in oneOf",params:({params:t})=>(0,No._)`{passingSchemas: ${t.passing}}`},L1={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:M1,code(t){let{gen:e,schema:r,parentSchema:n,it:i}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&n.discriminator)return;let o=r,s=e.let("valid",!1),a=e.let("passing",null),c=e.name("_valid");t.setParams({passing:a}),e.block(l),t.result(s,()=>t.reset(),()=>t.error(!0));function l(){o.forEach((p,f)=>{let d;(0,N1.alwaysValidSchema)(i,p)?e.var(c,!0):d=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},c),f>0&&e.if((0,No._)`${c} && ${s}`).assign(s,!1).assign(a,(0,No._)`[${a}, ${f}]`).else(),e.if(c,()=>{e.assign(s,!0),e.assign(a,f),d&&t.mergeEvaluated(d,No.Name)})})}}};Zc.default=L1});var Ch=S(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});var V1=te(),j1={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let i=e.name("valid");r.forEach((o,s)=>{if((0,V1.alwaysValidSchema)(n,o))return;let a=t.subschema({keyword:"allOf",schemaProp:s},i);t.ok(i),t.mergeEvaluated(a)})}};el.default=j1});var Ih=S(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});var Mo=K(),Ph=te(),D1={message:({params:t})=>(0,Mo.str)`must match "${t.ifClause}" schema`,params:({params:t})=>(0,Mo._)`{failingKeyword: ${t.ifClause}}`},q1={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:D1,code(t){let{gen:e,parentSchema:r,it:n}=t;r.then===void 0&&r.else===void 0&&(0,Ph.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let i=Eh(n,"then"),o=Eh(n,"else");if(!i&&!o)return;let s=e.let("valid",!0),a=e.name("_valid");if(c(),t.reset(),i&&o){let p=e.let("ifClause");t.setParams({ifClause:p}),e.if(a,l("then",p),l("else",p))}else i?e.if(a,l("then")):e.if((0,Mo.not)(a),l("else"));t.pass(s,()=>t.error(!0));function c(){let p=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);t.mergeEvaluated(p)}function l(p,f){return()=>{let d=t.subschema({keyword:p},a);e.assign(s,a),t.mergeValidEvaluated(d,s),f?e.assign(f,(0,Mo._)`${p}`):t.setParams({ifClause:p})}}}};function Eh(t,e){let r=t.schema[e];return r!==void 0&&!(0,Ph.alwaysValidSchema)(t,r)}tl.default=q1});var Rh=S(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var F1=te(),H1={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,F1.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};rl.default=H1});var Oh=S(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});var B1=Dc(),U1=ch(),W1=qc(),G1=uh(),z1=fh(),J1=Ro(),K1=mh(),Y1=zc(),X1=vh(),Q1=Sh(),Z1=xh(),eS=$h(),tS=kh(),rS=Ch(),nS=Ih(),iS=Rh();function oS(t=!1){let e=[Z1.default,eS.default,tS.default,rS.default,nS.default,iS.default,K1.default,Y1.default,J1.default,X1.default,Q1.default];return t?e.push(U1.default,G1.default):e.push(B1.default,W1.default),e.push(z1.default),e}nl.default=oS});var ol=S(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.dynamicAnchor=void 0;var il=K(),sS=tt(),Ah=Kn(),aS=$o(),cS={keyword:"$dynamicAnchor",schemaType:"string",code:t=>Th(t,t.schema)};function Th(t,e){let{gen:r,it:n}=t;n.schemaEnv.root.dynamicAnchors[e]=!0;let i=(0,il._)`${sS.default.dynamicAnchors}${(0,il.getProperty)(e)}`,o=n.errSchemaPath==="#"?n.validateName:lS(t);r.if((0,il._)`!${i}`,()=>r.assign(i,o))}li.dynamicAnchor=Th;function lS(t){let{schemaEnv:e,schema:r,self:n}=t.it,{root:i,baseId:o,localRefs:s,meta:a}=e.root,{schemaId:c}=n.opts,l=new Ah.SchemaEnv({schema:r,schemaId:c,root:i,baseId:o,localRefs:s,meta:a});return Ah.compileSchema.call(n,l),(0,aS.getValidate)(t,l)}li.default=cS});var sl=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.dynamicRef=void 0;var Nh=K(),uS=tt(),Mh=$o(),fS={keyword:"$dynamicRef",schemaType:"string",code:t=>Lh(t,t.schema)};function Lh(t,e){let{gen:r,keyword:n,it:i}=t;if(e[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let o=e.slice(1);if(i.allErrors)s();else{let c=r.let("valid",!1);s(c),t.ok(c)}function s(c){if(i.schemaEnv.root.dynamicAnchors[o]){let l=r.let("_v",(0,Nh._)`${uS.default.dynamicAnchors}${(0,Nh.getProperty)(o)}`);r.if(l,a(l,c),a(i.validateName,c))}else a(i.validateName,c)()}function a(c,l){return l?()=>r.block(()=>{(0,Mh.callRef)(t,c),r.let(l,!0)}):()=>(0,Mh.callRef)(t,c)}}ui.dynamicRef=Lh;ui.default=fS});var Vh=S(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});var pS=ol(),dS=te(),hS={keyword:"$recursiveAnchor",schemaType:"boolean",code(t){t.schema?(0,pS.dynamicAnchor)(t,""):(0,dS.checkStrictMode)(t.it,"$recursiveAnchor: false is ignored")}};al.default=hS});var jh=S(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});var mS=sl(),gS={keyword:"$recursiveRef",schemaType:"string",code:t=>(0,mS.dynamicRef)(t,t.schema)};cl.default=gS});var Dh=S(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var yS=ol(),vS=sl(),wS=Vh(),_S=jh(),bS=[yS.default,vS.default,wS.default,_S.default];ll.default=bS});var Fh=S(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});var qh=Ro(),SS={keyword:"dependentRequired",type:"object",schemaType:"object",error:qh.error,code:t=>(0,qh.validatePropertyDeps)(t)};ul.default=SS});var Hh=S(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});var xS=Ro(),$S={keyword:"dependentSchemas",type:"object",schemaType:"object",code:t=>(0,xS.validateSchemaDeps)(t)};fl.default=$S});var Bh=S(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var kS=te(),CS={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:t,parentSchema:e,it:r}){e.contains===void 0&&(0,kS.checkStrictMode)(r,`"${t}" without "contains" is ignored`)}};pl.default=CS});var Uh=S(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var ES=Fh(),PS=Hh(),IS=Bh(),RS=[ES.default,PS.default,IS.default];dl.default=RS});var Gh=S(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});var ir=K(),Wh=te(),OS=tt(),AS={message:"must NOT have unevaluated properties",params:({params:t})=>(0,ir._)`{unevaluatedProperty: ${t.unevaluatedProperty}}`},TS={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:AS,code(t){let{gen:e,schema:r,data:n,errsCount:i,it:o}=t;if(!i)throw new Error("ajv implementation error");let{allErrors:s,props:a}=o;a instanceof ir.Name?e.if((0,ir._)`${a} !== true`,()=>e.forIn("key",n,f=>e.if(l(a,f),()=>c(f)))):a!==!0&&e.forIn("key",n,f=>a===void 0?c(f):e.if(p(a,f),()=>c(f))),o.props=!0,t.ok((0,ir._)`${i} === ${OS.default.errors}`);function c(f){if(r===!1){t.setParams({unevaluatedProperty:f}),t.error(),s||e.break();return}if(!(0,Wh.alwaysValidSchema)(o,r)){let d=e.name("valid");t.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:Wh.Type.Str},d),s||e.if((0,ir.not)(d),()=>e.break())}}function l(f,d){return(0,ir._)`!${f} || !${f}[${d}]`}function p(f,d){let m=[];for(let g in f)f[g]===!0&&m.push((0,ir._)`${d} !== ${g}`);return(0,ir.and)(...m)}}};hl.default=TS});var Jh=S(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});var br=K(),zh=te(),NS={message:({params:{len:t}})=>(0,br.str)`must NOT have more than ${t} items`,params:({params:{len:t}})=>(0,br._)`{limit: ${t}}`},MS={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:NS,code(t){let{gen:e,schema:r,data:n,it:i}=t,o=i.items||0;if(o===!0)return;let s=e.const("len",(0,br._)`${n}.length`);if(r===!1)t.setParams({len:o}),t.fail((0,br._)`${s} > ${o}`);else if(typeof r=="object"&&!(0,zh.alwaysValidSchema)(i,r)){let c=e.var("valid",(0,br._)`${s} <= ${o}`);e.if((0,br.not)(c),()=>a(c,o)),t.ok(c)}i.items=!0;function a(c,l){e.forRange("i",l,s,p=>{t.subschema({keyword:"unevaluatedItems",dataProp:p,dataPropType:zh.Type.Num},c),i.allErrors||e.if((0,br.not)(c),()=>e.break())})}}};ml.default=MS});var Kh=S(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});var LS=Gh(),VS=Jh(),jS=[LS.default,VS.default];gl.default=jS});var Yh=S(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});var Se=K(),DS={message:({schemaCode:t})=>(0,Se.str)`must match format "${t}"`,params:({schemaCode:t})=>(0,Se._)`{format: ${t}}`},qS={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:DS,code(t,e){let{gen:r,data:n,$data:i,schema:o,schemaCode:s,it:a}=t,{opts:c,errSchemaPath:l,schemaEnv:p,self:f}=a;if(!c.validateFormats)return;i?d():m();function d(){let g=r.scopeValue("formats",{ref:f.formats,code:c.code.formats}),y=r.const("fDef",(0,Se._)`${g}[${s}]`),_=r.let("fType"),b=r.let("format");r.if((0,Se._)`typeof ${y} == "object" && !(${y} instanceof RegExp)`,()=>r.assign(_,(0,Se._)`${y}.type || "string"`).assign(b,(0,Se._)`${y}.validate`),()=>r.assign(_,(0,Se._)`"string"`).assign(b,y)),t.fail$data((0,Se.or)(M(),q()));function M(){return c.strictSchema===!1?Se.nil:(0,Se._)`${s} && !${b}`}function q(){let A=p.$async?(0,Se._)`(${y}.async ? await ${b}(${n}) : ${b}(${n}))`:(0,Se._)`${b}(${n})`,T=(0,Se._)`(typeof ${b} == "function" ? ${A} : ${b}.test(${n}))`;return(0,Se._)`${b} && ${b} !== true && ${_} === ${e} && !${T}`}}function m(){let g=f.formats[o];if(!g){M();return}if(g===!0)return;let[y,_,b]=q(g);y===e&&t.pass(A());function M(){if(c.strictSchema===!1){f.logger.warn(T());return}throw new Error(T());function T(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function q(T){let L=T instanceof RegExp?(0,Se.regexpCode)(T):c.code.formats?(0,Se._)`${c.code.formats}${(0,Se.getProperty)(o)}`:void 0,Y=r.scopeValue("formats",{key:o,ref:T,code:L});return typeof T=="object"&&!(T instanceof RegExp)?[T.type||"string",T.validate,(0,Se._)`${Y}.validate`]:["string",T,Y]}function A(){if(typeof g=="object"&&!(g instanceof RegExp)&&g.async){if(!p.$async)throw new Error("async format in sync schema");return(0,Se._)`await ${b}(${n})`}return typeof _=="function"?(0,Se._)`${b}(${n})`:(0,Se._)`${b}.test(${n})`}}}};yl.default=qS});var Xh=S(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});var FS=Yh(),HS=[FS.default];vl.default=HS});var Qh=S(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.contentVocabulary=Zr.metadataVocabulary=void 0;Zr.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Zr.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var em=S(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});var BS=Ud(),US=ih(),WS=Oh(),GS=Dh(),zS=Uh(),JS=Kh(),KS=Xh(),Zh=Qh(),YS=[GS.default,BS.default,US.default,(0,WS.default)(!0),KS.default,Zh.metadataVocabulary,Zh.contentVocabulary,zS.default,JS.default];wl.default=YS});var rm=S(Lo=>{"use strict";Object.defineProperty(Lo,"__esModule",{value:!0});Lo.DiscrError=void 0;var tm;(function(t){t.Tag="tag",t.Mapping="mapping"})(tm||(Lo.DiscrError=tm={}))});var im=S(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});var en=K(),_l=rm(),nm=Kn(),XS=Jn(),QS=te(),ZS={message:({params:{discrError:t,tagName:e}})=>t===_l.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:t,tag:e,tagName:r}})=>(0,en._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`},ex={keyword:"discriminator",type:"object",schemaType:"object",error:ZS,code(t){let{gen:e,data:r,schema:n,parentSchema:i,it:o}=t,{oneOf:s}=i;if(!o.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=e.let("valid",!1),l=e.const("tag",(0,en._)`${r}${(0,en.getProperty)(a)}`);e.if((0,en._)`typeof ${l} == "string"`,()=>p(),()=>t.error(!1,{discrError:_l.DiscrError.Tag,tag:l,tagName:a})),t.ok(c);function p(){let m=d();e.if(!1);for(let g in m)e.elseIf((0,en._)`${l} === ${g}`),e.assign(c,f(m[g]));e.else(),t.error(!1,{discrError:_l.DiscrError.Mapping,tag:l,tagName:a}),e.endIf()}function f(m){let g=e.name("valid"),y=t.subschema({keyword:"oneOf",schemaProp:m},g);return t.mergeEvaluated(y,en.Name),g}function d(){var m;let g={},y=b(i),_=!0;for(let A=0;A<s.length;A++){let T=s[A];if(T?.$ref&&!(0,QS.schemaHasRulesButRef)(T,o.self.RULES)){let Y=T.$ref;if(T=nm.resolveRef.call(o.self,o.schemaEnv.root,o.baseId,Y),T instanceof nm.SchemaEnv&&(T=T.schema),T===void 0)throw new XS.default(o.opts.uriResolver,o.baseId,Y)}let L=(m=T?.properties)===null||m===void 0?void 0:m[a];if(typeof L!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);_=_&&(y||b(T)),M(L,A)}if(!_)throw new Error(`discriminator: "${a}" must be required`);return g;function b({required:A}){return Array.isArray(A)&&A.includes(a)}function M(A,T){if(A.const)q(A.const,T);else if(A.enum)for(let L of A.enum)q(L,T);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function q(A,T){if(typeof A!="string"||A in g)throw new Error(`discriminator: "${a}" values must be unique strings`);g[A]=T}}}};bl.default=ex});var om=S((NO,tx)=>{tx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var sm=S((MO,rx)=>{rx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var am=S((LO,nx)=>{nx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var cm=S((VO,ix)=>{ix.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var lm=S((jO,ox)=>{ox.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var um=S((DO,sx)=>{sx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var fm=S((qO,ax)=>{ax.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var pm=S((FO,cx)=>{cx.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var dm=S(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});var lx=om(),ux=sm(),fx=am(),px=cm(),dx=lm(),hx=um(),mx=fm(),gx=pm(),yx=["/properties"];function vx(t){return[lx,ux,fx,px,dx,e(this,hx),mx,e(this,gx)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function e(r,n){return t?r.$dataMetaSchema(n,yx):n}}Sl.default=vx});var hm=S((ge,$l)=>{"use strict";Object.defineProperty(ge,"__esModule",{value:!0});ge.MissingRefError=ge.ValidationError=ge.CodeGen=ge.Name=ge.nil=ge.stringify=ge.str=ge._=ge.KeywordCxt=ge.Ajv2020=void 0;var wx=Dd(),_x=em(),bx=im(),Sx=dm(),xl="https://json-schema.org/draft/2020-12/schema",tn=class extends wx.default{constructor(e={}){super({...e,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),_x.default.forEach(e=>this.addVocabulary(e)),this.opts.discriminator&&this.addKeyword(bx.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:e,meta:r}=this.opts;r&&(Sx.default.call(this,e),this.refs["http://json-schema.org/schema"]=xl)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(xl)?xl:void 0)}};ge.Ajv2020=tn;$l.exports=ge=tn;$l.exports.Ajv2020=tn;Object.defineProperty(ge,"__esModule",{value:!0});ge.default=tn;var xx=zn();Object.defineProperty(ge,"KeywordCxt",{enumerable:!0,get:function(){return xx.KeywordCxt}});var rn=K();Object.defineProperty(ge,"_",{enumerable:!0,get:function(){return rn._}});Object.defineProperty(ge,"str",{enumerable:!0,get:function(){return rn.str}});Object.defineProperty(ge,"stringify",{enumerable:!0,get:function(){return rn.stringify}});Object.defineProperty(ge,"nil",{enumerable:!0,get:function(){return rn.nil}});Object.defineProperty(ge,"Name",{enumerable:!0,get:function(){return rn.Name}});Object.defineProperty(ge,"CodeGen",{enumerable:!0,get:function(){return rn.CodeGen}});var $x=go();Object.defineProperty(ge,"ValidationError",{enumerable:!0,get:function(){return $x.default}});var kx=Jn();Object.defineProperty(ge,"MissingRefError",{enumerable:!0,get:function(){return kx.default}})});import{readFileSync as Cx}from"node:fs";import{createRequire as Ex}from"node:module";import{dirname as kl,resolve as Px}from"node:path";import{fileURLToPath as Ix}from"node:url";function $e(){if(nn)return nn;let t=Ex(import.meta.url);try{return nn=kl(t.resolve("view-contracts/package.json")),nn}catch{let e=kl(Ix(import.meta.url));for(;;){try{let n=Px(e,"package.json");if(JSON.parse(Cx(n,"utf8")).name==="view-contracts")return nn=e,nn}catch{}let r=kl(e);if(r===e)break;e=r}throw new Error("view-contracts package root not found")}}var nn,qt=X(()=>{"use strict"});import{readFile as Tx}from"node:fs/promises";async function Do(t){return ut.load(await Tx(t,"utf-8"))}function vm(t,e,r){for(let n of t)if(!e.has(n))throw new Error(`${r}: unknown element "${n}" \u2014 not in spec/ui-dsl.schema.json vocabulary`)}function wm(t,e,r){for(let[n,i]of Object.entries(t))for(let o of e)if(i[o]===void 0||i[o]===null||i[o]==="")throw new Error(`${r}: element "${n}" is missing required "${String(o)}"`)}var Cl=X(()=>{"use strict";qr()});import{resolve as Nx}from"node:path";function Mx(t){vm(Object.keys(t.elements),Mt,_m),wm(t.elements,["tag"],_m)}async function Pl(t){if(!t&&El)return El;let e=t??Nx($e(),"renderers/react/elements.yaml"),r=await Do(e);return Mx(r),t||(El=r),r}var _m,El,bm=X(()=>{"use strict";Lt();Lt();qt();Cl();_m="renderers/react/elements.yaml",El=null});function Sm(t){if(t)return t==="start"?"flex-start":t==="end"?"flex-end":t}function xm(t){if(t)return t==="start"?"flex-start":t==="end"?"flex-end":t==="between"||t==="spaceBetween"?"space-between":t==="around"||t==="spaceAround"?"space-around":t==="spaceEvenly"?"space-evenly":t}var $m=X(()=>{"use strict"});function gt(t){return`${t}px`}function on(t){let e=t.match(/^\{([^}]+)\}$/);if(e)return`var(--${e[1].replace(/\./g,"-")})`}function Il(t){let e={},r=t.width;typeof r=="number"?e.width=gt(r):r==="fill"?e.width="100%":typeof r=="string"&&r!=="wrap"&&(e.width=r),typeof t.minWidth=="number"&&(e.minWidth=gt(t.minWidth));let n=t.maxWidth;typeof n=="number"?e.maxWidth=gt(n):n==="fill"&&(e.maxWidth="100%");let i=t.height;typeof i=="number"?e.height=gt(i):i==="fill"?e.height="100%":typeof i=="string"&&i!=="wrap"&&(e.height=i),typeof t.minHeight=="number"&&(e.minHeight=gt(t.minHeight));let o=t.maxHeight;typeof o=="number"?e.maxHeight=gt(o):o==="fill"&&(e.maxHeight="100%"),t.aspectRatio!==void 0&&(e.aspectRatio=String(t.aspectRatio));let s=t.weight;typeof s=="number"&&(e.flexGrow=s),typeof t.padding=="number"&&(e.padding=gt(t.padding)),typeof t.margin=="number"&&(e.margin=gt(t.margin)),typeof t.gap=="number"&&(e.gap=gt(t.gap));let a=t.textAlign;typeof a=="string"&&(e.textAlign=a==="start"?"left":a==="end"?"right":a);let c=t.contentAlign;typeof c=="string"&&c in km&&(e.placeItems=km[c]),typeof t.overflow=="string"&&(e.overflow=t.overflow);let l=t.selfAlign;typeof l=="string"&&(e.alignSelf=l==="start"?"flex-start":l==="end"?"flex-end":l);let p=t.size;typeof p=="number"?e.fontSize=gt(p):typeof p=="string"&&(e.fontSize=p);let f=typeof s=="string"?s:t.fontWeight;typeof f=="string"&&(e.fontWeight=f);let d=t.background;typeof d=="string"&&(e.background=on(d)??d);let m=t.foreground;typeof m=="string"&&(e.color=on(m)??m);let g=t.radius;typeof g=="number"?e.borderRadius=gt(g):typeof g=="string"&&(e.borderRadius=on(g)??g);let y=t.shadow;y===!0?e.boxShadow="var(--ui-shadow)":y===!1?e.boxShadow="none":typeof y=="string"&&(e.boxShadow=Lx[y]??on(y)??y);let _=t.border;typeof _=="string"&&(e.border=on(_)??_),typeof t.opacity=="number"&&(e.opacity=t.opacity);let b=t.clip;typeof b=="string"&&(e.overflow=b==="hidden"?"hidden":b);let M=t.align;if(typeof M=="string"){let L=Sm(M);L&&(e.alignItems=L)}let q=t.justify;if(typeof q=="string"){let L=xm(q);L&&(e.justifyContent=L)}typeof t.display=="string"&&(e.display=t.display),typeof t.gridTemplateColumns=="string"&&(e.gridTemplateColumns=t.gridTemplateColumns),typeof t.flexDirection=="string"&&(e.flexDirection=t.flexDirection),typeof t.alignItems=="string"&&(e.alignItems=t.alignItems);let A=t.borderColor;typeof A=="string"&&(e.borderColor=on(A)??A);let T=t.flex;return typeof T=="number"&&(e.flex=T),e}function fi(t){let e=Object.entries(t);return e.length===0?"":`style={{ ${e.map(([n,i])=>typeof i=="number"?`${n}: ${i}`:`${n}: ${JSON.stringify(i)}`).join(", ")} }}`}var km,Lx,Rl=X(()=>{"use strict";$m();km={topStart:"start start",top:"center start",topEnd:"end start",start:"start center",center:"center center",end:"end center",bottomStart:"start end",bottom:"center end",bottomEnd:"end end"},Lx={none:"none",sm:"var(--ui-shadow-sm, 0 1px 2px rgba(0,0,0,0.05))",md:"var(--ui-shadow)",lg:"var(--ui-shadow-lg, 0 10px 15px rgba(0,0,0,0.1))"}});function qo(t,e){let r=t[e];if(r!=null){if(typeof r=="string"||typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="object"&&"kind"in r&&r.kind==="literal")return r.value}}function Vx(t,e){if(e!=null&&!(typeof e=="string"||typeof e=="number"||typeof e=="boolean")&&!(typeof e=="object"&&"kind"in e&&e.kind==="literal"))throw new Error(`Style property "${t}" must be a compile-time literal; ViewModel bindings are not allowed on layout/visual props`)}function jx(t){let e={};for(let[r,n]of Object.entries(t)){if(!to.has(r))continue;Vx(r,n);let i=qo(t,r);i!==void 0&&(e[r]=i)}return e}function Dx(t){return t.flex?{display:"flex",flexDirection:t.flex==="column"?"column":"row"}:{}}function qx(t){return t==="horizontal"?{overflowX:"auto",overflowY:"hidden"}:t==="both"?{overflowX:"auto",overflowY:"auto"}:t==="none"?{overflowX:"hidden",overflowY:"hidden"}:{overflowX:"hidden",overflowY:"auto"}}function Cm(t,e){let r=jx(e),n=Il(r);if(n={...n,...Dx(t)},t.tableCell){if("alignItems"in n){let i=String(n.alignItems);n.textAlign=i==="flex-end"?"right":i==="center"?"center":"left",delete n.alignItems}"width"in n&&!("flex"in n)&&(n.flexShrink=0,n.flexGrow=0)}if(t.scrollContainer){let i=qo(e,"scroll"),o=qo(e,"axis"),s=typeof i=="string"?i:typeof o=="string"?o==="horizontal"?"horizontal":"vertical":void 0;if(s)return n={...n,...qx(s)},fi(n);throw new Error("ScrollArea scroll/axis must be compile-time literals")}if(t.flexGrowProp&&e[t.flexGrowProp]){let i=qo(e,t.flexGrowProp);if(typeof i=="number")return n.flexGrow=i,fi(n);throw new Error(`"${t.flexGrowProp}" on <Spacer> must be a compile-time literal`)}return fi(n)}var Em=X(()=>{"use strict";Lt();Rl();Rl()});function z(t){return" ".repeat(t)}function xr(t,e="vm"){let r=t.scope??e;return t.path?`${r}.${t.path}`:r}function Am(t){return t.parts.map(e=>typeof e=="string"?e:`\${${xr(e)}}`).join("")}function Fx(t){return`\`${Am(t)}\``}function Fo(t,e=!1){let r=e?" as ActionDescriptor":"";if(!t.params||Object.keys(t.params).length===0)return`{ name: ${JSON.stringify(t.name)} }${r}`;let n=Object.entries(t.params).map(([i,o])=>`${i}: ${an(o,0)}`).join(", ");return`{ name: ${JSON.stringify(t.name)}, params: { ${n} } }${r}`}function Al(t,e,r=!1){if(t===null)return"null";if(typeof t=="string")return JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return String(t);if(Array.isArray(t))return`[
|
|
68
68
|
${t.map(n=>`${z(e+1)}${Al(n,e+1,r)}`).join(`,
|
|
69
69
|
`)}
|
|
70
70
|
${z(e)}]`;if(typeof t=="object"&&t!==null){let n=t;return"kind"in n&&n.kind==="action"?Fo(n,r):`{
|
|
@@ -149,7 +149,7 @@ ${r.map(n=>` - ${n}`).join(`
|
|
|
149
149
|
`)}`)}var Ym=X(()=>{"use strict"});function Ql(t,e){return[...new Set([...t.matchAll(e)].map(r=>r[0]))]}function Xm(t,e,r){let n=e.slice(0,5).map(o=>` - ${t}: ${o}`).join(`
|
|
150
150
|
`),i=e.length>5?`
|
|
151
151
|
\u2026 and ${e.length-5} more`:"";return`${r}
|
|
152
|
-
${n}${i}`}function Zl(t,e){let r=Ql(t,S$);if(r.length!==0)throw new ln(Xm(e,r,".vc-* selectors are reserved for DSL output (theme.yaml variants + package structural CSS). Use project-owned class names (e.g. ext-*) in extension CSS."))}function eu(t,e){let r=Ql(t,x$),n=Ql(t,$$),i=[...r,...n];if(i.length!==0)throw new ln(Xm(e,i,".vc-* class names are reserved for DSL lowering output. Extension components must use project-owned class names (e.g. ext-*) in src/components/."))}var S$,x$,$$,tu=X(()=>{"use strict";$r();S$=/\.vc-[a-z][\w-]*/g,x$=/(?:className\s*=\s*(?:"vc-[^"]*"|'vc-[^']*'|\{`[^`]*\bvc-[^`]*`\}|\{"vc-[^"]*"\}|\{'vc-[^']*'\})|["'`]vc-[a-z][\w-]*["'`])/g,$$=/\bextensionClassName\s*\(/g});import{readFile as Qm,stat as k$}from"node:fs/promises";import{resolve as C$}from"node:path";async function Zm(t){try{return await k$(t),!0}catch{return!1}}async function kr(t,e){let r=t.design?.extensionsCss;r&&await Zm(r)&&Zl(await Qm(r,"utf-8"),r);let n=he(e);for(let i of["extensions.tsx","extensions.ts"]){let o=C$(n,"src/components",i);await Zm(o)&&eu(await Qm(o,"utf-8"),o)}}var eg=X(()=>{"use strict";ft();tu()});async function E$(t){let e=await Bo(t);return Hl(e)}async function P$(t){let e=await Bo(t);return ql(e)}async function pn(t,e){let r=await E$(t),n=await P$(e);return Wl(r,n),{tokenIR:r,themeIR:n}}var Yo=X(()=>{"use strict";Dl();Fl();Bl();Gl();Wm();Gm();zm();Dl();Fl();Bl();Gl();Ym();tu();eg();Xo();$r()});import{readFile as tg,stat as I$}from"node:fs/promises";async function R$(t){try{return await I$(t),!0}catch{return!1}}async function vi(t,e){let r=he(e),{tokensPath:n,themePath:i}=
|
|
152
|
+
${n}${i}`}function Zl(t,e){let r=Ql(t,S$);if(r.length!==0)throw new ln(Xm(e,r,".vc-* selectors are reserved for DSL output (theme.yaml variants + package structural CSS). Use project-owned class names (e.g. ext-*) in extension CSS."))}function eu(t,e){let r=Ql(t,x$),n=Ql(t,$$),i=[...r,...n];if(i.length!==0)throw new ln(Xm(e,i,".vc-* class names are reserved for DSL lowering output. Extension components must use project-owned class names (e.g. ext-*) in src/components/."))}var S$,x$,$$,tu=X(()=>{"use strict";$r();S$=/\.vc-[a-z][\w-]*/g,x$=/(?:className\s*=\s*(?:"vc-[^"]*"|'vc-[^']*'|\{`[^`]*\bvc-[^`]*`\}|\{"vc-[^"]*"\}|\{'vc-[^']*'\})|["'`]vc-[a-z][\w-]*["'`])/g,$$=/\bextensionClassName\s*\(/g});import{readFile as Qm,stat as k$}from"node:fs/promises";import{resolve as C$}from"node:path";async function Zm(t){try{return await k$(t),!0}catch{return!1}}async function kr(t,e){let r=t.design?.extensionsCss;r&&await Zm(r)&&Zl(await Qm(r,"utf-8"),r);let n=he(e);for(let i of["extensions.tsx","extensions.ts"]){let o=C$(n,"src/components",i);await Zm(o)&&eu(await Qm(o,"utf-8"),o)}}var eg=X(()=>{"use strict";ft();tu()});async function E$(t){let e=await Bo(t);return Hl(e)}async function P$(t){let e=await Bo(t);return ql(e)}async function pn(t,e){let r=await E$(t),n=await P$(e);return Wl(r,n),{tokenIR:r,themeIR:n}}var Yo=X(()=>{"use strict";Dl();Fl();Bl();Gl();Wm();Gm();zm();Dl();Fl();Bl();Gl();Ym();tu();eg();Xo();$r()});import{readFile as tg,stat as I$}from"node:fs/promises";async function R$(t){try{return await I$(t),!0}catch{return!1}}async function vi(t,e){let r=he(e),{tokensPath:n,themePath:i}=Yt(t),{tokenIR:o,themeIR:s}=await pn(n,i);await kr(t,e);let a=await tg(jl(),"utf-8"),c=Yl(o,s),l=Xl(o,s),p=`${zl(o)}
|
|
153
153
|
|
|
154
154
|
${a.trim()}`;c&&(p+=`
|
|
155
155
|
|
|
@@ -159,13 +159,13 @@ ${l}`;let f=t.design?.extensionsCss;return f&&await R$(f)&&(p+=`
|
|
|
159
159
|
|
|
160
160
|
${await tg(f,"utf-8")}`),p}var Xo=X(()=>{"use strict";ft();Ho();Yo()});var De=S(Je=>{"use strict";Je.__esModule=!0;Je.extend=rg;Je.indexOf=M$;Je.escapeExpression=L$;Je.isEmpty=V$;Je.createFrame=j$;Je.blockParams=D$;Je.appendContextPath=q$;var O$={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},A$=/[&<>"'`=]/g,T$=/[&<>"'`=]/;function N$(t){return O$[t]}function rg(t){for(var e=1;e<arguments.length;e++)for(var r in arguments[e])Object.prototype.hasOwnProperty.call(arguments[e],r)&&(t[r]=arguments[e][r]);return t}var nu=Object.prototype.toString;Je.toString=nu;var ru=function(e){return typeof e=="function"};ru(/x/)&&(Je.isFunction=ru=function(t){return typeof t=="function"&&nu.call(t)==="[object Function]"});Je.isFunction=ru;var ng=Array.isArray||function(t){return t&&typeof t=="object"?nu.call(t)==="[object Array]":!1};Je.isArray=ng;function M$(t,e){for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function L$(t){if(typeof t!="string"){if(t&&t.toHTML)return t.toHTML();if(t==null)return"";if(!t)return t+"";t=""+t}return T$.test(t)?t.replace(A$,N$):t}function V$(t){return!t&&t!==0?!0:!!(ng(t)&&t.length===0)}function j$(t){var e=rg({},t);return e._parent=t,e}function D$(t,e){return t.path=e,t}function q$(t,e){return(t?t+".":"")+e}});var Ke=S((Qo,ig)=>{"use strict";Qo.__esModule=!0;var iu=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function ou(t,e){var r=e&&e.loc,n=void 0,i=void 0,o=void 0,s=void 0;r&&(n=r.start.line,i=r.end.line,o=r.start.column,s=r.end.column,t+=" - "+n+":"+o);for(var a=Error.prototype.constructor.call(this,t),c=0;c<iu.length;c++)this[iu[c]]=a[iu[c]];Error.captureStackTrace&&Error.captureStackTrace(this,ou);try{r&&(this.lineNumber=n,this.endLineNumber=i,Object.defineProperty?(Object.defineProperty(this,"column",{value:o,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:s,enumerable:!0})):(this.column=o,this.endColumn=s))}catch{}}ou.prototype=new Error;Qo.default=ou;ig.exports=Qo.default});var sg=S((Zo,og)=>{"use strict";Zo.__esModule=!0;var su=De();Zo.default=function(t){t.registerHelper("blockHelperMissing",function(e,r){var n=r.inverse,i=r.fn;if(e===!0)return i(this);if(e===!1||e==null)return n(this);if(su.isArray(e))return e.length>0?(r.ids&&(r.ids=[r.name]),t.helpers.each(e,r)):n(this);if(r.data&&r.ids){var o=su.createFrame(r.data);o.contextPath=su.appendContextPath(r.data.contextPath,r.name),r={data:o}}return i(e,r)})};og.exports=Zo.default});var cg=S((es,ag)=>{"use strict";es.__esModule=!0;function F$(t){return t&&t.__esModule?t:{default:t}}var wi=De(),H$=Ke(),B$=F$(H$);es.default=function(t){t.registerHelper("each",function(e,r){if(!r)throw new B$.default("Must pass iterator to #each");var n=r.fn,i=r.inverse,o=0,s="",a=void 0,c=void 0;r.data&&r.ids&&(c=wi.appendContextPath(r.data.contextPath,r.ids[0])+"."),wi.isFunction(e)&&(e=e.call(this)),r.data&&(a=wi.createFrame(r.data));function l(g,y,_){a&&(a.key=g,a.index=y,a.first=y===0,a.last=!!_,c&&(a.contextPath=c+g)),s=s+n(e[g],{data:a,blockParams:wi.blockParams([e[g],g],[c+g,null])})}if(e&&typeof e=="object")if(wi.isArray(e))for(var p=e.length;o<p;o++)o in e&&l(o,o,o===e.length-1);else if(typeof Symbol=="function"&&e[Symbol.iterator]){for(var f=[],d=e[Symbol.iterator](),m=d.next();!m.done;m=d.next())f.push(m.value);e=f;for(var p=e.length;o<p;o++)l(o,o,o===e.length-1)}else(function(){var g=void 0;Object.keys(e).forEach(function(y){g!==void 0&&l(g,o-1),g=y,o++}),g!==void 0&&l(g,o-1,!0)})();return o===0&&(s=i(this)),s})};ag.exports=es.default});var ug=S((ts,lg)=>{"use strict";ts.__esModule=!0;function U$(t){return t&&t.__esModule?t:{default:t}}var W$=Ke(),G$=U$(W$);ts.default=function(t){t.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new G$.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};lg.exports=ts.default});var hg=S((rs,dg)=>{"use strict";rs.__esModule=!0;function z$(t){return t&&t.__esModule?t:{default:t}}var fg=De(),J$=Ke(),pg=z$(J$);rs.default=function(t){t.registerHelper("if",function(e,r){if(arguments.length!=2)throw new pg.default("#if requires exactly one argument");return fg.isFunction(e)&&(e=e.call(this)),!r.hash.includeZero&&!e||fg.isEmpty(e)?r.inverse(this):r.fn(this)}),t.registerHelper("unless",function(e,r){if(arguments.length!=2)throw new pg.default("#unless requires exactly one argument");return t.helpers.if.call(this,e,{fn:r.inverse,inverse:r.fn,hash:r.hash})})};dg.exports=rs.default});var gg=S((ns,mg)=>{"use strict";ns.__esModule=!0;ns.default=function(t){t.registerHelper("log",function(){for(var e=[void 0],r=arguments[arguments.length-1],n=0;n<arguments.length-1;n++)e.push(arguments[n]);var i=1;r.hash.level!=null?i=r.hash.level:r.data&&r.data.level!=null&&(i=r.data.level),e[0]=i,t.log.apply(t,e)})};mg.exports=ns.default});var vg=S((is,yg)=>{"use strict";is.__esModule=!0;is.default=function(t){t.registerHelper("lookup",function(e,r,n){return e&&n.lookupProperty(e,r)})};yg.exports=is.default});var _g=S((os,wg)=>{"use strict";os.__esModule=!0;function K$(t){return t&&t.__esModule?t:{default:t}}var _i=De(),Y$=Ke(),X$=K$(Y$);os.default=function(t){t.registerHelper("with",function(e,r){if(arguments.length!=2)throw new X$.default("#with requires exactly one argument");_i.isFunction(e)&&(e=e.call(this));var n=r.fn;if(_i.isEmpty(e))return r.inverse(this);var i=r.data;return r.data&&r.ids&&(i=_i.createFrame(r.data),i.contextPath=_i.appendContextPath(r.data.contextPath,r.ids[0])),n(e,{data:i,blockParams:_i.blockParams([e],[i&&i.contextPath])})})};wg.exports=os.default});var au=S(ss=>{"use strict";ss.__esModule=!0;ss.registerDefaultHelpers=pk;ss.moveHelperToHooks=dk;function Cr(t){return t&&t.__esModule?t:{default:t}}var Q$=sg(),Z$=Cr(Q$),ek=cg(),tk=Cr(ek),rk=ug(),nk=Cr(rk),ik=hg(),ok=Cr(ik),sk=gg(),ak=Cr(sk),ck=vg(),lk=Cr(ck),uk=_g(),fk=Cr(uk);function pk(t){Z$.default(t),tk.default(t),nk.default(t),ok.default(t),ak.default(t),lk.default(t),fk.default(t)}function dk(t,e,r){t.helpers[e]&&(t.hooks[e]=t.helpers[e],r||(t.helpers[e]=void 0))}});var Sg=S((as,bg)=>{"use strict";as.__esModule=!0;var hk=De();as.default=function(t){t.registerDecorator("inline",function(e,r,n,i){var o=e;return r.partials||(r.partials={},o=function(s,a){var c=n.partials;n.partials=hk.extend({},c,r.partials);var l=e(s,a);return n.partials=c,l}),r.partials[i.args[0]]=i.fn,o})};bg.exports=as.default});var xg=S(cu=>{"use strict";cu.__esModule=!0;cu.registerDefaultDecorators=vk;function mk(t){return t&&t.__esModule?t:{default:t}}var gk=Sg(),yk=mk(gk);function vk(t){yk.default(t)}});var lu=S((cs,$g)=>{"use strict";cs.__esModule=!0;var wk=De(),dn={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if(typeof e=="string"){var r=wk.indexOf(dn.methodMap,e.toLowerCase());r>=0?e=r:e=parseInt(e,10)}return e},log:function(e){if(e=dn.lookupLevel(e),typeof console<"u"&&dn.lookupLevel(dn.level)<=e){var r=dn.methodMap[e];console[r]||(r="log");for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];console[r].apply(console,i)}}};cs.default=dn;$g.exports=cs.default});var uu=S(bi=>{"use strict";bi.__esModule=!0;bi.createProtoAccessControl=xk;bi.resultIsAllowed=$k;bi.resetLoggedProperties=Ck;function _k(t){return t&&t.__esModule?t:{default:t}}var kg=De(),bk=lu(),Sk=_k(bk),ls=Object.create(null);function xk(t){var e=Object.create(null);e.__proto__=!1,kg.extend(e,t.allowedProtoProperties);var r=Object.create(null);return r.constructor=!1,r.__defineGetter__=!1,r.__defineSetter__=!1,r.__lookupGetter__=!1,r.__lookupSetter__=!1,kg.extend(r,t.allowedProtoMethods),{properties:{whitelist:e,defaultValue:t.allowProtoPropertiesByDefault},methods:{whitelist:r,defaultValue:t.allowProtoMethodsByDefault}}}function $k(t,e,r){return Cg(typeof t=="function"?e.methods:e.properties,r)}function Cg(t,e){return t.whitelist[e]!==void 0?t.whitelist[e]===!0:t.defaultValue!==void 0?t.defaultValue:(kk(e),!1)}function kk(t){ls[t]!==!0&&(ls[t]=!0,Sk.default.log("error",'Handlebars: Access has been denied to resolve the property "'+t+`" because it is not an "own property" of its parent.
|
|
161
161
|
You can add a runtime option to disable the check or this warning:
|
|
162
|
-
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function Ck(){Object.keys(ls).forEach(function(t){delete ls[t]})}});var fs=S($t=>{"use strict";$t.__esModule=!0;$t.HandlebarsEnvironment=du;function Eg(t){return t&&t.__esModule?t:{default:t}}var Er=De(),Ek=Ke(),fu=Eg(Ek),Pk=au(),Ik=xg(),Rk=lu(),us=Eg(Rk),Ok=uu(),Ak="4.7.9";$t.VERSION=Ak;var Tk=8;$t.COMPILER_REVISION=Tk;var Nk=7;$t.LAST_COMPATIBLE_COMPILER_REVISION=Nk;var Mk={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};$t.REVISION_CHANGES=Mk;var pu="[object Object]";function du(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Pk.registerDefaultHelpers(this),Ik.registerDefaultDecorators(this)}du.prototype={constructor:du,logger:us.default,log:us.default.log,registerHelper:function(e,r){if(Er.toString.call(e)===pu){if(r)throw new fu.default("Arg not supported with multiple helpers");Er.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Er.toString.call(e)===pu)Er.extend(this.partials,e);else{if(typeof r>"u")throw new fu.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(Er.toString.call(e)===pu){if(r)throw new fu.default("Arg not supported with multiple decorators");Er.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){Ok.resetLoggedProperties()}};var Lk=us.default.log;$t.log=Lk;$t.createFrame=Er.createFrame;$t.logger=us.default});var Ig=S((ps,Pg)=>{"use strict";ps.__esModule=!0;function hu(t){this.string=t}hu.prototype.toString=hu.prototype.toHTML=function(){return""+this.string};ps.default=hu;Pg.exports=ps.default});var Rg=S(mu=>{"use strict";mu.__esModule=!0;mu.wrapHelper=Vk;function Vk(t,e){if(typeof t!="function")return t;var r=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)};return r}});var Lg=S(
|
|
162
|
+
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}function Ck(){Object.keys(ls).forEach(function(t){delete ls[t]})}});var fs=S($t=>{"use strict";$t.__esModule=!0;$t.HandlebarsEnvironment=du;function Eg(t){return t&&t.__esModule?t:{default:t}}var Er=De(),Ek=Ke(),fu=Eg(Ek),Pk=au(),Ik=xg(),Rk=lu(),us=Eg(Rk),Ok=uu(),Ak="4.7.9";$t.VERSION=Ak;var Tk=8;$t.COMPILER_REVISION=Tk;var Nk=7;$t.LAST_COMPATIBLE_COMPILER_REVISION=Nk;var Mk={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};$t.REVISION_CHANGES=Mk;var pu="[object Object]";function du(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Pk.registerDefaultHelpers(this),Ik.registerDefaultDecorators(this)}du.prototype={constructor:du,logger:us.default,log:us.default.log,registerHelper:function(e,r){if(Er.toString.call(e)===pu){if(r)throw new fu.default("Arg not supported with multiple helpers");Er.extend(this.helpers,e)}else this.helpers[e]=r},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,r){if(Er.toString.call(e)===pu)Er.extend(this.partials,e);else{if(typeof r>"u")throw new fu.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,r){if(Er.toString.call(e)===pu){if(r)throw new fu.default("Arg not supported with multiple decorators");Er.extend(this.decorators,e)}else this.decorators[e]=r},unregisterDecorator:function(e){delete this.decorators[e]},resetLoggedPropertyAccesses:function(){Ok.resetLoggedProperties()}};var Lk=us.default.log;$t.log=Lk;$t.createFrame=Er.createFrame;$t.logger=us.default});var Ig=S((ps,Pg)=>{"use strict";ps.__esModule=!0;function hu(t){this.string=t}hu.prototype.toString=hu.prototype.toHTML=function(){return""+this.string};ps.default=hu;Pg.exports=ps.default});var Rg=S(mu=>{"use strict";mu.__esModule=!0;mu.wrapHelper=Vk;function Vk(t,e){if(typeof t!="function")return t;var r=function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)};return r}});var Lg=S(or=>{"use strict";or.__esModule=!0;or.checkRevision=Bk;or.template=Uk;or.wrapProgram=ds;or.resolvePartial=Wk;or.invokePartial=Gk;or.noop=Ng;function jk(t){return t&&t.__esModule?t:{default:t}}function Dk(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var qk=De(),hn=Dk(qk),Fk=Ke(),Ht=jk(Fk),Bt=fs(),Og=au(),Hk=Rg(),Ag=uu();function Bk(t){var e=t&&t[0]||1,r=Bt.COMPILER_REVISION;if(!(e>=Bt.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Bt.COMPILER_REVISION))if(e<Bt.LAST_COMPATIBLE_COMPILER_REVISION){var n=Bt.REVISION_CHANGES[r],i=Bt.REVISION_CHANGES[e];throw new Ht.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+i+").")}else throw new Ht.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}function Uk(t,e){if(!e)throw new Ht.default("No environment passed to template");if(!t||!t.main)throw new Ht.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(s,a,c){c.hash&&(a=hn.extend({},a,c.hash),c.ids&&(c.ids[0]=!0)),s=e.VM.resolvePartial.call(this,s,a,c),c.hooks=this.hooks,c.protoAccessControl=this.protoAccessControl;var l=e.VM.invokePartial.call(this,s,a,c);if(l==null&&e.compile&&(c.partials[c.name]=e.compile(s,t.compilerOptions,e),l=c.partials[c.name](a,c)),l!=null){if(c.indent){for(var p=l.split(`
|
|
163
163
|
`),f=0,d=p.length;f<d&&!(!p[f]&&f+1===d);f++)p[f]=c.indent+p[f];l=p.join(`
|
|
164
164
|
`)}return l}else throw new Ht.default("The partial "+c.name+" could not be compiled when running in runtime-only mode")}var i={strict:function(a,c,l){if(!a||!(c in a))throw new Ht.default('"'+c+'" not defined in '+a,{loc:l});return i.lookupProperty(a,c)},lookupProperty:function(a,c){var l=a[c];if(l==null||Object.prototype.hasOwnProperty.call(a,c)||Ag.resultIsAllowed(l,i.protoAccessControl,c))return l},lookup:function(a,c){for(var l=a.length,p=0;p<l;p++){var f=a[p]&&i.lookupProperty(a[p],c);if(f!=null)return f}},lambda:function(a,c){return typeof a=="function"?a.call(c):a},escapeExpression:hn.escapeExpression,invokePartial:n,fn:function(a){var c=t[a];return c.decorator=t[a+"_d"],c},programs:[],program:function(a,c,l,p,f){var d=this.programs[a],m=this.fn(a);return c||f||p||l?d=ds(this,a,m,c,l,p,f):d||(d=this.programs[a]=ds(this,a,m)),d},data:function(a,c){for(;a&&c--;)a=a._parent;return a},mergeIfNeeded:function(a,c){var l=a||c;return a&&c&&a!==c&&(l=hn.extend({},c,a)),l},nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function o(s){var a=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],c=a.data;o._setup(a),!a.partial&&t.useData&&(c=zk(s,c));var l=void 0,p=t.useBlockParams?[]:void 0;t.useDepths&&(a.depths?l=s!=a.depths[0]?[s].concat(a.depths):a.depths:l=[s]);function f(d){return""+t.main(i,d,i.helpers,i.partials,c,p,l)}return f=Mg(t.main,f,i,a.depths||[],c,p),f(s,a)}return o.isTop=!0,o._setup=function(s){if(s.partial)i.protoAccessControl=s.protoAccessControl,i.helpers=s.helpers,i.partials=s.partials,i.decorators=s.decorators,i.hooks=s.hooks;else{var a={};Tg(a,e.helpers,i),Tg(a,s.helpers,i),i.helpers=a,t.usePartial&&(i.partials=i.mergeIfNeeded(s.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=hn.extend({},e.decorators,s.decorators)),i.hooks={},i.protoAccessControl=Ag.createProtoAccessControl(s);var c=s.allowCallsToHelperMissing||r;Og.moveHelperToHooks(i,"helperMissing",c),Og.moveHelperToHooks(i,"blockHelperMissing",c)}},o._child=function(s,a,c,l){if(t.useBlockParams&&!c)throw new Ht.default("must pass block params");if(t.useDepths&&!l)throw new Ht.default("must pass parent depths");return ds(i,s,t[s],a,0,c,l)},o}function ds(t,e,r,n,i,o,s){function a(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],p=s;return s&&c!=s[0]&&!(c===t.nullContext&&s[0]===null)&&(p=[c].concat(s)),r(t,c,t.helpers,t.partials,l.data||n,o&&[l.blockParams].concat(o),p)}return a=Mg(r,a,t,s,n,o),a.program=e,a.depth=s?s.length:0,a.blockParams=i||0,a}function Wk(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=hs(r.partials,t)):r.name==="@partial-block"?t=hs(r.data,"partial-block"):t=hs(r.partials,r.name),t}function Gk(t,e,r){var n=hs(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==Ng&&(function(){r.data=Bt.createFrame(r.data);var o=r.fn;i=r.data["partial-block"]=function(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return c.data=Bt.createFrame(c.data),c.data["partial-block"]=n,o(a,c)},o.partials&&(r.partials=hn.extend({},r.partials,o.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Ht.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}function Ng(){return""}function hs(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}function zk(t,e){return(!e||!("root"in e))&&(e=e?Bt.createFrame(e):{},e.root=t),e}function Mg(t,e,r,n,i,o){if(t.decorator){var s={};e=t.decorator(e,s,r,n&&n[0],i,o,n),hn.extend(e,s)}return e}function Tg(t,e,r){e&&Object.keys(e).forEach(function(n){var i=e[n];t[n]=Jk(i,r)})}function Jk(t,e){var r=e.lookupProperty;return Hk.wrapHelper(t,function(n){return n.lookupProperty=r,n})}});var gu=S((ms,Vg)=>{"use strict";ms.__esModule=!0;ms.default=function(t){(function(){typeof globalThis!="object"&&(Object.prototype.__defineGetter__("__magic__",function(){return this}),__magic__.globalThis=__magic__,delete Object.prototype.__magic__)})();var e=globalThis.Handlebars;t.noConflict=function(){return globalThis.Handlebars===t&&(globalThis.Handlebars=e),t}};Vg.exports=ms.default});var Hg=S((gs,Fg)=>{"use strict";gs.__esModule=!0;function vu(t){return t&&t.__esModule?t:{default:t}}function wu(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}var Kk=fs(),jg=wu(Kk),Yk=Ig(),Xk=vu(Yk),Qk=Ke(),Zk=vu(Qk),eC=De(),yu=wu(eC),tC=Lg(),Dg=wu(tC),rC=gu(),nC=vu(rC);function qg(){var t=new jg.HandlebarsEnvironment;return yu.extend(t,jg),t.SafeString=Xk.default,t.Exception=Zk.default,t.Utils=yu,t.escapeExpression=yu.escapeExpression,t.VM=Dg,t.template=function(e){return Dg.template(e,t)},t}var Si=qg();Si.create=qg;nC.default(Si);Si.default=Si;gs.default=Si;Fg.exports=gs.default});var _u=S((ys,Ug)=>{"use strict";ys.__esModule=!0;var Bg={helpers:{helperExpression:function(e){return e.type==="SubExpression"||(e.type==="MustacheStatement"||e.type==="BlockStatement")&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return e.parts.length===1&&!Bg.helpers.scopedId(e)&&!e.depth}}};ys.default=Bg;Ug.exports=ys.default});var Gg=S((vs,Wg)=>{"use strict";vs.__esModule=!0;var iC=(function(){var t={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,0],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(i,o,s,a,c,l,p){var f=l.length-1;switch(c){case 1:return l[f-1];case 2:this.$=a.prepareProgram(l[f]);break;case 3:this.$=l[f];break;case 4:this.$=l[f];break;case 5:this.$=l[f];break;case 6:this.$=l[f];break;case 7:this.$=l[f];break;case 8:this.$=l[f];break;case 9:this.$={type:"CommentStatement",value:a.stripComment(l[f]),strip:a.stripFlags(l[f],l[f]),loc:a.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:l[f],value:l[f],loc:a.locInfo(this._$)};break;case 11:this.$=a.prepareRawBlock(l[f-2],l[f-1],l[f],this._$);break;case 12:this.$={path:l[f-3],params:l[f-2],hash:l[f-1]};break;case 13:this.$=a.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!1,this._$);break;case 14:this.$=a.prepareBlock(l[f-3],l[f-2],l[f-1],l[f],!0,this._$);break;case 15:this.$={open:l[f-5],path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:a.stripFlags(l[f-5],l[f])};break;case 16:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:a.stripFlags(l[f-5],l[f])};break;case 17:this.$={path:l[f-4],params:l[f-3],hash:l[f-2],blockParams:l[f-1],strip:a.stripFlags(l[f-5],l[f])};break;case 18:this.$={strip:a.stripFlags(l[f-1],l[f-1]),program:l[f]};break;case 19:var d=a.prepareBlock(l[f-2],l[f-1],l[f],l[f],!1,this._$),m=a.prepareProgram([d],l[f-1].loc);m.chained=!0,this.$={strip:l[f-2].strip,program:m,chain:!0};break;case 20:this.$=l[f];break;case 21:this.$={path:l[f-1],strip:a.stripFlags(l[f-2],l[f])};break;case 22:this.$=a.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],a.stripFlags(l[f-4],l[f]),this._$);break;case 23:this.$=a.prepareMustache(l[f-3],l[f-2],l[f-1],l[f-4],a.stripFlags(l[f-4],l[f]),this._$);break;case 24:this.$={type:"PartialStatement",name:l[f-3],params:l[f-2],hash:l[f-1],indent:"",strip:a.stripFlags(l[f-4],l[f]),loc:a.locInfo(this._$)};break;case 25:this.$=a.preparePartialBlock(l[f-2],l[f-1],l[f],this._$);break;case 26:this.$={path:l[f-3],params:l[f-2],hash:l[f-1],strip:a.stripFlags(l[f-4],l[f])};break;case 27:this.$=l[f];break;case 28:this.$=l[f];break;case 29:this.$={type:"SubExpression",path:l[f-3],params:l[f-2],hash:l[f-1],loc:a.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:l[f],loc:a.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:a.id(l[f-2]),value:l[f],loc:a.locInfo(this._$)};break;case 32:this.$=a.id(l[f-1]);break;case 33:this.$=l[f];break;case 34:this.$=l[f];break;case 35:this.$={type:"StringLiteral",value:l[f],original:l[f],loc:a.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(l[f]),original:Number(l[f]),loc:a.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:l[f]==="true",original:l[f]==="true",loc:a.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:a.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:a.locInfo(this._$)};break;case 40:this.$=l[f];break;case 41:this.$=l[f];break;case 42:this.$=a.preparePath(!0,l[f],this._$);break;case 43:this.$=a.preparePath(!1,l[f],this._$);break;case 44:l[f-2].push({part:a.id(l[f]),original:l[f],separator:l[f-1]}),this.$=l[f-2];break;case 45:this.$=[{part:a.id(l[f]),original:l[f]}];break;case 46:this.$=[];break;case 47:l[f-1].push(l[f]);break;case 48:this.$=[];break;case 49:l[f-1].push(l[f]);break;case 50:this.$=[];break;case 51:l[f-1].push(l[f]);break;case 58:this.$=[];break;case 59:l[f-1].push(l[f]);break;case 64:this.$=[];break;case 65:l[f-1].push(l[f]);break;case 70:this.$=[];break;case 71:l[f-1].push(l[f]);break;case 78:this.$=[];break;case 79:l[f-1].push(l[f]);break;case 82:this.$=[];break;case 83:l[f-1].push(l[f]);break;case 86:this.$=[];break;case 87:l[f-1].push(l[f]);break;case 90:this.$=[];break;case 91:l[f-1].push(l[f]);break;case 94:this.$=[];break;case 95:l[f-1].push(l[f]);break;case 98:this.$=[l[f]];break;case 99:l[f-1].push(l[f]);break;case 100:this.$=[l[f]];break;case 101:l[f-1].push(l[f]);break}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{15:[2,48],17:39,18:[2,48]},{20:41,56:40,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:44,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:45,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:41,56:48,64:42,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:49,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,50]},{72:[1,35],86:51},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:52,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:53,38:55,39:[1,57],43:56,44:[1,58],45:54,47:[2,54]},{28:59,43:60,44:[1,58],47:[2,56]},{13:62,15:[1,20],18:[1,61]},{33:[2,86],57:63,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:64,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:65,47:[1,66]},{30:67,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:68,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:69,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:70,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:74,33:[2,80],50:71,63:72,64:75,65:[1,43],69:73,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,79]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,50]},{20:74,53:80,54:[2,84],63:81,64:75,65:[1,43],69:82,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:83,47:[1,66]},{47:[2,55]},{4:84,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:85,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:86,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:87,47:[1,66]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:74,33:[2,88],58:88,63:89,64:75,65:[1,43],69:90,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:91,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:92,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,31:93,33:[2,60],63:94,64:75,65:[1,43],69:95,70:76,71:77,72:[1,78],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,66],36:96,63:97,64:75,65:[1,43],69:98,70:76,71:77,72:[1,78],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,22:99,23:[2,52],63:100,64:75,65:[1,43],69:101,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:74,33:[2,92],62:102,63:103,64:75,65:[1,43],69:104,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,105]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:106,72:[1,107],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,108],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,109]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:55,39:[1,57],43:56,44:[1,58],45:111,46:110,47:[2,76]},{33:[2,70],40:112,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,113]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:74,63:115,64:75,65:[1,43],67:114,68:[2,96],69:116,70:76,71:77,72:[1,78],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,117]},{32:118,33:[2,62],74:119,75:[1,120]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:121,74:122,75:[1,120]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,123]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,124]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,108]},{20:74,63:125,64:75,65:[1,43],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:74,33:[2,72],41:126,63:127,64:75,65:[1,43],69:128,70:76,71:77,72:[1,78],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,129]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,130]},{33:[2,63]},{72:[1,132],76:131},{33:[1,133]},{33:[2,69]},{15:[2,12],18:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:134,74:135,75:[1,120]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,137],77:[1,136]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,138]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],54:[2,55],56:[2,20],60:[2,57],73:[2,81],82:[2,85],86:[2,18],90:[2,89],101:[2,53],104:[2,93],110:[2,19],111:[2,77],116:[2,97],119:[2,63],122:[2,69],135:[2,75],136:[2,32]},parseError:function(i,o){throw new Error(i)},parse:function(i){var o=this,s=[0],a=[null],c=[],l=this.table,p="",f=0,d=0,m=0,g=2,y=1;this.lexer.setInput(i),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,typeof this.lexer.yylloc>"u"&&(this.lexer.yylloc={});var _=this.lexer.yylloc;c.push(_);var b=this.lexer.options&&this.lexer.options.ranges;typeof this.yy.parseError=="function"&&(this.parseError=this.yy.parseError);function M(ce){s.length=s.length-2*ce,a.length=a.length-ce,c.length=c.length-ce}function q(){var ce;return ce=o.lexer.lex()||1,typeof ce!="number"&&(ce=o.symbols_[ce]||ce),ce}for(var A,T,L,Y,pe,Re,Ce={},Fe,Oe,at,ct;;){if(L=s[s.length-1],this.defaultActions[L]?Y=this.defaultActions[L]:((A===null||typeof A>"u")&&(A=q()),Y=l[L]&&l[L][A]),typeof Y>"u"||!Y.length||!Y[0]){var Pt="";if(!m){ct=[];for(Fe in l[L])this.terminals_[Fe]&&Fe>2&&ct.push("'"+this.terminals_[Fe]+"'");this.lexer.showPosition?Pt="Parse error on line "+(f+1)+`:
|
|
165
165
|
`+this.lexer.showPosition()+`
|
|
166
166
|
Expecting `+ct.join(", ")+", got '"+(this.terminals_[A]||A)+"'":Pt="Parse error on line "+(f+1)+": Unexpected "+(A==1?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(Pt,{text:this.lexer.match,token:this.terminals_[A]||A,line:this.lexer.yylineno,loc:_,expected:ct})}}if(Y[0]instanceof Array&&Y.length>1)throw new Error("Parse Error: multiple actions possible at state: "+L+", token: "+A);switch(Y[0]){case 1:s.push(A),a.push(this.lexer.yytext),c.push(this.lexer.yylloc),s.push(Y[1]),A=null,T?(A=T,T=null):(d=this.lexer.yyleng,p=this.lexer.yytext,f=this.lexer.yylineno,_=this.lexer.yylloc,m>0&&m--);break;case 2:if(Oe=this.productions_[Y[1]][1],Ce.$=a[a.length-Oe],Ce._$={first_line:c[c.length-(Oe||1)].first_line,last_line:c[c.length-1].last_line,first_column:c[c.length-(Oe||1)].first_column,last_column:c[c.length-1].last_column},b&&(Ce._$.range=[c[c.length-(Oe||1)].range[0],c[c.length-1].range[1]]),Re=this.performAction.call(Ce,p,d,f,this.yy,Y[1],a,c),typeof Re<"u")return Re;Oe&&(s=s.slice(0,-1*Oe*2),a=a.slice(0,-1*Oe),c=c.slice(0,-1*Oe)),s.push(this.productions_[Y[1]][0]),a.push(Ce.$),c.push(Ce._$),at=l[s[s.length-2]][s[s.length-1]],s.push(at);break;case 3:return!0}}return!0}},e=(function(){var n={EOF:1,parseError:function(o,s){if(this.yy.parser)this.yy.parser.parseError(o,s);else throw new Error(o)},setInput:function(o){return this._input=o,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var s=o.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},unput:function(o){var s=o.length,a=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s-1),this.offset-=s;var c=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var l=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===c.length?this.yylloc.first_column:0)+c[c.length-a.length].length-a[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[l[0],l[0]+this.yyleng-s]),this},more:function(){return this._more=!0,this},less:function(o){this.unput(this.match.slice(o))},pastInput:function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var o=this.pastInput(),s=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
167
167
|
`+s+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var o,s,a,c,l,p;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),d=0;d<f.length&&(a=this._input.match(this.rules[f[d]]),!(a&&(!s||a[0].length>s[0].length)&&(s=a,c=d,!this.options.flex)));d++);return s?(p=s[0].match(/(?:\r\n?|\n).*/g),p&&(this.yylineno+=p.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:p?p[p.length-1].length-p[p.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+s[0].length},this.yytext+=s[0],this.match+=s[0],this.matches=s,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(s[0].length),this.matched+=s[0],o=this.performAction.call(this,this.yy,this,f[c],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),o||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
|
|
168
|
-
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return typeof o<"u"?o:this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(o){this.begin(o)}};return n.options={},n.performAction=function(o,s,a,c){function l(f,d){return s.yytext=s.yytext.substring(f,s.yyleng-d+f)}var p=c;switch(a){case 0:if(s.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):s.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),s.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(s.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return s.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return s.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return s.yytext=s.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();vs.default=iC;Wg.exports=vs.default});var Ss=S((bs,Kg)=>{"use strict";bs.__esModule=!0;function oC(t){return t&&t.__esModule?t:{default:t}}var sC=Ke(),bu=oC(sC);function ws(){this.parents=[]}ws.prototype={constructor:ws,mutating:!1,acceptKey:function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!ws.prototype[n.type])throw new bu.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new bu.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},accept:function(e){if(e){if(!this[e.type])throw new bu.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:_s,Decorator:_s,BlockStatement:zg,DecoratorBlock:zg,PartialStatement:Jg,PartialBlockStatement:function(e){Jg.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:_s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function _s(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function zg(t){_s.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function Jg(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}bs.default=ws;Kg.exports=bs.default});var Xg=S((xs,Yg)=>{"use strict";xs.__esModule=!0;function aC(t){return t&&t.__esModule?t:{default:t}}var cC=Ss(),lC=aC(cC);function kt(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}kt.prototype=new lC.default;kt.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,i=0,o=n.length;i<o;i++){var s=n[i],a=this.accept(s);if(a){var c=Su(n,i,r),l=xu(n,i,r),p=a.openStandalone&&c,f=a.closeStandalone&&l,d=a.inlineStandalone&&c&&l;a.close&&Pr(n,i,!0),a.open&&or(n,i,!0),e&&d&&(Pr(n,i),or(n,i)&&s.type==="PartialStatement"&&(s.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),e&&p&&(Pr((s.program||s.inverse).body),or(n,i)),e&&f&&(Pr(n,i),or((s.inverse||s.program).body))}}return t};kt.prototype.BlockStatement=kt.prototype.DecoratorBlock=kt.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,r=t.program&&t.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:xu(e.body),closeStandalone:Su((n||e).body)};if(t.openStrip.close&&Pr(e.body,null,!0),r){var s=t.inverseStrip;s.open&&or(e.body,null,!0),s.close&&Pr(n.body,null,!0),t.closeStrip.open&&or(i.body,null,!0),!this.options.ignoreStandalone&&Su(e.body)&&xu(n.body)&&(or(e.body),Pr(n.body))}else t.closeStrip.open&&or(e.body,null,!0);return o};kt.prototype.Decorator=kt.prototype.MustacheStatement=function(t){return t.strip};kt.prototype.PartialStatement=kt.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};function Su(t,e,r){e===void 0&&(e=t.length);var n=t[e-1],i=t[e-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}function xu(t,e,r){e===void 0&&(e=-1);var n=t[e+1],i=t[e+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}function Pr(t,e,r){var n=t[e==null?0:e+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}function or(t,e,r){var n=t[e==null?t.length-1:e-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}xs.default=kt;Yg.exports=xs.default});var Qg=S(ot=>{"use strict";ot.__esModule=!0;ot.SourceLocation=pC;ot.id=dC;ot.stripFlags=hC;ot.stripComment=mC;ot.preparePath=gC;ot.prepareMustache=yC;ot.prepareRawBlock=vC;ot.prepareBlock=wC;ot.prepareProgram=_C;ot.preparePartialBlock=bC;function uC(t){return t&&t.__esModule?t:{default:t}}var fC=Ke(),$u=uC(fC);function ku(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new $u.default(t.path.original+" doesn't match "+e,r)}}function pC(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function dC(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function hC(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function mC(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function gC(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],o=0,s=0,a=e.length;s<a;s++){var c=e[s].part,l=e[s].original!==c;if(n+=(e[s].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new $u.default("Invalid path: "+n,{loc:r});c===".."&&o++}else i.push(c)}return{type:"PathExpression",data:t,depth:o,parts:i,original:n,loc:r}}function yC(t,e,r,n,i,o){var s=n.charAt(3)||n.charAt(2),a=s!=="{"&&s!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:a,strip:i,loc:this.locInfo(o)}}function vC(t,e,r,n){ku(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function wC(t,e,r,n,i,o){n&&n.path&&ku(t,n);var s=/\*/.test(t.open);e.blockParams=t.blockParams;var a=void 0,c=void 0;if(r){if(s)throw new $u.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,a=r.program}return i&&(i=a,a=e,e=i),{type:s?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:a,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(o)}}function _C(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function bC(t,e,r,n){return ku(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}});var ey=S($i=>{"use strict";$i.__esModule=!0;$i.parseWithoutProcessing=Zg;$i.parse=RC;function SC(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function Pu(t){return t&&t.__esModule?t:{default:t}}var xC=Gg(),Cu=Pu(xC),$C=Xg(),kC=Pu($C),CC=Qg(),EC=SC(CC),PC=Ke(),xi=Pu(PC),IC=De();$i.parser=Cu.default;var $s={};IC.extend($s,EC);function Zg(t,e){if(t.type==="Program")return OC(t),t;Cu.default.yy=$s,$s.locInfo=function(n){return new $s.SourceLocation(e&&e.srcName,n)};var r=Cu.default.parse(t);return r}function RC(t,e){var r=Zg(t,e),n=new kC.default(e);return n.accept(r)}function OC(t){Eu(t)}function Eu(t){if(t!=null){if(Array.isArray(t)){t.forEach(Eu);return}if(typeof t=="object"){if(t.type==="PathExpression"){if(!AC(t.depth))throw new xi.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(t.parts))throw new xi.default("Invalid AST: PathExpression.parts must be an array");for(var e=0;e<t.parts.length;e++)if(typeof t.parts[e]!="string")throw new xi.default("Invalid AST: PathExpression.parts must only contain strings")}else if(t.type==="NumberLiteral"){if(typeof t.value!="number"||!isFinite(t.value))throw new xi.default("Invalid AST: NumberLiteral.value must be a number")}else if(t.type==="BooleanLiteral"&&typeof t.value!="boolean")throw new xi.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(t).forEach(function(r){r!=="loc"&&Eu(t[r])})}}}function AC(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&t>=0}});var iy=S(Pi=>{"use strict";Pi.__esModule=!0;Pi.Compiler=Iu;Pi.precompile=LC;Pi.compile=VC;function ry(t){return t&&t.__esModule?t:{default:t}}var TC=Ke(),Ci=ry(TC),Ei=De(),NC=_u(),ki=ry(NC),MC=[].slice;function Iu(){}Iu.prototype={compiler:Iu,equals:function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=e.opcodes[n];if(i.opcode!==o.opcode||!ny(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Ei.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(e)},compileProgram:function(e){var r=new this.compiler,n=r.compile(e,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},accept:function(e){if(!this[e.type])throw new Ci.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var r=this[e.type](e);return this.sourceNode.shift(),r},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var r=e.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){ty(e);var r=e.program,n=e.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(e);i==="helper"?this.helperSexpr(e,r,n):i==="simple"?(this.simpleSexpr(e),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var r=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,r,void 0),i=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},PartialStatement:function(e){this.usePartial=!0;var r=e.program;r&&(r=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new Ci.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=e.name.original,o=e.name.type==="SubExpression";o&&this.accept(e.name),this.setupFullMustacheParams(e,r,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",o,i,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){ty(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,r,n){var i=e.path,o=i.parts[0],s=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,s)},simpleSexpr:function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,r,n){var i=this.setupFullMustacheParams(e,r,n),o=e.path,s=o.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",i.length,s);else{if(this.options.knownHelpersOnly)throw new Ci.default("You specified knownHelpersOnly, but used the unknown helper "+s,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,ki.default.helpers.simpleId(o))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var r=e.parts[0],n=ki.default.helpers.scopedId(e),i=!e.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,e.parts):r?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var r=e.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:MC.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var r=ki.default.helpers.simpleId(e.path),n=r&&!!this.blockParamIndex(e.path.parts[0]),i=!n&&ki.default.helpers.helperExpression(e),o=!n&&(i||r);if(o&&!i){var s=e.path.parts[0],a=this.options;a.knownHelpers[s]?i=!0:a.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},pushParams:function(e){for(var r=0,n=e.length;r<n;r++)this.pushParam(e[r])},pushParam:function(e){var r=e.value!=null?e.value:e.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",r,e.type),e.type==="SubExpression"&&this.accept(e);else{if(this.trackIds){var n=void 0;if(e.parts&&!ki.default.helpers.scopedId(e)&&!e.depth&&(n=this.blockParamIndex(e.parts[0])),n){var i=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=e.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,r)}this.accept(e)}},setupFullMustacheParams:function(e,r,n,i){var o=e.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",i),o},blockParamIndex:function(e){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&Ei.indexOf(i,e);if(i&&o>=0)return[r,o]}}};function LC(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new Ci.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=r.parse(t,e),i=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(i,e)}function VC(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new Ci.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=Ei.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function i(){var s=r.parse(t,e),a=new r.Compiler().compile(s,e),c=new r.JavaScriptCompiler().compile(a,e,void 0,!0);return r.template(c)}function o(s,a){return n||(n=i()),n.call(this,s,a)}return o._setup=function(s){return n||(n=i()),n._setup(s)},o._child=function(s,a,c,l){return n||(n=i()),n._child(s,a,c,l)},o}function ny(t,e){if(t===e)return!0;if(Ei.isArray(t)&&Ei.isArray(e)&&t.length===e.length){for(var r=0;r<t.length;r++)if(!ny(t[r],e[r]))return!1;return!0}}function ty(t){if(!t.path.parts){var e=t.path;t.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc}}}});var sy=S(Ru=>{var oy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ru.encode=function(t){if(0<=t&&t<oy.length)return oy[t];throw new TypeError("Must be between 0 and 63: "+t)};Ru.decode=function(t){var e=65,r=90,n=97,i=122,o=48,s=57,a=43,c=47,l=26,p=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+l:o<=t&&t<=s?t-o+p:t==a?62:t==c?63:-1}});var Tu=S(Au=>{var ay=sy(),Ou=5,cy=1<<Ou,ly=cy-1,uy=cy;function jC(t){return t<0?(-t<<1)+1:(t<<1)+0}function DC(t){var e=(t&1)===1,r=t>>1;return e?-r:r}Au.encode=function(e){var r="",n,i=jC(e);do n=i&ly,i>>>=Ou,i>0&&(n|=uy),r+=ay.encode(n);while(i>0);return r};Au.decode=function(e,r,n){var i=e.length,o=0,s=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=ay.decode(e.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(c&uy),c&=ly,o=o+(c<<s),s+=Ou}while(a);n.value=DC(o),n.rest=r}});var yn=S(Me=>{function qC(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}Me.getArg=qC;var fy=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,FC=/^data:.+\,.+$/;function Ii(t){var e=t.match(fy);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}Me.urlParse=Ii;function mn(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}Me.urlGenerate=mn;function Nu(t){var e=t,r=Ii(t);if(r){if(!r.path)return t;e=r.path}for(var n=Me.isAbsolute(e),i=e.split(/\/+/),o,s=0,a=i.length-1;a>=0;a--)o=i[a],o==="."?i.splice(a,1):o===".."?s++:s>0&&(o===""?(i.splice(a+1,s),s=0):(i.splice(a,2),s--));return e=i.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,mn(r)):e}Me.normalize=Nu;function py(t,e){t===""&&(t="."),e===""&&(e=".");var r=Ii(e),n=Ii(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),mn(r);if(r||e.match(FC))return e;if(n&&!n.host&&!n.path)return n.host=e,mn(n);var i=e.charAt(0)==="/"?e:Nu(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,mn(n)):i}Me.join=py;Me.isAbsolute=function(t){return t.charAt(0)==="/"||fy.test(t)};function HC(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}Me.relative=HC;var dy=(function(){var t=Object.create(null);return!("__proto__"in t)})();function hy(t){return t}function BC(t){return my(t)?"$"+t:t}Me.toSetString=dy?hy:BC;function UC(t){return my(t)?t.slice(1):t}Me.fromSetString=dy?hy:UC;function my(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function WC(t,e,r){var n=gn(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:gn(t.name,e.name)}Me.compareByOriginalPositions=WC;function GC(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=gn(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:gn(t.name,e.name)}Me.compareByGeneratedPositionsDeflated=GC;function gn(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function zC(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=gn(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:gn(t.name,e.name)}Me.compareByGeneratedPositionsInflated=zC;function JC(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}Me.parseSourceMapInput=JC;function KC(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=Ii(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=py(mn(n),e)}return Nu(e)}Me.computeSourceURL=KC});var Vu=S(gy=>{var Mu=yn(),Lu=Object.prototype.hasOwnProperty,Ir=typeof Map<"u";function Ut(){this._array=[],this._set=Ir?new Map:Object.create(null)}Ut.fromArray=function(e,r){for(var n=new Ut,i=0,o=e.length;i<o;i++)n.add(e[i],r);return n};Ut.prototype.size=function(){return Ir?this._set.size:Object.getOwnPropertyNames(this._set).length};Ut.prototype.add=function(e,r){var n=Ir?e:Mu.toSetString(e),i=Ir?this.has(e):Lu.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(e),i||(Ir?this._set.set(e,o):this._set[n]=o)};Ut.prototype.has=function(e){if(Ir)return this._set.has(e);var r=Mu.toSetString(e);return Lu.call(this._set,r)};Ut.prototype.indexOf=function(e){if(Ir){var r=this._set.get(e);if(r>=0)return r}else{var n=Mu.toSetString(e);if(Lu.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};Ut.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Ut.prototype.toArray=function(){return this._array.slice()};gy.ArraySet=Ut});var wy=S(vy=>{var yy=yn();function YC(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=i||yy.compareByGeneratedPositionsInflated(t,e)<=0}function ks(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}ks.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};ks.prototype.add=function(e){YC(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};ks.prototype.toArray=function(){return this._sorted||(this._array.sort(yy.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};vy.MappingList=ks});var ju=S(_y=>{var Ri=Tu(),xe=yn(),Cs=Vu().ArraySet,XC=wy().MappingList;function st(t){t||(t={}),this._file=xe.getArg(t,"file",null),this._sourceRoot=xe.getArg(t,"sourceRoot",null),this._skipValidation=xe.getArg(t,"skipValidation",!1),this._sources=new Cs,this._names=new Cs,this._mappings=new XC,this._sourcesContents=null}st.prototype._version=3;st.fromSourceMap=function(e){var r=e.sourceRoot,n=new st({file:e.file,sourceRoot:r});return e.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=xe.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),e.sources.forEach(function(i){var o=i;r!==null&&(o=xe.relative(r,i)),n._sources.has(o)||n._sources.add(o);var s=e.sourceContentFor(i);s!=null&&n.setSourceContent(i,s)}),n};st.prototype.addMapping=function(e){var r=xe.getArg(e,"generated"),n=xe.getArg(e,"original",null),i=xe.getArg(e,"source",null),o=xe.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})};st.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=xe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[xe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[xe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};st.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var o=this._sourceRoot;o!=null&&(i=xe.relative(o,i));var s=new Cs,a=new Cs;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=e.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=xe.join(n,c.source)),o!=null&&(c.source=xe.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!s.has(p)&&s.add(p);var f=c.name;f!=null&&!a.has(f)&&a.add(f)},this),this._sources=s,this._names=a,e.sources.forEach(function(c){var l=e.sourceContentFor(c);l!=null&&(n!=null&&(c=xe.join(n,c)),o!=null&&(c=xe.relative(o,c)),this.setSourceContent(c,l))},this)};st.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i}))}};st.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,o=0,s=0,a="",c,l,p,f,d=this._mappings.toArray(),m=0,g=d.length;m<g;m++){if(l=d[m],c="",l.generatedLine!==r)for(e=0;l.generatedLine!==r;)c+=";",r++;else if(m>0){if(!xe.compareByGeneratedPositionsInflated(l,d[m-1]))continue;c+=","}c+=Ri.encode(l.generatedColumn-e),e=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=Ri.encode(f-s),s=f,c+=Ri.encode(l.originalLine-1-i),i=l.originalLine-1,c+=Ri.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=Ri.encode(p-o),o=p)),a+=c}return a};st.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=xe.relative(r,n));var i=xe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};st.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};st.prototype.toString=function(){return JSON.stringify(this.toJSON())};_y.SourceMapGenerator=st});var by=S(Rr=>{Rr.GREATEST_LOWER_BOUND=1;Rr.LEAST_UPPER_BOUND=2;function Du(t,e,r,n,i,o){var s=Math.floor((e-t)/2)+t,a=i(r,n[s],!0);return a===0?s:a>0?e-s>1?Du(s,e,r,n,i,o):o==Rr.LEAST_UPPER_BOUND?e<n.length?e:-1:s:s-t>1?Du(t,s,r,n,i,o):o==Rr.LEAST_UPPER_BOUND?s:t<0?-1:t}Rr.search=function(e,r,n,i){if(r.length===0)return-1;var o=Du(-1,r.length,e,r,n,i||Rr.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o}});var xy=S(Sy=>{function qu(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function QC(t,e){return Math.round(t+Math.random()*(e-t))}function Fu(t,e,r,n){if(r<n){var i=QC(r,n),o=r-1;qu(t,i,n);for(var s=t[n],a=r;a<n;a++)e(t[a],s)<=0&&(o+=1,qu(t,o,a));qu(t,o+1,a);var c=o+1;Fu(t,e,r,c-1),Fu(t,e,c+1,n)}}Sy.quickSort=function(t,e){Fu(t,e,0,t.length-1)}});var ky=S(Es=>{var F=yn(),Hu=by(),vn=Vu().ArraySet,ZC=Tu(),Oi=xy().quickSort;function ye(t,e){var r=t;return typeof t=="string"&&(r=F.parseSourceMapInput(t)),r.sections!=null?new yt(r,e):new Ie(r,e)}ye.fromSourceMap=function(t,e){return Ie.fromSourceMap(t,e)};ye.prototype._version=3;ye.prototype.__generatedMappings=null;Object.defineProperty(ye.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});ye.prototype.__originalMappings=null;Object.defineProperty(ye.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});ye.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};ye.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};ye.GENERATED_ORDER=1;ye.ORIGINAL_ORDER=2;ye.GREATEST_LOWER_BOUND=1;ye.LEAST_UPPER_BOUND=2;ye.prototype.eachMapping=function(e,r,n){var i=r||null,o=n||ye.GENERATED_ORDER,s;switch(o){case ye.GENERATED_ORDER:s=this._generatedMappings;break;case ye.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;s.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=F.computeSourceURL(a,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(e,i)};ye.prototype.allGeneratedPositionsFor=function(e){var r=F.getArg(e,"line"),n={source:F.getArg(e,"source"),originalLine:r,originalColumn:F.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,Hu.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var a=s.originalLine;s&&s.originalLine===a;)i.push({line:F.getArg(s,"generatedLine",null),column:F.getArg(s,"generatedColumn",null),lastColumn:F.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var c=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==c;)i.push({line:F.getArg(s,"generatedLine",null),column:F.getArg(s,"generatedColumn",null),lastColumn:F.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return i};Es.SourceMapConsumer=ye;function Ie(t,e){var r=t;typeof t=="string"&&(r=F.parseSourceMapInput(t));var n=F.getArg(r,"version"),i=F.getArg(r,"sources"),o=F.getArg(r,"names",[]),s=F.getArg(r,"sourceRoot",null),a=F.getArg(r,"sourcesContent",null),c=F.getArg(r,"mappings"),l=F.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);s&&(s=F.normalize(s)),i=i.map(String).map(F.normalize).map(function(p){return s&&F.isAbsolute(s)&&F.isAbsolute(p)?F.relative(s,p):p}),this._names=vn.fromArray(o.map(String),!0),this._sources=vn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return F.computeSourceURL(s,p,e)}),this.sourceRoot=s,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=e,this.file=l}Ie.prototype=Object.create(ye.prototype);Ie.prototype.consumer=ye;Ie.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=F.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};Ie.fromSourceMap=function(e,r){var n=Object.create(Ie.prototype),i=n._names=vn.fromArray(e._names.toArray(),!0),o=n._sources=vn.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(m){return F.computeSourceURL(n.sourceRoot,m,r)});for(var s=e._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=s.length;l<p;l++){var f=s[l],d=new $y;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),a.push(d)}return Oi(n.__originalMappings,F.compareByOriginalPositions),n};Ie.prototype._version=3;Object.defineProperty(Ie.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function $y(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Ie.prototype._parseMappings=function(e,r){for(var n=1,i=0,o=0,s=0,a=0,c=0,l=e.length,p=0,f={},d={},m=[],g=[],y,_,b,M,q;p<l;)if(e.charAt(p)===";")n++,p++,i=0;else if(e.charAt(p)===",")p++;else{for(y=new $y,y.generatedLine=n,M=p;M<l&&!this._charIsMappingSeparator(e,M);M++);if(_=e.slice(p,M),b=f[_],b)p+=_.length;else{for(b=[];p<M;)ZC.decode(e,p,d),q=d.value,p=d.rest,b.push(q);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");f[_]=b}y.generatedColumn=i+b[0],i=y.generatedColumn,b.length>1&&(y.source=a+b[1],a+=b[1],y.originalLine=o+b[2],o=y.originalLine,y.originalLine+=1,y.originalColumn=s+b[3],s=y.originalColumn,b.length>4&&(y.name=c+b[4],c+=b[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}Oi(g,F.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,Oi(m,F.compareByOriginalPositions),this.__originalMappings=m};Ie.prototype._findMapping=function(e,r,n,i,o,s){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return Hu.search(e,r,o,s)};Ie.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};Ie.prototype.originalPositionFor=function(e){var r={generatedLine:F.getArg(e,"line"),generatedColumn:F.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",F.compareByGeneratedPositionsDeflated,F.getArg(e,"bias",ye.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=F.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=F.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=F.getArg(i,"name",null);return s!==null&&(s=this._names.at(s)),{source:o,line:F.getArg(i,"originalLine",null),column:F.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};Ie.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};Ie.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=F.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=F.urlParse(this.sourceRoot))){var s=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};Ie.prototype.generatedPositionFor=function(e){var r=F.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:F.getArg(e,"line"),originalColumn:F.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,F.getArg(e,"bias",ye.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:F.getArg(o,"generatedLine",null),column:F.getArg(o,"generatedColumn",null),lastColumn:F.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Es.BasicSourceMapConsumer=Ie;function yt(t,e){var r=t;typeof t=="string"&&(r=F.parseSourceMapInput(t));var n=F.getArg(r,"version"),i=F.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new vn,this._names=new vn;var o={line:-1,column:0};this._sections=i.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var a=F.getArg(s,"offset"),c=F.getArg(a,"line"),l=F.getArg(a,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=a,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new ye(F.getArg(s,"map"),e)}})}yt.prototype=Object.create(ye.prototype);yt.prototype.constructor=ye;yt.prototype._version=3;Object.defineProperty(yt.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});yt.prototype.originalPositionFor=function(e){var r={generatedLine:F.getArg(e,"line"),generatedColumn:F.getArg(e,"column")},n=Hu.search(r,this._sections,function(o,s){var a=o.generatedLine-s.generatedOffset.generatedLine;return a||o.generatedColumn-s.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};yt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};yt.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(e,!0);if(o)return o}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};yt.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(F.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}};yt.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var a=o[s],c=i.consumer._sources.at(a.source);c=F.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;a.name&&(l=i.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}Oi(this.__generatedMappings,F.compareByGeneratedPositionsDeflated),Oi(this.__originalMappings,F.compareByOriginalPositions)};Es.IndexedSourceMapConsumer=yt});var Ey=S(Cy=>{var eE=ju().SourceMapGenerator,Ps=yn(),tE=/(\r?\n)/,rE=10,wn="$$$isSourceNode$$$";function Ye(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[wn]=!0,n!=null&&this.add(n)}Ye.fromStringWithSourceMap=function(e,r,n){var i=new Ye,o=e.split(tE),s=0,a=function(){var d=g(),m=g()||"";return d+m;function g(){return s<o.length?o[s++]:void 0}},c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,a()),c++,l=0;else{var m=o[s]||"",g=m.substr(0,d.generatedColumn-l);o[s]=m.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(a()),c++;if(l<d.generatedColumn){var m=o[s]||"";i.add(m.substr(0,d.generatedColumn)),o[s]=m.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),s<o.length&&(p&&f(p,a()),i.add(o.splice(s).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=Ps.join(n,d)),i.setSourceContent(d,m))}),i;function f(d,m){if(d===null||d.source===void 0)i.add(m);else{var g=n?Ps.join(n,d.source):d.source;i.add(new Ye(d.originalLine,d.originalColumn,g,m,d.name))}}};Ye.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[wn]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ye.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[wn]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ye.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[wn]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Ye.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};Ye.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[wn]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};Ye.prototype.setSourceContent=function(e,r){this.sourceContents[Ps.toSetString(e)]=r};Ye.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][wn]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(Ps.fromSetString(i[r]),this.sourceContents[i[r]])};Ye.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};Ye.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new eE(e),i=!1,o=null,s=null,a=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||s!==p.line||a!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,s=p.line,a=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===rE?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}};Cy.SourceNode=Ye});var Py=S(Is=>{Is.SourceMapGenerator=ju().SourceMapGenerator;Is.SourceMapConsumer=ky().SourceMapConsumer;Is.SourceNode=Ey().SourceNode});var Ay=S((Rs,Oy)=>{"use strict";Rs.__esModule=!0;var Uu=De(),Or=void 0;try{(typeof define!="function"||!define.amd)&&(Iy=Py(),Or=Iy.SourceNode)}catch{}var Iy;Or||(Or=function(t,e,r,n){this.src="",n&&this.add(n)},Or.prototype={add:function(e){Uu.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){Uu.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function Bu(t,e,r){if(Uu.isArray(t)){for(var n=[],i=0,o=t.length;i<o;i++)n.push(e.wrap(t[i],r));return n}else if(typeof t=="boolean"||typeof t=="number")return t+"";return t}function Ry(t){this.srcFile=t,this.source=[]}Ry.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,r){this.source.unshift(this.wrap(e,r))},push:function(e,r){this.source.push(this.wrap(e,r))},merge:function(){var e=this.empty();return this.each(function(r){e.add([" ",r,`
|
|
168
|
+
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var o=this.next();return typeof o<"u"?o:this.lex()},begin:function(o){this.conditionStack.push(o)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(o){this.begin(o)}};return n.options={},n.performAction=function(o,s,a,c){function l(f,d){return s.yytext=s.yytext.substring(f,s.yyleng-d+f)}var p=c;switch(a){case 0:if(s.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):s.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),s.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;break;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(s.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;break;case 30:return this.popState(),33;break;case 31:return s.yytext=l(1,2).replace(/\\"/g,'"'),80;break;case 32:return s.yytext=l(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return s.yytext=s.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return r.prototype=t,t.Parser=r,new r})();vs.default=iC;Wg.exports=vs.default});var Ss=S((bs,Kg)=>{"use strict";bs.__esModule=!0;function oC(t){return t&&t.__esModule?t:{default:t}}var sC=Ke(),bu=oC(sC);function ws(){this.parents=[]}ws.prototype={constructor:ws,mutating:!1,acceptKey:function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!ws.prototype[n.type])throw new bu.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},acceptRequired:function(e,r){if(this.acceptKey(e,r),!e[r])throw new bu.default(e.type+" requires "+r)},acceptArray:function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},accept:function(e){if(e){if(!this[e.type])throw new bu.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||r)return r;if(r!==!1)return e}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:_s,Decorator:_s,BlockStatement:zg,DecoratorBlock:zg,PartialStatement:Jg,PartialBlockStatement:function(e){Jg.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:_s,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}};function _s(t){this.acceptRequired(t,"path"),this.acceptArray(t.params),this.acceptKey(t,"hash")}function zg(t){_s.call(this,t),this.acceptKey(t,"program"),this.acceptKey(t,"inverse")}function Jg(t){this.acceptRequired(t,"name"),this.acceptArray(t.params),this.acceptKey(t,"hash")}bs.default=ws;Kg.exports=bs.default});var Xg=S((xs,Yg)=>{"use strict";xs.__esModule=!0;function aC(t){return t&&t.__esModule?t:{default:t}}var cC=Ss(),lC=aC(cC);function kt(){var t=arguments.length<=0||arguments[0]===void 0?{}:arguments[0];this.options=t}kt.prototype=new lC.default;kt.prototype.Program=function(t){var e=!this.options.ignoreStandalone,r=!this.isRootSeen;this.isRootSeen=!0;for(var n=t.body,i=0,o=n.length;i<o;i++){var s=n[i],a=this.accept(s);if(a){var c=Su(n,i,r),l=xu(n,i,r),p=a.openStandalone&&c,f=a.closeStandalone&&l,d=a.inlineStandalone&&c&&l;a.close&&Pr(n,i,!0),a.open&&sr(n,i,!0),e&&d&&(Pr(n,i),sr(n,i)&&s.type==="PartialStatement"&&(s.indent=/([ \t]+$)/.exec(n[i-1].original)[1])),e&&p&&(Pr((s.program||s.inverse).body),sr(n,i)),e&&f&&(Pr(n,i),sr((s.inverse||s.program).body))}}return t};kt.prototype.BlockStatement=kt.prototype.DecoratorBlock=kt.prototype.PartialBlockStatement=function(t){this.accept(t.program),this.accept(t.inverse);var e=t.program||t.inverse,r=t.program&&t.inverse,n=r,i=r;if(r&&r.chained)for(n=r.body[0].program;i.chained;)i=i.body[i.body.length-1].program;var o={open:t.openStrip.open,close:t.closeStrip.close,openStandalone:xu(e.body),closeStandalone:Su((n||e).body)};if(t.openStrip.close&&Pr(e.body,null,!0),r){var s=t.inverseStrip;s.open&&sr(e.body,null,!0),s.close&&Pr(n.body,null,!0),t.closeStrip.open&&sr(i.body,null,!0),!this.options.ignoreStandalone&&Su(e.body)&&xu(n.body)&&(sr(e.body),Pr(n.body))}else t.closeStrip.open&&sr(e.body,null,!0);return o};kt.prototype.Decorator=kt.prototype.MustacheStatement=function(t){return t.strip};kt.prototype.PartialStatement=kt.prototype.CommentStatement=function(t){var e=t.strip||{};return{inlineStandalone:!0,open:e.open,close:e.close}};function Su(t,e,r){e===void 0&&(e=t.length);var n=t[e-1],i=t[e-2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(n.original)}function xu(t,e,r){e===void 0&&(e=-1);var n=t[e+1],i=t[e+2];if(!n)return r;if(n.type==="ContentStatement")return(i||!r?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(n.original)}function Pr(t,e,r){var n=t[e==null?0:e+1];if(!(!n||n.type!=="ContentStatement"||!r&&n.rightStripped)){var i=n.value;n.value=n.value.replace(r?/^\s+/:/^[ \t]*\r?\n?/,""),n.rightStripped=n.value!==i}}function sr(t,e,r){var n=t[e==null?t.length-1:e-1];if(!(!n||n.type!=="ContentStatement"||!r&&n.leftStripped)){var i=n.value;return n.value=n.value.replace(r?/\s+$/:/[ \t]+$/,""),n.leftStripped=n.value!==i,n.leftStripped}}xs.default=kt;Yg.exports=xs.default});var Qg=S(ot=>{"use strict";ot.__esModule=!0;ot.SourceLocation=pC;ot.id=dC;ot.stripFlags=hC;ot.stripComment=mC;ot.preparePath=gC;ot.prepareMustache=yC;ot.prepareRawBlock=vC;ot.prepareBlock=wC;ot.prepareProgram=_C;ot.preparePartialBlock=bC;function uC(t){return t&&t.__esModule?t:{default:t}}var fC=Ke(),$u=uC(fC);function ku(t,e){if(e=e.path?e.path.original:e,t.path.original!==e){var r={loc:t.path.loc};throw new $u.default(t.path.original+" doesn't match "+e,r)}}function pC(t,e){this.source=t,this.start={line:e.first_line,column:e.first_column},this.end={line:e.last_line,column:e.last_column}}function dC(t){return/^\[.*\]$/.test(t)?t.substring(1,t.length-1):t}function hC(t,e){return{open:t.charAt(2)==="~",close:e.charAt(e.length-3)==="~"}}function mC(t){return t.replace(/^\{\{~?!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function gC(t,e,r){r=this.locInfo(r);for(var n=t?"@":"",i=[],o=0,s=0,a=e.length;s<a;s++){var c=e[s].part,l=e[s].original!==c;if(n+=(e[s].separator||"")+c,!l&&(c===".."||c==="."||c==="this")){if(i.length>0)throw new $u.default("Invalid path: "+n,{loc:r});c===".."&&o++}else i.push(c)}return{type:"PathExpression",data:t,depth:o,parts:i,original:n,loc:r}}function yC(t,e,r,n,i,o){var s=n.charAt(3)||n.charAt(2),a=s!=="{"&&s!=="&",c=/\*/.test(n);return{type:c?"Decorator":"MustacheStatement",path:t,params:e,hash:r,escaped:a,strip:i,loc:this.locInfo(o)}}function vC(t,e,r,n){ku(t,r),n=this.locInfo(n);var i={type:"Program",body:e,strip:{},loc:n};return{type:"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:i,openStrip:{},inverseStrip:{},closeStrip:{},loc:n}}function wC(t,e,r,n,i,o){n&&n.path&&ku(t,n);var s=/\*/.test(t.open);e.blockParams=t.blockParams;var a=void 0,c=void 0;if(r){if(s)throw new $u.default("Unexpected inverse block on decorator",r);r.chain&&(r.program.body[0].closeStrip=n.strip),c=r.strip,a=r.program}return i&&(i=a,a=e,e=i),{type:s?"DecoratorBlock":"BlockStatement",path:t.path,params:t.params,hash:t.hash,program:e,inverse:a,openStrip:t.strip,inverseStrip:c,closeStrip:n&&n.strip,loc:this.locInfo(o)}}function _C(t,e){if(!e&&t.length){var r=t[0].loc,n=t[t.length-1].loc;r&&n&&(e={source:r.source,start:{line:r.start.line,column:r.start.column},end:{line:n.end.line,column:n.end.column}})}return{type:"Program",body:t,strip:{},loc:e}}function bC(t,e,r,n){return ku(t,r),{type:"PartialBlockStatement",name:t.path,params:t.params,hash:t.hash,program:e,openStrip:t.strip,closeStrip:r&&r.strip,loc:this.locInfo(n)}}});var ey=S($i=>{"use strict";$i.__esModule=!0;$i.parseWithoutProcessing=Zg;$i.parse=RC;function SC(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function Pu(t){return t&&t.__esModule?t:{default:t}}var xC=Gg(),Cu=Pu(xC),$C=Xg(),kC=Pu($C),CC=Qg(),EC=SC(CC),PC=Ke(),xi=Pu(PC),IC=De();$i.parser=Cu.default;var $s={};IC.extend($s,EC);function Zg(t,e){if(t.type==="Program")return OC(t),t;Cu.default.yy=$s,$s.locInfo=function(n){return new $s.SourceLocation(e&&e.srcName,n)};var r=Cu.default.parse(t);return r}function RC(t,e){var r=Zg(t,e),n=new kC.default(e);return n.accept(r)}function OC(t){Eu(t)}function Eu(t){if(t!=null){if(Array.isArray(t)){t.forEach(Eu);return}if(typeof t=="object"){if(t.type==="PathExpression"){if(!AC(t.depth))throw new xi.default("Invalid AST: PathExpression.depth must be an integer");if(!Array.isArray(t.parts))throw new xi.default("Invalid AST: PathExpression.parts must be an array");for(var e=0;e<t.parts.length;e++)if(typeof t.parts[e]!="string")throw new xi.default("Invalid AST: PathExpression.parts must only contain strings")}else if(t.type==="NumberLiteral"){if(typeof t.value!="number"||!isFinite(t.value))throw new xi.default("Invalid AST: NumberLiteral.value must be a number")}else if(t.type==="BooleanLiteral"&&typeof t.value!="boolean")throw new xi.default("Invalid AST: BooleanLiteral.value must be a boolean");Object.keys(t).forEach(function(r){r!=="loc"&&Eu(t[r])})}}}function AC(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t&&t>=0}});var iy=S(Pi=>{"use strict";Pi.__esModule=!0;Pi.Compiler=Iu;Pi.precompile=LC;Pi.compile=VC;function ry(t){return t&&t.__esModule?t:{default:t}}var TC=Ke(),Ci=ry(TC),Ei=De(),NC=_u(),ki=ry(NC),MC=[].slice;function Iu(){}Iu.prototype={compiler:Iu,equals:function(e){var r=this.opcodes.length;if(e.opcodes.length!==r)return!1;for(var n=0;n<r;n++){var i=this.opcodes[n],o=e.opcodes[n];if(i.opcode!==o.opcode||!ny(i.args,o.args))return!1}r=this.children.length;for(var n=0;n<r;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,r){return this.sourceNode=[],this.opcodes=[],this.children=[],this.options=r,this.stringParams=r.stringParams,this.trackIds=r.trackIds,r.blockParams=r.blockParams||[],r.knownHelpers=Ei.extend(Object.create(null),{helperMissing:!0,blockHelperMissing:!0,each:!0,if:!0,unless:!0,with:!0,log:!0,lookup:!0},r.knownHelpers),this.accept(e)},compileProgram:function(e){var r=new this.compiler,n=r.compile(e,this.options),i=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[i]=n,this.useDepths=this.useDepths||n.useDepths,i},accept:function(e){if(!this[e.type])throw new Ci.default("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var r=this[e.type](e);return this.sourceNode.shift(),r},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var r=e.body,n=r.length,i=0;i<n;i++)this.accept(r[i]);return this.options.blockParams.shift(),this.isSimple=n===1,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){ty(e);var r=e.program,n=e.inverse;r=r&&this.compileProgram(r),n=n&&this.compileProgram(n);var i=this.classifySexpr(e);i==="helper"?this.helperSexpr(e,r,n):i==="simple"?(this.simpleSexpr(e),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,r,n),this.opcode("pushProgram",r),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var r=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,r,void 0),i=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,i.original)},PartialStatement:function(e){this.usePartial=!0;var r=e.program;r&&(r=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new Ci.default("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var i=e.name.original,o=e.name.type==="SubExpression";o&&this.accept(e.name),this.setupFullMustacheParams(e,r,void 0,!0);var s=e.indent||"";this.options.preventIndent&&s&&(this.opcode("appendContent",s),s=""),this.opcode("invokePartial",o,i,s),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){ty(e);var r=this.classifySexpr(e);r==="simple"?this.simpleSexpr(e):r==="helper"?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,r,n){var i=e.path,o=i.parts[0],s=r!=null||n!=null;this.opcode("getContext",i.depth),this.opcode("pushProgram",r),this.opcode("pushProgram",n),i.strict=!0,this.accept(i),this.opcode("invokeAmbiguous",o,s)},simpleSexpr:function(e){var r=e.path;r.strict=!0,this.accept(r),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,r,n){var i=this.setupFullMustacheParams(e,r,n),o=e.path,s=o.parts[0];if(this.options.knownHelpers[s])this.opcode("invokeKnownHelper",i.length,s);else{if(this.options.knownHelpersOnly)throw new Ci.default("You specified knownHelpersOnly, but used the unknown helper "+s,e);o.strict=!0,o.falsy=!0,this.accept(o),this.opcode("invokeHelper",i.length,o.original,ki.default.helpers.simpleId(o))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var r=e.parts[0],n=ki.default.helpers.scopedId(e),i=!e.depth&&!n&&this.blockParamIndex(r);i?this.opcode("lookupBlockParam",i,e.parts):r?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var r=e.pairs,n=0,i=r.length;for(this.opcode("pushHash");n<i;n++)this.pushParam(r[n].value);for(;n--;)this.opcode("assignToHash",r[n].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:MC.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var r=ki.default.helpers.simpleId(e.path),n=r&&!!this.blockParamIndex(e.path.parts[0]),i=!n&&ki.default.helpers.helperExpression(e),o=!n&&(i||r);if(o&&!i){var s=e.path.parts[0],a=this.options;a.knownHelpers[s]?i=!0:a.knownHelpersOnly&&(o=!1)}return i?"helper":o?"ambiguous":"simple"},pushParams:function(e){for(var r=0,n=e.length;r<n;r++)this.pushParam(e[r])},pushParam:function(e){var r=e.value!=null?e.value:e.original||"";if(this.stringParams)r.replace&&(r=r.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",r,e.type),e.type==="SubExpression"&&this.accept(e);else{if(this.trackIds){var n=void 0;if(e.parts&&!ki.default.helpers.scopedId(e)&&!e.depth&&(n=this.blockParamIndex(e.parts[0])),n){var i=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,i)}else r=e.original||r,r.replace&&(r=r.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,r)}this.accept(e)}},setupFullMustacheParams:function(e,r,n,i){var o=e.params;return this.pushParams(o),this.opcode("pushProgram",r),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",i),o},blockParamIndex:function(e){for(var r=0,n=this.options.blockParams.length;r<n;r++){var i=this.options.blockParams[r],o=i&&Ei.indexOf(i,e);if(i&&o>=0)return[r,o]}}};function LC(t,e,r){if(t==null||typeof t!="string"&&t.type!=="Program")throw new Ci.default("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+t);e=e||{},"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=r.parse(t,e),i=new r.Compiler().compile(n,e);return new r.JavaScriptCompiler().compile(i,e)}function VC(t,e,r){if(e===void 0&&(e={}),t==null||typeof t!="string"&&t.type!=="Program")throw new Ci.default("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+t);e=Ei.extend({},e),"data"in e||(e.data=!0),e.compat&&(e.useDepths=!0);var n=void 0;function i(){var s=r.parse(t,e),a=new r.Compiler().compile(s,e),c=new r.JavaScriptCompiler().compile(a,e,void 0,!0);return r.template(c)}function o(s,a){return n||(n=i()),n.call(this,s,a)}return o._setup=function(s){return n||(n=i()),n._setup(s)},o._child=function(s,a,c,l){return n||(n=i()),n._child(s,a,c,l)},o}function ny(t,e){if(t===e)return!0;if(Ei.isArray(t)&&Ei.isArray(e)&&t.length===e.length){for(var r=0;r<t.length;r++)if(!ny(t[r],e[r]))return!1;return!0}}function ty(t){if(!t.path.parts){var e=t.path;t.path={type:"PathExpression",data:!1,depth:0,parts:[e.original+""],original:e.original+"",loc:e.loc}}}});var sy=S(Ru=>{var oy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");Ru.encode=function(t){if(0<=t&&t<oy.length)return oy[t];throw new TypeError("Must be between 0 and 63: "+t)};Ru.decode=function(t){var e=65,r=90,n=97,i=122,o=48,s=57,a=43,c=47,l=26,p=52;return e<=t&&t<=r?t-e:n<=t&&t<=i?t-n+l:o<=t&&t<=s?t-o+p:t==a?62:t==c?63:-1}});var Tu=S(Au=>{var ay=sy(),Ou=5,cy=1<<Ou,ly=cy-1,uy=cy;function jC(t){return t<0?(-t<<1)+1:(t<<1)+0}function DC(t){var e=(t&1)===1,r=t>>1;return e?-r:r}Au.encode=function(e){var r="",n,i=jC(e);do n=i&ly,i>>>=Ou,i>0&&(n|=uy),r+=ay.encode(n);while(i>0);return r};Au.decode=function(e,r,n){var i=e.length,o=0,s=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=ay.decode(e.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+e.charAt(r-1));a=!!(c&uy),c&=ly,o=o+(c<<s),s+=Ou}while(a);n.value=DC(o),n.rest=r}});var yn=S(Me=>{function qC(t,e,r){if(e in t)return t[e];if(arguments.length===3)return r;throw new Error('"'+e+'" is a required argument.')}Me.getArg=qC;var fy=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,FC=/^data:.+\,.+$/;function Ii(t){var e=t.match(fy);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}Me.urlParse=Ii;function mn(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}Me.urlGenerate=mn;function Nu(t){var e=t,r=Ii(t);if(r){if(!r.path)return t;e=r.path}for(var n=Me.isAbsolute(e),i=e.split(/\/+/),o,s=0,a=i.length-1;a>=0;a--)o=i[a],o==="."?i.splice(a,1):o===".."?s++:s>0&&(o===""?(i.splice(a+1,s),s=0):(i.splice(a,2),s--));return e=i.join("/"),e===""&&(e=n?"/":"."),r?(r.path=e,mn(r)):e}Me.normalize=Nu;function py(t,e){t===""&&(t="."),e===""&&(e=".");var r=Ii(e),n=Ii(t);if(n&&(t=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),mn(r);if(r||e.match(FC))return e;if(n&&!n.host&&!n.path)return n.host=e,mn(n);var i=e.charAt(0)==="/"?e:Nu(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=i,mn(n)):i}Me.join=py;Me.isAbsolute=function(t){return t.charAt(0)==="/"||fy.test(t)};function HC(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var r=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++r}return Array(r+1).join("../")+e.substr(t.length+1)}Me.relative=HC;var dy=(function(){var t=Object.create(null);return!("__proto__"in t)})();function hy(t){return t}function BC(t){return my(t)?"$"+t:t}Me.toSetString=dy?hy:BC;function UC(t){return my(t)?t.slice(1):t}Me.fromSetString=dy?hy:UC;function my(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var r=e-10;r>=0;r--)if(t.charCodeAt(r)!==36)return!1;return!0}function WC(t,e,r){var n=gn(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||r)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:gn(t.name,e.name)}Me.compareByOriginalPositions=WC;function GC(t,e,r){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||r)||(n=gn(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:gn(t.name,e.name)}Me.compareByGeneratedPositionsDeflated=GC;function gn(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function zC(t,e){var r=t.generatedLine-e.generatedLine;return r!==0||(r=t.generatedColumn-e.generatedColumn,r!==0)||(r=gn(t.source,e.source),r!==0)||(r=t.originalLine-e.originalLine,r!==0)||(r=t.originalColumn-e.originalColumn,r!==0)?r:gn(t.name,e.name)}Me.compareByGeneratedPositionsInflated=zC;function JC(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}Me.parseSourceMapInput=JC;function KC(t,e,r){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),r){var n=Ii(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}e=py(mn(n),e)}return Nu(e)}Me.computeSourceURL=KC});var Vu=S(gy=>{var Mu=yn(),Lu=Object.prototype.hasOwnProperty,Ir=typeof Map<"u";function Ut(){this._array=[],this._set=Ir?new Map:Object.create(null)}Ut.fromArray=function(e,r){for(var n=new Ut,i=0,o=e.length;i<o;i++)n.add(e[i],r);return n};Ut.prototype.size=function(){return Ir?this._set.size:Object.getOwnPropertyNames(this._set).length};Ut.prototype.add=function(e,r){var n=Ir?e:Mu.toSetString(e),i=Ir?this.has(e):Lu.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(e),i||(Ir?this._set.set(e,o):this._set[n]=o)};Ut.prototype.has=function(e){if(Ir)return this._set.has(e);var r=Mu.toSetString(e);return Lu.call(this._set,r)};Ut.prototype.indexOf=function(e){if(Ir){var r=this._set.get(e);if(r>=0)return r}else{var n=Mu.toSetString(e);if(Lu.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};Ut.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};Ut.prototype.toArray=function(){return this._array.slice()};gy.ArraySet=Ut});var wy=S(vy=>{var yy=yn();function YC(t,e){var r=t.generatedLine,n=e.generatedLine,i=t.generatedColumn,o=e.generatedColumn;return n>r||n==r&&o>=i||yy.compareByGeneratedPositionsInflated(t,e)<=0}function ks(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}ks.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)};ks.prototype.add=function(e){YC(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};ks.prototype.toArray=function(){return this._sorted||(this._array.sort(yy.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};vy.MappingList=ks});var ju=S(_y=>{var Ri=Tu(),xe=yn(),Cs=Vu().ArraySet,XC=wy().MappingList;function st(t){t||(t={}),this._file=xe.getArg(t,"file",null),this._sourceRoot=xe.getArg(t,"sourceRoot",null),this._skipValidation=xe.getArg(t,"skipValidation",!1),this._sources=new Cs,this._names=new Cs,this._mappings=new XC,this._sourcesContents=null}st.prototype._version=3;st.fromSourceMap=function(e){var r=e.sourceRoot,n=new st({file:e.file,sourceRoot:r});return e.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=xe.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),e.sources.forEach(function(i){var o=i;r!==null&&(o=xe.relative(r,i)),n._sources.has(o)||n._sources.add(o);var s=e.sourceContentFor(i);s!=null&&n.setSourceContent(i,s)}),n};st.prototype.addMapping=function(e){var r=xe.getArg(e,"generated"),n=xe.getArg(e,"original",null),i=xe.getArg(e,"source",null),o=xe.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})};st.prototype.setSourceContent=function(e,r){var n=e;this._sourceRoot!=null&&(n=xe.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[xe.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[xe.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};st.prototype.applySourceMap=function(e,r,n){var i=r;if(r==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=e.file}var o=this._sourceRoot;o!=null&&(i=xe.relative(o,i));var s=new Cs,a=new Cs;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=e.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=xe.join(n,c.source)),o!=null&&(c.source=xe.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var p=c.source;p!=null&&!s.has(p)&&s.add(p);var f=c.name;f!=null&&!a.has(f)&&a.add(f)},this),this._sources=s,this._names=a,e.sources.forEach(function(c){var l=e.sourceContentFor(c);l!=null&&(n!=null&&(c=xe.join(n,c)),o!=null&&(c=xe.relative(o,c)),this.setSourceContent(c,l))},this)};st.prototype._validateMapping=function(e,r,n,i){if(r&&typeof r.line!="number"&&typeof r.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!r&&!n&&!i)){if(e&&"line"in e&&"column"in e&&r&&"line"in r&&"column"in r&&e.line>0&&e.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:i}))}};st.prototype._serializeMappings=function(){for(var e=0,r=1,n=0,i=0,o=0,s=0,a="",c,l,p,f,d=this._mappings.toArray(),m=0,g=d.length;m<g;m++){if(l=d[m],c="",l.generatedLine!==r)for(e=0;l.generatedLine!==r;)c+=";",r++;else if(m>0){if(!xe.compareByGeneratedPositionsInflated(l,d[m-1]))continue;c+=","}c+=Ri.encode(l.generatedColumn-e),e=l.generatedColumn,l.source!=null&&(f=this._sources.indexOf(l.source),c+=Ri.encode(f-s),s=f,c+=Ri.encode(l.originalLine-1-i),i=l.originalLine-1,c+=Ri.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(p=this._names.indexOf(l.name),c+=Ri.encode(p-o),o=p)),a+=c}return a};st.prototype._generateSourcesContent=function(e,r){return e.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=xe.relative(r,n));var i=xe.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};st.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};st.prototype.toString=function(){return JSON.stringify(this.toJSON())};_y.SourceMapGenerator=st});var by=S(Rr=>{Rr.GREATEST_LOWER_BOUND=1;Rr.LEAST_UPPER_BOUND=2;function Du(t,e,r,n,i,o){var s=Math.floor((e-t)/2)+t,a=i(r,n[s],!0);return a===0?s:a>0?e-s>1?Du(s,e,r,n,i,o):o==Rr.LEAST_UPPER_BOUND?e<n.length?e:-1:s:s-t>1?Du(t,s,r,n,i,o):o==Rr.LEAST_UPPER_BOUND?s:t<0?-1:t}Rr.search=function(e,r,n,i){if(r.length===0)return-1;var o=Du(-1,r.length,e,r,n,i||Rr.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o}});var xy=S(Sy=>{function qu(t,e,r){var n=t[e];t[e]=t[r],t[r]=n}function QC(t,e){return Math.round(t+Math.random()*(e-t))}function Fu(t,e,r,n){if(r<n){var i=QC(r,n),o=r-1;qu(t,i,n);for(var s=t[n],a=r;a<n;a++)e(t[a],s)<=0&&(o+=1,qu(t,o,a));qu(t,o+1,a);var c=o+1;Fu(t,e,r,c-1),Fu(t,e,c+1,n)}}Sy.quickSort=function(t,e){Fu(t,e,0,t.length-1)}});var ky=S(Es=>{var F=yn(),Hu=by(),vn=Vu().ArraySet,ZC=Tu(),Oi=xy().quickSort;function ye(t,e){var r=t;return typeof t=="string"&&(r=F.parseSourceMapInput(t)),r.sections!=null?new yt(r,e):new Ie(r,e)}ye.fromSourceMap=function(t,e){return Ie.fromSourceMap(t,e)};ye.prototype._version=3;ye.prototype.__generatedMappings=null;Object.defineProperty(ye.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});ye.prototype.__originalMappings=null;Object.defineProperty(ye.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});ye.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return n===";"||n===","};ye.prototype._parseMappings=function(e,r){throw new Error("Subclasses must implement _parseMappings")};ye.GENERATED_ORDER=1;ye.ORIGINAL_ORDER=2;ye.GREATEST_LOWER_BOUND=1;ye.LEAST_UPPER_BOUND=2;ye.prototype.eachMapping=function(e,r,n){var i=r||null,o=n||ye.GENERATED_ORDER,s;switch(o){case ye.GENERATED_ORDER:s=this._generatedMappings;break;case ye.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;s.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=F.computeSourceURL(a,l,this._sourceMapURL),{source:l,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(e,i)};ye.prototype.allGeneratedPositionsFor=function(e){var r=F.getArg(e,"line"),n={source:F.getArg(e,"source"),originalLine:r,originalColumn:F.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,Hu.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(e.column===void 0)for(var a=s.originalLine;s&&s.originalLine===a;)i.push({line:F.getArg(s,"generatedLine",null),column:F.getArg(s,"generatedColumn",null),lastColumn:F.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var c=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==c;)i.push({line:F.getArg(s,"generatedLine",null),column:F.getArg(s,"generatedColumn",null),lastColumn:F.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return i};Es.SourceMapConsumer=ye;function Ie(t,e){var r=t;typeof t=="string"&&(r=F.parseSourceMapInput(t));var n=F.getArg(r,"version"),i=F.getArg(r,"sources"),o=F.getArg(r,"names",[]),s=F.getArg(r,"sourceRoot",null),a=F.getArg(r,"sourcesContent",null),c=F.getArg(r,"mappings"),l=F.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);s&&(s=F.normalize(s)),i=i.map(String).map(F.normalize).map(function(p){return s&&F.isAbsolute(s)&&F.isAbsolute(p)?F.relative(s,p):p}),this._names=vn.fromArray(o.map(String),!0),this._sources=vn.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(p){return F.computeSourceURL(s,p,e)}),this.sourceRoot=s,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=e,this.file=l}Ie.prototype=Object.create(ye.prototype);Ie.prototype.consumer=ye;Ie.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=F.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==t)return r;return-1};Ie.fromSourceMap=function(e,r){var n=Object.create(Ie.prototype),i=n._names=vn.fromArray(e._names.toArray(),!0),o=n._sources=vn.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(m){return F.computeSourceURL(n.sourceRoot,m,r)});for(var s=e._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,p=s.length;l<p;l++){var f=s[l],d=new $y;d.generatedLine=f.generatedLine,d.generatedColumn=f.generatedColumn,f.source&&(d.source=o.indexOf(f.source),d.originalLine=f.originalLine,d.originalColumn=f.originalColumn,f.name&&(d.name=i.indexOf(f.name)),c.push(d)),a.push(d)}return Oi(n.__originalMappings,F.compareByOriginalPositions),n};Ie.prototype._version=3;Object.defineProperty(Ie.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function $y(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Ie.prototype._parseMappings=function(e,r){for(var n=1,i=0,o=0,s=0,a=0,c=0,l=e.length,p=0,f={},d={},m=[],g=[],y,_,b,M,q;p<l;)if(e.charAt(p)===";")n++,p++,i=0;else if(e.charAt(p)===",")p++;else{for(y=new $y,y.generatedLine=n,M=p;M<l&&!this._charIsMappingSeparator(e,M);M++);if(_=e.slice(p,M),b=f[_],b)p+=_.length;else{for(b=[];p<M;)ZC.decode(e,p,d),q=d.value,p=d.rest,b.push(q);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");f[_]=b}y.generatedColumn=i+b[0],i=y.generatedColumn,b.length>1&&(y.source=a+b[1],a+=b[1],y.originalLine=o+b[2],o=y.originalLine,y.originalLine+=1,y.originalColumn=s+b[3],s=y.originalColumn,b.length>4&&(y.name=c+b[4],c+=b[4])),g.push(y),typeof y.originalLine=="number"&&m.push(y)}Oi(g,F.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,Oi(m,F.compareByOriginalPositions),this.__originalMappings=m};Ie.prototype._findMapping=function(e,r,n,i,o,s){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[i]);return Hu.search(e,r,o,s)};Ie.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};Ie.prototype.originalPositionFor=function(e){var r={generatedLine:F.getArg(e,"line"),generatedColumn:F.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",F.compareByGeneratedPositionsDeflated,F.getArg(e,"bias",ye.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=F.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=F.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=F.getArg(i,"name",null);return s!==null&&(s=this._names.at(s)),{source:o,line:F.getArg(i,"originalLine",null),column:F.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};Ie.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};Ie.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var i=e;this.sourceRoot!=null&&(i=F.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=F.urlParse(this.sourceRoot))){var s=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||o.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};Ie.prototype.generatedPositionFor=function(e){var r=F.getArg(e,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:F.getArg(e,"line"),originalColumn:F.getArg(e,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,F.getArg(e,"bias",ye.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:F.getArg(o,"generatedLine",null),column:F.getArg(o,"generatedColumn",null),lastColumn:F.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Es.BasicSourceMapConsumer=Ie;function yt(t,e){var r=t;typeof t=="string"&&(r=F.parseSourceMapInput(t));var n=F.getArg(r,"version"),i=F.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new vn,this._names=new vn;var o={line:-1,column:0};this._sections=i.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var a=F.getArg(s,"offset"),c=F.getArg(a,"line"),l=F.getArg(a,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=a,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new ye(F.getArg(s,"map"),e)}})}yt.prototype=Object.create(ye.prototype);yt.prototype.constructor=ye;yt.prototype._version=3;Object.defineProperty(yt.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var r=0;r<this._sections[e].consumer.sources.length;r++)t.push(this._sections[e].consumer.sources[r]);return t}});yt.prototype.originalPositionFor=function(e){var r={generatedLine:F.getArg(e,"line"),generatedColumn:F.getArg(e,"column")},n=Hu.search(r,this._sections,function(o,s){var a=o.generatedLine-s.generatedOffset.generatedLine;return a||o.generatedColumn-s.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};yt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};yt.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(e,!0);if(o)return o}if(r)return null;throw new Error('"'+e+'" is not in the SourceMap.')};yt.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(F.getArg(e,"source"))!==-1){var i=n.consumer.generatedPositionFor(e);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}};yt.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var a=o[s],c=i.consumer._sources.at(a.source);c=F.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;a.name&&(l=i.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l));var p={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(p),typeof p.originalLine=="number"&&this.__originalMappings.push(p)}Oi(this.__generatedMappings,F.compareByGeneratedPositionsDeflated),Oi(this.__originalMappings,F.compareByOriginalPositions)};Es.IndexedSourceMapConsumer=yt});var Ey=S(Cy=>{var eE=ju().SourceMapGenerator,Ps=yn(),tE=/(\r?\n)/,rE=10,wn="$$$isSourceNode$$$";function Ye(t,e,r,n,i){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=r??null,this.name=i??null,this[wn]=!0,n!=null&&this.add(n)}Ye.fromStringWithSourceMap=function(e,r,n){var i=new Ye,o=e.split(tE),s=0,a=function(){var d=g(),m=g()||"";return d+m;function g(){return s<o.length?o[s++]:void 0}},c=1,l=0,p=null;return r.eachMapping(function(d){if(p!==null)if(c<d.generatedLine)f(p,a()),c++,l=0;else{var m=o[s]||"",g=m.substr(0,d.generatedColumn-l);o[s]=m.substr(d.generatedColumn-l),l=d.generatedColumn,f(p,g),p=d;return}for(;c<d.generatedLine;)i.add(a()),c++;if(l<d.generatedColumn){var m=o[s]||"";i.add(m.substr(0,d.generatedColumn)),o[s]=m.substr(d.generatedColumn),l=d.generatedColumn}p=d},this),s<o.length&&(p&&f(p,a()),i.add(o.splice(s).join(""))),r.sources.forEach(function(d){var m=r.sourceContentFor(d);m!=null&&(n!=null&&(d=Ps.join(n,d)),i.setSourceContent(d,m))}),i;function f(d,m){if(d===null||d.source===void 0)i.add(m);else{var g=n?Ps.join(n,d.source):d.source;i.add(new Ye(d.originalLine,d.originalColumn,g,m,d.name))}}};Ye.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(r){this.add(r)},this);else if(e[wn]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ye.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[wn]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};Ye.prototype.walk=function(e){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[wn]?r.walk(e):r!==""&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})};Ye.prototype.join=function(e){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this};Ye.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[wn]?n.replaceRight(e,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this};Ye.prototype.setSourceContent=function(e,r){this.sourceContents[Ps.toSetString(e)]=r};Ye.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][wn]&&this.children[r].walkSourceContents(e);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)e(Ps.fromSetString(i[r]),this.sourceContents[i[r]])};Ye.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e};Ye.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new eE(e),i=!1,o=null,s=null,a=null,c=null;return this.walk(function(l,p){r.code+=l,p.source!==null&&p.line!==null&&p.column!==null?((o!==p.source||s!==p.line||a!==p.column||c!==p.name)&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name}),o=p.source,s=p.line,a=p.column,c=p.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var f=0,d=l.length;f<d;f++)l.charCodeAt(f)===rE?(r.line++,r.column=0,f+1===d?(o=null,i=!1):i&&n.addMapping({source:p.source,original:{line:p.line,column:p.column},generated:{line:r.line,column:r.column},name:p.name})):r.column++}),this.walkSourceContents(function(l,p){n.setSourceContent(l,p)}),{code:r.code,map:n}};Cy.SourceNode=Ye});var Py=S(Is=>{Is.SourceMapGenerator=ju().SourceMapGenerator;Is.SourceMapConsumer=ky().SourceMapConsumer;Is.SourceNode=Ey().SourceNode});var Ay=S((Rs,Oy)=>{"use strict";Rs.__esModule=!0;var Uu=De(),Or=void 0;try{(typeof define!="function"||!define.amd)&&(Iy=Py(),Or=Iy.SourceNode)}catch{}var Iy;Or||(Or=function(t,e,r,n){this.src="",n&&this.add(n)},Or.prototype={add:function(e){Uu.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){Uu.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}});function Bu(t,e,r){if(Uu.isArray(t)){for(var n=[],i=0,o=t.length;i<o;i++)n.push(e.wrap(t[i],r));return n}else if(typeof t=="boolean"||typeof t=="number")return t+"";return t}function Ry(t){this.srcFile=t,this.source=[]}Ry.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,r){this.source.unshift(this.wrap(e,r))},push:function(e,r){this.source.push(this.wrap(e,r))},merge:function(){var e=this.empty();return this.each(function(r){e.add([" ",r,`
|
|
169
169
|
`])}),e},each:function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},empty:function(){var e=this.currentLocation||{start:{}};return new Or(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Or?e:(e=Bu(e,this,r),new Or(r.start.line,r.start.column,this.srcFile,e))},functionCall:function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var r=this,n=[];Object.keys(e).forEach(function(o){var s=Bu(e[o],r);s!=="undefined"&&n.push([r.quotedString(o),":",s])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},generateList:function(e){for(var r=this.empty(),n=0,i=e.length;n<i;n++)n&&r.add(","),r.add(Bu(e[n],this));return r},generateArray:function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r}};Rs.default=Ry;Oy.exports=Rs.default});var Vy=S((Os,Ly)=>{"use strict";Os.__esModule=!0;function My(t){return t&&t.__esModule?t:{default:t}}var Ty=fs(),nE=Ke(),Wu=My(nE),iE=De(),oE=Ay(),Ny=My(oE);function _n(t){this.value=t}function bn(){}bn.prototype={nameLookup:function(e,r){return this.internalNameLookup(e,r)},depthedLookup:function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},compilerInfo:function(){var e=Ty.COMPILER_REVISION,r=Ty.REVISION_CHANGES[e];return[e,r]},appendToBuffer:function(e,r,n){return iE.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},internalNameLookup:function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},lookupPropertyFunctionIsUsed:!1,compile:function(e,r,n,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var o=e.opcodes,s=void 0,a=void 0,c=void 0,l=void 0;for(c=0,l=o.length;c<l;c++)s=o[c],this.source.currentLocation=s.loc,a=a||s.loc,this[s.opcode].apply(this,s.args);if(this.source.currentLocation=a,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new Wu.default("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend(["var decorators = container.decorators, ",this.lookupPropertyFunctionVarDeclaration(),`;
|
|
170
170
|
`]),this.decorators.push("return fn;"),i?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend(`function(fn, props, container, depth0, data, blockParams, depths) {
|
|
171
171
|
`),this.decorators.push(`}
|
|
@@ -818,7 +818,7 @@ ${i.errors.map(a=>` - ${a}`).join(`
|
|
|
818
818
|
${a.errors.map(c=>` - ${c}`).join(`
|
|
819
819
|
`)}`);i.warnings.push(...a.warnings)}for(let a of i.warnings)console.warn(`Warning in ${t.sourcePath}: ${a}`);let o={version:1,source:Hf(process.cwd(),Bf(t.sourcePath)),viewModel:i.viewModel,exportName:i.exportName,root:i.root},s=await Pw(o.root,e);return{screen:o,partials:s}}async function Uf(t,e={}){let r=[],n=new Map;for(let i of t){let o=await xa(i,e);r.push(o.screen);for(let s of o.partials){let a=`${s.source}:${s.exportName}`;n.set(a,s)}}return{screens:r,partials:[...n.values()]}}ft();import{relative as Hw}from"node:path";function dp(t,e){return Hw(t,e).split("\\").join("/")}var mm=Xs(hm(),1);qr();qt();import{readFile as gm}from"node:fs/promises";import{resolve as ym}from"node:path";var Rx=mm.default,Ox=ym($e(),"spec/ui-dsl-extensions.meta.json"),Vo;async function Ax(){if(Vo)return Vo;let t=JSON.parse(await gm(Ox,"utf-8"));return Vo=new Rx({allErrors:!0,strict:!1}).compile(t),Vo}async function jo(t){if(!t)return{extensions:{}};let e=ym(t),r=await gm(e,"utf-8"),n=ut.load(r),i=await Ax();if(!i(n)){let o=i.errors?.map(s=>`${s.instancePath||"/"} ${s.message??""}`).join("; ")??"unknown";throw new Error(`Extension registry validation failed (${e}): ${o}`)}return n}import{resolve as xP}from"node:path";async function of(t,e,r){return(await Promise.resolve().then(()=>(Ll(),Ml))).renderReactFromIr(t,e,r)}async function Av(t,e,r){return(await Promise.resolve().then(()=>(Ll(),Ml))).renderReactPreviewBundle(t,e,r)}function Tv(t,e){return xP(t,"components",`${e.exportName}.generated.tsx`)}async function Nv(t,e){return(await Promise.resolve().then(()=>(ev(),Zy))).renderReactRuntime(t,e)}async function Mv(t,e,r,n,i){return(await Promise.resolve().then(()=>(Ev(),Cv))).renderSwiftUIRuntime(t,e,r,n,i)}async function Lv(t,e){return(await Promise.resolve().then(()=>(Ov(),Rv))).renderComposeRuntime(t,e)}Yo();Lt();function $P(t){let e=Zi[t];return e?e.lowering==="inline-css"||e.lowering==="class-name":!1}function Li(t,e,r,n){if(t.kind==="component"){let{name:i,props:o}=t;if(r.has(i)||!Mt.has(i)){for(let s of t.children)Li(s,e,r,n);return}for(let s of Object.keys(o))$P(s)&&(Rf(s,i)||n.push(`${e}: <${i}> does not accept property "${s}"`));for(let s of t.children)Li(s,e,r,n);return}if(t.kind==="map"){Li(t.body,e,r,n);return}if(t.kind==="fragment"){for(let i of t.children)Li(i,e,r,n);return}}async function qs(t,e=[]){let r=new Set(e),n=[];for(let i of t)Li(i.root,i.source,r,n);if(n.length>0)throw new Error(`View property validation failed:
|
|
820
820
|
${n.map(i=>` - ${i}`).join(`
|
|
821
|
-
`)}`)}ft();import{access as kP,writeFile as
|
|
821
|
+
`)}`)}ft();import{access as kP,writeFile as ar,mkdir as Fs}from"node:fs/promises";import{resolve as Ct,dirname as Vv}from"node:path";async function sf(t){try{return await kP(t),!0}catch{return!1}}var $n={preview:5173,app:5174,built:4174},CP=`{
|
|
822
822
|
"name": "admin-dashboard",
|
|
823
823
|
"private": true,
|
|
824
824
|
"type": "module",
|
|
@@ -837,8 +837,6 @@ ${n.map(i=>` - ${i}`).join(`
|
|
|
837
837
|
"react-dom": "^19.2.0"
|
|
838
838
|
},
|
|
839
839
|
"devDependencies": {
|
|
840
|
-
"@view-contracts/core": "^0.3.5",
|
|
841
|
-
"@view-contracts/runtime": "^0.1.0",
|
|
842
840
|
"@vitejs/plugin-react": "^4.7.0",
|
|
843
841
|
"typescript": "^5.9.3",
|
|
844
842
|
"view-contracts": "^0.3.5",
|
|
@@ -927,8 +925,8 @@ export default defineConfig({
|
|
|
927
925
|
},
|
|
928
926
|
},
|
|
929
927
|
});
|
|
930
|
-
`}async function jv(t,e,r){let n=he(t),i=Ct(n,".vite");await Fs(i,{recursive:!0});let o=Ct(n,"package.json");await sf(o)||await
|
|
931
|
-
`,"utf-8"),await
|
|
928
|
+
`}async function jv(t,e,r){let n=he(t),i=Ct(n,".vite");await Fs(i,{recursive:!0});let o=Ct(n,"package.json");await sf(o)||await ar(o,`${CP}
|
|
929
|
+
`,"utf-8"),await ar(Ct(i,"index.html"),PP,"utf-8"),await ar(Ct(i,"app-main.tsx"),EP,"utf-8"),await ar(Ct(i,"vite.config.ts"),TP(),"utf-8"),await ar(Ct(n,"dev.ports.ts"),OP(),"utf-8");let s=Ct(n,"scripts");await Fs(s,{recursive:!0}),await ar(Ct(s,"ports.sh"),AP(),"utf-8");let a=Ct(n,"src/main.tsx");await sf(a)||(await Fs(Vv(a),{recursive:!0}),await ar(a,IP(r),"utf-8"));let c=Ct(n,"src/runtime/handlers.ts");await sf(c)||(await Fs(Vv(c),{recursive:!0}),await ar(c,RP,"utf-8")),console.log(` scaffold \u2192 ${i}/`)}ft();Mi();qt();import{createServer as BP}from"node:http";import{watch as UP}from"node:fs";import{resolve as cr}from"node:path";ft();Xo();qt();Ho();import{mkdir as LP,writeFile as af}from"node:fs/promises";import{tmpdir as VP}from"node:os";import{join as Bs,resolve as zt}from"node:path";import{build as jP}from"esbuild";import{resolve as NP}from"node:path";ft();Yo();var Hs={dispatch:"view-contracts:runtime/dispatch",style:"view-contracts:runtime/style",types:"view-contracts:runtime/types",styleHelpers:"view-contracts:runtime/style-helpers",contracts:"view-contracts:contracts",extensions:"view-contracts:extensions",mock:"view-contracts:preview/mock"};async function MP(t){if(!t.extensions)return{allowlistExtra:t.allowlistExtra??[]};let e=await jo(t.extensions),r=[...new Set([...t.allowlistExtra??[],...Object.keys(e.extensions)])];return{extensionRegistry:e,allowlistExtra:r}}async function Dv(t,e){let r=await He(t),i=(await wt(r.bindings)).views.find(g=>g.screenName===e);if(!i)throw new Error(`No view binding for screen "${e}"`);if(!i.targets.includes("react"))throw new Error(`Screen "${e}" is not a react target`);let{extensionRegistry:o,allowlistExtra:s}=await MP(r),a=he(t),{screen:c,partials:l}=await xa({sourcePath:NP(a,i.source),exportName:i.exportName,screenName:i.screenName},{allowlistExtra:s,extensionRegistry:o}),{tokensPath:p,themePath:f}=Yt(r),{themeIR:d}=await pn(p,f);await kr(r,t);let m=[c,...l];return await qs(m,s),yi(m,d),Av(c,l,{runtimeImportFrom:Hs.dispatch,extensionsImportFrom:Hs.extensions,contractsImportFrom:Hs.contracts,allowlistExtra:s,previewImports:Hs})}Mi();function DP(t){let e=t.replace(/View$/,"")||t;return e.charAt(0).toUpperCase()+e.slice(1)}function qP(t){let e=$e(),r=cn();return{"@view-contracts/core":zt(e,"dist/dsl.js"),"view-contracts:runtime/dispatch":zt(r,"dispatch.ts"),"view-contracts:runtime/style":zt(r,"style.ts"),"view-contracts:runtime/types":zt(r,"types.ts"),"view-contracts:runtime/style-helpers":zt(r,"style.ts"),"view-contracts:contracts":zt(t,"contracts/view-models.ts"),"view-contracts:extensions":zt(t,"src/components/extensions.tsx")}}function FP(t=800){return`<!DOCTYPE html>
|
|
932
930
|
<html lang="en">
|
|
933
931
|
<head>
|
|
934
932
|
<meta charset="UTF-8" />
|
|
@@ -970,10 +968,10 @@ ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
|
|
|
970
968
|
<${n} vm={${i}} />
|
|
971
969
|
</React.StrictMode>,
|
|
972
970
|
);
|
|
973
|
-
`,s=Bs(t,"entry.tsx");return await af(s,o,"utf8"),s}async function cf(t,e,r){let n=await He(t),o=(await wt(n.bindings)).views.find(M=>M.screenName===e);if(!o)throw new Error(`No view binding for screen "${e}"`);if(!o.targets.includes("react"))throw new Error(`Screen "${e}" is not a react target`);let s=he(t),[a,c,l]=await Promise.all([Dv(t,e),xv(t,n,e),vi(n,t)]),p=DP(o.exportName),f=tf(e),d=Bs(VP(),`view-contracts-preview-${process.pid}`);await LP(d,{recursive:!0});let m=await HP(d,a,c,p,f),g=$e(),y=[
|
|
974
|
-
`));let b=_.outputFiles[0]?.text??"";return{html:FP(),themeCss:l,bundleJs:b,version:r}}async function qv(t,e){let r=await wt((await He(t)).bindings);if(e){let i=r.views.find(o=>o.screenName===e);if(!i)throw new Error(`Unknown screen "${e}" in view-bindings.yaml`);if(!i.targets.includes("react"))throw new Error(`Screen "${e}" is not a react target`);return e}let n=r.views.find(i=>i.targets.includes("react"));if(!n)throw new Error("No react target views in view-bindings.yaml");return n.screenName}Mi();function Vi(t,e,r,n){t.writeHead(e,{"Content-Type":n,"Cache-Control":"no-store"}),t.end(r)}function WP(t,e,r){let n=t.url?.split("?")[0]??"/";if(n==="/"||n==="/index.html"){Vi(e,200,r.html,"text/html; charset=utf-8");return}if(n==="/bundle.js"){Vi(e,200,r.bundleJs,"text/javascript; charset=utf-8");return}if(n==="/theme.css"){Vi(e,200,r.themeCss,"text/css; charset=utf-8");return}if(n==="/__vc-reload"){Vi(e,200,JSON.stringify({version:r.version}),"application/json");return}Vi(e,404,"Not found","text/plain; charset=utf-8")}async function GP(t,e,r){let n=await He(t),i=he(t),{tokensPath:o,themePath:s}=
|
|
971
|
+
`,s=Bs(t,"entry.tsx");return await af(s,o,"utf8"),s}async function cf(t,e,r){let n=await He(t),o=(await wt(n.bindings)).views.find(M=>M.screenName===e);if(!o)throw new Error(`No view binding for screen "${e}"`);if(!o.targets.includes("react"))throw new Error(`Screen "${e}" is not a react target`);let s=he(t),[a,c,l]=await Promise.all([Dv(t,e),xv(t,n,e),vi(n,t)]),p=DP(o.exportName),f=tf(e),d=Bs(VP(),`view-contracts-preview-${process.pid}`);await LP(d,{recursive:!0});let m=await HP(d,a,c,p,f),g=$e(),y=[zt(s,"node_modules"),zt(g,"node_modules")],_=await jP({entryPoints:[m],bundle:!0,write:!1,format:"esm",platform:"browser",target:"es2022",jsx:"automatic",jsxImportSource:"react",absWorkingDir:s,nodePaths:y,alias:qP(s),logLevel:"silent"});if(_.errors.length>0)throw new Error(_.errors.map(M=>M.text).join(`
|
|
972
|
+
`));let b=_.outputFiles[0]?.text??"";return{html:FP(),themeCss:l,bundleJs:b,version:r}}async function qv(t,e){let r=await wt((await He(t)).bindings);if(e){let i=r.views.find(o=>o.screenName===e);if(!i)throw new Error(`Unknown screen "${e}" in view-bindings.yaml`);if(!i.targets.includes("react"))throw new Error(`Screen "${e}" is not a react target`);return e}let n=r.views.find(i=>i.targets.includes("react"));if(!n)throw new Error("No react target views in view-bindings.yaml");return n.screenName}Mi();function Vi(t,e,r,n){t.writeHead(e,{"Content-Type":n,"Cache-Control":"no-store"}),t.end(r)}function WP(t,e,r){let n=t.url?.split("?")[0]??"/";if(n==="/"||n==="/index.html"){Vi(e,200,r.html,"text/html; charset=utf-8");return}if(n==="/bundle.js"){Vi(e,200,r.bundleJs,"text/javascript; charset=utf-8");return}if(n==="/theme.css"){Vi(e,200,r.themeCss,"text/css; charset=utf-8");return}if(n==="/__vc-reload"){Vi(e,200,JSON.stringify({version:r.version}),"application/json");return}Vi(e,404,"Not found","text/plain; charset=utf-8")}async function GP(t,e,r){let n=await He(t),i=he(t),{tokensPath:o,themePath:s}=Yt(n),a=await $v(t,n),c=cr($e(),"renderers/react/elements.yaml"),l=[cr(i,n.viewsDir),cr(i,o),cr(i,s),a,c];n.extensions&&l.push(cr(i,n.extensions)),n.design?.extensionsCss&&l.push(cr(i,n.design.extensionsCss)),l.push(cr(i,"contracts/view-models.ts")),l.push(cr(i,"src/components/extensions.tsx"));let p,f=()=>{p&&clearTimeout(p),p=setTimeout(()=>r(),150)},d=[];for(let g of l)await js(g)&&d.push(g);let m=d.map(g=>UP(g,{recursive:!0},()=>f()));return()=>{p&&clearTimeout(p);for(let g of m)g.close()}}async function Fv(t){let e=t.port??5173,r=t.host??"127.0.0.1",n=await qv(t.configPath,t.screen),i=0,o=await cf(t.configPath,n,i),s=!1,a=!1,c=async()=>{if(s){a=!0;return}s=!0;try{i+=1,o=await cf(t.configPath,n,i),console.log(`[preview] rebuilt (v${i})`)}catch(d){let m=d instanceof Error?d.message:String(d);console.error(`[preview] compile error:
|
|
975
973
|
${m}`)}finally{s=!1,a&&(a=!1,c())}},l=BP((d,m)=>WP(d,m,o));await new Promise((d,m)=>{l.once("error",m),l.listen(e,r,()=>d())});let p=`http://${r}:${e}/`;console.log(`[preview] ${n} \u2192 ${p}`),console.log("[preview] watching views/ and design files (Ctrl+C to stop)");let f=await GP(t.configPath,n,()=>{c()});await new Promise(d=>{let m=()=>{f(),l.close(()=>d())};process.once("SIGINT",m),process.once("SIGTERM",m)})}async function uf(t){if(!t.extensions)return{allowlistExtra:t.allowlistExtra??[]};let e=await jo(t.extensions),r=[...new Set([...t.allowlistExtra??[],...Object.keys(e.extensions)])];return{extensionRegistry:e,allowlistExtra:r}}async function Hv(t){await new Promise((e,r)=>{let n=YP("npx",["micro-contracts",...t],{stdio:"inherit"});n.on("error",r),n.on("close",i=>{i===0?e():r(new Error(`micro-contracts exited with code ${i}`))})})}async function lf(t){let e=await He(t),r=await wt(e.bindings),{extensionRegistry:n,allowlistExtra:i}=await uf(e),o=he(t),{screens:s,partials:a}=await Uf(r.views.map(c=>({sourcePath:Et(o,c.source),exportName:c.exportName,screenName:c.screenName})),{allowlistExtra:i,extensionRegistry:n});return{screens:new Map(r.views.map((c,l)=>[c.screenName,s[l]])),partials:a}}function Nr(t,e){let r=KP(Wv(t),e).replace(/\\/g,"/");return r.startsWith(".")||(r=`./${r}`),r.replace(/\.tsx?$/,".js")}async function Bv(t,e,r){let n=await He(t),i=he(t),{allowlistExtra:o}=await uf(n),s=await wt(n.bindings);for(let a of r){let c=Et(n.generated.reactDir,"components",`${a.exportName}.generated.tsx`),l=Nr(c,Et(n.generated.reactDir,"runtime.ts")),p=Nr(c,Et(n.generated.reactDir,"extensions.generated.ts")),f=Nr(c,Et(i,"contracts/view-models.ts"));await of(a,c,{runtimeImportFrom:l,extensionsImportFrom:p,contractsImportFrom:f,allowlistExtra:o}),console.log(` ${a.exportName} \u2192 ${c}`)}for(let a of s.views){if(!a.targets.includes("react"))continue;let c=e.get(a.screenName);if(!c)throw new Error(`Missing View IR for ${a.screenName}`);let l=pp(n,a),p=Nr(l,Et(n.generated.reactDir,"runtime.ts")),f=Nr(l,Et(n.generated.reactDir,"extensions.generated.ts")),d=Nr(l,Et(i,"contracts/view-models.ts")),m=new Map;for(let g of r){let y=Tv(n.generated.reactDir,g);m.set(g.exportName,Nr(l,y))}await of(c,l,{runtimeImportFrom:p,extensionsImportFrom:f,contractsImportFrom:d,allowlistExtra:o,viewRefImportFrom:m}),console.log(` ${a.exportName} \u2192 ${l}`)}}async function Uv(t){let e=await He(t),r=await wt(e.bindings),n=he(t),o=["// Auto-generated view bridge registry \u2014 DO NOT EDIT",`// Generated from ${dp(n,e.bindings)}`,"","export const viewBridgeRegistry = {"];for(let s of r.views)o.push(` ${s.screenConst}: {`),o.push(` id: ${JSON.stringify(s.id)},`),o.push(` screenId: ${JSON.stringify(s.screenId)},`),o.push(` screenName: ${JSON.stringify(s.screenName)},`),o.push(` route: ${JSON.stringify(s.route)},`),o.push(` operationId: ${JSON.stringify(s.operationId)},`),o.push(` viewModel: ${JSON.stringify(s.viewModel)},`),o.push(` source: ${JSON.stringify(s.source)},`),o.push(` targets: ${JSON.stringify(s.targets)},`),o.push(" },");o.push("} as const;",""),o.push("export type ViewBridgeKey = keyof typeof viewBridgeRegistry;",""),await JP(Wv(Et(e.generated.bridge)),{recursive:!0}),await zP(Et(e.generated.bridge),o.join(`
|
|
976
|
-
`),"utf-8"),console.log(`Bridge registry \u2192 ${e.generated.bridge} (${r.views.length} view(s))`)}var Gv={compile:async(t,e)=>{let{screens:r,partials:n}=await lf(await
|
|
974
|
+
`),"utf-8"),console.log(`Bridge registry \u2192 ${e.generated.bridge} (${r.views.length} view(s))`)}var Gv={compile:async(t,e)=>{let{screens:r,partials:n}=await lf(await Kt(t.config));console.log(`Compiled ${r.size} screen(s) and ${n.length} partial(s) to View IR (in-memory)`)},renderReact:async(t,e)=>{let r=await Kt(t.config),{screens:n,partials:i}=await lf(r);await Bv(r,n,i)},renderBridge:async(t,e)=>{await Uv(await Kt(t.config))},build:async(t,e)=>{let r=await Kt(t.config),n=await He(r),i=await wt(n.bindings),{screens:o,partials:s}=await lf(r);console.log(`Compiled ${o.size} screen(s) and ${s.length} partial(s) to View IR (in-memory)`);let{tokensPath:a,themePath:c}=Yt(n),{tokenIR:l,themeIR:p}=await pn(a,c);await kr(n,r);let{allowlistExtra:f}=await uf(n),d=[...o.values(),...s];await qs(d,f),yi(d,p),await Nv(r,n),await Bv(r,o,s),await Uv(r),await Mv(r,n,i,{theme:p,tokens:l},{screens:o,partials:s}),await Lv(n,i),await jv(r,n,i)},contractsGenerate:async(t,e)=>{let r=await He(await Kt(t.config));await Hv(["generate","-c",r.microContractsConfig]),console.log("Contracts generated via micro-contracts")},contractsCheck:async(t,e)=>{let r=await He(await Kt(t.config));await Hv(["lint","-c",r.microContractsConfig])},preview:async(t,e)=>{try{await Fv({configPath:await Kt(t.config),port:t.port!=null?Number(t.port):void 0,host:t.host,screen:t.screen})}catch(r){console.error(r instanceof Error?r.message:r),process.exit(1)}}};var XP={version:"0.4.3"};Pf(Gv,XP.version).parseAsync(process.argv).catch(t=>{console.error(t instanceof Error?t.message:t),process.exit(1)});
|
|
977
975
|
/*! Bundled license information:
|
|
978
976
|
|
|
979
977
|
js-yaml/dist/js-yaml.mjs:
|